blob: 4e8e2e50ff76b0cba1d175197235f014c2b1a350 [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijono0b462322008-03-12 22:44:24 +00003# Generated by GNU Autoconf 2.59 for pjproject 0.8.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004#
Benny Prijono0b462322008-03-12 22:44:24 +00005# Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011
Benny Prijono0b462322008-03-12 22:44:24 +000012# Be Bourne compatible
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
Benny Prijono0b462322008-03-12 22:44:24 +000019elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijonofdafd402008-01-23 14:34:46 +000023
Benny Prijono0b462322008-03-12 22:44:24 +000024# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000029fi
30
31
Benny Prijono0b462322008-03-12 22:44:24 +000032# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000063
64
Benny Prijono0b462322008-03-12 22:44:24 +000065# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000079# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
Benny Prijono7e0d75f2006-12-25 20:34:14 +000086# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
Benny Prijonoa9b372a2006-07-24 02:07:11 +000097fi
98
Benny Prijono7e0d75f2006-12-25 20:34:14 +000099
Benny Prijono0b462322008-03-12 22:44:24 +0000100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
Benny Prijono0b462322008-03-12 22:44:24 +0000117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000123 fi
Benny Prijono0b462322008-03-12 22:44:24 +0000124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
Benny Prijono0b462322008-03-12 22:44:24 +0000135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000137 /*)
Benny Prijono0b462322008-03-12 22:44:24 +0000138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
Benny Prijonofdafd402008-01-23 14:34:46 +0000152done
Benny Prijono0b462322008-03-12 22:44:24 +0000153;;
154 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
Benny Prijono0b462322008-03-12 22:44:24 +0000158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Benny Prijono0b462322008-03-12 22:44:24 +0000163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000165 sed '
166 N
Benny Prijono0b462322008-03-12 22:44:24 +0000167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000170 t loop
Benny Prijono0b462322008-03-12 22:44:24 +0000171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000173 ' >$as_me.lineno &&
Benny Prijono0b462322008-03-12 22:44:24 +0000174 chmod +x $as_me.lineno ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
Benny Prijono0b462322008-03-12 22:44:24 +0000180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000182 # Exit status is that of the last command.
183 exit
184}
185
186
Benny Prijono0b462322008-03-12 22:44:24 +0000187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000192esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000193
Benny Prijono0b462322008-03-12 22:44:24 +0000194if expr a : '\(a\)' >/dev/null 2>&1; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
Benny Prijono0b462322008-03-12 22:44:24 +0000203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000207 as_ln_s='cp -p'
Benny Prijono0b462322008-03-12 22:44:24 +0000208 else
209 as_ln_s='ln -s'
210 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
Benny Prijono0b462322008-03-12 22:44:24 +0000216rm -f conf$$ conf$$.exe conf$$.file
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000217
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +0000220else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +0000223fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +0000224
Benny Prijono0b462322008-03-12 22:44:24 +0000225as_executable_p="test -f"
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000233
Benny Prijono0b462322008-03-12 22:44:24 +0000234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000239
Benny Prijono0b462322008-03-12 22:44:24 +0000240# CDPATH.
241$as_unset CDPATH
242
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
Benny Prijono0b462322008-03-12 22:44:24 +0000249exec 6>&1
250
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000255ac_config_libobj_dir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000256cross_compiling=no
257subdirs=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000258MFLAGS=
259MAKEFLAGS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000260SHELL=${CONFIG_SHELL-/bin/sh}
261
Benny Prijono0b462322008-03-12 22:44:24 +0000262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000267# Identity of this package.
268PACKAGE_NAME='pjproject'
269PACKAGE_TARNAME='pjproject'
Benny Prijono1c5f4e42008-02-07 13:11:39 +0000270PACKAGE_VERSION='0.8'
271PACKAGE_STRING='pjproject 0.8'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000272PACKAGE_BUGREPORT=''
273
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
Benny Prijono0b462322008-03-12 22:44:24 +0000277#if HAVE_SYS_TYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000278# include <sys/types.h>
279#endif
Benny Prijono0b462322008-03-12 22:44:24 +0000280#if HAVE_SYS_STAT_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000281# include <sys/stat.h>
282#endif
Benny Prijono0b462322008-03-12 22:44:24 +0000283#if STDC_HEADERS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000284# include <stdlib.h>
285# include <stddef.h>
286#else
Benny Prijono0b462322008-03-12 22:44:24 +0000287# if HAVE_STDLIB_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000288# include <stdlib.h>
289# endif
290#endif
Benny Prijono0b462322008-03-12 22:44:24 +0000291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000293# include <memory.h>
294# endif
295# include <string.h>
296#endif
Benny Prijono0b462322008-03-12 22:44:24 +0000297#if HAVE_STRINGS_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000298# include <strings.h>
299#endif
Benny Prijono0b462322008-03-12 22:44:24 +0000300#if HAVE_INTTYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000301# include <inttypes.h>
Benny Prijono0b462322008-03-12 22:44:24 +0000302#else
303# if HAVE_STDINT_H
304# include <stdint.h>
305# endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000306#endif
Benny Prijono0b462322008-03-12 22:44:24 +0000307#if HAVE_UNISTD_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000308# include <unistd.h>
309#endif"
310
Benny Prijono71f657d2008-03-17 14:24:21 +0000311ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX ac_pjdir CPP EGREP ac_os_objs ac_pjmedia_snd ac_pa_cflags ac_pa_use_alsa ac_pa_use_oss ac_no_small_filter ac_no_large_filter ac_no_speex_aec ac_no_g711_codec ac_no_l16_codec ac_no_gsm_codec ac_no_g722_codec ac_no_speex_codec ac_no_ilbc_codec ac_no_ssl openssl_h_present libssl_present libcrypto_present ac_cross_compile ac_linux_poll ac_host ac_main_obj LIBOBJS LTLIBOBJS'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000312ac_subst_files=''
313
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000314# Initialize some variables set by options.
315ac_init_help=
316ac_init_version=false
317# The variables have the same names as the options, with
318# dashes changed to underlines.
319cache_file=/dev/null
320exec_prefix=NONE
321no_create=
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
330verbose=
331x_includes=NONE
332x_libraries=NONE
333
334# Installation directory options.
335# These are left unexpanded so users can "make install exec_prefix=/foo"
336# and all the variables that are supposed to be based on exec_prefix
337# by default will actually change.
338# Use braces instead of parens because sh, perl, etc. also accept them.
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
Benny Prijono0b462322008-03-12 22:44:24 +0000342datadir='${prefix}/share'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
Benny Prijono0b462322008-03-12 22:44:24 +0000346libdir='${exec_prefix}/lib'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000347includedir='${prefix}/include'
348oldincludedir='/usr/include'
Benny Prijono0b462322008-03-12 22:44:24 +0000349infodir='${prefix}/info'
350mandir='${prefix}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000351
352ac_prev=
353for ac_option
354do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
Benny Prijono0b462322008-03-12 22:44:24 +0000357 eval "$ac_prev=\$ac_option"
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000358 ac_prev=
359 continue
360 fi
361
Benny Prijono0b462322008-03-12 22:44:24 +0000362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
Benny Prijono0b462322008-03-12 22:44:24 +0000366 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
372
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
387
Benny Prijono0b462322008-03-12 22:44:24 +0000388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000389 ac_prev=datadir ;;
Benny Prijono0b462322008-03-12 22:44:24 +0000390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000392 datadir=$ac_optarg ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
Benny Prijono0b462322008-03-12 22:44:24 +0000397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
Benny Prijono0b462322008-03-12 22:44:24 +0000400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000402
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
Benny Prijono0b462322008-03-12 22:44:24 +0000406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
Benny Prijono0b462322008-03-12 22:44:24 +0000409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
435
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
440
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
Benny Prijono0b462322008-03-12 22:44:24 +0000466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Benny Prijono0b462322008-03-12 22:44:24 +0000470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000472 localstatedir=$ac_optarg ;;
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
478
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000484 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
566
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
584
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
Benny Prijono0b462322008-03-12 22:44:24 +0000588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
Benny Prijono0b462322008-03-12 22:44:24 +0000591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
Benny Prijono0b462322008-03-12 22:44:24 +0000601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
Benny Prijono0b462322008-03-12 22:44:24 +0000604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
624
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
628 ;;
629
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
Benny Prijono0b462322008-03-12 22:44:24 +0000636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000638 export $ac_envvar ;;
639
640 *)
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 ;;
647
648 esac
649done
650
651if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
655fi
656
Benny Prijono0b462322008-03-12 22:44:24 +0000657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000659do
Benny Prijono0b462322008-03-12 22:44:24 +0000660 eval ac_val=$`echo $ac_var`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000661 case $ac_val in
Benny Prijono0b462322008-03-12 22:44:24 +0000662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000665 esac
Benny Prijono0b462322008-03-12 22:44:24 +0000666done
667
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000678done
679
680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000682# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000683build=$build_alias
684host=$host_alias
685target=$target_alias
686
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000687# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000688if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
702
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000703
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000704# Find the source files, if location was not specified.
705if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
Benny Prijono0b462322008-03-12 22:44:24 +0000707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
Benny Prijono0b462322008-03-12 22:44:24 +0000712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000714echo X"$0" |
Benny Prijono0b462322008-03-12 22:44:24 +0000715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000720 srcdir=$ac_confdir
Benny Prijono0b462322008-03-12 22:44:24 +0000721 if test ! -r $srcdir/$ac_unique_file; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000722 srcdir=..
723 fi
724else
725 ac_srcdir_defaulted=no
726fi
Benny Prijono0b462322008-03-12 22:44:24 +0000727if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000730 { (exit 1); exit 1; }; }
Benny Prijono0b462322008-03-12 22:44:24 +0000731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000733 { (exit 1); exit 1; }; }
Benny Prijono0b462322008-03-12 22:44:24 +0000734 fi
Benny Prijonofdafd402008-01-23 14:34:46 +0000735fi
Benny Prijono0b462322008-03-12 22:44:24 +0000736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
752ac_env_CC_set=${CC+set}
753ac_env_CC_value=$CC
754ac_cv_env_CC_set=${CC+set}
755ac_cv_env_CC_value=$CC
756ac_env_CFLAGS_set=${CFLAGS+set}
757ac_env_CFLAGS_value=$CFLAGS
758ac_cv_env_CFLAGS_set=${CFLAGS+set}
759ac_cv_env_CFLAGS_value=$CFLAGS
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
764ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765ac_env_CPPFLAGS_value=$CPPFLAGS
766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768ac_env_CXX_set=${CXX+set}
769ac_env_CXX_value=$CXX
770ac_cv_env_CXX_set=${CXX+set}
771ac_cv_env_CXX_value=$CXX
772ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773ac_env_CXXFLAGS_value=$CXXFLAGS
774ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776ac_env_CPP_set=${CPP+set}
777ac_env_CPP_value=$CPP
778ac_cv_env_CPP_set=${CPP+set}
779ac_cv_env_CPP_value=$CPP
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000780
781#
782# Report the --help message.
783#
784if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000787 cat <<_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +0000788\`configure' configures pjproject 0.8 to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000789
790Usage: $0 [OPTION]... [VAR=VALUE]...
791
792To assign environment variables (e.g., CC, CFLAGS...), specify them as
793VAR=VALUE. See below for descriptions of some of the useful variables.
794
795Defaults for the options are specified in brackets.
796
797Configuration:
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807
Benny Prijono0b462322008-03-12 22:44:24 +0000808_ACEOF
809
810 cat <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000811Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000813 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000815 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000816
817By default, \`make install' will install all the files in
818\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820for instance \`--prefix=\$HOME'.
821
822For better control, use the options below.
823
824Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
Benny Prijono0b462322008-03-12 22:44:24 +0000828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Benny Prijono0b462322008-03-12 22:44:24 +0000835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000837_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000838
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000839 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000840
841System types:
842 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000844 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000845_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000846fi
847
848if test -n "$ac_init_help"; then
849 case $ac_init_help in
Benny Prijono1c5f4e42008-02-07 13:11:39 +0000850 short | recursive ) echo "Configuration of pjproject 0.8:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000851 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000852 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000853
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000854Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --disable-floating-point
858 Disable floating point where possible
Benny Prijono1d971622006-09-10 22:27:40 +0000859 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijono0b462322008-03-12 22:44:24 +0000860 --disable-oss Disable OSS audio (default: not disabled)
861
Benny Prijonoebb2c332008-07-28 23:40:58 +0000862 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000863 --disable-small-filter Exclude small filter in resampling
864 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000865 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
866 --disable-g711-codec Exclude G.711 codecs from the build
867 --disable-l16-codec Exclude Linear/L16 codec family from the build
868 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +0000869 --disable-g722-codec Exclude G.722 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000870 --disable-speex-codec Exclude Speex codecs in the build
871 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +0000872 --enable-libsamplerate Link with libsamplerate when available. Note that
873 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijonoce1db762007-02-14 02:21:08 +0000874 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000875
876
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000877Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
Benny Prijono0b462322008-03-12 22:44:24 +0000882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000884 CXX C++ compiler command
885 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000886 CPP C preprocessor
887
888Use these variables to override the choices made by `configure' or to help
889it to find libraries and programs with nonstandard names/locations.
890
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000891_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000892fi
893
894if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
Benny Prijono0b462322008-03-12 22:44:24 +0000896 ac_popdir=`pwd`
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Benny Prijono0b462322008-03-12 22:44:24 +0000898 test -d $ac_dir || continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000899 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000900
Benny Prijono0b462322008-03-12 22:44:24 +0000901if test "$ac_dir" != .; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Benny Prijono0b462322008-03-12 22:44:24 +0000903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905else
906 ac_dir_suffix= ac_top_builddir=
907fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000908
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000909case $srcdir in
Benny Prijono0b462322008-03-12 22:44:24 +0000910 .) # No --srcdir option. We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000911 ac_srcdir=.
Benny Prijono0b462322008-03-12 22:44:24 +0000912 if test -z "$ac_top_builddir"; then
913 ac_top_srcdir=.
914 else
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 fi ;;
917 [\\/]* | ?:[\\/]* ) # Absolute path.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000918 ac_srcdir=$srcdir$ac_dir_suffix;
Benny Prijono0b462322008-03-12 22:44:24 +0000919 ac_top_srcdir=$srcdir ;;
920 *) # Relative path.
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000923esac
924
Benny Prijono0b462322008-03-12 22:44:24 +0000925# Do not use `cd foo && pwd` to compute absolute paths, because
926# the directories may not exist.
927case `pwd` in
928.) ac_abs_builddir="$ac_dir";;
929*)
930 case "$ac_dir" in
931 .) ac_abs_builddir=`pwd`;;
932 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
933 *) ac_abs_builddir=`pwd`/"$ac_dir";;
934 esac;;
935esac
936case $ac_abs_builddir in
937.) ac_abs_top_builddir=${ac_top_builddir}.;;
938*)
939 case ${ac_top_builddir}. in
940 .) ac_abs_top_builddir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
942 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
943 esac;;
944esac
945case $ac_abs_builddir in
946.) ac_abs_srcdir=$ac_srcdir;;
947*)
948 case $ac_srcdir in
949 .) ac_abs_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
951 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
952 esac;;
953esac
954case $ac_abs_builddir in
955.) ac_abs_top_srcdir=$ac_top_srcdir;;
956*)
957 case $ac_top_srcdir in
958 .) ac_abs_top_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
960 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961 esac;;
962esac
963
964 cd $ac_dir
965 # Check for guested configure; otherwise get Cygnus style configure.
966 if test -f $ac_srcdir/configure.gnu; then
967 echo
968 $SHELL $ac_srcdir/configure.gnu --help=recursive
969 elif test -f $ac_srcdir/configure; then
970 echo
971 $SHELL $ac_srcdir/configure --help=recursive
972 elif test -f $ac_srcdir/configure.ac ||
973 test -f $ac_srcdir/configure.in; then
974 echo
975 $ac_configure --help
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000976 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000977 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Benny Prijono0b462322008-03-12 22:44:24 +0000978 fi
979 cd $ac_popdir
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000980 done
981fi
982
Benny Prijono0b462322008-03-12 22:44:24 +0000983test -n "$ac_init_help" && exit 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000984if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000985 cat <<\_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +0000986pjproject configure 0.8
Benny Prijono0b462322008-03-12 22:44:24 +0000987generated by GNU Autoconf 2.59
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000988
Benny Prijono0b462322008-03-12 22:44:24 +0000989Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000990This configure script is free software; the Free Software Foundation
991gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000992_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +0000993 exit 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000994fi
Benny Prijono0b462322008-03-12 22:44:24 +0000995exec 5>config.log
996cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000997This file contains any messages produced by compilers while
998running configure, to aid debugging if configure makes a mistake.
999
Benny Prijono1c5f4e42008-02-07 13:11:39 +00001000It was created by pjproject $as_me 0.8, which was
Benny Prijono0b462322008-03-12 22:44:24 +00001001generated by GNU Autoconf 2.59. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001002
1003 $ $0 $@
1004
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001005_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001006{
1007cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001008## --------- ##
1009## Platform. ##
1010## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001011
1012hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1013uname -m = `(uname -m) 2>/dev/null || echo unknown`
1014uname -r = `(uname -r) 2>/dev/null || echo unknown`
1015uname -s = `(uname -s) 2>/dev/null || echo unknown`
1016uname -v = `(uname -v) 2>/dev/null || echo unknown`
1017
1018/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1019/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1020
1021/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1022/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1023/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Benny Prijono0b462322008-03-12 22:44:24 +00001024hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001025/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1026/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1027/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1028
1029_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001030
1031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1032for as_dir in $PATH
1033do
1034 IFS=$as_save_IFS
1035 test -z "$as_dir" && as_dir=.
1036 echo "PATH: $as_dir"
1037done
1038
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001039} >&5
1040
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001041cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001042
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001043
1044## ----------- ##
1045## Core tests. ##
1046## ----------- ##
1047
1048_ACEOF
1049
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001050
1051# Keep a trace of the command line.
1052# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001053# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001054# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001055# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001056ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001057ac_configure_args0=
1058ac_configure_args1=
Benny Prijono0b462322008-03-12 22:44:24 +00001059ac_sep=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001060ac_must_keep_next=false
1061for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001062do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001063 for ac_arg
1064 do
1065 case $ac_arg in
1066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1069 continue ;;
Benny Prijono0b462322008-03-12 22:44:24 +00001070 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001071 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1072 esac
1073 case $ac_pass in
1074 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1075 2)
1076 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1077 if test $ac_must_keep_next = true; then
1078 ac_must_keep_next=false # Got value, back to normal.
1079 else
1080 case $ac_arg in
1081 *=* | --config-cache | -C | -disable-* | --disable-* \
1082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1084 | -with-* | --with-* | -without-* | --without-* | --x)
1085 case "$ac_configure_args0 " in
1086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1087 esac
1088 ;;
1089 -* ) ac_must_keep_next=true ;;
1090 esac
1091 fi
Benny Prijono0b462322008-03-12 22:44:24 +00001092 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1093 # Get rid of the leading space.
1094 ac_sep=" "
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001095 ;;
1096 esac
1097 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001098done
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001099$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1100$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001101
1102# When interrupted or exit'd, cleanup temporary files, and complete
1103# config.log. We remove comments because anyway the quotes in there
1104# would cause problems or look ugly.
Benny Prijono0b462322008-03-12 22:44:24 +00001105# WARNING: Be sure not to use single quotes in there, as some shells,
1106# such as our DU 5.0 friend, will then `close' the trap.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001107trap 'exit_status=$?
1108 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001109 {
1110 echo
1111
1112 cat <<\_ASBOX
1113## ---------------- ##
1114## Cache variables. ##
1115## ---------------- ##
1116_ASBOX
1117 echo
1118 # The following way of writing the cache mishandles newlines in values,
Benny Prijono0b462322008-03-12 22:44:24 +00001119{
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001120 (set) 2>&1 |
Benny Prijono0b462322008-03-12 22:44:24 +00001121 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1122 *ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001123 sed -n \
Benny Prijono0b462322008-03-12 22:44:24 +00001124 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001126 ;;
Benny Prijono0b462322008-03-12 22:44:24 +00001127 *)
1128 sed -n \
1129 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130 ;;
1131 esac;
1132}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001133 echo
1134
1135 cat <<\_ASBOX
1136## ----------------- ##
1137## Output variables. ##
1138## ----------------- ##
1139_ASBOX
1140 echo
1141 for ac_var in $ac_subst_vars
1142 do
Benny Prijono0b462322008-03-12 22:44:24 +00001143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001145 done | sort
1146 echo
1147
1148 if test -n "$ac_subst_files"; then
1149 cat <<\_ASBOX
Benny Prijono0b462322008-03-12 22:44:24 +00001150## ------------- ##
1151## Output files. ##
1152## ------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001153_ASBOX
1154 echo
1155 for ac_var in $ac_subst_files
1156 do
Benny Prijono0b462322008-03-12 22:44:24 +00001157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001159 done | sort
1160 echo
1161 fi
1162
1163 if test -s confdefs.h; then
1164 cat <<\_ASBOX
1165## ----------- ##
1166## confdefs.h. ##
1167## ----------- ##
1168_ASBOX
1169 echo
Benny Prijono0b462322008-03-12 22:44:24 +00001170 sed "/^$/d" confdefs.h | sort
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001171 echo
1172 fi
1173 test "$ac_signal" != 0 &&
1174 echo "$as_me: caught signal $ac_signal"
1175 echo "$as_me: exit $exit_status"
1176 } >&5
Benny Prijono0b462322008-03-12 22:44:24 +00001177 rm -f core *.core &&
1178 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001179 exit $exit_status
Benny Prijono0b462322008-03-12 22:44:24 +00001180 ' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001181for ac_signal in 1 2 13 15; do
1182 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1183done
1184ac_signal=0
1185
1186# confdefs.h avoids OS command line length limits that DEFS can exceed.
Benny Prijono0b462322008-03-12 22:44:24 +00001187rm -rf conftest* confdefs.h
1188# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1189echo >confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001190
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001191# Predefined preprocessor variables.
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_NAME "$PACKAGE_NAME"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_VERSION "$PACKAGE_VERSION"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_STRING "$PACKAGE_STRING"
1210_ACEOF
1211
1212
1213cat >>confdefs.h <<_ACEOF
1214#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1215_ACEOF
1216
1217
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001218# Let the site file select an alternate cache file if it wants to.
1219# Prefer explicitly selected file to automatically selected ones.
Benny Prijono0b462322008-03-12 22:44:24 +00001220if test -z "$CONFIG_SITE"; then
1221 if test "x$prefix" != xNONE; then
1222 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1223 else
1224 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1225 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001226fi
Benny Prijono0b462322008-03-12 22:44:24 +00001227for ac_site_file in $CONFIG_SITE; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001228 if test -r "$ac_site_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001229 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001230echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001231 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001232 . "$ac_site_file"
1233 fi
1234done
1235
1236if test -r "$cache_file"; then
1237 # Some versions of bash will fail to source /dev/null (special
1238 # files actually), so we avoid doing that.
1239 if test -f "$cache_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001240 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001241echo "$as_me: loading cache $cache_file" >&6;}
1242 case $cache_file in
Benny Prijono0b462322008-03-12 22:44:24 +00001243 [\\/]* | ?:[\\/]* ) . $cache_file;;
1244 *) . ./$cache_file;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001245 esac
1246 fi
1247else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001248 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001249echo "$as_me: creating cache $cache_file" >&6;}
1250 >$cache_file
1251fi
1252
1253# Check that the precious variables saved in the cache have kept the same
1254# value.
1255ac_cache_corrupted=false
Benny Prijono0b462322008-03-12 22:44:24 +00001256for ac_var in `(set) 2>&1 |
1257 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001258 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1259 eval ac_new_set=\$ac_env_${ac_var}_set
Benny Prijono0b462322008-03-12 22:44:24 +00001260 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1261 eval ac_new_val="\$ac_env_${ac_var}_value"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001262 case $ac_old_set,$ac_new_set in
1263 set,)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001264 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001265echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,set)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001268 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001269echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1271 ,);;
1272 *)
1273 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001274 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001275echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001276 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001277echo "$as_me: former value: $ac_old_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001278 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001279echo "$as_me: current value: $ac_new_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001280 ac_cache_corrupted=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001281 fi;;
1282 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001283 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001284 if test "$ac_new_set" = set; then
1285 case $ac_new_val in
Benny Prijono0b462322008-03-12 22:44:24 +00001286 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001288 *) ac_arg=$ac_var=$ac_new_val ;;
1289 esac
1290 case " $ac_configure_args " in
1291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1292 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001293 esac
1294 fi
1295done
1296if $ac_cache_corrupted; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001297 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001298echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001299 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001300echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1301 { (exit 1); exit 1; }; }
1302fi
1303
1304ac_ext=c
1305ac_cpp='$CPP $CPPFLAGS'
1306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1308ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001310
1311
Benny Prijono0b462322008-03-12 22:44:24 +00001312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
Benny Prijono5b818b22006-09-17 22:58:51 +00001337host_orig="$host"
1338
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001339ac_aux_dir=
Benny Prijono0b462322008-03-12 22:44:24 +00001340for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1341 if test -f $ac_dir/install-sh; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001342 ac_aux_dir=$ac_dir
1343 ac_install_sh="$ac_aux_dir/install-sh -c"
1344 break
Benny Prijono0b462322008-03-12 22:44:24 +00001345 elif test -f $ac_dir/install.sh; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001346 ac_aux_dir=$ac_dir
1347 ac_install_sh="$ac_aux_dir/install.sh -c"
1348 break
Benny Prijono0b462322008-03-12 22:44:24 +00001349 elif test -f $ac_dir/shtool; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001350 ac_aux_dir=$ac_dir
1351 ac_install_sh="$ac_aux_dir/shtool install -c"
1352 break
1353 fi
1354done
1355if test -z "$ac_aux_dir"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001356 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1357echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001358 { (exit 1); exit 1; }; }
1359fi
Benny Prijono0b462322008-03-12 22:44:24 +00001360ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1361ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1362ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001363
1364# Make sure we can run config.sub.
Benny Prijono0b462322008-03-12 22:44:24 +00001365$ac_config_sub sun4 >/dev/null 2>&1 ||
1366 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1367echo "$as_me: error: cannot run $ac_config_sub" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001368 { (exit 1); exit 1; }; }
1369
Benny Prijono0b462322008-03-12 22:44:24 +00001370echo "$as_me:$LINENO: checking build system type" >&5
1371echo $ECHO_N "checking build system type... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001372if test "${ac_cv_build+set}" = set; then
1373 echo $ECHO_N "(cached) $ECHO_C" >&6
1374else
Benny Prijono0b462322008-03-12 22:44:24 +00001375 ac_cv_build_alias=$build_alias
1376test -z "$ac_cv_build_alias" &&
1377 ac_cv_build_alias=`$ac_config_guess`
1378test -z "$ac_cv_build_alias" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001379 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001380echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1381 { (exit 1); exit 1; }; }
Benny Prijono0b462322008-03-12 22:44:24 +00001382ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1383 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1384echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001385 { (exit 1); exit 1; }; }
1386
1387fi
Benny Prijono0b462322008-03-12 22:44:24 +00001388echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1389echo "${ECHO_T}$ac_cv_build" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001390build=$ac_cv_build
Benny Prijono0b462322008-03-12 22:44:24 +00001391build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1392build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1393build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001394
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001395
Benny Prijono0b462322008-03-12 22:44:24 +00001396echo "$as_me:$LINENO: checking host system type" >&5
1397echo $ECHO_N "checking host system type... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001398if test "${ac_cv_host+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1400else
Benny Prijono0b462322008-03-12 22:44:24 +00001401 ac_cv_host_alias=$host_alias
1402test -z "$ac_cv_host_alias" &&
1403 ac_cv_host_alias=$ac_cv_build_alias
1404ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1405 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1406echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001407 { (exit 1); exit 1; }; }
1408
1409fi
Benny Prijono0b462322008-03-12 22:44:24 +00001410echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1411echo "${ECHO_T}$ac_cv_host" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001412host=$ac_cv_host
Benny Prijono0b462322008-03-12 22:44:24 +00001413host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1414host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1415host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001416
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001417
Benny Prijono0b462322008-03-12 22:44:24 +00001418echo "$as_me:$LINENO: checking target system type" >&5
1419echo $ECHO_N "checking target system type... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001420if test "${ac_cv_target+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1422else
Benny Prijono0b462322008-03-12 22:44:24 +00001423 ac_cv_target_alias=$target_alias
1424test "x$ac_cv_target_alias" = "x" &&
1425 ac_cv_target_alias=$ac_cv_host_alias
1426ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1427 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1428echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001429 { (exit 1); exit 1; }; }
1430
1431fi
Benny Prijono0b462322008-03-12 22:44:24 +00001432echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1433echo "${ECHO_T}$ac_cv_target" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001434target=$ac_cv_target
Benny Prijono0b462322008-03-12 22:44:24 +00001435target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1436target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1437target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001438
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001439
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001440# The aliases save the names the user supplied, while $host etc.
1441# will get canonicalized.
1442test -n "$target_alias" &&
1443 test "$program_prefix$program_suffix$program_transform_name" = \
1444 NONENONEs,x,x, &&
1445 program_prefix=${target_alias}-
Benny Prijono0b462322008-03-12 22:44:24 +00001446 ac_config_headers="$ac_config_headers pjlib/include/pj/compat/os_auto.h pjlib/include/pj/compat/m_auto.h pjmedia/include/pjmedia/config_auto.h pjmedia/include/pjmedia-codec/config_auto.h pjsip/include/pjsip/sip_autoconf.h"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001447
Benny Prijono0b462322008-03-12 22:44:24 +00001448 ac_config_files="$ac_config_files build.mak build/os-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak third_party/build/portaudio/os-auto.mak third_party/build/os-auto.mak"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001449
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001450
Benny Prijono12483112007-03-12 10:44:38 +00001451
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001452if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00001453 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001454else
1455 CFLAGS="$CFLAGS"
1456fi
1457
1458CXXFLAGS="$CFLAGS $CXXFLAGS"
1459
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001460ac_ext=c
1461ac_cpp='$CPP $CPPFLAGS'
1462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464ac_compiler_gnu=$ac_cv_c_compiler_gnu
1465if test -n "$ac_tool_prefix"; then
1466 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1467set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001468echo "$as_me:$LINENO: checking for $ac_word" >&5
1469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001470if test "${ac_cv_prog_CC+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472else
1473 if test -n "$CC"; then
1474 ac_cv_prog_CC="$CC" # Let the user override the test.
1475else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477for as_dir in $PATH
1478do
1479 IFS=$as_save_IFS
1480 test -z "$as_dir" && as_dir=.
1481 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001483 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1485 break 2
1486 fi
1487done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001488done
1489
1490fi
1491fi
1492CC=$ac_cv_prog_CC
1493if test -n "$CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001494 echo "$as_me:$LINENO: result: $CC" >&5
1495echo "${ECHO_T}$CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001496else
Benny Prijono0b462322008-03-12 22:44:24 +00001497 echo "$as_me:$LINENO: result: no" >&5
1498echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001499fi
1500
1501fi
1502if test -z "$ac_cv_prog_CC"; then
1503 ac_ct_CC=$CC
1504 # Extract the first word of "gcc", so it can be a program name with args.
1505set dummy gcc; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001506echo "$as_me:$LINENO: checking for $ac_word" >&5
1507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001508if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510else
1511 if test -n "$ac_ct_CC"; then
1512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1513else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515for as_dir in $PATH
1516do
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001521 ac_cv_prog_ac_ct_CC="gcc"
1522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523 break 2
1524 fi
1525done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001526done
1527
1528fi
1529fi
1530ac_ct_CC=$ac_cv_prog_ac_ct_CC
1531if test -n "$ac_ct_CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001532 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1533echo "${ECHO_T}$ac_ct_CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001534else
Benny Prijono0b462322008-03-12 22:44:24 +00001535 echo "$as_me:$LINENO: result: no" >&5
1536echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001537fi
1538
Benny Prijono0b462322008-03-12 22:44:24 +00001539 CC=$ac_ct_CC
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001540else
1541 CC="$ac_cv_prog_CC"
1542fi
1543
1544if test -z "$CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001545 if test -n "$ac_tool_prefix"; then
1546 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001547set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001548echo "$as_me:$LINENO: checking for $ac_word" >&5
1549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001550if test "${ac_cv_prog_CC+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1552else
1553 if test -n "$CC"; then
1554 ac_cv_prog_CC="$CC" # Let the user override the test.
1555else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557for as_dir in $PATH
1558do
1559 IFS=$as_save_IFS
1560 test -z "$as_dir" && as_dir=.
1561 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001563 ac_cv_prog_CC="${ac_tool_prefix}cc"
1564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565 break 2
1566 fi
1567done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001568done
1569
1570fi
1571fi
1572CC=$ac_cv_prog_CC
1573if test -n "$CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001574 echo "$as_me:$LINENO: result: $CC" >&5
1575echo "${ECHO_T}$CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001576else
Benny Prijono0b462322008-03-12 22:44:24 +00001577 echo "$as_me:$LINENO: result: no" >&5
1578echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001579fi
1580
Benny Prijono0b462322008-03-12 22:44:24 +00001581fi
1582if test -z "$ac_cv_prog_CC"; then
1583 ac_ct_CC=$CC
1584 # Extract the first word of "cc", so it can be a program name with args.
1585set dummy cc; ac_word=$2
1586echo "$as_me:$LINENO: checking for $ac_word" >&5
1587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1590else
1591 if test -n "$ac_ct_CC"; then
1592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1593else
1594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595for as_dir in $PATH
1596do
1597 IFS=$as_save_IFS
1598 test -z "$as_dir" && as_dir=.
1599 for ac_exec_ext in '' $ac_executable_extensions; do
1600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601 ac_cv_prog_ac_ct_CC="cc"
1602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1603 break 2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001604 fi
Benny Prijono0b462322008-03-12 22:44:24 +00001605done
1606done
1607
1608fi
1609fi
1610ac_ct_CC=$ac_cv_prog_ac_ct_CC
1611if test -n "$ac_ct_CC"; then
1612 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1613echo "${ECHO_T}$ac_ct_CC" >&6
1614else
1615 echo "$as_me:$LINENO: result: no" >&5
1616echo "${ECHO_T}no" >&6
1617fi
1618
1619 CC=$ac_ct_CC
1620else
1621 CC="$ac_cv_prog_CC"
1622fi
1623
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001624fi
1625if test -z "$CC"; then
1626 # Extract the first word of "cc", so it can be a program name with args.
1627set dummy cc; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001628echo "$as_me:$LINENO: checking for $ac_word" >&5
1629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001630if test "${ac_cv_prog_CC+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1632else
1633 if test -n "$CC"; then
1634 ac_cv_prog_CC="$CC" # Let the user override the test.
1635else
1636 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638for as_dir in $PATH
1639do
1640 IFS=$as_save_IFS
1641 test -z "$as_dir" && as_dir=.
1642 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1645 ac_prog_rejected=yes
1646 continue
1647 fi
1648 ac_cv_prog_CC="cc"
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650 break 2
1651 fi
1652done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001653done
1654
1655if test $ac_prog_rejected = yes; then
1656 # We found a bogon in the path, so make sure we never use it.
1657 set dummy $ac_cv_prog_CC
1658 shift
1659 if test $# != 0; then
1660 # We chose a different compiler from the bogus one.
1661 # However, it has the same basename, so the bogon will be chosen
1662 # first if we set CC to just the basename; use the full file name.
1663 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001664 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001665 fi
1666fi
1667fi
1668fi
1669CC=$ac_cv_prog_CC
1670if test -n "$CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001671 echo "$as_me:$LINENO: result: $CC" >&5
1672echo "${ECHO_T}$CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001673else
Benny Prijono0b462322008-03-12 22:44:24 +00001674 echo "$as_me:$LINENO: result: no" >&5
1675echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001676fi
1677
1678fi
1679if test -z "$CC"; then
1680 if test -n "$ac_tool_prefix"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001681 for ac_prog in cl
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001682 do
1683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1684set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001685echo "$as_me:$LINENO: checking for $ac_word" >&5
1686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001687if test "${ac_cv_prog_CC+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1689else
1690 if test -n "$CC"; then
1691 ac_cv_prog_CC="$CC" # Let the user override the test.
1692else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694for as_dir in $PATH
1695do
1696 IFS=$as_save_IFS
1697 test -z "$as_dir" && as_dir=.
1698 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001700 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702 break 2
1703 fi
1704done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001705done
1706
1707fi
1708fi
1709CC=$ac_cv_prog_CC
1710if test -n "$CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001711 echo "$as_me:$LINENO: result: $CC" >&5
1712echo "${ECHO_T}$CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001713else
Benny Prijono0b462322008-03-12 22:44:24 +00001714 echo "$as_me:$LINENO: result: no" >&5
1715echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001716fi
1717
1718 test -n "$CC" && break
1719 done
1720fi
1721if test -z "$CC"; then
1722 ac_ct_CC=$CC
Benny Prijono0b462322008-03-12 22:44:24 +00001723 for ac_prog in cl
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001724do
1725 # Extract the first word of "$ac_prog", so it can be a program name with args.
1726set dummy $ac_prog; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00001727echo "$as_me:$LINENO: checking for $ac_word" >&5
1728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001729if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1731else
1732 if test -n "$ac_ct_CC"; then
1733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1734else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736for as_dir in $PATH
1737do
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00001741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001742 ac_cv_prog_ac_ct_CC="$ac_prog"
1743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744 break 2
1745 fi
1746done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001747done
1748
1749fi
1750fi
1751ac_ct_CC=$ac_cv_prog_ac_ct_CC
1752if test -n "$ac_ct_CC"; then
Benny Prijono0b462322008-03-12 22:44:24 +00001753 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1754echo "${ECHO_T}$ac_ct_CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001755else
Benny Prijono0b462322008-03-12 22:44:24 +00001756 echo "$as_me:$LINENO: result: no" >&5
1757echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001758fi
1759
1760 test -n "$ac_ct_CC" && break
1761done
1762
Benny Prijono0b462322008-03-12 22:44:24 +00001763 CC=$ac_ct_CC
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001764fi
1765
1766fi
1767
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001768
1769test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1770See \`config.log' for more details." >&5
1771echo "$as_me: error: no acceptable C compiler found in \$PATH
1772See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001773 { (exit 1); exit 1; }; }
1774
1775# Provide some information about the compiler.
Benny Prijono0b462322008-03-12 22:44:24 +00001776echo "$as_me:$LINENO:" \
1777 "checking for C compiler version" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001778ac_compiler=`set X $ac_compile; echo $2`
Benny Prijono0b462322008-03-12 22:44:24 +00001779{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1780 (eval $ac_compiler --version </dev/null >&5) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001781 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001783 (exit $ac_status); }
Benny Prijono0b462322008-03-12 22:44:24 +00001784{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1785 (eval $ac_compiler -v </dev/null >&5) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001786 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001788 (exit $ac_status); }
Benny Prijono0b462322008-03-12 22:44:24 +00001789{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1790 (eval $ac_compiler -V </dev/null >&5) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001791 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001793 (exit $ac_status); }
1794
1795cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001796/* confdefs.h. */
1797_ACEOF
1798cat confdefs.h >>conftest.$ac_ext
1799cat >>conftest.$ac_ext <<_ACEOF
1800/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001801
1802int
1803main ()
1804{
1805
1806 ;
1807 return 0;
1808}
1809_ACEOF
1810ac_clean_files_save=$ac_clean_files
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001811ac_clean_files="$ac_clean_files a.out a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001812# Try to create an executable without -o first, disregard a.out.
1813# It will help us diagnose broken compilers, and finding out an intuition
1814# of exeext.
Benny Prijono0b462322008-03-12 22:44:24 +00001815echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1816echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001817ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Benny Prijono0b462322008-03-12 22:44:24 +00001818if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1819 (eval $ac_link_default) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001820 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001822 (exit $ac_status); }; then
Benny Prijono0b462322008-03-12 22:44:24 +00001823 # Find the output, starting from the most likely. This scheme is
1824# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1825# resort.
1826
1827# Be careful to initialize this variable, since it used to be cached.
1828# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1829ac_cv_exeext=
1830# b.out is created by i960 compilers.
1831for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001832do
1833 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001834 case $ac_file in
Benny Prijono0b462322008-03-12 22:44:24 +00001835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1836 ;;
1837 conftest.$ac_ext )
1838 # This is the source file.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001839 ;;
1840 [ab].out )
1841 # We found the default executable, but exeext='' is most
1842 # certainly right.
1843 break;;
1844 *.* )
Benny Prijono0b462322008-03-12 22:44:24 +00001845 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1846 # FIXME: I believe we export ac_cv_exeext for Libtool,
1847 # but it would be cool to find out if it's true. Does anybody
1848 # maintain Libtool? --akim.
1849 export ac_cv_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001850 break;;
1851 * )
1852 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001853 esac
1854done
1855else
1856 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001857sed 's/^/| /' conftest.$ac_ext >&5
1858
1859{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1860See \`config.log' for more details." >&5
1861echo "$as_me: error: C compiler cannot create executables
1862See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001863 { (exit 77); exit 77; }; }
1864fi
1865
1866ac_exeext=$ac_cv_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00001867echo "$as_me:$LINENO: result: $ac_file" >&5
1868echo "${ECHO_T}$ac_file" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001869
Benny Prijono0b462322008-03-12 22:44:24 +00001870# Check the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001871# the compiler is broken, or we cross compile.
Benny Prijono0b462322008-03-12 22:44:24 +00001872echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1873echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001874# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1875# If not cross compiling, check that we can run a simple program.
1876if test "$cross_compiling" != yes; then
1877 if { ac_try='./$ac_file'
Benny Prijono0b462322008-03-12 22:44:24 +00001878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1879 (eval $ac_try) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001880 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001882 (exit $ac_status); }; }; then
1883 cross_compiling=no
1884 else
1885 if test "$cross_compiling" = maybe; then
1886 cross_compiling=yes
1887 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001888 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1889If you meant to cross compile, use \`--host'.
1890See \`config.log' for more details." >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001891echo "$as_me: error: cannot run C compiled programs.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001892If you meant to cross compile, use \`--host'.
1893See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001894 { (exit 1); exit 1; }; }
1895 fi
1896 fi
1897fi
Benny Prijono0b462322008-03-12 22:44:24 +00001898echo "$as_me:$LINENO: result: yes" >&5
1899echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001900
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001901rm -f a.out a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001902ac_clean_files=$ac_clean_files_save
Benny Prijono0b462322008-03-12 22:44:24 +00001903# Check the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001904# the compiler is broken, or we cross compile.
Benny Prijono0b462322008-03-12 22:44:24 +00001905echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1906echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1907echo "$as_me:$LINENO: result: $cross_compiling" >&5
1908echo "${ECHO_T}$cross_compiling" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001909
Benny Prijono0b462322008-03-12 22:44:24 +00001910echo "$as_me:$LINENO: checking for suffix of executables" >&5
1911echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1913 (eval $ac_link) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001914 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001916 (exit $ac_status); }; then
1917 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1918# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1919# work properly (i.e., refer to `conftest.exe'), while it won't with
1920# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001921for ac_file in conftest.exe conftest conftest.*; do
1922 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001923 case $ac_file in
Benny Prijono0b462322008-03-12 22:44:24 +00001924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001925 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono0b462322008-03-12 22:44:24 +00001926 export ac_cv_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001927 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001928 * ) break;;
1929 esac
1930done
1931else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001932 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1933See \`config.log' for more details." >&5
1934echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1935See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001936 { (exit 1); exit 1; }; }
1937fi
1938
1939rm -f conftest$ac_cv_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00001940echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1941echo "${ECHO_T}$ac_cv_exeext" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001942
1943rm -f conftest.$ac_ext
1944EXEEXT=$ac_cv_exeext
1945ac_exeext=$EXEEXT
Benny Prijono0b462322008-03-12 22:44:24 +00001946echo "$as_me:$LINENO: checking for suffix of object files" >&5
1947echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001948if test "${ac_cv_objext+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1950else
1951 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001952/* confdefs.h. */
1953_ACEOF
1954cat confdefs.h >>conftest.$ac_ext
1955cat >>conftest.$ac_ext <<_ACEOF
1956/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001957
1958int
1959main ()
1960{
1961
1962 ;
1963 return 0;
1964}
1965_ACEOF
1966rm -f conftest.o conftest.obj
Benny Prijono0b462322008-03-12 22:44:24 +00001967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1968 (eval $ac_compile) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001969 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001971 (exit $ac_status); }; then
Benny Prijono0b462322008-03-12 22:44:24 +00001972 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001973 case $ac_file in
Benny Prijono0b462322008-03-12 22:44:24 +00001974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001975 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1976 break;;
1977 esac
1978done
1979else
1980 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001981sed 's/^/| /' conftest.$ac_ext >&5
1982
1983{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1984See \`config.log' for more details." >&5
1985echo "$as_me: error: cannot compute suffix of object files: cannot compile
1986See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001987 { (exit 1); exit 1; }; }
1988fi
1989
1990rm -f conftest.$ac_cv_objext conftest.$ac_ext
1991fi
Benny Prijono0b462322008-03-12 22:44:24 +00001992echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1993echo "${ECHO_T}$ac_cv_objext" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001994OBJEXT=$ac_cv_objext
1995ac_objext=$OBJEXT
Benny Prijono0b462322008-03-12 22:44:24 +00001996echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1997echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001998if test "${ac_cv_c_compiler_gnu+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000else
2001 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002002/* confdefs.h. */
2003_ACEOF
2004cat confdefs.h >>conftest.$ac_ext
2005cat >>conftest.$ac_ext <<_ACEOF
2006/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002007
2008int
2009main ()
2010{
2011#ifndef __GNUC__
2012 choke me
2013#endif
2014
2015 ;
2016 return 0;
2017}
2018_ACEOF
2019rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00002020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2021 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002022 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002023 grep -v '^ *+' conftest.er1 >conftest.err
2024 rm -f conftest.er1
2025 cat conftest.err >&5
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002027 (exit $ac_status); } &&
2028 { ac_try='test -z "$ac_c_werror_flag"
2029 || test ! -s conftest.err'
2030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031 (eval $ac_try) 2>&5
2032 ac_status=$?
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; } &&
2035 { ac_try='test -s conftest.$ac_objext'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 (eval $ac_try) 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; }; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002041 ac_compiler_gnu=yes
2042else
2043 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002044sed 's/^/| /' conftest.$ac_ext >&5
2045
Benny Prijono0b462322008-03-12 22:44:24 +00002046ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002047fi
Benny Prijono0b462322008-03-12 22:44:24 +00002048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002049ac_cv_c_compiler_gnu=$ac_compiler_gnu
2050
2051fi
Benny Prijono0b462322008-03-12 22:44:24 +00002052echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2053echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002054GCC=`test $ac_compiler_gnu = yes && echo yes`
2055ac_test_CFLAGS=${CFLAGS+set}
2056ac_save_CFLAGS=$CFLAGS
Benny Prijono0b462322008-03-12 22:44:24 +00002057CFLAGS="-g"
2058echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2059echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002060if test "${ac_cv_prog_cc_g+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2062else
Benny Prijono0b462322008-03-12 22:44:24 +00002063 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002064/* confdefs.h. */
2065_ACEOF
2066cat confdefs.h >>conftest.$ac_ext
2067cat >>conftest.$ac_ext <<_ACEOF
2068/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002069
2070int
2071main ()
2072{
2073
2074 ;
2075 return 0;
2076}
2077_ACEOF
2078rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00002079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002081 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002082 grep -v '^ *+' conftest.er1 >conftest.err
2083 rm -f conftest.er1
2084 cat conftest.err >&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002086 (exit $ac_status); } &&
2087 { ac_try='test -z "$ac_c_werror_flag"
2088 || test ! -s conftest.err'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 (eval $ac_try) 2>&5
2091 ac_status=$?
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; } &&
2094 { ac_try='test -s conftest.$ac_objext'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 (eval $ac_try) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; }; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002100 ac_cv_prog_cc_g=yes
2101else
2102 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002103sed 's/^/| /' conftest.$ac_ext >&5
2104
Benny Prijono0b462322008-03-12 22:44:24 +00002105ac_cv_prog_cc_g=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002106fi
Benny Prijono0b462322008-03-12 22:44:24 +00002107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002108fi
Benny Prijono0b462322008-03-12 22:44:24 +00002109echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2110echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002111if test "$ac_test_CFLAGS" = set; then
2112 CFLAGS=$ac_save_CFLAGS
2113elif test $ac_cv_prog_cc_g = yes; then
2114 if test "$GCC" = yes; then
2115 CFLAGS="-g -O2"
2116 else
2117 CFLAGS="-g"
2118 fi
2119else
2120 if test "$GCC" = yes; then
2121 CFLAGS="-O2"
2122 else
2123 CFLAGS=
2124 fi
2125fi
Benny Prijono0b462322008-03-12 22:44:24 +00002126echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2127echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2128if test "${ac_cv_prog_cc_stdc+set}" = set; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130else
Benny Prijono0b462322008-03-12 22:44:24 +00002131 ac_cv_prog_cc_stdc=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002132ac_save_CC=$CC
2133cat >conftest.$ac_ext <<_ACEOF
2134/* confdefs.h. */
2135_ACEOF
2136cat confdefs.h >>conftest.$ac_ext
2137cat >>conftest.$ac_ext <<_ACEOF
2138/* end confdefs.h. */
2139#include <stdarg.h>
2140#include <stdio.h>
2141#include <sys/types.h>
2142#include <sys/stat.h>
2143/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2144struct buf { int x; };
2145FILE * (*rcsopen) (struct buf *, struct stat *, int);
2146static char *e (p, i)
2147 char **p;
2148 int i;
2149{
2150 return p[i];
2151}
2152static char *f (char * (*g) (char **, int), char **p, ...)
2153{
2154 char *s;
2155 va_list v;
2156 va_start (v,p);
2157 s = g (p, va_arg (v,int));
2158 va_end (v);
2159 return s;
2160}
2161
2162/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2163 function prototypes and stuff, but not '\xHH' hex character constants.
2164 These don't provoke an error unfortunately, instead are silently treated
Benny Prijono0b462322008-03-12 22:44:24 +00002165 as 'x'. The following induces an error, until -std1 is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002166 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2167 array size at least. It's necessary to write '\x00'==0 to get something
Benny Prijono0b462322008-03-12 22:44:24 +00002168 that's true only with -std1. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002169int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2170
2171int test (int i, double x);
2172struct s1 {int (*f) (int a);};
2173struct s2 {int (*f) (double a);};
2174int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2175int argc;
2176char **argv;
2177int
2178main ()
2179{
2180return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2181 ;
2182 return 0;
2183}
2184_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00002185# Don't try gcc -ansi; that turns off useful extensions and
2186# breaks some systems' header files.
2187# AIX -qlanglvl=ansi
2188# Ultrix and OSF/1 -std1
2189# HP-UX 10.20 and later -Ae
2190# HP-UX older versions -Aa -D_HPUX_SOURCE
2191# SVR4 -Xc -D__EXTENSIONS__
2192for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002193do
2194 CC="$ac_save_CC $ac_arg"
2195 rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00002196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002198 ac_status=$?
2199 grep -v '^ *+' conftest.er1 >conftest.err
2200 rm -f conftest.er1
2201 cat conftest.err >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002203 (exit $ac_status); } &&
2204 { ac_try='test -z "$ac_c_werror_flag"
2205 || test ! -s conftest.err'
2206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 (eval $ac_try) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; } &&
2211 { ac_try='test -s conftest.$ac_objext'
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 (eval $ac_try) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2217 ac_cv_prog_cc_stdc=$ac_arg
2218break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002219else
2220 echo "$as_me: failed program was:" >&5
2221sed 's/^/| /' conftest.$ac_ext >&5
2222
2223fi
Benny Prijono0b462322008-03-12 22:44:24 +00002224rm -f conftest.err conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002225done
Benny Prijono0b462322008-03-12 22:44:24 +00002226rm -f conftest.$ac_ext conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002227CC=$ac_save_CC
2228
2229fi
Benny Prijono0b462322008-03-12 22:44:24 +00002230
2231case "x$ac_cv_prog_cc_stdc" in
2232 x|xno)
2233 echo "$as_me:$LINENO: result: none needed" >&5
2234echo "${ECHO_T}none needed" >&6 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002235 *)
Benny Prijono0b462322008-03-12 22:44:24 +00002236 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2237echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2238 CC="$CC $ac_cv_prog_cc_stdc" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002239esac
2240
Benny Prijono0b462322008-03-12 22:44:24 +00002241# Some people use a C++ compiler to compile C. Since we use `exit',
2242# in C++ we need to declare it. In case someone uses the same compiler
2243# for both compiling C and C++ we need to have the C++ compiler decide
2244# the declaration of exit, since it's the most demanding environment.
2245cat >conftest.$ac_ext <<_ACEOF
2246#ifndef __cplusplus
2247 choke me
2248#endif
2249_ACEOF
2250rm -f conftest.$ac_objext
2251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>conftest.er1
2253 ac_status=$?
2254 grep -v '^ *+' conftest.er1 >conftest.err
2255 rm -f conftest.er1
2256 cat conftest.err >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); } &&
2259 { ac_try='test -z "$ac_c_werror_flag"
2260 || test ! -s conftest.err'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; } &&
2266 { ac_try='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 (eval $ac_try) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2272 for ac_declaration in \
2273 '' \
2274 'extern "C" void std::exit (int) throw (); using std::exit;' \
2275 'extern "C" void std::exit (int); using std::exit;' \
2276 'extern "C" void exit (int) throw ();' \
2277 'extern "C" void exit (int);' \
2278 'void exit (int);'
2279do
2280 cat >conftest.$ac_ext <<_ACEOF
2281/* confdefs.h. */
2282_ACEOF
2283cat confdefs.h >>conftest.$ac_ext
2284cat >>conftest.$ac_ext <<_ACEOF
2285/* end confdefs.h. */
2286$ac_declaration
2287#include <stdlib.h>
2288int
2289main ()
2290{
2291exit (42);
2292 ;
2293 return 0;
2294}
2295_ACEOF
2296rm -f conftest.$ac_objext
2297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>conftest.er1
2299 ac_status=$?
2300 grep -v '^ *+' conftest.er1 >conftest.err
2301 rm -f conftest.er1
2302 cat conftest.err >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); } &&
2305 { ac_try='test -z "$ac_c_werror_flag"
2306 || test ! -s conftest.err'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 (eval $ac_try) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; } &&
2312 { ac_try='test -s conftest.$ac_objext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 (eval $ac_try) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2318 :
2319else
2320 echo "$as_me: failed program was:" >&5
2321sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002322
Benny Prijono0b462322008-03-12 22:44:24 +00002323continue
2324fi
2325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2326 cat >conftest.$ac_ext <<_ACEOF
2327/* confdefs.h. */
2328_ACEOF
2329cat confdefs.h >>conftest.$ac_ext
2330cat >>conftest.$ac_ext <<_ACEOF
2331/* end confdefs.h. */
2332$ac_declaration
2333int
2334main ()
2335{
2336exit (42);
2337 ;
2338 return 0;
2339}
2340_ACEOF
2341rm -f conftest.$ac_objext
2342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>conftest.er1
2344 ac_status=$?
2345 grep -v '^ *+' conftest.er1 >conftest.err
2346 rm -f conftest.er1
2347 cat conftest.err >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); } &&
2350 { ac_try='test -z "$ac_c_werror_flag"
2351 || test ! -s conftest.err'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 (eval $ac_try) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; } &&
2357 { ac_try='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2363 break
2364else
2365 echo "$as_me: failed program was:" >&5
2366sed 's/^/| /' conftest.$ac_ext >&5
2367
2368fi
2369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2370done
2371rm -f conftest*
2372if test -n "$ac_declaration"; then
2373 echo '#ifdef __cplusplus' >>confdefs.h
2374 echo $ac_declaration >>confdefs.h
2375 echo '#endif' >>confdefs.h
2376fi
2377
2378else
2379 echo "$as_me: failed program was:" >&5
2380sed 's/^/| /' conftest.$ac_ext >&5
2381
2382fi
2383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002384ac_ext=c
2385ac_cpp='$CPP $CPPFLAGS'
2386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388ac_compiler_gnu=$ac_cv_c_compiler_gnu
2389
Benny Prijono0b462322008-03-12 22:44:24 +00002390ac_ext=cc
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002391ac_cpp='$CXXCPP $CPPFLAGS'
2392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Benny Prijono0b462322008-03-12 22:44:24 +00002395if test -n "$ac_tool_prefix"; then
2396 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002397 do
2398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2399set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00002400echo "$as_me:$LINENO: checking for $ac_word" >&5
2401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002402if test "${ac_cv_prog_CXX+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2404else
2405 if test -n "$CXX"; then
2406 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2407else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409for as_dir in $PATH
2410do
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00002414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002415 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 break 2
2418 fi
2419done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002420done
2421
2422fi
2423fi
2424CXX=$ac_cv_prog_CXX
2425if test -n "$CXX"; then
Benny Prijono0b462322008-03-12 22:44:24 +00002426 echo "$as_me:$LINENO: result: $CXX" >&5
2427echo "${ECHO_T}$CXX" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002428else
Benny Prijono0b462322008-03-12 22:44:24 +00002429 echo "$as_me:$LINENO: result: no" >&5
2430echo "${ECHO_T}no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002431fi
2432
2433 test -n "$CXX" && break
2434 done
2435fi
2436if test -z "$CXX"; then
2437 ac_ct_CXX=$CXX
Benny Prijono0b462322008-03-12 22:44:24 +00002438 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002439do
2440 # Extract the first word of "$ac_prog", so it can be a program name with args.
2441set dummy $ac_prog; ac_word=$2
Benny Prijono0b462322008-03-12 22:44:24 +00002442echo "$as_me:$LINENO: checking for $ac_word" >&5
2443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002444if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2446else
2447 if test -n "$ac_ct_CXX"; then
2448 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2449else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451for as_dir in $PATH
2452do
2453 IFS=$as_save_IFS
2454 test -z "$as_dir" && as_dir=.
2455 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijono0b462322008-03-12 22:44:24 +00002456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002457 ac_cv_prog_ac_ct_CXX="$ac_prog"
2458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 break 2
2460 fi
2461done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002462done
2463
2464fi
2465fi
2466ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2467if test -n "$ac_ct_CXX"; then
Benny Prijono0b462322008-03-12 22:44:24 +00002468 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2469echo "${ECHO_T}$ac_ct_CXX" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002470else
Benny Prijono0b462322008-03-12 22:44:24 +00002471 echo "$as_me:$LINENO: result: no" >&5
2472echo "${ECHO_T}no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002473fi
2474
2475 test -n "$ac_ct_CXX" && break
2476done
Benny Prijono0b462322008-03-12 22:44:24 +00002477test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002478
Benny Prijono0b462322008-03-12 22:44:24 +00002479 CXX=$ac_ct_CXX
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002480fi
2481
Benny Prijono0b462322008-03-12 22:44:24 +00002482
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002483# Provide some information about the compiler.
Benny Prijono0b462322008-03-12 22:44:24 +00002484echo "$as_me:$LINENO:" \
2485 "checking for C++ compiler version" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002486ac_compiler=`set X $ac_compile; echo $2`
Benny Prijono0b462322008-03-12 22:44:24 +00002487{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2488 (eval $ac_compiler --version </dev/null >&5) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002489 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002491 (exit $ac_status); }
Benny Prijono0b462322008-03-12 22:44:24 +00002492{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2493 (eval $ac_compiler -v </dev/null >&5) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002494 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002496 (exit $ac_status); }
Benny Prijono0b462322008-03-12 22:44:24 +00002497{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2498 (eval $ac_compiler -V </dev/null >&5) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002499 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002501 (exit $ac_status); }
2502
Benny Prijono0b462322008-03-12 22:44:24 +00002503echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2504echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002505if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2507else
2508 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002509/* confdefs.h. */
2510_ACEOF
2511cat confdefs.h >>conftest.$ac_ext
2512cat >>conftest.$ac_ext <<_ACEOF
2513/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002514
2515int
2516main ()
2517{
2518#ifndef __GNUC__
2519 choke me
2520#endif
2521
2522 ;
2523 return 0;
2524}
2525_ACEOF
2526rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00002527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002529 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002530 grep -v '^ *+' conftest.er1 >conftest.err
2531 rm -f conftest.er1
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002534 (exit $ac_status); } &&
2535 { ac_try='test -z "$ac_cxx_werror_flag"
2536 || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 (eval $ac_try) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002548 ac_compiler_gnu=yes
2549else
2550 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002551sed 's/^/| /' conftest.$ac_ext >&5
2552
Benny Prijono0b462322008-03-12 22:44:24 +00002553ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002554fi
Benny Prijono0b462322008-03-12 22:44:24 +00002555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002556ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2557
2558fi
Benny Prijono0b462322008-03-12 22:44:24 +00002559echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2560echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002561GXX=`test $ac_compiler_gnu = yes && echo yes`
2562ac_test_CXXFLAGS=${CXXFLAGS+set}
2563ac_save_CXXFLAGS=$CXXFLAGS
Benny Prijono0b462322008-03-12 22:44:24 +00002564CXXFLAGS="-g"
2565echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2566echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002567if test "${ac_cv_prog_cxx_g+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569else
Benny Prijono0b462322008-03-12 22:44:24 +00002570 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002571/* confdefs.h. */
2572_ACEOF
2573cat confdefs.h >>conftest.$ac_ext
2574cat >>conftest.$ac_ext <<_ACEOF
2575/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002576
2577int
2578main ()
2579{
2580
2581 ;
2582 return 0;
2583}
2584_ACEOF
2585rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00002586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002588 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002589 grep -v '^ *+' conftest.er1 >conftest.err
2590 rm -f conftest.er1
2591 cat conftest.err >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002593 (exit $ac_status); } &&
2594 { ac_try='test -z "$ac_cxx_werror_flag"
2595 || test ! -s conftest.err'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 (eval $ac_try) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; } &&
2601 { ac_try='test -s conftest.$ac_objext'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 (eval $ac_try) 2>&5
2604 ac_status=$?
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002607 ac_cv_prog_cxx_g=yes
2608else
2609 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002610sed 's/^/| /' conftest.$ac_ext >&5
2611
Benny Prijono0b462322008-03-12 22:44:24 +00002612ac_cv_prog_cxx_g=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002613fi
Benny Prijono0b462322008-03-12 22:44:24 +00002614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002615fi
Benny Prijono0b462322008-03-12 22:44:24 +00002616echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2617echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002618if test "$ac_test_CXXFLAGS" = set; then
2619 CXXFLAGS=$ac_save_CXXFLAGS
2620elif test $ac_cv_prog_cxx_g = yes; then
2621 if test "$GXX" = yes; then
2622 CXXFLAGS="-g -O2"
2623 else
2624 CXXFLAGS="-g"
2625 fi
2626else
2627 if test "$GXX" = yes; then
2628 CXXFLAGS="-O2"
2629 else
2630 CXXFLAGS=
2631 fi
2632fi
Benny Prijono0b462322008-03-12 22:44:24 +00002633for ac_declaration in \
2634 '' \
2635 'extern "C" void std::exit (int) throw (); using std::exit;' \
2636 'extern "C" void std::exit (int); using std::exit;' \
2637 'extern "C" void exit (int) throw ();' \
2638 'extern "C" void exit (int);' \
2639 'void exit (int);'
2640do
2641 cat >conftest.$ac_ext <<_ACEOF
2642/* confdefs.h. */
2643_ACEOF
2644cat confdefs.h >>conftest.$ac_ext
2645cat >>conftest.$ac_ext <<_ACEOF
2646/* end confdefs.h. */
2647$ac_declaration
2648#include <stdlib.h>
2649int
2650main ()
2651{
2652exit (42);
2653 ;
2654 return 0;
2655}
2656_ACEOF
2657rm -f conftest.$ac_objext
2658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>conftest.er1
2660 ac_status=$?
2661 grep -v '^ *+' conftest.er1 >conftest.err
2662 rm -f conftest.er1
2663 cat conftest.err >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try='test -z "$ac_cxx_werror_flag"
2667 || test ! -s conftest.err'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 (eval $ac_try) 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; } &&
2673 { ac_try='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 (eval $ac_try) 2>&5
2676 ac_status=$?
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2679 :
2680else
2681 echo "$as_me: failed program was:" >&5
2682sed 's/^/| /' conftest.$ac_ext >&5
2683
2684continue
2685fi
2686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687 cat >conftest.$ac_ext <<_ACEOF
2688/* confdefs.h. */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
2692/* end confdefs.h. */
2693$ac_declaration
2694int
2695main ()
2696{
2697exit (42);
2698 ;
2699 return 0;
2700}
2701_ACEOF
2702rm -f conftest.$ac_objext
2703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704 (eval $ac_compile) 2>conftest.er1
2705 ac_status=$?
2706 grep -v '^ *+' conftest.er1 >conftest.err
2707 rm -f conftest.er1
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try='test -z "$ac_cxx_werror_flag"
2712 || test ! -s conftest.err'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 (eval $ac_try) 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; } &&
2718 { ac_try='test -s conftest.$ac_objext'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 (eval $ac_try) 2>&5
2721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; }; then
2724 break
2725else
2726 echo "$as_me: failed program was:" >&5
2727sed 's/^/| /' conftest.$ac_ext >&5
2728
2729fi
2730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731done
2732rm -f conftest*
2733if test -n "$ac_declaration"; then
2734 echo '#ifdef __cplusplus' >>confdefs.h
2735 echo $ac_declaration >>confdefs.h
2736 echo '#endif' >>confdefs.h
2737fi
2738
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002739ac_ext=c
2740ac_cpp='$CPP $CPPFLAGS'
2741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002745ac_ext=c
2746ac_cpp='$CPP $CPPFLAGS'
2747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002751
2752
Benny Prijono53847a32007-09-24 16:10:13 +00002753case $target in
2754 *mingw* | *cygw* | *win32* | *w32* )
2755 ac_pjdir=`pwd -W`
2756 ;;
2757 *)
2758 ac_pjdir=`pwd`
2759 ;;
2760esac
Benny Prijono12483112007-03-12 10:44:38 +00002761
2762
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002763
Benny Prijono0b462322008-03-12 22:44:24 +00002764echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2765echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002766if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2768else
2769 ac_check_lib_save_LIBS=$LIBS
2770LIBS="-lpthread $LIBS"
2771cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002772/* confdefs.h. */
2773_ACEOF
2774cat confdefs.h >>conftest.$ac_ext
2775cat >>conftest.$ac_ext <<_ACEOF
2776/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002777
Benny Prijono0b462322008-03-12 22:44:24 +00002778/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002779#ifdef __cplusplus
2780extern "C"
2781#endif
Benny Prijono0b462322008-03-12 22:44:24 +00002782/* We use char because int might match the return type of a gcc2
2783 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002784char pthread_create ();
2785int
2786main ()
2787{
Benny Prijono0b462322008-03-12 22:44:24 +00002788pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002789 ;
2790 return 0;
2791}
2792_ACEOF
2793rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00002794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2795 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002796 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002797 grep -v '^ *+' conftest.er1 >conftest.err
2798 rm -f conftest.er1
2799 cat conftest.err >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002801 (exit $ac_status); } &&
2802 { ac_try='test -z "$ac_c_werror_flag"
2803 || test ! -s conftest.err'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; } &&
2809 { ac_try='test -s conftest$ac_exeext'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002815 ac_cv_lib_pthread_pthread_create=yes
2816else
2817 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002818sed 's/^/| /' conftest.$ac_ext >&5
2819
Benny Prijono0b462322008-03-12 22:44:24 +00002820ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002821fi
Benny Prijono0b462322008-03-12 22:44:24 +00002822rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002823 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002824LIBS=$ac_check_lib_save_LIBS
2825fi
Benny Prijono0b462322008-03-12 22:44:24 +00002826echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2827echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002828if test $ac_cv_lib_pthread_pthread_create = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002829 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002830#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002831_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002832
2833 LIBS="-lpthread $LIBS"
2834
2835fi
2836
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002837
Benny Prijono0b462322008-03-12 22:44:24 +00002838echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5
2839echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002840if test "${ac_cv_lib_wsock32_puts+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2842else
2843 ac_check_lib_save_LIBS=$LIBS
2844LIBS="-lwsock32 $LIBS"
2845cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002846/* confdefs.h. */
2847_ACEOF
2848cat confdefs.h >>conftest.$ac_ext
2849cat >>conftest.$ac_ext <<_ACEOF
2850/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002851
Benny Prijono0b462322008-03-12 22:44:24 +00002852/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002853#ifdef __cplusplus
2854extern "C"
2855#endif
Benny Prijono0b462322008-03-12 22:44:24 +00002856/* We use char because int might match the return type of a gcc2
2857 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002858char puts ();
2859int
2860main ()
2861{
Benny Prijono0b462322008-03-12 22:44:24 +00002862puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002863 ;
2864 return 0;
2865}
2866_ACEOF
2867rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00002868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2869 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002870 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002871 grep -v '^ *+' conftest.er1 >conftest.err
2872 rm -f conftest.er1
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002875 (exit $ac_status); } &&
2876 { ac_try='test -z "$ac_c_werror_flag"
2877 || test ! -s conftest.err'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 (eval $ac_try) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; } &&
2883 { ac_try='test -s conftest$ac_exeext'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002889 ac_cv_lib_wsock32_puts=yes
2890else
2891 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002892sed 's/^/| /' conftest.$ac_ext >&5
2893
Benny Prijono0b462322008-03-12 22:44:24 +00002894ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002895fi
Benny Prijono0b462322008-03-12 22:44:24 +00002896rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002897 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002898LIBS=$ac_check_lib_save_LIBS
2899fi
Benny Prijono0b462322008-03-12 22:44:24 +00002900echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5
2901echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002902if test $ac_cv_lib_wsock32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002903 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002904#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002905_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002906
2907 LIBS="-lwsock32 $LIBS"
2908
2909fi
2910
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002911
Benny Prijono0b462322008-03-12 22:44:24 +00002912echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5
2913echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002914if test "${ac_cv_lib_ws2_32_puts+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916else
2917 ac_check_lib_save_LIBS=$LIBS
2918LIBS="-lws2_32 $LIBS"
2919cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002920/* confdefs.h. */
2921_ACEOF
2922cat confdefs.h >>conftest.$ac_ext
2923cat >>conftest.$ac_ext <<_ACEOF
2924/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002925
Benny Prijono0b462322008-03-12 22:44:24 +00002926/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002927#ifdef __cplusplus
2928extern "C"
2929#endif
Benny Prijono0b462322008-03-12 22:44:24 +00002930/* We use char because int might match the return type of a gcc2
2931 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002932char puts ();
2933int
2934main ()
2935{
Benny Prijono0b462322008-03-12 22:44:24 +00002936puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002937 ;
2938 return 0;
2939}
2940_ACEOF
2941rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00002942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2943 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002944 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002945 grep -v '^ *+' conftest.er1 >conftest.err
2946 rm -f conftest.er1
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00002949 (exit $ac_status); } &&
2950 { ac_try='test -z "$ac_c_werror_flag"
2951 || test ! -s conftest.err'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 (eval $ac_try) 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; } &&
2957 { ac_try='test -s conftest$ac_exeext'
2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 (eval $ac_try) 2>&5
2960 ac_status=$?
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002963 ac_cv_lib_ws2_32_puts=yes
2964else
2965 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002966sed 's/^/| /' conftest.$ac_ext >&5
2967
Benny Prijono0b462322008-03-12 22:44:24 +00002968ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002969fi
Benny Prijono0b462322008-03-12 22:44:24 +00002970rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002971 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002972LIBS=$ac_check_lib_save_LIBS
2973fi
Benny Prijono0b462322008-03-12 22:44:24 +00002974echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5
2975echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002976if test $ac_cv_lib_ws2_32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002977 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002978#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002979_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002980
2981 LIBS="-lws2_32 $LIBS"
2982
2983fi
2984
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002985
Benny Prijono0b462322008-03-12 22:44:24 +00002986echo "$as_me:$LINENO: checking for puts in -lole32" >&5
2987echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002988if test "${ac_cv_lib_ole32_puts+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990else
2991 ac_check_lib_save_LIBS=$LIBS
2992LIBS="-lole32 $LIBS"
2993cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002994/* confdefs.h. */
2995_ACEOF
2996cat confdefs.h >>conftest.$ac_ext
2997cat >>conftest.$ac_ext <<_ACEOF
2998/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002999
Benny Prijono0b462322008-03-12 22:44:24 +00003000/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003001#ifdef __cplusplus
3002extern "C"
3003#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003004/* We use char because int might match the return type of a gcc2
3005 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003006char puts ();
3007int
3008main ()
3009{
Benny Prijono0b462322008-03-12 22:44:24 +00003010puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003011 ;
3012 return 0;
3013}
3014_ACEOF
3015rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3017 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003018 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003019 grep -v '^ *+' conftest.er1 >conftest.err
3020 rm -f conftest.er1
3021 cat conftest.err >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003023 (exit $ac_status); } &&
3024 { ac_try='test -z "$ac_c_werror_flag"
3025 || test ! -s conftest.err'
3026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 (eval $ac_try) 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; } &&
3031 { ac_try='test -s conftest$ac_exeext'
3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033 (eval $ac_try) 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003037 ac_cv_lib_ole32_puts=yes
3038else
3039 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003040sed 's/^/| /' conftest.$ac_ext >&5
3041
Benny Prijono0b462322008-03-12 22:44:24 +00003042ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003043fi
Benny Prijono0b462322008-03-12 22:44:24 +00003044rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003045 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003046LIBS=$ac_check_lib_save_LIBS
3047fi
Benny Prijono0b462322008-03-12 22:44:24 +00003048echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5
3049echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003050if test $ac_cv_lib_ole32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003051 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003052#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003053_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003054
3055 LIBS="-lole32 $LIBS"
3056
3057fi
3058
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003059
Benny Prijono0b462322008-03-12 22:44:24 +00003060echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5
3061echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003062if test "${ac_cv_lib_winmm_puts+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3064else
3065 ac_check_lib_save_LIBS=$LIBS
3066LIBS="-lwinmm $LIBS"
3067cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003068/* confdefs.h. */
3069_ACEOF
3070cat confdefs.h >>conftest.$ac_ext
3071cat >>conftest.$ac_ext <<_ACEOF
3072/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003073
Benny Prijono0b462322008-03-12 22:44:24 +00003074/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003075#ifdef __cplusplus
3076extern "C"
3077#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003078/* We use char because int might match the return type of a gcc2
3079 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003080char puts ();
3081int
3082main ()
3083{
Benny Prijono0b462322008-03-12 22:44:24 +00003084puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003085 ;
3086 return 0;
3087}
3088_ACEOF
3089rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3091 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003092 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003097 (exit $ac_status); } &&
3098 { ac_try='test -z "$ac_c_werror_flag"
3099 || test ! -s conftest.err'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 (eval $ac_try) 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest$ac_exeext'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 (eval $ac_try) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003111 ac_cv_lib_winmm_puts=yes
3112else
3113 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003114sed 's/^/| /' conftest.$ac_ext >&5
3115
Benny Prijono0b462322008-03-12 22:44:24 +00003116ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003117fi
Benny Prijono0b462322008-03-12 22:44:24 +00003118rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003119 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003120LIBS=$ac_check_lib_save_LIBS
3121fi
Benny Prijono0b462322008-03-12 22:44:24 +00003122echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5
3123echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003124if test $ac_cv_lib_winmm_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003125 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003126#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003127_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003128
3129 LIBS="-lwinmm $LIBS"
3130
3131fi
3132
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003133
Benny Prijono0b462322008-03-12 22:44:24 +00003134echo "$as_me:$LINENO: checking for puts in -lsocket" >&5
3135echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003136if test "${ac_cv_lib_socket_puts+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3138else
3139 ac_check_lib_save_LIBS=$LIBS
3140LIBS="-lsocket $LIBS"
3141cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003142/* confdefs.h. */
3143_ACEOF
3144cat confdefs.h >>conftest.$ac_ext
3145cat >>conftest.$ac_ext <<_ACEOF
3146/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003147
Benny Prijono0b462322008-03-12 22:44:24 +00003148/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003149#ifdef __cplusplus
3150extern "C"
3151#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003152/* We use char because int might match the return type of a gcc2
3153 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003154char puts ();
3155int
3156main ()
3157{
Benny Prijono0b462322008-03-12 22:44:24 +00003158puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003159 ;
3160 return 0;
3161}
3162_ACEOF
3163rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3165 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003166 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003167 grep -v '^ *+' conftest.er1 >conftest.err
3168 rm -f conftest.er1
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003171 (exit $ac_status); } &&
3172 { ac_try='test -z "$ac_c_werror_flag"
3173 || test ! -s conftest.err'
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175 (eval $ac_try) 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; } &&
3179 { ac_try='test -s conftest$ac_exeext'
3180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 (eval $ac_try) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003185 ac_cv_lib_socket_puts=yes
3186else
3187 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003188sed 's/^/| /' conftest.$ac_ext >&5
3189
Benny Prijono0b462322008-03-12 22:44:24 +00003190ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003191fi
Benny Prijono0b462322008-03-12 22:44:24 +00003192rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003193 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003194LIBS=$ac_check_lib_save_LIBS
3195fi
Benny Prijono0b462322008-03-12 22:44:24 +00003196echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5
3197echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003198if test $ac_cv_lib_socket_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003199 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003200#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003201_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003202
3203 LIBS="-lsocket $LIBS"
3204
3205fi
3206
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003207
Benny Prijono0b462322008-03-12 22:44:24 +00003208echo "$as_me:$LINENO: checking for puts in -lrt" >&5
3209echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003210if test "${ac_cv_lib_rt_puts+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3212else
3213 ac_check_lib_save_LIBS=$LIBS
3214LIBS="-lrt $LIBS"
3215cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003216/* confdefs.h. */
3217_ACEOF
3218cat confdefs.h >>conftest.$ac_ext
3219cat >>conftest.$ac_ext <<_ACEOF
3220/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003221
Benny Prijono0b462322008-03-12 22:44:24 +00003222/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003223#ifdef __cplusplus
3224extern "C"
3225#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003226/* We use char because int might match the return type of a gcc2
3227 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003228char puts ();
3229int
3230main ()
3231{
Benny Prijono0b462322008-03-12 22:44:24 +00003232puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003233 ;
3234 return 0;
3235}
3236_ACEOF
3237rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3239 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003240 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003241 grep -v '^ *+' conftest.er1 >conftest.err
3242 rm -f conftest.er1
3243 cat conftest.err >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003245 (exit $ac_status); } &&
3246 { ac_try='test -z "$ac_c_werror_flag"
3247 || test ! -s conftest.err'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try='test -s conftest$ac_exeext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003259 ac_cv_lib_rt_puts=yes
3260else
3261 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003262sed 's/^/| /' conftest.$ac_ext >&5
3263
Benny Prijono0b462322008-03-12 22:44:24 +00003264ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003265fi
Benny Prijono0b462322008-03-12 22:44:24 +00003266rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003267 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003268LIBS=$ac_check_lib_save_LIBS
3269fi
Benny Prijono0b462322008-03-12 22:44:24 +00003270echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5
3271echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003272if test $ac_cv_lib_rt_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003273 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003274#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003275_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003276
3277 LIBS="-lrt $LIBS"
3278
3279fi
3280
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003281
Benny Prijono0b462322008-03-12 22:44:24 +00003282echo "$as_me:$LINENO: checking for puts in -lnsl" >&5
3283echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003284if test "${ac_cv_lib_nsl_puts+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286else
3287 ac_check_lib_save_LIBS=$LIBS
3288LIBS="-lnsl $LIBS"
3289cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003290/* confdefs.h. */
3291_ACEOF
3292cat confdefs.h >>conftest.$ac_ext
3293cat >>conftest.$ac_ext <<_ACEOF
3294/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003295
Benny Prijono0b462322008-03-12 22:44:24 +00003296/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003297#ifdef __cplusplus
3298extern "C"
3299#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003300/* We use char because int might match the return type of a gcc2
3301 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003302char puts ();
3303int
3304main ()
3305{
Benny Prijono0b462322008-03-12 22:44:24 +00003306puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003307 ;
3308 return 0;
3309}
3310_ACEOF
3311rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3313 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003314 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003315 grep -v '^ *+' conftest.er1 >conftest.err
3316 rm -f conftest.er1
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003319 (exit $ac_status); } &&
3320 { ac_try='test -z "$ac_c_werror_flag"
3321 || test ! -s conftest.err'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 (eval $ac_try) 2>&5
3324 ac_status=$?
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; } &&
3327 { ac_try='test -s conftest$ac_exeext'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 (eval $ac_try) 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003333 ac_cv_lib_nsl_puts=yes
3334else
3335 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003336sed 's/^/| /' conftest.$ac_ext >&5
3337
Benny Prijono0b462322008-03-12 22:44:24 +00003338ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003339fi
Benny Prijono0b462322008-03-12 22:44:24 +00003340rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003341 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003342LIBS=$ac_check_lib_save_LIBS
3343fi
Benny Prijono0b462322008-03-12 22:44:24 +00003344echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5
3345echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003346if test $ac_cv_lib_nsl_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003347 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003348#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003349_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003350
3351 LIBS="-lnsl $LIBS"
3352
3353fi
3354
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003355
Benny Prijono0b462322008-03-12 22:44:24 +00003356echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3357echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003358if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
3361 ac_check_lib_save_LIBS=$LIBS
3362LIBS="-luuid $LIBS"
3363cat >conftest.$ac_ext <<_ACEOF
3364/* confdefs.h. */
3365_ACEOF
3366cat confdefs.h >>conftest.$ac_ext
3367cat >>conftest.$ac_ext <<_ACEOF
3368/* end confdefs.h. */
3369
Benny Prijono0b462322008-03-12 22:44:24 +00003370/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003371#ifdef __cplusplus
3372extern "C"
3373#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003374/* We use char because int might match the return type of a gcc2
3375 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003376char uuid_generate ();
3377int
3378main ()
3379{
Benny Prijono0b462322008-03-12 22:44:24 +00003380uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003381 ;
3382 return 0;
3383}
3384_ACEOF
3385rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3387 (eval $ac_link) 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00003388 ac_status=$?
3389 grep -v '^ *+' conftest.er1 >conftest.err
3390 rm -f conftest.er1
3391 cat conftest.err >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003393 (exit $ac_status); } &&
3394 { ac_try='test -z "$ac_c_werror_flag"
3395 || test ! -s conftest.err'
3396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397 (eval $ac_try) 2>&5
3398 ac_status=$?
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; } &&
3401 { ac_try='test -s conftest$ac_exeext'
3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403 (eval $ac_try) 2>&5
3404 ac_status=$?
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; }; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003407 ac_cv_lib_uuid_uuid_generate=yes
3408else
3409 echo "$as_me: failed program was:" >&5
3410sed 's/^/| /' conftest.$ac_ext >&5
3411
Benny Prijono0b462322008-03-12 22:44:24 +00003412ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003413fi
Benny Prijono0b462322008-03-12 22:44:24 +00003414rm -f conftest.err conftest.$ac_objext \
Benny Prijono4e48b512007-05-16 13:41:00 +00003415 conftest$ac_exeext conftest.$ac_ext
3416LIBS=$ac_check_lib_save_LIBS
3417fi
Benny Prijono0b462322008-03-12 22:44:24 +00003418echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3419echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003420if test $ac_cv_lib_uuid_uuid_generate = yes; then
3421 cat >>confdefs.h <<_ACEOF
3422#define HAVE_LIBUUID 1
3423_ACEOF
3424
3425 LIBS="-luuid $LIBS"
3426
3427fi
3428
Benny Prijono0b462322008-03-12 22:44:24 +00003429echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3430echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003431if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3433else
3434 ac_check_lib_save_LIBS=$LIBS
3435LIBS="-luuid $LIBS"
3436cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h. */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h. */
3442
Benny Prijono0b462322008-03-12 22:44:24 +00003443/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003444#ifdef __cplusplus
3445extern "C"
3446#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003447/* We use char because int might match the return type of a gcc2
3448 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003449char uuid_generate ();
3450int
3451main ()
3452{
Benny Prijono0b462322008-03-12 22:44:24 +00003453uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003454 ;
3455 return 0;
3456}
3457_ACEOF
3458rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3460 (eval $ac_link) 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00003461 ac_status=$?
3462 grep -v '^ *+' conftest.er1 >conftest.err
3463 rm -f conftest.er1
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003466 (exit $ac_status); } &&
3467 { ac_try='test -z "$ac_c_werror_flag"
3468 || test ! -s conftest.err'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; } &&
3474 { ac_try='test -s conftest$ac_exeext'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; }; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003480 ac_cv_lib_uuid_uuid_generate=yes
3481else
3482 echo "$as_me: failed program was:" >&5
3483sed 's/^/| /' conftest.$ac_ext >&5
3484
Benny Prijono0b462322008-03-12 22:44:24 +00003485ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003486fi
Benny Prijono0b462322008-03-12 22:44:24 +00003487rm -f conftest.err conftest.$ac_objext \
Benny Prijono4e48b512007-05-16 13:41:00 +00003488 conftest$ac_exeext conftest.$ac_ext
3489LIBS=$ac_check_lib_save_LIBS
3490fi
Benny Prijono0b462322008-03-12 22:44:24 +00003491echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3492echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003493if test $ac_cv_lib_uuid_uuid_generate = yes; then
3494 ac_has_uuid_lib=1
3495fi
3496
3497
Benny Prijono0b462322008-03-12 22:44:24 +00003498echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5
3499echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003500cat >>confdefs.h <<_ACEOF
3501#define PJ_M_NAME "$target_cpu"
3502_ACEOF
3503
3504
Benny Prijono0b462322008-03-12 22:44:24 +00003505echo "$as_me:$LINENO: checking memory alignment" >&5
3506echo $ECHO_N "checking memory alignment... $ECHO_C" >&6
Benny Prijono1d971622006-09-10 22:27:40 +00003507case $target in
3508 ia64-* | x86_64-* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003509 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003510#define PJ_POOL_ALIGNMENT 8
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003511_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003512
Benny Prijono0b462322008-03-12 22:44:24 +00003513 echo "$as_me:$LINENO: result: 8 bytes" >&5
3514echo "${ECHO_T}8 bytes" >&6
Benny Prijono1d971622006-09-10 22:27:40 +00003515 ;;
3516 * )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003517 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003518#define PJ_POOL_ALIGNMENT 4
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003519_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003520
Benny Prijono0b462322008-03-12 22:44:24 +00003521 echo "$as_me:$LINENO: result: 4 bytes (default)" >&5
3522echo "${ECHO_T}4 bytes (default)" >&6
Benny Prijono1d971622006-09-10 22:27:40 +00003523 ;;
3524esac
3525
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003526
Benny Prijono0b462322008-03-12 22:44:24 +00003527echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3528echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003529if test "${ac_cv_c_bigendian+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003532 # See if sys/param.h defines the BYTE_ORDER macro.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003533cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003534/* confdefs.h. */
3535_ACEOF
3536cat confdefs.h >>conftest.$ac_ext
3537cat >>conftest.$ac_ext <<_ACEOF
3538/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003539#include <sys/types.h>
3540#include <sys/param.h>
3541
3542int
3543main ()
3544{
Benny Prijono0b462322008-03-12 22:44:24 +00003545#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003546 bogus endian macros
3547#endif
3548
3549 ;
3550 return 0;
3551}
3552_ACEOF
3553rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00003554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3555 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003556 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003557 grep -v '^ *+' conftest.er1 >conftest.err
3558 rm -f conftest.er1
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003561 (exit $ac_status); } &&
3562 { ac_try='test -z "$ac_c_werror_flag"
3563 || test ! -s conftest.err'
3564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565 (eval $ac_try) 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; } &&
3569 { ac_try='test -s conftest.$ac_objext'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 (eval $ac_try) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003575 # It does; now see whether it defined to BIG_ENDIAN or not.
3576cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003577/* confdefs.h. */
3578_ACEOF
3579cat confdefs.h >>conftest.$ac_ext
3580cat >>conftest.$ac_ext <<_ACEOF
3581/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003582#include <sys/types.h>
3583#include <sys/param.h>
3584
3585int
3586main ()
3587{
3588#if BYTE_ORDER != BIG_ENDIAN
3589 not big endian
3590#endif
3591
3592 ;
3593 return 0;
3594}
3595_ACEOF
3596rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00003597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3598 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003599 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003600 grep -v '^ *+' conftest.er1 >conftest.err
3601 rm -f conftest.er1
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003604 (exit $ac_status); } &&
3605 { ac_try='test -z "$ac_c_werror_flag"
3606 || test ! -s conftest.err'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 (eval $ac_try) 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; } &&
3612 { ac_try='test -s conftest.$ac_objext'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 (eval $ac_try) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003618 ac_cv_c_bigendian=yes
3619else
3620 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003621sed 's/^/| /' conftest.$ac_ext >&5
3622
Benny Prijono0b462322008-03-12 22:44:24 +00003623ac_cv_c_bigendian=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003624fi
Benny Prijono0b462322008-03-12 22:44:24 +00003625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003626else
3627 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003628sed 's/^/| /' conftest.$ac_ext >&5
3629
Benny Prijono0b462322008-03-12 22:44:24 +00003630# It does not; compile a test program.
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003631if test "$cross_compiling" = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003632 # try to guess the endianness by grepping values into an object file
3633 ac_cv_c_bigendian=unknown
3634 cat >conftest.$ac_ext <<_ACEOF
3635/* confdefs.h. */
3636_ACEOF
3637cat confdefs.h >>conftest.$ac_ext
3638cat >>conftest.$ac_ext <<_ACEOF
3639/* end confdefs.h. */
Benny Prijono0b462322008-03-12 22:44:24 +00003640short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3641short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003642void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Benny Prijono0b462322008-03-12 22:44:24 +00003643short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3644short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003645void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3646int
3647main ()
3648{
3649 _ascii (); _ebcdic ();
3650 ;
3651 return 0;
3652}
3653_ACEOF
3654rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00003655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3656 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003657 ac_status=$?
3658 grep -v '^ *+' conftest.er1 >conftest.err
3659 rm -f conftest.er1
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003662 (exit $ac_status); } &&
3663 { ac_try='test -z "$ac_c_werror_flag"
3664 || test ! -s conftest.err'
3665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 (eval $ac_try) 2>&5
3667 ac_status=$?
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; } &&
3670 { ac_try='test -s conftest.$ac_objext'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003676 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3677 ac_cv_c_bigendian=yes
3678fi
3679if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3680 if test "$ac_cv_c_bigendian" = unknown; then
3681 ac_cv_c_bigendian=no
3682 else
3683 # finding both strings is unlikely to happen, but who knows?
3684 ac_cv_c_bigendian=unknown
3685 fi
3686fi
3687else
3688 echo "$as_me: failed program was:" >&5
3689sed 's/^/| /' conftest.$ac_ext >&5
3690
3691fi
Benny Prijono0b462322008-03-12 22:44:24 +00003692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003693else
3694 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003695/* confdefs.h. */
3696_ACEOF
3697cat confdefs.h >>conftest.$ac_ext
3698cat >>conftest.$ac_ext <<_ACEOF
3699/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003700int
3701main ()
3702{
3703 /* Are we little or big endian? From Harbison&Steele. */
3704 union
3705 {
Benny Prijono0b462322008-03-12 22:44:24 +00003706 long l;
3707 char c[sizeof (long)];
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003708 } u;
3709 u.l = 1;
Benny Prijono0b462322008-03-12 22:44:24 +00003710 exit (u.c[sizeof (long) - 1] == 1);
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003711}
3712_ACEOF
3713rm -f conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3715 (eval $ac_link) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003716 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Benny Prijono0b462322008-03-12 22:44:24 +00003719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 (eval $ac_try) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003721 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003723 (exit $ac_status); }; }; then
3724 ac_cv_c_bigendian=no
3725else
3726 echo "$as_me: program exited with status $ac_status" >&5
3727echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003728sed 's/^/| /' conftest.$ac_ext >&5
3729
3730( exit $ac_status )
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003731ac_cv_c_bigendian=yes
3732fi
Benny Prijono0b462322008-03-12 22:44:24 +00003733rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003734fi
3735fi
Benny Prijono0b462322008-03-12 22:44:24 +00003736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003737fi
Benny Prijono0b462322008-03-12 22:44:24 +00003738echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3739echo "${ECHO_T}$ac_cv_c_bigendian" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003740case $ac_cv_c_bigendian in
3741 yes)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003742
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003743cat >>confdefs.h <<\_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003744#define WORDS_BIGENDIAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003745_ACEOF
3746 ;;
3747 no)
3748 ;;
3749 *)
3750 { { echo "$as_me:$LINENO: error: unknown endianness
3751presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3752echo "$as_me: error: unknown endianness
3753presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3754 { (exit 1); exit 1; }; } ;;
3755esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003756
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003757
3758case $target in
3759 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003760 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003761#define PJ_WIN32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003762_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003763
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003764 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003765#define PJ_WIN32_WINNT 0x0400
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003766_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003767
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003768 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003769#define WIN32_LEAN_AND_MEAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003770_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003771
3772 ;;
3773 *darwin*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003774 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003775#define PJ_DARWINOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003776_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003777
3778 ;;
3779 *linux*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003780 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003781#define PJ_LINUX 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003782_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003783
3784 ;;
3785 *rtems*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003786 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003787#define PJ_RTEMS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003788_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003789
3790 ;;
3791 *sunos* | *solaris* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003792 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003793#define PJ_SUNOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003794_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003795
3796 ;;
3797 *)
3798 ;;
3799esac
3800
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003801
3802
3803
Benny Prijono0b462322008-03-12 22:44:24 +00003804# Check whether --enable-floating-point or --disable-floating-point was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003805if test "${enable_floating_point+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00003806 enableval="$enable_floating_point"
3807 if test "$enable_floating_point" = "no"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003808 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003809#define PJ_HAS_FLOATING_POINT 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003810_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003811
Benny Prijono0b462322008-03-12 22:44:24 +00003812 echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5
3813echo "${ECHO_T}Checking if floating point is disabled... yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003814 fi
3815else
3816
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003817 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003818#define PJ_HAS_FLOATING_POINT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003819_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003820
Benny Prijono0b462322008-03-12 22:44:24 +00003821 echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5
3822echo "${ECHO_T}Checking if floating point is disabled... no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003823
Benny Prijono0b462322008-03-12 22:44:24 +00003824echo "$as_me:$LINENO: checking for fmod in -lm" >&5
3825echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003826if test "${ac_cv_lib_m_fmod+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828else
3829 ac_check_lib_save_LIBS=$LIBS
3830LIBS="-lm $LIBS"
3831cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003832/* confdefs.h. */
3833_ACEOF
3834cat confdefs.h >>conftest.$ac_ext
3835cat >>conftest.$ac_ext <<_ACEOF
3836/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003837
Benny Prijono0b462322008-03-12 22:44:24 +00003838/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003839#ifdef __cplusplus
3840extern "C"
3841#endif
Benny Prijono0b462322008-03-12 22:44:24 +00003842/* We use char because int might match the return type of a gcc2
3843 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003844char fmod ();
3845int
3846main ()
3847{
Benny Prijono0b462322008-03-12 22:44:24 +00003848fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003849 ;
3850 return 0;
3851}
3852_ACEOF
3853rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +00003854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3855 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003856 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003857 grep -v '^ *+' conftest.er1 >conftest.err
3858 rm -f conftest.er1
3859 cat conftest.err >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00003861 (exit $ac_status); } &&
3862 { ac_try='test -z "$ac_c_werror_flag"
3863 || test ! -s conftest.err'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 (eval $ac_try) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; } &&
3869 { ac_try='test -s conftest$ac_exeext'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 (eval $ac_try) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003875 ac_cv_lib_m_fmod=yes
3876else
3877 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003878sed 's/^/| /' conftest.$ac_ext >&5
3879
Benny Prijono0b462322008-03-12 22:44:24 +00003880ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003881fi
Benny Prijono0b462322008-03-12 22:44:24 +00003882rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003883 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003884LIBS=$ac_check_lib_save_LIBS
3885fi
Benny Prijono0b462322008-03-12 22:44:24 +00003886echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
3887echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003888if test $ac_cv_lib_m_fmod = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003889 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003890#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003891_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003892
3893 LIBS="-lm $LIBS"
3894
3895fi
3896
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003897
Benny Prijono0b462322008-03-12 22:44:24 +00003898fi;
3899
3900
3901ac_ext=c
3902ac_cpp='$CPP $CPPFLAGS'
3903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3907echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3908# On Suns, sometimes $CPP names a directory.
3909if test -n "$CPP" && test -d "$CPP"; then
3910 CPP=
3911fi
3912if test -z "$CPP"; then
3913 if test "${ac_cv_prog_CPP+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915else
3916 # Double quotes because CPP needs to be expanded
3917 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3918 do
3919 ac_preproc_ok=false
3920for ac_c_preproc_warn_flag in '' yes
3921do
3922 # Use a header file that comes with gcc, so configuring glibc
3923 # with a fresh cross-compiler works.
3924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3925 # <limits.h> exists even on freestanding compilers.
3926 # On the NeXT, cc -E runs the code through the compiler's parser,
3927 # not just through cpp. "Syntax error" is here to catch this case.
3928 cat >conftest.$ac_ext <<_ACEOF
3929/* confdefs.h. */
3930_ACEOF
3931cat confdefs.h >>conftest.$ac_ext
3932cat >>conftest.$ac_ext <<_ACEOF
3933/* end confdefs.h. */
3934#ifdef __STDC__
3935# include <limits.h>
3936#else
3937# include <assert.h>
3938#endif
3939 Syntax error
3940_ACEOF
3941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3943 ac_status=$?
3944 grep -v '^ *+' conftest.er1 >conftest.err
3945 rm -f conftest.er1
3946 cat conftest.err >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } >/dev/null; then
3949 if test -s conftest.err; then
3950 ac_cpp_err=$ac_c_preproc_warn_flag
3951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3952 else
3953 ac_cpp_err=
3954 fi
3955else
3956 ac_cpp_err=yes
3957fi
3958if test -z "$ac_cpp_err"; then
3959 :
3960else
3961 echo "$as_me: failed program was:" >&5
3962sed 's/^/| /' conftest.$ac_ext >&5
3963
3964 # Broken: fails on valid input.
3965continue
3966fi
3967rm -f conftest.err conftest.$ac_ext
3968
3969 # OK, works on sane cases. Now check whether non-existent headers
3970 # can be detected and how.
3971 cat >conftest.$ac_ext <<_ACEOF
3972/* confdefs.h. */
3973_ACEOF
3974cat confdefs.h >>conftest.$ac_ext
3975cat >>conftest.$ac_ext <<_ACEOF
3976/* end confdefs.h. */
3977#include <ac_nonexistent.h>
3978_ACEOF
3979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3981 ac_status=$?
3982 grep -v '^ *+' conftest.er1 >conftest.err
3983 rm -f conftest.er1
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } >/dev/null; then
3987 if test -s conftest.err; then
3988 ac_cpp_err=$ac_c_preproc_warn_flag
3989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3990 else
3991 ac_cpp_err=
3992 fi
3993else
3994 ac_cpp_err=yes
3995fi
3996if test -z "$ac_cpp_err"; then
3997 # Broken: success on invalid input.
3998continue
3999else
4000 echo "$as_me: failed program was:" >&5
4001sed 's/^/| /' conftest.$ac_ext >&5
4002
4003 # Passes both tests.
4004ac_preproc_ok=:
4005break
4006fi
4007rm -f conftest.err conftest.$ac_ext
4008
4009done
4010# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4011rm -f conftest.err conftest.$ac_ext
4012if $ac_preproc_ok; then
4013 break
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004014fi
4015
Benny Prijono0b462322008-03-12 22:44:24 +00004016 done
4017 ac_cv_prog_CPP=$CPP
4018
4019fi
4020 CPP=$ac_cv_prog_CPP
4021else
4022 ac_cv_prog_CPP=$CPP
4023fi
4024echo "$as_me:$LINENO: result: $CPP" >&5
4025echo "${ECHO_T}$CPP" >&6
4026ac_preproc_ok=false
4027for ac_c_preproc_warn_flag in '' yes
4028do
4029 # Use a header file that comes with gcc, so configuring glibc
4030 # with a fresh cross-compiler works.
4031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4032 # <limits.h> exists even on freestanding compilers.
4033 # On the NeXT, cc -E runs the code through the compiler's parser,
4034 # not just through cpp. "Syntax error" is here to catch this case.
4035 cat >conftest.$ac_ext <<_ACEOF
4036/* confdefs.h. */
4037_ACEOF
4038cat confdefs.h >>conftest.$ac_ext
4039cat >>conftest.$ac_ext <<_ACEOF
4040/* end confdefs.h. */
4041#ifdef __STDC__
4042# include <limits.h>
4043#else
4044# include <assert.h>
4045#endif
4046 Syntax error
4047_ACEOF
4048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4050 ac_status=$?
4051 grep -v '^ *+' conftest.er1 >conftest.err
4052 rm -f conftest.er1
4053 cat conftest.err >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); } >/dev/null; then
4056 if test -s conftest.err; then
4057 ac_cpp_err=$ac_c_preproc_warn_flag
4058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4059 else
4060 ac_cpp_err=
4061 fi
4062else
4063 ac_cpp_err=yes
4064fi
4065if test -z "$ac_cpp_err"; then
4066 :
4067else
4068 echo "$as_me: failed program was:" >&5
4069sed 's/^/| /' conftest.$ac_ext >&5
4070
4071 # Broken: fails on valid input.
4072continue
4073fi
4074rm -f conftest.err conftest.$ac_ext
4075
4076 # OK, works on sane cases. Now check whether non-existent headers
4077 # can be detected and how.
4078 cat >conftest.$ac_ext <<_ACEOF
4079/* confdefs.h. */
4080_ACEOF
4081cat confdefs.h >>conftest.$ac_ext
4082cat >>conftest.$ac_ext <<_ACEOF
4083/* end confdefs.h. */
4084#include <ac_nonexistent.h>
4085_ACEOF
4086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4088 ac_status=$?
4089 grep -v '^ *+' conftest.er1 >conftest.err
4090 rm -f conftest.er1
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } >/dev/null; then
4094 if test -s conftest.err; then
4095 ac_cpp_err=$ac_c_preproc_warn_flag
4096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4097 else
4098 ac_cpp_err=
4099 fi
4100else
4101 ac_cpp_err=yes
4102fi
4103if test -z "$ac_cpp_err"; then
4104 # Broken: success on invalid input.
4105continue
4106else
4107 echo "$as_me: failed program was:" >&5
4108sed 's/^/| /' conftest.$ac_ext >&5
4109
4110 # Passes both tests.
4111ac_preproc_ok=:
4112break
4113fi
4114rm -f conftest.err conftest.$ac_ext
4115
4116done
4117# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4118rm -f conftest.err conftest.$ac_ext
4119if $ac_preproc_ok; then
4120 :
4121else
4122 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4123See \`config.log' for more details." >&5
4124echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4125See \`config.log' for more details." >&2;}
4126 { (exit 1); exit 1; }; }
4127fi
4128
4129ac_ext=c
4130ac_cpp='$CPP $CPPFLAGS'
4131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133ac_compiler_gnu=$ac_cv_c_compiler_gnu
4134
4135
4136echo "$as_me:$LINENO: checking for egrep" >&5
4137echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4138if test "${ac_cv_prog_egrep+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140else
4141 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4142 then ac_cv_prog_egrep='grep -E'
4143 else ac_cv_prog_egrep='egrep'
4144 fi
4145fi
4146echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4147echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4148 EGREP=$ac_cv_prog_egrep
4149
4150
4151echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4152echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4153if test "${ac_cv_header_stdc+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4155else
4156 cat >conftest.$ac_ext <<_ACEOF
4157/* confdefs.h. */
4158_ACEOF
4159cat confdefs.h >>conftest.$ac_ext
4160cat >>conftest.$ac_ext <<_ACEOF
4161/* end confdefs.h. */
4162#include <stdlib.h>
4163#include <stdarg.h>
4164#include <string.h>
4165#include <float.h>
4166
4167int
4168main ()
4169{
4170
4171 ;
4172 return 0;
4173}
4174_ACEOF
4175rm -f conftest.$ac_objext
4176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177 (eval $ac_compile) 2>conftest.er1
4178 ac_status=$?
4179 grep -v '^ *+' conftest.er1 >conftest.err
4180 rm -f conftest.er1
4181 cat conftest.err >&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } &&
4184 { ac_try='test -z "$ac_c_werror_flag"
4185 || test ! -s conftest.err'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 (eval $ac_try) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; } &&
4191 { ac_try='test -s conftest.$ac_objext'
4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 (eval $ac_try) 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; }; then
4197 ac_cv_header_stdc=yes
4198else
4199 echo "$as_me: failed program was:" >&5
4200sed 's/^/| /' conftest.$ac_ext >&5
4201
4202ac_cv_header_stdc=no
4203fi
4204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4205
4206if test $ac_cv_header_stdc = yes; then
4207 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4208 cat >conftest.$ac_ext <<_ACEOF
4209/* confdefs.h. */
4210_ACEOF
4211cat confdefs.h >>conftest.$ac_ext
4212cat >>conftest.$ac_ext <<_ACEOF
4213/* end confdefs.h. */
4214#include <string.h>
4215
4216_ACEOF
4217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4218 $EGREP "memchr" >/dev/null 2>&1; then
4219 :
4220else
4221 ac_cv_header_stdc=no
4222fi
4223rm -f conftest*
4224
4225fi
4226
4227if test $ac_cv_header_stdc = yes; then
4228 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4229 cat >conftest.$ac_ext <<_ACEOF
4230/* confdefs.h. */
4231_ACEOF
4232cat confdefs.h >>conftest.$ac_ext
4233cat >>conftest.$ac_ext <<_ACEOF
4234/* end confdefs.h. */
4235#include <stdlib.h>
4236
4237_ACEOF
4238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4239 $EGREP "free" >/dev/null 2>&1; then
4240 :
4241else
4242 ac_cv_header_stdc=no
4243fi
4244rm -f conftest*
4245
4246fi
4247
4248if test $ac_cv_header_stdc = yes; then
4249 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4250 if test "$cross_compiling" = yes; then
4251 :
4252else
4253 cat >conftest.$ac_ext <<_ACEOF
4254/* confdefs.h. */
4255_ACEOF
4256cat confdefs.h >>conftest.$ac_ext
4257cat >>conftest.$ac_ext <<_ACEOF
4258/* end confdefs.h. */
4259#include <ctype.h>
4260#if ((' ' & 0x0FF) == 0x020)
4261# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4262# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4263#else
4264# define ISLOWER(c) \
4265 (('a' <= (c) && (c) <= 'i') \
4266 || ('j' <= (c) && (c) <= 'r') \
4267 || ('s' <= (c) && (c) <= 'z'))
4268# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4269#endif
4270
4271#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4272int
4273main ()
4274{
4275 int i;
4276 for (i = 0; i < 256; i++)
4277 if (XOR (islower (i), ISLOWER (i))
4278 || toupper (i) != TOUPPER (i))
4279 exit(2);
4280 exit (0);
4281}
4282_ACEOF
4283rm -f conftest$ac_exeext
4284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4285 (eval $ac_link) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 (eval $ac_try) 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; }; then
4294 :
4295else
4296 echo "$as_me: program exited with status $ac_status" >&5
4297echo "$as_me: failed program was:" >&5
4298sed 's/^/| /' conftest.$ac_ext >&5
4299
4300( exit $ac_status )
4301ac_cv_header_stdc=no
4302fi
4303rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4304fi
4305fi
4306fi
4307echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4308echo "${ECHO_T}$ac_cv_header_stdc" >&6
4309if test $ac_cv_header_stdc = yes; then
4310
4311cat >>confdefs.h <<\_ACEOF
4312#define STDC_HEADERS 1
4313_ACEOF
4314
4315fi
4316
4317# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4328 inttypes.h stdint.h unistd.h
4329do
4330as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4331echo "$as_me:$LINENO: checking for $ac_header" >&5
4332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4333if eval "test \"\${$as_ac_Header+set}\" = set"; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4335else
4336 cat >conftest.$ac_ext <<_ACEOF
4337/* confdefs.h. */
4338_ACEOF
4339cat confdefs.h >>conftest.$ac_ext
4340cat >>conftest.$ac_ext <<_ACEOF
4341/* end confdefs.h. */
4342$ac_includes_default
4343
4344#include <$ac_header>
4345_ACEOF
4346rm -f conftest.$ac_objext
4347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4348 (eval $ac_compile) 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -z "$ac_c_werror_flag"
4356 || test ! -s conftest.err'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 (eval $ac_try) 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; } &&
4362 { ac_try='test -s conftest.$ac_objext'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 (eval $ac_try) 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 eval "$as_ac_Header=yes"
4369else
4370 echo "$as_me: failed program was:" >&5
4371sed 's/^/| /' conftest.$ac_ext >&5
4372
4373eval "$as_ac_Header=no"
4374fi
4375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4376fi
4377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4378echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4379if test `eval echo '${'$as_ac_Header'}'` = yes; then
4380 cat >>confdefs.h <<_ACEOF
4381#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4382_ACEOF
4383
4384fi
4385
4386done
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004387
4388
4389if test "${ac_cv_header_arpa_inet_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00004390 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
4391echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004392if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4394fi
Benny Prijono0b462322008-03-12 22:44:24 +00004395echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4396echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004397else
4398 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00004399echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
4400echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004401cat >conftest.$ac_ext <<_ACEOF
4402/* confdefs.h. */
4403_ACEOF
4404cat confdefs.h >>conftest.$ac_ext
4405cat >>conftest.$ac_ext <<_ACEOF
4406/* end confdefs.h. */
4407$ac_includes_default
4408#include <arpa/inet.h>
4409_ACEOF
4410rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00004411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004413 ac_status=$?
4414 grep -v '^ *+' conftest.er1 >conftest.err
4415 rm -f conftest.er1
4416 cat conftest.err >&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004418 (exit $ac_status); } &&
4419 { ac_try='test -z "$ac_c_werror_flag"
4420 || test ! -s conftest.err'
4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422 (eval $ac_try) 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; } &&
4426 { ac_try='test -s conftest.$ac_objext'
4427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428 (eval $ac_try) 2>&5
4429 ac_status=$?
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004432 ac_header_compiler=yes
4433else
4434 echo "$as_me: failed program was:" >&5
4435sed 's/^/| /' conftest.$ac_ext >&5
4436
Benny Prijono0b462322008-03-12 22:44:24 +00004437ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004438fi
Benny Prijono0b462322008-03-12 22:44:24 +00004439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4440echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4441echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004442
4443# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00004444echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
4445echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004446cat >conftest.$ac_ext <<_ACEOF
4447/* confdefs.h. */
4448_ACEOF
4449cat confdefs.h >>conftest.$ac_ext
4450cat >>conftest.$ac_ext <<_ACEOF
4451/* end confdefs.h. */
4452#include <arpa/inet.h>
4453_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00004454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004456 ac_status=$?
4457 grep -v '^ *+' conftest.er1 >conftest.err
4458 rm -f conftest.er1
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004461 (exit $ac_status); } >/dev/null; then
4462 if test -s conftest.err; then
4463 ac_cpp_err=$ac_c_preproc_warn_flag
4464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4465 else
4466 ac_cpp_err=
4467 fi
4468else
4469 ac_cpp_err=yes
4470fi
4471if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004472 ac_header_preproc=yes
4473else
4474 echo "$as_me: failed program was:" >&5
4475sed 's/^/| /' conftest.$ac_ext >&5
4476
4477 ac_header_preproc=no
4478fi
4479rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00004480echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4481echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004482
4483# So? What about this header?
4484case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4485 yes:no: )
4486 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
4487echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4488 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
4489echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
4490 ac_header_preproc=yes
4491 ;;
4492 no:yes:* )
4493 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
4494echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
4495 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
4496echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
4498echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
4500echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
4502echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
4504echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00004505 (
4506 cat <<\_ASBOX
4507## ------------------------------------ ##
4508## Report this to the pjproject lists. ##
4509## ------------------------------------ ##
4510_ASBOX
4511 ) |
4512 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004513 ;;
4514esac
Benny Prijono0b462322008-03-12 22:44:24 +00004515echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
4516echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004517if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004519else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004520 ac_cv_header_arpa_inet_h=$ac_header_preproc
4521fi
Benny Prijono0b462322008-03-12 22:44:24 +00004522echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4523echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004524
4525fi
4526if test $ac_cv_header_arpa_inet_h = yes; then
4527 cat >>confdefs.h <<\_ACEOF
4528#define PJ_HAS_ARPA_INET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004529_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004530
4531fi
4532
4533
4534if test "${ac_cv_header_assert_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00004535 echo "$as_me:$LINENO: checking for assert.h" >&5
4536echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004537if test "${ac_cv_header_assert_h+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4539fi
Benny Prijono0b462322008-03-12 22:44:24 +00004540echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4541echo "${ECHO_T}$ac_cv_header_assert_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004542else
4543 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00004544echo "$as_me:$LINENO: checking assert.h usability" >&5
4545echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004546cat >conftest.$ac_ext <<_ACEOF
4547/* confdefs.h. */
4548_ACEOF
4549cat confdefs.h >>conftest.$ac_ext
4550cat >>conftest.$ac_ext <<_ACEOF
4551/* end confdefs.h. */
4552$ac_includes_default
4553#include <assert.h>
4554_ACEOF
4555rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00004556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4557 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004558 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004559 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004560 rm -f conftest.er1
4561 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004563 (exit $ac_status); } &&
4564 { ac_try='test -z "$ac_c_werror_flag"
4565 || test ! -s conftest.err'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 (eval $ac_try) 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; } &&
4571 { ac_try='test -s conftest.$ac_objext'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 (eval $ac_try) 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004577 ac_header_compiler=yes
4578else
4579 echo "$as_me: failed program was:" >&5
4580sed 's/^/| /' conftest.$ac_ext >&5
4581
Benny Prijono0b462322008-03-12 22:44:24 +00004582ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004583fi
Benny Prijono0b462322008-03-12 22:44:24 +00004584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4585echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4586echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004587
4588# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00004589echo "$as_me:$LINENO: checking assert.h presence" >&5
4590echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004591cat >conftest.$ac_ext <<_ACEOF
4592/* confdefs.h. */
4593_ACEOF
4594cat confdefs.h >>conftest.$ac_ext
4595cat >>conftest.$ac_ext <<_ACEOF
4596/* end confdefs.h. */
4597#include <assert.h>
4598_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00004599if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004601 ac_status=$?
4602 grep -v '^ *+' conftest.er1 >conftest.err
4603 rm -f conftest.er1
4604 cat conftest.err >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004606 (exit $ac_status); } >/dev/null; then
4607 if test -s conftest.err; then
4608 ac_cpp_err=$ac_c_preproc_warn_flag
4609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4610 else
4611 ac_cpp_err=
4612 fi
4613else
4614 ac_cpp_err=yes
4615fi
4616if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004617 ac_header_preproc=yes
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004618else
4619 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004620sed 's/^/| /' conftest.$ac_ext >&5
4621
4622 ac_header_preproc=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004623fi
4624rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00004625echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4626echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004627
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004628# So? What about this header?
4629case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4630 yes:no: )
4631 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
4632echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4633 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
4634echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
4635 ac_header_preproc=yes
4636 ;;
4637 no:yes:* )
4638 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
4639echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
4640 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
4641echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
4642 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
4643echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
4644 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
4645echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
4646 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
4647echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
4648 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
4649echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00004650 (
4651 cat <<\_ASBOX
4652## ------------------------------------ ##
4653## Report this to the pjproject lists. ##
4654## ------------------------------------ ##
4655_ASBOX
4656 ) |
4657 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004658 ;;
4659esac
Benny Prijono0b462322008-03-12 22:44:24 +00004660echo "$as_me:$LINENO: checking for assert.h" >&5
4661echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004662if test "${ac_cv_header_assert_h+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004664else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004665 ac_cv_header_assert_h=$ac_header_preproc
4666fi
Benny Prijono0b462322008-03-12 22:44:24 +00004667echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4668echo "${ECHO_T}$ac_cv_header_assert_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004669
4670fi
4671if test $ac_cv_header_assert_h = yes; then
4672 cat >>confdefs.h <<\_ACEOF
4673#define PJ_HAS_ASSERT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004674_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004675
4676fi
4677
4678
4679if test "${ac_cv_header_ctype_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00004680 echo "$as_me:$LINENO: checking for ctype.h" >&5
4681echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004682if test "${ac_cv_header_ctype_h+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4684fi
Benny Prijono0b462322008-03-12 22:44:24 +00004685echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4686echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004687else
4688 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00004689echo "$as_me:$LINENO: checking ctype.h usability" >&5
4690echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004691cat >conftest.$ac_ext <<_ACEOF
4692/* confdefs.h. */
4693_ACEOF
4694cat confdefs.h >>conftest.$ac_ext
4695cat >>conftest.$ac_ext <<_ACEOF
4696/* end confdefs.h. */
4697$ac_includes_default
4698#include <ctype.h>
4699_ACEOF
4700rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00004701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4702 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004703 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004704 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004705 rm -f conftest.er1
4706 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004708 (exit $ac_status); } &&
4709 { ac_try='test -z "$ac_c_werror_flag"
4710 || test ! -s conftest.err'
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 (eval $ac_try) 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; } &&
4716 { ac_try='test -s conftest.$ac_objext'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 (eval $ac_try) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004722 ac_header_compiler=yes
4723else
4724 echo "$as_me: failed program was:" >&5
4725sed 's/^/| /' conftest.$ac_ext >&5
4726
Benny Prijono0b462322008-03-12 22:44:24 +00004727ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004728fi
Benny Prijono0b462322008-03-12 22:44:24 +00004729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4730echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4731echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004732
4733# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00004734echo "$as_me:$LINENO: checking ctype.h presence" >&5
4735echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004736cat >conftest.$ac_ext <<_ACEOF
4737/* confdefs.h. */
4738_ACEOF
4739cat confdefs.h >>conftest.$ac_ext
4740cat >>conftest.$ac_ext <<_ACEOF
4741/* end confdefs.h. */
4742#include <ctype.h>
4743_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00004744if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004746 ac_status=$?
4747 grep -v '^ *+' conftest.er1 >conftest.err
4748 rm -f conftest.er1
4749 cat conftest.err >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004751 (exit $ac_status); } >/dev/null; then
4752 if test -s conftest.err; then
4753 ac_cpp_err=$ac_c_preproc_warn_flag
4754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4755 else
4756 ac_cpp_err=
4757 fi
4758else
4759 ac_cpp_err=yes
4760fi
4761if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004762 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004763else
4764 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004765sed 's/^/| /' conftest.$ac_ext >&5
4766
4767 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004768fi
4769rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00004770echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4771echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004772
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004773# So? What about this header?
4774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4775 yes:no: )
4776 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5
4777echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4778 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5
4779echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;}
4780 ac_header_preproc=yes
4781 ;;
4782 no:yes:* )
4783 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5
4784echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;}
4785 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5
4786echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;}
4787 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5
4788echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;}
4789 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5
4790echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;}
4791 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5
4792echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;}
4793 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5
4794echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00004795 (
4796 cat <<\_ASBOX
4797## ------------------------------------ ##
4798## Report this to the pjproject lists. ##
4799## ------------------------------------ ##
4800_ASBOX
4801 ) |
4802 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004803 ;;
4804esac
Benny Prijono0b462322008-03-12 22:44:24 +00004805echo "$as_me:$LINENO: checking for ctype.h" >&5
4806echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004807if test "${ac_cv_header_ctype_h+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004809else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004810 ac_cv_header_ctype_h=$ac_header_preproc
4811fi
Benny Prijono0b462322008-03-12 22:44:24 +00004812echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4813echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004814
4815fi
4816if test $ac_cv_header_ctype_h = yes; then
4817 cat >>confdefs.h <<\_ACEOF
4818#define PJ_HAS_CTYPE_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004819_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004820
4821fi
4822
4823
4824
4825case $target in
4826 *mingw* | *cygw* | *win32* | *w32* )
4827 cat >>confdefs.h <<\_ACEOF
4828#define PJ_HAS_ERRNO_H 0
4829_ACEOF
4830
4831 ;;
4832 *)
4833 if test "${ac_cv_header_errno_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00004834 echo "$as_me:$LINENO: checking for errno.h" >&5
4835echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004836if test "${ac_cv_header_errno_h+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838fi
Benny Prijono0b462322008-03-12 22:44:24 +00004839echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
4840echo "${ECHO_T}$ac_cv_header_errno_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004841else
4842 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00004843echo "$as_me:$LINENO: checking errno.h usability" >&5
4844echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004845cat >conftest.$ac_ext <<_ACEOF
4846/* confdefs.h. */
4847_ACEOF
4848cat confdefs.h >>conftest.$ac_ext
4849cat >>conftest.$ac_ext <<_ACEOF
4850/* end confdefs.h. */
4851$ac_includes_default
4852#include <errno.h>
4853_ACEOF
4854rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00004855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004857 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004858 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004859 rm -f conftest.er1
4860 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004862 (exit $ac_status); } &&
4863 { ac_try='test -z "$ac_c_werror_flag"
4864 || test ! -s conftest.err'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 (eval $ac_try) 2>&5
4867 ac_status=$?
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; } &&
4870 { ac_try='test -s conftest.$ac_objext'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 (eval $ac_try) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004876 ac_header_compiler=yes
4877else
4878 echo "$as_me: failed program was:" >&5
4879sed 's/^/| /' conftest.$ac_ext >&5
4880
Benny Prijono0b462322008-03-12 22:44:24 +00004881ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004882fi
Benny Prijono0b462322008-03-12 22:44:24 +00004883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4884echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4885echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004886
4887# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00004888echo "$as_me:$LINENO: checking errno.h presence" >&5
4889echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004890cat >conftest.$ac_ext <<_ACEOF
4891/* confdefs.h. */
4892_ACEOF
4893cat confdefs.h >>conftest.$ac_ext
4894cat >>conftest.$ac_ext <<_ACEOF
4895/* end confdefs.h. */
4896#include <errno.h>
4897_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00004898if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004900 ac_status=$?
4901 grep -v '^ *+' conftest.er1 >conftest.err
4902 rm -f conftest.er1
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00004905 (exit $ac_status); } >/dev/null; then
4906 if test -s conftest.err; then
4907 ac_cpp_err=$ac_c_preproc_warn_flag
4908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4909 else
4910 ac_cpp_err=
4911 fi
4912else
4913 ac_cpp_err=yes
4914fi
4915if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004916 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004917else
4918 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004919sed 's/^/| /' conftest.$ac_ext >&5
4920
4921 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004922fi
4923rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00004924echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4925echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004926
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004927# So? What about this header?
4928case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4929 yes:no: )
4930 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
4931echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4932 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
4933echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
4934 ac_header_preproc=yes
4935 ;;
4936 no:yes:* )
4937 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
4938echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
4939 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5
4940echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;}
4941 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
4942echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
4943 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5
4944echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
4945 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
4946echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
4947 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
4948echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00004949 (
4950 cat <<\_ASBOX
4951## ------------------------------------ ##
4952## Report this to the pjproject lists. ##
4953## ------------------------------------ ##
4954_ASBOX
4955 ) |
4956 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004957 ;;
4958esac
Benny Prijono0b462322008-03-12 22:44:24 +00004959echo "$as_me:$LINENO: checking for errno.h" >&5
4960echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004961if test "${ac_cv_header_errno_h+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004963else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004964 ac_cv_header_errno_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004965fi
Benny Prijono0b462322008-03-12 22:44:24 +00004966echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
4967echo "${ECHO_T}$ac_cv_header_errno_h" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004968
4969fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004970if test $ac_cv_header_errno_h = yes; then
4971 cat >>confdefs.h <<\_ACEOF
4972#define PJ_HAS_ERRNO_H 1
4973_ACEOF
4974
4975fi
4976
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004977
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004978 ;;
4979esac
4980
Benny Prijono1d481ab2008-01-24 15:27:30 +00004981if test "${ac_cv_header_fcntl_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00004982 echo "$as_me:$LINENO: checking for fcntl.h" >&5
4983echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00004984if test "${ac_cv_header_fcntl_h+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986fi
Benny Prijono0b462322008-03-12 22:44:24 +00004987echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
4988echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00004989else
4990 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00004991echo "$as_me:$LINENO: checking fcntl.h usability" >&5
4992echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00004993cat >conftest.$ac_ext <<_ACEOF
4994/* confdefs.h. */
4995_ACEOF
4996cat confdefs.h >>conftest.$ac_ext
4997cat >>conftest.$ac_ext <<_ACEOF
4998/* end confdefs.h. */
4999$ac_includes_default
5000#include <fcntl.h>
5001_ACEOF
5002rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004 (eval $ac_compile) 2>conftest.er1
Benny Prijono1d481ab2008-01-24 15:27:30 +00005005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005010 (exit $ac_status); } &&
5011 { ac_try='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 (eval $ac_try) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try='test -s conftest.$ac_objext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
Benny Prijono1d481ab2008-01-24 15:27:30 +00005024 ac_header_compiler=yes
5025else
5026 echo "$as_me: failed program was:" >&5
5027sed 's/^/| /' conftest.$ac_ext >&5
5028
Benny Prijono0b462322008-03-12 22:44:24 +00005029ac_header_compiler=no
Benny Prijono1d481ab2008-01-24 15:27:30 +00005030fi
Benny Prijono0b462322008-03-12 22:44:24 +00005031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5032echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5033echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005034
5035# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005036echo "$as_me:$LINENO: checking fcntl.h presence" >&5
5037echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005038cat >conftest.$ac_ext <<_ACEOF
5039/* confdefs.h. */
5040_ACEOF
5041cat confdefs.h >>conftest.$ac_ext
5042cat >>conftest.$ac_ext <<_ACEOF
5043/* end confdefs.h. */
5044#include <fcntl.h>
5045_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono1d481ab2008-01-24 15:27:30 +00005048 ac_status=$?
5049 grep -v '^ *+' conftest.er1 >conftest.err
5050 rm -f conftest.er1
5051 cat conftest.err >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005053 (exit $ac_status); } >/dev/null; then
5054 if test -s conftest.err; then
5055 ac_cpp_err=$ac_c_preproc_warn_flag
5056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5057 else
5058 ac_cpp_err=
5059 fi
5060else
5061 ac_cpp_err=yes
5062fi
5063if test -z "$ac_cpp_err"; then
Benny Prijono1d481ab2008-01-24 15:27:30 +00005064 ac_header_preproc=yes
5065else
5066 echo "$as_me: failed program was:" >&5
5067sed 's/^/| /' conftest.$ac_ext >&5
5068
5069 ac_header_preproc=no
5070fi
Benny Prijono1d481ab2008-01-24 15:27:30 +00005071rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005072echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5073echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005074
5075# So? What about this header?
5076case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5077 yes:no: )
5078 { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5079echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5080 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5
5081echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;}
5082 ac_header_preproc=yes
5083 ;;
5084 no:yes:* )
5085 { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5
5086echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;}
5087 { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5
5088echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;}
5089 { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5
5090echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;}
5091 { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5
5092echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5093 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5
5094echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;}
5095 { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5
5096echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005097 (
5098 cat <<\_ASBOX
5099## ------------------------------------ ##
5100## Report this to the pjproject lists. ##
5101## ------------------------------------ ##
5102_ASBOX
5103 ) |
5104 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono1d481ab2008-01-24 15:27:30 +00005105 ;;
5106esac
Benny Prijono0b462322008-03-12 22:44:24 +00005107echo "$as_me:$LINENO: checking for fcntl.h" >&5
5108echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005109if test "${ac_cv_header_fcntl_h+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111else
5112 ac_cv_header_fcntl_h=$ac_header_preproc
5113fi
Benny Prijono0b462322008-03-12 22:44:24 +00005114echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
5115echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005116
5117fi
5118if test $ac_cv_header_fcntl_h = yes; then
5119 cat >>confdefs.h <<\_ACEOF
5120#define PJ_HAS_FCNTL_H 1
5121_ACEOF
5122
5123fi
5124
5125
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005126if test "${ac_cv_header_linux_socket_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005127 echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5128echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005129if test "${ac_cv_header_linux_socket_h+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131fi
Benny Prijono0b462322008-03-12 22:44:24 +00005132echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5133echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005134else
5135 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005136echo "$as_me:$LINENO: checking linux/socket.h usability" >&5
5137echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005138cat >conftest.$ac_ext <<_ACEOF
5139/* confdefs.h. */
5140_ACEOF
5141cat confdefs.h >>conftest.$ac_ext
5142cat >>conftest.$ac_ext <<_ACEOF
5143/* end confdefs.h. */
5144$ac_includes_default
5145#include <linux/socket.h>
5146_ACEOF
5147rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5149 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005150 ac_status=$?
5151 grep -v '^ *+' conftest.er1 >conftest.err
5152 rm -f conftest.er1
5153 cat conftest.err >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005155 (exit $ac_status); } &&
5156 { ac_try='test -z "$ac_c_werror_flag"
5157 || test ! -s conftest.err'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159 (eval $ac_try) 2>&5
5160 ac_status=$?
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; } &&
5163 { ac_try='test -s conftest.$ac_objext'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 (eval $ac_try) 2>&5
5166 ac_status=$?
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005169 ac_header_compiler=yes
5170else
5171 echo "$as_me: failed program was:" >&5
5172sed 's/^/| /' conftest.$ac_ext >&5
5173
Benny Prijono0b462322008-03-12 22:44:24 +00005174ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005175fi
Benny Prijono0b462322008-03-12 22:44:24 +00005176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5177echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5178echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005179
5180# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005181echo "$as_me:$LINENO: checking linux/socket.h presence" >&5
5182echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005183cat >conftest.$ac_ext <<_ACEOF
5184/* confdefs.h. */
5185_ACEOF
5186cat confdefs.h >>conftest.$ac_ext
5187cat >>conftest.$ac_ext <<_ACEOF
5188/* end confdefs.h. */
5189#include <linux/socket.h>
5190_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005193 ac_status=$?
5194 grep -v '^ *+' conftest.er1 >conftest.err
5195 rm -f conftest.er1
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005198 (exit $ac_status); } >/dev/null; then
5199 if test -s conftest.err; then
5200 ac_cpp_err=$ac_c_preproc_warn_flag
5201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5202 else
5203 ac_cpp_err=
5204 fi
5205else
5206 ac_cpp_err=yes
5207fi
5208if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005209 ac_header_preproc=yes
5210else
5211 echo "$as_me: failed program was:" >&5
5212sed 's/^/| /' conftest.$ac_ext >&5
5213
5214 ac_header_preproc=no
5215fi
5216rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005217echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5218echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005219
5220# So? What about this header?
5221case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5222 yes:no: )
5223 { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
5224echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5225 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5
5226echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;}
5227 ac_header_preproc=yes
5228 ;;
5229 no:yes:* )
5230 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5
5231echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;}
5232 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5
5233echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;}
5234 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5
5235echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;}
5236 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5
5237echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
5238 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5
5239echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;}
5240 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5
5241echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005242 (
5243 cat <<\_ASBOX
5244## ------------------------------------ ##
5245## Report this to the pjproject lists. ##
5246## ------------------------------------ ##
5247_ASBOX
5248 ) |
5249 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005250 ;;
5251esac
Benny Prijono0b462322008-03-12 22:44:24 +00005252echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5253echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005254if test "${ac_cv_header_linux_socket_h+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005256else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005257 ac_cv_header_linux_socket_h=$ac_header_preproc
5258fi
Benny Prijono0b462322008-03-12 22:44:24 +00005259echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5260echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005261
5262fi
5263if test $ac_cv_header_linux_socket_h = yes; then
5264 cat >>confdefs.h <<\_ACEOF
5265#define PJ_HAS_LINUX_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005266_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005267
5268fi
5269
5270
5271if test "${ac_cv_header_malloc_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005272 echo "$as_me:$LINENO: checking for malloc.h" >&5
5273echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005274if test "${ac_cv_header_malloc_h+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5276fi
Benny Prijono0b462322008-03-12 22:44:24 +00005277echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5278echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005279else
5280 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005281echo "$as_me:$LINENO: checking malloc.h usability" >&5
5282echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005283cat >conftest.$ac_ext <<_ACEOF
5284/* confdefs.h. */
5285_ACEOF
5286cat confdefs.h >>conftest.$ac_ext
5287cat >>conftest.$ac_ext <<_ACEOF
5288/* end confdefs.h. */
5289$ac_includes_default
5290#include <malloc.h>
5291_ACEOF
5292rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5294 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005295 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005296 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005297 rm -f conftest.er1
5298 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005300 (exit $ac_status); } &&
5301 { ac_try='test -z "$ac_c_werror_flag"
5302 || test ! -s conftest.err'
5303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 (eval $ac_try) 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; } &&
5308 { ac_try='test -s conftest.$ac_objext'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310 (eval $ac_try) 2>&5
5311 ac_status=$?
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005314 ac_header_compiler=yes
5315else
5316 echo "$as_me: failed program was:" >&5
5317sed 's/^/| /' conftest.$ac_ext >&5
5318
Benny Prijono0b462322008-03-12 22:44:24 +00005319ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005320fi
Benny Prijono0b462322008-03-12 22:44:24 +00005321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5322echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5323echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005324
5325# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005326echo "$as_me:$LINENO: checking malloc.h presence" >&5
5327echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005328cat >conftest.$ac_ext <<_ACEOF
5329/* confdefs.h. */
5330_ACEOF
5331cat confdefs.h >>conftest.$ac_ext
5332cat >>conftest.$ac_ext <<_ACEOF
5333/* end confdefs.h. */
5334#include <malloc.h>
5335_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005336if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005338 ac_status=$?
5339 grep -v '^ *+' conftest.er1 >conftest.err
5340 rm -f conftest.er1
5341 cat conftest.err >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005343 (exit $ac_status); } >/dev/null; then
5344 if test -s conftest.err; then
5345 ac_cpp_err=$ac_c_preproc_warn_flag
5346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5347 else
5348 ac_cpp_err=
5349 fi
5350else
5351 ac_cpp_err=yes
5352fi
5353if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005354 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005355else
5356 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005357sed 's/^/| /' conftest.$ac_ext >&5
5358
5359 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005360fi
5361rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005362echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5363echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005364
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005365# So? What about this header?
5366case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5367 yes:no: )
5368 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
5369echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5370 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
5371echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
5372 ac_header_preproc=yes
5373 ;;
5374 no:yes:* )
5375 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
5376echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
5377 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
5378echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
5379 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
5380echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
5381 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
5382echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
5383 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
5384echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
5385 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
5386echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005387 (
5388 cat <<\_ASBOX
5389## ------------------------------------ ##
5390## Report this to the pjproject lists. ##
5391## ------------------------------------ ##
5392_ASBOX
5393 ) |
5394 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005395 ;;
5396esac
Benny Prijono0b462322008-03-12 22:44:24 +00005397echo "$as_me:$LINENO: checking for malloc.h" >&5
5398echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005399if test "${ac_cv_header_malloc_h+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005401else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005402 ac_cv_header_malloc_h=$ac_header_preproc
5403fi
Benny Prijono0b462322008-03-12 22:44:24 +00005404echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5405echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005406
5407fi
5408if test $ac_cv_header_malloc_h = yes; then
5409 cat >>confdefs.h <<\_ACEOF
5410#define PJ_HAS_MALLOC_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005411_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005412
5413fi
5414
5415
5416if test "${ac_cv_header_netdb_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005417 echo "$as_me:$LINENO: checking for netdb.h" >&5
5418echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005419if test "${ac_cv_header_netdb_h+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5421fi
Benny Prijono0b462322008-03-12 22:44:24 +00005422echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5423echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005424else
5425 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005426echo "$as_me:$LINENO: checking netdb.h usability" >&5
5427echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005428cat >conftest.$ac_ext <<_ACEOF
5429/* confdefs.h. */
5430_ACEOF
5431cat confdefs.h >>conftest.$ac_ext
5432cat >>conftest.$ac_ext <<_ACEOF
5433/* end confdefs.h. */
5434$ac_includes_default
5435#include <netdb.h>
5436_ACEOF
5437rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5439 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005440 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005441 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005442 rm -f conftest.er1
5443 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005445 (exit $ac_status); } &&
5446 { ac_try='test -z "$ac_c_werror_flag"
5447 || test ! -s conftest.err'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 (eval $ac_try) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; } &&
5453 { ac_try='test -s conftest.$ac_objext'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 (eval $ac_try) 2>&5
5456 ac_status=$?
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005459 ac_header_compiler=yes
5460else
5461 echo "$as_me: failed program was:" >&5
5462sed 's/^/| /' conftest.$ac_ext >&5
5463
Benny Prijono0b462322008-03-12 22:44:24 +00005464ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005465fi
Benny Prijono0b462322008-03-12 22:44:24 +00005466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5467echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5468echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005469
5470# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005471echo "$as_me:$LINENO: checking netdb.h presence" >&5
5472echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005473cat >conftest.$ac_ext <<_ACEOF
5474/* confdefs.h. */
5475_ACEOF
5476cat confdefs.h >>conftest.$ac_ext
5477cat >>conftest.$ac_ext <<_ACEOF
5478/* end confdefs.h. */
5479#include <netdb.h>
5480_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005488 (exit $ac_status); } >/dev/null; then
5489 if test -s conftest.err; then
5490 ac_cpp_err=$ac_c_preproc_warn_flag
5491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5492 else
5493 ac_cpp_err=
5494 fi
5495else
5496 ac_cpp_err=yes
5497fi
5498if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005499 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005500else
5501 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005502sed 's/^/| /' conftest.$ac_ext >&5
5503
5504 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005505fi
5506rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005507echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5508echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005509
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005510# So? What about this header?
5511case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5512 yes:no: )
5513 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
5514echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5515 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5
5516echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;}
5517 ac_header_preproc=yes
5518 ;;
5519 no:yes:* )
5520 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5
5521echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;}
5522 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5
5523echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5
5525echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;}
5526 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5
5527echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
5528 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5
5529echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;}
5530 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5
5531echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005532 (
5533 cat <<\_ASBOX
5534## ------------------------------------ ##
5535## Report this to the pjproject lists. ##
5536## ------------------------------------ ##
5537_ASBOX
5538 ) |
5539 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005540 ;;
5541esac
Benny Prijono0b462322008-03-12 22:44:24 +00005542echo "$as_me:$LINENO: checking for netdb.h" >&5
5543echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005544if test "${ac_cv_header_netdb_h+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005546else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005547 ac_cv_header_netdb_h=$ac_header_preproc
5548fi
Benny Prijono0b462322008-03-12 22:44:24 +00005549echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5550echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005551
5552fi
5553if test $ac_cv_header_netdb_h = yes; then
5554 cat >>confdefs.h <<\_ACEOF
5555#define PJ_HAS_NETDB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005556_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005557
5558fi
5559
5560
5561if test "${ac_cv_header_netinet_in_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005562 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5563echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005564if test "${ac_cv_header_netinet_in_h+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566fi
Benny Prijono0b462322008-03-12 22:44:24 +00005567echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5568echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005569else
5570 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005571echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
5572echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005573cat >conftest.$ac_ext <<_ACEOF
5574/* confdefs.h. */
5575_ACEOF
5576cat confdefs.h >>conftest.$ac_ext
5577cat >>conftest.$ac_ext <<_ACEOF
5578/* end confdefs.h. */
5579$ac_includes_default
5580#include <netinet/in.h>
5581_ACEOF
5582rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5584 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005585 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005586 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005587 rm -f conftest.er1
5588 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005590 (exit $ac_status); } &&
5591 { ac_try='test -z "$ac_c_werror_flag"
5592 || test ! -s conftest.err'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 (eval $ac_try) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; } &&
5598 { ac_try='test -s conftest.$ac_objext'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 (eval $ac_try) 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005604 ac_header_compiler=yes
5605else
5606 echo "$as_me: failed program was:" >&5
5607sed 's/^/| /' conftest.$ac_ext >&5
5608
Benny Prijono0b462322008-03-12 22:44:24 +00005609ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005610fi
Benny Prijono0b462322008-03-12 22:44:24 +00005611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5612echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5613echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005614
5615# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005616echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
5617echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005618cat >conftest.$ac_ext <<_ACEOF
5619/* confdefs.h. */
5620_ACEOF
5621cat confdefs.h >>conftest.$ac_ext
5622cat >>conftest.$ac_ext <<_ACEOF
5623/* end confdefs.h. */
5624#include <netinet/in.h>
5625_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005628 ac_status=$?
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005633 (exit $ac_status); } >/dev/null; then
5634 if test -s conftest.err; then
5635 ac_cpp_err=$ac_c_preproc_warn_flag
5636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5637 else
5638 ac_cpp_err=
5639 fi
5640else
5641 ac_cpp_err=yes
5642fi
5643if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005644 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005645else
5646 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005647sed 's/^/| /' conftest.$ac_ext >&5
5648
5649 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005650fi
5651rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005652echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5653echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005654
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005655# So? What about this header?
5656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5657 yes:no: )
5658 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
5659echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5660 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
5661echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
5662 ac_header_preproc=yes
5663 ;;
5664 no:yes:* )
5665 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
5666echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
5667 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
5668echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
5669 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
5670echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
5671 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
5672echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
5673 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
5674echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
5675 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
5676echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005677 (
5678 cat <<\_ASBOX
5679## ------------------------------------ ##
5680## Report this to the pjproject lists. ##
5681## ------------------------------------ ##
5682_ASBOX
5683 ) |
5684 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005685 ;;
5686esac
Benny Prijono0b462322008-03-12 22:44:24 +00005687echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5688echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005689if test "${ac_cv_header_netinet_in_h+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005691else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005692 ac_cv_header_netinet_in_h=$ac_header_preproc
5693fi
Benny Prijono0b462322008-03-12 22:44:24 +00005694echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5695echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005696
5697fi
5698if test $ac_cv_header_netinet_in_h = yes; then
5699 cat >>confdefs.h <<\_ACEOF
5700#define PJ_HAS_NETINET_IN_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005701_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005702
5703fi
5704
5705
Benny Prijonof63a2552007-02-01 00:36:52 +00005706if test "${ac_cv_header_netinet_ip_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005707 echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
5708echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005709if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5711fi
Benny Prijono0b462322008-03-12 22:44:24 +00005712echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
5713echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005714else
5715 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005716echo "$as_me:$LINENO: checking netinet/ip.h usability" >&5
5717echo $ECHO_N "checking netinet/ip.h usability... $ECHO_C" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005718cat >conftest.$ac_ext <<_ACEOF
5719/* confdefs.h. */
5720_ACEOF
5721cat confdefs.h >>conftest.$ac_ext
5722cat >>conftest.$ac_ext <<_ACEOF
5723/* end confdefs.h. */
5724$ac_includes_default
5725#include <netinet/ip.h>
5726_ACEOF
5727rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5729 (eval $ac_compile) 2>conftest.er1
Benny Prijonof63a2552007-02-01 00:36:52 +00005730 ac_status=$?
5731 grep -v '^ *+' conftest.er1 >conftest.err
5732 rm -f conftest.er1
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005735 (exit $ac_status); } &&
5736 { ac_try='test -z "$ac_c_werror_flag"
5737 || test ! -s conftest.err'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; } &&
5743 { ac_try='test -s conftest.$ac_objext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 (eval $ac_try) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
Benny Prijonof63a2552007-02-01 00:36:52 +00005749 ac_header_compiler=yes
5750else
5751 echo "$as_me: failed program was:" >&5
5752sed 's/^/| /' conftest.$ac_ext >&5
5753
Benny Prijono0b462322008-03-12 22:44:24 +00005754ac_header_compiler=no
Benny Prijonof63a2552007-02-01 00:36:52 +00005755fi
Benny Prijono0b462322008-03-12 22:44:24 +00005756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5757echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5758echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005759
5760# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005761echo "$as_me:$LINENO: checking netinet/ip.h presence" >&5
5762echo $ECHO_N "checking netinet/ip.h presence... $ECHO_C" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005763cat >conftest.$ac_ext <<_ACEOF
5764/* confdefs.h. */
5765_ACEOF
5766cat confdefs.h >>conftest.$ac_ext
5767cat >>conftest.$ac_ext <<_ACEOF
5768/* end confdefs.h. */
5769#include <netinet/ip.h>
5770_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005771if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijonof63a2552007-02-01 00:36:52 +00005773 ac_status=$?
5774 grep -v '^ *+' conftest.er1 >conftest.err
5775 rm -f conftest.er1
5776 cat conftest.err >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005778 (exit $ac_status); } >/dev/null; then
5779 if test -s conftest.err; then
5780 ac_cpp_err=$ac_c_preproc_warn_flag
5781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5782 else
5783 ac_cpp_err=
5784 fi
5785else
5786 ac_cpp_err=yes
5787fi
5788if test -z "$ac_cpp_err"; then
Benny Prijonof63a2552007-02-01 00:36:52 +00005789 ac_header_preproc=yes
5790else
5791 echo "$as_me: failed program was:" >&5
5792sed 's/^/| /' conftest.$ac_ext >&5
5793
5794 ac_header_preproc=no
5795fi
5796rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005797echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5798echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005799
5800# So? What about this header?
5801case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5802 yes:no: )
5803 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&5
5804echo "$as_me: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5805 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the compiler's result" >&5
5806echo "$as_me: WARNING: netinet/ip.h: proceeding with the compiler's result" >&2;}
5807 ac_header_preproc=yes
5808 ;;
5809 no:yes:* )
5810 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: present but cannot be compiled" >&5
5811echo "$as_me: WARNING: netinet/ip.h: present but cannot be compiled" >&2;}
5812 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&5
5813echo "$as_me: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&2;}
5814 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: see the Autoconf documentation" >&5
5815echo "$as_me: WARNING: netinet/ip.h: see the Autoconf documentation" >&2;}
5816 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&5
5817echo "$as_me: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&2;}
5818 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&5
5819echo "$as_me: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&2;}
5820 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&5
5821echo "$as_me: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005822 (
5823 cat <<\_ASBOX
5824## ------------------------------------ ##
5825## Report this to the pjproject lists. ##
5826## ------------------------------------ ##
5827_ASBOX
5828 ) |
5829 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijonof63a2552007-02-01 00:36:52 +00005830 ;;
5831esac
Benny Prijono0b462322008-03-12 22:44:24 +00005832echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
5833echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005834if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836else
5837 ac_cv_header_netinet_ip_h=$ac_header_preproc
5838fi
Benny Prijono0b462322008-03-12 22:44:24 +00005839echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
5840echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005841
5842fi
5843if test $ac_cv_header_netinet_ip_h = yes; then
5844 cat >>confdefs.h <<\_ACEOF
5845#define PJ_HAS_NETINET_IP_H 1
5846_ACEOF
5847
5848fi
5849
5850
Benny Prijono1d65f702007-12-03 04:03:17 +00005851if test "${ac_cv_header_ifaddrs_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005852 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5853echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005854if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5856fi
Benny Prijono0b462322008-03-12 22:44:24 +00005857echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5858echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005859else
5860 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00005861echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
5862echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005863cat >conftest.$ac_ext <<_ACEOF
5864/* confdefs.h. */
5865_ACEOF
5866cat confdefs.h >>conftest.$ac_ext
5867cat >>conftest.$ac_ext <<_ACEOF
5868/* end confdefs.h. */
5869$ac_includes_default
5870#include <ifaddrs.h>
5871_ACEOF
5872rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00005873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874 (eval $ac_compile) 2>conftest.er1
Benny Prijono1d65f702007-12-03 04:03:17 +00005875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005880 (exit $ac_status); } &&
5881 { ac_try='test -z "$ac_c_werror_flag"
5882 || test ! -s conftest.err'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try='test -s conftest.$ac_objext'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890 (eval $ac_try) 2>&5
5891 ac_status=$?
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
Benny Prijono1d65f702007-12-03 04:03:17 +00005894 ac_header_compiler=yes
5895else
5896 echo "$as_me: failed program was:" >&5
5897sed 's/^/| /' conftest.$ac_ext >&5
5898
Benny Prijono0b462322008-03-12 22:44:24 +00005899ac_header_compiler=no
Benny Prijono1d65f702007-12-03 04:03:17 +00005900fi
Benny Prijono0b462322008-03-12 22:44:24 +00005901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5902echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5903echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005904
5905# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00005906echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
5907echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005908cat >conftest.$ac_ext <<_ACEOF
5909/* confdefs.h. */
5910_ACEOF
5911cat confdefs.h >>conftest.$ac_ext
5912cat >>conftest.$ac_ext <<_ACEOF
5913/* end confdefs.h. */
5914#include <ifaddrs.h>
5915_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00005916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono1d65f702007-12-03 04:03:17 +00005918 ac_status=$?
5919 grep -v '^ *+' conftest.er1 >conftest.err
5920 rm -f conftest.er1
5921 cat conftest.err >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00005923 (exit $ac_status); } >/dev/null; then
5924 if test -s conftest.err; then
5925 ac_cpp_err=$ac_c_preproc_warn_flag
5926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5927 else
5928 ac_cpp_err=
5929 fi
5930else
5931 ac_cpp_err=yes
5932fi
5933if test -z "$ac_cpp_err"; then
Benny Prijono1d65f702007-12-03 04:03:17 +00005934 ac_header_preproc=yes
5935else
5936 echo "$as_me: failed program was:" >&5
5937sed 's/^/| /' conftest.$ac_ext >&5
5938
5939 ac_header_preproc=no
5940fi
5941rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00005942echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5943echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005944
5945# So? What about this header?
5946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5947 yes:no: )
5948 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
5949echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5950 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
5951echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
5952 ac_header_preproc=yes
5953 ;;
5954 no:yes:* )
5955 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
5956echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
5957 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
5958echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
5959 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
5960echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
5961 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
5962echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
5963 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
5964echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
5965 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
5966echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00005967 (
5968 cat <<\_ASBOX
5969## ------------------------------------ ##
5970## Report this to the pjproject lists. ##
5971## ------------------------------------ ##
5972_ASBOX
5973 ) |
5974 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono1d65f702007-12-03 04:03:17 +00005975 ;;
5976esac
Benny Prijono0b462322008-03-12 22:44:24 +00005977echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5978echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005979if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5981else
5982 ac_cv_header_ifaddrs_h=$ac_header_preproc
5983fi
Benny Prijono0b462322008-03-12 22:44:24 +00005984echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5985echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005986
5987fi
5988if test $ac_cv_header_ifaddrs_h = yes; then
5989 cat >>confdefs.h <<\_ACEOF
5990#define PJ_HAS_IFADDRS_H 1
5991_ACEOF
5992
5993fi
5994
5995
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005996if test "${ac_cv_header_semaphore_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00005997 echo "$as_me:$LINENO: checking for semaphore.h" >&5
5998echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005999if test "${ac_cv_header_semaphore_h+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001fi
Benny Prijono0b462322008-03-12 22:44:24 +00006002echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
6003echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006004else
6005 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006006echo "$as_me:$LINENO: checking semaphore.h usability" >&5
6007echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006008cat >conftest.$ac_ext <<_ACEOF
6009/* confdefs.h. */
6010_ACEOF
6011cat confdefs.h >>conftest.$ac_ext
6012cat >>conftest.$ac_ext <<_ACEOF
6013/* end confdefs.h. */
6014$ac_includes_default
6015#include <semaphore.h>
6016_ACEOF
6017rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6019 (eval $ac_compile) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006020 ac_status=$?
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006025 (exit $ac_status); } &&
6026 { ac_try='test -z "$ac_c_werror_flag"
6027 || test ! -s conftest.err'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest.$ac_objext'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035 (eval $ac_try) 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006039 ac_header_compiler=yes
6040else
6041 echo "$as_me: failed program was:" >&5
6042sed 's/^/| /' conftest.$ac_ext >&5
6043
Benny Prijono0b462322008-03-12 22:44:24 +00006044ac_header_compiler=no
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006045fi
Benny Prijono0b462322008-03-12 22:44:24 +00006046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6047echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6048echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006049
6050# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006051echo "$as_me:$LINENO: checking semaphore.h presence" >&5
6052echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006053cat >conftest.$ac_ext <<_ACEOF
6054/* confdefs.h. */
6055_ACEOF
6056cat confdefs.h >>conftest.$ac_ext
6057cat >>conftest.$ac_ext <<_ACEOF
6058/* end confdefs.h. */
6059#include <semaphore.h>
6060_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006063 ac_status=$?
6064 grep -v '^ *+' conftest.er1 >conftest.err
6065 rm -f conftest.er1
6066 cat conftest.err >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006068 (exit $ac_status); } >/dev/null; then
6069 if test -s conftest.err; then
6070 ac_cpp_err=$ac_c_preproc_warn_flag
6071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6072 else
6073 ac_cpp_err=
6074 fi
6075else
6076 ac_cpp_err=yes
6077fi
6078if test -z "$ac_cpp_err"; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006079 ac_header_preproc=yes
6080else
6081 echo "$as_me: failed program was:" >&5
6082sed 's/^/| /' conftest.$ac_ext >&5
6083
6084 ac_header_preproc=no
6085fi
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006086rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006087echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6088echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006089
6090# So? What about this header?
6091case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6092 yes:no: )
6093 { echo "$as_me:$LINENO: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&5
6094echo "$as_me: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6095 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the compiler's result" >&5
6096echo "$as_me: WARNING: semaphore.h: proceeding with the compiler's result" >&2;}
6097 ac_header_preproc=yes
6098 ;;
6099 no:yes:* )
6100 { echo "$as_me:$LINENO: WARNING: semaphore.h: present but cannot be compiled" >&5
6101echo "$as_me: WARNING: semaphore.h: present but cannot be compiled" >&2;}
6102 { echo "$as_me:$LINENO: WARNING: semaphore.h: check for missing prerequisite headers?" >&5
6103echo "$as_me: WARNING: semaphore.h: check for missing prerequisite headers?" >&2;}
6104 { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5
6105echo "$as_me: WARNING: semaphore.h: see the Autoconf documentation" >&2;}
6106 { echo "$as_me:$LINENO: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&5
6107echo "$as_me: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&2;}
6108 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the preprocessor's result" >&5
6109echo "$as_me: WARNING: semaphore.h: proceeding with the preprocessor's result" >&2;}
6110 { echo "$as_me:$LINENO: WARNING: semaphore.h: in the future, the compiler will take precedence" >&5
6111echo "$as_me: WARNING: semaphore.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006112 (
6113 cat <<\_ASBOX
6114## ------------------------------------ ##
6115## Report this to the pjproject lists. ##
6116## ------------------------------------ ##
6117_ASBOX
6118 ) |
6119 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006120 ;;
6121esac
Benny Prijono0b462322008-03-12 22:44:24 +00006122echo "$as_me:$LINENO: checking for semaphore.h" >&5
6123echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006124if test "${ac_cv_header_semaphore_h+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6126else
6127 ac_cv_header_semaphore_h=$ac_header_preproc
6128fi
Benny Prijono0b462322008-03-12 22:44:24 +00006129echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
6130echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006131
6132fi
6133if test $ac_cv_header_semaphore_h = yes; then
6134 cat >>confdefs.h <<\_ACEOF
6135#define PJ_HAS_SEMAPHORE_H 1
6136_ACEOF
6137
6138fi
6139
6140
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006141if test "${ac_cv_header_setjmp_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006142 echo "$as_me:$LINENO: checking for setjmp.h" >&5
6143echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006144if test "${ac_cv_header_setjmp_h+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6146fi
Benny Prijono0b462322008-03-12 22:44:24 +00006147echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
6148echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006149else
6150 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006151echo "$as_me:$LINENO: checking setjmp.h usability" >&5
6152echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006153cat >conftest.$ac_ext <<_ACEOF
6154/* confdefs.h. */
6155_ACEOF
6156cat confdefs.h >>conftest.$ac_ext
6157cat >>conftest.$ac_ext <<_ACEOF
6158/* end confdefs.h. */
6159$ac_includes_default
6160#include <setjmp.h>
6161_ACEOF
6162rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6164 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006165 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006166 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006167 rm -f conftest.er1
6168 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006170 (exit $ac_status); } &&
6171 { ac_try='test -z "$ac_c_werror_flag"
6172 || test ! -s conftest.err'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 (eval $ac_try) 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; } &&
6178 { ac_try='test -s conftest.$ac_objext'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 (eval $ac_try) 2>&5
6181 ac_status=$?
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006184 ac_header_compiler=yes
6185else
6186 echo "$as_me: failed program was:" >&5
6187sed 's/^/| /' conftest.$ac_ext >&5
6188
Benny Prijono0b462322008-03-12 22:44:24 +00006189ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006190fi
Benny Prijono0b462322008-03-12 22:44:24 +00006191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6192echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6193echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006194
6195# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006196echo "$as_me:$LINENO: checking setjmp.h presence" >&5
6197echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006198cat >conftest.$ac_ext <<_ACEOF
6199/* confdefs.h. */
6200_ACEOF
6201cat confdefs.h >>conftest.$ac_ext
6202cat >>conftest.$ac_ext <<_ACEOF
6203/* end confdefs.h. */
6204#include <setjmp.h>
6205_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006206if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006208 ac_status=$?
6209 grep -v '^ *+' conftest.er1 >conftest.err
6210 rm -f conftest.er1
6211 cat conftest.err >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006213 (exit $ac_status); } >/dev/null; then
6214 if test -s conftest.err; then
6215 ac_cpp_err=$ac_c_preproc_warn_flag
6216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6217 else
6218 ac_cpp_err=
6219 fi
6220else
6221 ac_cpp_err=yes
6222fi
6223if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006224 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006225else
6226 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006227sed 's/^/| /' conftest.$ac_ext >&5
6228
6229 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006230fi
6231rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006232echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6233echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006234
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006235# So? What about this header?
6236case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6237 yes:no: )
6238 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
6239echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6240 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5
6241echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;}
6242 ac_header_preproc=yes
6243 ;;
6244 no:yes:* )
6245 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5
6246echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;}
6247 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5
6248echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;}
6249 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5
6250echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;}
6251 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5
6252echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
6253 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5
6254echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;}
6255 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5
6256echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006257 (
6258 cat <<\_ASBOX
6259## ------------------------------------ ##
6260## Report this to the pjproject lists. ##
6261## ------------------------------------ ##
6262_ASBOX
6263 ) |
6264 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006265 ;;
6266esac
Benny Prijono0b462322008-03-12 22:44:24 +00006267echo "$as_me:$LINENO: checking for setjmp.h" >&5
6268echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006269if test "${ac_cv_header_setjmp_h+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006271else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006272 ac_cv_header_setjmp_h=$ac_header_preproc
6273fi
Benny Prijono0b462322008-03-12 22:44:24 +00006274echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
6275echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006276
6277fi
6278if test $ac_cv_header_setjmp_h = yes; then
6279 cat >>confdefs.h <<\_ACEOF
6280#define PJ_HAS_SETJMP_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006281_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006282
6283fi
6284
6285
6286if test "${ac_cv_header_stdarg_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006287 echo "$as_me:$LINENO: checking for stdarg.h" >&5
6288echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006289if test "${ac_cv_header_stdarg_h+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6291fi
Benny Prijono0b462322008-03-12 22:44:24 +00006292echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6293echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006294else
6295 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006296echo "$as_me:$LINENO: checking stdarg.h usability" >&5
6297echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006298cat >conftest.$ac_ext <<_ACEOF
6299/* confdefs.h. */
6300_ACEOF
6301cat confdefs.h >>conftest.$ac_ext
6302cat >>conftest.$ac_ext <<_ACEOF
6303/* end confdefs.h. */
6304$ac_includes_default
6305#include <stdarg.h>
6306_ACEOF
6307rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6309 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006310 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006311 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006312 rm -f conftest.er1
6313 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006315 (exit $ac_status); } &&
6316 { ac_try='test -z "$ac_c_werror_flag"
6317 || test ! -s conftest.err'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 (eval $ac_try) 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; } &&
6323 { ac_try='test -s conftest.$ac_objext'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 (eval $ac_try) 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006329 ac_header_compiler=yes
6330else
6331 echo "$as_me: failed program was:" >&5
6332sed 's/^/| /' conftest.$ac_ext >&5
6333
Benny Prijono0b462322008-03-12 22:44:24 +00006334ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006335fi
Benny Prijono0b462322008-03-12 22:44:24 +00006336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6337echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6338echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006339
6340# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006341echo "$as_me:$LINENO: checking stdarg.h presence" >&5
6342echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006343cat >conftest.$ac_ext <<_ACEOF
6344/* confdefs.h. */
6345_ACEOF
6346cat confdefs.h >>conftest.$ac_ext
6347cat >>conftest.$ac_ext <<_ACEOF
6348/* end confdefs.h. */
6349#include <stdarg.h>
6350_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006353 ac_status=$?
6354 grep -v '^ *+' conftest.er1 >conftest.err
6355 rm -f conftest.er1
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006358 (exit $ac_status); } >/dev/null; then
6359 if test -s conftest.err; then
6360 ac_cpp_err=$ac_c_preproc_warn_flag
6361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6362 else
6363 ac_cpp_err=
6364 fi
6365else
6366 ac_cpp_err=yes
6367fi
6368if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006369 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006370else
6371 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006372sed 's/^/| /' conftest.$ac_ext >&5
6373
6374 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006375fi
6376rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006377echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6378echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006379
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006380# So? What about this header?
6381case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6382 yes:no: )
6383 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
6384echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6385 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
6386echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
6387 ac_header_preproc=yes
6388 ;;
6389 no:yes:* )
6390 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
6391echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
6392 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
6393echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
6395echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
6396 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
6397echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
6398 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
6399echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
6400 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
6401echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006402 (
6403 cat <<\_ASBOX
6404## ------------------------------------ ##
6405## Report this to the pjproject lists. ##
6406## ------------------------------------ ##
6407_ASBOX
6408 ) |
6409 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006410 ;;
6411esac
Benny Prijono0b462322008-03-12 22:44:24 +00006412echo "$as_me:$LINENO: checking for stdarg.h" >&5
6413echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006414if test "${ac_cv_header_stdarg_h+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006416else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006417 ac_cv_header_stdarg_h=$ac_header_preproc
6418fi
Benny Prijono0b462322008-03-12 22:44:24 +00006419echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6420echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006421
6422fi
6423if test $ac_cv_header_stdarg_h = yes; then
6424 cat >>confdefs.h <<\_ACEOF
6425#define PJ_HAS_STDARG_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006426_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006427
6428fi
6429
6430
6431if test "${ac_cv_header_stddef_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006432 echo "$as_me:$LINENO: checking for stddef.h" >&5
6433echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006434if test "${ac_cv_header_stddef_h+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6436fi
Benny Prijono0b462322008-03-12 22:44:24 +00006437echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
6438echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006439else
6440 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006441echo "$as_me:$LINENO: checking stddef.h usability" >&5
6442echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006443cat >conftest.$ac_ext <<_ACEOF
6444/* confdefs.h. */
6445_ACEOF
6446cat confdefs.h >>conftest.$ac_ext
6447cat >>conftest.$ac_ext <<_ACEOF
6448/* end confdefs.h. */
6449$ac_includes_default
6450#include <stddef.h>
6451_ACEOF
6452rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6454 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006455 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006456 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006457 rm -f conftest.er1
6458 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006460 (exit $ac_status); } &&
6461 { ac_try='test -z "$ac_c_werror_flag"
6462 || test ! -s conftest.err'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 (eval $ac_try) 2>&5
6465 ac_status=$?
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; } &&
6468 { ac_try='test -s conftest.$ac_objext'
6469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470 (eval $ac_try) 2>&5
6471 ac_status=$?
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006474 ac_header_compiler=yes
6475else
6476 echo "$as_me: failed program was:" >&5
6477sed 's/^/| /' conftest.$ac_ext >&5
6478
Benny Prijono0b462322008-03-12 22:44:24 +00006479ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006480fi
Benny Prijono0b462322008-03-12 22:44:24 +00006481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6482echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6483echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006484
6485# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006486echo "$as_me:$LINENO: checking stddef.h presence" >&5
6487echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006488cat >conftest.$ac_ext <<_ACEOF
6489/* confdefs.h. */
6490_ACEOF
6491cat confdefs.h >>conftest.$ac_ext
6492cat >>conftest.$ac_ext <<_ACEOF
6493/* end confdefs.h. */
6494#include <stddef.h>
6495_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006498 ac_status=$?
6499 grep -v '^ *+' conftest.er1 >conftest.err
6500 rm -f conftest.er1
6501 cat conftest.err >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006503 (exit $ac_status); } >/dev/null; then
6504 if test -s conftest.err; then
6505 ac_cpp_err=$ac_c_preproc_warn_flag
6506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6507 else
6508 ac_cpp_err=
6509 fi
6510else
6511 ac_cpp_err=yes
6512fi
6513if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006514 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006515else
6516 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006517sed 's/^/| /' conftest.$ac_ext >&5
6518
6519 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006520fi
6521rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006522echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6523echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006524
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006525# So? What about this header?
6526case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6527 yes:no: )
6528 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
6529echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6530 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
6531echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
6532 ac_header_preproc=yes
6533 ;;
6534 no:yes:* )
6535 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
6536echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
6537 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
6538echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
6539 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
6540echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
6541 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
6542echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
6543 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
6544echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
6545 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
6546echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006547 (
6548 cat <<\_ASBOX
6549## ------------------------------------ ##
6550## Report this to the pjproject lists. ##
6551## ------------------------------------ ##
6552_ASBOX
6553 ) |
6554 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006555 ;;
6556esac
Benny Prijono0b462322008-03-12 22:44:24 +00006557echo "$as_me:$LINENO: checking for stddef.h" >&5
6558echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006559if test "${ac_cv_header_stddef_h+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006561else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006562 ac_cv_header_stddef_h=$ac_header_preproc
6563fi
Benny Prijono0b462322008-03-12 22:44:24 +00006564echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
6565echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006566
6567fi
6568if test $ac_cv_header_stddef_h = yes; then
6569 cat >>confdefs.h <<\_ACEOF
6570#define PJ_HAS_STDDEF_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006571_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006572
6573fi
6574
6575
6576if test "${ac_cv_header_stdio_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006577 echo "$as_me:$LINENO: checking for stdio.h" >&5
6578echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006579if test "${ac_cv_header_stdio_h+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6581fi
Benny Prijono0b462322008-03-12 22:44:24 +00006582echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6583echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006584else
6585 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006586echo "$as_me:$LINENO: checking stdio.h usability" >&5
6587echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006588cat >conftest.$ac_ext <<_ACEOF
6589/* confdefs.h. */
6590_ACEOF
6591cat confdefs.h >>conftest.$ac_ext
6592cat >>conftest.$ac_ext <<_ACEOF
6593/* end confdefs.h. */
6594$ac_includes_default
6595#include <stdio.h>
6596_ACEOF
6597rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6599 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006600 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006601 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006602 rm -f conftest.er1
6603 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006605 (exit $ac_status); } &&
6606 { ac_try='test -z "$ac_c_werror_flag"
6607 || test ! -s conftest.err'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 (eval $ac_try) 2>&5
6610 ac_status=$?
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; } &&
6613 { ac_try='test -s conftest.$ac_objext'
6614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 (eval $ac_try) 2>&5
6616 ac_status=$?
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006619 ac_header_compiler=yes
6620else
6621 echo "$as_me: failed program was:" >&5
6622sed 's/^/| /' conftest.$ac_ext >&5
6623
Benny Prijono0b462322008-03-12 22:44:24 +00006624ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006625fi
Benny Prijono0b462322008-03-12 22:44:24 +00006626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6627echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6628echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006629
6630# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006631echo "$as_me:$LINENO: checking stdio.h presence" >&5
6632echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006633cat >conftest.$ac_ext <<_ACEOF
6634/* confdefs.h. */
6635_ACEOF
6636cat confdefs.h >>conftest.$ac_ext
6637cat >>conftest.$ac_ext <<_ACEOF
6638/* end confdefs.h. */
6639#include <stdio.h>
6640_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006641if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006648 (exit $ac_status); } >/dev/null; then
6649 if test -s conftest.err; then
6650 ac_cpp_err=$ac_c_preproc_warn_flag
6651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6652 else
6653 ac_cpp_err=
6654 fi
6655else
6656 ac_cpp_err=yes
6657fi
6658if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006659 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006660else
6661 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006662sed 's/^/| /' conftest.$ac_ext >&5
6663
6664 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006665fi
6666rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006667echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6668echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006669
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006670# So? What about this header?
6671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6672 yes:no: )
6673 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
6674echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6675 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
6676echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
6677 ac_header_preproc=yes
6678 ;;
6679 no:yes:* )
6680 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
6681echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
6682 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
6683echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
6684 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
6685echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
6686 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
6687echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
6688 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
6689echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
6690 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
6691echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006692 (
6693 cat <<\_ASBOX
6694## ------------------------------------ ##
6695## Report this to the pjproject lists. ##
6696## ------------------------------------ ##
6697_ASBOX
6698 ) |
6699 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006700 ;;
6701esac
Benny Prijono0b462322008-03-12 22:44:24 +00006702echo "$as_me:$LINENO: checking for stdio.h" >&5
6703echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006704if test "${ac_cv_header_stdio_h+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006706else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006707 ac_cv_header_stdio_h=$ac_header_preproc
6708fi
Benny Prijono0b462322008-03-12 22:44:24 +00006709echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6710echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006711
6712fi
6713if test $ac_cv_header_stdio_h = yes; then
6714 cat >>confdefs.h <<\_ACEOF
6715#define PJ_HAS_STDIO_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006716_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006717
6718fi
6719
6720
Benny Prijonofdafd402008-01-23 14:34:46 +00006721if test "${ac_cv_header_stdint_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006722 echo "$as_me:$LINENO: checking for stdint.h" >&5
6723echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006724if test "${ac_cv_header_stdint_h+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6726fi
Benny Prijono0b462322008-03-12 22:44:24 +00006727echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
6728echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006729else
6730 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006731echo "$as_me:$LINENO: checking stdint.h usability" >&5
6732echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006733cat >conftest.$ac_ext <<_ACEOF
6734/* confdefs.h. */
6735_ACEOF
6736cat confdefs.h >>conftest.$ac_ext
6737cat >>conftest.$ac_ext <<_ACEOF
6738/* end confdefs.h. */
6739$ac_includes_default
6740#include <stdint.h>
6741_ACEOF
6742rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6744 (eval $ac_compile) 2>conftest.er1
Benny Prijonofdafd402008-01-23 14:34:46 +00006745 ac_status=$?
6746 grep -v '^ *+' conftest.er1 >conftest.err
6747 rm -f conftest.er1
6748 cat conftest.err >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006750 (exit $ac_status); } &&
6751 { ac_try='test -z "$ac_c_werror_flag"
6752 || test ! -s conftest.err'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754 (eval $ac_try) 2>&5
6755 ac_status=$?
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; } &&
6758 { ac_try='test -s conftest.$ac_objext'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 (eval $ac_try) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; }; then
Benny Prijonofdafd402008-01-23 14:34:46 +00006764 ac_header_compiler=yes
6765else
6766 echo "$as_me: failed program was:" >&5
6767sed 's/^/| /' conftest.$ac_ext >&5
6768
Benny Prijono0b462322008-03-12 22:44:24 +00006769ac_header_compiler=no
Benny Prijonofdafd402008-01-23 14:34:46 +00006770fi
Benny Prijono0b462322008-03-12 22:44:24 +00006771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6772echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6773echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006774
6775# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006776echo "$as_me:$LINENO: checking stdint.h presence" >&5
6777echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006778cat >conftest.$ac_ext <<_ACEOF
6779/* confdefs.h. */
6780_ACEOF
6781cat confdefs.h >>conftest.$ac_ext
6782cat >>conftest.$ac_ext <<_ACEOF
6783/* end confdefs.h. */
6784#include <stdint.h>
6785_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006786if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijonofdafd402008-01-23 14:34:46 +00006788 ac_status=$?
6789 grep -v '^ *+' conftest.er1 >conftest.err
6790 rm -f conftest.er1
6791 cat conftest.err >&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006793 (exit $ac_status); } >/dev/null; then
6794 if test -s conftest.err; then
6795 ac_cpp_err=$ac_c_preproc_warn_flag
6796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6797 else
6798 ac_cpp_err=
6799 fi
6800else
6801 ac_cpp_err=yes
6802fi
6803if test -z "$ac_cpp_err"; then
Benny Prijonofdafd402008-01-23 14:34:46 +00006804 ac_header_preproc=yes
6805else
6806 echo "$as_me: failed program was:" >&5
6807sed 's/^/| /' conftest.$ac_ext >&5
6808
6809 ac_header_preproc=no
6810fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006811rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006812echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6813echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006814
6815# So? What about this header?
6816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6817 yes:no: )
6818 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
6819echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6820 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
6821echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
6822 ac_header_preproc=yes
6823 ;;
6824 no:yes:* )
6825 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
6826echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
6827 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
6828echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
6829 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
6830echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
6831 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
6832echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
6833 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
6834echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
6835 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
6836echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006837 (
6838 cat <<\_ASBOX
6839## ------------------------------------ ##
6840## Report this to the pjproject lists. ##
6841## ------------------------------------ ##
6842_ASBOX
6843 ) |
6844 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijonofdafd402008-01-23 14:34:46 +00006845 ;;
6846esac
Benny Prijono0b462322008-03-12 22:44:24 +00006847echo "$as_me:$LINENO: checking for stdint.h" >&5
6848echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006849if test "${ac_cv_header_stdint_h+set}" = set; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
6851else
6852 ac_cv_header_stdint_h=$ac_header_preproc
6853fi
Benny Prijono0b462322008-03-12 22:44:24 +00006854echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
6855echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006856
6857fi
6858if test $ac_cv_header_stdint_h = yes; then
6859 cat >>confdefs.h <<\_ACEOF
6860#define PJ_HAS_STDINT_H 1
6861_ACEOF
6862
6863fi
6864
6865
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006866if test "${ac_cv_header_stdlib_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00006867 echo "$as_me:$LINENO: checking for stdlib.h" >&5
6868echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006869if test "${ac_cv_header_stdlib_h+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871fi
Benny Prijono0b462322008-03-12 22:44:24 +00006872echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6873echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006874else
6875 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00006876echo "$as_me:$LINENO: checking stdlib.h usability" >&5
6877echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006878cat >conftest.$ac_ext <<_ACEOF
6879/* confdefs.h. */
6880_ACEOF
6881cat confdefs.h >>conftest.$ac_ext
6882cat >>conftest.$ac_ext <<_ACEOF
6883/* end confdefs.h. */
6884$ac_includes_default
6885#include <stdlib.h>
6886_ACEOF
6887rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00006888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6889 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006890 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006891 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006892 rm -f conftest.er1
6893 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006895 (exit $ac_status); } &&
6896 { ac_try='test -z "$ac_c_werror_flag"
6897 || test ! -s conftest.err'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 (eval $ac_try) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; } &&
6903 { ac_try='test -s conftest.$ac_objext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006909 ac_header_compiler=yes
6910else
6911 echo "$as_me: failed program was:" >&5
6912sed 's/^/| /' conftest.$ac_ext >&5
6913
Benny Prijono0b462322008-03-12 22:44:24 +00006914ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006915fi
Benny Prijono0b462322008-03-12 22:44:24 +00006916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6917echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6918echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006919
6920# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00006921echo "$as_me:$LINENO: checking stdlib.h presence" >&5
6922echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006923cat >conftest.$ac_ext <<_ACEOF
6924/* confdefs.h. */
6925_ACEOF
6926cat confdefs.h >>conftest.$ac_ext
6927cat >>conftest.$ac_ext <<_ACEOF
6928/* end confdefs.h. */
6929#include <stdlib.h>
6930_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00006931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006933 ac_status=$?
6934 grep -v '^ *+' conftest.er1 >conftest.err
6935 rm -f conftest.er1
6936 cat conftest.err >&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00006938 (exit $ac_status); } >/dev/null; then
6939 if test -s conftest.err; then
6940 ac_cpp_err=$ac_c_preproc_warn_flag
6941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6942 else
6943 ac_cpp_err=
6944 fi
6945else
6946 ac_cpp_err=yes
6947fi
6948if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006949 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006950else
6951 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006952sed 's/^/| /' conftest.$ac_ext >&5
6953
6954 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006955fi
6956rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00006957echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6958echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006959
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006960# So? What about this header?
6961case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6962 yes:no: )
6963 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6964echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6965 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
6966echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
6967 ac_header_preproc=yes
6968 ;;
6969 no:yes:* )
6970 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
6971echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
6972 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
6973echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
6974 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
6975echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
6976 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
6977echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
6978 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
6979echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
6980 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
6981echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00006982 (
6983 cat <<\_ASBOX
6984## ------------------------------------ ##
6985## Report this to the pjproject lists. ##
6986## ------------------------------------ ##
6987_ASBOX
6988 ) |
6989 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006990 ;;
6991esac
Benny Prijono0b462322008-03-12 22:44:24 +00006992echo "$as_me:$LINENO: checking for stdlib.h" >&5
6993echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006994if test "${ac_cv_header_stdlib_h+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006996else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006997 ac_cv_header_stdlib_h=$ac_header_preproc
6998fi
Benny Prijono0b462322008-03-12 22:44:24 +00006999echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7000echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007001
7002fi
7003if test $ac_cv_header_stdlib_h = yes; then
7004 cat >>confdefs.h <<\_ACEOF
7005#define PJ_HAS_STDLIB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007006_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007007
7008fi
7009
7010
7011if test "${ac_cv_header_string_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007012 echo "$as_me:$LINENO: checking for string.h" >&5
7013echo $ECHO_N "checking for string.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007014if test "${ac_cv_header_string_h+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7016fi
Benny Prijono0b462322008-03-12 22:44:24 +00007017echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7018echo "${ECHO_T}$ac_cv_header_string_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007019else
7020 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007021echo "$as_me:$LINENO: checking string.h usability" >&5
7022echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007023cat >conftest.$ac_ext <<_ACEOF
7024/* confdefs.h. */
7025_ACEOF
7026cat confdefs.h >>conftest.$ac_ext
7027cat >>conftest.$ac_ext <<_ACEOF
7028/* end confdefs.h. */
7029$ac_includes_default
7030#include <string.h>
7031_ACEOF
7032rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7034 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007035 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007036 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007037 rm -f conftest.er1
7038 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007040 (exit $ac_status); } &&
7041 { ac_try='test -z "$ac_c_werror_flag"
7042 || test ! -s conftest.err'
7043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044 (eval $ac_try) 2>&5
7045 ac_status=$?
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); }; } &&
7048 { ac_try='test -s conftest.$ac_objext'
7049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050 (eval $ac_try) 2>&5
7051 ac_status=$?
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007054 ac_header_compiler=yes
7055else
7056 echo "$as_me: failed program was:" >&5
7057sed 's/^/| /' conftest.$ac_ext >&5
7058
Benny Prijono0b462322008-03-12 22:44:24 +00007059ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007060fi
Benny Prijono0b462322008-03-12 22:44:24 +00007061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7062echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7063echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007064
7065# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007066echo "$as_me:$LINENO: checking string.h presence" >&5
7067echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007068cat >conftest.$ac_ext <<_ACEOF
7069/* confdefs.h. */
7070_ACEOF
7071cat confdefs.h >>conftest.$ac_ext
7072cat >>conftest.$ac_ext <<_ACEOF
7073/* end confdefs.h. */
7074#include <string.h>
7075_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007078 ac_status=$?
7079 grep -v '^ *+' conftest.er1 >conftest.err
7080 rm -f conftest.er1
7081 cat conftest.err >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007083 (exit $ac_status); } >/dev/null; then
7084 if test -s conftest.err; then
7085 ac_cpp_err=$ac_c_preproc_warn_flag
7086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7087 else
7088 ac_cpp_err=
7089 fi
7090else
7091 ac_cpp_err=yes
7092fi
7093if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007094 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007095else
7096 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007097sed 's/^/| /' conftest.$ac_ext >&5
7098
7099 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007100fi
7101rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007102echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7103echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007104
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007105# So? What about this header?
7106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7107 yes:no: )
7108 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7109echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7110 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
7111echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
7112 ac_header_preproc=yes
7113 ;;
7114 no:yes:* )
7115 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
7116echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
7117 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
7118echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
7119 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
7120echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
7121 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
7122echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
7123 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7124echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7125 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
7126echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007127 (
7128 cat <<\_ASBOX
7129## ------------------------------------ ##
7130## Report this to the pjproject lists. ##
7131## ------------------------------------ ##
7132_ASBOX
7133 ) |
7134 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007135 ;;
7136esac
Benny Prijono0b462322008-03-12 22:44:24 +00007137echo "$as_me:$LINENO: checking for string.h" >&5
7138echo $ECHO_N "checking for string.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007139if test "${ac_cv_header_string_h+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007141else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007142 ac_cv_header_string_h=$ac_header_preproc
7143fi
Benny Prijono0b462322008-03-12 22:44:24 +00007144echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7145echo "${ECHO_T}$ac_cv_header_string_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007146
7147fi
7148if test $ac_cv_header_string_h = yes; then
7149 cat >>confdefs.h <<\_ACEOF
7150#define PJ_HAS_STRING_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007151_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007152
7153fi
7154
7155
7156if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007157 echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
7158echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007159if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7161fi
Benny Prijono0b462322008-03-12 22:44:24 +00007162echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
7163echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007164else
7165 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007166echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5
7167echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007168cat >conftest.$ac_ext <<_ACEOF
7169/* confdefs.h. */
7170_ACEOF
7171cat confdefs.h >>conftest.$ac_ext
7172cat >>conftest.$ac_ext <<_ACEOF
7173/* end confdefs.h. */
7174$ac_includes_default
7175#include <sys/ioctl.h>
7176_ACEOF
7177rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7179 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007180 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007181 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007182 rm -f conftest.er1
7183 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007185 (exit $ac_status); } &&
7186 { ac_try='test -z "$ac_c_werror_flag"
7187 || test ! -s conftest.err'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 (eval $ac_try) 2>&5
7190 ac_status=$?
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; } &&
7193 { ac_try='test -s conftest.$ac_objext'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 (eval $ac_try) 2>&5
7196 ac_status=$?
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007199 ac_header_compiler=yes
7200else
7201 echo "$as_me: failed program was:" >&5
7202sed 's/^/| /' conftest.$ac_ext >&5
7203
Benny Prijono0b462322008-03-12 22:44:24 +00007204ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007205fi
Benny Prijono0b462322008-03-12 22:44:24 +00007206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7207echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7208echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007209
7210# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007211echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5
7212echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007213cat >conftest.$ac_ext <<_ACEOF
7214/* confdefs.h. */
7215_ACEOF
7216cat confdefs.h >>conftest.$ac_ext
7217cat >>conftest.$ac_ext <<_ACEOF
7218/* end confdefs.h. */
7219#include <sys/ioctl.h>
7220_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007221if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007223 ac_status=$?
7224 grep -v '^ *+' conftest.er1 >conftest.err
7225 rm -f conftest.er1
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007228 (exit $ac_status); } >/dev/null; then
7229 if test -s conftest.err; then
7230 ac_cpp_err=$ac_c_preproc_warn_flag
7231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7232 else
7233 ac_cpp_err=
7234 fi
7235else
7236 ac_cpp_err=yes
7237fi
7238if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007239 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007240else
7241 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007242sed 's/^/| /' conftest.$ac_ext >&5
7243
7244 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007245fi
7246rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007247echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7248echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007249
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007250# So? What about this header?
7251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7252 yes:no: )
7253 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7254echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7255 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5
7256echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;}
7257 ac_header_preproc=yes
7258 ;;
7259 no:yes:* )
7260 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5
7261echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;}
7262 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5
7263echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;}
7264 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5
7265echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;}
7266 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
7267echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7268 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5
7269echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;}
7270 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5
7271echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007272 (
7273 cat <<\_ASBOX
7274## ------------------------------------ ##
7275## Report this to the pjproject lists. ##
7276## ------------------------------------ ##
7277_ASBOX
7278 ) |
7279 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007280 ;;
7281esac
Benny Prijono0b462322008-03-12 22:44:24 +00007282echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
7283echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007284if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007286else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007287 ac_cv_header_sys_ioctl_h=$ac_header_preproc
7288fi
Benny Prijono0b462322008-03-12 22:44:24 +00007289echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
7290echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007291
7292fi
7293if test $ac_cv_header_sys_ioctl_h = yes; then
7294 cat >>confdefs.h <<\_ACEOF
7295#define PJ_HAS_SYS_IOCTL_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007296_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007297
7298fi
7299
7300
7301if test "${ac_cv_header_sys_select_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007302 echo "$as_me:$LINENO: checking for sys/select.h" >&5
7303echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007304if test "${ac_cv_header_sys_select_h+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7306fi
Benny Prijono0b462322008-03-12 22:44:24 +00007307echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
7308echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007309else
7310 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007311echo "$as_me:$LINENO: checking sys/select.h usability" >&5
7312echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007313cat >conftest.$ac_ext <<_ACEOF
7314/* confdefs.h. */
7315_ACEOF
7316cat confdefs.h >>conftest.$ac_ext
7317cat >>conftest.$ac_ext <<_ACEOF
7318/* end confdefs.h. */
7319$ac_includes_default
7320#include <sys/select.h>
7321_ACEOF
7322rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7324 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007325 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007326 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007327 rm -f conftest.er1
7328 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007330 (exit $ac_status); } &&
7331 { ac_try='test -z "$ac_c_werror_flag"
7332 || test ! -s conftest.err'
7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334 (eval $ac_try) 2>&5
7335 ac_status=$?
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; } &&
7338 { ac_try='test -s conftest.$ac_objext'
7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 (eval $ac_try) 2>&5
7341 ac_status=$?
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007344 ac_header_compiler=yes
7345else
7346 echo "$as_me: failed program was:" >&5
7347sed 's/^/| /' conftest.$ac_ext >&5
7348
Benny Prijono0b462322008-03-12 22:44:24 +00007349ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007350fi
Benny Prijono0b462322008-03-12 22:44:24 +00007351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7352echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7353echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007354
7355# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007356echo "$as_me:$LINENO: checking sys/select.h presence" >&5
7357echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007358cat >conftest.$ac_ext <<_ACEOF
7359/* confdefs.h. */
7360_ACEOF
7361cat confdefs.h >>conftest.$ac_ext
7362cat >>conftest.$ac_ext <<_ACEOF
7363/* end confdefs.h. */
7364#include <sys/select.h>
7365_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007368 ac_status=$?
7369 grep -v '^ *+' conftest.er1 >conftest.err
7370 rm -f conftest.er1
7371 cat conftest.err >&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007373 (exit $ac_status); } >/dev/null; then
7374 if test -s conftest.err; then
7375 ac_cpp_err=$ac_c_preproc_warn_flag
7376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7377 else
7378 ac_cpp_err=
7379 fi
7380else
7381 ac_cpp_err=yes
7382fi
7383if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007384 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007385else
7386 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007387sed 's/^/| /' conftest.$ac_ext >&5
7388
7389 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007390fi
7391rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007392echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7393echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007394
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007395# So? What about this header?
7396case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7397 yes:no: )
7398 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
7399echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7400 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
7401echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
7402 ac_header_preproc=yes
7403 ;;
7404 no:yes:* )
7405 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
7406echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
7407 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
7408echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
7409 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
7410echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
7411 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
7412echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
7413 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
7414echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
7415 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
7416echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007417 (
7418 cat <<\_ASBOX
7419## ------------------------------------ ##
7420## Report this to the pjproject lists. ##
7421## ------------------------------------ ##
7422_ASBOX
7423 ) |
7424 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007425 ;;
7426esac
Benny Prijono0b462322008-03-12 22:44:24 +00007427echo "$as_me:$LINENO: checking for sys/select.h" >&5
7428echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007429if test "${ac_cv_header_sys_select_h+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007431else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007432 ac_cv_header_sys_select_h=$ac_header_preproc
7433fi
Benny Prijono0b462322008-03-12 22:44:24 +00007434echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
7435echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007436
7437fi
7438if test $ac_cv_header_sys_select_h = yes; then
7439 cat >>confdefs.h <<\_ACEOF
7440#define PJ_HAS_SYS_SELECT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007441_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007442
7443fi
7444
7445
7446if test "${ac_cv_header_sys_socket_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007447 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
7448echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007449if test "${ac_cv_header_sys_socket_h+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451fi
Benny Prijono0b462322008-03-12 22:44:24 +00007452echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
7453echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007454else
7455 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007456echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
7457echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007458cat >conftest.$ac_ext <<_ACEOF
7459/* confdefs.h. */
7460_ACEOF
7461cat confdefs.h >>conftest.$ac_ext
7462cat >>conftest.$ac_ext <<_ACEOF
7463/* end confdefs.h. */
7464$ac_includes_default
7465#include <sys/socket.h>
7466_ACEOF
7467rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7469 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007470 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007471 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007472 rm -f conftest.er1
7473 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007475 (exit $ac_status); } &&
7476 { ac_try='test -z "$ac_c_werror_flag"
7477 || test ! -s conftest.err'
7478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479 (eval $ac_try) 2>&5
7480 ac_status=$?
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; } &&
7483 { ac_try='test -s conftest.$ac_objext'
7484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7485 (eval $ac_try) 2>&5
7486 ac_status=$?
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007489 ac_header_compiler=yes
7490else
7491 echo "$as_me: failed program was:" >&5
7492sed 's/^/| /' conftest.$ac_ext >&5
7493
Benny Prijono0b462322008-03-12 22:44:24 +00007494ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007495fi
Benny Prijono0b462322008-03-12 22:44:24 +00007496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7497echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7498echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007499
7500# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007501echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
7502echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007503cat >conftest.$ac_ext <<_ACEOF
7504/* confdefs.h. */
7505_ACEOF
7506cat confdefs.h >>conftest.$ac_ext
7507cat >>conftest.$ac_ext <<_ACEOF
7508/* end confdefs.h. */
7509#include <sys/socket.h>
7510_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007511if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007513 ac_status=$?
7514 grep -v '^ *+' conftest.er1 >conftest.err
7515 rm -f conftest.er1
7516 cat conftest.err >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007518 (exit $ac_status); } >/dev/null; then
7519 if test -s conftest.err; then
7520 ac_cpp_err=$ac_c_preproc_warn_flag
7521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7522 else
7523 ac_cpp_err=
7524 fi
7525else
7526 ac_cpp_err=yes
7527fi
7528if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007529 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007530else
7531 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007532sed 's/^/| /' conftest.$ac_ext >&5
7533
7534 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007535fi
7536rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007537echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7538echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007539
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007540# So? What about this header?
7541case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7542 yes:no: )
7543 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
7544echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7545 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
7546echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
7547 ac_header_preproc=yes
7548 ;;
7549 no:yes:* )
7550 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
7551echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
7552 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
7553echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
7554 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
7555echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
7556 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
7557echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
7558 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
7559echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
7560 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
7561echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007562 (
7563 cat <<\_ASBOX
7564## ------------------------------------ ##
7565## Report this to the pjproject lists. ##
7566## ------------------------------------ ##
7567_ASBOX
7568 ) |
7569 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007570 ;;
7571esac
Benny Prijono0b462322008-03-12 22:44:24 +00007572echo "$as_me:$LINENO: checking for sys/socket.h" >&5
7573echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007574if test "${ac_cv_header_sys_socket_h+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007576else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007577 ac_cv_header_sys_socket_h=$ac_header_preproc
7578fi
Benny Prijono0b462322008-03-12 22:44:24 +00007579echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
7580echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007581
7582fi
7583if test $ac_cv_header_sys_socket_h = yes; then
7584 cat >>confdefs.h <<\_ACEOF
7585#define PJ_HAS_SYS_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007586_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007587
7588fi
7589
7590
7591if test "${ac_cv_header_sys_time_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007592 echo "$as_me:$LINENO: checking for sys/time.h" >&5
7593echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007594if test "${ac_cv_header_sys_time_h+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7596fi
Benny Prijono0b462322008-03-12 22:44:24 +00007597echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7598echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007599else
7600 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007601echo "$as_me:$LINENO: checking sys/time.h usability" >&5
7602echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007603cat >conftest.$ac_ext <<_ACEOF
7604/* confdefs.h. */
7605_ACEOF
7606cat confdefs.h >>conftest.$ac_ext
7607cat >>conftest.$ac_ext <<_ACEOF
7608/* end confdefs.h. */
7609$ac_includes_default
7610#include <sys/time.h>
7611_ACEOF
7612rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7614 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007615 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007616 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007617 rm -f conftest.er1
7618 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007620 (exit $ac_status); } &&
7621 { ac_try='test -z "$ac_c_werror_flag"
7622 || test ! -s conftest.err'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 (eval $ac_try) 2>&5
7625 ac_status=$?
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; } &&
7628 { ac_try='test -s conftest.$ac_objext'
7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630 (eval $ac_try) 2>&5
7631 ac_status=$?
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007634 ac_header_compiler=yes
7635else
7636 echo "$as_me: failed program was:" >&5
7637sed 's/^/| /' conftest.$ac_ext >&5
7638
Benny Prijono0b462322008-03-12 22:44:24 +00007639ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007640fi
Benny Prijono0b462322008-03-12 22:44:24 +00007641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7642echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7643echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007644
7645# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007646echo "$as_me:$LINENO: checking sys/time.h presence" >&5
7647echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007648cat >conftest.$ac_ext <<_ACEOF
7649/* confdefs.h. */
7650_ACEOF
7651cat confdefs.h >>conftest.$ac_ext
7652cat >>conftest.$ac_ext <<_ACEOF
7653/* end confdefs.h. */
7654#include <sys/time.h>
7655_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007656if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007658 ac_status=$?
7659 grep -v '^ *+' conftest.er1 >conftest.err
7660 rm -f conftest.er1
7661 cat conftest.err >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007663 (exit $ac_status); } >/dev/null; then
7664 if test -s conftest.err; then
7665 ac_cpp_err=$ac_c_preproc_warn_flag
7666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7667 else
7668 ac_cpp_err=
7669 fi
7670else
7671 ac_cpp_err=yes
7672fi
7673if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007674 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007675else
7676 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007677sed 's/^/| /' conftest.$ac_ext >&5
7678
7679 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007680fi
7681rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007682echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7683echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007684
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007685# So? What about this header?
7686case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7687 yes:no: )
7688 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
7689echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7690 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
7691echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
7692 ac_header_preproc=yes
7693 ;;
7694 no:yes:* )
7695 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
7696echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
7697 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
7698echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
7699 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
7700echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
7701 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
7702echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
7703 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
7704echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
7705 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
7706echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007707 (
7708 cat <<\_ASBOX
7709## ------------------------------------ ##
7710## Report this to the pjproject lists. ##
7711## ------------------------------------ ##
7712_ASBOX
7713 ) |
7714 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007715 ;;
7716esac
Benny Prijono0b462322008-03-12 22:44:24 +00007717echo "$as_me:$LINENO: checking for sys/time.h" >&5
7718echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007719if test "${ac_cv_header_sys_time_h+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007721else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007722 ac_cv_header_sys_time_h=$ac_header_preproc
7723fi
Benny Prijono0b462322008-03-12 22:44:24 +00007724echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7725echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007726
7727fi
7728if test $ac_cv_header_sys_time_h = yes; then
7729 cat >>confdefs.h <<\_ACEOF
7730#define PJ_HAS_SYS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007731_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007732
7733fi
7734
7735
7736if test "${ac_cv_header_sys_timeb_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007737 echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
7738echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007739if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741fi
Benny Prijono0b462322008-03-12 22:44:24 +00007742echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7743echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007744else
7745 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007746echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5
7747echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007748cat >conftest.$ac_ext <<_ACEOF
7749/* confdefs.h. */
7750_ACEOF
7751cat confdefs.h >>conftest.$ac_ext
7752cat >>conftest.$ac_ext <<_ACEOF
7753/* end confdefs.h. */
7754$ac_includes_default
7755#include <sys/timeb.h>
7756_ACEOF
7757rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7759 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007760 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007761 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007762 rm -f conftest.er1
7763 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007765 (exit $ac_status); } &&
7766 { ac_try='test -z "$ac_c_werror_flag"
7767 || test ! -s conftest.err'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 (eval $ac_try) 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; } &&
7773 { ac_try='test -s conftest.$ac_objext'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 (eval $ac_try) 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007779 ac_header_compiler=yes
7780else
7781 echo "$as_me: failed program was:" >&5
7782sed 's/^/| /' conftest.$ac_ext >&5
7783
Benny Prijono0b462322008-03-12 22:44:24 +00007784ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007785fi
Benny Prijono0b462322008-03-12 22:44:24 +00007786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7787echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7788echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007789
7790# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007791echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5
7792echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007793cat >conftest.$ac_ext <<_ACEOF
7794/* confdefs.h. */
7795_ACEOF
7796cat confdefs.h >>conftest.$ac_ext
7797cat >>conftest.$ac_ext <<_ACEOF
7798/* end confdefs.h. */
7799#include <sys/timeb.h>
7800_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007803 ac_status=$?
7804 grep -v '^ *+' conftest.er1 >conftest.err
7805 rm -f conftest.er1
7806 cat conftest.err >&5
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007808 (exit $ac_status); } >/dev/null; then
7809 if test -s conftest.err; then
7810 ac_cpp_err=$ac_c_preproc_warn_flag
7811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7812 else
7813 ac_cpp_err=
7814 fi
7815else
7816 ac_cpp_err=yes
7817fi
7818if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007819 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007820else
7821 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007822sed 's/^/| /' conftest.$ac_ext >&5
7823
7824 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007825fi
7826rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007827echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7828echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007829
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007830# So? What about this header?
7831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7832 yes:no: )
7833 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7834echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7835 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5
7836echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;}
7837 ac_header_preproc=yes
7838 ;;
7839 no:yes:* )
7840 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5
7841echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;}
7842 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5
7843echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;}
7844 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5
7845echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;}
7846 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5
7847echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;}
7848 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5
7849echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;}
7850 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5
7851echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007852 (
7853 cat <<\_ASBOX
7854## ------------------------------------ ##
7855## Report this to the pjproject lists. ##
7856## ------------------------------------ ##
7857_ASBOX
7858 ) |
7859 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007860 ;;
7861esac
Benny Prijono0b462322008-03-12 22:44:24 +00007862echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
7863echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007864if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007866else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007867 ac_cv_header_sys_timeb_h=$ac_header_preproc
7868fi
Benny Prijono0b462322008-03-12 22:44:24 +00007869echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7870echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007871
7872fi
7873if test $ac_cv_header_sys_timeb_h = yes; then
7874 cat >>confdefs.h <<\_ACEOF
7875#define PJ_HAS_SYS_TIMEB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007876_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007877
7878fi
7879
7880
7881if test "${ac_cv_header_sys_types_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00007882 echo "$as_me:$LINENO: checking for sys/types.h" >&5
7883echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007884if test "${ac_cv_header_sys_types_h+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7886fi
Benny Prijono0b462322008-03-12 22:44:24 +00007887echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
7888echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007889else
7890 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00007891echo "$as_me:$LINENO: checking sys/types.h usability" >&5
7892echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007893cat >conftest.$ac_ext <<_ACEOF
7894/* confdefs.h. */
7895_ACEOF
7896cat confdefs.h >>conftest.$ac_ext
7897cat >>conftest.$ac_ext <<_ACEOF
7898/* end confdefs.h. */
7899$ac_includes_default
7900#include <sys/types.h>
7901_ACEOF
7902rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00007903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7904 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007905 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007906 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007907 rm -f conftest.er1
7908 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007910 (exit $ac_status); } &&
7911 { ac_try='test -z "$ac_c_werror_flag"
7912 || test ! -s conftest.err'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914 (eval $ac_try) 2>&5
7915 ac_status=$?
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; } &&
7918 { ac_try='test -s conftest.$ac_objext'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 (eval $ac_try) 2>&5
7921 ac_status=$?
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007924 ac_header_compiler=yes
7925else
7926 echo "$as_me: failed program was:" >&5
7927sed 's/^/| /' conftest.$ac_ext >&5
7928
Benny Prijono0b462322008-03-12 22:44:24 +00007929ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007930fi
Benny Prijono0b462322008-03-12 22:44:24 +00007931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7932echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7933echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007934
7935# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00007936echo "$as_me:$LINENO: checking sys/types.h presence" >&5
7937echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007938cat >conftest.$ac_ext <<_ACEOF
7939/* confdefs.h. */
7940_ACEOF
7941cat confdefs.h >>conftest.$ac_ext
7942cat >>conftest.$ac_ext <<_ACEOF
7943/* end confdefs.h. */
7944#include <sys/types.h>
7945_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00007946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007948 ac_status=$?
7949 grep -v '^ *+' conftest.er1 >conftest.err
7950 rm -f conftest.er1
7951 cat conftest.err >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00007953 (exit $ac_status); } >/dev/null; then
7954 if test -s conftest.err; then
7955 ac_cpp_err=$ac_c_preproc_warn_flag
7956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7957 else
7958 ac_cpp_err=
7959 fi
7960else
7961 ac_cpp_err=yes
7962fi
7963if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007964 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007965else
7966 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007967sed 's/^/| /' conftest.$ac_ext >&5
7968
7969 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007970fi
7971rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00007972echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7973echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007974
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007975# So? What about this header?
7976case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7977 yes:no: )
7978 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
7979echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7980 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
7981echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
7982 ac_header_preproc=yes
7983 ;;
7984 no:yes:* )
7985 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
7986echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
7987 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
7988echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
7989 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
7990echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
7991 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
7992echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
7993 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
7994echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
7995 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
7996echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00007997 (
7998 cat <<\_ASBOX
7999## ------------------------------------ ##
8000## Report this to the pjproject lists. ##
8001## ------------------------------------ ##
8002_ASBOX
8003 ) |
8004 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008005 ;;
8006esac
Benny Prijono0b462322008-03-12 22:44:24 +00008007echo "$as_me:$LINENO: checking for sys/types.h" >&5
8008echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008009if test "${ac_cv_header_sys_types_h+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008011else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008012 ac_cv_header_sys_types_h=$ac_header_preproc
8013fi
Benny Prijono0b462322008-03-12 22:44:24 +00008014echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
8015echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008016
8017fi
8018if test $ac_cv_header_sys_types_h = yes; then
8019 cat >>confdefs.h <<\_ACEOF
8020#define PJ_HAS_SYS_TYPES_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008021_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008022
8023fi
8024
8025
8026if test "${ac_cv_header_time_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008027 echo "$as_me:$LINENO: checking for time.h" >&5
8028echo $ECHO_N "checking for time.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008029if test "${ac_cv_header_time_h+set}" = set; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8031fi
Benny Prijono0b462322008-03-12 22:44:24 +00008032echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
8033echo "${ECHO_T}$ac_cv_header_time_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008034else
8035 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008036echo "$as_me:$LINENO: checking time.h usability" >&5
8037echo $ECHO_N "checking time.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008038cat >conftest.$ac_ext <<_ACEOF
8039/* confdefs.h. */
8040_ACEOF
8041cat confdefs.h >>conftest.$ac_ext
8042cat >>conftest.$ac_ext <<_ACEOF
8043/* end confdefs.h. */
8044$ac_includes_default
8045#include <time.h>
8046_ACEOF
8047rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8049 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008050 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008051 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008052 rm -f conftest.er1
8053 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008055 (exit $ac_status); } &&
8056 { ac_try='test -z "$ac_c_werror_flag"
8057 || test ! -s conftest.err'
8058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059 (eval $ac_try) 2>&5
8060 ac_status=$?
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); }; } &&
8063 { ac_try='test -s conftest.$ac_objext'
8064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 (eval $ac_try) 2>&5
8066 ac_status=$?
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008069 ac_header_compiler=yes
8070else
8071 echo "$as_me: failed program was:" >&5
8072sed 's/^/| /' conftest.$ac_ext >&5
8073
Benny Prijono0b462322008-03-12 22:44:24 +00008074ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008075fi
Benny Prijono0b462322008-03-12 22:44:24 +00008076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8077echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8078echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008079
8080# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008081echo "$as_me:$LINENO: checking time.h presence" >&5
8082echo $ECHO_N "checking time.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008083cat >conftest.$ac_ext <<_ACEOF
8084/* confdefs.h. */
8085_ACEOF
8086cat confdefs.h >>conftest.$ac_ext
8087cat >>conftest.$ac_ext <<_ACEOF
8088/* end confdefs.h. */
8089#include <time.h>
8090_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008093 ac_status=$?
8094 grep -v '^ *+' conftest.er1 >conftest.err
8095 rm -f conftest.er1
8096 cat conftest.err >&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008098 (exit $ac_status); } >/dev/null; then
8099 if test -s conftest.err; then
8100 ac_cpp_err=$ac_c_preproc_warn_flag
8101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8102 else
8103 ac_cpp_err=
8104 fi
8105else
8106 ac_cpp_err=yes
8107fi
8108if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008109 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008110else
8111 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008112sed 's/^/| /' conftest.$ac_ext >&5
8113
8114 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008115fi
8116rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008117echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8118echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008119
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008120# So? What about this header?
8121case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8122 yes:no: )
8123 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
8124echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8125 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
8126echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
8127 ac_header_preproc=yes
8128 ;;
8129 no:yes:* )
8130 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
8131echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
8132 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
8133echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
8134 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
8135echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
8136 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
8137echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
8138 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
8139echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
8140 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
8141echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008142 (
8143 cat <<\_ASBOX
8144## ------------------------------------ ##
8145## Report this to the pjproject lists. ##
8146## ------------------------------------ ##
8147_ASBOX
8148 ) |
8149 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008150 ;;
8151esac
Benny Prijono0b462322008-03-12 22:44:24 +00008152echo "$as_me:$LINENO: checking for time.h" >&5
8153echo $ECHO_N "checking for time.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008154if test "${ac_cv_header_time_h+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008156else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008157 ac_cv_header_time_h=$ac_header_preproc
8158fi
Benny Prijono0b462322008-03-12 22:44:24 +00008159echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
8160echo "${ECHO_T}$ac_cv_header_time_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008161
8162fi
8163if test $ac_cv_header_time_h = yes; then
8164 cat >>confdefs.h <<\_ACEOF
8165#define PJ_HAS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008166_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008167
8168fi
8169
8170
8171if test "${ac_cv_header_unistd_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008172 echo "$as_me:$LINENO: checking for unistd.h" >&5
8173echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008174if test "${ac_cv_header_unistd_h+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176fi
Benny Prijono0b462322008-03-12 22:44:24 +00008177echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
8178echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008179else
8180 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008181echo "$as_me:$LINENO: checking unistd.h usability" >&5
8182echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008183cat >conftest.$ac_ext <<_ACEOF
8184/* confdefs.h. */
8185_ACEOF
8186cat confdefs.h >>conftest.$ac_ext
8187cat >>conftest.$ac_ext <<_ACEOF
8188/* end confdefs.h. */
8189$ac_includes_default
8190#include <unistd.h>
8191_ACEOF
8192rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8194 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008195 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008196 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008197 rm -f conftest.er1
8198 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008200 (exit $ac_status); } &&
8201 { ac_try='test -z "$ac_c_werror_flag"
8202 || test ! -s conftest.err'
8203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204 (eval $ac_try) 2>&5
8205 ac_status=$?
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; } &&
8208 { ac_try='test -s conftest.$ac_objext'
8209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210 (eval $ac_try) 2>&5
8211 ac_status=$?
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008214 ac_header_compiler=yes
8215else
8216 echo "$as_me: failed program was:" >&5
8217sed 's/^/| /' conftest.$ac_ext >&5
8218
Benny Prijono0b462322008-03-12 22:44:24 +00008219ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008220fi
Benny Prijono0b462322008-03-12 22:44:24 +00008221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8222echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8223echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008224
8225# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008226echo "$as_me:$LINENO: checking unistd.h presence" >&5
8227echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008228cat >conftest.$ac_ext <<_ACEOF
8229/* confdefs.h. */
8230_ACEOF
8231cat confdefs.h >>conftest.$ac_ext
8232cat >>conftest.$ac_ext <<_ACEOF
8233/* end confdefs.h. */
8234#include <unistd.h>
8235_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008236if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008238 ac_status=$?
8239 grep -v '^ *+' conftest.er1 >conftest.err
8240 rm -f conftest.er1
8241 cat conftest.err >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008243 (exit $ac_status); } >/dev/null; then
8244 if test -s conftest.err; then
8245 ac_cpp_err=$ac_c_preproc_warn_flag
8246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8247 else
8248 ac_cpp_err=
8249 fi
8250else
8251 ac_cpp_err=yes
8252fi
8253if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008254 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008255else
8256 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008257sed 's/^/| /' conftest.$ac_ext >&5
8258
8259 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008260fi
8261rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008262echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8263echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008264
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008265# So? What about this header?
8266case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8267 yes:no: )
8268 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
8269echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8270 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
8271echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
8272 ac_header_preproc=yes
8273 ;;
8274 no:yes:* )
8275 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
8276echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
8277 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
8278echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
8279 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
8280echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
8281 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
8282echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
8283 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
8284echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
8285 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
8286echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008287 (
8288 cat <<\_ASBOX
8289## ------------------------------------ ##
8290## Report this to the pjproject lists. ##
8291## ------------------------------------ ##
8292_ASBOX
8293 ) |
8294 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008295 ;;
8296esac
Benny Prijono0b462322008-03-12 22:44:24 +00008297echo "$as_me:$LINENO: checking for unistd.h" >&5
8298echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008299if test "${ac_cv_header_unistd_h+set}" = set; then
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008301else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008302 ac_cv_header_unistd_h=$ac_header_preproc
8303fi
Benny Prijono0b462322008-03-12 22:44:24 +00008304echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
8305echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008306
8307fi
8308if test $ac_cv_header_unistd_h = yes; then
8309 cat >>confdefs.h <<\_ACEOF
8310#define PJ_HAS_UNISTD_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008311_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008312
8313fi
8314
8315
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008316if test "${ac_cv_header_winsock_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008317 echo "$as_me:$LINENO: checking for winsock.h" >&5
8318echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008319if test "${ac_cv_header_winsock_h+set}" = set; then
8320 echo $ECHO_N "(cached) $ECHO_C" >&6
8321fi
Benny Prijono0b462322008-03-12 22:44:24 +00008322echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8323echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008324else
8325 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008326echo "$as_me:$LINENO: checking winsock.h usability" >&5
8327echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008328cat >conftest.$ac_ext <<_ACEOF
8329/* confdefs.h. */
8330_ACEOF
8331cat confdefs.h >>conftest.$ac_ext
8332cat >>conftest.$ac_ext <<_ACEOF
8333/* end confdefs.h. */
8334$ac_includes_default
8335#include <winsock.h>
8336_ACEOF
8337rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8339 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008340 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008341 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008342 rm -f conftest.er1
8343 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008345 (exit $ac_status); } &&
8346 { ac_try='test -z "$ac_c_werror_flag"
8347 || test ! -s conftest.err'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 (eval $ac_try) 2>&5
8350 ac_status=$?
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; } &&
8353 { ac_try='test -s conftest.$ac_objext'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355 (eval $ac_try) 2>&5
8356 ac_status=$?
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008359 ac_header_compiler=yes
8360else
8361 echo "$as_me: failed program was:" >&5
8362sed 's/^/| /' conftest.$ac_ext >&5
8363
Benny Prijono0b462322008-03-12 22:44:24 +00008364ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008365fi
Benny Prijono0b462322008-03-12 22:44:24 +00008366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8367echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8368echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008369
8370# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008371echo "$as_me:$LINENO: checking winsock.h presence" >&5
8372echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008373cat >conftest.$ac_ext <<_ACEOF
8374/* confdefs.h. */
8375_ACEOF
8376cat confdefs.h >>conftest.$ac_ext
8377cat >>conftest.$ac_ext <<_ACEOF
8378/* end confdefs.h. */
8379#include <winsock.h>
8380_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008381if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008383 ac_status=$?
8384 grep -v '^ *+' conftest.er1 >conftest.err
8385 rm -f conftest.er1
8386 cat conftest.err >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008388 (exit $ac_status); } >/dev/null; then
8389 if test -s conftest.err; then
8390 ac_cpp_err=$ac_c_preproc_warn_flag
8391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8392 else
8393 ac_cpp_err=
8394 fi
8395else
8396 ac_cpp_err=yes
8397fi
8398if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008399 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008400else
8401 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008402sed 's/^/| /' conftest.$ac_ext >&5
8403
8404 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008405fi
8406rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008407echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8408echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008409
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008410# So? What about this header?
8411case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8412 yes:no: )
8413 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
8414echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8415 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
8416echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
8417 ac_header_preproc=yes
8418 ;;
8419 no:yes:* )
8420 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
8421echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
8422 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
8423echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
8424 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
8425echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
8426 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
8427echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
8428 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
8429echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
8430 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
8431echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008432 (
8433 cat <<\_ASBOX
8434## ------------------------------------ ##
8435## Report this to the pjproject lists. ##
8436## ------------------------------------ ##
8437_ASBOX
8438 ) |
8439 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008440 ;;
8441esac
Benny Prijono0b462322008-03-12 22:44:24 +00008442echo "$as_me:$LINENO: checking for winsock.h" >&5
8443echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008444if test "${ac_cv_header_winsock_h+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008446else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008447 ac_cv_header_winsock_h=$ac_header_preproc
8448fi
Benny Prijono0b462322008-03-12 22:44:24 +00008449echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8450echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008451
8452fi
8453if test $ac_cv_header_winsock_h = yes; then
8454 cat >>confdefs.h <<\_ACEOF
8455#define PJ_HAS_WINSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008456_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008457
8458fi
8459
8460
8461if test "${ac_cv_header_winsock2_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008462 echo "$as_me:$LINENO: checking for winsock2.h" >&5
8463echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008464if test "${ac_cv_header_winsock2_h+set}" = set; then
8465 echo $ECHO_N "(cached) $ECHO_C" >&6
8466fi
Benny Prijono0b462322008-03-12 22:44:24 +00008467echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
8468echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008469else
8470 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008471echo "$as_me:$LINENO: checking winsock2.h usability" >&5
8472echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008473cat >conftest.$ac_ext <<_ACEOF
8474/* confdefs.h. */
8475_ACEOF
8476cat confdefs.h >>conftest.$ac_ext
8477cat >>conftest.$ac_ext <<_ACEOF
8478/* end confdefs.h. */
8479$ac_includes_default
8480#include <winsock2.h>
8481_ACEOF
8482rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008485 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008486 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008487 rm -f conftest.er1
8488 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008490 (exit $ac_status); } &&
8491 { ac_try='test -z "$ac_c_werror_flag"
8492 || test ! -s conftest.err'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 (eval $ac_try) 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; } &&
8498 { ac_try='test -s conftest.$ac_objext'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500 (eval $ac_try) 2>&5
8501 ac_status=$?
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008504 ac_header_compiler=yes
8505else
8506 echo "$as_me: failed program was:" >&5
8507sed 's/^/| /' conftest.$ac_ext >&5
8508
Benny Prijono0b462322008-03-12 22:44:24 +00008509ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008510fi
Benny Prijono0b462322008-03-12 22:44:24 +00008511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8512echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8513echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008514
8515# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008516echo "$as_me:$LINENO: checking winsock2.h presence" >&5
8517echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008518cat >conftest.$ac_ext <<_ACEOF
8519/* confdefs.h. */
8520_ACEOF
8521cat confdefs.h >>conftest.$ac_ext
8522cat >>conftest.$ac_ext <<_ACEOF
8523/* end confdefs.h. */
8524#include <winsock2.h>
8525_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008526if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008528 ac_status=$?
8529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008533 (exit $ac_status); } >/dev/null; then
8534 if test -s conftest.err; then
8535 ac_cpp_err=$ac_c_preproc_warn_flag
8536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8537 else
8538 ac_cpp_err=
8539 fi
8540else
8541 ac_cpp_err=yes
8542fi
8543if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008544 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008545else
8546 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008547sed 's/^/| /' conftest.$ac_ext >&5
8548
8549 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008550fi
8551rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008552echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8553echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008554
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008555# So? What about this header?
8556case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8557 yes:no: )
8558 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
8559echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8560 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
8561echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
8562 ac_header_preproc=yes
8563 ;;
8564 no:yes:* )
8565 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
8566echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
8567 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
8568echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
8569 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
8570echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
8571 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
8572echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
8574echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
8575 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
8576echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008577 (
8578 cat <<\_ASBOX
8579## ------------------------------------ ##
8580## Report this to the pjproject lists. ##
8581## ------------------------------------ ##
8582_ASBOX
8583 ) |
8584 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008585 ;;
8586esac
Benny Prijono0b462322008-03-12 22:44:24 +00008587echo "$as_me:$LINENO: checking for winsock2.h" >&5
8588echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008589if test "${ac_cv_header_winsock2_h+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008591else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008592 ac_cv_header_winsock2_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008593fi
Benny Prijono0b462322008-03-12 22:44:24 +00008594echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
8595echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008596
8597fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008598if test $ac_cv_header_winsock2_h = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008599 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008600#define PJ_HAS_WINSOCK2_H 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008601_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008602
8603fi
8604
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008605
Benny Prijonoa9948e62008-03-25 14:03:01 +00008606echo "$as_me:$LINENO: checking for mswsock.h" >&5
8607echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
8608if test "${ac_cv_header_mswsock_h+set}" = set; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8610else
8611 cat >conftest.$ac_ext <<_ACEOF
8612/* confdefs.h. */
8613_ACEOF
8614cat confdefs.h >>conftest.$ac_ext
8615cat >>conftest.$ac_ext <<_ACEOF
8616/* end confdefs.h. */
8617#if PJ_HAS_WINSOCK2_H
8618 # include <winsock2.h>
8619 #elif PJ_HAS_WINSOCK_H
8620 # include <winsock.h>
8621 #endif
8622
8623
8624#include <mswsock.h>
8625_ACEOF
8626rm -f conftest.$ac_objext
8627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8628 (eval $ac_compile) 2>conftest.er1
8629 ac_status=$?
8630 grep -v '^ *+' conftest.er1 >conftest.err
8631 rm -f conftest.er1
8632 cat conftest.err >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } &&
8635 { ac_try='test -z "$ac_c_werror_flag"
8636 || test ! -s conftest.err'
8637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638 (eval $ac_try) 2>&5
8639 ac_status=$?
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; } &&
8642 { ac_try='test -s conftest.$ac_objext'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 (eval $ac_try) 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; }; then
8648 ac_cv_header_mswsock_h=yes
8649else
8650 echo "$as_me: failed program was:" >&5
8651sed 's/^/| /' conftest.$ac_ext >&5
8652
8653ac_cv_header_mswsock_h=no
8654fi
8655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8656fi
8657echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
8658echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
8659if test $ac_cv_header_mswsock_h = yes; then
8660 cat >>confdefs.h <<\_ACEOF
8661#define PJ_HAS_MSWSOCK_H 1
8662_ACEOF
8663
8664fi
8665
8666
Benny Prijono4e48b512007-05-16 13:41:00 +00008667if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00008668 echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
8669echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008670if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8672fi
Benny Prijono0b462322008-03-12 22:44:24 +00008673echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
8674echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008675else
8676 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00008677echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
8678echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008679cat >conftest.$ac_ext <<_ACEOF
8680/* confdefs.h. */
8681_ACEOF
8682cat confdefs.h >>conftest.$ac_ext
8683cat >>conftest.$ac_ext <<_ACEOF
8684/* end confdefs.h. */
8685$ac_includes_default
8686#include <uuid/uuid.h>
8687_ACEOF
8688rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8690 (eval $ac_compile) 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00008691 ac_status=$?
8692 grep -v '^ *+' conftest.er1 >conftest.err
8693 rm -f conftest.er1
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008696 (exit $ac_status); } &&
8697 { ac_try='test -z "$ac_c_werror_flag"
8698 || test ! -s conftest.err'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 (eval $ac_try) 2>&5
8701 ac_status=$?
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; } &&
8704 { ac_try='test -s conftest.$ac_objext'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 (eval $ac_try) 2>&5
8707 ac_status=$?
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
Benny Prijono4e48b512007-05-16 13:41:00 +00008710 ac_header_compiler=yes
8711else
8712 echo "$as_me: failed program was:" >&5
8713sed 's/^/| /' conftest.$ac_ext >&5
8714
Benny Prijono0b462322008-03-12 22:44:24 +00008715ac_header_compiler=no
Benny Prijono4e48b512007-05-16 13:41:00 +00008716fi
Benny Prijono0b462322008-03-12 22:44:24 +00008717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8718echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8719echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008720
8721# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00008722echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
8723echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008724cat >conftest.$ac_ext <<_ACEOF
8725/* confdefs.h. */
8726_ACEOF
8727cat confdefs.h >>conftest.$ac_ext
8728cat >>conftest.$ac_ext <<_ACEOF
8729/* end confdefs.h. */
8730#include <uuid/uuid.h>
8731_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00008732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00008734 ac_status=$?
8735 grep -v '^ *+' conftest.er1 >conftest.err
8736 rm -f conftest.er1
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008739 (exit $ac_status); } >/dev/null; then
8740 if test -s conftest.err; then
8741 ac_cpp_err=$ac_c_preproc_warn_flag
8742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8743 else
8744 ac_cpp_err=
8745 fi
8746else
8747 ac_cpp_err=yes
8748fi
8749if test -z "$ac_cpp_err"; then
Benny Prijono4e48b512007-05-16 13:41:00 +00008750 ac_header_preproc=yes
8751else
8752 echo "$as_me: failed program was:" >&5
8753sed 's/^/| /' conftest.$ac_ext >&5
8754
8755 ac_header_preproc=no
8756fi
8757rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00008758echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8759echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008760
8761# So? What about this header?
8762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8763 yes:no: )
8764 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
8765echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
8767echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
8768 ac_header_preproc=yes
8769 ;;
8770 no:yes:* )
8771 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
8772echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
8774echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
8776echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
8778echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
8780echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
8781 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
8782echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00008783 (
8784 cat <<\_ASBOX
8785## ------------------------------------ ##
8786## Report this to the pjproject lists. ##
8787## ------------------------------------ ##
8788_ASBOX
8789 ) |
8790 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono4e48b512007-05-16 13:41:00 +00008791 ;;
8792esac
Benny Prijono0b462322008-03-12 22:44:24 +00008793echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
8794echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008795if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8797else
8798 ac_cv_header_uuid_uuid_h=$ac_header_preproc
8799fi
Benny Prijono0b462322008-03-12 22:44:24 +00008800echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
8801echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008802
8803fi
8804if test $ac_cv_header_uuid_uuid_h = yes; then
8805 ac_has_uuid_h=1
8806fi
8807
8808
Benny Prijonoa9948e62008-03-25 14:03:01 +00008809echo "$as_me:$LINENO: checking for net/if.h" >&5
8810echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6
8811if test "${ac_cv_header_net_if_h+set}" = set; then
Benny Prijono188ba7e2008-03-25 13:53:16 +00008812 echo $ECHO_N "(cached) $ECHO_C" >&6
8813else
8814 cat >conftest.$ac_ext <<_ACEOF
8815/* confdefs.h. */
8816_ACEOF
8817cat confdefs.h >>conftest.$ac_ext
8818cat >>conftest.$ac_ext <<_ACEOF
8819/* end confdefs.h. */
8820#if PJ_HAS_SYS_SOCKET_H
8821 # include <sys/socket.h>
8822 #endif
8823
8824
Benny Prijonoa9948e62008-03-25 14:03:01 +00008825#include <net/if.h>
Benny Prijono188ba7e2008-03-25 13:53:16 +00008826_ACEOF
8827rm -f conftest.$ac_objext
8828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8829 (eval $ac_compile) 2>conftest.er1
8830 ac_status=$?
8831 grep -v '^ *+' conftest.er1 >conftest.err
8832 rm -f conftest.er1
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } &&
8836 { ac_try='test -z "$ac_c_werror_flag"
8837 || test ! -s conftest.err'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 (eval $ac_try) 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; } &&
8843 { ac_try='test -s conftest.$ac_objext'
8844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845 (eval $ac_try) 2>&5
8846 ac_status=$?
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
Benny Prijonoa9948e62008-03-25 14:03:01 +00008849 ac_cv_header_net_if_h=yes
Benny Prijono188ba7e2008-03-25 13:53:16 +00008850else
8851 echo "$as_me: failed program was:" >&5
8852sed 's/^/| /' conftest.$ac_ext >&5
8853
Benny Prijonoa9948e62008-03-25 14:03:01 +00008854ac_cv_header_net_if_h=no
Benny Prijono188ba7e2008-03-25 13:53:16 +00008855fi
8856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8857fi
Benny Prijonoa9948e62008-03-25 14:03:01 +00008858echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
8859echo "${ECHO_T}$ac_cv_header_net_if_h" >&6
8860if test $ac_cv_header_net_if_h = yes; then
8861 cat >>confdefs.h <<\_ACEOF
Benny Prijono188ba7e2008-03-25 13:53:16 +00008862#define PJ_HAS_NET_IF_H 1
8863_ACEOF
8864
8865fi
8866
Benny Prijono188ba7e2008-03-25 13:53:16 +00008867
8868
Benny Prijono0b462322008-03-12 22:44:24 +00008869echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5
8870echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008871cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008872#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008873_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008874
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008875
Benny Prijono0b462322008-03-12 22:44:24 +00008876echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
8877echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008878cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008879#define PJ_HAS_ERRNO_VAR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008880_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008881
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008882
Benny Prijono0b462322008-03-12 22:44:24 +00008883echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
8884echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008885cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008886#define PJ_HAS_HIGH_RES_TIMER 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008887_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008888
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008889
Benny Prijono0b462322008-03-12 22:44:24 +00008890echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5
8891echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008892cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008893#define PJ_HAS_MALLOC 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008894_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008895
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008896
Benny Prijono0b462322008-03-12 22:44:24 +00008897echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
8898echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008899cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008900#define PJ_NATIVE_STRING_IS_UNICODE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008901_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008902
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008903
Benny Prijono0b462322008-03-12 22:44:24 +00008904echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
8905echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008906cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008907#define PJ_ATOMIC_VALUE_TYPE long
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008908_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008909
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008910
Benny Prijono0b462322008-03-12 22:44:24 +00008911echo "$as_me:$LINENO: checking if inet_aton() is available" >&5
8912echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008913cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008914/* confdefs.h. */
8915_ACEOF
8916cat confdefs.h >>conftest.$ac_ext
8917cat >>conftest.$ac_ext <<_ACEOF
8918/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008919#include <sys/types.h>
8920 #include <sys/socket.h>
8921 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008922int
8923main ()
8924{
8925inet_aton(0, 0);
8926 ;
8927 return 0;
8928}
8929_ACEOF
8930rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8932 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008933 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008934 grep -v '^ *+' conftest.er1 >conftest.err
8935 rm -f conftest.er1
8936 cat conftest.err >&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008938 (exit $ac_status); } &&
8939 { ac_try='test -z "$ac_c_werror_flag"
8940 || test ! -s conftest.err'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 (eval $ac_try) 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; } &&
8946 { ac_try='test -s conftest.$ac_objext'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 (eval $ac_try) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008952 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008953#define PJ_SOCK_HAS_INET_ATON 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008954_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008955
Benny Prijono0b462322008-03-12 22:44:24 +00008956 echo "$as_me:$LINENO: result: yes" >&5
8957echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008958else
8959 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008960sed 's/^/| /' conftest.$ac_ext >&5
8961
Benny Prijono0b462322008-03-12 22:44:24 +00008962echo "$as_me:$LINENO: result: no" >&5
8963echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008964fi
Benny Prijono0b462322008-03-12 22:44:24 +00008965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008966
Benny Prijono0b462322008-03-12 22:44:24 +00008967echo "$as_me:$LINENO: checking if inet_pton() is available" >&5
8968echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008969cat >conftest.$ac_ext <<_ACEOF
8970/* confdefs.h. */
8971_ACEOF
8972cat confdefs.h >>conftest.$ac_ext
8973cat >>conftest.$ac_ext <<_ACEOF
8974/* end confdefs.h. */
8975#include <sys/types.h>
8976 #include <sys/socket.h>
8977 #include <arpa/inet.h>
8978int
8979main ()
8980{
8981inet_pton(0, 0, 0);
8982 ;
8983 return 0;
8984}
8985_ACEOF
8986rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00008987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8988 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008989 ac_status=$?
8990 grep -v '^ *+' conftest.er1 >conftest.err
8991 rm -f conftest.er1
8992 cat conftest.err >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00008994 (exit $ac_status); } &&
8995 { ac_try='test -z "$ac_c_werror_flag"
8996 || test ! -s conftest.err'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 (eval $ac_try) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; } &&
9002 { ac_try='test -s conftest.$ac_objext'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 (eval $ac_try) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; }; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009008 cat >>confdefs.h <<\_ACEOF
9009#define PJ_SOCK_HAS_INET_PTON 1
9010_ACEOF
9011
Benny Prijono0b462322008-03-12 22:44:24 +00009012 echo "$as_me:$LINENO: result: yes" >&5
9013echo "${ECHO_T}yes" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009014else
9015 echo "$as_me: failed program was:" >&5
9016sed 's/^/| /' conftest.$ac_ext >&5
9017
Benny Prijono0b462322008-03-12 22:44:24 +00009018echo "$as_me:$LINENO: result: no" >&5
9019echo "${ECHO_T}no" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009020fi
Benny Prijono0b462322008-03-12 22:44:24 +00009021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009022
Benny Prijono0b462322008-03-12 22:44:24 +00009023echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5
9024echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009025cat >conftest.$ac_ext <<_ACEOF
9026/* confdefs.h. */
9027_ACEOF
9028cat confdefs.h >>conftest.$ac_ext
9029cat >>conftest.$ac_ext <<_ACEOF
9030/* end confdefs.h. */
9031#include <sys/types.h>
9032 #include <sys/socket.h>
9033 #include <arpa/inet.h>
9034int
9035main ()
9036{
9037inet_ntop(0, 0, 0, 0);
9038 ;
9039 return 0;
9040}
9041_ACEOF
9042rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9044 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009045 ac_status=$?
9046 grep -v '^ *+' conftest.er1 >conftest.err
9047 rm -f conftest.er1
9048 cat conftest.err >&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009050 (exit $ac_status); } &&
9051 { ac_try='test -z "$ac_c_werror_flag"
9052 || test ! -s conftest.err'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054 (eval $ac_try) 2>&5
9055 ac_status=$?
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; } &&
9058 { ac_try='test -s conftest.$ac_objext'
9059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 (eval $ac_try) 2>&5
9061 ac_status=$?
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; }; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009064 cat >>confdefs.h <<\_ACEOF
9065#define PJ_SOCK_HAS_INET_NTOP 1
9066_ACEOF
9067
Benny Prijono0b462322008-03-12 22:44:24 +00009068 echo "$as_me:$LINENO: result: yes" >&5
9069echo "${ECHO_T}yes" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009070else
9071 echo "$as_me: failed program was:" >&5
9072sed 's/^/| /' conftest.$ac_ext >&5
9073
Benny Prijono0b462322008-03-12 22:44:24 +00009074echo "$as_me:$LINENO: result: no" >&5
9075echo "${ECHO_T}no" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009076fi
Benny Prijono0b462322008-03-12 22:44:24 +00009077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009078
Benny Prijono0b462322008-03-12 22:44:24 +00009079echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5
9080echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009081cat >conftest.$ac_ext <<_ACEOF
9082/* confdefs.h. */
9083_ACEOF
9084cat confdefs.h >>conftest.$ac_ext
9085cat >>conftest.$ac_ext <<_ACEOF
9086/* end confdefs.h. */
9087#include <sys/types.h>
9088 #include <sys/socket.h>
9089 #include <netdb.h>
9090int
9091main ()
9092{
9093getaddrinfo(0, 0, 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 Prijonoc16c6e32007-11-18 14:53:47 +00009101 ac_status=$?
9102 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 Prijonoc16c6e32007-11-18 14:53:47 +00009120 cat >>confdefs.h <<\_ACEOF
9121#define PJ_SOCK_HAS_GETADDRINFO 1
9122_ACEOF
9123
Benny Prijono0b462322008-03-12 22:44:24 +00009124 echo "$as_me:$LINENO: result: yes" >&5
9125echo "${ECHO_T}yes" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009126else
9127 echo "$as_me: failed program was:" >&5
9128sed '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 Prijonoc16c6e32007-11-18 14:53:47 +00009132fi
Benny Prijono0b462322008-03-12 22:44:24 +00009133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009134
Benny Prijono0b462322008-03-12 22:44:24 +00009135echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
9136echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009137cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009138/* confdefs.h. */
9139_ACEOF
9140cat confdefs.h >>conftest.$ac_ext
9141cat >>conftest.$ac_ext <<_ACEOF
9142/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00009143#include <sys/types.h>
9144 #include <sys/socket.h>
9145 #include <netinet/in.h>
9146 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009147int
9148main ()
9149{
9150struct sockaddr_in a; a.sin_len=0;
9151 ;
9152 return 0;
9153}
9154_ACEOF
9155rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9157 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009158 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009159 grep -v '^ *+' conftest.er1 >conftest.err
9160 rm -f conftest.er1
9161 cat conftest.err >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009163 (exit $ac_status); } &&
9164 { ac_try='test -z "$ac_c_werror_flag"
9165 || test ! -s conftest.err'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 (eval $ac_try) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; } &&
9171 { ac_try='test -s conftest.$ac_objext'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173 (eval $ac_try) 2>&5
9174 ac_status=$?
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009177 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009178#define PJ_SOCKADDR_HAS_LEN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009179_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009180
Benny Prijono0b462322008-03-12 22:44:24 +00009181 echo "$as_me:$LINENO: result: yes" >&5
9182echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009183else
9184 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009185sed 's/^/| /' conftest.$ac_ext >&5
9186
Benny Prijono0b462322008-03-12 22:44:24 +00009187echo "$as_me:$LINENO: result: no" >&5
9188echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009189fi
Benny Prijono0b462322008-03-12 22:44:24 +00009190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009191
Benny Prijono0b462322008-03-12 22:44:24 +00009192echo "$as_me:$LINENO: checking if socklen_t is available" >&5
9193echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6
Benny Prijono30f85c62006-09-09 20:05:33 +00009194cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009195/* confdefs.h. */
9196_ACEOF
9197cat confdefs.h >>conftest.$ac_ext
9198cat >>conftest.$ac_ext <<_ACEOF
9199/* end confdefs.h. */
Benny Prijono1d971622006-09-10 22:27:40 +00009200#include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00009201int
9202main ()
9203{
9204socklen_t xxx = 0;
9205 ;
9206 return 0;
9207}
9208_ACEOF
9209rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9211 (eval $ac_compile) 2>conftest.er1
Benny Prijono30f85c62006-09-09 20:05:33 +00009212 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009213 grep -v '^ *+' conftest.er1 >conftest.err
9214 rm -f conftest.er1
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009217 (exit $ac_status); } &&
9218 { ac_try='test -z "$ac_c_werror_flag"
9219 || test ! -s conftest.err'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 (eval $ac_try) 2>&5
9222 ac_status=$?
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; } &&
9225 { ac_try='test -s conftest.$ac_objext'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227 (eval $ac_try) 2>&5
9228 ac_status=$?
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009231 cat >>confdefs.h <<\_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00009232#define PJ_HAS_SOCKLEN_T 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009233_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00009234
Benny Prijono0b462322008-03-12 22:44:24 +00009235 echo "$as_me:$LINENO: result: yes" >&5
9236echo "${ECHO_T}yes" >&6
Benny Prijono30f85c62006-09-09 20:05:33 +00009237else
9238 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009239sed 's/^/| /' conftest.$ac_ext >&5
9240
Benny Prijono0b462322008-03-12 22:44:24 +00009241echo "$as_me:$LINENO: result: no" >&5
9242echo "${ECHO_T}no" >&6
Benny Prijono30f85c62006-09-09 20:05:33 +00009243fi
Benny Prijono0b462322008-03-12 22:44:24 +00009244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono30f85c62006-09-09 20:05:33 +00009245
Benny Prijono0b462322008-03-12 22:44:24 +00009246echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
9247echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009248case $target in
9249 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009250 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009251#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009252_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009253
Benny Prijono0b462322008-03-12 22:44:24 +00009254 echo "$as_me:$LINENO: result: yes" >&5
9255echo "${ECHO_T}yes" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009256 ;;
9257 *)
9258 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009259/* confdefs.h. */
9260_ACEOF
9261cat confdefs.h >>conftest.$ac_ext
9262cat >>conftest.$ac_ext <<_ACEOF
9263/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00009264#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009265 #include <sys/socket.h>
9266 #include <netinet/in.h>
9267 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009268int
9269main ()
9270{
9271int i=SO_ERROR;
9272 ;
9273 return 0;
9274}
9275_ACEOF
9276rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9278 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009279 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009280 grep -v '^ *+' conftest.er1 >conftest.err
9281 rm -f conftest.er1
9282 cat conftest.err >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009284 (exit $ac_status); } &&
9285 { ac_try='test -z "$ac_c_werror_flag"
9286 || test ! -s conftest.err'
9287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288 (eval $ac_try) 2>&5
9289 ac_status=$?
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); }; } &&
9292 { ac_try='test -s conftest.$ac_objext'
9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 (eval $ac_try) 2>&5
9295 ac_status=$?
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009298 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009299#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009300_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009301
Benny Prijono0b462322008-03-12 22:44:24 +00009302 echo "$as_me:$LINENO: result: yes" >&5
9303echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009304else
9305 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009306sed 's/^/| /' conftest.$ac_ext >&5
9307
Benny Prijono0b462322008-03-12 22:44:24 +00009308echo "$as_me:$LINENO: result: no" >&5
9309echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009310fi
Benny Prijono0b462322008-03-12 22:44:24 +00009311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009312 ;;
9313esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009314
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009315
Benny Prijono0b462322008-03-12 22:44:24 +00009316echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
9317echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009318cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009319/* confdefs.h. */
9320_ACEOF
9321cat confdefs.h >>conftest.$ac_ext
9322cat >>conftest.$ac_ext <<_ACEOF
9323/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009324#include <pthread.h>
9325int
9326main ()
9327{
9328pthread_rwlock_t *x;
9329 ;
9330 return 0;
9331}
9332_ACEOF
9333rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9335 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009336 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009337 grep -v '^ *+' conftest.er1 >conftest.err
9338 rm -f conftest.er1
9339 cat conftest.err >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009341 (exit $ac_status); } &&
9342 { ac_try='test -z "$ac_c_werror_flag"
9343 || test ! -s conftest.err'
9344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345 (eval $ac_try) 2>&5
9346 ac_status=$?
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; } &&
9349 { ac_try='test -s conftest.$ac_objext'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351 (eval $ac_try) 2>&5
9352 ac_status=$?
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009355 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009356#define PJ_EMULATE_RWMUTEX 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009357_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009358
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009359 ac_rwmutex="yes"
Benny Prijono0b462322008-03-12 22:44:24 +00009360 echo "$as_me:$LINENO: result: yes" >&5
9361echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009362else
9363 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009364sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009365
Benny Prijono0b462322008-03-12 22:44:24 +00009366cat >>confdefs.h <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009367#define PJ_EMULATE_RWMUTEX 1
9368_ACEOF
9369
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009370 ac_rwmutex="no"
Benny Prijono0b462322008-03-12 22:44:24 +00009371 echo "$as_me:$LINENO: result: no" >&5
9372echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009373fi
Benny Prijono0b462322008-03-12 22:44:24 +00009374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009375
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009376if test "$ac_rwmutex" = "no"; then
Benny Prijono0b462322008-03-12 22:44:24 +00009377 echo "$as_me:$LINENO: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
9378echo $ECHO_N "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009379 cat >conftest.$ac_ext <<_ACEOF
9380/* confdefs.h. */
9381_ACEOF
9382cat confdefs.h >>conftest.$ac_ext
9383cat >>conftest.$ac_ext <<_ACEOF
9384/* end confdefs.h. */
9385#define _POSIX_READER_WRITER_LOCKS
9386 #include <pthread.h>
9387int
9388main ()
9389{
9390pthread_rwlock_t *x;
9391 ;
9392 return 0;
9393}
9394_ACEOF
9395rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9397 (eval $ac_compile) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009398 ac_status=$?
9399 grep -v '^ *+' conftest.er1 >conftest.err
9400 rm -f conftest.er1
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009403 (exit $ac_status); } &&
9404 { ac_try='test -z "$ac_c_werror_flag"
9405 || test ! -s conftest.err'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407 (eval $ac_try) 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; } &&
9411 { ac_try='test -s conftest.$ac_objext'
9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413 (eval $ac_try) 2>&5
9414 ac_status=$?
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009417 cat >>confdefs.h <<\_ACEOF
9418#define PJ_EMULATE_RWMUTEX 0
9419_ACEOF
9420
9421 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Benny Prijono0b462322008-03-12 22:44:24 +00009422 echo "$as_me:$LINENO: result: yes" >&5
9423echo "${ECHO_T}yes" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009424else
9425 echo "$as_me: failed program was:" >&5
9426sed 's/^/| /' conftest.$ac_ext >&5
9427
Benny Prijono0b462322008-03-12 22:44:24 +00009428cat >>confdefs.h <<\_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009429#define PJ_EMULATE_RWMUTEX 1
9430_ACEOF
9431
Benny Prijono0b462322008-03-12 22:44:24 +00009432 echo "$as_me:$LINENO: result: no" >&5
9433echo "${ECHO_T}no" >&6
9434fi
9435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009436fi
9437
Benny Prijono0b462322008-03-12 22:44:24 +00009438echo "$as_me:$LINENO: checking if pthread_mutexattr_settype() is available" >&5
9439echo $ECHO_N "checking if pthread_mutexattr_settype() is available... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009440cat >conftest.$ac_ext <<_ACEOF
9441/* confdefs.h. */
9442_ACEOF
9443cat confdefs.h >>conftest.$ac_ext
9444cat >>conftest.$ac_ext <<_ACEOF
9445/* end confdefs.h. */
9446#include <pthread.h>
9447int
9448main ()
9449{
9450pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
9451 ;
9452 return 0;
9453}
9454_ACEOF
9455rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9457 (eval $ac_compile) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009458 ac_status=$?
9459 grep -v '^ *+' conftest.er1 >conftest.err
9460 rm -f conftest.er1
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009463 (exit $ac_status); } &&
9464 { ac_try='test -z "$ac_c_werror_flag"
9465 || test ! -s conftest.err'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 (eval $ac_try) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; } &&
9471 { ac_try='test -s conftest.$ac_objext'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473 (eval $ac_try) 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009477 cat >>confdefs.h <<\_ACEOF
9478#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1
9479_ACEOF
9480
Benny Prijono0b462322008-03-12 22:44:24 +00009481 echo "$as_me:$LINENO: result: yes" >&5
9482echo "${ECHO_T}yes" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009483else
9484 echo "$as_me: failed program was:" >&5
9485sed 's/^/| /' conftest.$ac_ext >&5
9486
Benny Prijono0b462322008-03-12 22:44:24 +00009487echo "$as_me:$LINENO: result: no" >&5
9488echo "${ECHO_T}no" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009489fi
Benny Prijono0b462322008-03-12 22:44:24 +00009490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009491
Benny Prijono0b462322008-03-12 22:44:24 +00009492echo "$as_me:$LINENO: checking if pthread_mutexattr_t has recursive member" >&5
9493echo $ECHO_N "checking if pthread_mutexattr_t has recursive member... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009494cat >conftest.$ac_ext <<_ACEOF
9495/* confdefs.h. */
9496_ACEOF
9497cat confdefs.h >>conftest.$ac_ext
9498cat >>conftest.$ac_ext <<_ACEOF
9499/* end confdefs.h. */
9500#include <pthread.h>
9501int
9502main ()
9503{
9504pthread_mutexattr_t attr;
9505 attr.recursive=1;
9506 ;
9507 return 0;
9508}
9509_ACEOF
9510rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9512 (eval $ac_compile) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009513 ac_status=$?
9514 grep -v '^ *+' conftest.er1 >conftest.err
9515 rm -f conftest.er1
9516 cat conftest.err >&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009518 (exit $ac_status); } &&
9519 { ac_try='test -z "$ac_c_werror_flag"
9520 || test ! -s conftest.err'
9521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522 (eval $ac_try) 2>&5
9523 ac_status=$?
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; } &&
9526 { ac_try='test -s conftest.$ac_objext'
9527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9528 (eval $ac_try) 2>&5
9529 ac_status=$?
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); }; }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009532 cat >>confdefs.h <<\_ACEOF
9533#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1
9534_ACEOF
9535
Benny Prijono0b462322008-03-12 22:44:24 +00009536 echo "$as_me:$LINENO: result: yes" >&5
9537echo "${ECHO_T}yes" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009538else
9539 echo "$as_me: failed program was:" >&5
9540sed 's/^/| /' conftest.$ac_ext >&5
9541
Benny Prijono0b462322008-03-12 22:44:24 +00009542echo "$as_me:$LINENO: result: no" >&5
9543echo "${ECHO_T}no" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009544fi
Benny Prijono0b462322008-03-12 22:44:24 +00009545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009546
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009547
9548case $target in
9549 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonoad086e02007-02-16 10:58:18 +00009550 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 +00009551 ;;
9552 *)
Benny Prijono4e48b512007-05-16 13:41:00 +00009553 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"
9554 # UUID
9555 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
9556 ac_os_objs="$ac_os_objs guid_uuid.o"
9557 else
9558 ac_os_objs="$ac_os_objs guid_simple.o"
9559 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009560 ;;
9561esac
9562
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009563
9564
9565
Benny Prijono4e48b512007-05-16 13:41:00 +00009566
Benny Prijono0b462322008-03-12 22:44:24 +00009567# Check whether --enable-sound or --disable-sound was given.
Benny Prijono1d971622006-09-10 22:27:40 +00009568if test "${enable_sound+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00009569 enableval="$enable_sound"
9570 if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +00009571 ac_pjmedia_snd=null
Benny Prijono0b462322008-03-12 22:44:24 +00009572 echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5
9573echo "${ECHO_T}Checking if sound is disabled... yes" >&6
Benny Prijono1d971622006-09-10 22:27:40 +00009574 fi
9575
Benny Prijono0b462322008-03-12 22:44:24 +00009576fi;
Benny Prijono1d971622006-09-10 22:27:40 +00009577
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009578
Benny Prijono27c98722007-04-09 21:28:15 +00009579if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00009580 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9581echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009582if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9584fi
Benny Prijono0b462322008-03-12 22:44:24 +00009585echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9586echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009587else
9588 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00009589echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
9590echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009591cat >conftest.$ac_ext <<_ACEOF
9592/* confdefs.h. */
9593_ACEOF
9594cat confdefs.h >>conftest.$ac_ext
9595cat >>conftest.$ac_ext <<_ACEOF
9596/* end confdefs.h. */
9597$ac_includes_default
9598#include <sys/soundcard.h>
9599_ACEOF
9600rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9602 (eval $ac_compile) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009608 (exit $ac_status); } &&
9609 { ac_try='test -z "$ac_c_werror_flag"
9610 || test ! -s conftest.err'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612 (eval $ac_try) 2>&5
9613 ac_status=$?
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; } &&
9616 { ac_try='test -s conftest.$ac_objext'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 (eval $ac_try) 2>&5
9619 ac_status=$?
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; }; then
Benny Prijono27c98722007-04-09 21:28:15 +00009622 ac_header_compiler=yes
9623else
9624 echo "$as_me: failed program was:" >&5
9625sed 's/^/| /' conftest.$ac_ext >&5
9626
Benny Prijono0b462322008-03-12 22:44:24 +00009627ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +00009628fi
Benny Prijono0b462322008-03-12 22:44:24 +00009629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9630echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9631echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009632
9633# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00009634echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
9635echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009636cat >conftest.$ac_ext <<_ACEOF
9637/* confdefs.h. */
9638_ACEOF
9639cat confdefs.h >>conftest.$ac_ext
9640cat >>conftest.$ac_ext <<_ACEOF
9641/* end confdefs.h. */
9642#include <sys/soundcard.h>
9643_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00009644if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009646 ac_status=$?
9647 grep -v '^ *+' conftest.er1 >conftest.err
9648 rm -f conftest.er1
9649 cat conftest.err >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009651 (exit $ac_status); } >/dev/null; then
9652 if test -s conftest.err; then
9653 ac_cpp_err=$ac_c_preproc_warn_flag
9654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9655 else
9656 ac_cpp_err=
9657 fi
9658else
9659 ac_cpp_err=yes
9660fi
9661if test -z "$ac_cpp_err"; then
Benny Prijono27c98722007-04-09 21:28:15 +00009662 ac_header_preproc=yes
9663else
9664 echo "$as_me: failed program was:" >&5
9665sed 's/^/| /' conftest.$ac_ext >&5
9666
9667 ac_header_preproc=no
9668fi
9669rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00009670echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9671echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009672
9673# So? What about this header?
9674case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9675 yes:no: )
9676 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9677echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9678 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
9679echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
9680 ac_header_preproc=yes
9681 ;;
9682 no:yes:* )
9683 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
9684echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
9685 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
9686echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
9687 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
9688echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
9689 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9690echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9691 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
9692echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
9693 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
9694echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00009695 (
9696 cat <<\_ASBOX
9697## ------------------------------------ ##
9698## Report this to the pjproject lists. ##
9699## ------------------------------------ ##
9700_ASBOX
9701 ) |
9702 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono27c98722007-04-09 21:28:15 +00009703 ;;
9704esac
Benny Prijono0b462322008-03-12 22:44:24 +00009705echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9706echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009707if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9709else
9710 ac_cv_header_sys_soundcard_h=$ac_header_preproc
9711fi
Benny Prijono0b462322008-03-12 22:44:24 +00009712echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9713echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009714
9715fi
9716if test $ac_cv_header_sys_soundcard_h = yes; then
9717 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
9718fi
9719
9720
9721if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00009722 echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
9723echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009724if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9726fi
Benny Prijono0b462322008-03-12 22:44:24 +00009727echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
9728echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009729else
9730 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00009731echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
9732echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009733cat >conftest.$ac_ext <<_ACEOF
9734/* confdefs.h. */
9735_ACEOF
9736cat confdefs.h >>conftest.$ac_ext
9737cat >>conftest.$ac_ext <<_ACEOF
9738/* end confdefs.h. */
9739$ac_includes_default
9740#include <linux/soundcard.h>
9741_ACEOF
9742rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9744 (eval $ac_compile) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009745 ac_status=$?
9746 grep -v '^ *+' conftest.er1 >conftest.err
9747 rm -f conftest.er1
9748 cat conftest.err >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009750 (exit $ac_status); } &&
9751 { ac_try='test -z "$ac_c_werror_flag"
9752 || test ! -s conftest.err'
9753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 (eval $ac_try) 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; } &&
9758 { ac_try='test -s conftest.$ac_objext'
9759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 (eval $ac_try) 2>&5
9761 ac_status=$?
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; }; then
Benny Prijono27c98722007-04-09 21:28:15 +00009764 ac_header_compiler=yes
9765else
9766 echo "$as_me: failed program was:" >&5
9767sed 's/^/| /' conftest.$ac_ext >&5
9768
Benny Prijono0b462322008-03-12 22:44:24 +00009769ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +00009770fi
Benny Prijono0b462322008-03-12 22:44:24 +00009771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9772echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9773echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009774
9775# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00009776echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
9777echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009778cat >conftest.$ac_ext <<_ACEOF
9779/* confdefs.h. */
9780_ACEOF
9781cat confdefs.h >>conftest.$ac_ext
9782cat >>conftest.$ac_ext <<_ACEOF
9783/* end confdefs.h. */
9784#include <linux/soundcard.h>
9785_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00009786if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009788 ac_status=$?
9789 grep -v '^ *+' conftest.er1 >conftest.err
9790 rm -f conftest.er1
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009793 (exit $ac_status); } >/dev/null; then
9794 if test -s conftest.err; then
9795 ac_cpp_err=$ac_c_preproc_warn_flag
9796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9797 else
9798 ac_cpp_err=
9799 fi
9800else
9801 ac_cpp_err=yes
9802fi
9803if test -z "$ac_cpp_err"; then
Benny Prijono27c98722007-04-09 21:28:15 +00009804 ac_header_preproc=yes
9805else
9806 echo "$as_me: failed program was:" >&5
9807sed 's/^/| /' conftest.$ac_ext >&5
9808
9809 ac_header_preproc=no
9810fi
9811rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00009812echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9813echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009814
9815# So? What about this header?
9816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9817 yes:no: )
9818 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9819echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9820 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
9821echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
9822 ac_header_preproc=yes
9823 ;;
9824 no:yes:* )
9825 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
9826echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
9827 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
9828echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
9829 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
9830echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
9831 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9832echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9833 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
9834echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
9835 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
9836echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00009837 (
9838 cat <<\_ASBOX
9839## ------------------------------------ ##
9840## Report this to the pjproject lists. ##
9841## ------------------------------------ ##
9842_ASBOX
9843 ) |
9844 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono27c98722007-04-09 21:28:15 +00009845 ;;
9846esac
Benny Prijono0b462322008-03-12 22:44:24 +00009847echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
9848echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009849if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9851else
9852 ac_cv_header_linux_soundcard_h=$ac_header_preproc
9853fi
Benny Prijono0b462322008-03-12 22:44:24 +00009854echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
9855echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009856
9857fi
9858if test $ac_cv_header_linux_soundcard_h = yes; then
9859 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
9860fi
9861
9862
9863if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +00009864 echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
9865echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009866if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868fi
Benny Prijono0b462322008-03-12 22:44:24 +00009869echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
9870echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009871else
9872 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +00009873echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5
9874echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009875cat >conftest.$ac_ext <<_ACEOF
9876/* confdefs.h. */
9877_ACEOF
9878cat confdefs.h >>conftest.$ac_ext
9879cat >>conftest.$ac_ext <<_ACEOF
9880/* end confdefs.h. */
9881$ac_includes_default
9882#include <machine/soundcard.h>
9883_ACEOF
9884rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +00009885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9886 (eval $ac_compile) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009887 ac_status=$?
9888 grep -v '^ *+' conftest.er1 >conftest.err
9889 rm -f conftest.er1
9890 cat conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009892 (exit $ac_status); } &&
9893 { ac_try='test -z "$ac_c_werror_flag"
9894 || test ! -s conftest.err'
9895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 (eval $ac_try) 2>&5
9897 ac_status=$?
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; } &&
9900 { ac_try='test -s conftest.$ac_objext'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 (eval $ac_try) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; }; then
Benny Prijono27c98722007-04-09 21:28:15 +00009906 ac_header_compiler=yes
9907else
9908 echo "$as_me: failed program was:" >&5
9909sed 's/^/| /' conftest.$ac_ext >&5
9910
Benny Prijono0b462322008-03-12 22:44:24 +00009911ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +00009912fi
Benny Prijono0b462322008-03-12 22:44:24 +00009913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9914echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9915echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009916
9917# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +00009918echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5
9919echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009920cat >conftest.$ac_ext <<_ACEOF
9921/* confdefs.h. */
9922_ACEOF
9923cat confdefs.h >>conftest.$ac_ext
9924cat >>conftest.$ac_ext <<_ACEOF
9925/* end confdefs.h. */
9926#include <machine/soundcard.h>
9927_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +00009928if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009930 ac_status=$?
9931 grep -v '^ *+' conftest.er1 >conftest.err
9932 rm -f conftest.er1
9933 cat conftest.err >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +00009935 (exit $ac_status); } >/dev/null; then
9936 if test -s conftest.err; then
9937 ac_cpp_err=$ac_c_preproc_warn_flag
9938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9939 else
9940 ac_cpp_err=
9941 fi
9942else
9943 ac_cpp_err=yes
9944fi
9945if test -z "$ac_cpp_err"; then
Benny Prijono27c98722007-04-09 21:28:15 +00009946 ac_header_preproc=yes
9947else
9948 echo "$as_me: failed program was:" >&5
9949sed 's/^/| /' conftest.$ac_ext >&5
9950
9951 ac_header_preproc=no
9952fi
9953rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +00009954echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9955echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009956
9957# So? What about this header?
9958case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9959 yes:no: )
9960 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9961echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5
9963echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;}
9964 ac_header_preproc=yes
9965 ;;
9966 no:yes:* )
9967 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5
9968echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;}
9969 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5
9970echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;}
9971 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5
9972echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;}
9973 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9974echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9975 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5
9976echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;}
9977 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5
9978echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +00009979 (
9980 cat <<\_ASBOX
9981## ------------------------------------ ##
9982## Report this to the pjproject lists. ##
9983## ------------------------------------ ##
9984_ASBOX
9985 ) |
9986 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono27c98722007-04-09 21:28:15 +00009987 ;;
9988esac
Benny Prijono0b462322008-03-12 22:44:24 +00009989echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
9990echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009991if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9993else
9994 ac_cv_header_machine_soundcard_h=$ac_header_preproc
9995fi
Benny Prijono0b462322008-03-12 22:44:24 +00009996echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
9997echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009998
9999fi
10000if test $ac_cv_header_machine_soundcard_h = yes; then
10001 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
10002fi
10003
10004
10005
Benny Prijono3e091672008-01-09 15:43:02 +000010006if test "x$ac_cv_c_bigendian" = "xyes"; then
10007 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
10008else
10009 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
10010fi
10011
Benny Prijono1d971622006-09-10 22:27:40 +000010012if test "$enable_sound" = "no"; then
10013 true;
10014else
10015 case $target in
Benny Prijonob466e232006-09-10 08:53:59 +000010016 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +000010017 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
10018 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +000010019 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +000010020 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
10021 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono0b462322008-03-12 22:44:24 +000010022 echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
10023echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6
Benny Prijono39ae2da2006-10-13 17:57:42 +000010024 else
10025 ac_pjmedia_snd=pa_darwinos
Benny Prijono0b462322008-03-12 22:44:24 +000010026 echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
10027echo "${ECHO_T}Checking sound device backend... coreaudio" >&6
Benny Prijono39ae2da2006-10-13 17:57:42 +000010028 fi
Benny Prijonob466e232006-09-10 08:53:59 +000010029 ;;
10030 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010031 ac_pjmedia_snd=pa_win32
Benny Prijono0b462322008-03-12 22:44:24 +000010032 echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
10033echo "${ECHO_T}Checking sound device backend... win32 sound" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010034 ;;
10035 *rtems*)
10036 ac_pjmedia_snd=null
Benny Prijono0b462322008-03-12 22:44:24 +000010037 echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
10038echo "${ECHO_T}Checking sound device backend... null sound" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010039 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010040 *)
Benny Prijono0b462322008-03-12 22:44:24 +000010041 ac_pjmedia_snd=pa_unix
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010042 if test "${ac_cv_header_alsa_version_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010043 echo "$as_me:$LINENO: checking for alsa/version.h" >&5
10044echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010045if test "${ac_cv_header_alsa_version_h+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010047fi
Benny Prijono0b462322008-03-12 22:44:24 +000010048echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
10049echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010050else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010051 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +000010052echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
10053echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010054cat >conftest.$ac_ext <<_ACEOF
10055/* confdefs.h. */
10056_ACEOF
10057cat confdefs.h >>conftest.$ac_ext
10058cat >>conftest.$ac_ext <<_ACEOF
10059/* end confdefs.h. */
10060$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010061#include <alsa/version.h>
10062_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010063rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +000010064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10065 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010066 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010067 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010068 rm -f conftest.er1
10069 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010071 (exit $ac_status); } &&
10072 { ac_try='test -z "$ac_c_werror_flag"
10073 || test ! -s conftest.err'
10074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075 (eval $ac_try) 2>&5
10076 ac_status=$?
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; } &&
10079 { ac_try='test -s conftest.$ac_objext'
10080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10082 ac_status=$?
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010085 ac_header_compiler=yes
10086else
10087 echo "$as_me: failed program was:" >&5
10088sed 's/^/| /' conftest.$ac_ext >&5
10089
Benny Prijono0b462322008-03-12 22:44:24 +000010090ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010091fi
Benny Prijono0b462322008-03-12 22:44:24 +000010092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10093echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10094echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010095
10096# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +000010097echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
10098echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010099cat >conftest.$ac_ext <<_ACEOF
10100/* confdefs.h. */
10101_ACEOF
10102cat confdefs.h >>conftest.$ac_ext
10103cat >>conftest.$ac_ext <<_ACEOF
10104/* end confdefs.h. */
10105#include <alsa/version.h>
10106_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000010107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010109 ac_status=$?
10110 grep -v '^ *+' conftest.er1 >conftest.err
10111 rm -f conftest.er1
10112 cat conftest.err >&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010114 (exit $ac_status); } >/dev/null; then
10115 if test -s conftest.err; then
10116 ac_cpp_err=$ac_c_preproc_warn_flag
10117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10118 else
10119 ac_cpp_err=
10120 fi
10121else
10122 ac_cpp_err=yes
10123fi
10124if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010125 ac_header_preproc=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010126else
10127 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010128sed 's/^/| /' conftest.$ac_ext >&5
10129
10130 ac_header_preproc=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010131fi
10132rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +000010133echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10134echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010135
10136# So? What about this header?
10137case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10138 yes:no: )
10139 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
10140echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10141 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
10142echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
10143 ac_header_preproc=yes
10144 ;;
10145 no:yes:* )
10146 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
10147echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
10148 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
10149echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
10150 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
10151echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
10152 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
10153echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
10154 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
10155echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
10156 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
10157echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +000010158 (
10159 cat <<\_ASBOX
10160## ------------------------------------ ##
10161## Report this to the pjproject lists. ##
10162## ------------------------------------ ##
10163_ASBOX
10164 ) |
10165 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010166 ;;
10167esac
Benny Prijono0b462322008-03-12 22:44:24 +000010168echo "$as_me:$LINENO: checking for alsa/version.h" >&5
10169echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010170if test "${ac_cv_header_alsa_version_h+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10172else
10173 ac_cv_header_alsa_version_h=$ac_header_preproc
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010174fi
Benny Prijono0b462322008-03-12 22:44:24 +000010175echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
10176echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010177
10178fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010179if test $ac_cv_header_alsa_version_h = yes; then
10180 ac_pa_use_alsa=1
10181
10182 LIBS="$LIBS -lasound"
10183
10184else
10185 ac_pa_use_alsa=0
10186
10187fi
10188
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010189
Benny Prijono0b462322008-03-12 22:44:24 +000010190 echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
10191echo "${ECHO_T}Checking sound device backend... unix" >&6
10192
10193 ac_pa_use_oss=1
10194
10195 # Check whether --enable-oss or --disable-oss was given.
10196if test "${enable_oss+set}" = set; then
10197 enableval="$enable_oss"
10198
10199 if test "$enable_oss" = "no"; then
10200 ac_pa_use_oss=0
10201 echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&5
10202echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6
10203 fi
10204
10205fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010206 ;;
Benny Prijono1d971622006-09-10 22:27:40 +000010207 esac
10208fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010209
Benny Prijonoebb2c332008-07-28 23:40:58 +000010210# Check whether --enable-ext_sound or --disable-ext_sound was given.
10211if test "${enable_ext_sound+set}" = set; then
10212 enableval="$enable_ext_sound"
10213 if test "$enable_ext_sound" = "yes"; then
10214 ac_pjmedia_snd=external
10215 echo "$as_me:$LINENO: result: Checking if external sound is set... yes" >&5
10216echo "${ECHO_T}Checking if external sound is set... yes" >&6
10217 fi
10218
10219fi;
10220
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010221
Benny Prijono0b462322008-03-12 22:44:24 +000010222# Check whether --enable-small-filter or --disable-small-filter was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010223if test "${enable_small_filter+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010224 enableval="$enable_small_filter"
10225 if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010226 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono0b462322008-03-12 22:44:24 +000010227 echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
10228echo "${ECHO_T}Checking if small filter is disabled... yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010229 fi
10230else
Benny Prijono0b462322008-03-12 22:44:24 +000010231 echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
10232echo "${ECHO_T}Checking if small filter is disabled... no" >&6
10233fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010234
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010235
Benny Prijono0b462322008-03-12 22:44:24 +000010236# Check whether --enable-large-filter or --disable-large-filter was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010237if test "${enable_large_filter+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010238 enableval="$enable_large_filter"
10239 if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010240 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono0b462322008-03-12 22:44:24 +000010241 echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
10242echo "${ECHO_T}Checking if large filter is disabled... yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010243 fi
10244else
Benny Prijono0b462322008-03-12 22:44:24 +000010245 echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
10246echo "${ECHO_T}Checking if large filter is disabled... no" >&6
10247fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010248
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010249
Benny Prijono0b462322008-03-12 22:44:24 +000010250# Check whether --enable-speex-aec or --disable-speex-aec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010251if test "${enable_speex_aec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010252 enableval="$enable_speex_aec"
10253 if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010254 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono0b462322008-03-12 22:44:24 +000010255 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
10256echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010257 fi
10258else
Benny Prijono0b462322008-03-12 22:44:24 +000010259 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
10260echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6
10261fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010262
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010263
Benny Prijono0b462322008-03-12 22:44:24 +000010264# Check whether --enable-g711-codec or --disable-g711-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010265if test "${enable_g711_codec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010266 enableval="$enable_g711_codec"
10267 if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010268 ac_no_g711_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010269 cat >>confdefs.h <<\_ACEOF
10270#define PJMEDIA_HAS_G711_CODEC 0
10271_ACEOF
10272
Benny Prijono0b462322008-03-12 22:44:24 +000010273 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
10274echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010275 fi
10276else
Benny Prijono0b462322008-03-12 22:44:24 +000010277 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
10278echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6
10279fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010280
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010281
10282
Benny Prijono0b462322008-03-12 22:44:24 +000010283# Check whether --enable-l16-codec or --disable-l16-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010284if test "${enable_l16_codec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010285 enableval="$enable_l16_codec"
10286 if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010287 ac_no_l16_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010288 cat >>confdefs.h <<\_ACEOF
10289#define PJMEDIA_HAS_L16_CODEC 0
10290_ACEOF
10291
Benny Prijono0b462322008-03-12 22:44:24 +000010292 echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
10293echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010294 fi
10295else
Benny Prijono0b462322008-03-12 22:44:24 +000010296 echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
10297echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6
10298fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010299
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010300
10301
Benny Prijono0b462322008-03-12 22:44:24 +000010302# Check whether --enable-gsm-codec or --disable-gsm-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010303if test "${enable_gsm_codec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010304 enableval="$enable_gsm_codec"
10305 if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010306 ac_no_gsm_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010307 cat >>confdefs.h <<\_ACEOF
10308#define PJMEDIA_HAS_GSM_CODEC 0
10309_ACEOF
10310
Benny Prijono0b462322008-03-12 22:44:24 +000010311 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
10312echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010313 fi
10314else
Benny Prijono0b462322008-03-12 22:44:24 +000010315 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
10316echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6
10317fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010318
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010319
Benny Prijono71f657d2008-03-17 14:24:21 +000010320# Check whether --enable-g722-codec or --disable-g722-codec was given.
10321if test "${enable_g722_codec+set}" = set; then
10322 enableval="$enable_g722_codec"
10323 if test "$enable_g722_codec" = "no"; then
10324 ac_no_g722_codec=1
10325 cat >>confdefs.h <<\_ACEOF
10326#define PJMEDIA_HAS_G722_CODEC 0
10327_ACEOF
10328
10329 echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...yes" >&5
10330echo "${ECHO_T}Checking if G.722 codec is disabled...yes" >&6
10331 fi
10332else
10333 echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...no" >&5
10334echo "${ECHO_T}Checking if G.722 codec is disabled...no" >&6
10335fi;
10336
10337
Benny Prijono0b462322008-03-12 22:44:24 +000010338# Check whether --enable-speex-codec or --disable-speex-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010339if test "${enable_speex_codec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010340 enableval="$enable_speex_codec"
10341 if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010342 ac_no_speex_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010343 cat >>confdefs.h <<\_ACEOF
10344#define PJMEDIA_HAS_SPEEX_CODEC 0
10345_ACEOF
10346
Benny Prijono0b462322008-03-12 22:44:24 +000010347 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
10348echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010349 fi
10350else
Benny Prijono0b462322008-03-12 22:44:24 +000010351 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
10352echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6
10353fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010354
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010355
Benny Prijono0b462322008-03-12 22:44:24 +000010356# Check whether --enable-ilbc-codec or --disable-ilbc-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010357if test "${enable_ilbc_codec+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010358 enableval="$enable_ilbc_codec"
10359 if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010360 ac_no_ilbc_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010361 cat >>confdefs.h <<\_ACEOF
10362#define PJMEDIA_HAS_ILBC_CODEC 0
10363_ACEOF
10364
Benny Prijono0b462322008-03-12 22:44:24 +000010365 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
10366echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010367 fi
10368else
Benny Prijono0b462322008-03-12 22:44:24 +000010369 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
10370echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6
10371fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010372
Benny Prijono0b462322008-03-12 22:44:24 +000010373# Check whether --enable-libsamplerate or --disable-libsamplerate was given.
Benny Prijono550a1a62007-10-16 08:54:00 +000010374if test "${enable_libsamplerate+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010375 enableval="$enable_libsamplerate"
10376
10377echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5
10378echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6
Benny Prijono550a1a62007-10-16 08:54:00 +000010379if test "${ac_cv_lib_samplerate_src_new+set}" = set; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10381else
10382 ac_check_lib_save_LIBS=$LIBS
10383LIBS="-lsamplerate $LIBS"
10384cat >conftest.$ac_ext <<_ACEOF
10385/* confdefs.h. */
10386_ACEOF
10387cat confdefs.h >>conftest.$ac_ext
10388cat >>conftest.$ac_ext <<_ACEOF
10389/* end confdefs.h. */
10390
Benny Prijono0b462322008-03-12 22:44:24 +000010391/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono550a1a62007-10-16 08:54:00 +000010392#ifdef __cplusplus
10393extern "C"
10394#endif
Benny Prijono0b462322008-03-12 22:44:24 +000010395/* We use char because int might match the return type of a gcc2
10396 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +000010397char src_new ();
10398int
10399main ()
10400{
Benny Prijono0b462322008-03-12 22:44:24 +000010401src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +000010402 ;
10403 return 0;
10404}
10405_ACEOF
10406rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +000010407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10408 (eval $ac_link) 2>conftest.er1
Benny Prijono550a1a62007-10-16 08:54:00 +000010409 ac_status=$?
10410 grep -v '^ *+' conftest.er1 >conftest.err
10411 rm -f conftest.er1
10412 cat conftest.err >&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010414 (exit $ac_status); } &&
10415 { ac_try='test -z "$ac_c_werror_flag"
10416 || test ! -s conftest.err'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; } &&
10422 { ac_try='test -s conftest$ac_exeext'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10425 ac_status=$?
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; }; then
Benny Prijono550a1a62007-10-16 08:54:00 +000010428 ac_cv_lib_samplerate_src_new=yes
10429else
10430 echo "$as_me: failed program was:" >&5
10431sed 's/^/| /' conftest.$ac_ext >&5
10432
Benny Prijono0b462322008-03-12 22:44:24 +000010433ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +000010434fi
Benny Prijono0b462322008-03-12 22:44:24 +000010435rm -f conftest.err conftest.$ac_objext \
Benny Prijono550a1a62007-10-16 08:54:00 +000010436 conftest$ac_exeext conftest.$ac_ext
10437LIBS=$ac_check_lib_save_LIBS
10438fi
Benny Prijono0b462322008-03-12 22:44:24 +000010439echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5
10440echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6
Benny Prijono550a1a62007-10-16 08:54:00 +000010441if test $ac_cv_lib_samplerate_src_new = yes; then
10442 cat >>confdefs.h <<_ACEOF
10443#define HAVE_LIBSAMPLERATE 1
10444_ACEOF
10445
10446 LIBS="-lsamplerate $LIBS"
10447
10448fi
10449
10450else
Benny Prijono0b462322008-03-12 22:44:24 +000010451 echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5
10452echo "${ECHO_T}Skipping libsamplerate detection" >&6
Benny Prijono550a1a62007-10-16 08:54:00 +000010453
Benny Prijono0b462322008-03-12 22:44:24 +000010454fi;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010455
10456
10457
10458
Benny Prijono0b462322008-03-12 22:44:24 +000010459# Check whether --enable-ssl or --disable-ssl was given.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010460if test "${enable_ssl+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010461 enableval="$enable_ssl"
10462
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010463 if test "$enable_ssl" = "no"; then
10464 ac_no_ssl=1
Benny Prijono0b462322008-03-12 22:44:24 +000010465 echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
10466echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010467 fi
10468
10469else
10470
Benny Prijono0b462322008-03-12 22:44:24 +000010471 echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
10472echo "${ECHO_T}checking for OpenSSL installations.." >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010473
10474
10475
10476 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
Benny Prijono0b462322008-03-12 22:44:24 +000010477 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10478echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010479if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10481fi
Benny Prijono0b462322008-03-12 22:44:24 +000010482echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10483echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010484else
10485 # Is the header compilable?
Benny Prijono0b462322008-03-12 22:44:24 +000010486echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
10487echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010488cat >conftest.$ac_ext <<_ACEOF
10489/* confdefs.h. */
10490_ACEOF
10491cat confdefs.h >>conftest.$ac_ext
10492cat >>conftest.$ac_ext <<_ACEOF
10493/* end confdefs.h. */
10494$ac_includes_default
10495#include <openssl/ssl.h>
10496_ACEOF
10497rm -f conftest.$ac_objext
Benny Prijono0b462322008-03-12 22:44:24 +000010498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10499 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010500 ac_status=$?
10501 grep -v '^ *+' conftest.er1 >conftest.err
10502 rm -f conftest.er1
10503 cat conftest.err >&5
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010505 (exit $ac_status); } &&
10506 { ac_try='test -z "$ac_c_werror_flag"
10507 || test ! -s conftest.err'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10510 ac_status=$?
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; } &&
10513 { ac_try='test -s conftest.$ac_objext'
10514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515 (eval $ac_try) 2>&5
10516 ac_status=$?
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010519 ac_header_compiler=yes
10520else
10521 echo "$as_me: failed program was:" >&5
10522sed 's/^/| /' conftest.$ac_ext >&5
10523
Benny Prijono0b462322008-03-12 22:44:24 +000010524ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010525fi
Benny Prijono0b462322008-03-12 22:44:24 +000010526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10527echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10528echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010529
10530# Is the header present?
Benny Prijono0b462322008-03-12 22:44:24 +000010531echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10532echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010533cat >conftest.$ac_ext <<_ACEOF
10534/* confdefs.h. */
10535_ACEOF
10536cat confdefs.h >>conftest.$ac_ext
10537cat >>conftest.$ac_ext <<_ACEOF
10538/* end confdefs.h. */
10539#include <openssl/ssl.h>
10540_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000010541if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010543 ac_status=$?
10544 grep -v '^ *+' conftest.er1 >conftest.err
10545 rm -f conftest.er1
10546 cat conftest.err >&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010548 (exit $ac_status); } >/dev/null; then
10549 if test -s conftest.err; then
10550 ac_cpp_err=$ac_c_preproc_warn_flag
10551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10552 else
10553 ac_cpp_err=
10554 fi
10555else
10556 ac_cpp_err=yes
10557fi
10558if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010559 ac_header_preproc=yes
10560else
10561 echo "$as_me: failed program was:" >&5
10562sed 's/^/| /' conftest.$ac_ext >&5
10563
10564 ac_header_preproc=no
10565fi
10566rm -f conftest.err conftest.$ac_ext
Benny Prijono0b462322008-03-12 22:44:24 +000010567echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10568echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010569
10570# So? What about this header?
10571case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10572 yes:no: )
10573 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10574echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10575 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
10576echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
10577 ac_header_preproc=yes
10578 ;;
10579 no:yes:* )
10580 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
10581echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
10582 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
10583echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
10584 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
10585echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
10586 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
10587echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10588 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
10589echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
10590 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
10591echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
Benny Prijono0b462322008-03-12 22:44:24 +000010592 (
10593 cat <<\_ASBOX
10594## ------------------------------------ ##
10595## Report this to the pjproject lists. ##
10596## ------------------------------------ ##
10597_ASBOX
10598 ) |
10599 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010600 ;;
10601esac
Benny Prijono0b462322008-03-12 22:44:24 +000010602echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10603echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010604if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10606else
10607 ac_cv_header_openssl_ssl_h=$ac_header_preproc
10608fi
Benny Prijono0b462322008-03-12 22:44:24 +000010609echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10610echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010611
10612fi
10613if test $ac_cv_header_openssl_ssl_h = yes; then
10614 openssl_h_present=1
10615fi
10616
10617
Benny Prijono0b462322008-03-12 22:44:24 +000010618 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
10619echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010620if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10622else
10623 ac_check_lib_save_LIBS=$LIBS
10624LIBS="-lssl $LIBS"
10625cat >conftest.$ac_ext <<_ACEOF
10626/* confdefs.h. */
10627_ACEOF
10628cat confdefs.h >>conftest.$ac_ext
10629cat >>conftest.$ac_ext <<_ACEOF
10630/* end confdefs.h. */
10631
Benny Prijono0b462322008-03-12 22:44:24 +000010632/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010633#ifdef __cplusplus
10634extern "C"
10635#endif
Benny Prijono0b462322008-03-12 22:44:24 +000010636/* We use char because int might match the return type of a gcc2
10637 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010638char SSL_library_init ();
10639int
10640main ()
10641{
Benny Prijono0b462322008-03-12 22:44:24 +000010642SSL_library_init ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010643 ;
10644 return 0;
10645}
10646_ACEOF
10647rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +000010648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649 (eval $ac_link) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010650 ac_status=$?
10651 grep -v '^ *+' conftest.er1 >conftest.err
10652 rm -f conftest.er1
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010655 (exit $ac_status); } &&
10656 { ac_try='test -z "$ac_c_werror_flag"
10657 || test ! -s conftest.err'
10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659 (eval $ac_try) 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; } &&
10663 { ac_try='test -s conftest$ac_exeext'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010669 ac_cv_lib_ssl_SSL_library_init=yes
10670else
10671 echo "$as_me: failed program was:" >&5
10672sed 's/^/| /' conftest.$ac_ext >&5
10673
Benny Prijono0b462322008-03-12 22:44:24 +000010674ac_cv_lib_ssl_SSL_library_init=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010675fi
Benny Prijono0b462322008-03-12 22:44:24 +000010676rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010677 conftest$ac_exeext conftest.$ac_ext
10678LIBS=$ac_check_lib_save_LIBS
10679fi
Benny Prijono0b462322008-03-12 22:44:24 +000010680echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
10681echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010682if test $ac_cv_lib_ssl_SSL_library_init = yes; then
10683 libssl_present=1 && LIBS="$LIBS -lssl"
10684fi
10685
Benny Prijono0b462322008-03-12 22:44:24 +000010686 echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
10687echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010688if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10690else
10691 ac_check_lib_save_LIBS=$LIBS
10692LIBS="-lcrypto $LIBS"
10693cat >conftest.$ac_ext <<_ACEOF
10694/* confdefs.h. */
10695_ACEOF
10696cat confdefs.h >>conftest.$ac_ext
10697cat >>conftest.$ac_ext <<_ACEOF
10698/* end confdefs.h. */
10699
Benny Prijono0b462322008-03-12 22:44:24 +000010700/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010701#ifdef __cplusplus
10702extern "C"
10703#endif
Benny Prijono0b462322008-03-12 22:44:24 +000010704/* We use char because int might match the return type of a gcc2
10705 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010706char ERR_load_BIO_strings ();
10707int
10708main ()
10709{
Benny Prijono0b462322008-03-12 22:44:24 +000010710ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010711 ;
10712 return 0;
10713}
10714_ACEOF
10715rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijono0b462322008-03-12 22:44:24 +000010716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10717 (eval $ac_link) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010718 ac_status=$?
10719 grep -v '^ *+' conftest.er1 >conftest.err
10720 rm -f conftest.er1
10721 cat conftest.err >&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijono0b462322008-03-12 22:44:24 +000010723 (exit $ac_status); } &&
10724 { ac_try='test -z "$ac_c_werror_flag"
10725 || test ! -s conftest.err'
10726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727 (eval $ac_try) 2>&5
10728 ac_status=$?
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; } &&
10731 { ac_try='test -s conftest$ac_exeext'
10732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10733 (eval $ac_try) 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010737 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
10738else
10739 echo "$as_me: failed program was:" >&5
10740sed 's/^/| /' conftest.$ac_ext >&5
10741
Benny Prijono0b462322008-03-12 22:44:24 +000010742ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010743fi
Benny Prijono0b462322008-03-12 22:44:24 +000010744rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010745 conftest$ac_exeext conftest.$ac_ext
10746LIBS=$ac_check_lib_save_LIBS
10747fi
Benny Prijono0b462322008-03-12 22:44:24 +000010748echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
10749echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010750if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
10751 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
10752fi
10753
10754 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 +000010755 echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
10756echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010757 cat >>confdefs.h <<\_ACEOF
10758#define PJSIP_HAS_TLS_TRANSPORT 1
10759_ACEOF
10760
10761 else
Benny Prijono0b462322008-03-12 22:44:24 +000010762 echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
10763echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010764 fi
10765
Benny Prijono0b462322008-03-12 22:44:24 +000010766fi;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010767
10768
10769
10770
Benny Prijono0b462322008-03-12 22:44:24 +000010771echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
10772echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010773case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010774 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010775#define PJ_SELECT_NEEDS_NFDS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010776_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010777
Benny Prijono0b462322008-03-12 22:44:24 +000010778 echo "$as_me:$LINENO: result: yes" >&5
10779echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010780 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010781 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010782#define PJ_SELECT_NEEDS_NFDS 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010783_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010784
Benny Prijono0b462322008-03-12 22:44:24 +000010785 echo "$as_me:$LINENO: result: no (default)" >&5
10786echo "${ECHO_T}no (default)" >&6
10787 echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
10788echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010789 ;;
10790esac
10791
Benny Prijono0b462322008-03-12 22:44:24 +000010792echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
10793echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010794case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010795 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010796#define PJ_THREAD_SET_STACK_SIZE 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010797_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010798
Benny Prijono0b462322008-03-12 22:44:24 +000010799 echo "$as_me:$LINENO: result: yes" >&5
10800echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010801 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010802 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010803#define PJ_THREAD_SET_STACK_SIZE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010804_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010805
Benny Prijono0b462322008-03-12 22:44:24 +000010806 echo "$as_me:$LINENO: result: no (default)" >&5
10807echo "${ECHO_T}no (default)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010808 ;;
10809esac
10810
Benny Prijono0b462322008-03-12 22:44:24 +000010811echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
10812echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010813case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010814 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010815#define PJ_THREAD_ALLOCATE_STACK 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010816_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010817
Benny Prijono0b462322008-03-12 22:44:24 +000010818 echo "$as_me:$LINENO: result: yes" >&5
10819echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010820 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010821 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010822#define PJ_THREAD_ALLOCATE_STACK 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010823_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010824
Benny Prijono0b462322008-03-12 22:44:24 +000010825 echo "$as_me:$LINENO: result: no (default)" >&5
10826echo "${ECHO_T}no (default)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010827 ;;
10828esac
10829
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010830case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010831 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010832 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010833#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010834_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010835
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010836 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010837 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010838#define PJ_BLOCKING_ERROR_VAL EAGAIN
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010839_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010840
Benny Prijono0b462322008-03-12 22:44:24 +000010841 echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
10842echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010843 ;;
10844esac
10845
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010846case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010847 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010848 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010849#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010850_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010851
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010852 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010853 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010854#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010855_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010856
Benny Prijono0b462322008-03-12 22:44:24 +000010857 echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
10858echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010859 ;;
10860esac
10861
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010862
10863
10864
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010865if test "$build" = "$host"; then
10866 ac_cross_compile=
10867else
Benny Prijono5b818b22006-09-17 22:58:51 +000010868 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010869fi
10870ac_linux_poll=select
10871
10872ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010873
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010874
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010875case $target in
10876 *rtems*)
10877 ac_main_obj=main_rtems.o
10878 ;;
10879 *)
10880 ac_main_obj=main.o
10881 ;;
10882esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010883
10884cat >confcache <<\_ACEOF
10885# This file is a shell script that caches the results of configure
10886# tests run on this system so they can be shared between configure
10887# scripts and configure runs, see configure's option --config-cache.
10888# It is not useful on other systems. If it contains results you don't
10889# want to keep, you may remove or edit it.
10890#
10891# config.status only pays attention to the cache file if you give it
10892# the --recheck option to rerun configure.
10893#
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010894# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010895# loading this file, other *unset* `ac_cv_foo' will be assigned the
10896# following values.
10897
10898_ACEOF
10899
10900# The following way of writing the cache mishandles newlines in values,
10901# but we know of no workaround that is simple, portable, and efficient.
Benny Prijono0b462322008-03-12 22:44:24 +000010902# So, don't put newlines in cache variables' values.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010903# Ultrix sh set writes to stderr and can't be redirected directly,
10904# and sets the high bit in the cache file unless we assign to the vars.
Benny Prijono0b462322008-03-12 22:44:24 +000010905{
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010906 (set) 2>&1 |
Benny Prijono0b462322008-03-12 22:44:24 +000010907 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10908 *ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010909 # `set' does not quote correctly, so add quotes (double-quote
10910 # substitution turns \\\\ into \\, and sed turns \\ into \).
10911 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010912 "s/'/'\\\\''/g;
10913 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Benny Prijono0b462322008-03-12 22:44:24 +000010914 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010915 *)
10916 # `set' quotes correctly as required by POSIX, so do not add quotes.
Benny Prijono0b462322008-03-12 22:44:24 +000010917 sed -n \
10918 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010919 ;;
Benny Prijono0b462322008-03-12 22:44:24 +000010920 esac;
10921} |
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010922 sed '
10923 t clear
Benny Prijono0b462322008-03-12 22:44:24 +000010924 : clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010925 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10926 t end
Benny Prijono0b462322008-03-12 22:44:24 +000010927 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10928 : end' >>confcache
10929if diff $cache_file confcache >/dev/null 2>&1; then :; else
10930 if test -w $cache_file; then
10931 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010932 cat confcache >$cache_file
10933 else
Benny Prijono0b462322008-03-12 22:44:24 +000010934 echo "not updating unwritable cache $cache_file"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010935 fi
10936fi
10937rm -f confcache
10938
10939test "x$prefix" = xNONE && prefix=$ac_default_prefix
10940# Let make expand exec_prefix.
10941test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10942
Benny Prijono0b462322008-03-12 22:44:24 +000010943# VPATH may cause trouble with some makes, so we remove $(srcdir),
10944# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10945# trailing colons and then remove the whole line if VPATH becomes empty
10946# (actually we leave an empty line to preserve line numbers).
10947if test "x$srcdir" = x.; then
10948 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10949s/:*\$(srcdir):*/:/;
10950s/:*\${srcdir}:*/:/;
10951s/:*@srcdir@:*/:/;
10952s/^\([^=]*=[ ]*\):*/\1/;
10953s/:*$//;
10954s/^[^=]*=[ ]*$//;
10955}'
10956fi
10957
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010958DEFS=-DHAVE_CONFIG_H
10959
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010960ac_libobjs=
10961ac_ltlibobjs=
10962for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10963 # 1. Remove the extension, and $U if already installed.
Benny Prijono0b462322008-03-12 22:44:24 +000010964 ac_i=`echo "$ac_i" |
10965 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10966 # 2. Add them.
10967 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10968 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010969done
10970LIBOBJS=$ac_libobjs
10971
10972LTLIBOBJS=$ac_ltlibobjs
10973
10974
10975
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010976: ${CONFIG_STATUS=./config.status}
10977ac_clean_files_save=$ac_clean_files
10978ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010979{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010980echo "$as_me: creating $CONFIG_STATUS" >&6;}
10981cat >$CONFIG_STATUS <<_ACEOF
10982#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010983# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010984# Run this file to recreate the current configuration.
10985# Compiler output produced by configure, useful for debugging
10986# configure, is in config.log if it exists.
10987
10988debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010989ac_cs_recheck=false
10990ac_cs_silent=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010991SHELL=\${CONFIG_SHELL-$SHELL}
10992_ACEOF
10993
10994cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010995## --------------------- ##
10996## M4sh Initialization. ##
10997## --------------------- ##
10998
Benny Prijono0b462322008-03-12 22:44:24 +000010999# Be Bourne compatible
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011000if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11001 emulate sh
11002 NULLCMD=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011003 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11004 # is contrary to our usage. Disable this feature.
11005 alias -g '${1+"$@"}'='"$@"'
Benny Prijono0b462322008-03-12 22:44:24 +000011006elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11007 set -o posix
11008fi
11009DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijonofdafd402008-01-23 14:34:46 +000011010
Benny Prijono0b462322008-03-12 22:44:24 +000011011# Support unset when possible.
11012if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11013 as_unset=unset
11014else
11015 as_unset=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011016fi
11017
11018
Benny Prijono0b462322008-03-12 22:44:24 +000011019# Work around bugs in pre-3.0 UWIN ksh.
11020$as_unset ENV MAIL MAILPATH
11021PS1='$ '
11022PS2='> '
11023PS4='+ '
11024
11025# NLS nuisances.
11026for as_var in \
11027 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11028 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11029 LC_TELEPHONE LC_TIME
11030do
11031 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11032 eval $as_var=C; export $as_var
11033 else
11034 $as_unset $as_var
11035 fi
11036done
11037
11038# Required to use basename.
11039if expr a : '\(a\)' >/dev/null 2>&1; then
11040 as_expr=expr
11041else
11042 as_expr=false
11043fi
11044
11045if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11046 as_basename=basename
11047else
11048 as_basename=false
11049fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011050
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011051
Benny Prijono0b462322008-03-12 22:44:24 +000011052# Name of the executable.
11053as_me=`$as_basename "$0" ||
11054$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11055 X"$0" : 'X\(//\)$' \| \
11056 X"$0" : 'X\(/\)$' \| \
11057 . : '\(.\)' 2>/dev/null ||
11058echo X/"$0" |
11059 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11060 /^X\/\(\/\/\)$/{ s//\1/; q; }
11061 /^X\/\(\/\).*/{ s//\1/; q; }
11062 s/.*/./; q'`
11063
11064
11065# PATH needs CR, and LINENO needs CR and PATH.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011066# Avoid depending upon Character Ranges.
11067as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11068as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11069as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11070as_cr_digits='0123456789'
11071as_cr_alnum=$as_cr_Letters$as_cr_digits
11072
11073# The user is always right.
11074if test "${PATH_SEPARATOR+set}" != set; then
11075 echo "#! /bin/sh" >conf$$.sh
11076 echo "exit 0" >>conf$$.sh
11077 chmod +x conf$$.sh
11078 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11079 PATH_SEPARATOR=';'
11080 else
11081 PATH_SEPARATOR=:
11082 fi
11083 rm -f conf$$.sh
11084fi
11085
11086
Benny Prijono0b462322008-03-12 22:44:24 +000011087 as_lineno_1=$LINENO
11088 as_lineno_2=$LINENO
11089 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11090 test "x$as_lineno_1" != "x$as_lineno_2" &&
11091 test "x$as_lineno_3" = "x$as_lineno_2" || {
11092 # Find who we are. Look in the path if we contain no path at all
11093 # relative or not.
11094 case $0 in
11095 *[\\/]* ) as_myself=$0 ;;
11096 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011097for as_dir in $PATH
11098do
11099 IFS=$as_save_IFS
11100 test -z "$as_dir" && as_dir=.
11101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11102done
11103
Benny Prijono0b462322008-03-12 22:44:24 +000011104 ;;
11105 esac
11106 # We did not find ourselves, most probably we were run as `sh COMMAND'
11107 # in which case we are not to be found in the path.
11108 if test "x$as_myself" = x; then
11109 as_myself=$0
Benny Prijonofdafd402008-01-23 14:34:46 +000011110 fi
Benny Prijono0b462322008-03-12 22:44:24 +000011111 if test ! -f "$as_myself"; then
11112 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11113echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11114 { (exit 1); exit 1; }; }
11115 fi
11116 case $CONFIG_SHELL in
11117 '')
11118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11119for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11120do
11121 IFS=$as_save_IFS
11122 test -z "$as_dir" && as_dir=.
11123 for as_base in sh bash ksh sh5; do
11124 case $as_dir in
11125 /*)
11126 if ("$as_dir/$as_base" -c '
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011127 as_lineno_1=$LINENO
11128 as_lineno_2=$LINENO
Benny Prijono0b462322008-03-12 22:44:24 +000011129 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011130 test "x$as_lineno_1" != "x$as_lineno_2" &&
Benny Prijono0b462322008-03-12 22:44:24 +000011131 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11132 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11133 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11134 CONFIG_SHELL=$as_dir/$as_base
11135 export CONFIG_SHELL
11136 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11137 fi;;
11138 esac
11139 done
11140done
11141;;
11142 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011143
11144 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11145 # uniformly replaced by the line number. The first 'sed' inserts a
Benny Prijono0b462322008-03-12 22:44:24 +000011146 # line-number line before each line; the second 'sed' does the real
11147 # work. The second script uses 'N' to pair each line-number line
11148 # with the numbered line, and appends trailing '-' during
11149 # substitution so that $LINENO is not a special case at line end.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011150 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Benny Prijono0b462322008-03-12 22:44:24 +000011151 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11152 sed '=' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011153 sed '
11154 N
Benny Prijono0b462322008-03-12 22:44:24 +000011155 s,$,-,
11156 : loop
11157 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011158 t loop
Benny Prijono0b462322008-03-12 22:44:24 +000011159 s,-$,,
11160 s,^['$as_cr_digits']*\n,,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011161 ' >$as_me.lineno &&
Benny Prijono0b462322008-03-12 22:44:24 +000011162 chmod +x $as_me.lineno ||
11163 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11164echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011165 { (exit 1); exit 1; }; }
11166
11167 # Don't try to exec as it changes $[0], causing all sort of problems
11168 # (the dirname of $[0] is not the place where we might find the
Benny Prijono0b462322008-03-12 22:44:24 +000011169 # original and so on. Autoconf is especially sensible to this).
11170 . ./$as_me.lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011171 # Exit status is that of the last command.
11172 exit
11173}
11174
11175
Benny Prijono0b462322008-03-12 22:44:24 +000011176case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11177 *c*,-n*) ECHO_N= ECHO_C='
11178' ECHO_T=' ' ;;
11179 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11180 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011181esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011182
Benny Prijono0b462322008-03-12 22:44:24 +000011183if expr a : '\(a\)' >/dev/null 2>&1; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011184 as_expr=expr
11185else
11186 as_expr=false
11187fi
11188
11189rm -f conf$$ conf$$.exe conf$$.file
11190echo >conf$$.file
11191if ln -s conf$$.file conf$$ 2>/dev/null; then
Benny Prijono0b462322008-03-12 22:44:24 +000011192 # We could just check for DJGPP; but this test a) works b) is more generic
11193 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11194 if test -f conf$$.exe; then
11195 # Don't use ln at all; we don't have any links
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011196 as_ln_s='cp -p'
Benny Prijono0b462322008-03-12 22:44:24 +000011197 else
11198 as_ln_s='ln -s'
11199 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011200elif ln conf$$.file conf$$ 2>/dev/null; then
11201 as_ln_s=ln
11202else
11203 as_ln_s='cp -p'
11204fi
Benny Prijono0b462322008-03-12 22:44:24 +000011205rm -f conf$$ conf$$.exe conf$$.file
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011206
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011207if mkdir -p . 2>/dev/null; then
11208 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +000011209else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011210 test -d ./-p && rmdir ./-p
11211 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +000011212fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011213
Benny Prijono0b462322008-03-12 22:44:24 +000011214as_executable_p="test -f"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011215
11216# Sed expression to map a string onto a valid CPP name.
11217as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11218
11219# Sed expression to map a string onto a valid variable name.
11220as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11221
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011222
Benny Prijono0b462322008-03-12 22:44:24 +000011223# IFS
11224# We need space, tab and new line, in precisely that order.
11225as_nl='
11226'
11227IFS=" $as_nl"
11228
11229# CDPATH.
11230$as_unset CDPATH
11231
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011232exec 6>&1
11233
Benny Prijono0b462322008-03-12 22:44:24 +000011234# Open the log real soon, to keep \$[0] and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011235# report actual input values of CONFIG_FILES etc. instead of their
Benny Prijono0b462322008-03-12 22:44:24 +000011236# values after options handling. Logging --version etc. is OK.
11237exec 5>>config.log
11238{
11239 echo
11240 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11241## Running $as_me. ##
11242_ASBOX
11243} >&5
11244cat >&5 <<_CSEOF
11245
Benny Prijono1c5f4e42008-02-07 13:11:39 +000011246This file was extended by pjproject $as_me 0.8, which was
Benny Prijono0b462322008-03-12 22:44:24 +000011247generated by GNU Autoconf 2.59. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011248
11249 CONFIG_FILES = $CONFIG_FILES
11250 CONFIG_HEADERS = $CONFIG_HEADERS
11251 CONFIG_LINKS = $CONFIG_LINKS
11252 CONFIG_COMMANDS = $CONFIG_COMMANDS
11253 $ $0 $@
11254
Benny Prijono0b462322008-03-12 22:44:24 +000011255_CSEOF
11256echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11257echo >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011258_ACEOF
11259
11260# Files that config.status was made for.
Benny Prijono0b462322008-03-12 22:44:24 +000011261if test -n "$ac_config_files"; then
11262 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11263fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011264
Benny Prijono0b462322008-03-12 22:44:24 +000011265if test -n "$ac_config_headers"; then
11266 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11267fi
11268
11269if test -n "$ac_config_links"; then
11270 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11271fi
11272
11273if test -n "$ac_config_commands"; then
11274 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11275fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011276
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011277cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000011278
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011279ac_cs_usage="\
11280\`$as_me' instantiates files from templates according to the
11281current configuration.
11282
11283Usage: $0 [OPTIONS] [FILE]...
11284
11285 -h, --help print this help, then exit
Benny Prijono0b462322008-03-12 22:44:24 +000011286 -V, --version print version number, then exit
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011287 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011288 -d, --debug don't remove temporary files
11289 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011290 --file=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011291 instantiate the configuration file FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011292 --header=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011293 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011294
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011295Configuration files:
11296$config_files
11297
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011298Configuration headers:
11299$config_headers
11300
11301Report bugs to <bug-autoconf@gnu.org>."
Benny Prijonofdafd402008-01-23 14:34:46 +000011302_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000011303
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011304cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011305ac_cs_version="\\
Benny Prijono1c5f4e42008-02-07 13:11:39 +000011306pjproject config.status 0.8
Benny Prijono0b462322008-03-12 22:44:24 +000011307configured by $0, generated by GNU Autoconf 2.59,
11308 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011309
Benny Prijono0b462322008-03-12 22:44:24 +000011310Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011311This config.status script is free software; the Free Software Foundation
11312gives unlimited permission to copy, distribute and modify it."
Benny Prijono0b462322008-03-12 22:44:24 +000011313srcdir=$srcdir
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011314_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011315
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011316cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011317# If no file are specified by the user, then we need to provide default
11318# value. By we need to know if files were specified by the user.
11319ac_need_defaults=:
11320while test $# != 0
11321do
11322 case $1 in
11323 --*=*)
Benny Prijono0b462322008-03-12 22:44:24 +000011324 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11325 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011326 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011327 ;;
Benny Prijono0b462322008-03-12 22:44:24 +000011328 -*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011329 ac_option=$1
11330 ac_optarg=$2
11331 ac_shift=shift
11332 ;;
Benny Prijono0b462322008-03-12 22:44:24 +000011333 *) # This is not an option, so the user has probably given explicit
11334 # arguments.
11335 ac_option=$1
11336 ac_need_defaults=false;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011337 esac
11338
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011339 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011340 # Handling of the options.
Benny Prijono0b462322008-03-12 22:44:24 +000011341_ACEOF
11342cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011343 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011344 ac_cs_recheck=: ;;
Benny Prijono0b462322008-03-12 22:44:24 +000011345 --version | --vers* | -V )
11346 echo "$ac_cs_version"; exit 0 ;;
11347 --he | --h)
11348 # Conflict between --help and --header
11349 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11350Try \`$0 --help' for more information." >&5
11351echo "$as_me: error: ambiguous option: $1
11352Try \`$0 --help' for more information." >&2;}
11353 { (exit 1); exit 1; }; };;
11354 --help | --hel | -h )
11355 echo "$ac_cs_usage"; exit 0 ;;
11356 --debug | --d* | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011357 debug=: ;;
11358 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011359 $ac_shift
11360 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011361 ac_need_defaults=false;;
11362 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011363 $ac_shift
11364 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011365 ac_need_defaults=false;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11367 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11368 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011369
11370 # This is an error.
Benny Prijono0b462322008-03-12 22:44:24 +000011371 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11372Try \`$0 --help' for more information." >&5
11373echo "$as_me: error: unrecognized option: $1
11374Try \`$0 --help' for more information." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011375 { (exit 1); exit 1; }; } ;;
11376
Benny Prijono0b462322008-03-12 22:44:24 +000011377 *) ac_config_targets="$ac_config_targets $1" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011378
11379 esac
11380 shift
11381done
11382
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011383ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011384
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011385if $ac_cs_silent; then
11386 exec 6>/dev/null
11387 ac_configure_extra_args="$ac_configure_extra_args --silent"
11388fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011389
11390_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011391cat >>$CONFIG_STATUS <<_ACEOF
11392if \$ac_cs_recheck; then
Benny Prijono0b462322008-03-12 22:44:24 +000011393 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11394 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011395fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011396
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011397_ACEOF
11398
Benny Prijono0b462322008-03-12 22:44:24 +000011399
11400
11401
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011402
11403cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011404for ac_config_target in $ac_config_targets
11405do
Benny Prijono0b462322008-03-12 22:44:24 +000011406 case "$ac_config_target" in
11407 # Handling of arguments.
11408 "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;;
11409 "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
11410 "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
11411 "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
11412 "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
11413 "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
11414 "third_party/build/portaudio/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;;
11415 "third_party/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
11416 "pjlib/include/pj/compat/os_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
11417 "pjlib/include/pj/compat/m_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
11418 "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
11419 "pjmedia/include/pjmedia-codec/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
11420 "pjsip/include/pjsip/sip_autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011421 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011422echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11423 { (exit 1); exit 1; }; };;
11424 esac
11425done
11426
11427# If the user did not use the arguments to specify the items to instantiate,
11428# then the envvar interface is used. Set only those that are not.
11429# We use the long form for the default assignment because of an extremely
11430# bizarre bug on SunOS 4.1.3.
11431if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011432 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011433 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11434fi
11435
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011436# Have a temporary directory for convenience. Make it in the build tree
Benny Prijono0b462322008-03-12 22:44:24 +000011437# simply because there is no reason to put it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011438# creating and moving files from /tmp can sometimes cause problems.
Benny Prijono0b462322008-03-12 22:44:24 +000011439# Create a temporary directory, and hook for its removal unless debugging.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011440$debug ||
11441{
Benny Prijono0b462322008-03-12 22:44:24 +000011442 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011443 trap '{ (exit 1); exit 1; }' 1 2 13 15
11444}
Benny Prijono0b462322008-03-12 22:44:24 +000011445
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011446# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011447
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011448{
Benny Prijono0b462322008-03-12 22:44:24 +000011449 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011450 test -n "$tmp" && test -d "$tmp"
11451} ||
11452{
Benny Prijono0b462322008-03-12 22:44:24 +000011453 tmp=./confstat$$-$RANDOM
11454 (umask 077 && mkdir $tmp)
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011455} ||
11456{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011457 echo "$me: cannot create a temporary directory in ." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011458 { (exit 1); exit 1; }
11459}
11460
Benny Prijono0b462322008-03-12 22:44:24 +000011461_ACEOF
11462
11463cat >>$CONFIG_STATUS <<_ACEOF
11464
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011465#
Benny Prijono0b462322008-03-12 22:44:24 +000011466# CONFIG_FILES section.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011467#
11468
11469# No need to generate the scripts if there are no CONFIG_FILES.
11470# This happens for instance when ./config.status config.h
Benny Prijono0b462322008-03-12 22:44:24 +000011471if test -n "\$CONFIG_FILES"; then
11472 # Protect against being on the right side of a sed subst in config.status.
11473 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11474 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11475s,@SHELL@,$SHELL,;t t
11476s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11477s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11478s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11479s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11480s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11481s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11482s,@exec_prefix@,$exec_prefix,;t t
11483s,@prefix@,$prefix,;t t
11484s,@program_transform_name@,$program_transform_name,;t t
11485s,@bindir@,$bindir,;t t
11486s,@sbindir@,$sbindir,;t t
11487s,@libexecdir@,$libexecdir,;t t
11488s,@datadir@,$datadir,;t t
11489s,@sysconfdir@,$sysconfdir,;t t
11490s,@sharedstatedir@,$sharedstatedir,;t t
11491s,@localstatedir@,$localstatedir,;t t
11492s,@libdir@,$libdir,;t t
11493s,@includedir@,$includedir,;t t
11494s,@oldincludedir@,$oldincludedir,;t t
11495s,@infodir@,$infodir,;t t
11496s,@mandir@,$mandir,;t t
11497s,@build_alias@,$build_alias,;t t
11498s,@host_alias@,$host_alias,;t t
11499s,@target_alias@,$target_alias,;t t
11500s,@DEFS@,$DEFS,;t t
11501s,@ECHO_C@,$ECHO_C,;t t
11502s,@ECHO_N@,$ECHO_N,;t t
11503s,@ECHO_T@,$ECHO_T,;t t
11504s,@LIBS@,$LIBS,;t t
11505s,@build@,$build,;t t
11506s,@build_cpu@,$build_cpu,;t t
11507s,@build_vendor@,$build_vendor,;t t
11508s,@build_os@,$build_os,;t t
11509s,@host@,$host,;t t
11510s,@host_cpu@,$host_cpu,;t t
11511s,@host_vendor@,$host_vendor,;t t
11512s,@host_os@,$host_os,;t t
11513s,@target@,$target,;t t
11514s,@target_cpu@,$target_cpu,;t t
11515s,@target_vendor@,$target_vendor,;t t
11516s,@target_os@,$target_os,;t t
11517s,@CC@,$CC,;t t
11518s,@CFLAGS@,$CFLAGS,;t t
11519s,@LDFLAGS@,$LDFLAGS,;t t
11520s,@CPPFLAGS@,$CPPFLAGS,;t t
11521s,@ac_ct_CC@,$ac_ct_CC,;t t
11522s,@EXEEXT@,$EXEEXT,;t t
11523s,@OBJEXT@,$OBJEXT,;t t
11524s,@CXX@,$CXX,;t t
11525s,@CXXFLAGS@,$CXXFLAGS,;t t
11526s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11527s,@ac_pjdir@,$ac_pjdir,;t t
11528s,@CPP@,$CPP,;t t
11529s,@EGREP@,$EGREP,;t t
11530s,@ac_os_objs@,$ac_os_objs,;t t
11531s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t
11532s,@ac_pa_cflags@,$ac_pa_cflags,;t t
11533s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t
11534s,@ac_pa_use_oss@,$ac_pa_use_oss,;t t
11535s,@ac_no_small_filter@,$ac_no_small_filter,;t t
11536s,@ac_no_large_filter@,$ac_no_large_filter,;t t
11537s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t
11538s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t
11539s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t
11540s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t
Benny Prijono71f657d2008-03-17 14:24:21 +000011541s,@ac_no_g722_codec@,$ac_no_g722_codec,;t t
Benny Prijono0b462322008-03-12 22:44:24 +000011542s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t
11543s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t
11544s,@ac_no_ssl@,$ac_no_ssl,;t t
11545s,@openssl_h_present@,$openssl_h_present,;t t
11546s,@libssl_present@,$libssl_present,;t t
11547s,@libcrypto_present@,$libcrypto_present,;t t
11548s,@ac_cross_compile@,$ac_cross_compile,;t t
11549s,@ac_linux_poll@,$ac_linux_poll,;t t
11550s,@ac_host@,$ac_host,;t t
11551s,@ac_main_obj@,$ac_main_obj,;t t
11552s,@LIBOBJS@,$LIBOBJS,;t t
11553s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11554CEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011555
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011556_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011557
Benny Prijono0b462322008-03-12 22:44:24 +000011558 cat >>$CONFIG_STATUS <<\_ACEOF
11559 # Split the substitutions into bite-sized pieces for seds with
11560 # small command number limits, like on Digital OSF/1 and HP-UX.
11561 ac_max_sed_lines=48
11562 ac_sed_frag=1 # Number of current file.
11563 ac_beg=1 # First line for current file.
11564 ac_end=$ac_max_sed_lines # Line after last line for current file.
11565 ac_more_lines=:
11566 ac_sed_cmds=
11567 while $ac_more_lines; do
11568 if test $ac_beg -gt 1; then
11569 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11570 else
11571 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11572 fi
11573 if test ! -s $tmp/subs.frag; then
11574 ac_more_lines=false
11575 else
11576 # The purpose of the label and of the branching condition is to
11577 # speed up the sed processing (if there are no `@' at all, there
11578 # is no need to browse any of the substitutions).
11579 # These are the two extra sed commands mentioned above.
11580 (echo ':t
11581 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11582 if test -z "$ac_sed_cmds"; then
11583 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11584 else
11585 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11586 fi
11587 ac_sed_frag=`expr $ac_sed_frag + 1`
11588 ac_beg=$ac_end
11589 ac_end=`expr $ac_end + $ac_max_sed_lines`
11590 fi
11591 done
11592 if test -z "$ac_sed_cmds"; then
11593 ac_sed_cmds=cat
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011594 fi
11595fi # test -n "$CONFIG_FILES"
11596
Benny Prijono0b462322008-03-12 22:44:24 +000011597_ACEOF
11598cat >>$CONFIG_STATUS <<\_ACEOF
11599for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11600 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11601 case $ac_file in
11602 - | *:- | *:-:* ) # input from stdin
11603 cat >$tmp/stdin
11604 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11605 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11606 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11607 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11608 * ) ac_file_in=$ac_file.in ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011609 esac
11610
Benny Prijono0b462322008-03-12 22:44:24 +000011611 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11612 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011613$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11614 X"$ac_file" : 'X\(//\)[^/]' \| \
11615 X"$ac_file" : 'X\(//\)$' \| \
Benny Prijono0b462322008-03-12 22:44:24 +000011616 X"$ac_file" : 'X\(/\)' \| \
11617 . : '\(.\)' 2>/dev/null ||
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011618echo X"$ac_file" |
Benny Prijono0b462322008-03-12 22:44:24 +000011619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11620 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11621 /^X\(\/\/\)$/{ s//\1/; q; }
11622 /^X\(\/\).*/{ s//\1/; q; }
11623 s/.*/./; q'`
11624 { if $as_mkdir_p; then
11625 mkdir -p "$ac_dir"
11626 else
11627 as_dir="$ac_dir"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011628 as_dirs=
Benny Prijono0b462322008-03-12 22:44:24 +000011629 while test ! -d "$as_dir"; do
11630 as_dirs="$as_dir $as_dirs"
11631 as_dir=`(dirname "$as_dir") 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011632$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11633 X"$as_dir" : 'X\(//\)[^/]' \| \
11634 X"$as_dir" : 'X\(//\)$' \| \
Benny Prijono0b462322008-03-12 22:44:24 +000011635 X"$as_dir" : 'X\(/\)' \| \
11636 . : '\(.\)' 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011637echo X"$as_dir" |
Benny Prijono0b462322008-03-12 22:44:24 +000011638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11639 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11640 /^X\(\/\/\)$/{ s//\1/; q; }
11641 /^X\(\/\).*/{ s//\1/; q; }
11642 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011643 done
Benny Prijono0b462322008-03-12 22:44:24 +000011644 test ! -n "$as_dirs" || mkdir $as_dirs
11645 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11646echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011647 { (exit 1); exit 1; }; }; }
Benny Prijono0b462322008-03-12 22:44:24 +000011648
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011649 ac_builddir=.
11650
Benny Prijono0b462322008-03-12 22:44:24 +000011651if test "$ac_dir" != .; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011652 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Benny Prijono0b462322008-03-12 22:44:24 +000011653 # A "../" for each directory in $ac_dir_suffix.
11654 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11655else
11656 ac_dir_suffix= ac_top_builddir=
11657fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011658
11659case $srcdir in
Benny Prijono0b462322008-03-12 22:44:24 +000011660 .) # No --srcdir option. We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011661 ac_srcdir=.
Benny Prijono0b462322008-03-12 22:44:24 +000011662 if test -z "$ac_top_builddir"; then
11663 ac_top_srcdir=.
11664 else
11665 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11666 fi ;;
11667 [\\/]* | ?:[\\/]* ) # Absolute path.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011668 ac_srcdir=$srcdir$ac_dir_suffix;
Benny Prijono0b462322008-03-12 22:44:24 +000011669 ac_top_srcdir=$srcdir ;;
11670 *) # Relative path.
11671 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11672 ac_top_srcdir=$ac_top_builddir$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011673esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011674
Benny Prijono0b462322008-03-12 22:44:24 +000011675# Do not use `cd foo && pwd` to compute absolute paths, because
11676# the directories may not exist.
11677case `pwd` in
11678.) ac_abs_builddir="$ac_dir";;
11679*)
11680 case "$ac_dir" in
11681 .) ac_abs_builddir=`pwd`;;
11682 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11683 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11684 esac;;
Benny Prijonofdafd402008-01-23 14:34:46 +000011685esac
Benny Prijono0b462322008-03-12 22:44:24 +000011686case $ac_abs_builddir in
11687.) ac_abs_top_builddir=${ac_top_builddir}.;;
11688*)
11689 case ${ac_top_builddir}. in
11690 .) ac_abs_top_builddir=$ac_abs_builddir;;
11691 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11692 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11693 esac;;
11694esac
11695case $ac_abs_builddir in
11696.) ac_abs_srcdir=$ac_srcdir;;
11697*)
11698 case $ac_srcdir in
11699 .) ac_abs_srcdir=$ac_abs_builddir;;
11700 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11701 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11702 esac;;
11703esac
11704case $ac_abs_builddir in
11705.) ac_abs_top_srcdir=$ac_top_srcdir;;
11706*)
11707 case $ac_top_srcdir in
11708 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11709 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11710 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11711 esac;;
11712esac
Benny Prijonofdafd402008-01-23 14:34:46 +000011713
Benny Prijono0b462322008-03-12 22:44:24 +000011714
11715
11716 if test x"$ac_file" != x-; then
11717 { echo "$as_me:$LINENO: creating $ac_file" >&5
11718echo "$as_me: creating $ac_file" >&6;}
11719 rm -f "$ac_file"
11720 fi
11721 # Let's still pretend it is `configure' which instantiates (i.e., don't
11722 # use $as_me), people would be surprised to read:
11723 # /* config.h. Generated by config.status. */
11724 if test x"$ac_file" = x-; then
11725 configure_input=
11726 else
11727 configure_input="$ac_file. "
11728 fi
11729 configure_input=$configure_input"Generated from `echo $ac_file_in |
11730 sed 's,.*/,,'` by configure."
11731
11732 # First look for the input files in the build tree, otherwise in the
11733 # src tree.
11734 ac_file_inputs=`IFS=:
11735 for f in $ac_file_in; do
11736 case $f in
11737 -) echo $tmp/stdin ;;
11738 [\\/$]*)
11739 # Absolute (can't be DOS-style, as IFS=:)
11740 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11741echo "$as_me: error: cannot find input file: $f" >&2;}
11742 { (exit 1); exit 1; }; }
11743 echo "$f";;
11744 *) # Relative
11745 if test -f "$f"; then
11746 # Build tree
11747 echo "$f"
11748 elif test -f "$srcdir/$f"; then
11749 # Source tree
11750 echo "$srcdir/$f"
11751 else
11752 # /dev/null tree
11753 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11754echo "$as_me: error: cannot find input file: $f" >&2;}
11755 { (exit 1); exit 1; }; }
11756 fi;;
11757 esac
11758 done` || { (exit 1); exit 1; }
11759_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011760cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011761 sed "$ac_vpsub
11762$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011763_ACEOF
11764cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011765:t
11766/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Benny Prijono0b462322008-03-12 22:44:24 +000011767s,@configure_input@,$configure_input,;t t
11768s,@srcdir@,$ac_srcdir,;t t
11769s,@abs_srcdir@,$ac_abs_srcdir,;t t
11770s,@top_srcdir@,$ac_top_srcdir,;t t
11771s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11772s,@builddir@,$ac_builddir,;t t
11773s,@abs_builddir@,$ac_abs_builddir,;t t
11774s,@top_builddir@,$ac_top_builddir,;t t
11775s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11776" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11777 rm -f $tmp/stdin
11778 if test x"$ac_file" != x-; then
11779 mv $tmp/out $ac_file
11780 else
11781 cat $tmp/out
11782 rm -f $tmp/out
11783 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011784
Benny Prijono0b462322008-03-12 22:44:24 +000011785done
11786_ACEOF
11787cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011788
Benny Prijono0b462322008-03-12 22:44:24 +000011789#
11790# CONFIG_HEADER section.
11791#
11792
11793# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11794# NAME is the cpp macro being defined and VALUE is the value it is being given.
11795#
11796# ac_d sets the value in "#define NAME VALUE" lines.
11797ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11798ac_dB='[ ].*$,\1#\2'
11799ac_dC=' '
11800ac_dD=',;t'
11801# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11802ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11803ac_uB='$,\1#\2define\3'
11804ac_uC=' '
11805ac_uD=',;t'
11806
11807for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11808 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011809 case $ac_file in
Benny Prijono0b462322008-03-12 22:44:24 +000011810 - | *:- | *:-:* ) # input from stdin
11811 cat >$tmp/stdin
11812 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11813 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11814 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11815 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11816 * ) ac_file_in=$ac_file.in ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011817 esac
Benny Prijono0b462322008-03-12 22:44:24 +000011818
11819 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11820echo "$as_me: creating $ac_file" >&6;}
11821
11822 # First look for the input files in the build tree, otherwise in the
11823 # src tree.
11824 ac_file_inputs=`IFS=:
11825 for f in $ac_file_in; do
11826 case $f in
11827 -) echo $tmp/stdin ;;
11828 [\\/$]*)
11829 # Absolute (can't be DOS-style, as IFS=:)
11830 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11831echo "$as_me: error: cannot find input file: $f" >&2;}
11832 { (exit 1); exit 1; }; }
11833 # Do quote $f, to prevent DOS paths from being IFS'd.
11834 echo "$f";;
11835 *) # Relative
11836 if test -f "$f"; then
11837 # Build tree
11838 echo "$f"
11839 elif test -f "$srcdir/$f"; then
11840 # Source tree
11841 echo "$srcdir/$f"
11842 else
11843 # /dev/null tree
11844 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11845echo "$as_me: error: cannot find input file: $f" >&2;}
11846 { (exit 1); exit 1; }; }
11847 fi;;
11848 esac
11849 done` || { (exit 1); exit 1; }
11850 # Remove the trailing spaces.
11851 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11852
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011853_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011854
Benny Prijono0b462322008-03-12 22:44:24 +000011855# Transform confdefs.h into two sed scripts, `conftest.defines' and
11856# `conftest.undefs', that substitutes the proper values into
11857# config.h.in to produce config.h. The first handles `#define'
11858# templates, and the second `#undef' templates.
11859# And first: Protect against being on the right side of a sed subst in
11860# config.status. Protect against being in an unquoted here document
11861# in config.status.
11862rm -f conftest.defines conftest.undefs
11863# Using a here document instead of a string reduces the quoting nightmare.
11864# Putting comments in sed scripts is not portable.
11865#
11866# `end' is used to avoid that the second main sed command (meant for
11867# 0-ary CPP macros) applies to n-ary macro definitions.
11868# See the Autoconf documentation for `clear'.
11869cat >confdef2sed.sed <<\_ACEOF
11870s/[\\&,]/\\&/g
11871s,[\\$`],\\&,g
11872t clear
11873: clear
11874s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11875t end
11876s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11877: end
11878_ACEOF
11879# If some macros were called several times there might be several times
11880# the same #defines, which is useless. Nevertheless, we may not want to
11881# sort them, since we want the *last* AC-DEFINE to be honored.
11882uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11883sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11884rm -f confdef2sed.sed
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011885
Benny Prijono0b462322008-03-12 22:44:24 +000011886# This sed command replaces #undef with comments. This is necessary, for
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011887# example, in the case of _POSIX_SOURCE, which is predefined and required
11888# on some systems where configure will not decide to define it.
Benny Prijono0b462322008-03-12 22:44:24 +000011889cat >>conftest.undefs <<\_ACEOF
11890s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Benny Prijonofdafd402008-01-23 14:34:46 +000011891_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000011892
11893# Break up conftest.defines because some shells have a limit on the size
11894# of here documents, and old seds have small limits too (100 cmds).
11895echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11896echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11897echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11898echo ' :' >>$CONFIG_STATUS
11899rm -f conftest.tail
11900while grep . conftest.defines >/dev/null
11901do
11902 # Write a limited-size here document to $tmp/defines.sed.
11903 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11904 # Speed up: don't consider the non `#define' lines.
11905 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11906 # Work around the forget-to-reset-the-flag bug.
11907 echo 't clr' >>$CONFIG_STATUS
11908 echo ': clr' >>$CONFIG_STATUS
11909 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011910 echo 'CEOF
Benny Prijono0b462322008-03-12 22:44:24 +000011911 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11912 rm -f $tmp/in
11913 mv $tmp/out $tmp/in
11914' >>$CONFIG_STATUS
11915 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011916 rm -f conftest.defines
11917 mv conftest.tail conftest.defines
11918done
Benny Prijono0b462322008-03-12 22:44:24 +000011919rm -f conftest.defines
11920echo ' fi # grep' >>$CONFIG_STATUS
11921echo >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011922
Benny Prijono0b462322008-03-12 22:44:24 +000011923# Break up conftest.undefs because some shells have a limit on the size
11924# of here documents, and old seds have small limits too (100 cmds).
11925echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11926rm -f conftest.tail
11927while grep . conftest.undefs >/dev/null
11928do
11929 # Write a limited-size here document to $tmp/undefs.sed.
11930 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11931 # Speed up: don't consider the non `#undef'
11932 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11933 # Work around the forget-to-reset-the-flag bug.
11934 echo 't clr' >>$CONFIG_STATUS
11935 echo ': clr' >>$CONFIG_STATUS
11936 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11937 echo 'CEOF
11938 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11939 rm -f $tmp/in
11940 mv $tmp/out $tmp/in
11941' >>$CONFIG_STATUS
11942 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11943 rm -f conftest.undefs
11944 mv conftest.tail conftest.undefs
11945done
11946rm -f conftest.undefs
11947
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011948cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono0b462322008-03-12 22:44:24 +000011949 # Let's still pretend it is `configure' which instantiates (i.e., don't
11950 # use $as_me), people would be surprised to read:
11951 # /* config.h. Generated by config.status. */
11952 if test x"$ac_file" = x-; then
11953 echo "/* Generated by configure. */" >$tmp/config.h
11954 else
11955 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11956 fi
11957 cat $tmp/in >>$tmp/config.h
11958 rm -f $tmp/in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011959 if test x"$ac_file" != x-; then
Benny Prijono0b462322008-03-12 22:44:24 +000011960 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011961 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011962echo "$as_me: $ac_file is unchanged" >&6;}
11963 else
Benny Prijono0b462322008-03-12 22:44:24 +000011964 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11965$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11966 X"$ac_file" : 'X\(//\)[^/]' \| \
11967 X"$ac_file" : 'X\(//\)$' \| \
11968 X"$ac_file" : 'X\(/\)' \| \
11969 . : '\(.\)' 2>/dev/null ||
11970echo X"$ac_file" |
11971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11972 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11973 /^X\(\/\/\)$/{ s//\1/; q; }
11974 /^X\(\/\).*/{ s//\1/; q; }
11975 s/.*/./; q'`
11976 { if $as_mkdir_p; then
11977 mkdir -p "$ac_dir"
11978 else
11979 as_dir="$ac_dir"
11980 as_dirs=
11981 while test ! -d "$as_dir"; do
11982 as_dirs="$as_dir $as_dirs"
11983 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11984$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11985 X"$as_dir" : 'X\(//\)[^/]' \| \
11986 X"$as_dir" : 'X\(//\)$' \| \
11987 X"$as_dir" : 'X\(/\)' \| \
11988 . : '\(.\)' 2>/dev/null ||
11989echo X"$as_dir" |
11990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11991 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11992 /^X\(\/\/\)$/{ s//\1/; q; }
11993 /^X\(\/\).*/{ s//\1/; q; }
11994 s/.*/./; q'`
11995 done
11996 test ! -n "$as_dirs" || mkdir $as_dirs
11997 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11998echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11999 { (exit 1); exit 1; }; }; }
12000
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012001 rm -f $ac_file
Benny Prijono0b462322008-03-12 22:44:24 +000012002 mv $tmp/config.h $ac_file
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012003 fi
12004 else
Benny Prijono0b462322008-03-12 22:44:24 +000012005 cat $tmp/config.h
12006 rm -f $tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012007 fi
Benny Prijono0b462322008-03-12 22:44:24 +000012008done
12009_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012010
Benny Prijono0b462322008-03-12 22:44:24 +000012011cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012012
12013{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012014_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012015chmod +x $CONFIG_STATUS
12016ac_clean_files=$ac_clean_files_save
12017
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012018
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012019# configure is writing to config.log, and then calls config.status.
12020# config.status does its own redirection, appending to config.log.
12021# Unfortunately, on DOS this fails, as config.log is still kept open
12022# by configure, so config.status won't be able to write to it; its
12023# output is simply discarded. So we exec the FD to /dev/null,
12024# effectively closing config.log, so it can be properly (re)opened and
12025# appended to by config.status. When coming back to configure, we
12026# need to make the FD available again.
12027if test "$no_create" != yes; then
12028 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012029 ac_config_status_args=
12030 test "$silent" = yes &&
12031 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012032 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012033 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012034 exec 5>>config.log
12035 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12036 # would make configure fail if this is the last instruction.
12037 $ac_cs_success || { (exit 1); exit 1; }
12038fi
12039
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012040
Benny Prijonod9627842007-04-18 09:24:31 +000012041
Benny Prijono0b462322008-03-12 22:44:24 +000012042echo "$as_me:$LINENO: result:
Benny Prijonod9627842007-04-18 09:24:31 +000012043
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012044Configurations 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 +000012045
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012046Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000012047 - 'user.mak'
12048 - 'pjlib/include/pj/config_site.h'
12049
12050The next step now is to run 'make dep' and 'make'.
12051" >&5
12052echo "${ECHO_T}
12053
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012054Configurations 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 +000012055
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012056Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000012057 - 'user.mak'
12058 - 'pjlib/include/pj/config_site.h'
12059
12060The next step now is to run 'make dep' and 'make'.
Benny Prijono0b462322008-03-12 22:44:24 +000012061" >&6
Benny Prijonod9627842007-04-18 09:24:31 +000012062