blob: b616292ebacdc7b51ca5ae06041ad2b465b025c4 [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijonoe2746132008-09-27 13:16:35 +00003# Generated by GNU Autoconf 2.59 for pjproject 1.0.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004#
Benny Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijono9489e7a2008-09-19 22:18:50 +000023
Benny Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +0000135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000137 /*)
Benny Prijonoe2746132008-09-27 13:16:35 +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 Prijono9489e7a2008-09-19 22:18:50 +0000152done
Benny Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +0000171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000173 ' >$as_me.lineno &&
Benny Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijono0822c192008-08-21 20:59:58 +0000270PACKAGE_VERSION='1.0'
271PACKAGE_STRING='pjproject 1.0'
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 Prijonoe2746132008-09-27 13:16:35 +0000277#if HAVE_SYS_TYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000278# include <sys/types.h>
279#endif
Benny Prijonoe2746132008-09-27 13:16:35 +0000280#if HAVE_SYS_STAT_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000281# include <sys/stat.h>
282#endif
Benny Prijonoe2746132008-09-27 13:16:35 +0000283#if STDC_HEADERS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000284# include <stdlib.h>
285# include <stddef.h>
286#else
Benny Prijonoe2746132008-09-27 13:16:35 +0000287# if HAVE_STDLIB_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000288# include <stdlib.h>
289# endif
290#endif
Benny Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +0000297#if HAVE_STRINGS_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000298# include <strings.h>
299#endif
Benny Prijonoe2746132008-09-27 13:16:35 +0000300#if HAVE_INTTYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000301# include <inttypes.h>
Benny Prijonoe2746132008-09-27 13:16:35 +0000302#else
303# if HAVE_STDINT_H
304# include <stdint.h>
305# endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000306#endif
Benny Prijonoe2746132008-09-27 13:16:35 +0000307#if HAVE_UNISTD_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000308# include <unistd.h>
309#endif"
310
Benny Prijonoe2746132008-09-27 13:16:35 +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 ac_build_mak_vars 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 Prijonoe2746132008-09-27 13:16:35 +0000342datadir='${prefix}/share'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
Benny Prijonoe2746132008-09-27 13:16:35 +0000346libdir='${exec_prefix}/lib'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000347includedir='${prefix}/include'
348oldincludedir='/usr/include'
Benny Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +0000357 eval "$ac_prev=\$ac_option"
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000358 ac_prev=
359 continue
360 fi
361
Benny Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +0000388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000389 ac_prev=datadir ;;
Benny Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +0000657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000659do
Benny Prijonoe2746132008-09-27 13:16:35 +0000660 eval ac_val=$`echo $ac_var`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000661 case $ac_val in
Benny Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +0000712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000714echo X"$0" |
Benny Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +0000731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Benny Prijono99eec382008-09-18 21:22:16 +0000733 { (exit 1); exit 1; }; }
Benny Prijonoe2746132008-09-27 13:16:35 +0000734 fi
Benny Prijono9489e7a2008-09-19 22:18:50 +0000735fi
Benny Prijonoe2746132008-09-27 13:16:35 +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 Prijono0822c192008-08-21 20:59:58 +0000788\`configure' configures pjproject 1.0 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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijonoe2746132008-09-27 13:16:35 +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 Prijono0822c192008-08-21 20:59:58 +0000850 short | recursive ) echo "Configuration of pjproject 1.0:";;
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 Prijono9489e7a2008-09-19 22:18:50 +0000859 --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
Benny Prijono1d971622006-09-10 22:27:40 +0000860 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijono0b462322008-03-12 22:44:24 +0000861 --disable-oss Disable OSS audio (default: not disabled)
862
Benny Prijonoebb2c332008-07-28 23:40:58 +0000863 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000864 --disable-small-filter Exclude small filter in resampling
865 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000866 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
867 --disable-g711-codec Exclude G.711 codecs from the build
868 --disable-l16-codec Exclude Linear/L16 codec family from the build
869 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +0000870 --disable-g722-codec Exclude G.722 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000871 --disable-speex-codec Exclude Speex codecs in the build
872 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +0000873 --enable-libsamplerate Link with libsamplerate when available. Note that
874 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijono0822c192008-08-21 20:59:58 +0000875 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
876 package and samples location using IPPROOT and
877 IPPSAMPLES env var or with --with-ipp and
878 --with-ipp-samples options
879 --with-ipp=DIR Specify the Intel IPP location
880 --with-ipp-samples=DIR Specify the Intel IPP samples location
Benny Prijonoce1db762007-02-14 02:21:08 +0000881 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000882
883
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000884Some influential environment variables:
885 CC C compiler command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
888 nonstandard directory <lib dir>
Benny Prijonoe2746132008-09-27 13:16:35 +0000889 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
890 headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +0000891 CXX C++ compiler command
892 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000893 CPP C preprocessor
894
895Use these variables to override the choices made by `configure' or to help
896it to find libraries and programs with nonstandard names/locations.
897
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000898_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000899fi
900
901if test "$ac_init_help" = "recursive"; then
902 # If there are subdirs, report their specific --help.
Benny Prijonoe2746132008-09-27 13:16:35 +0000903 ac_popdir=`pwd`
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Benny Prijonoe2746132008-09-27 13:16:35 +0000905 test -d $ac_dir || continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000906 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000907
Benny Prijonoe2746132008-09-27 13:16:35 +0000908if test "$ac_dir" != .; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000909 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Benny Prijonoe2746132008-09-27 13:16:35 +0000910 # A "../" for each directory in $ac_dir_suffix.
911 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
912else
913 ac_dir_suffix= ac_top_builddir=
914fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000915
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000916case $srcdir in
Benny Prijonoe2746132008-09-27 13:16:35 +0000917 .) # No --srcdir option. We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000918 ac_srcdir=.
Benny Prijonoe2746132008-09-27 13:16:35 +0000919 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=.
921 else
922 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
923 fi ;;
924 [\\/]* | ?:[\\/]* ) # Absolute path.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000925 ac_srcdir=$srcdir$ac_dir_suffix;
Benny Prijonoe2746132008-09-27 13:16:35 +0000926 ac_top_srcdir=$srcdir ;;
927 *) # Relative path.
928 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
929 ac_top_srcdir=$ac_top_builddir$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000930esac
931
Benny Prijonoe2746132008-09-27 13:16:35 +0000932# Do not use `cd foo && pwd` to compute absolute paths, because
933# the directories may not exist.
934case `pwd` in
935.) ac_abs_builddir="$ac_dir";;
936*)
937 case "$ac_dir" in
938 .) ac_abs_builddir=`pwd`;;
939 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
940 *) ac_abs_builddir=`pwd`/"$ac_dir";;
941 esac;;
942esac
943case $ac_abs_builddir in
944.) ac_abs_top_builddir=${ac_top_builddir}.;;
945*)
946 case ${ac_top_builddir}. in
947 .) ac_abs_top_builddir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
949 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
950 esac;;
951esac
952case $ac_abs_builddir in
953.) ac_abs_srcdir=$ac_srcdir;;
954*)
955 case $ac_srcdir in
956 .) ac_abs_srcdir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
958 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
959 esac;;
960esac
961case $ac_abs_builddir in
962.) ac_abs_top_srcdir=$ac_top_srcdir;;
963*)
964 case $ac_top_srcdir in
965 .) ac_abs_top_srcdir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
967 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
968 esac;;
969esac
970
971 cd $ac_dir
972 # Check for guested configure; otherwise get Cygnus style configure.
973 if test -f $ac_srcdir/configure.gnu; then
974 echo
975 $SHELL $ac_srcdir/configure.gnu --help=recursive
976 elif test -f $ac_srcdir/configure; then
977 echo
978 $SHELL $ac_srcdir/configure --help=recursive
979 elif test -f $ac_srcdir/configure.ac ||
980 test -f $ac_srcdir/configure.in; then
981 echo
982 $ac_configure --help
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000983 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000984 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Benny Prijonoe2746132008-09-27 13:16:35 +0000985 fi
986 cd $ac_popdir
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000987 done
988fi
989
Benny Prijonoe2746132008-09-27 13:16:35 +0000990test -n "$ac_init_help" && exit 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000991if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000992 cat <<\_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +0000993pjproject configure 1.0
Benny Prijonoe2746132008-09-27 13:16:35 +0000994generated by GNU Autoconf 2.59
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000995
Benny Prijonoe2746132008-09-27 13:16:35 +0000996Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000997This configure script is free software; the Free Software Foundation
998gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000999_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00001000 exit 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001001fi
Benny Prijonoe2746132008-09-27 13:16:35 +00001002exec 5>config.log
1003cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001004This file contains any messages produced by compilers while
1005running configure, to aid debugging if configure makes a mistake.
1006
Benny Prijono0822c192008-08-21 20:59:58 +00001007It was created by pjproject $as_me 1.0, which was
Benny Prijonoe2746132008-09-27 13:16:35 +00001008generated by GNU Autoconf 2.59. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001009
1010 $ $0 $@
1011
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001012_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001013{
1014cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001015## --------- ##
1016## Platform. ##
1017## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001018
1019hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1020uname -m = `(uname -m) 2>/dev/null || echo unknown`
1021uname -r = `(uname -r) 2>/dev/null || echo unknown`
1022uname -s = `(uname -s) 2>/dev/null || echo unknown`
1023uname -v = `(uname -v) 2>/dev/null || echo unknown`
1024
1025/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1026/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1027
1028/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1029/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1030/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Benny Prijonoe2746132008-09-27 13:16:35 +00001031hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001032/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1033/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1034/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1035
1036_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001037
1038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039for as_dir in $PATH
1040do
1041 IFS=$as_save_IFS
1042 test -z "$as_dir" && as_dir=.
1043 echo "PATH: $as_dir"
1044done
1045
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001046} >&5
1047
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001048cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001049
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001050
1051## ----------- ##
1052## Core tests. ##
1053## ----------- ##
1054
1055_ACEOF
1056
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001057
1058# Keep a trace of the command line.
1059# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001060# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001061# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001062# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001063ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001064ac_configure_args0=
1065ac_configure_args1=
Benny Prijonoe2746132008-09-27 13:16:35 +00001066ac_sep=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001067ac_must_keep_next=false
1068for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001069do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001070 for ac_arg
1071 do
1072 case $ac_arg in
1073 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 continue ;;
Benny Prijonoe2746132008-09-27 13:16:35 +00001077 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001078 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079 esac
1080 case $ac_pass in
1081 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082 2)
1083 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1084 if test $ac_must_keep_next = true; then
1085 ac_must_keep_next=false # Got value, back to normal.
1086 else
1087 case $ac_arg in
1088 *=* | --config-cache | -C | -disable-* | --disable-* \
1089 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1090 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1091 | -with-* | --with-* | -without-* | --without-* | --x)
1092 case "$ac_configure_args0 " in
1093 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094 esac
1095 ;;
1096 -* ) ac_must_keep_next=true ;;
1097 esac
1098 fi
Benny Prijonoe2746132008-09-27 13:16:35 +00001099 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1100 # Get rid of the leading space.
1101 ac_sep=" "
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001102 ;;
1103 esac
1104 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001105done
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001106$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1107$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 +00001108
1109# When interrupted or exit'd, cleanup temporary files, and complete
1110# config.log. We remove comments because anyway the quotes in there
1111# would cause problems or look ugly.
Benny Prijonoe2746132008-09-27 13:16:35 +00001112# WARNING: Be sure not to use single quotes in there, as some shells,
1113# such as our DU 5.0 friend, will then `close' the trap.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001114trap 'exit_status=$?
1115 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001116 {
1117 echo
1118
1119 cat <<\_ASBOX
1120## ---------------- ##
1121## Cache variables. ##
1122## ---------------- ##
1123_ASBOX
1124 echo
1125 # The following way of writing the cache mishandles newlines in values,
Benny Prijonoe2746132008-09-27 13:16:35 +00001126{
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001127 (set) 2>&1 |
Benny Prijonoe2746132008-09-27 13:16:35 +00001128 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129 *ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001130 sed -n \
Benny Prijonoe2746132008-09-27 13:16:35 +00001131 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Benny Prijono99eec382008-09-18 21:22:16 +00001133 ;;
Benny Prijonoe2746132008-09-27 13:16:35 +00001134 *)
1135 sed -n \
1136 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137 ;;
1138 esac;
1139}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001140 echo
1141
1142 cat <<\_ASBOX
1143## ----------------- ##
1144## Output variables. ##
1145## ----------------- ##
1146_ASBOX
1147 echo
1148 for ac_var in $ac_subst_vars
1149 do
Benny Prijonoe2746132008-09-27 13:16:35 +00001150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001152 done | sort
1153 echo
1154
1155 if test -n "$ac_subst_files"; then
1156 cat <<\_ASBOX
Benny Prijonoe2746132008-09-27 13:16:35 +00001157## ------------- ##
1158## Output files. ##
1159## ------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001160_ASBOX
1161 echo
1162 for ac_var in $ac_subst_files
1163 do
Benny Prijonoe2746132008-09-27 13:16:35 +00001164 eval ac_val=$`echo $ac_var`
1165 echo "$ac_var='"'"'$ac_val'"'"'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001166 done | sort
1167 echo
1168 fi
1169
1170 if test -s confdefs.h; then
1171 cat <<\_ASBOX
1172## ----------- ##
1173## confdefs.h. ##
1174## ----------- ##
1175_ASBOX
1176 echo
Benny Prijonoe2746132008-09-27 13:16:35 +00001177 sed "/^$/d" confdefs.h | sort
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001178 echo
1179 fi
1180 test "$ac_signal" != 0 &&
1181 echo "$as_me: caught signal $ac_signal"
1182 echo "$as_me: exit $exit_status"
1183 } >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00001184 rm -f core *.core &&
1185 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001186 exit $exit_status
Benny Prijonoe2746132008-09-27 13:16:35 +00001187 ' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001188for ac_signal in 1 2 13 15; do
1189 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190done
1191ac_signal=0
1192
1193# confdefs.h avoids OS command line length limits that DEFS can exceed.
Benny Prijonoe2746132008-09-27 13:16:35 +00001194rm -rf conftest* confdefs.h
1195# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196echo >confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001197
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001198# Predefined preprocessor variables.
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_NAME "$PACKAGE_NAME"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207_ACEOF
1208
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_VERSION "$PACKAGE_VERSION"
1212_ACEOF
1213
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_STRING "$PACKAGE_STRING"
1217_ACEOF
1218
1219
1220cat >>confdefs.h <<_ACEOF
1221#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222_ACEOF
1223
1224
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001225# Let the site file select an alternate cache file if it wants to.
1226# Prefer explicitly selected file to automatically selected ones.
Benny Prijonoe2746132008-09-27 13:16:35 +00001227if test -z "$CONFIG_SITE"; then
1228 if test "x$prefix" != xNONE; then
1229 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230 else
1231 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001233fi
Benny Prijonoe2746132008-09-27 13:16:35 +00001234for ac_site_file in $CONFIG_SITE; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001235 if test -r "$ac_site_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001236 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001237echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001238 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001239 . "$ac_site_file"
1240 fi
1241done
1242
1243if test -r "$cache_file"; then
1244 # Some versions of bash will fail to source /dev/null (special
1245 # files actually), so we avoid doing that.
1246 if test -f "$cache_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001247 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001248echo "$as_me: loading cache $cache_file" >&6;}
1249 case $cache_file in
Benny Prijonoe2746132008-09-27 13:16:35 +00001250 [\\/]* | ?:[\\/]* ) . $cache_file;;
1251 *) . ./$cache_file;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001252 esac
1253 fi
1254else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001255 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001256echo "$as_me: creating cache $cache_file" >&6;}
1257 >$cache_file
1258fi
1259
1260# Check that the precious variables saved in the cache have kept the same
1261# value.
1262ac_cache_corrupted=false
Benny Prijonoe2746132008-09-27 13:16:35 +00001263for ac_var in `(set) 2>&1 |
1264 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001265 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1266 eval ac_new_set=\$ac_env_${ac_var}_set
Benny Prijonoe2746132008-09-27 13:16:35 +00001267 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1268 eval ac_new_val="\$ac_env_${ac_var}_value"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001269 case $ac_old_set,$ac_new_set in
1270 set,)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001271 { 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 +00001272echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1274 ,set)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001275 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001276echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1277 ac_cache_corrupted=: ;;
1278 ,);;
1279 *)
1280 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001281 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001282echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001283 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001284echo "$as_me: former value: $ac_old_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001285 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001286echo "$as_me: current value: $ac_new_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001287 ac_cache_corrupted=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001288 fi;;
1289 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001290 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001291 if test "$ac_new_set" = set; then
1292 case $ac_new_val in
Benny Prijonoe2746132008-09-27 13:16:35 +00001293 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001295 *) ac_arg=$ac_var=$ac_new_val ;;
1296 esac
1297 case " $ac_configure_args " in
1298 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1299 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001300 esac
1301 fi
1302done
1303if $ac_cache_corrupted; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001304 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001305echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001306 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001307echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1308 { (exit 1); exit 1; }; }
1309fi
1310
1311ac_ext=c
1312ac_cpp='$CPP $CPPFLAGS'
1313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1315ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001317
1318
Benny Prijonoe2746132008-09-27 13:16:35 +00001319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
Benny Prijono5b818b22006-09-17 22:58:51 +00001344host_orig="$host"
1345
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001346ac_aux_dir=
Benny Prijonoe2746132008-09-27 13:16:35 +00001347for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1348 if test -f $ac_dir/install-sh; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001349 ac_aux_dir=$ac_dir
1350 ac_install_sh="$ac_aux_dir/install-sh -c"
1351 break
Benny Prijonoe2746132008-09-27 13:16:35 +00001352 elif test -f $ac_dir/install.sh; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001353 ac_aux_dir=$ac_dir
1354 ac_install_sh="$ac_aux_dir/install.sh -c"
1355 break
Benny Prijonoe2746132008-09-27 13:16:35 +00001356 elif test -f $ac_dir/shtool; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001357 ac_aux_dir=$ac_dir
1358 ac_install_sh="$ac_aux_dir/shtool install -c"
1359 break
1360 fi
1361done
1362if test -z "$ac_aux_dir"; then
Benny Prijonoe2746132008-09-27 13:16:35 +00001363 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1364echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001365 { (exit 1); exit 1; }; }
1366fi
Benny Prijonoe2746132008-09-27 13:16:35 +00001367ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1368ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1369ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001370
1371# Make sure we can run config.sub.
Benny Prijonoe2746132008-09-27 13:16:35 +00001372$ac_config_sub sun4 >/dev/null 2>&1 ||
1373 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1374echo "$as_me: error: cannot run $ac_config_sub" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001375 { (exit 1); exit 1; }; }
1376
Benny Prijonoe2746132008-09-27 13:16:35 +00001377echo "$as_me:$LINENO: checking build system type" >&5
1378echo $ECHO_N "checking build system type... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001379if test "${ac_cv_build+set}" = set; then
1380 echo $ECHO_N "(cached) $ECHO_C" >&6
1381else
Benny Prijonoe2746132008-09-27 13:16:35 +00001382 ac_cv_build_alias=$build_alias
1383test -z "$ac_cv_build_alias" &&
1384 ac_cv_build_alias=`$ac_config_guess`
1385test -z "$ac_cv_build_alias" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001386 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001387echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1388 { (exit 1); exit 1; }; }
Benny Prijonoe2746132008-09-27 13:16:35 +00001389ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1390 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1391echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001392 { (exit 1); exit 1; }; }
1393
1394fi
Benny Prijonoe2746132008-09-27 13:16:35 +00001395echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1396echo "${ECHO_T}$ac_cv_build" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001397build=$ac_cv_build
Benny Prijonoe2746132008-09-27 13:16:35 +00001398build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1399build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1400build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001401
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001402
Benny Prijonoe2746132008-09-27 13:16:35 +00001403echo "$as_me:$LINENO: checking host system type" >&5
1404echo $ECHO_N "checking host system type... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001405if test "${ac_cv_host+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1407else
Benny Prijonoe2746132008-09-27 13:16:35 +00001408 ac_cv_host_alias=$host_alias
1409test -z "$ac_cv_host_alias" &&
1410 ac_cv_host_alias=$ac_cv_build_alias
1411ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1412 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1413echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001414 { (exit 1); exit 1; }; }
1415
1416fi
Benny Prijonoe2746132008-09-27 13:16:35 +00001417echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1418echo "${ECHO_T}$ac_cv_host" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001419host=$ac_cv_host
Benny Prijonoe2746132008-09-27 13:16:35 +00001420host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1421host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1422host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001423
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001424
Benny Prijonoe2746132008-09-27 13:16:35 +00001425echo "$as_me:$LINENO: checking target system type" >&5
1426echo $ECHO_N "checking target system type... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001427if test "${ac_cv_target+set}" = set; then
1428 echo $ECHO_N "(cached) $ECHO_C" >&6
1429else
Benny Prijonoe2746132008-09-27 13:16:35 +00001430 ac_cv_target_alias=$target_alias
1431test "x$ac_cv_target_alias" = "x" &&
1432 ac_cv_target_alias=$ac_cv_host_alias
1433ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1434 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1435echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001436 { (exit 1); exit 1; }; }
1437
1438fi
Benny Prijonoe2746132008-09-27 13:16:35 +00001439echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1440echo "${ECHO_T}$ac_cv_target" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001441target=$ac_cv_target
Benny Prijonoe2746132008-09-27 13:16:35 +00001442target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1443target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1444target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001445
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001446
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001447# The aliases save the names the user supplied, while $host etc.
1448# will get canonicalized.
1449test -n "$target_alias" &&
1450 test "$program_prefix$program_suffix$program_transform_name" = \
1451 NONENONEs,x,x, &&
1452 program_prefix=${target_alias}-
Benny Prijonoe2746132008-09-27 13:16:35 +00001453 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 +00001454
Benny Prijonoe2746132008-09-27 13:16:35 +00001455 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 +00001456
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001457
Benny Prijono12483112007-03-12 10:44:38 +00001458
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001459if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00001460 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001461else
1462 CFLAGS="$CFLAGS"
1463fi
1464
1465CXXFLAGS="$CFLAGS $CXXFLAGS"
1466
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001467ac_ext=c
1468ac_cpp='$CPP $CPPFLAGS'
1469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1471ac_compiler_gnu=$ac_cv_c_compiler_gnu
1472if test -n "$ac_tool_prefix"; then
1473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1474set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijonoe2746132008-09-27 13:16:35 +00001475echo "$as_me:$LINENO: checking for $ac_word" >&5
1476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001477if test "${ac_cv_prog_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1479else
1480 if test -n "$CC"; then
1481 ac_cv_prog_CC="$CC" # Let the user override the test.
1482else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484for as_dir in $PATH
1485do
1486 IFS=$as_save_IFS
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijonoe2746132008-09-27 13:16:35 +00001489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492 break 2
1493 fi
1494done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001495done
1496
1497fi
1498fi
1499CC=$ac_cv_prog_CC
1500if test -n "$CC"; then
Benny Prijonoe2746132008-09-27 13:16:35 +00001501 echo "$as_me:$LINENO: result: $CC" >&5
1502echo "${ECHO_T}$CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001503else
Benny Prijonoe2746132008-09-27 13:16:35 +00001504 echo "$as_me:$LINENO: result: no" >&5
1505echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001506fi
1507
1508fi
1509if test -z "$ac_cv_prog_CC"; then
1510 ac_ct_CC=$CC
1511 # Extract the first word of "gcc", so it can be a program name with args.
1512set dummy gcc; ac_word=$2
Benny Prijonoe2746132008-09-27 13:16:35 +00001513echo "$as_me:$LINENO: checking for $ac_word" >&5
1514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001515if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1517else
1518 if test -n "$ac_ct_CC"; then
1519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1520else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522for as_dir in $PATH
1523do
1524 IFS=$as_save_IFS
1525 test -z "$as_dir" && as_dir=.
1526 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijonoe2746132008-09-27 13:16:35 +00001527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001528 ac_cv_prog_ac_ct_CC="gcc"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530 break 2
1531 fi
1532done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001533done
1534
1535fi
1536fi
1537ac_ct_CC=$ac_cv_prog_ac_ct_CC
1538if test -n "$ac_ct_CC"; then
Benny Prijonoe2746132008-09-27 13:16:35 +00001539 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1540echo "${ECHO_T}$ac_ct_CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001541else
Benny Prijonoe2746132008-09-27 13:16:35 +00001542 echo "$as_me:$LINENO: result: no" >&5
1543echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001544fi
1545
Benny Prijonoe2746132008-09-27 13:16:35 +00001546 CC=$ac_ct_CC
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001547else
1548 CC="$ac_cv_prog_CC"
1549fi
1550
1551if test -z "$CC"; then
Benny Prijonoe2746132008-09-27 13:16:35 +00001552 if test -n "$ac_tool_prefix"; then
1553 # 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 +00001554set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijonoe2746132008-09-27 13:16:35 +00001555echo "$as_me:$LINENO: checking for $ac_word" >&5
1556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001557if test "${ac_cv_prog_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559else
1560 if test -n "$CC"; then
1561 ac_cv_prog_CC="$CC" # Let the user override the test.
1562else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564for as_dir in $PATH
1565do
1566 IFS=$as_save_IFS
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijonoe2746132008-09-27 13:16:35 +00001569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001570 ac_cv_prog_CC="${ac_tool_prefix}cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 break 2
1573 fi
1574done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001575done
1576
1577fi
1578fi
1579CC=$ac_cv_prog_CC
1580if test -n "$CC"; then
Benny Prijonoe2746132008-09-27 13:16:35 +00001581 echo "$as_me:$LINENO: result: $CC" >&5
1582echo "${ECHO_T}$CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001583else
Benny Prijonoe2746132008-09-27 13:16:35 +00001584 echo "$as_me:$LINENO: result: no" >&5
1585echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001586fi
1587
Benny Prijonoe2746132008-09-27 13:16:35 +00001588fi
1589if test -z "$ac_cv_prog_CC"; then
1590 ac_ct_CC=$CC
1591 # Extract the first word of "cc", so it can be a program name with args.
1592set dummy cc; ac_word=$2
1593echo "$as_me:$LINENO: checking for $ac_word" >&5
1594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1597else
1598 if test -n "$ac_ct_CC"; then
1599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1600else
1601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602for as_dir in $PATH
1603do
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608 ac_cv_prog_ac_ct_CC="cc"
1609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610 break 2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001611 fi
Benny Prijonoe2746132008-09-27 13:16:35 +00001612done
1613done
1614
1615fi
1616fi
1617ac_ct_CC=$ac_cv_prog_ac_ct_CC
1618if test -n "$ac_ct_CC"; then
1619 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1620echo "${ECHO_T}$ac_ct_CC" >&6
1621else
1622 echo "$as_me:$LINENO: result: no" >&5
1623echo "${ECHO_T}no" >&6
1624fi
1625
1626 CC=$ac_ct_CC
1627else
1628 CC="$ac_cv_prog_CC"
1629fi
1630
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001631fi
1632if test -z "$CC"; then
1633 # Extract the first word of "cc", so it can be a program name with args.
1634set dummy cc; ac_word=$2
Benny Prijonoe2746132008-09-27 13:16:35 +00001635echo "$as_me:$LINENO: checking for $ac_word" >&5
1636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001637if test "${ac_cv_prog_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1639else
1640 if test -n "$CC"; then
1641 ac_cv_prog_CC="$CC" # Let the user override the test.
1642else
1643 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645for as_dir in $PATH
1646do
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijonoe2746132008-09-27 13:16:35 +00001650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1652 ac_prog_rejected=yes
1653 continue
1654 fi
1655 ac_cv_prog_CC="cc"
1656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657 break 2
1658 fi
1659done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001660done
1661
1662if test $ac_prog_rejected = yes; then
1663 # We found a bogon in the path, so make sure we never use it.
1664 set dummy $ac_cv_prog_CC
1665 shift
1666 if test $# != 0; then
1667 # We chose a different compiler from the bogus one.
1668 # However, it has the same basename, so the bogon will be chosen
1669 # first if we set CC to just the basename; use the full file name.
1670 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001672 fi
1673fi
1674fi
1675fi
1676CC=$ac_cv_prog_CC
1677if test -n "$CC"; then
Benny Prijonoe2746132008-09-27 13:16:35 +00001678 echo "$as_me:$LINENO: result: $CC" >&5
1679echo "${ECHO_T}$CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001680else
Benny Prijonoe2746132008-09-27 13:16:35 +00001681 echo "$as_me:$LINENO: result: no" >&5
1682echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001683fi
1684
1685fi
1686if test -z "$CC"; then
1687 if test -n "$ac_tool_prefix"; then
Benny Prijonoe2746132008-09-27 13:16:35 +00001688 for ac_prog in cl
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001689 do
1690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1691set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijonoe2746132008-09-27 13:16:35 +00001692echo "$as_me:$LINENO: checking for $ac_word" >&5
1693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001694if test "${ac_cv_prog_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1696else
1697 if test -n "$CC"; then
1698 ac_cv_prog_CC="$CC" # Let the user override the test.
1699else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701for as_dir in $PATH
1702do
1703 IFS=$as_save_IFS
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijonoe2746132008-09-27 13:16:35 +00001706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709 break 2
1710 fi
1711done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001712done
1713
1714fi
1715fi
1716CC=$ac_cv_prog_CC
1717if test -n "$CC"; then
Benny Prijonoe2746132008-09-27 13:16:35 +00001718 echo "$as_me:$LINENO: result: $CC" >&5
1719echo "${ECHO_T}$CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001720else
Benny Prijonoe2746132008-09-27 13:16:35 +00001721 echo "$as_me:$LINENO: result: no" >&5
1722echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001723fi
1724
1725 test -n "$CC" && break
1726 done
1727fi
1728if test -z "$CC"; then
1729 ac_ct_CC=$CC
Benny Prijonoe2746132008-09-27 13:16:35 +00001730 for ac_prog in cl
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001731do
1732 # Extract the first word of "$ac_prog", so it can be a program name with args.
1733set dummy $ac_prog; ac_word=$2
Benny Prijonoe2746132008-09-27 13:16:35 +00001734echo "$as_me:$LINENO: checking for $ac_word" >&5
1735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001736if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1738else
1739 if test -n "$ac_ct_CC"; then
1740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743for as_dir in $PATH
1744do
1745 IFS=$as_save_IFS
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijonoe2746132008-09-27 13:16:35 +00001748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001749 ac_cv_prog_ac_ct_CC="$ac_prog"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751 break 2
1752 fi
1753done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001754done
1755
1756fi
1757fi
1758ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759if test -n "$ac_ct_CC"; then
Benny Prijonoe2746132008-09-27 13:16:35 +00001760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761echo "${ECHO_T}$ac_ct_CC" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001762else
Benny Prijonoe2746132008-09-27 13:16:35 +00001763 echo "$as_me:$LINENO: result: no" >&5
1764echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001765fi
1766
1767 test -n "$ac_ct_CC" && break
1768done
1769
Benny Prijonoe2746132008-09-27 13:16:35 +00001770 CC=$ac_ct_CC
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001771fi
1772
1773fi
1774
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001775
1776test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1777See \`config.log' for more details." >&5
1778echo "$as_me: error: no acceptable C compiler found in \$PATH
1779See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001780 { (exit 1); exit 1; }; }
1781
1782# Provide some information about the compiler.
Benny Prijonoe2746132008-09-27 13:16:35 +00001783echo "$as_me:$LINENO:" \
1784 "checking for C compiler version" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001785ac_compiler=`set X $ac_compile; echo $2`
Benny Prijonoe2746132008-09-27 13:16:35 +00001786{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1787 (eval $ac_compiler --version </dev/null >&5) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001788 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001790 (exit $ac_status); }
Benny Prijonoe2746132008-09-27 13:16:35 +00001791{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1792 (eval $ac_compiler -v </dev/null >&5) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001793 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001795 (exit $ac_status); }
Benny Prijonoe2746132008-09-27 13:16:35 +00001796{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1797 (eval $ac_compiler -V </dev/null >&5) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001798 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001800 (exit $ac_status); }
1801
1802cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001803/* confdefs.h. */
1804_ACEOF
1805cat confdefs.h >>conftest.$ac_ext
1806cat >>conftest.$ac_ext <<_ACEOF
1807/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001808
1809int
1810main ()
1811{
1812
1813 ;
1814 return 0;
1815}
1816_ACEOF
1817ac_clean_files_save=$ac_clean_files
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001818ac_clean_files="$ac_clean_files a.out a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001819# Try to create an executable without -o first, disregard a.out.
1820# It will help us diagnose broken compilers, and finding out an intuition
1821# of exeext.
Benny Prijonoe2746132008-09-27 13:16:35 +00001822echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1823echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001824ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Benny Prijonoe2746132008-09-27 13:16:35 +00001825if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1826 (eval $ac_link_default) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001827 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001829 (exit $ac_status); }; then
Benny Prijonoe2746132008-09-27 13:16:35 +00001830 # Find the output, starting from the most likely. This scheme is
1831# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1832# resort.
1833
1834# Be careful to initialize this variable, since it used to be cached.
1835# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1836ac_cv_exeext=
1837# b.out is created by i960 compilers.
1838for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001839do
1840 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001841 case $ac_file in
Benny Prijonoe2746132008-09-27 13:16:35 +00001842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1843 ;;
1844 conftest.$ac_ext )
1845 # This is the source file.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001846 ;;
1847 [ab].out )
1848 # We found the default executable, but exeext='' is most
1849 # certainly right.
1850 break;;
1851 *.* )
Benny Prijonoe2746132008-09-27 13:16:35 +00001852 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1853 # FIXME: I believe we export ac_cv_exeext for Libtool,
1854 # but it would be cool to find out if it's true. Does anybody
1855 # maintain Libtool? --akim.
1856 export ac_cv_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001857 break;;
1858 * )
1859 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001860 esac
1861done
1862else
1863 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001864sed 's/^/| /' conftest.$ac_ext >&5
1865
1866{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1867See \`config.log' for more details." >&5
1868echo "$as_me: error: C compiler cannot create executables
1869See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001870 { (exit 77); exit 77; }; }
1871fi
1872
1873ac_exeext=$ac_cv_exeext
Benny Prijonoe2746132008-09-27 13:16:35 +00001874echo "$as_me:$LINENO: result: $ac_file" >&5
1875echo "${ECHO_T}$ac_file" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001876
Benny Prijonoe2746132008-09-27 13:16:35 +00001877# Check the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001878# the compiler is broken, or we cross compile.
Benny Prijonoe2746132008-09-27 13:16:35 +00001879echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1880echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001881# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1882# If not cross compiling, check that we can run a simple program.
1883if test "$cross_compiling" != yes; then
1884 if { ac_try='./$ac_file'
Benny Prijonoe2746132008-09-27 13:16:35 +00001885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886 (eval $ac_try) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001887 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001889 (exit $ac_status); }; }; then
1890 cross_compiling=no
1891 else
1892 if test "$cross_compiling" = maybe; then
1893 cross_compiling=yes
1894 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001895 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1896If you meant to cross compile, use \`--host'.
1897See \`config.log' for more details." >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001898echo "$as_me: error: cannot run C compiled programs.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001899If you meant to cross compile, use \`--host'.
1900See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001901 { (exit 1); exit 1; }; }
1902 fi
1903 fi
1904fi
Benny Prijonoe2746132008-09-27 13:16:35 +00001905echo "$as_me:$LINENO: result: yes" >&5
1906echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001907
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001908rm -f a.out a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001909ac_clean_files=$ac_clean_files_save
Benny Prijonoe2746132008-09-27 13:16:35 +00001910# Check the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001911# the compiler is broken, or we cross compile.
Benny Prijonoe2746132008-09-27 13:16:35 +00001912echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1913echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1914echo "$as_me:$LINENO: result: $cross_compiling" >&5
1915echo "${ECHO_T}$cross_compiling" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001916
Benny Prijonoe2746132008-09-27 13:16:35 +00001917echo "$as_me:$LINENO: checking for suffix of executables" >&5
1918echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1920 (eval $ac_link) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001921 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001923 (exit $ac_status); }; then
1924 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1925# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1926# work properly (i.e., refer to `conftest.exe'), while it won't with
1927# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001928for ac_file in conftest.exe conftest conftest.*; do
1929 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001930 case $ac_file in
Benny Prijonoe2746132008-09-27 13:16:35 +00001931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijonoe2746132008-09-27 13:16:35 +00001933 export ac_cv_exeext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001934 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001935 * ) break;;
1936 esac
1937done
1938else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001939 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1940See \`config.log' for more details." >&5
1941echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1942See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001943 { (exit 1); exit 1; }; }
1944fi
1945
1946rm -f conftest$ac_cv_exeext
Benny Prijonoe2746132008-09-27 13:16:35 +00001947echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1948echo "${ECHO_T}$ac_cv_exeext" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001949
1950rm -f conftest.$ac_ext
1951EXEEXT=$ac_cv_exeext
1952ac_exeext=$EXEEXT
Benny Prijonoe2746132008-09-27 13:16:35 +00001953echo "$as_me:$LINENO: checking for suffix of object files" >&5
1954echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001955if test "${ac_cv_objext+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1957else
1958 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001959/* confdefs.h. */
1960_ACEOF
1961cat confdefs.h >>conftest.$ac_ext
1962cat >>conftest.$ac_ext <<_ACEOF
1963/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001964
1965int
1966main ()
1967{
1968
1969 ;
1970 return 0;
1971}
1972_ACEOF
1973rm -f conftest.o conftest.obj
Benny Prijonoe2746132008-09-27 13:16:35 +00001974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1975 (eval $ac_compile) 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001976 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001978 (exit $ac_status); }; then
Benny Prijonoe2746132008-09-27 13:16:35 +00001979 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001980 case $ac_file in
Benny Prijonoe2746132008-09-27 13:16:35 +00001981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001982 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1983 break;;
1984 esac
1985done
1986else
1987 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001988sed 's/^/| /' conftest.$ac_ext >&5
1989
1990{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1991See \`config.log' for more details." >&5
1992echo "$as_me: error: cannot compute suffix of object files: cannot compile
1993See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001994 { (exit 1); exit 1; }; }
1995fi
1996
1997rm -f conftest.$ac_cv_objext conftest.$ac_ext
1998fi
Benny Prijonoe2746132008-09-27 13:16:35 +00001999echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2000echo "${ECHO_T}$ac_cv_objext" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002001OBJEXT=$ac_cv_objext
2002ac_objext=$OBJEXT
Benny Prijonoe2746132008-09-27 13:16:35 +00002003echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2004echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002005if test "${ac_cv_c_compiler_gnu+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2007else
2008 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002009/* confdefs.h. */
2010_ACEOF
2011cat confdefs.h >>conftest.$ac_ext
2012cat >>conftest.$ac_ext <<_ACEOF
2013/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002014
2015int
2016main ()
2017{
2018#ifndef __GNUC__
2019 choke me
2020#endif
2021
2022 ;
2023 return 0;
2024}
2025_ACEOF
2026rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00002027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002029 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002030 grep -v '^ *+' conftest.er1 >conftest.err
2031 rm -f conftest.er1
2032 cat conftest.err >&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00002034 (exit $ac_status); } &&
2035 { ac_try='test -z "$ac_c_werror_flag"
2036 || test ! -s conftest.err'
2037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038 (eval $ac_try) 2>&5
2039 ac_status=$?
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; } &&
2042 { ac_try='test -s conftest.$ac_objext'
2043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2044 (eval $ac_try) 2>&5
2045 ac_status=$?
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); }; }; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002048 ac_compiler_gnu=yes
2049else
2050 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002051sed 's/^/| /' conftest.$ac_ext >&5
2052
Benny Prijonoe2746132008-09-27 13:16:35 +00002053ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002054fi
Benny Prijonoe2746132008-09-27 13:16:35 +00002055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002056ac_cv_c_compiler_gnu=$ac_compiler_gnu
2057
2058fi
Benny Prijonoe2746132008-09-27 13:16:35 +00002059echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2060echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002061GCC=`test $ac_compiler_gnu = yes && echo yes`
2062ac_test_CFLAGS=${CFLAGS+set}
2063ac_save_CFLAGS=$CFLAGS
Benny Prijonoe2746132008-09-27 13:16:35 +00002064CFLAGS="-g"
2065echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2066echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002067if test "${ac_cv_prog_cc_g+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2069else
Benny Prijonoe2746132008-09-27 13:16:35 +00002070 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002071/* confdefs.h. */
2072_ACEOF
2073cat confdefs.h >>conftest.$ac_ext
2074cat >>conftest.$ac_ext <<_ACEOF
2075/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002076
2077int
2078main ()
2079{
2080
2081 ;
2082 return 0;
2083}
2084_ACEOF
2085rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00002086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2087 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002088 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002089 grep -v '^ *+' conftest.er1 >conftest.err
2090 rm -f conftest.er1
2091 cat conftest.err >&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00002093 (exit $ac_status); } &&
2094 { ac_try='test -z "$ac_c_werror_flag"
2095 || test ! -s conftest.err'
2096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097 (eval $ac_try) 2>&5
2098 ac_status=$?
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }; } &&
2101 { ac_try='test -s conftest.$ac_objext'
2102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103 (eval $ac_try) 2>&5
2104 ac_status=$?
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }; }; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002107 ac_cv_prog_cc_g=yes
2108else
2109 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002110sed 's/^/| /' conftest.$ac_ext >&5
2111
Benny Prijonoe2746132008-09-27 13:16:35 +00002112ac_cv_prog_cc_g=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002113fi
Benny Prijonoe2746132008-09-27 13:16:35 +00002114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002115fi
Benny Prijonoe2746132008-09-27 13:16:35 +00002116echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2117echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002118if test "$ac_test_CFLAGS" = set; then
2119 CFLAGS=$ac_save_CFLAGS
2120elif test $ac_cv_prog_cc_g = yes; then
2121 if test "$GCC" = yes; then
2122 CFLAGS="-g -O2"
2123 else
2124 CFLAGS="-g"
2125 fi
2126else
2127 if test "$GCC" = yes; then
2128 CFLAGS="-O2"
2129 else
2130 CFLAGS=
2131 fi
2132fi
Benny Prijonoe2746132008-09-27 13:16:35 +00002133echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2134echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2135if test "${ac_cv_prog_cc_stdc+set}" = set; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137else
Benny Prijonoe2746132008-09-27 13:16:35 +00002138 ac_cv_prog_cc_stdc=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002139ac_save_CC=$CC
2140cat >conftest.$ac_ext <<_ACEOF
2141/* confdefs.h. */
2142_ACEOF
2143cat confdefs.h >>conftest.$ac_ext
2144cat >>conftest.$ac_ext <<_ACEOF
2145/* end confdefs.h. */
2146#include <stdarg.h>
2147#include <stdio.h>
2148#include <sys/types.h>
2149#include <sys/stat.h>
2150/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2151struct buf { int x; };
2152FILE * (*rcsopen) (struct buf *, struct stat *, int);
2153static char *e (p, i)
2154 char **p;
2155 int i;
2156{
2157 return p[i];
2158}
2159static char *f (char * (*g) (char **, int), char **p, ...)
2160{
2161 char *s;
2162 va_list v;
2163 va_start (v,p);
2164 s = g (p, va_arg (v,int));
2165 va_end (v);
2166 return s;
2167}
2168
2169/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2170 function prototypes and stuff, but not '\xHH' hex character constants.
2171 These don't provoke an error unfortunately, instead are silently treated
Benny Prijonoe2746132008-09-27 13:16:35 +00002172 as 'x'. The following induces an error, until -std1 is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002173 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2174 array size at least. It's necessary to write '\x00'==0 to get something
Benny Prijonoe2746132008-09-27 13:16:35 +00002175 that's true only with -std1. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002176int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2177
2178int test (int i, double x);
2179struct s1 {int (*f) (int a);};
2180struct s2 {int (*f) (double a);};
2181int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2182int argc;
2183char **argv;
2184int
2185main ()
2186{
2187return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2188 ;
2189 return 0;
2190}
2191_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00002192# Don't try gcc -ansi; that turns off useful extensions and
2193# breaks some systems' header files.
2194# AIX -qlanglvl=ansi
2195# Ultrix and OSF/1 -std1
2196# HP-UX 10.20 and later -Ae
2197# HP-UX older versions -Aa -D_HPUX_SOURCE
2198# SVR4 -Xc -D__EXTENSIONS__
2199for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002200do
2201 CC="$ac_save_CC $ac_arg"
2202 rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00002203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2204 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002205 ac_status=$?
2206 grep -v '^ *+' conftest.er1 >conftest.err
2207 rm -f conftest.er1
2208 cat conftest.err >&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00002210 (exit $ac_status); } &&
2211 { ac_try='test -z "$ac_c_werror_flag"
2212 || test ! -s conftest.err'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 (eval $ac_try) 2>&5
2215 ac_status=$?
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; } &&
2218 { ac_try='test -s conftest.$ac_objext'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 (eval $ac_try) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; }; then
2224 ac_cv_prog_cc_stdc=$ac_arg
2225break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002226else
2227 echo "$as_me: failed program was:" >&5
2228sed 's/^/| /' conftest.$ac_ext >&5
2229
2230fi
Benny Prijonoe2746132008-09-27 13:16:35 +00002231rm -f conftest.err conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002232done
Benny Prijonoe2746132008-09-27 13:16:35 +00002233rm -f conftest.$ac_ext conftest.$ac_objext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002234CC=$ac_save_CC
2235
2236fi
Benny Prijonoe2746132008-09-27 13:16:35 +00002237
2238case "x$ac_cv_prog_cc_stdc" in
2239 x|xno)
2240 echo "$as_me:$LINENO: result: none needed" >&5
2241echo "${ECHO_T}none needed" >&6 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002242 *)
Benny Prijonoe2746132008-09-27 13:16:35 +00002243 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2244echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2245 CC="$CC $ac_cv_prog_cc_stdc" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002246esac
2247
Benny Prijonoe2746132008-09-27 13:16:35 +00002248# Some people use a C++ compiler to compile C. Since we use `exit',
2249# in C++ we need to declare it. In case someone uses the same compiler
2250# for both compiling C and C++ we need to have the C++ compiler decide
2251# the declaration of exit, since it's the most demanding environment.
2252cat >conftest.$ac_ext <<_ACEOF
2253#ifndef __cplusplus
2254 choke me
2255#endif
2256_ACEOF
2257rm -f conftest.$ac_objext
2258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259 (eval $ac_compile) 2>conftest.er1
2260 ac_status=$?
2261 grep -v '^ *+' conftest.er1 >conftest.err
2262 rm -f conftest.er1
2263 cat conftest.err >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); } &&
2266 { ac_try='test -z "$ac_c_werror_flag"
2267 || test ! -s conftest.err'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 (eval $ac_try) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; } &&
2273 { ac_try='test -s conftest.$ac_objext'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 (eval $ac_try) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2279 for ac_declaration in \
2280 '' \
2281 'extern "C" void std::exit (int) throw (); using std::exit;' \
2282 'extern "C" void std::exit (int); using std::exit;' \
2283 'extern "C" void exit (int) throw ();' \
2284 'extern "C" void exit (int);' \
2285 'void exit (int);'
2286do
2287 cat >conftest.$ac_ext <<_ACEOF
2288/* confdefs.h. */
2289_ACEOF
2290cat confdefs.h >>conftest.$ac_ext
2291cat >>conftest.$ac_ext <<_ACEOF
2292/* end confdefs.h. */
2293$ac_declaration
2294#include <stdlib.h>
2295int
2296main ()
2297{
2298exit (42);
2299 ;
2300 return 0;
2301}
2302_ACEOF
2303rm -f conftest.$ac_objext
2304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2305 (eval $ac_compile) 2>conftest.er1
2306 ac_status=$?
2307 grep -v '^ *+' conftest.er1 >conftest.err
2308 rm -f conftest.er1
2309 cat conftest.err >&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); } &&
2312 { ac_try='test -z "$ac_c_werror_flag"
2313 || test ! -s conftest.err'
2314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 (eval $ac_try) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; } &&
2319 { ac_try='test -s conftest.$ac_objext'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2325 :
2326else
2327 echo "$as_me: failed program was:" >&5
2328sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002329
Benny Prijonoe2746132008-09-27 13:16:35 +00002330continue
2331fi
2332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2333 cat >conftest.$ac_ext <<_ACEOF
2334/* confdefs.h. */
2335_ACEOF
2336cat confdefs.h >>conftest.$ac_ext
2337cat >>conftest.$ac_ext <<_ACEOF
2338/* end confdefs.h. */
2339$ac_declaration
2340int
2341main ()
2342{
2343exit (42);
2344 ;
2345 return 0;
2346}
2347_ACEOF
2348rm -f conftest.$ac_objext
2349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350 (eval $ac_compile) 2>conftest.er1
2351 ac_status=$?
2352 grep -v '^ *+' conftest.er1 >conftest.err
2353 rm -f conftest.er1
2354 cat conftest.err >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } &&
2357 { ac_try='test -z "$ac_c_werror_flag"
2358 || test ! -s conftest.err'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; } &&
2364 { ac_try='test -s conftest.$ac_objext'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2370 break
2371else
2372 echo "$as_me: failed program was:" >&5
2373sed 's/^/| /' conftest.$ac_ext >&5
2374
2375fi
2376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2377done
2378rm -f conftest*
2379if test -n "$ac_declaration"; then
2380 echo '#ifdef __cplusplus' >>confdefs.h
2381 echo $ac_declaration >>confdefs.h
2382 echo '#endif' >>confdefs.h
2383fi
2384
2385else
2386 echo "$as_me: failed program was:" >&5
2387sed 's/^/| /' conftest.$ac_ext >&5
2388
2389fi
2390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002391ac_ext=c
2392ac_cpp='$CPP $CPPFLAGS'
2393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396
Benny Prijonoe2746132008-09-27 13:16:35 +00002397ac_ext=cc
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002398ac_cpp='$CXXCPP $CPPFLAGS'
2399ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Benny Prijonoe2746132008-09-27 13:16:35 +00002402if test -n "$ac_tool_prefix"; then
2403 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 +00002404 do
2405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2406set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijonoe2746132008-09-27 13:16:35 +00002407echo "$as_me:$LINENO: checking for $ac_word" >&5
2408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002409if test "${ac_cv_prog_CXX+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2411else
2412 if test -n "$CXX"; then
2413 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2414else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416for as_dir in $PATH
2417do
2418 IFS=$as_save_IFS
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijonoe2746132008-09-27 13:16:35 +00002421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002422 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 break 2
2425 fi
2426done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002427done
2428
2429fi
2430fi
2431CXX=$ac_cv_prog_CXX
2432if test -n "$CXX"; then
Benny Prijonoe2746132008-09-27 13:16:35 +00002433 echo "$as_me:$LINENO: result: $CXX" >&5
2434echo "${ECHO_T}$CXX" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002435else
Benny Prijonoe2746132008-09-27 13:16:35 +00002436 echo "$as_me:$LINENO: result: no" >&5
2437echo "${ECHO_T}no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002438fi
2439
2440 test -n "$CXX" && break
2441 done
2442fi
2443if test -z "$CXX"; then
2444 ac_ct_CXX=$CXX
Benny Prijonoe2746132008-09-27 13:16:35 +00002445 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 +00002446do
2447 # Extract the first word of "$ac_prog", so it can be a program name with args.
2448set dummy $ac_prog; ac_word=$2
Benny Prijonoe2746132008-09-27 13:16:35 +00002449echo "$as_me:$LINENO: checking for $ac_word" >&5
2450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002451if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2453else
2454 if test -n "$ac_ct_CXX"; then
2455 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2456else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458for as_dir in $PATH
2459do
2460 IFS=$as_save_IFS
2461 test -z "$as_dir" && as_dir=.
2462 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijonoe2746132008-09-27 13:16:35 +00002463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002464 ac_cv_prog_ac_ct_CXX="$ac_prog"
2465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 break 2
2467 fi
2468done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002469done
2470
2471fi
2472fi
2473ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2474if test -n "$ac_ct_CXX"; then
Benny Prijonoe2746132008-09-27 13:16:35 +00002475 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2476echo "${ECHO_T}$ac_ct_CXX" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002477else
Benny Prijonoe2746132008-09-27 13:16:35 +00002478 echo "$as_me:$LINENO: result: no" >&5
2479echo "${ECHO_T}no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002480fi
2481
2482 test -n "$ac_ct_CXX" && break
2483done
Benny Prijonoe2746132008-09-27 13:16:35 +00002484test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002485
Benny Prijonoe2746132008-09-27 13:16:35 +00002486 CXX=$ac_ct_CXX
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002487fi
2488
Benny Prijonoe2746132008-09-27 13:16:35 +00002489
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002490# Provide some information about the compiler.
Benny Prijonoe2746132008-09-27 13:16:35 +00002491echo "$as_me:$LINENO:" \
2492 "checking for C++ compiler version" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002493ac_compiler=`set X $ac_compile; echo $2`
Benny Prijonoe2746132008-09-27 13:16:35 +00002494{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2495 (eval $ac_compiler --version </dev/null >&5) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002496 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002498 (exit $ac_status); }
Benny Prijonoe2746132008-09-27 13:16:35 +00002499{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2500 (eval $ac_compiler -v </dev/null >&5) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002501 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002503 (exit $ac_status); }
Benny Prijonoe2746132008-09-27 13:16:35 +00002504{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2505 (eval $ac_compiler -V </dev/null >&5) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002506 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002508 (exit $ac_status); }
2509
Benny Prijonoe2746132008-09-27 13:16:35 +00002510echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2511echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002512if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2514else
2515 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002516/* confdefs.h. */
2517_ACEOF
2518cat confdefs.h >>conftest.$ac_ext
2519cat >>conftest.$ac_ext <<_ACEOF
2520/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002521
2522int
2523main ()
2524{
2525#ifndef __GNUC__
2526 choke me
2527#endif
2528
2529 ;
2530 return 0;
2531}
2532_ACEOF
2533rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00002534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002536 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002537 grep -v '^ *+' conftest.er1 >conftest.err
2538 rm -f conftest.er1
2539 cat conftest.err >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00002541 (exit $ac_status); } &&
2542 { ac_try='test -z "$ac_cxx_werror_flag"
2543 || test ! -s conftest.err'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 (eval $ac_try) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; } &&
2549 { ac_try='test -s conftest.$ac_objext'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 (eval $ac_try) 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002555 ac_compiler_gnu=yes
2556else
2557 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002558sed 's/^/| /' conftest.$ac_ext >&5
2559
Benny Prijonoe2746132008-09-27 13:16:35 +00002560ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002561fi
Benny Prijonoe2746132008-09-27 13:16:35 +00002562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002563ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2564
2565fi
Benny Prijonoe2746132008-09-27 13:16:35 +00002566echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2567echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002568GXX=`test $ac_compiler_gnu = yes && echo yes`
2569ac_test_CXXFLAGS=${CXXFLAGS+set}
2570ac_save_CXXFLAGS=$CXXFLAGS
Benny Prijonoe2746132008-09-27 13:16:35 +00002571CXXFLAGS="-g"
2572echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2573echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002574if test "${ac_cv_prog_cxx_g+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2576else
Benny Prijonoe2746132008-09-27 13:16:35 +00002577 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002578/* confdefs.h. */
2579_ACEOF
2580cat confdefs.h >>conftest.$ac_ext
2581cat >>conftest.$ac_ext <<_ACEOF
2582/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002583
2584int
2585main ()
2586{
2587
2588 ;
2589 return 0;
2590}
2591_ACEOF
2592rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00002593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2594 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002595 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002596 grep -v '^ *+' conftest.er1 >conftest.err
2597 rm -f conftest.er1
2598 cat conftest.err >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00002600 (exit $ac_status); } &&
2601 { ac_try='test -z "$ac_cxx_werror_flag"
2602 || test ! -s conftest.err'
2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 (eval $ac_try) 2>&5
2605 ac_status=$?
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; } &&
2608 { ac_try='test -s conftest.$ac_objext'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002614 ac_cv_prog_cxx_g=yes
2615else
2616 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002617sed 's/^/| /' conftest.$ac_ext >&5
2618
Benny Prijonoe2746132008-09-27 13:16:35 +00002619ac_cv_prog_cxx_g=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002620fi
Benny Prijonoe2746132008-09-27 13:16:35 +00002621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002622fi
Benny Prijonoe2746132008-09-27 13:16:35 +00002623echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2624echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002625if test "$ac_test_CXXFLAGS" = set; then
2626 CXXFLAGS=$ac_save_CXXFLAGS
2627elif test $ac_cv_prog_cxx_g = yes; then
2628 if test "$GXX" = yes; then
2629 CXXFLAGS="-g -O2"
2630 else
2631 CXXFLAGS="-g"
2632 fi
2633else
2634 if test "$GXX" = yes; then
2635 CXXFLAGS="-O2"
2636 else
2637 CXXFLAGS=
2638 fi
2639fi
Benny Prijonoe2746132008-09-27 13:16:35 +00002640for ac_declaration in \
2641 '' \
2642 'extern "C" void std::exit (int) throw (); using std::exit;' \
2643 'extern "C" void std::exit (int); using std::exit;' \
2644 'extern "C" void exit (int) throw ();' \
2645 'extern "C" void exit (int);' \
2646 'void exit (int);'
2647do
2648 cat >conftest.$ac_ext <<_ACEOF
2649/* confdefs.h. */
2650_ACEOF
2651cat confdefs.h >>conftest.$ac_ext
2652cat >>conftest.$ac_ext <<_ACEOF
2653/* end confdefs.h. */
2654$ac_declaration
2655#include <stdlib.h>
2656int
2657main ()
2658{
2659exit (42);
2660 ;
2661 return 0;
2662}
2663_ACEOF
2664rm -f conftest.$ac_objext
2665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2666 (eval $ac_compile) 2>conftest.er1
2667 ac_status=$?
2668 grep -v '^ *+' conftest.er1 >conftest.err
2669 rm -f conftest.er1
2670 cat conftest.err >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); } &&
2673 { ac_try='test -z "$ac_cxx_werror_flag"
2674 || test ! -s conftest.err'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 (eval $ac_try) 2>&5
2677 ac_status=$?
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; } &&
2680 { ac_try='test -s conftest.$ac_objext'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 (eval $ac_try) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; }; then
2686 :
2687else
2688 echo "$as_me: failed program was:" >&5
2689sed 's/^/| /' conftest.$ac_ext >&5
2690
2691continue
2692fi
2693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2694 cat >conftest.$ac_ext <<_ACEOF
2695/* confdefs.h. */
2696_ACEOF
2697cat confdefs.h >>conftest.$ac_ext
2698cat >>conftest.$ac_ext <<_ACEOF
2699/* end confdefs.h. */
2700$ac_declaration
2701int
2702main ()
2703{
2704exit (42);
2705 ;
2706 return 0;
2707}
2708_ACEOF
2709rm -f conftest.$ac_objext
2710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2711 (eval $ac_compile) 2>conftest.er1
2712 ac_status=$?
2713 grep -v '^ *+' conftest.er1 >conftest.err
2714 rm -f conftest.er1
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_cxx_werror_flag"
2719 || test ! -s conftest.err'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 (eval $ac_try) 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; } &&
2725 { ac_try='test -s conftest.$ac_objext'
2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727 (eval $ac_try) 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; }; then
2731 break
2732else
2733 echo "$as_me: failed program was:" >&5
2734sed 's/^/| /' conftest.$ac_ext >&5
2735
2736fi
2737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738done
2739rm -f conftest*
2740if test -n "$ac_declaration"; then
2741 echo '#ifdef __cplusplus' >>confdefs.h
2742 echo $ac_declaration >>confdefs.h
2743 echo '#endif' >>confdefs.h
2744fi
2745
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002746ac_ext=c
2747ac_cpp='$CPP $CPPFLAGS'
2748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002752ac_ext=c
2753ac_cpp='$CPP $CPPFLAGS'
2754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756ac_compiler_gnu=$ac_cv_c_compiler_gnu
2757
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002758
2759
Benny Prijono0822c192008-08-21 20:59:58 +00002760
Benny Prijono53847a32007-09-24 16:10:13 +00002761case $target in
2762 *mingw* | *cygw* | *win32* | *w32* )
2763 ac_pjdir=`pwd -W`
2764 ;;
2765 *)
2766 ac_pjdir=`pwd`
2767 ;;
2768esac
Benny Prijono12483112007-03-12 10:44:38 +00002769
2770
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002771
Benny Prijonoe2746132008-09-27 13:16:35 +00002772echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2773echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002774if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776else
2777 ac_check_lib_save_LIBS=$LIBS
2778LIBS="-lpthread $LIBS"
2779cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002780/* confdefs.h. */
2781_ACEOF
2782cat confdefs.h >>conftest.$ac_ext
2783cat >>conftest.$ac_ext <<_ACEOF
2784/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002785
Benny Prijonoe2746132008-09-27 13:16:35 +00002786/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002787#ifdef __cplusplus
2788extern "C"
2789#endif
Benny Prijonoe2746132008-09-27 13:16:35 +00002790/* We use char because int might match the return type of a gcc2
2791 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002792char pthread_create ();
2793int
2794main ()
2795{
Benny Prijonoe2746132008-09-27 13:16:35 +00002796pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002797 ;
2798 return 0;
2799}
2800_ACEOF
2801rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonoe2746132008-09-27 13:16:35 +00002802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2803 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002804 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002805 grep -v '^ *+' conftest.er1 >conftest.err
2806 rm -f conftest.er1
2807 cat conftest.err >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00002809 (exit $ac_status); } &&
2810 { ac_try='test -z "$ac_c_werror_flag"
2811 || test ! -s conftest.err'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 (eval $ac_try) 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; } &&
2817 { ac_try='test -s conftest$ac_exeext'
2818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 (eval $ac_try) 2>&5
2820 ac_status=$?
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002823 ac_cv_lib_pthread_pthread_create=yes
2824else
2825 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002826sed 's/^/| /' conftest.$ac_ext >&5
2827
Benny Prijonoe2746132008-09-27 13:16:35 +00002828ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002829fi
Benny Prijonoe2746132008-09-27 13:16:35 +00002830rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002831 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002832LIBS=$ac_check_lib_save_LIBS
2833fi
Benny Prijonoe2746132008-09-27 13:16:35 +00002834echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2835echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002836if test $ac_cv_lib_pthread_pthread_create = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002837 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002838#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002839_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002840
2841 LIBS="-lpthread $LIBS"
2842
2843fi
2844
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002845
Benny Prijonoe2746132008-09-27 13:16:35 +00002846echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5
2847echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002848if test "${ac_cv_lib_wsock32_puts+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2850else
2851 ac_check_lib_save_LIBS=$LIBS
2852LIBS="-lwsock32 $LIBS"
2853cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002854/* confdefs.h. */
2855_ACEOF
2856cat confdefs.h >>conftest.$ac_ext
2857cat >>conftest.$ac_ext <<_ACEOF
2858/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002859
Benny Prijonoe2746132008-09-27 13:16:35 +00002860/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002861#ifdef __cplusplus
2862extern "C"
2863#endif
Benny Prijonoe2746132008-09-27 13:16:35 +00002864/* We use char because int might match the return type of a gcc2
2865 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002866char puts ();
2867int
2868main ()
2869{
Benny Prijonoe2746132008-09-27 13:16:35 +00002870puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002871 ;
2872 return 0;
2873}
2874_ACEOF
2875rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonoe2746132008-09-27 13:16:35 +00002876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2877 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002878 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002879 grep -v '^ *+' conftest.er1 >conftest.err
2880 rm -f conftest.er1
2881 cat conftest.err >&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00002883 (exit $ac_status); } &&
2884 { ac_try='test -z "$ac_c_werror_flag"
2885 || test ! -s conftest.err'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 (eval $ac_try) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; } &&
2891 { ac_try='test -s conftest$ac_exeext'
2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 (eval $ac_try) 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002897 ac_cv_lib_wsock32_puts=yes
2898else
2899 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002900sed 's/^/| /' conftest.$ac_ext >&5
2901
Benny Prijonoe2746132008-09-27 13:16:35 +00002902ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002903fi
Benny Prijonoe2746132008-09-27 13:16:35 +00002904rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002905 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002906LIBS=$ac_check_lib_save_LIBS
2907fi
Benny Prijonoe2746132008-09-27 13:16:35 +00002908echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5
2909echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002910if test $ac_cv_lib_wsock32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002911 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002912#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002913_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002914
2915 LIBS="-lwsock32 $LIBS"
2916
2917fi
2918
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002919
Benny Prijonoe2746132008-09-27 13:16:35 +00002920echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5
2921echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002922if test "${ac_cv_lib_ws2_32_puts+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924else
2925 ac_check_lib_save_LIBS=$LIBS
2926LIBS="-lws2_32 $LIBS"
2927cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002928/* confdefs.h. */
2929_ACEOF
2930cat confdefs.h >>conftest.$ac_ext
2931cat >>conftest.$ac_ext <<_ACEOF
2932/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002933
Benny Prijonoe2746132008-09-27 13:16:35 +00002934/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002935#ifdef __cplusplus
2936extern "C"
2937#endif
Benny Prijonoe2746132008-09-27 13:16:35 +00002938/* We use char because int might match the return type of a gcc2
2939 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002940char puts ();
2941int
2942main ()
2943{
Benny Prijonoe2746132008-09-27 13:16:35 +00002944puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002945 ;
2946 return 0;
2947}
2948_ACEOF
2949rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonoe2746132008-09-27 13:16:35 +00002950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2951 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002952 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002953 grep -v '^ *+' conftest.er1 >conftest.err
2954 rm -f conftest.er1
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00002957 (exit $ac_status); } &&
2958 { ac_try='test -z "$ac_c_werror_flag"
2959 || test ! -s conftest.err'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 (eval $ac_try) 2>&5
2962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; } &&
2965 { ac_try='test -s conftest$ac_exeext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002971 ac_cv_lib_ws2_32_puts=yes
2972else
2973 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002974sed 's/^/| /' conftest.$ac_ext >&5
2975
Benny Prijonoe2746132008-09-27 13:16:35 +00002976ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002977fi
Benny Prijonoe2746132008-09-27 13:16:35 +00002978rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002979 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002980LIBS=$ac_check_lib_save_LIBS
2981fi
Benny Prijonoe2746132008-09-27 13:16:35 +00002982echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5
2983echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002984if test $ac_cv_lib_ws2_32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002985 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002986#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002987_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002988
2989 LIBS="-lws2_32 $LIBS"
2990
2991fi
2992
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002993
Benny Prijonoe2746132008-09-27 13:16:35 +00002994echo "$as_me:$LINENO: checking for puts in -lole32" >&5
2995echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00002996if test "${ac_cv_lib_ole32_puts+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2998else
2999 ac_check_lib_save_LIBS=$LIBS
3000LIBS="-lole32 $LIBS"
3001cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003002/* confdefs.h. */
3003_ACEOF
3004cat confdefs.h >>conftest.$ac_ext
3005cat >>conftest.$ac_ext <<_ACEOF
3006/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003007
Benny Prijonoe2746132008-09-27 13:16:35 +00003008/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003009#ifdef __cplusplus
3010extern "C"
3011#endif
Benny Prijonoe2746132008-09-27 13:16:35 +00003012/* We use char because int might match the return type of a gcc2
3013 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003014char puts ();
3015int
3016main ()
3017{
Benny Prijonoe2746132008-09-27 13:16:35 +00003018puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003019 ;
3020 return 0;
3021}
3022_ACEOF
3023rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonoe2746132008-09-27 13:16:35 +00003024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3025 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003026 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003027 grep -v '^ *+' conftest.er1 >conftest.err
3028 rm -f conftest.er1
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00003031 (exit $ac_status); } &&
3032 { ac_try='test -z "$ac_c_werror_flag"
3033 || test ! -s conftest.err'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 (eval $ac_try) 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; } &&
3039 { ac_try='test -s conftest$ac_exeext'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 (eval $ac_try) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003045 ac_cv_lib_ole32_puts=yes
3046else
3047 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003048sed 's/^/| /' conftest.$ac_ext >&5
3049
Benny Prijonoe2746132008-09-27 13:16:35 +00003050ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003051fi
Benny Prijonoe2746132008-09-27 13:16:35 +00003052rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003053 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003054LIBS=$ac_check_lib_save_LIBS
3055fi
Benny Prijonoe2746132008-09-27 13:16:35 +00003056echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5
3057echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003058if test $ac_cv_lib_ole32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003059 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003060#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003061_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003062
3063 LIBS="-lole32 $LIBS"
3064
3065fi
3066
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003067
Benny Prijonoe2746132008-09-27 13:16:35 +00003068echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5
3069echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003070if test "${ac_cv_lib_winmm_puts+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072else
3073 ac_check_lib_save_LIBS=$LIBS
3074LIBS="-lwinmm $LIBS"
3075cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003076/* confdefs.h. */
3077_ACEOF
3078cat confdefs.h >>conftest.$ac_ext
3079cat >>conftest.$ac_ext <<_ACEOF
3080/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003081
Benny Prijonoe2746132008-09-27 13:16:35 +00003082/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003083#ifdef __cplusplus
3084extern "C"
3085#endif
Benny Prijonoe2746132008-09-27 13:16:35 +00003086/* We use char because int might match the return type of a gcc2
3087 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003088char puts ();
3089int
3090main ()
3091{
Benny Prijonoe2746132008-09-27 13:16:35 +00003092puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003093 ;
3094 return 0;
3095}
3096_ACEOF
3097rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonoe2746132008-09-27 13:16:35 +00003098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3099 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003100 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00003105 (exit $ac_status); } &&
3106 { ac_try='test -z "$ac_c_werror_flag"
3107 || test ! -s conftest.err'
3108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 (eval $ac_try) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; } &&
3113 { ac_try='test -s conftest$ac_exeext'
3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115 (eval $ac_try) 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003119 ac_cv_lib_winmm_puts=yes
3120else
3121 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003122sed 's/^/| /' conftest.$ac_ext >&5
3123
Benny Prijonoe2746132008-09-27 13:16:35 +00003124ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003125fi
Benny Prijonoe2746132008-09-27 13:16:35 +00003126rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003127 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003128LIBS=$ac_check_lib_save_LIBS
3129fi
Benny Prijonoe2746132008-09-27 13:16:35 +00003130echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5
3131echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003132if test $ac_cv_lib_winmm_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003133 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003134#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003135_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003136
3137 LIBS="-lwinmm $LIBS"
3138
3139fi
3140
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003141
Benny Prijonoe2746132008-09-27 13:16:35 +00003142echo "$as_me:$LINENO: checking for puts in -lsocket" >&5
3143echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003144if test "${ac_cv_lib_socket_puts+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3146else
3147 ac_check_lib_save_LIBS=$LIBS
3148LIBS="-lsocket $LIBS"
3149cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003150/* confdefs.h. */
3151_ACEOF
3152cat confdefs.h >>conftest.$ac_ext
3153cat >>conftest.$ac_ext <<_ACEOF
3154/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003155
Benny Prijonoe2746132008-09-27 13:16:35 +00003156/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003157#ifdef __cplusplus
3158extern "C"
3159#endif
Benny Prijonoe2746132008-09-27 13:16:35 +00003160/* We use char because int might match the return type of a gcc2
3161 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003162char puts ();
3163int
3164main ()
3165{
Benny Prijonoe2746132008-09-27 13:16:35 +00003166puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003167 ;
3168 return 0;
3169}
3170_ACEOF
3171rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonoe2746132008-09-27 13:16:35 +00003172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3173 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003174 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003175 grep -v '^ *+' conftest.er1 >conftest.err
3176 rm -f conftest.er1
3177 cat conftest.err >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00003179 (exit $ac_status); } &&
3180 { ac_try='test -z "$ac_c_werror_flag"
3181 || test ! -s conftest.err'
3182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183 (eval $ac_try) 2>&5
3184 ac_status=$?
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; } &&
3187 { ac_try='test -s conftest$ac_exeext'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189 (eval $ac_try) 2>&5
3190 ac_status=$?
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003193 ac_cv_lib_socket_puts=yes
3194else
3195 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003196sed 's/^/| /' conftest.$ac_ext >&5
3197
Benny Prijonoe2746132008-09-27 13:16:35 +00003198ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003199fi
Benny Prijonoe2746132008-09-27 13:16:35 +00003200rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003201 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003202LIBS=$ac_check_lib_save_LIBS
3203fi
Benny Prijonoe2746132008-09-27 13:16:35 +00003204echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5
3205echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003206if test $ac_cv_lib_socket_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003207 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003208#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003209_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003210
3211 LIBS="-lsocket $LIBS"
3212
3213fi
3214
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003215
Benny Prijonoe2746132008-09-27 13:16:35 +00003216echo "$as_me:$LINENO: checking for puts in -lrt" >&5
3217echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003218if test "${ac_cv_lib_rt_puts+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220else
3221 ac_check_lib_save_LIBS=$LIBS
3222LIBS="-lrt $LIBS"
3223cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003224/* confdefs.h. */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
3228/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003229
Benny Prijonoe2746132008-09-27 13:16:35 +00003230/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003231#ifdef __cplusplus
3232extern "C"
3233#endif
Benny Prijonoe2746132008-09-27 13:16:35 +00003234/* We use char because int might match the return type of a gcc2
3235 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003236char puts ();
3237int
3238main ()
3239{
Benny Prijonoe2746132008-09-27 13:16:35 +00003240puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003241 ;
3242 return 0;
3243}
3244_ACEOF
3245rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonoe2746132008-09-27 13:16:35 +00003246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3247 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003248 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003249 grep -v '^ *+' conftest.er1 >conftest.err
3250 rm -f conftest.er1
3251 cat conftest.err >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00003253 (exit $ac_status); } &&
3254 { ac_try='test -z "$ac_c_werror_flag"
3255 || test ! -s conftest.err'
3256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257 (eval $ac_try) 2>&5
3258 ac_status=$?
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); }; } &&
3261 { ac_try='test -s conftest$ac_exeext'
3262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263 (eval $ac_try) 2>&5
3264 ac_status=$?
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003267 ac_cv_lib_rt_puts=yes
3268else
3269 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003270sed 's/^/| /' conftest.$ac_ext >&5
3271
Benny Prijonoe2746132008-09-27 13:16:35 +00003272ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003273fi
Benny Prijonoe2746132008-09-27 13:16:35 +00003274rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003275 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003276LIBS=$ac_check_lib_save_LIBS
3277fi
Benny Prijonoe2746132008-09-27 13:16:35 +00003278echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5
3279echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003280if test $ac_cv_lib_rt_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003281 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003282#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003283_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003284
3285 LIBS="-lrt $LIBS"
3286
3287fi
3288
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003289
Benny Prijonoe2746132008-09-27 13:16:35 +00003290echo "$as_me:$LINENO: checking for puts in -lnsl" >&5
3291echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003292if test "${ac_cv_lib_nsl_puts+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3294else
3295 ac_check_lib_save_LIBS=$LIBS
3296LIBS="-lnsl $LIBS"
3297cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003298/* confdefs.h. */
3299_ACEOF
3300cat confdefs.h >>conftest.$ac_ext
3301cat >>conftest.$ac_ext <<_ACEOF
3302/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003303
Benny Prijonoe2746132008-09-27 13:16:35 +00003304/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003305#ifdef __cplusplus
3306extern "C"
3307#endif
Benny Prijonoe2746132008-09-27 13:16:35 +00003308/* We use char because int might match the return type of a gcc2
3309 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003310char puts ();
3311int
3312main ()
3313{
Benny Prijonoe2746132008-09-27 13:16:35 +00003314puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003315 ;
3316 return 0;
3317}
3318_ACEOF
3319rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonoe2746132008-09-27 13:16:35 +00003320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3321 (eval $ac_link) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003322 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003323 grep -v '^ *+' conftest.er1 >conftest.err
3324 rm -f conftest.er1
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00003327 (exit $ac_status); } &&
3328 { ac_try='test -z "$ac_c_werror_flag"
3329 || test ! -s conftest.err'
3330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331 (eval $ac_try) 2>&5
3332 ac_status=$?
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; } &&
3335 { ac_try='test -s conftest$ac_exeext'
3336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337 (eval $ac_try) 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; }; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003341 ac_cv_lib_nsl_puts=yes
3342else
3343 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003344sed 's/^/| /' conftest.$ac_ext >&5
3345
Benny Prijonoe2746132008-09-27 13:16:35 +00003346ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003347fi
Benny Prijonoe2746132008-09-27 13:16:35 +00003348rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003349 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003350LIBS=$ac_check_lib_save_LIBS
3351fi
Benny Prijonoe2746132008-09-27 13:16:35 +00003352echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5
3353echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003354if test $ac_cv_lib_nsl_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003355 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003356#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003357_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003358
3359 LIBS="-lnsl $LIBS"
3360
3361fi
3362
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003363
Benny Prijonoe2746132008-09-27 13:16:35 +00003364echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3365echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003366if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3368else
3369 ac_check_lib_save_LIBS=$LIBS
3370LIBS="-luuid $LIBS"
3371cat >conftest.$ac_ext <<_ACEOF
3372/* confdefs.h. */
3373_ACEOF
3374cat confdefs.h >>conftest.$ac_ext
3375cat >>conftest.$ac_ext <<_ACEOF
3376/* end confdefs.h. */
3377
Benny Prijonoe2746132008-09-27 13:16:35 +00003378/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003379#ifdef __cplusplus
3380extern "C"
3381#endif
Benny Prijonoe2746132008-09-27 13:16:35 +00003382/* We use char because int might match the return type of a gcc2
3383 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003384char uuid_generate ();
3385int
3386main ()
3387{
Benny Prijonoe2746132008-09-27 13:16:35 +00003388uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003389 ;
3390 return 0;
3391}
3392_ACEOF
3393rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonoe2746132008-09-27 13:16:35 +00003394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3395 (eval $ac_link) 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00003396 ac_status=$?
3397 grep -v '^ *+' conftest.er1 >conftest.err
3398 rm -f conftest.er1
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00003401 (exit $ac_status); } &&
3402 { ac_try='test -z "$ac_c_werror_flag"
3403 || test ! -s conftest.err'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 (eval $ac_try) 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; } &&
3409 { ac_try='test -s conftest$ac_exeext'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003415 ac_cv_lib_uuid_uuid_generate=yes
3416else
3417 echo "$as_me: failed program was:" >&5
3418sed 's/^/| /' conftest.$ac_ext >&5
3419
Benny Prijonoe2746132008-09-27 13:16:35 +00003420ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003421fi
Benny Prijonoe2746132008-09-27 13:16:35 +00003422rm -f conftest.err conftest.$ac_objext \
Benny Prijono4e48b512007-05-16 13:41:00 +00003423 conftest$ac_exeext conftest.$ac_ext
3424LIBS=$ac_check_lib_save_LIBS
3425fi
Benny Prijonoe2746132008-09-27 13:16:35 +00003426echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3427echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003428if test $ac_cv_lib_uuid_uuid_generate = yes; then
3429 cat >>confdefs.h <<_ACEOF
3430#define HAVE_LIBUUID 1
3431_ACEOF
3432
3433 LIBS="-luuid $LIBS"
3434
3435fi
3436
Benny Prijonoe2746132008-09-27 13:16:35 +00003437echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3438echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003439if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442 ac_check_lib_save_LIBS=$LIBS
3443LIBS="-luuid $LIBS"
3444cat >conftest.$ac_ext <<_ACEOF
3445/* confdefs.h. */
3446_ACEOF
3447cat confdefs.h >>conftest.$ac_ext
3448cat >>conftest.$ac_ext <<_ACEOF
3449/* end confdefs.h. */
3450
Benny Prijonoe2746132008-09-27 13:16:35 +00003451/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003452#ifdef __cplusplus
3453extern "C"
3454#endif
Benny Prijonoe2746132008-09-27 13:16:35 +00003455/* We use char because int might match the return type of a gcc2
3456 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003457char uuid_generate ();
3458int
3459main ()
3460{
Benny Prijonoe2746132008-09-27 13:16:35 +00003461uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003462 ;
3463 return 0;
3464}
3465_ACEOF
3466rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonoe2746132008-09-27 13:16:35 +00003467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3468 (eval $ac_link) 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00003469 ac_status=$?
3470 grep -v '^ *+' conftest.er1 >conftest.err
3471 rm -f conftest.er1
3472 cat conftest.err >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00003474 (exit $ac_status); } &&
3475 { ac_try='test -z "$ac_c_werror_flag"
3476 || test ! -s conftest.err'
3477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 (eval $ac_try) 2>&5
3479 ac_status=$?
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }; } &&
3482 { ac_try='test -s conftest$ac_exeext'
3483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484 (eval $ac_try) 2>&5
3485 ac_status=$?
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }; }; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003488 ac_cv_lib_uuid_uuid_generate=yes
3489else
3490 echo "$as_me: failed program was:" >&5
3491sed 's/^/| /' conftest.$ac_ext >&5
3492
Benny Prijonoe2746132008-09-27 13:16:35 +00003493ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003494fi
Benny Prijonoe2746132008-09-27 13:16:35 +00003495rm -f conftest.err conftest.$ac_objext \
Benny Prijono4e48b512007-05-16 13:41:00 +00003496 conftest$ac_exeext conftest.$ac_ext
3497LIBS=$ac_check_lib_save_LIBS
3498fi
Benny Prijonoe2746132008-09-27 13:16:35 +00003499echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3500echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003501if test $ac_cv_lib_uuid_uuid_generate = yes; then
3502 ac_has_uuid_lib=1
3503fi
3504
3505
Benny Prijonoe2746132008-09-27 13:16:35 +00003506echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5
3507echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003508cat >>confdefs.h <<_ACEOF
3509#define PJ_M_NAME "$target_cpu"
3510_ACEOF
3511
3512
Benny Prijonoe2746132008-09-27 13:16:35 +00003513echo "$as_me:$LINENO: checking memory alignment" >&5
3514echo $ECHO_N "checking memory alignment... $ECHO_C" >&6
Benny Prijono1d971622006-09-10 22:27:40 +00003515case $target in
3516 ia64-* | x86_64-* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003517 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003518#define PJ_POOL_ALIGNMENT 8
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003519_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003520
Benny Prijonoe2746132008-09-27 13:16:35 +00003521 echo "$as_me:$LINENO: result: 8 bytes" >&5
3522echo "${ECHO_T}8 bytes" >&6
Benny Prijono1d971622006-09-10 22:27:40 +00003523 ;;
3524 * )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003525 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003526#define PJ_POOL_ALIGNMENT 4
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003527_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003528
Benny Prijonoe2746132008-09-27 13:16:35 +00003529 echo "$as_me:$LINENO: result: 4 bytes (default)" >&5
3530echo "${ECHO_T}4 bytes (default)" >&6
Benny Prijono1d971622006-09-10 22:27:40 +00003531 ;;
3532esac
3533
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003534
Benny Prijonoe2746132008-09-27 13:16:35 +00003535echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3536echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003537if test "${ac_cv_c_bigendian+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003540 # See if sys/param.h defines the BYTE_ORDER macro.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003541cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003542/* confdefs.h. */
3543_ACEOF
3544cat confdefs.h >>conftest.$ac_ext
3545cat >>conftest.$ac_ext <<_ACEOF
3546/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003547#include <sys/types.h>
3548#include <sys/param.h>
3549
3550int
3551main ()
3552{
Benny Prijonoe2746132008-09-27 13:16:35 +00003553#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003554 bogus endian macros
3555#endif
3556
3557 ;
3558 return 0;
3559}
3560_ACEOF
3561rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00003562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003564 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00003569 (exit $ac_status); } &&
3570 { ac_try='test -z "$ac_c_werror_flag"
3571 || test ! -s conftest.err'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 (eval $ac_try) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; } &&
3577 { ac_try='test -s conftest.$ac_objext'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003583 # It does; now see whether it defined to BIG_ENDIAN or not.
3584cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003585/* confdefs.h. */
3586_ACEOF
3587cat confdefs.h >>conftest.$ac_ext
3588cat >>conftest.$ac_ext <<_ACEOF
3589/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003590#include <sys/types.h>
3591#include <sys/param.h>
3592
3593int
3594main ()
3595{
3596#if BYTE_ORDER != BIG_ENDIAN
3597 not big endian
3598#endif
3599
3600 ;
3601 return 0;
3602}
3603_ACEOF
3604rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00003605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003607 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00003612 (exit $ac_status); } &&
3613 { ac_try='test -z "$ac_c_werror_flag"
3614 || test ! -s conftest.err'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; } &&
3620 { ac_try='test -s conftest.$ac_objext'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003626 ac_cv_c_bigendian=yes
3627else
3628 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003629sed 's/^/| /' conftest.$ac_ext >&5
3630
Benny Prijonoe2746132008-09-27 13:16:35 +00003631ac_cv_c_bigendian=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003632fi
Benny Prijonoe2746132008-09-27 13:16:35 +00003633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003634else
3635 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003636sed 's/^/| /' conftest.$ac_ext >&5
3637
Benny Prijonoe2746132008-09-27 13:16:35 +00003638# It does not; compile a test program.
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003639if test "$cross_compiling" = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003640 # try to guess the endianness by grepping values into an object file
3641 ac_cv_c_bigendian=unknown
3642 cat >conftest.$ac_ext <<_ACEOF
3643/* confdefs.h. */
3644_ACEOF
3645cat confdefs.h >>conftest.$ac_ext
3646cat >>conftest.$ac_ext <<_ACEOF
3647/* end confdefs.h. */
Benny Prijonoe2746132008-09-27 13:16:35 +00003648short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3649short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003650void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Benny Prijonoe2746132008-09-27 13:16:35 +00003651short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3652short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003653void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3654int
3655main ()
3656{
3657 _ascii (); _ebcdic ();
3658 ;
3659 return 0;
3660}
3661_ACEOF
3662rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00003663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3664 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003665 ac_status=$?
3666 grep -v '^ *+' conftest.er1 >conftest.err
3667 rm -f conftest.er1
3668 cat conftest.err >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00003670 (exit $ac_status); } &&
3671 { ac_try='test -z "$ac_c_werror_flag"
3672 || test ! -s conftest.err'
3673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 (eval $ac_try) 2>&5
3675 ac_status=$?
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; } &&
3678 { ac_try='test -s conftest.$ac_objext'
3679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 (eval $ac_try) 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003684 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3685 ac_cv_c_bigendian=yes
3686fi
3687if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3688 if test "$ac_cv_c_bigendian" = unknown; then
3689 ac_cv_c_bigendian=no
3690 else
3691 # finding both strings is unlikely to happen, but who knows?
3692 ac_cv_c_bigendian=unknown
3693 fi
3694fi
3695else
3696 echo "$as_me: failed program was:" >&5
3697sed 's/^/| /' conftest.$ac_ext >&5
3698
3699fi
Benny Prijonoe2746132008-09-27 13:16:35 +00003700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003701else
3702 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003703/* confdefs.h. */
3704_ACEOF
3705cat confdefs.h >>conftest.$ac_ext
3706cat >>conftest.$ac_ext <<_ACEOF
3707/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003708int
3709main ()
3710{
3711 /* Are we little or big endian? From Harbison&Steele. */
3712 union
3713 {
Benny Prijonoe2746132008-09-27 13:16:35 +00003714 long l;
3715 char c[sizeof (long)];
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003716 } u;
3717 u.l = 1;
Benny Prijonoe2746132008-09-27 13:16:35 +00003718 exit (u.c[sizeof (long) - 1] == 1);
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003719}
3720_ACEOF
3721rm -f conftest$ac_exeext
Benny Prijonoe2746132008-09-27 13:16:35 +00003722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3723 (eval $ac_link) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003724 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Benny Prijonoe2746132008-09-27 13:16:35 +00003727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 (eval $ac_try) 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003729 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003731 (exit $ac_status); }; }; then
3732 ac_cv_c_bigendian=no
3733else
3734 echo "$as_me: program exited with status $ac_status" >&5
3735echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003736sed 's/^/| /' conftest.$ac_ext >&5
3737
3738( exit $ac_status )
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003739ac_cv_c_bigendian=yes
3740fi
Benny Prijonoe2746132008-09-27 13:16:35 +00003741rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003742fi
3743fi
Benny Prijonoe2746132008-09-27 13:16:35 +00003744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003745fi
Benny Prijonoe2746132008-09-27 13:16:35 +00003746echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3747echo "${ECHO_T}$ac_cv_c_bigendian" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003748case $ac_cv_c_bigendian in
3749 yes)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003750
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003751cat >>confdefs.h <<\_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00003752#define WORDS_BIGENDIAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003753_ACEOF
3754 ;;
3755 no)
3756 ;;
3757 *)
3758 { { echo "$as_me:$LINENO: error: unknown endianness
3759presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3760echo "$as_me: error: unknown endianness
3761presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3762 { (exit 1); exit 1; }; } ;;
3763esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003764
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003765
3766case $target in
3767 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003768 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003769#define PJ_WIN32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003770_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003771
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003772 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003773#define PJ_WIN32_WINNT 0x0400
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003774_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003775
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003776 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003777#define WIN32_LEAN_AND_MEAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003778_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003779
3780 ;;
3781 *darwin*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003782 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003783#define PJ_DARWINOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003784_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003785
3786 ;;
3787 *linux*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003788 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003789#define PJ_LINUX 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003790_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003791
3792 ;;
3793 *rtems*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003794 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003795#define PJ_RTEMS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003796_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003797
3798 ;;
3799 *sunos* | *solaris* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003800 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003801#define PJ_SUNOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003802_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003803
3804 ;;
3805 *)
3806 ;;
3807esac
3808
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003809
3810
3811
Benny Prijonoe2746132008-09-27 13:16:35 +00003812# Check whether --enable-floating-point or --disable-floating-point was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003813if test "${enable_floating_point+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00003814 enableval="$enable_floating_point"
3815 if test "$enable_floating_point" = "no"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003816 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003817#define PJ_HAS_FLOATING_POINT 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003818_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003819
Benny Prijonoe2746132008-09-27 13:16:35 +00003820 echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5
3821echo "${ECHO_T}Checking if floating point is disabled... yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003822 fi
3823else
3824
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003825 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003826#define PJ_HAS_FLOATING_POINT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003827_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003828
Benny Prijonoe2746132008-09-27 13:16:35 +00003829 echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5
3830echo "${ECHO_T}Checking if floating point is disabled... no" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003831
Benny Prijonoe2746132008-09-27 13:16:35 +00003832echo "$as_me:$LINENO: checking for fmod in -lm" >&5
3833echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003834if test "${ac_cv_lib_m_fmod+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3836else
3837 ac_check_lib_save_LIBS=$LIBS
3838LIBS="-lm $LIBS"
3839cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003840/* confdefs.h. */
3841_ACEOF
3842cat confdefs.h >>conftest.$ac_ext
3843cat >>conftest.$ac_ext <<_ACEOF
3844/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003845
Benny Prijonoe2746132008-09-27 13:16:35 +00003846/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003847#ifdef __cplusplus
3848extern "C"
3849#endif
Benny Prijonoe2746132008-09-27 13:16:35 +00003850/* We use char because int might match the return type of a gcc2
3851 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003852char fmod ();
3853int
3854main ()
3855{
Benny Prijonoe2746132008-09-27 13:16:35 +00003856fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003857 ;
3858 return 0;
3859}
3860_ACEOF
3861rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonoe2746132008-09-27 13:16:35 +00003862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3863 (eval $ac_link) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003864 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00003869 (exit $ac_status); } &&
3870 { ac_try='test -z "$ac_c_werror_flag"
3871 || test ! -s conftest.err'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 (eval $ac_try) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; } &&
3877 { ac_try='test -s conftest$ac_exeext'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003883 ac_cv_lib_m_fmod=yes
3884else
3885 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003886sed 's/^/| /' conftest.$ac_ext >&5
3887
Benny Prijonoe2746132008-09-27 13:16:35 +00003888ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003889fi
Benny Prijonoe2746132008-09-27 13:16:35 +00003890rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003891 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003892LIBS=$ac_check_lib_save_LIBS
3893fi
Benny Prijonoe2746132008-09-27 13:16:35 +00003894echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
3895echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003896if test $ac_cv_lib_m_fmod = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003897 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003898#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003899_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003900
3901 LIBS="-lm $LIBS"
3902
3903fi
3904
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003905
Benny Prijonoe2746132008-09-27 13:16:35 +00003906fi;
3907
3908
3909ac_ext=c
3910ac_cpp='$CPP $CPPFLAGS'
3911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3915echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3916# On Suns, sometimes $CPP names a directory.
3917if test -n "$CPP" && test -d "$CPP"; then
3918 CPP=
3919fi
3920if test -z "$CPP"; then
3921 if test "${ac_cv_prog_CPP+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923else
3924 # Double quotes because CPP needs to be expanded
3925 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3926 do
3927 ac_preproc_ok=false
3928for ac_c_preproc_warn_flag in '' yes
3929do
3930 # Use a header file that comes with gcc, so configuring glibc
3931 # with a fresh cross-compiler works.
3932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3933 # <limits.h> exists even on freestanding compilers.
3934 # On the NeXT, cc -E runs the code through the compiler's parser,
3935 # not just through cpp. "Syntax error" is here to catch this case.
3936 cat >conftest.$ac_ext <<_ACEOF
3937/* confdefs.h. */
3938_ACEOF
3939cat confdefs.h >>conftest.$ac_ext
3940cat >>conftest.$ac_ext <<_ACEOF
3941/* end confdefs.h. */
3942#ifdef __STDC__
3943# include <limits.h>
3944#else
3945# include <assert.h>
3946#endif
3947 Syntax error
3948_ACEOF
3949if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3951 ac_status=$?
3952 grep -v '^ *+' conftest.er1 >conftest.err
3953 rm -f conftest.er1
3954 cat conftest.err >&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } >/dev/null; then
3957 if test -s conftest.err; then
3958 ac_cpp_err=$ac_c_preproc_warn_flag
3959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3960 else
3961 ac_cpp_err=
3962 fi
3963else
3964 ac_cpp_err=yes
3965fi
3966if test -z "$ac_cpp_err"; then
3967 :
3968else
3969 echo "$as_me: failed program was:" >&5
3970sed 's/^/| /' conftest.$ac_ext >&5
3971
3972 # Broken: fails on valid input.
3973continue
3974fi
3975rm -f conftest.err conftest.$ac_ext
3976
3977 # OK, works on sane cases. Now check whether non-existent headers
3978 # can be detected and how.
3979 cat >conftest.$ac_ext <<_ACEOF
3980/* confdefs.h. */
3981_ACEOF
3982cat confdefs.h >>conftest.$ac_ext
3983cat >>conftest.$ac_ext <<_ACEOF
3984/* end confdefs.h. */
3985#include <ac_nonexistent.h>
3986_ACEOF
3987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3989 ac_status=$?
3990 grep -v '^ *+' conftest.er1 >conftest.err
3991 rm -f conftest.er1
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } >/dev/null; then
3995 if test -s conftest.err; then
3996 ac_cpp_err=$ac_c_preproc_warn_flag
3997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3998 else
3999 ac_cpp_err=
4000 fi
4001else
4002 ac_cpp_err=yes
4003fi
4004if test -z "$ac_cpp_err"; then
4005 # Broken: success on invalid input.
4006continue
4007else
4008 echo "$as_me: failed program was:" >&5
4009sed 's/^/| /' conftest.$ac_ext >&5
4010
4011 # Passes both tests.
4012ac_preproc_ok=:
4013break
4014fi
4015rm -f conftest.err conftest.$ac_ext
4016
4017done
4018# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4019rm -f conftest.err conftest.$ac_ext
4020if $ac_preproc_ok; then
4021 break
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004022fi
4023
Benny Prijonoe2746132008-09-27 13:16:35 +00004024 done
4025 ac_cv_prog_CPP=$CPP
4026
4027fi
4028 CPP=$ac_cv_prog_CPP
4029else
4030 ac_cv_prog_CPP=$CPP
4031fi
4032echo "$as_me:$LINENO: result: $CPP" >&5
4033echo "${ECHO_T}$CPP" >&6
4034ac_preproc_ok=false
4035for ac_c_preproc_warn_flag in '' yes
4036do
4037 # Use a header file that comes with gcc, so configuring glibc
4038 # with a fresh cross-compiler works.
4039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4040 # <limits.h> exists even on freestanding compilers.
4041 # On the NeXT, cc -E runs the code through the compiler's parser,
4042 # not just through cpp. "Syntax error" is here to catch this case.
4043 cat >conftest.$ac_ext <<_ACEOF
4044/* confdefs.h. */
4045_ACEOF
4046cat confdefs.h >>conftest.$ac_ext
4047cat >>conftest.$ac_ext <<_ACEOF
4048/* end confdefs.h. */
4049#ifdef __STDC__
4050# include <limits.h>
4051#else
4052# include <assert.h>
4053#endif
4054 Syntax error
4055_ACEOF
4056if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4058 ac_status=$?
4059 grep -v '^ *+' conftest.er1 >conftest.err
4060 rm -f conftest.er1
4061 cat conftest.err >&5
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); } >/dev/null; then
4064 if test -s conftest.err; then
4065 ac_cpp_err=$ac_c_preproc_warn_flag
4066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4067 else
4068 ac_cpp_err=
4069 fi
4070else
4071 ac_cpp_err=yes
4072fi
4073if test -z "$ac_cpp_err"; then
4074 :
4075else
4076 echo "$as_me: failed program was:" >&5
4077sed 's/^/| /' conftest.$ac_ext >&5
4078
4079 # Broken: fails on valid input.
4080continue
4081fi
4082rm -f conftest.err conftest.$ac_ext
4083
4084 # OK, works on sane cases. Now check whether non-existent headers
4085 # can be detected and how.
4086 cat >conftest.$ac_ext <<_ACEOF
4087/* confdefs.h. */
4088_ACEOF
4089cat confdefs.h >>conftest.$ac_ext
4090cat >>conftest.$ac_ext <<_ACEOF
4091/* end confdefs.h. */
4092#include <ac_nonexistent.h>
4093_ACEOF
4094if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4096 ac_status=$?
4097 grep -v '^ *+' conftest.er1 >conftest.err
4098 rm -f conftest.er1
4099 cat conftest.err >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } >/dev/null; then
4102 if test -s conftest.err; then
4103 ac_cpp_err=$ac_c_preproc_warn_flag
4104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4105 else
4106 ac_cpp_err=
4107 fi
4108else
4109 ac_cpp_err=yes
4110fi
4111if test -z "$ac_cpp_err"; then
4112 # Broken: success on invalid input.
4113continue
4114else
4115 echo "$as_me: failed program was:" >&5
4116sed 's/^/| /' conftest.$ac_ext >&5
4117
4118 # Passes both tests.
4119ac_preproc_ok=:
4120break
4121fi
4122rm -f conftest.err conftest.$ac_ext
4123
4124done
4125# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4126rm -f conftest.err conftest.$ac_ext
4127if $ac_preproc_ok; then
4128 :
4129else
4130 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4131See \`config.log' for more details." >&5
4132echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4133See \`config.log' for more details." >&2;}
4134 { (exit 1); exit 1; }; }
4135fi
4136
4137ac_ext=c
4138ac_cpp='$CPP $CPPFLAGS'
4139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142
4143
4144echo "$as_me:$LINENO: checking for egrep" >&5
4145echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4146if test "${ac_cv_prog_egrep+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
4149 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4150 then ac_cv_prog_egrep='grep -E'
4151 else ac_cv_prog_egrep='egrep'
4152 fi
4153fi
4154echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4155echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4156 EGREP=$ac_cv_prog_egrep
4157
4158
4159echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4160echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4161if test "${ac_cv_header_stdc+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4163else
4164 cat >conftest.$ac_ext <<_ACEOF
4165/* confdefs.h. */
4166_ACEOF
4167cat confdefs.h >>conftest.$ac_ext
4168cat >>conftest.$ac_ext <<_ACEOF
4169/* end confdefs.h. */
4170#include <stdlib.h>
4171#include <stdarg.h>
4172#include <string.h>
4173#include <float.h>
4174
4175int
4176main ()
4177{
4178
4179 ;
4180 return 0;
4181}
4182_ACEOF
4183rm -f conftest.$ac_objext
4184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4185 (eval $ac_compile) 2>conftest.er1
4186 ac_status=$?
4187 grep -v '^ *+' conftest.er1 >conftest.err
4188 rm -f conftest.er1
4189 cat conftest.err >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } &&
4192 { ac_try='test -z "$ac_c_werror_flag"
4193 || test ! -s conftest.err'
4194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195 (eval $ac_try) 2>&5
4196 ac_status=$?
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; } &&
4199 { ac_try='test -s conftest.$ac_objext'
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201 (eval $ac_try) 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
4205 ac_cv_header_stdc=yes
4206else
4207 echo "$as_me: failed program was:" >&5
4208sed 's/^/| /' conftest.$ac_ext >&5
4209
4210ac_cv_header_stdc=no
4211fi
4212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4213
4214if test $ac_cv_header_stdc = yes; then
4215 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4216 cat >conftest.$ac_ext <<_ACEOF
4217/* confdefs.h. */
4218_ACEOF
4219cat confdefs.h >>conftest.$ac_ext
4220cat >>conftest.$ac_ext <<_ACEOF
4221/* end confdefs.h. */
4222#include <string.h>
4223
4224_ACEOF
4225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4226 $EGREP "memchr" >/dev/null 2>&1; then
4227 :
4228else
4229 ac_cv_header_stdc=no
4230fi
4231rm -f conftest*
4232
4233fi
4234
4235if test $ac_cv_header_stdc = yes; then
4236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4237 cat >conftest.$ac_ext <<_ACEOF
4238/* confdefs.h. */
4239_ACEOF
4240cat confdefs.h >>conftest.$ac_ext
4241cat >>conftest.$ac_ext <<_ACEOF
4242/* end confdefs.h. */
4243#include <stdlib.h>
4244
4245_ACEOF
4246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4247 $EGREP "free" >/dev/null 2>&1; then
4248 :
4249else
4250 ac_cv_header_stdc=no
4251fi
4252rm -f conftest*
4253
4254fi
4255
4256if test $ac_cv_header_stdc = yes; then
4257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4258 if test "$cross_compiling" = yes; then
4259 :
4260else
4261 cat >conftest.$ac_ext <<_ACEOF
4262/* confdefs.h. */
4263_ACEOF
4264cat confdefs.h >>conftest.$ac_ext
4265cat >>conftest.$ac_ext <<_ACEOF
4266/* end confdefs.h. */
4267#include <ctype.h>
4268#if ((' ' & 0x0FF) == 0x020)
4269# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4270# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4271#else
4272# define ISLOWER(c) \
4273 (('a' <= (c) && (c) <= 'i') \
4274 || ('j' <= (c) && (c) <= 'r') \
4275 || ('s' <= (c) && (c) <= 'z'))
4276# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4277#endif
4278
4279#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4280int
4281main ()
4282{
4283 int i;
4284 for (i = 0; i < 256; i++)
4285 if (XOR (islower (i), ISLOWER (i))
4286 || toupper (i) != TOUPPER (i))
4287 exit(2);
4288 exit (0);
4289}
4290_ACEOF
4291rm -f conftest$ac_exeext
4292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4293 (eval $ac_link) 2>&5
4294 ac_status=$?
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 (eval $ac_try) 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4302 :
4303else
4304 echo "$as_me: program exited with status $ac_status" >&5
4305echo "$as_me: failed program was:" >&5
4306sed 's/^/| /' conftest.$ac_ext >&5
4307
4308( exit $ac_status )
4309ac_cv_header_stdc=no
4310fi
4311rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4312fi
4313fi
4314fi
4315echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4316echo "${ECHO_T}$ac_cv_header_stdc" >&6
4317if test $ac_cv_header_stdc = yes; then
4318
4319cat >>confdefs.h <<\_ACEOF
4320#define STDC_HEADERS 1
4321_ACEOF
4322
4323fi
4324
4325# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4336 inttypes.h stdint.h unistd.h
4337do
4338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4339echo "$as_me:$LINENO: checking for $ac_header" >&5
4340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4341if eval "test \"\${$as_ac_Header+set}\" = set"; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4343else
4344 cat >conftest.$ac_ext <<_ACEOF
4345/* confdefs.h. */
4346_ACEOF
4347cat confdefs.h >>conftest.$ac_ext
4348cat >>conftest.$ac_ext <<_ACEOF
4349/* end confdefs.h. */
4350$ac_includes_default
4351
4352#include <$ac_header>
4353_ACEOF
4354rm -f conftest.$ac_objext
4355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356 (eval $ac_compile) 2>conftest.er1
4357 ac_status=$?
4358 grep -v '^ *+' conftest.er1 >conftest.err
4359 rm -f conftest.er1
4360 cat conftest.err >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } &&
4363 { ac_try='test -z "$ac_c_werror_flag"
4364 || test ! -s conftest.err'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 (eval $ac_try) 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; } &&
4370 { ac_try='test -s conftest.$ac_objext'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 (eval $ac_try) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 eval "$as_ac_Header=yes"
4377else
4378 echo "$as_me: failed program was:" >&5
4379sed 's/^/| /' conftest.$ac_ext >&5
4380
4381eval "$as_ac_Header=no"
4382fi
4383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4384fi
4385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4387if test `eval echo '${'$as_ac_Header'}'` = yes; then
4388 cat >>confdefs.h <<_ACEOF
4389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4390_ACEOF
4391
4392fi
4393
4394done
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004395
4396
4397if test "${ac_cv_header_arpa_inet_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00004398 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
4399echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004400if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402fi
Benny Prijonoe2746132008-09-27 13:16:35 +00004403echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4404echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004405else
4406 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00004407echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
4408echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004409cat >conftest.$ac_ext <<_ACEOF
4410/* confdefs.h. */
4411_ACEOF
4412cat confdefs.h >>conftest.$ac_ext
4413cat >>conftest.$ac_ext <<_ACEOF
4414/* end confdefs.h. */
4415$ac_includes_default
4416#include <arpa/inet.h>
4417_ACEOF
4418rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00004419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004421 ac_status=$?
4422 grep -v '^ *+' conftest.er1 >conftest.err
4423 rm -f conftest.er1
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00004426 (exit $ac_status); } &&
4427 { ac_try='test -z "$ac_c_werror_flag"
4428 || test ! -s conftest.err'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430 (eval $ac_try) 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; } &&
4434 { ac_try='test -s conftest.$ac_objext'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 (eval $ac_try) 2>&5
4437 ac_status=$?
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004440 ac_header_compiler=yes
4441else
4442 echo "$as_me: failed program was:" >&5
4443sed 's/^/| /' conftest.$ac_ext >&5
4444
Benny Prijonoe2746132008-09-27 13:16:35 +00004445ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004446fi
Benny Prijonoe2746132008-09-27 13:16:35 +00004447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4448echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4449echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004450
4451# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00004452echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
4453echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004454cat >conftest.$ac_ext <<_ACEOF
4455/* confdefs.h. */
4456_ACEOF
4457cat confdefs.h >>conftest.$ac_ext
4458cat >>conftest.$ac_ext <<_ACEOF
4459/* end confdefs.h. */
4460#include <arpa/inet.h>
4461_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00004462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00004469 (exit $ac_status); } >/dev/null; then
4470 if test -s conftest.err; then
4471 ac_cpp_err=$ac_c_preproc_warn_flag
4472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4473 else
4474 ac_cpp_err=
4475 fi
4476else
4477 ac_cpp_err=yes
4478fi
4479if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004480 ac_header_preproc=yes
4481else
4482 echo "$as_me: failed program was:" >&5
4483sed 's/^/| /' conftest.$ac_ext >&5
4484
4485 ac_header_preproc=no
4486fi
4487rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00004488echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4489echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004490
4491# So? What about this header?
4492case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4493 yes:no: )
4494 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
4495echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4496 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
4497echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
4498 ac_header_preproc=yes
4499 ;;
4500 no:yes:* )
4501 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
4502echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
4504echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
4505 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
4506echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
4507 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
4508echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
4509 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
4510echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
4511 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
4512echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00004513 (
4514 cat <<\_ASBOX
4515## ------------------------------------ ##
4516## Report this to the pjproject lists. ##
4517## ------------------------------------ ##
4518_ASBOX
4519 ) |
4520 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004521 ;;
4522esac
Benny Prijonoe2746132008-09-27 13:16:35 +00004523echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
4524echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004525if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004527else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004528 ac_cv_header_arpa_inet_h=$ac_header_preproc
4529fi
Benny Prijonoe2746132008-09-27 13:16:35 +00004530echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4531echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004532
4533fi
4534if test $ac_cv_header_arpa_inet_h = yes; then
4535 cat >>confdefs.h <<\_ACEOF
4536#define PJ_HAS_ARPA_INET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004537_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004538
4539fi
4540
4541
4542if test "${ac_cv_header_assert_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00004543 echo "$as_me:$LINENO: checking for assert.h" >&5
4544echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004545if test "${ac_cv_header_assert_h+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547fi
Benny Prijonoe2746132008-09-27 13:16:35 +00004548echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4549echo "${ECHO_T}$ac_cv_header_assert_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004550else
4551 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00004552echo "$as_me:$LINENO: checking assert.h usability" >&5
4553echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004554cat >conftest.$ac_ext <<_ACEOF
4555/* confdefs.h. */
4556_ACEOF
4557cat confdefs.h >>conftest.$ac_ext
4558cat >>conftest.$ac_ext <<_ACEOF
4559/* end confdefs.h. */
4560$ac_includes_default
4561#include <assert.h>
4562_ACEOF
4563rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00004564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004566 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004567 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004568 rm -f conftest.er1
4569 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00004571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_c_werror_flag"
4573 || test ! -s conftest.err'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; } &&
4579 { ac_try='test -s conftest.$ac_objext'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 (eval $ac_try) 2>&5
4582 ac_status=$?
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004585 ac_header_compiler=yes
4586else
4587 echo "$as_me: failed program was:" >&5
4588sed 's/^/| /' conftest.$ac_ext >&5
4589
Benny Prijonoe2746132008-09-27 13:16:35 +00004590ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004591fi
Benny Prijonoe2746132008-09-27 13:16:35 +00004592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4593echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4594echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004595
4596# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00004597echo "$as_me:$LINENO: checking assert.h presence" >&5
4598echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004599cat >conftest.$ac_ext <<_ACEOF
4600/* confdefs.h. */
4601_ACEOF
4602cat confdefs.h >>conftest.$ac_ext
4603cat >>conftest.$ac_ext <<_ACEOF
4604/* end confdefs.h. */
4605#include <assert.h>
4606_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00004607if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004609 ac_status=$?
4610 grep -v '^ *+' conftest.er1 >conftest.err
4611 rm -f conftest.er1
4612 cat conftest.err >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00004614 (exit $ac_status); } >/dev/null; then
4615 if test -s conftest.err; then
4616 ac_cpp_err=$ac_c_preproc_warn_flag
4617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4618 else
4619 ac_cpp_err=
4620 fi
4621else
4622 ac_cpp_err=yes
4623fi
4624if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004625 ac_header_preproc=yes
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004626else
4627 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004628sed 's/^/| /' conftest.$ac_ext >&5
4629
4630 ac_header_preproc=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004631fi
4632rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00004633echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4634echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004635
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004636# So? What about this header?
4637case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4638 yes:no: )
4639 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
4640echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4641 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
4642echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
4643 ac_header_preproc=yes
4644 ;;
4645 no:yes:* )
4646 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
4647echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
4648 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
4649echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
4650 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
4651echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
4652 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
4653echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
4654 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
4655echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
4656 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
4657echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00004658 (
4659 cat <<\_ASBOX
4660## ------------------------------------ ##
4661## Report this to the pjproject lists. ##
4662## ------------------------------------ ##
4663_ASBOX
4664 ) |
4665 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004666 ;;
4667esac
Benny Prijonoe2746132008-09-27 13:16:35 +00004668echo "$as_me:$LINENO: checking for assert.h" >&5
4669echo $ECHO_N "checking for assert.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004670if test "${ac_cv_header_assert_h+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004672else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004673 ac_cv_header_assert_h=$ac_header_preproc
4674fi
Benny Prijonoe2746132008-09-27 13:16:35 +00004675echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
4676echo "${ECHO_T}$ac_cv_header_assert_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004677
4678fi
4679if test $ac_cv_header_assert_h = yes; then
4680 cat >>confdefs.h <<\_ACEOF
4681#define PJ_HAS_ASSERT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004682_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004683
4684fi
4685
4686
4687if test "${ac_cv_header_ctype_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00004688 echo "$as_me:$LINENO: checking for ctype.h" >&5
4689echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004690if test "${ac_cv_header_ctype_h+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4692fi
Benny Prijonoe2746132008-09-27 13:16:35 +00004693echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4694echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004695else
4696 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00004697echo "$as_me:$LINENO: checking ctype.h usability" >&5
4698echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004699cat >conftest.$ac_ext <<_ACEOF
4700/* confdefs.h. */
4701_ACEOF
4702cat confdefs.h >>conftest.$ac_ext
4703cat >>conftest.$ac_ext <<_ACEOF
4704/* end confdefs.h. */
4705$ac_includes_default
4706#include <ctype.h>
4707_ACEOF
4708rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00004709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4710 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004711 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004712 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004713 rm -f conftest.er1
4714 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00004716 (exit $ac_status); } &&
4717 { ac_try='test -z "$ac_c_werror_flag"
4718 || test ! -s conftest.err'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 (eval $ac_try) 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; } &&
4724 { ac_try='test -s conftest.$ac_objext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 (eval $ac_try) 2>&5
4727 ac_status=$?
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004730 ac_header_compiler=yes
4731else
4732 echo "$as_me: failed program was:" >&5
4733sed 's/^/| /' conftest.$ac_ext >&5
4734
Benny Prijonoe2746132008-09-27 13:16:35 +00004735ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004736fi
Benny Prijonoe2746132008-09-27 13:16:35 +00004737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4738echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4739echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004740
4741# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00004742echo "$as_me:$LINENO: checking ctype.h presence" >&5
4743echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004744cat >conftest.$ac_ext <<_ACEOF
4745/* confdefs.h. */
4746_ACEOF
4747cat confdefs.h >>conftest.$ac_ext
4748cat >>conftest.$ac_ext <<_ACEOF
4749/* end confdefs.h. */
4750#include <ctype.h>
4751_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00004752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004754 ac_status=$?
4755 grep -v '^ *+' conftest.er1 >conftest.err
4756 rm -f conftest.er1
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00004759 (exit $ac_status); } >/dev/null; then
4760 if test -s conftest.err; then
4761 ac_cpp_err=$ac_c_preproc_warn_flag
4762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4763 else
4764 ac_cpp_err=
4765 fi
4766else
4767 ac_cpp_err=yes
4768fi
4769if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004770 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004771else
4772 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004773sed 's/^/| /' conftest.$ac_ext >&5
4774
4775 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004776fi
4777rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00004778echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4779echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004780
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004781# So? What about this header?
4782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4783 yes:no: )
4784 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5
4785echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4786 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5
4787echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;}
4788 ac_header_preproc=yes
4789 ;;
4790 no:yes:* )
4791 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5
4792echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;}
4793 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5
4794echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;}
4795 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5
4796echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;}
4797 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5
4798echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;}
4799 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5
4800echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;}
4801 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5
4802echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00004803 (
4804 cat <<\_ASBOX
4805## ------------------------------------ ##
4806## Report this to the pjproject lists. ##
4807## ------------------------------------ ##
4808_ASBOX
4809 ) |
4810 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004811 ;;
4812esac
Benny Prijonoe2746132008-09-27 13:16:35 +00004813echo "$as_me:$LINENO: checking for ctype.h" >&5
4814echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004815if test "${ac_cv_header_ctype_h+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004817else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004818 ac_cv_header_ctype_h=$ac_header_preproc
4819fi
Benny Prijonoe2746132008-09-27 13:16:35 +00004820echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
4821echo "${ECHO_T}$ac_cv_header_ctype_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004822
4823fi
4824if test $ac_cv_header_ctype_h = yes; then
4825 cat >>confdefs.h <<\_ACEOF
4826#define PJ_HAS_CTYPE_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004827_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004828
4829fi
4830
4831
4832
4833case $target in
4834 *mingw* | *cygw* | *win32* | *w32* )
4835 cat >>confdefs.h <<\_ACEOF
4836#define PJ_HAS_ERRNO_H 0
4837_ACEOF
4838
4839 ;;
4840 *)
4841 if test "${ac_cv_header_errno_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00004842 echo "$as_me:$LINENO: checking for errno.h" >&5
4843echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004844if test "${ac_cv_header_errno_h+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4846fi
Benny Prijonoe2746132008-09-27 13:16:35 +00004847echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
4848echo "${ECHO_T}$ac_cv_header_errno_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004849else
4850 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00004851echo "$as_me:$LINENO: checking errno.h usability" >&5
4852echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004853cat >conftest.$ac_ext <<_ACEOF
4854/* confdefs.h. */
4855_ACEOF
4856cat confdefs.h >>conftest.$ac_ext
4857cat >>conftest.$ac_ext <<_ACEOF
4858/* end confdefs.h. */
4859$ac_includes_default
4860#include <errno.h>
4861_ACEOF
4862rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00004863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4864 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004865 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004866 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004867 rm -f conftest.er1
4868 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00004870 (exit $ac_status); } &&
4871 { ac_try='test -z "$ac_c_werror_flag"
4872 || test ! -s conftest.err'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 (eval $ac_try) 2>&5
4875 ac_status=$?
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; } &&
4878 { ac_try='test -s conftest.$ac_objext'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 (eval $ac_try) 2>&5
4881 ac_status=$?
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004884 ac_header_compiler=yes
4885else
4886 echo "$as_me: failed program was:" >&5
4887sed 's/^/| /' conftest.$ac_ext >&5
4888
Benny Prijonoe2746132008-09-27 13:16:35 +00004889ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004890fi
Benny Prijonoe2746132008-09-27 13:16:35 +00004891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4892echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4893echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004894
4895# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00004896echo "$as_me:$LINENO: checking errno.h presence" >&5
4897echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004898cat >conftest.$ac_ext <<_ACEOF
4899/* confdefs.h. */
4900_ACEOF
4901cat confdefs.h >>conftest.$ac_ext
4902cat >>conftest.$ac_ext <<_ACEOF
4903/* end confdefs.h. */
4904#include <errno.h>
4905_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00004906if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004908 ac_status=$?
4909 grep -v '^ *+' conftest.er1 >conftest.err
4910 rm -f conftest.er1
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00004913 (exit $ac_status); } >/dev/null; then
4914 if test -s conftest.err; then
4915 ac_cpp_err=$ac_c_preproc_warn_flag
4916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4917 else
4918 ac_cpp_err=
4919 fi
4920else
4921 ac_cpp_err=yes
4922fi
4923if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004924 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004925else
4926 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004927sed 's/^/| /' conftest.$ac_ext >&5
4928
4929 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004930fi
4931rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00004932echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4933echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004934
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004935# So? What about this header?
4936case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4937 yes:no: )
4938 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
4939echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4940 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
4941echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
4942 ac_header_preproc=yes
4943 ;;
4944 no:yes:* )
4945 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
4946echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
4947 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5
4948echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;}
4949 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
4950echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
4951 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5
4952echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
4953 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
4954echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
4955 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
4956echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00004957 (
4958 cat <<\_ASBOX
4959## ------------------------------------ ##
4960## Report this to the pjproject lists. ##
4961## ------------------------------------ ##
4962_ASBOX
4963 ) |
4964 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004965 ;;
4966esac
Benny Prijonoe2746132008-09-27 13:16:35 +00004967echo "$as_me:$LINENO: checking for errno.h" >&5
4968echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004969if test "${ac_cv_header_errno_h+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004971else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004972 ac_cv_header_errno_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004973fi
Benny Prijonoe2746132008-09-27 13:16:35 +00004974echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
4975echo "${ECHO_T}$ac_cv_header_errno_h" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004976
4977fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004978if test $ac_cv_header_errno_h = yes; then
4979 cat >>confdefs.h <<\_ACEOF
4980#define PJ_HAS_ERRNO_H 1
4981_ACEOF
4982
4983fi
4984
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004985
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004986 ;;
4987esac
4988
Benny Prijono1d481ab2008-01-24 15:27:30 +00004989if test "${ac_cv_header_fcntl_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00004990 echo "$as_me:$LINENO: checking for fcntl.h" >&5
4991echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00004992if test "${ac_cv_header_fcntl_h+set}" = set; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4994fi
Benny Prijonoe2746132008-09-27 13:16:35 +00004995echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
4996echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00004997else
4998 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00004999echo "$as_me:$LINENO: checking fcntl.h usability" >&5
5000echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005001cat >conftest.$ac_ext <<_ACEOF
5002/* confdefs.h. */
5003_ACEOF
5004cat confdefs.h >>conftest.$ac_ext
5005cat >>conftest.$ac_ext <<_ACEOF
5006/* end confdefs.h. */
5007$ac_includes_default
5008#include <fcntl.h>
5009_ACEOF
5010rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00005011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5012 (eval $ac_compile) 2>conftest.er1
Benny Prijono1d481ab2008-01-24 15:27:30 +00005013 ac_status=$?
5014 grep -v '^ *+' conftest.er1 >conftest.err
5015 rm -f conftest.er1
5016 cat conftest.err >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00005018 (exit $ac_status); } &&
5019 { ac_try='test -z "$ac_c_werror_flag"
5020 || test ! -s conftest.err'
5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 (eval $ac_try) 2>&5
5023 ac_status=$?
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; } &&
5026 { ac_try='test -s conftest.$ac_objext'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 (eval $ac_try) 2>&5
5029 ac_status=$?
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; }; then
Benny Prijono1d481ab2008-01-24 15:27:30 +00005032 ac_header_compiler=yes
5033else
5034 echo "$as_me: failed program was:" >&5
5035sed 's/^/| /' conftest.$ac_ext >&5
5036
Benny Prijonoe2746132008-09-27 13:16:35 +00005037ac_header_compiler=no
Benny Prijono1d481ab2008-01-24 15:27:30 +00005038fi
Benny Prijonoe2746132008-09-27 13:16:35 +00005039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5040echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5041echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005042
5043# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00005044echo "$as_me:$LINENO: checking fcntl.h presence" >&5
5045echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005046cat >conftest.$ac_ext <<_ACEOF
5047/* confdefs.h. */
5048_ACEOF
5049cat confdefs.h >>conftest.$ac_ext
5050cat >>conftest.$ac_ext <<_ACEOF
5051/* end confdefs.h. */
5052#include <fcntl.h>
5053_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00005054if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono1d481ab2008-01-24 15:27:30 +00005056 ac_status=$?
5057 grep -v '^ *+' conftest.er1 >conftest.err
5058 rm -f conftest.er1
5059 cat conftest.err >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00005061 (exit $ac_status); } >/dev/null; then
5062 if test -s conftest.err; then
5063 ac_cpp_err=$ac_c_preproc_warn_flag
5064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5065 else
5066 ac_cpp_err=
5067 fi
5068else
5069 ac_cpp_err=yes
5070fi
5071if test -z "$ac_cpp_err"; then
Benny Prijono1d481ab2008-01-24 15:27:30 +00005072 ac_header_preproc=yes
5073else
5074 echo "$as_me: failed program was:" >&5
5075sed 's/^/| /' conftest.$ac_ext >&5
5076
5077 ac_header_preproc=no
5078fi
Benny Prijono1d481ab2008-01-24 15:27:30 +00005079rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00005080echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5081echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005082
5083# So? What about this header?
5084case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5085 yes:no: )
5086 { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5087echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5088 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5
5089echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;}
5090 ac_header_preproc=yes
5091 ;;
5092 no:yes:* )
5093 { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5
5094echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;}
5095 { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5
5096echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;}
5097 { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5
5098echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;}
5099 { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5
5100echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5101 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5
5102echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;}
5103 { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5
5104echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00005105 (
5106 cat <<\_ASBOX
5107## ------------------------------------ ##
5108## Report this to the pjproject lists. ##
5109## ------------------------------------ ##
5110_ASBOX
5111 ) |
5112 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono1d481ab2008-01-24 15:27:30 +00005113 ;;
5114esac
Benny Prijonoe2746132008-09-27 13:16:35 +00005115echo "$as_me:$LINENO: checking for fcntl.h" >&5
5116echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005117if test "${ac_cv_header_fcntl_h+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5119else
5120 ac_cv_header_fcntl_h=$ac_header_preproc
5121fi
Benny Prijonoe2746132008-09-27 13:16:35 +00005122echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
5123echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6
Benny Prijono1d481ab2008-01-24 15:27:30 +00005124
5125fi
5126if test $ac_cv_header_fcntl_h = yes; then
5127 cat >>confdefs.h <<\_ACEOF
5128#define PJ_HAS_FCNTL_H 1
5129_ACEOF
5130
5131fi
5132
5133
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005134if test "${ac_cv_header_linux_socket_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00005135 echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5136echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005137if test "${ac_cv_header_linux_socket_h+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5139fi
Benny Prijonoe2746132008-09-27 13:16:35 +00005140echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5141echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005142else
5143 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00005144echo "$as_me:$LINENO: checking linux/socket.h usability" >&5
5145echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005146cat >conftest.$ac_ext <<_ACEOF
5147/* confdefs.h. */
5148_ACEOF
5149cat confdefs.h >>conftest.$ac_ext
5150cat >>conftest.$ac_ext <<_ACEOF
5151/* end confdefs.h. */
5152$ac_includes_default
5153#include <linux/socket.h>
5154_ACEOF
5155rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00005156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5157 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005158 ac_status=$?
5159 grep -v '^ *+' conftest.er1 >conftest.err
5160 rm -f conftest.er1
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00005163 (exit $ac_status); } &&
5164 { ac_try='test -z "$ac_c_werror_flag"
5165 || test ! -s conftest.err'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 (eval $ac_try) 2>&5
5168 ac_status=$?
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; } &&
5171 { ac_try='test -s conftest.$ac_objext'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173 (eval $ac_try) 2>&5
5174 ac_status=$?
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005177 ac_header_compiler=yes
5178else
5179 echo "$as_me: failed program was:" >&5
5180sed 's/^/| /' conftest.$ac_ext >&5
5181
Benny Prijonoe2746132008-09-27 13:16:35 +00005182ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005183fi
Benny Prijonoe2746132008-09-27 13:16:35 +00005184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5185echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5186echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005187
5188# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00005189echo "$as_me:$LINENO: checking linux/socket.h presence" >&5
5190echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005191cat >conftest.$ac_ext <<_ACEOF
5192/* confdefs.h. */
5193_ACEOF
5194cat confdefs.h >>conftest.$ac_ext
5195cat >>conftest.$ac_ext <<_ACEOF
5196/* end confdefs.h. */
5197#include <linux/socket.h>
5198_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00005199if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005201 ac_status=$?
5202 grep -v '^ *+' conftest.er1 >conftest.err
5203 rm -f conftest.er1
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00005206 (exit $ac_status); } >/dev/null; then
5207 if test -s conftest.err; then
5208 ac_cpp_err=$ac_c_preproc_warn_flag
5209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5210 else
5211 ac_cpp_err=
5212 fi
5213else
5214 ac_cpp_err=yes
5215fi
5216if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005217 ac_header_preproc=yes
5218else
5219 echo "$as_me: failed program was:" >&5
5220sed 's/^/| /' conftest.$ac_ext >&5
5221
5222 ac_header_preproc=no
5223fi
5224rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00005225echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5226echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005227
5228# So? What about this header?
5229case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5230 yes:no: )
5231 { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
5232echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5233 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5
5234echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;}
5235 ac_header_preproc=yes
5236 ;;
5237 no:yes:* )
5238 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5
5239echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;}
5240 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5
5241echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;}
5242 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5
5243echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;}
5244 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5
5245echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
5246 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5
5247echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;}
5248 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5
5249echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00005250 (
5251 cat <<\_ASBOX
5252## ------------------------------------ ##
5253## Report this to the pjproject lists. ##
5254## ------------------------------------ ##
5255_ASBOX
5256 ) |
5257 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005258 ;;
5259esac
Benny Prijonoe2746132008-09-27 13:16:35 +00005260echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5261echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005262if test "${ac_cv_header_linux_socket_h+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005264else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005265 ac_cv_header_linux_socket_h=$ac_header_preproc
5266fi
Benny Prijonoe2746132008-09-27 13:16:35 +00005267echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5268echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005269
5270fi
5271if test $ac_cv_header_linux_socket_h = yes; then
5272 cat >>confdefs.h <<\_ACEOF
5273#define PJ_HAS_LINUX_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005274_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005275
5276fi
5277
5278
5279if test "${ac_cv_header_malloc_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00005280 echo "$as_me:$LINENO: checking for malloc.h" >&5
5281echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005282if test "${ac_cv_header_malloc_h+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5284fi
Benny Prijonoe2746132008-09-27 13:16:35 +00005285echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5286echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005287else
5288 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00005289echo "$as_me:$LINENO: checking malloc.h usability" >&5
5290echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005291cat >conftest.$ac_ext <<_ACEOF
5292/* confdefs.h. */
5293_ACEOF
5294cat confdefs.h >>conftest.$ac_ext
5295cat >>conftest.$ac_ext <<_ACEOF
5296/* end confdefs.h. */
5297$ac_includes_default
5298#include <malloc.h>
5299_ACEOF
5300rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00005301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005303 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005304 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005305 rm -f conftest.er1
5306 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00005308 (exit $ac_status); } &&
5309 { ac_try='test -z "$ac_c_werror_flag"
5310 || test ! -s conftest.err'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 (eval $ac_try) 2>&5
5313 ac_status=$?
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; } &&
5316 { ac_try='test -s conftest.$ac_objext'
5317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 (eval $ac_try) 2>&5
5319 ac_status=$?
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005322 ac_header_compiler=yes
5323else
5324 echo "$as_me: failed program was:" >&5
5325sed 's/^/| /' conftest.$ac_ext >&5
5326
Benny Prijonoe2746132008-09-27 13:16:35 +00005327ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005328fi
Benny Prijonoe2746132008-09-27 13:16:35 +00005329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5330echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5331echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005332
5333# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00005334echo "$as_me:$LINENO: checking malloc.h presence" >&5
5335echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005336cat >conftest.$ac_ext <<_ACEOF
5337/* confdefs.h. */
5338_ACEOF
5339cat confdefs.h >>conftest.$ac_ext
5340cat >>conftest.$ac_ext <<_ACEOF
5341/* end confdefs.h. */
5342#include <malloc.h>
5343_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00005344if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005346 ac_status=$?
5347 grep -v '^ *+' conftest.er1 >conftest.err
5348 rm -f conftest.er1
5349 cat conftest.err >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00005351 (exit $ac_status); } >/dev/null; then
5352 if test -s conftest.err; then
5353 ac_cpp_err=$ac_c_preproc_warn_flag
5354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5355 else
5356 ac_cpp_err=
5357 fi
5358else
5359 ac_cpp_err=yes
5360fi
5361if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005362 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005363else
5364 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005365sed 's/^/| /' conftest.$ac_ext >&5
5366
5367 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005368fi
5369rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00005370echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5371echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005372
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005373# So? What about this header?
5374case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5375 yes:no: )
5376 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
5377echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5378 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
5379echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
5380 ac_header_preproc=yes
5381 ;;
5382 no:yes:* )
5383 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
5384echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
5385 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
5386echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
5387 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
5388echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
5389 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
5390echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
5391 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
5392echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
5393 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
5394echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00005395 (
5396 cat <<\_ASBOX
5397## ------------------------------------ ##
5398## Report this to the pjproject lists. ##
5399## ------------------------------------ ##
5400_ASBOX
5401 ) |
5402 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005403 ;;
5404esac
Benny Prijonoe2746132008-09-27 13:16:35 +00005405echo "$as_me:$LINENO: checking for malloc.h" >&5
5406echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005407if test "${ac_cv_header_malloc_h+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005409else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005410 ac_cv_header_malloc_h=$ac_header_preproc
5411fi
Benny Prijonoe2746132008-09-27 13:16:35 +00005412echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5413echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005414
5415fi
5416if test $ac_cv_header_malloc_h = yes; then
5417 cat >>confdefs.h <<\_ACEOF
5418#define PJ_HAS_MALLOC_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005419_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005420
5421fi
5422
5423
5424if test "${ac_cv_header_netdb_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00005425 echo "$as_me:$LINENO: checking for netdb.h" >&5
5426echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005427if test "${ac_cv_header_netdb_h+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5429fi
Benny Prijonoe2746132008-09-27 13:16:35 +00005430echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5431echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005432else
5433 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00005434echo "$as_me:$LINENO: checking netdb.h usability" >&5
5435echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005436cat >conftest.$ac_ext <<_ACEOF
5437/* confdefs.h. */
5438_ACEOF
5439cat confdefs.h >>conftest.$ac_ext
5440cat >>conftest.$ac_ext <<_ACEOF
5441/* end confdefs.h. */
5442$ac_includes_default
5443#include <netdb.h>
5444_ACEOF
5445rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00005446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5447 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005448 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005449 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005450 rm -f conftest.er1
5451 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00005453 (exit $ac_status); } &&
5454 { ac_try='test -z "$ac_c_werror_flag"
5455 || test ! -s conftest.err'
5456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 (eval $ac_try) 2>&5
5458 ac_status=$?
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); }; } &&
5461 { ac_try='test -s conftest.$ac_objext'
5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463 (eval $ac_try) 2>&5
5464 ac_status=$?
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005467 ac_header_compiler=yes
5468else
5469 echo "$as_me: failed program was:" >&5
5470sed 's/^/| /' conftest.$ac_ext >&5
5471
Benny Prijonoe2746132008-09-27 13:16:35 +00005472ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005473fi
Benny Prijonoe2746132008-09-27 13:16:35 +00005474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5475echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5476echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005477
5478# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00005479echo "$as_me:$LINENO: checking netdb.h presence" >&5
5480echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005481cat >conftest.$ac_ext <<_ACEOF
5482/* confdefs.h. */
5483_ACEOF
5484cat confdefs.h >>conftest.$ac_ext
5485cat >>conftest.$ac_ext <<_ACEOF
5486/* end confdefs.h. */
5487#include <netdb.h>
5488_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00005489if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005491 ac_status=$?
5492 grep -v '^ *+' conftest.er1 >conftest.err
5493 rm -f conftest.er1
5494 cat conftest.err >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00005496 (exit $ac_status); } >/dev/null; then
5497 if test -s conftest.err; then
5498 ac_cpp_err=$ac_c_preproc_warn_flag
5499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5500 else
5501 ac_cpp_err=
5502 fi
5503else
5504 ac_cpp_err=yes
5505fi
5506if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005507 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005508else
5509 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005510sed 's/^/| /' conftest.$ac_ext >&5
5511
5512 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005513fi
5514rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00005515echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5516echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005517
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005518# So? What about this header?
5519case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5520 yes:no: )
5521 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
5522echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5523 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5
5524echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;}
5525 ac_header_preproc=yes
5526 ;;
5527 no:yes:* )
5528 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5
5529echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;}
5530 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5
5531echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;}
5532 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5
5533echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;}
5534 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5
5535echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
5536 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5
5537echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;}
5538 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5
5539echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00005540 (
5541 cat <<\_ASBOX
5542## ------------------------------------ ##
5543## Report this to the pjproject lists. ##
5544## ------------------------------------ ##
5545_ASBOX
5546 ) |
5547 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005548 ;;
5549esac
Benny Prijonoe2746132008-09-27 13:16:35 +00005550echo "$as_me:$LINENO: checking for netdb.h" >&5
5551echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005552if test "${ac_cv_header_netdb_h+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005554else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005555 ac_cv_header_netdb_h=$ac_header_preproc
5556fi
Benny Prijonoe2746132008-09-27 13:16:35 +00005557echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5558echo "${ECHO_T}$ac_cv_header_netdb_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005559
5560fi
5561if test $ac_cv_header_netdb_h = yes; then
5562 cat >>confdefs.h <<\_ACEOF
5563#define PJ_HAS_NETDB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005564_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005565
5566fi
5567
5568
Benny Prijono37fc9de2008-08-04 14:45:02 +00005569if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00005570 echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5
5571echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6
Benny Prijono37fc9de2008-08-04 14:45:02 +00005572if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5574fi
Benny Prijonoe2746132008-09-27 13:16:35 +00005575echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5
5576echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6
Benny Prijono37fc9de2008-08-04 14:45:02 +00005577else
5578 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00005579echo "$as_me:$LINENO: checking netinet/in_systm.h usability" >&5
5580echo $ECHO_N "checking netinet/in_systm.h usability... $ECHO_C" >&6
Benny Prijono37fc9de2008-08-04 14:45:02 +00005581cat >conftest.$ac_ext <<_ACEOF
5582/* confdefs.h. */
5583_ACEOF
5584cat confdefs.h >>conftest.$ac_ext
5585cat >>conftest.$ac_ext <<_ACEOF
5586/* end confdefs.h. */
5587$ac_includes_default
5588#include <netinet/in_systm.h>
5589_ACEOF
5590rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00005591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5592 (eval $ac_compile) 2>conftest.er1
Benny Prijono37fc9de2008-08-04 14:45:02 +00005593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00005598 (exit $ac_status); } &&
5599 { ac_try='test -z "$ac_c_werror_flag"
5600 || test ! -s conftest.err'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 (eval $ac_try) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; } &&
5606 { ac_try='test -s conftest.$ac_objext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 (eval $ac_try) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
Benny Prijono37fc9de2008-08-04 14:45:02 +00005612 ac_header_compiler=yes
5613else
5614 echo "$as_me: failed program was:" >&5
5615sed 's/^/| /' conftest.$ac_ext >&5
5616
Benny Prijonoe2746132008-09-27 13:16:35 +00005617ac_header_compiler=no
Benny Prijono37fc9de2008-08-04 14:45:02 +00005618fi
Benny Prijonoe2746132008-09-27 13:16:35 +00005619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5620echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5621echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono37fc9de2008-08-04 14:45:02 +00005622
5623# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00005624echo "$as_me:$LINENO: checking netinet/in_systm.h presence" >&5
5625echo $ECHO_N "checking netinet/in_systm.h presence... $ECHO_C" >&6
Benny Prijono37fc9de2008-08-04 14:45:02 +00005626cat >conftest.$ac_ext <<_ACEOF
5627/* confdefs.h. */
5628_ACEOF
5629cat confdefs.h >>conftest.$ac_ext
5630cat >>conftest.$ac_ext <<_ACEOF
5631/* end confdefs.h. */
5632#include <netinet/in_systm.h>
5633_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00005634if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono37fc9de2008-08-04 14:45:02 +00005636 ac_status=$?
5637 grep -v '^ *+' conftest.er1 >conftest.err
5638 rm -f conftest.er1
5639 cat conftest.err >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00005641 (exit $ac_status); } >/dev/null; then
5642 if test -s conftest.err; then
5643 ac_cpp_err=$ac_c_preproc_warn_flag
5644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5645 else
5646 ac_cpp_err=
5647 fi
5648else
5649 ac_cpp_err=yes
5650fi
5651if test -z "$ac_cpp_err"; then
Benny Prijono37fc9de2008-08-04 14:45:02 +00005652 ac_header_preproc=yes
5653else
5654 echo "$as_me: failed program was:" >&5
5655sed 's/^/| /' conftest.$ac_ext >&5
5656
5657 ac_header_preproc=no
5658fi
5659rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00005660echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5661echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono37fc9de2008-08-04 14:45:02 +00005662
5663# So? What about this header?
5664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5665 yes:no: )
5666 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&5
5667echo "$as_me: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5668 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&5
5669echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&2;}
5670 ac_header_preproc=yes
5671 ;;
5672 no:yes:* )
5673 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: present but cannot be compiled" >&5
5674echo "$as_me: WARNING: netinet/in_systm.h: present but cannot be compiled" >&2;}
5675 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&5
5676echo "$as_me: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&2;}
5677 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&5
5678echo "$as_me: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&2;}
5679 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&5
5680echo "$as_me: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&2;}
5681 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&5
5682echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&2;}
5683 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&5
5684echo "$as_me: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00005685 (
5686 cat <<\_ASBOX
5687## ------------------------------------ ##
5688## Report this to the pjproject lists. ##
5689## ------------------------------------ ##
5690_ASBOX
5691 ) |
5692 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono37fc9de2008-08-04 14:45:02 +00005693 ;;
5694esac
Benny Prijonoe2746132008-09-27 13:16:35 +00005695echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5
5696echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6
Benny Prijono37fc9de2008-08-04 14:45:02 +00005697if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699else
5700 ac_cv_header_netinet_in_systm_h=$ac_header_preproc
5701fi
Benny Prijonoe2746132008-09-27 13:16:35 +00005702echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5
5703echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6
Benny Prijono37fc9de2008-08-04 14:45:02 +00005704
5705fi
5706if test $ac_cv_header_netinet_in_systm_h = yes; then
5707 cat >>confdefs.h <<\_ACEOF
5708#define PJ_HAS_NETINET_IN_SYSTM_H 1
5709_ACEOF
5710
5711fi
5712
5713
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005714if test "${ac_cv_header_netinet_in_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00005715 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5716echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005717if test "${ac_cv_header_netinet_in_h+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5719fi
Benny Prijonoe2746132008-09-27 13:16:35 +00005720echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5721echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005722else
5723 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00005724echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
5725echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005726cat >conftest.$ac_ext <<_ACEOF
5727/* confdefs.h. */
5728_ACEOF
5729cat confdefs.h >>conftest.$ac_ext
5730cat >>conftest.$ac_ext <<_ACEOF
5731/* end confdefs.h. */
5732$ac_includes_default
5733#include <netinet/in.h>
5734_ACEOF
5735rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00005736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5737 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005738 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005739 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005740 rm -f conftest.er1
5741 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00005743 (exit $ac_status); } &&
5744 { ac_try='test -z "$ac_c_werror_flag"
5745 || test ! -s conftest.err'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 (eval $ac_try) 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; } &&
5751 { ac_try='test -s conftest.$ac_objext'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753 (eval $ac_try) 2>&5
5754 ac_status=$?
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005757 ac_header_compiler=yes
5758else
5759 echo "$as_me: failed program was:" >&5
5760sed 's/^/| /' conftest.$ac_ext >&5
5761
Benny Prijonoe2746132008-09-27 13:16:35 +00005762ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005763fi
Benny Prijonoe2746132008-09-27 13:16:35 +00005764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5765echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5766echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005767
5768# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00005769echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
5770echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005771cat >conftest.$ac_ext <<_ACEOF
5772/* confdefs.h. */
5773_ACEOF
5774cat confdefs.h >>conftest.$ac_ext
5775cat >>conftest.$ac_ext <<_ACEOF
5776/* end confdefs.h. */
5777#include <netinet/in.h>
5778_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00005779if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005781 ac_status=$?
5782 grep -v '^ *+' conftest.er1 >conftest.err
5783 rm -f conftest.er1
5784 cat conftest.err >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00005786 (exit $ac_status); } >/dev/null; then
5787 if test -s conftest.err; then
5788 ac_cpp_err=$ac_c_preproc_warn_flag
5789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5790 else
5791 ac_cpp_err=
5792 fi
5793else
5794 ac_cpp_err=yes
5795fi
5796if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005797 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005798else
5799 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005800sed 's/^/| /' conftest.$ac_ext >&5
5801
5802 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005803fi
5804rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00005805echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5806echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005807
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005808# So? What about this header?
5809case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5810 yes:no: )
5811 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
5812echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5813 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
5814echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
5815 ac_header_preproc=yes
5816 ;;
5817 no:yes:* )
5818 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
5819echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
5820 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
5821echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
5822 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
5823echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
5824 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
5825echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
5826 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
5827echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
5828 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
5829echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00005830 (
5831 cat <<\_ASBOX
5832## ------------------------------------ ##
5833## Report this to the pjproject lists. ##
5834## ------------------------------------ ##
5835_ASBOX
5836 ) |
5837 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005838 ;;
5839esac
Benny Prijonoe2746132008-09-27 13:16:35 +00005840echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5841echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005842if test "${ac_cv_header_netinet_in_h+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005844else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005845 ac_cv_header_netinet_in_h=$ac_header_preproc
5846fi
Benny Prijonoe2746132008-09-27 13:16:35 +00005847echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5848echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005849
5850fi
5851if test $ac_cv_header_netinet_in_h = yes; then
5852 cat >>confdefs.h <<\_ACEOF
5853#define PJ_HAS_NETINET_IN_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005854_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005855
5856fi
5857
5858
Benny Prijonoe2746132008-09-27 13:16:35 +00005859echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
5860echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005861if test "${ac_cv_header_netinet_ip_h+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005863else
Benny Prijono37fc9de2008-08-04 14:45:02 +00005864 cat >conftest.$ac_ext <<_ACEOF
Benny Prijonof63a2552007-02-01 00:36:52 +00005865/* confdefs.h. */
5866_ACEOF
5867cat confdefs.h >>conftest.$ac_ext
5868cat >>conftest.$ac_ext <<_ACEOF
5869/* end confdefs.h. */
Benny Prijono37fc9de2008-08-04 14:45:02 +00005870#if PJ_HAS_NETINET_IN_SYSTM_H
5871 # include <netinet/in_systm.h>
5872 #endif
5873
5874
Benny Prijonof63a2552007-02-01 00:36:52 +00005875#include <netinet/ip.h>
5876_ACEOF
5877rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00005878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5879 (eval $ac_compile) 2>conftest.er1
Benny Prijonof63a2552007-02-01 00:36:52 +00005880 ac_status=$?
5881 grep -v '^ *+' conftest.er1 >conftest.err
5882 rm -f conftest.er1
5883 cat conftest.err >&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00005885 (exit $ac_status); } &&
5886 { ac_try='test -z "$ac_c_werror_flag"
5887 || test ! -s conftest.err'
5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 (eval $ac_try) 2>&5
5890 ac_status=$?
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; } &&
5893 { ac_try='test -s conftest.$ac_objext'
5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 (eval $ac_try) 2>&5
5896 ac_status=$?
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; }; then
Benny Prijono37fc9de2008-08-04 14:45:02 +00005899 ac_cv_header_netinet_ip_h=yes
Benny Prijonof63a2552007-02-01 00:36:52 +00005900else
5901 echo "$as_me: failed program was:" >&5
5902sed 's/^/| /' conftest.$ac_ext >&5
5903
Benny Prijonoe2746132008-09-27 13:16:35 +00005904ac_cv_header_netinet_ip_h=no
Benny Prijonof63a2552007-02-01 00:36:52 +00005905fi
Benny Prijonoe2746132008-09-27 13:16:35 +00005906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonof63a2552007-02-01 00:36:52 +00005907fi
Benny Prijonoe2746132008-09-27 13:16:35 +00005908echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
5909echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6
Benny Prijonof63a2552007-02-01 00:36:52 +00005910if test $ac_cv_header_netinet_ip_h = yes; then
5911 cat >>confdefs.h <<\_ACEOF
5912#define PJ_HAS_NETINET_IP_H 1
5913_ACEOF
5914
5915fi
5916
5917
Benny Prijono1d65f702007-12-03 04:03:17 +00005918if test "${ac_cv_header_ifaddrs_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00005919 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5920echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005921if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5923fi
Benny Prijonoe2746132008-09-27 13:16:35 +00005924echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5925echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005926else
5927 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00005928echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
5929echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005930cat >conftest.$ac_ext <<_ACEOF
5931/* confdefs.h. */
5932_ACEOF
5933cat confdefs.h >>conftest.$ac_ext
5934cat >>conftest.$ac_ext <<_ACEOF
5935/* end confdefs.h. */
5936$ac_includes_default
5937#include <ifaddrs.h>
5938_ACEOF
5939rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00005940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5941 (eval $ac_compile) 2>conftest.er1
Benny Prijono1d65f702007-12-03 04:03:17 +00005942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00005947 (exit $ac_status); } &&
5948 { ac_try='test -z "$ac_c_werror_flag"
5949 || test ! -s conftest.err'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 (eval $ac_try) 2>&5
5952 ac_status=$?
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; } &&
5955 { ac_try='test -s conftest.$ac_objext'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 (eval $ac_try) 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; }; then
Benny Prijono1d65f702007-12-03 04:03:17 +00005961 ac_header_compiler=yes
5962else
5963 echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
Benny Prijonoe2746132008-09-27 13:16:35 +00005966ac_header_compiler=no
Benny Prijono1d65f702007-12-03 04:03:17 +00005967fi
Benny Prijonoe2746132008-09-27 13:16:35 +00005968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5969echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5970echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005971
5972# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00005973echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
5974echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00005975cat >conftest.$ac_ext <<_ACEOF
5976/* confdefs.h. */
5977_ACEOF
5978cat confdefs.h >>conftest.$ac_ext
5979cat >>conftest.$ac_ext <<_ACEOF
5980/* end confdefs.h. */
5981#include <ifaddrs.h>
5982_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00005983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono1d65f702007-12-03 04:03:17 +00005985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00005990 (exit $ac_status); } >/dev/null; then
5991 if test -s conftest.err; then
5992 ac_cpp_err=$ac_c_preproc_warn_flag
5993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5994 else
5995 ac_cpp_err=
5996 fi
5997else
5998 ac_cpp_err=yes
5999fi
6000if test -z "$ac_cpp_err"; then
Benny Prijono1d65f702007-12-03 04:03:17 +00006001 ac_header_preproc=yes
6002else
6003 echo "$as_me: failed program was:" >&5
6004sed 's/^/| /' conftest.$ac_ext >&5
6005
6006 ac_header_preproc=no
6007fi
6008rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00006009echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6010echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00006011
6012# So? What about this header?
6013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6014 yes:no: )
6015 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
6016echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6017 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
6018echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
6019 ac_header_preproc=yes
6020 ;;
6021 no:yes:* )
6022 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
6023echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
6024 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
6025echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
6026 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
6027echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
6028 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
6029echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
6030 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
6031echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
6032 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
6033echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00006034 (
6035 cat <<\_ASBOX
6036## ------------------------------------ ##
6037## Report this to the pjproject lists. ##
6038## ------------------------------------ ##
6039_ASBOX
6040 ) |
6041 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono1d65f702007-12-03 04:03:17 +00006042 ;;
6043esac
Benny Prijonoe2746132008-09-27 13:16:35 +00006044echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
6045echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00006046if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6048else
6049 ac_cv_header_ifaddrs_h=$ac_header_preproc
6050fi
Benny Prijonoe2746132008-09-27 13:16:35 +00006051echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
6052echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
Benny Prijono1d65f702007-12-03 04:03:17 +00006053
6054fi
6055if test $ac_cv_header_ifaddrs_h = yes; then
6056 cat >>confdefs.h <<\_ACEOF
6057#define PJ_HAS_IFADDRS_H 1
6058_ACEOF
6059
6060fi
6061
6062
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006063if test "${ac_cv_header_semaphore_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00006064 echo "$as_me:$LINENO: checking for semaphore.h" >&5
6065echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006066if test "${ac_cv_header_semaphore_h+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6068fi
Benny Prijonoe2746132008-09-27 13:16:35 +00006069echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
6070echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006071else
6072 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00006073echo "$as_me:$LINENO: checking semaphore.h usability" >&5
6074echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006075cat >conftest.$ac_ext <<_ACEOF
6076/* confdefs.h. */
6077_ACEOF
6078cat confdefs.h >>conftest.$ac_ext
6079cat >>conftest.$ac_ext <<_ACEOF
6080/* end confdefs.h. */
6081$ac_includes_default
6082#include <semaphore.h>
6083_ACEOF
6084rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00006085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086 (eval $ac_compile) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006087 ac_status=$?
6088 grep -v '^ *+' conftest.er1 >conftest.err
6089 rm -f conftest.er1
6090 cat conftest.err >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00006092 (exit $ac_status); } &&
6093 { ac_try='test -z "$ac_c_werror_flag"
6094 || test ! -s conftest.err'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 (eval $ac_try) 2>&5
6097 ac_status=$?
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; } &&
6100 { ac_try='test -s conftest.$ac_objext'
6101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102 (eval $ac_try) 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006106 ac_header_compiler=yes
6107else
6108 echo "$as_me: failed program was:" >&5
6109sed 's/^/| /' conftest.$ac_ext >&5
6110
Benny Prijonoe2746132008-09-27 13:16:35 +00006111ac_header_compiler=no
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006112fi
Benny Prijonoe2746132008-09-27 13:16:35 +00006113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6114echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6115echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006116
6117# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00006118echo "$as_me:$LINENO: checking semaphore.h presence" >&5
6119echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006120cat >conftest.$ac_ext <<_ACEOF
6121/* confdefs.h. */
6122_ACEOF
6123cat confdefs.h >>conftest.$ac_ext
6124cat >>conftest.$ac_ext <<_ACEOF
6125/* end confdefs.h. */
6126#include <semaphore.h>
6127_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00006128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006130 ac_status=$?
6131 grep -v '^ *+' conftest.er1 >conftest.err
6132 rm -f conftest.er1
6133 cat conftest.err >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00006135 (exit $ac_status); } >/dev/null; then
6136 if test -s conftest.err; then
6137 ac_cpp_err=$ac_c_preproc_warn_flag
6138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6139 else
6140 ac_cpp_err=
6141 fi
6142else
6143 ac_cpp_err=yes
6144fi
6145if test -z "$ac_cpp_err"; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006146 ac_header_preproc=yes
6147else
6148 echo "$as_me: failed program was:" >&5
6149sed 's/^/| /' conftest.$ac_ext >&5
6150
6151 ac_header_preproc=no
6152fi
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006153rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00006154echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6155echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006156
6157# So? What about this header?
6158case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6159 yes:no: )
6160 { echo "$as_me:$LINENO: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&5
6161echo "$as_me: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6162 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the compiler's result" >&5
6163echo "$as_me: WARNING: semaphore.h: proceeding with the compiler's result" >&2;}
6164 ac_header_preproc=yes
6165 ;;
6166 no:yes:* )
6167 { echo "$as_me:$LINENO: WARNING: semaphore.h: present but cannot be compiled" >&5
6168echo "$as_me: WARNING: semaphore.h: present but cannot be compiled" >&2;}
6169 { echo "$as_me:$LINENO: WARNING: semaphore.h: check for missing prerequisite headers?" >&5
6170echo "$as_me: WARNING: semaphore.h: check for missing prerequisite headers?" >&2;}
6171 { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5
6172echo "$as_me: WARNING: semaphore.h: see the Autoconf documentation" >&2;}
6173 { echo "$as_me:$LINENO: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&5
6174echo "$as_me: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&2;}
6175 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the preprocessor's result" >&5
6176echo "$as_me: WARNING: semaphore.h: proceeding with the preprocessor's result" >&2;}
6177 { echo "$as_me:$LINENO: WARNING: semaphore.h: in the future, the compiler will take precedence" >&5
6178echo "$as_me: WARNING: semaphore.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00006179 (
6180 cat <<\_ASBOX
6181## ------------------------------------ ##
6182## Report this to the pjproject lists. ##
6183## ------------------------------------ ##
6184_ASBOX
6185 ) |
6186 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006187 ;;
6188esac
Benny Prijonoe2746132008-09-27 13:16:35 +00006189echo "$as_me:$LINENO: checking for semaphore.h" >&5
6190echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006191if test "${ac_cv_header_semaphore_h+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6193else
6194 ac_cv_header_semaphore_h=$ac_header_preproc
6195fi
Benny Prijonoe2746132008-09-27 13:16:35 +00006196echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
6197echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00006198
6199fi
6200if test $ac_cv_header_semaphore_h = yes; then
6201 cat >>confdefs.h <<\_ACEOF
6202#define PJ_HAS_SEMAPHORE_H 1
6203_ACEOF
6204
6205fi
6206
6207
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006208if test "${ac_cv_header_setjmp_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00006209 echo "$as_me:$LINENO: checking for setjmp.h" >&5
6210echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006211if test "${ac_cv_header_setjmp_h+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6213fi
Benny Prijonoe2746132008-09-27 13:16:35 +00006214echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
6215echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006216else
6217 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00006218echo "$as_me:$LINENO: checking setjmp.h usability" >&5
6219echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006220cat >conftest.$ac_ext <<_ACEOF
6221/* confdefs.h. */
6222_ACEOF
6223cat confdefs.h >>conftest.$ac_ext
6224cat >>conftest.$ac_ext <<_ACEOF
6225/* end confdefs.h. */
6226$ac_includes_default
6227#include <setjmp.h>
6228_ACEOF
6229rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00006230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006232 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006233 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006234 rm -f conftest.er1
6235 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00006237 (exit $ac_status); } &&
6238 { ac_try='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 (eval $ac_try) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006251 ac_header_compiler=yes
6252else
6253 echo "$as_me: failed program was:" >&5
6254sed 's/^/| /' conftest.$ac_ext >&5
6255
Benny Prijonoe2746132008-09-27 13:16:35 +00006256ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006257fi
Benny Prijonoe2746132008-09-27 13:16:35 +00006258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6260echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006261
6262# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00006263echo "$as_me:$LINENO: checking setjmp.h presence" >&5
6264echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006265cat >conftest.$ac_ext <<_ACEOF
6266/* confdefs.h. */
6267_ACEOF
6268cat confdefs.h >>conftest.$ac_ext
6269cat >>conftest.$ac_ext <<_ACEOF
6270/* end confdefs.h. */
6271#include <setjmp.h>
6272_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00006273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006275 ac_status=$?
6276 grep -v '^ *+' conftest.er1 >conftest.err
6277 rm -f conftest.er1
6278 cat conftest.err >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00006280 (exit $ac_status); } >/dev/null; then
6281 if test -s conftest.err; then
6282 ac_cpp_err=$ac_c_preproc_warn_flag
6283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6284 else
6285 ac_cpp_err=
6286 fi
6287else
6288 ac_cpp_err=yes
6289fi
6290if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006291 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006292else
6293 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006294sed 's/^/| /' conftest.$ac_ext >&5
6295
6296 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006297fi
6298rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00006299echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6300echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006301
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006302# So? What about this header?
6303case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6304 yes:no: )
6305 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
6306echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6307 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5
6308echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;}
6309 ac_header_preproc=yes
6310 ;;
6311 no:yes:* )
6312 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5
6313echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;}
6314 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5
6315echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;}
6316 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5
6317echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;}
6318 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5
6319echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
6320 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5
6321echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;}
6322 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5
6323echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00006324 (
6325 cat <<\_ASBOX
6326## ------------------------------------ ##
6327## Report this to the pjproject lists. ##
6328## ------------------------------------ ##
6329_ASBOX
6330 ) |
6331 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006332 ;;
6333esac
Benny Prijonoe2746132008-09-27 13:16:35 +00006334echo "$as_me:$LINENO: checking for setjmp.h" >&5
6335echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006336if test "${ac_cv_header_setjmp_h+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006338else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006339 ac_cv_header_setjmp_h=$ac_header_preproc
6340fi
Benny Prijonoe2746132008-09-27 13:16:35 +00006341echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
6342echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006343
6344fi
6345if test $ac_cv_header_setjmp_h = yes; then
6346 cat >>confdefs.h <<\_ACEOF
6347#define PJ_HAS_SETJMP_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006348_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006349
6350fi
6351
6352
6353if test "${ac_cv_header_stdarg_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00006354 echo "$as_me:$LINENO: checking for stdarg.h" >&5
6355echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006356if test "${ac_cv_header_stdarg_h+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6358fi
Benny Prijonoe2746132008-09-27 13:16:35 +00006359echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6360echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006361else
6362 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00006363echo "$as_me:$LINENO: checking stdarg.h usability" >&5
6364echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006365cat >conftest.$ac_ext <<_ACEOF
6366/* confdefs.h. */
6367_ACEOF
6368cat confdefs.h >>conftest.$ac_ext
6369cat >>conftest.$ac_ext <<_ACEOF
6370/* end confdefs.h. */
6371$ac_includes_default
6372#include <stdarg.h>
6373_ACEOF
6374rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00006375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6376 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006377 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006378 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006379 rm -f conftest.er1
6380 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00006382 (exit $ac_status); } &&
6383 { ac_try='test -z "$ac_c_werror_flag"
6384 || test ! -s conftest.err'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 (eval $ac_try) 2>&5
6387 ac_status=$?
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; } &&
6390 { ac_try='test -s conftest.$ac_objext'
6391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392 (eval $ac_try) 2>&5
6393 ac_status=$?
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006396 ac_header_compiler=yes
6397else
6398 echo "$as_me: failed program was:" >&5
6399sed 's/^/| /' conftest.$ac_ext >&5
6400
Benny Prijonoe2746132008-09-27 13:16:35 +00006401ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006402fi
Benny Prijonoe2746132008-09-27 13:16:35 +00006403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6404echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6405echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006406
6407# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00006408echo "$as_me:$LINENO: checking stdarg.h presence" >&5
6409echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006410cat >conftest.$ac_ext <<_ACEOF
6411/* confdefs.h. */
6412_ACEOF
6413cat confdefs.h >>conftest.$ac_ext
6414cat >>conftest.$ac_ext <<_ACEOF
6415/* end confdefs.h. */
6416#include <stdarg.h>
6417_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00006418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006420 ac_status=$?
6421 grep -v '^ *+' conftest.er1 >conftest.err
6422 rm -f conftest.er1
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00006425 (exit $ac_status); } >/dev/null; then
6426 if test -s conftest.err; then
6427 ac_cpp_err=$ac_c_preproc_warn_flag
6428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6429 else
6430 ac_cpp_err=
6431 fi
6432else
6433 ac_cpp_err=yes
6434fi
6435if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006436 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006437else
6438 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006439sed 's/^/| /' conftest.$ac_ext >&5
6440
6441 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006442fi
6443rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00006444echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6445echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006446
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006447# So? What about this header?
6448case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6449 yes:no: )
6450 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
6451echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6452 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
6453echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
6454 ac_header_preproc=yes
6455 ;;
6456 no:yes:* )
6457 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
6458echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
6460echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
6462echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
6463 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
6464echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
6465 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
6466echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
6467 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
6468echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00006469 (
6470 cat <<\_ASBOX
6471## ------------------------------------ ##
6472## Report this to the pjproject lists. ##
6473## ------------------------------------ ##
6474_ASBOX
6475 ) |
6476 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006477 ;;
6478esac
Benny Prijonoe2746132008-09-27 13:16:35 +00006479echo "$as_me:$LINENO: checking for stdarg.h" >&5
6480echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006481if test "${ac_cv_header_stdarg_h+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006483else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006484 ac_cv_header_stdarg_h=$ac_header_preproc
6485fi
Benny Prijonoe2746132008-09-27 13:16:35 +00006486echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6487echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006488
6489fi
6490if test $ac_cv_header_stdarg_h = yes; then
6491 cat >>confdefs.h <<\_ACEOF
6492#define PJ_HAS_STDARG_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006493_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006494
6495fi
6496
6497
6498if test "${ac_cv_header_stddef_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00006499 echo "$as_me:$LINENO: checking for stddef.h" >&5
6500echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006501if test "${ac_cv_header_stddef_h+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503fi
Benny Prijonoe2746132008-09-27 13:16:35 +00006504echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
6505echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006506else
6507 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00006508echo "$as_me:$LINENO: checking stddef.h usability" >&5
6509echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006510cat >conftest.$ac_ext <<_ACEOF
6511/* confdefs.h. */
6512_ACEOF
6513cat confdefs.h >>conftest.$ac_ext
6514cat >>conftest.$ac_ext <<_ACEOF
6515/* end confdefs.h. */
6516$ac_includes_default
6517#include <stddef.h>
6518_ACEOF
6519rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00006520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6521 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006522 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006523 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006524 rm -f conftest.er1
6525 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00006527 (exit $ac_status); } &&
6528 { ac_try='test -z "$ac_c_werror_flag"
6529 || test ! -s conftest.err'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531 (eval $ac_try) 2>&5
6532 ac_status=$?
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; } &&
6535 { ac_try='test -s conftest.$ac_objext'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 (eval $ac_try) 2>&5
6538 ac_status=$?
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006541 ac_header_compiler=yes
6542else
6543 echo "$as_me: failed program was:" >&5
6544sed 's/^/| /' conftest.$ac_ext >&5
6545
Benny Prijonoe2746132008-09-27 13:16:35 +00006546ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006547fi
Benny Prijonoe2746132008-09-27 13:16:35 +00006548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6549echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6550echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006551
6552# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00006553echo "$as_me:$LINENO: checking stddef.h presence" >&5
6554echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006555cat >conftest.$ac_ext <<_ACEOF
6556/* confdefs.h. */
6557_ACEOF
6558cat confdefs.h >>conftest.$ac_ext
6559cat >>conftest.$ac_ext <<_ACEOF
6560/* end confdefs.h. */
6561#include <stddef.h>
6562_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00006563if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006565 ac_status=$?
6566 grep -v '^ *+' conftest.er1 >conftest.err
6567 rm -f conftest.er1
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00006570 (exit $ac_status); } >/dev/null; then
6571 if test -s conftest.err; then
6572 ac_cpp_err=$ac_c_preproc_warn_flag
6573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6574 else
6575 ac_cpp_err=
6576 fi
6577else
6578 ac_cpp_err=yes
6579fi
6580if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006581 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006582else
6583 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006584sed 's/^/| /' conftest.$ac_ext >&5
6585
6586 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006587fi
6588rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00006589echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6590echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006591
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006592# So? What about this header?
6593case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6594 yes:no: )
6595 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
6596echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6597 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
6598echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
6599 ac_header_preproc=yes
6600 ;;
6601 no:yes:* )
6602 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
6603echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
6604 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
6605echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
6607echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
6608 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
6609echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
6610 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
6611echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
6612 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
6613echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00006614 (
6615 cat <<\_ASBOX
6616## ------------------------------------ ##
6617## Report this to the pjproject lists. ##
6618## ------------------------------------ ##
6619_ASBOX
6620 ) |
6621 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006622 ;;
6623esac
Benny Prijonoe2746132008-09-27 13:16:35 +00006624echo "$as_me:$LINENO: checking for stddef.h" >&5
6625echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006626if test "${ac_cv_header_stddef_h+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006628else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006629 ac_cv_header_stddef_h=$ac_header_preproc
6630fi
Benny Prijonoe2746132008-09-27 13:16:35 +00006631echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
6632echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006633
6634fi
6635if test $ac_cv_header_stddef_h = yes; then
6636 cat >>confdefs.h <<\_ACEOF
6637#define PJ_HAS_STDDEF_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006638_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006639
6640fi
6641
6642
6643if test "${ac_cv_header_stdio_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00006644 echo "$as_me:$LINENO: checking for stdio.h" >&5
6645echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006646if test "${ac_cv_header_stdio_h+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6648fi
Benny Prijonoe2746132008-09-27 13:16:35 +00006649echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6650echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006651else
6652 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00006653echo "$as_me:$LINENO: checking stdio.h usability" >&5
6654echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006655cat >conftest.$ac_ext <<_ACEOF
6656/* confdefs.h. */
6657_ACEOF
6658cat confdefs.h >>conftest.$ac_ext
6659cat >>conftest.$ac_ext <<_ACEOF
6660/* end confdefs.h. */
6661$ac_includes_default
6662#include <stdio.h>
6663_ACEOF
6664rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00006665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6666 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006667 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006668 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006669 rm -f conftest.er1
6670 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00006672 (exit $ac_status); } &&
6673 { ac_try='test -z "$ac_c_werror_flag"
6674 || test ! -s conftest.err'
6675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676 (eval $ac_try) 2>&5
6677 ac_status=$?
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); }; } &&
6680 { ac_try='test -s conftest.$ac_objext'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682 (eval $ac_try) 2>&5
6683 ac_status=$?
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006686 ac_header_compiler=yes
6687else
6688 echo "$as_me: failed program was:" >&5
6689sed 's/^/| /' conftest.$ac_ext >&5
6690
Benny Prijonoe2746132008-09-27 13:16:35 +00006691ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006692fi
Benny Prijonoe2746132008-09-27 13:16:35 +00006693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6694echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6695echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006696
6697# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00006698echo "$as_me:$LINENO: checking stdio.h presence" >&5
6699echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006700cat >conftest.$ac_ext <<_ACEOF
6701/* confdefs.h. */
6702_ACEOF
6703cat confdefs.h >>conftest.$ac_ext
6704cat >>conftest.$ac_ext <<_ACEOF
6705/* end confdefs.h. */
6706#include <stdio.h>
6707_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00006708if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006710 ac_status=$?
6711 grep -v '^ *+' conftest.er1 >conftest.err
6712 rm -f conftest.er1
6713 cat conftest.err >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00006715 (exit $ac_status); } >/dev/null; then
6716 if test -s conftest.err; then
6717 ac_cpp_err=$ac_c_preproc_warn_flag
6718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6719 else
6720 ac_cpp_err=
6721 fi
6722else
6723 ac_cpp_err=yes
6724fi
6725if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006726 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006727else
6728 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006729sed 's/^/| /' conftest.$ac_ext >&5
6730
6731 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006732fi
6733rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00006734echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6735echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006736
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006737# So? What about this header?
6738case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6739 yes:no: )
6740 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
6741echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6742 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
6743echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
6744 ac_header_preproc=yes
6745 ;;
6746 no:yes:* )
6747 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
6748echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
6749 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
6750echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
6751 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
6752echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
6753 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
6754echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
6755 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
6756echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
6757 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
6758echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00006759 (
6760 cat <<\_ASBOX
6761## ------------------------------------ ##
6762## Report this to the pjproject lists. ##
6763## ------------------------------------ ##
6764_ASBOX
6765 ) |
6766 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006767 ;;
6768esac
Benny Prijonoe2746132008-09-27 13:16:35 +00006769echo "$as_me:$LINENO: checking for stdio.h" >&5
6770echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006771if test "${ac_cv_header_stdio_h+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006773else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006774 ac_cv_header_stdio_h=$ac_header_preproc
6775fi
Benny Prijonoe2746132008-09-27 13:16:35 +00006776echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6777echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006778
6779fi
6780if test $ac_cv_header_stdio_h = yes; then
6781 cat >>confdefs.h <<\_ACEOF
6782#define PJ_HAS_STDIO_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006783_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006784
6785fi
6786
6787
Benny Prijonofdafd402008-01-23 14:34:46 +00006788if test "${ac_cv_header_stdint_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00006789 echo "$as_me:$LINENO: checking for stdint.h" >&5
6790echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006791if test "${ac_cv_header_stdint_h+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6793fi
Benny Prijonoe2746132008-09-27 13:16:35 +00006794echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
6795echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006796else
6797 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00006798echo "$as_me:$LINENO: checking stdint.h usability" >&5
6799echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006800cat >conftest.$ac_ext <<_ACEOF
6801/* confdefs.h. */
6802_ACEOF
6803cat confdefs.h >>conftest.$ac_ext
6804cat >>conftest.$ac_ext <<_ACEOF
6805/* end confdefs.h. */
6806$ac_includes_default
6807#include <stdint.h>
6808_ACEOF
6809rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00006810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6811 (eval $ac_compile) 2>conftest.er1
Benny Prijonofdafd402008-01-23 14:34:46 +00006812 ac_status=$?
6813 grep -v '^ *+' conftest.er1 >conftest.err
6814 rm -f conftest.er1
6815 cat conftest.err >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00006817 (exit $ac_status); } &&
6818 { ac_try='test -z "$ac_c_werror_flag"
6819 || test ! -s conftest.err'
6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821 (eval $ac_try) 2>&5
6822 ac_status=$?
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; } &&
6825 { ac_try='test -s conftest.$ac_objext'
6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827 (eval $ac_try) 2>&5
6828 ac_status=$?
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; }; then
Benny Prijonofdafd402008-01-23 14:34:46 +00006831 ac_header_compiler=yes
6832else
6833 echo "$as_me: failed program was:" >&5
6834sed 's/^/| /' conftest.$ac_ext >&5
6835
Benny Prijonoe2746132008-09-27 13:16:35 +00006836ac_header_compiler=no
Benny Prijonofdafd402008-01-23 14:34:46 +00006837fi
Benny Prijonoe2746132008-09-27 13:16:35 +00006838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6839echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6840echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006841
6842# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00006843echo "$as_me:$LINENO: checking stdint.h presence" >&5
6844echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006845cat >conftest.$ac_ext <<_ACEOF
6846/* confdefs.h. */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h. */
6851#include <stdint.h>
6852_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00006853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijonofdafd402008-01-23 14:34:46 +00006855 ac_status=$?
6856 grep -v '^ *+' conftest.er1 >conftest.err
6857 rm -f conftest.er1
6858 cat conftest.err >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00006860 (exit $ac_status); } >/dev/null; then
6861 if test -s conftest.err; then
6862 ac_cpp_err=$ac_c_preproc_warn_flag
6863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6864 else
6865 ac_cpp_err=
6866 fi
6867else
6868 ac_cpp_err=yes
6869fi
6870if test -z "$ac_cpp_err"; then
Benny Prijonofdafd402008-01-23 14:34:46 +00006871 ac_header_preproc=yes
6872else
6873 echo "$as_me: failed program was:" >&5
6874sed 's/^/| /' conftest.$ac_ext >&5
6875
6876 ac_header_preproc=no
6877fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006878rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00006879echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6880echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006881
6882# So? What about this header?
6883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6884 yes:no: )
6885 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
6886echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6887 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
6888echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
6889 ac_header_preproc=yes
6890 ;;
6891 no:yes:* )
6892 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
6893echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
6894 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
6895echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
6896 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
6897echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
6898 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
6899echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
6900 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
6901echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
6902 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
6903echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00006904 (
6905 cat <<\_ASBOX
6906## ------------------------------------ ##
6907## Report this to the pjproject lists. ##
6908## ------------------------------------ ##
6909_ASBOX
6910 ) |
6911 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijonofdafd402008-01-23 14:34:46 +00006912 ;;
6913esac
Benny Prijonoe2746132008-09-27 13:16:35 +00006914echo "$as_me:$LINENO: checking for stdint.h" >&5
6915echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006916if test "${ac_cv_header_stdint_h+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918else
6919 ac_cv_header_stdint_h=$ac_header_preproc
6920fi
Benny Prijonoe2746132008-09-27 13:16:35 +00006921echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
6922echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
Benny Prijonofdafd402008-01-23 14:34:46 +00006923
6924fi
6925if test $ac_cv_header_stdint_h = yes; then
6926 cat >>confdefs.h <<\_ACEOF
6927#define PJ_HAS_STDINT_H 1
6928_ACEOF
6929
6930fi
6931
6932
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006933if test "${ac_cv_header_stdlib_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00006934 echo "$as_me:$LINENO: checking for stdlib.h" >&5
6935echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006936if test "${ac_cv_header_stdlib_h+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6938fi
Benny Prijonoe2746132008-09-27 13:16:35 +00006939echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6940echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006941else
6942 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00006943echo "$as_me:$LINENO: checking stdlib.h usability" >&5
6944echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006945cat >conftest.$ac_ext <<_ACEOF
6946/* confdefs.h. */
6947_ACEOF
6948cat confdefs.h >>conftest.$ac_ext
6949cat >>conftest.$ac_ext <<_ACEOF
6950/* end confdefs.h. */
6951$ac_includes_default
6952#include <stdlib.h>
6953_ACEOF
6954rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00006955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6956 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006957 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006958 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006959 rm -f conftest.er1
6960 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00006962 (exit $ac_status); } &&
6963 { ac_try='test -z "$ac_c_werror_flag"
6964 || test ! -s conftest.err'
6965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966 (eval $ac_try) 2>&5
6967 ac_status=$?
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); }; } &&
6970 { ac_try='test -s conftest.$ac_objext'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 (eval $ac_try) 2>&5
6973 ac_status=$?
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006976 ac_header_compiler=yes
6977else
6978 echo "$as_me: failed program was:" >&5
6979sed 's/^/| /' conftest.$ac_ext >&5
6980
Benny Prijonoe2746132008-09-27 13:16:35 +00006981ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006982fi
Benny Prijonoe2746132008-09-27 13:16:35 +00006983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6984echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6985echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006986
6987# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00006988echo "$as_me:$LINENO: checking stdlib.h presence" >&5
6989echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006990cat >conftest.$ac_ext <<_ACEOF
6991/* confdefs.h. */
6992_ACEOF
6993cat confdefs.h >>conftest.$ac_ext
6994cat >>conftest.$ac_ext <<_ACEOF
6995/* end confdefs.h. */
6996#include <stdlib.h>
6997_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00006998if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007000 ac_status=$?
7001 grep -v '^ *+' conftest.er1 >conftest.err
7002 rm -f conftest.er1
7003 cat conftest.err >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00007005 (exit $ac_status); } >/dev/null; then
7006 if test -s conftest.err; then
7007 ac_cpp_err=$ac_c_preproc_warn_flag
7008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7009 else
7010 ac_cpp_err=
7011 fi
7012else
7013 ac_cpp_err=yes
7014fi
7015if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007016 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007017else
7018 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007019sed 's/^/| /' conftest.$ac_ext >&5
7020
7021 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007022fi
7023rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00007024echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7025echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007026
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007027# So? What about this header?
7028case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7029 yes:no: )
7030 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7031echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7032 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
7033echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
7034 ac_header_preproc=yes
7035 ;;
7036 no:yes:* )
7037 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
7038echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
7039 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
7040echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
7041 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
7042echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
7043 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
7044echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
7045 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
7046echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
7047 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
7048echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00007049 (
7050 cat <<\_ASBOX
7051## ------------------------------------ ##
7052## Report this to the pjproject lists. ##
7053## ------------------------------------ ##
7054_ASBOX
7055 ) |
7056 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007057 ;;
7058esac
Benny Prijonoe2746132008-09-27 13:16:35 +00007059echo "$as_me:$LINENO: checking for stdlib.h" >&5
7060echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007061if test "${ac_cv_header_stdlib_h+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007063else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007064 ac_cv_header_stdlib_h=$ac_header_preproc
7065fi
Benny Prijonoe2746132008-09-27 13:16:35 +00007066echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7067echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007068
7069fi
7070if test $ac_cv_header_stdlib_h = yes; then
7071 cat >>confdefs.h <<\_ACEOF
7072#define PJ_HAS_STDLIB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007073_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007074
7075fi
7076
7077
7078if test "${ac_cv_header_string_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00007079 echo "$as_me:$LINENO: checking for string.h" >&5
7080echo $ECHO_N "checking for string.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007081if test "${ac_cv_header_string_h+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7083fi
Benny Prijonoe2746132008-09-27 13:16:35 +00007084echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7085echo "${ECHO_T}$ac_cv_header_string_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007086else
7087 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00007088echo "$as_me:$LINENO: checking string.h usability" >&5
7089echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007090cat >conftest.$ac_ext <<_ACEOF
7091/* confdefs.h. */
7092_ACEOF
7093cat confdefs.h >>conftest.$ac_ext
7094cat >>conftest.$ac_ext <<_ACEOF
7095/* end confdefs.h. */
7096$ac_includes_default
7097#include <string.h>
7098_ACEOF
7099rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00007100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7101 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007102 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007103 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007104 rm -f conftest.er1
7105 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00007107 (exit $ac_status); } &&
7108 { ac_try='test -z "$ac_c_werror_flag"
7109 || test ! -s conftest.err'
7110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 (eval $ac_try) 2>&5
7112 ac_status=$?
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); }; } &&
7115 { ac_try='test -s conftest.$ac_objext'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 (eval $ac_try) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007121 ac_header_compiler=yes
7122else
7123 echo "$as_me: failed program was:" >&5
7124sed 's/^/| /' conftest.$ac_ext >&5
7125
Benny Prijonoe2746132008-09-27 13:16:35 +00007126ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007127fi
Benny Prijonoe2746132008-09-27 13:16:35 +00007128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7129echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7130echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007131
7132# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00007133echo "$as_me:$LINENO: checking string.h presence" >&5
7134echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007135cat >conftest.$ac_ext <<_ACEOF
7136/* confdefs.h. */
7137_ACEOF
7138cat confdefs.h >>conftest.$ac_ext
7139cat >>conftest.$ac_ext <<_ACEOF
7140/* end confdefs.h. */
7141#include <string.h>
7142_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00007143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007145 ac_status=$?
7146 grep -v '^ *+' conftest.er1 >conftest.err
7147 rm -f conftest.er1
7148 cat conftest.err >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00007150 (exit $ac_status); } >/dev/null; then
7151 if test -s conftest.err; then
7152 ac_cpp_err=$ac_c_preproc_warn_flag
7153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7154 else
7155 ac_cpp_err=
7156 fi
7157else
7158 ac_cpp_err=yes
7159fi
7160if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007161 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007162else
7163 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007164sed 's/^/| /' conftest.$ac_ext >&5
7165
7166 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007167fi
7168rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00007169echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7170echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007171
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007172# So? What about this header?
7173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7174 yes:no: )
7175 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7176echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7177 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
7178echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
7179 ac_header_preproc=yes
7180 ;;
7181 no:yes:* )
7182 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
7183echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
7184 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
7185echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
7186 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
7187echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
7188 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
7189echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
7190 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7191echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7192 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
7193echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00007194 (
7195 cat <<\_ASBOX
7196## ------------------------------------ ##
7197## Report this to the pjproject lists. ##
7198## ------------------------------------ ##
7199_ASBOX
7200 ) |
7201 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007202 ;;
7203esac
Benny Prijonoe2746132008-09-27 13:16:35 +00007204echo "$as_me:$LINENO: checking for string.h" >&5
7205echo $ECHO_N "checking for string.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007206if test "${ac_cv_header_string_h+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007208else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007209 ac_cv_header_string_h=$ac_header_preproc
7210fi
Benny Prijonoe2746132008-09-27 13:16:35 +00007211echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7212echo "${ECHO_T}$ac_cv_header_string_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007213
7214fi
7215if test $ac_cv_header_string_h = yes; then
7216 cat >>confdefs.h <<\_ACEOF
7217#define PJ_HAS_STRING_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007218_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007219
7220fi
7221
7222
7223if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00007224 echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
7225echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007226if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228fi
Benny Prijonoe2746132008-09-27 13:16:35 +00007229echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
7230echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007231else
7232 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00007233echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5
7234echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007235cat >conftest.$ac_ext <<_ACEOF
7236/* confdefs.h. */
7237_ACEOF
7238cat confdefs.h >>conftest.$ac_ext
7239cat >>conftest.$ac_ext <<_ACEOF
7240/* end confdefs.h. */
7241$ac_includes_default
7242#include <sys/ioctl.h>
7243_ACEOF
7244rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00007245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7246 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007247 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007248 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007249 rm -f conftest.er1
7250 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00007252 (exit $ac_status); } &&
7253 { ac_try='test -z "$ac_c_werror_flag"
7254 || test ! -s conftest.err'
7255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256 (eval $ac_try) 2>&5
7257 ac_status=$?
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); }; } &&
7260 { ac_try='test -s conftest.$ac_objext'
7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 (eval $ac_try) 2>&5
7263 ac_status=$?
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007266 ac_header_compiler=yes
7267else
7268 echo "$as_me: failed program was:" >&5
7269sed 's/^/| /' conftest.$ac_ext >&5
7270
Benny Prijonoe2746132008-09-27 13:16:35 +00007271ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007272fi
Benny Prijonoe2746132008-09-27 13:16:35 +00007273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7274echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7275echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007276
7277# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00007278echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5
7279echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007280cat >conftest.$ac_ext <<_ACEOF
7281/* confdefs.h. */
7282_ACEOF
7283cat confdefs.h >>conftest.$ac_ext
7284cat >>conftest.$ac_ext <<_ACEOF
7285/* end confdefs.h. */
7286#include <sys/ioctl.h>
7287_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00007288if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007290 ac_status=$?
7291 grep -v '^ *+' conftest.er1 >conftest.err
7292 rm -f conftest.er1
7293 cat conftest.err >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00007295 (exit $ac_status); } >/dev/null; then
7296 if test -s conftest.err; then
7297 ac_cpp_err=$ac_c_preproc_warn_flag
7298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7299 else
7300 ac_cpp_err=
7301 fi
7302else
7303 ac_cpp_err=yes
7304fi
7305if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007306 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007307else
7308 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007309sed 's/^/| /' conftest.$ac_ext >&5
7310
7311 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007312fi
7313rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00007314echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7315echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007316
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007317# So? What about this header?
7318case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7319 yes:no: )
7320 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7321echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7322 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5
7323echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;}
7324 ac_header_preproc=yes
7325 ;;
7326 no:yes:* )
7327 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5
7328echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;}
7329 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5
7330echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;}
7331 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5
7332echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;}
7333 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
7334echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7335 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5
7336echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;}
7337 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5
7338echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00007339 (
7340 cat <<\_ASBOX
7341## ------------------------------------ ##
7342## Report this to the pjproject lists. ##
7343## ------------------------------------ ##
7344_ASBOX
7345 ) |
7346 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007347 ;;
7348esac
Benny Prijonoe2746132008-09-27 13:16:35 +00007349echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
7350echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007351if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007353else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007354 ac_cv_header_sys_ioctl_h=$ac_header_preproc
7355fi
Benny Prijonoe2746132008-09-27 13:16:35 +00007356echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
7357echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007358
7359fi
7360if test $ac_cv_header_sys_ioctl_h = yes; then
7361 cat >>confdefs.h <<\_ACEOF
7362#define PJ_HAS_SYS_IOCTL_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007363_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007364
7365fi
7366
7367
7368if test "${ac_cv_header_sys_select_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00007369 echo "$as_me:$LINENO: checking for sys/select.h" >&5
7370echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007371if test "${ac_cv_header_sys_select_h+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7373fi
Benny Prijonoe2746132008-09-27 13:16:35 +00007374echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
7375echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007376else
7377 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00007378echo "$as_me:$LINENO: checking sys/select.h usability" >&5
7379echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007380cat >conftest.$ac_ext <<_ACEOF
7381/* confdefs.h. */
7382_ACEOF
7383cat confdefs.h >>conftest.$ac_ext
7384cat >>conftest.$ac_ext <<_ACEOF
7385/* end confdefs.h. */
7386$ac_includes_default
7387#include <sys/select.h>
7388_ACEOF
7389rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00007390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7391 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007392 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007393 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007394 rm -f conftest.er1
7395 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00007397 (exit $ac_status); } &&
7398 { ac_try='test -z "$ac_c_werror_flag"
7399 || test ! -s conftest.err'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401 (eval $ac_try) 2>&5
7402 ac_status=$?
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; } &&
7405 { ac_try='test -s conftest.$ac_objext'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 (eval $ac_try) 2>&5
7408 ac_status=$?
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007411 ac_header_compiler=yes
7412else
7413 echo "$as_me: failed program was:" >&5
7414sed 's/^/| /' conftest.$ac_ext >&5
7415
Benny Prijonoe2746132008-09-27 13:16:35 +00007416ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007417fi
Benny Prijonoe2746132008-09-27 13:16:35 +00007418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7419echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7420echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007421
7422# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00007423echo "$as_me:$LINENO: checking sys/select.h presence" >&5
7424echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007425cat >conftest.$ac_ext <<_ACEOF
7426/* confdefs.h. */
7427_ACEOF
7428cat confdefs.h >>conftest.$ac_ext
7429cat >>conftest.$ac_ext <<_ACEOF
7430/* end confdefs.h. */
7431#include <sys/select.h>
7432_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00007433if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007435 ac_status=$?
7436 grep -v '^ *+' conftest.er1 >conftest.err
7437 rm -f conftest.er1
7438 cat conftest.err >&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00007440 (exit $ac_status); } >/dev/null; then
7441 if test -s conftest.err; then
7442 ac_cpp_err=$ac_c_preproc_warn_flag
7443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7444 else
7445 ac_cpp_err=
7446 fi
7447else
7448 ac_cpp_err=yes
7449fi
7450if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007451 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007452else
7453 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007454sed 's/^/| /' conftest.$ac_ext >&5
7455
7456 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007457fi
7458rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00007459echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7460echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007461
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007462# So? What about this header?
7463case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7464 yes:no: )
7465 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
7466echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7467 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
7468echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
7469 ac_header_preproc=yes
7470 ;;
7471 no:yes:* )
7472 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
7473echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
7474 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
7475echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
7476 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
7477echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
7478 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
7479echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
7480 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
7481echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
7482 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
7483echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00007484 (
7485 cat <<\_ASBOX
7486## ------------------------------------ ##
7487## Report this to the pjproject lists. ##
7488## ------------------------------------ ##
7489_ASBOX
7490 ) |
7491 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007492 ;;
7493esac
Benny Prijonoe2746132008-09-27 13:16:35 +00007494echo "$as_me:$LINENO: checking for sys/select.h" >&5
7495echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007496if test "${ac_cv_header_sys_select_h+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007498else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007499 ac_cv_header_sys_select_h=$ac_header_preproc
7500fi
Benny Prijonoe2746132008-09-27 13:16:35 +00007501echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
7502echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007503
7504fi
7505if test $ac_cv_header_sys_select_h = yes; then
7506 cat >>confdefs.h <<\_ACEOF
7507#define PJ_HAS_SYS_SELECT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007508_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007509
7510fi
7511
7512
7513if test "${ac_cv_header_sys_socket_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00007514 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
7515echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007516if test "${ac_cv_header_sys_socket_h+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518fi
Benny Prijonoe2746132008-09-27 13:16:35 +00007519echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
7520echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007521else
7522 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00007523echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
7524echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007525cat >conftest.$ac_ext <<_ACEOF
7526/* confdefs.h. */
7527_ACEOF
7528cat confdefs.h >>conftest.$ac_ext
7529cat >>conftest.$ac_ext <<_ACEOF
7530/* end confdefs.h. */
7531$ac_includes_default
7532#include <sys/socket.h>
7533_ACEOF
7534rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00007535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7536 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007537 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007538 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007539 rm -f conftest.er1
7540 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00007542 (exit $ac_status); } &&
7543 { ac_try='test -z "$ac_c_werror_flag"
7544 || test ! -s conftest.err'
7545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546 (eval $ac_try) 2>&5
7547 ac_status=$?
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); }; } &&
7550 { ac_try='test -s conftest.$ac_objext'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552 (eval $ac_try) 2>&5
7553 ac_status=$?
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007556 ac_header_compiler=yes
7557else
7558 echo "$as_me: failed program was:" >&5
7559sed 's/^/| /' conftest.$ac_ext >&5
7560
Benny Prijonoe2746132008-09-27 13:16:35 +00007561ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007562fi
Benny Prijonoe2746132008-09-27 13:16:35 +00007563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7564echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7565echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007566
7567# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00007568echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
7569echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007570cat >conftest.$ac_ext <<_ACEOF
7571/* confdefs.h. */
7572_ACEOF
7573cat confdefs.h >>conftest.$ac_ext
7574cat >>conftest.$ac_ext <<_ACEOF
7575/* end confdefs.h. */
7576#include <sys/socket.h>
7577_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00007578if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007580 ac_status=$?
7581 grep -v '^ *+' conftest.er1 >conftest.err
7582 rm -f conftest.er1
7583 cat conftest.err >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00007585 (exit $ac_status); } >/dev/null; then
7586 if test -s conftest.err; then
7587 ac_cpp_err=$ac_c_preproc_warn_flag
7588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7589 else
7590 ac_cpp_err=
7591 fi
7592else
7593 ac_cpp_err=yes
7594fi
7595if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007596 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007597else
7598 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007599sed 's/^/| /' conftest.$ac_ext >&5
7600
7601 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007602fi
7603rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00007604echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7605echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007606
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007607# So? What about this header?
7608case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7609 yes:no: )
7610 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
7611echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7612 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
7613echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
7614 ac_header_preproc=yes
7615 ;;
7616 no:yes:* )
7617 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
7618echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
7619 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
7620echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
7621 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
7622echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
7623 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
7624echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
7625 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
7626echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
7627 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
7628echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00007629 (
7630 cat <<\_ASBOX
7631## ------------------------------------ ##
7632## Report this to the pjproject lists. ##
7633## ------------------------------------ ##
7634_ASBOX
7635 ) |
7636 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007637 ;;
7638esac
Benny Prijonoe2746132008-09-27 13:16:35 +00007639echo "$as_me:$LINENO: checking for sys/socket.h" >&5
7640echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007641if test "${ac_cv_header_sys_socket_h+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007643else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007644 ac_cv_header_sys_socket_h=$ac_header_preproc
7645fi
Benny Prijonoe2746132008-09-27 13:16:35 +00007646echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
7647echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007648
7649fi
7650if test $ac_cv_header_sys_socket_h = yes; then
7651 cat >>confdefs.h <<\_ACEOF
7652#define PJ_HAS_SYS_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007653_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007654
7655fi
7656
7657
7658if test "${ac_cv_header_sys_time_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00007659 echo "$as_me:$LINENO: checking for sys/time.h" >&5
7660echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007661if test "${ac_cv_header_sys_time_h+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7663fi
Benny Prijonoe2746132008-09-27 13:16:35 +00007664echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7665echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007666else
7667 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00007668echo "$as_me:$LINENO: checking sys/time.h usability" >&5
7669echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007670cat >conftest.$ac_ext <<_ACEOF
7671/* confdefs.h. */
7672_ACEOF
7673cat confdefs.h >>conftest.$ac_ext
7674cat >>conftest.$ac_ext <<_ACEOF
7675/* end confdefs.h. */
7676$ac_includes_default
7677#include <sys/time.h>
7678_ACEOF
7679rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00007680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7681 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007682 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007683 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007684 rm -f conftest.er1
7685 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00007687 (exit $ac_status); } &&
7688 { ac_try='test -z "$ac_c_werror_flag"
7689 || test ! -s conftest.err'
7690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691 (eval $ac_try) 2>&5
7692 ac_status=$?
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); }; } &&
7695 { ac_try='test -s conftest.$ac_objext'
7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 (eval $ac_try) 2>&5
7698 ac_status=$?
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007701 ac_header_compiler=yes
7702else
7703 echo "$as_me: failed program was:" >&5
7704sed 's/^/| /' conftest.$ac_ext >&5
7705
Benny Prijonoe2746132008-09-27 13:16:35 +00007706ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007707fi
Benny Prijonoe2746132008-09-27 13:16:35 +00007708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7709echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7710echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007711
7712# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00007713echo "$as_me:$LINENO: checking sys/time.h presence" >&5
7714echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007715cat >conftest.$ac_ext <<_ACEOF
7716/* confdefs.h. */
7717_ACEOF
7718cat confdefs.h >>conftest.$ac_ext
7719cat >>conftest.$ac_ext <<_ACEOF
7720/* end confdefs.h. */
7721#include <sys/time.h>
7722_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00007723if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007725 ac_status=$?
7726 grep -v '^ *+' conftest.er1 >conftest.err
7727 rm -f conftest.er1
7728 cat conftest.err >&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00007730 (exit $ac_status); } >/dev/null; then
7731 if test -s conftest.err; then
7732 ac_cpp_err=$ac_c_preproc_warn_flag
7733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7734 else
7735 ac_cpp_err=
7736 fi
7737else
7738 ac_cpp_err=yes
7739fi
7740if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007741 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007742else
7743 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007744sed 's/^/| /' conftest.$ac_ext >&5
7745
7746 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007747fi
7748rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00007749echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7750echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007751
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007752# So? What about this header?
7753case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7754 yes:no: )
7755 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
7756echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7757 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
7758echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
7759 ac_header_preproc=yes
7760 ;;
7761 no:yes:* )
7762 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
7763echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
7764 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
7765echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
7766 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
7767echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
7768 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
7769echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
7770 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
7771echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
7772 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
7773echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00007774 (
7775 cat <<\_ASBOX
7776## ------------------------------------ ##
7777## Report this to the pjproject lists. ##
7778## ------------------------------------ ##
7779_ASBOX
7780 ) |
7781 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007782 ;;
7783esac
Benny Prijonoe2746132008-09-27 13:16:35 +00007784echo "$as_me:$LINENO: checking for sys/time.h" >&5
7785echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007786if test "${ac_cv_header_sys_time_h+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007788else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007789 ac_cv_header_sys_time_h=$ac_header_preproc
7790fi
Benny Prijonoe2746132008-09-27 13:16:35 +00007791echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7792echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007793
7794fi
7795if test $ac_cv_header_sys_time_h = yes; then
7796 cat >>confdefs.h <<\_ACEOF
7797#define PJ_HAS_SYS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007798_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007799
7800fi
7801
7802
7803if test "${ac_cv_header_sys_timeb_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00007804 echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
7805echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007806if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7808fi
Benny Prijonoe2746132008-09-27 13:16:35 +00007809echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7810echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007811else
7812 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00007813echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5
7814echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007815cat >conftest.$ac_ext <<_ACEOF
7816/* confdefs.h. */
7817_ACEOF
7818cat confdefs.h >>conftest.$ac_ext
7819cat >>conftest.$ac_ext <<_ACEOF
7820/* end confdefs.h. */
7821$ac_includes_default
7822#include <sys/timeb.h>
7823_ACEOF
7824rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00007825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7826 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007827 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007828 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007829 rm -f conftest.er1
7830 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00007832 (exit $ac_status); } &&
7833 { ac_try='test -z "$ac_c_werror_flag"
7834 || test ! -s conftest.err'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 (eval $ac_try) 2>&5
7837 ac_status=$?
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; } &&
7840 { ac_try='test -s conftest.$ac_objext'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 (eval $ac_try) 2>&5
7843 ac_status=$?
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007846 ac_header_compiler=yes
7847else
7848 echo "$as_me: failed program was:" >&5
7849sed 's/^/| /' conftest.$ac_ext >&5
7850
Benny Prijonoe2746132008-09-27 13:16:35 +00007851ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007852fi
Benny Prijonoe2746132008-09-27 13:16:35 +00007853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7854echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7855echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007856
7857# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00007858echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5
7859echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007860cat >conftest.$ac_ext <<_ACEOF
7861/* confdefs.h. */
7862_ACEOF
7863cat confdefs.h >>conftest.$ac_ext
7864cat >>conftest.$ac_ext <<_ACEOF
7865/* end confdefs.h. */
7866#include <sys/timeb.h>
7867_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00007868if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00007875 (exit $ac_status); } >/dev/null; then
7876 if test -s conftest.err; then
7877 ac_cpp_err=$ac_c_preproc_warn_flag
7878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7879 else
7880 ac_cpp_err=
7881 fi
7882else
7883 ac_cpp_err=yes
7884fi
7885if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007886 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007887else
7888 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007889sed 's/^/| /' conftest.$ac_ext >&5
7890
7891 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007892fi
7893rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00007894echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7895echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007896
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007897# So? What about this header?
7898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7899 yes:no: )
7900 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7901echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7902 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5
7903echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;}
7904 ac_header_preproc=yes
7905 ;;
7906 no:yes:* )
7907 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5
7908echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;}
7909 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5
7910echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;}
7911 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5
7912echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;}
7913 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5
7914echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;}
7915 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5
7916echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;}
7917 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5
7918echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00007919 (
7920 cat <<\_ASBOX
7921## ------------------------------------ ##
7922## Report this to the pjproject lists. ##
7923## ------------------------------------ ##
7924_ASBOX
7925 ) |
7926 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007927 ;;
7928esac
Benny Prijonoe2746132008-09-27 13:16:35 +00007929echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
7930echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007931if test "${ac_cv_header_sys_timeb_h+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007933else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007934 ac_cv_header_sys_timeb_h=$ac_header_preproc
7935fi
Benny Prijonoe2746132008-09-27 13:16:35 +00007936echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
7937echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007938
7939fi
7940if test $ac_cv_header_sys_timeb_h = yes; then
7941 cat >>confdefs.h <<\_ACEOF
7942#define PJ_HAS_SYS_TIMEB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007943_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007944
7945fi
7946
7947
7948if test "${ac_cv_header_sys_types_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00007949 echo "$as_me:$LINENO: checking for sys/types.h" >&5
7950echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007951if test "${ac_cv_header_sys_types_h+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7953fi
Benny Prijonoe2746132008-09-27 13:16:35 +00007954echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
7955echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007956else
7957 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00007958echo "$as_me:$LINENO: checking sys/types.h usability" >&5
7959echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007960cat >conftest.$ac_ext <<_ACEOF
7961/* confdefs.h. */
7962_ACEOF
7963cat confdefs.h >>conftest.$ac_ext
7964cat >>conftest.$ac_ext <<_ACEOF
7965/* end confdefs.h. */
7966$ac_includes_default
7967#include <sys/types.h>
7968_ACEOF
7969rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00007970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007972 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007973 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007974 rm -f conftest.er1
7975 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00007977 (exit $ac_status); } &&
7978 { ac_try='test -z "$ac_c_werror_flag"
7979 || test ! -s conftest.err'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981 (eval $ac_try) 2>&5
7982 ac_status=$?
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; } &&
7985 { ac_try='test -s conftest.$ac_objext'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987 (eval $ac_try) 2>&5
7988 ac_status=$?
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007991 ac_header_compiler=yes
7992else
7993 echo "$as_me: failed program was:" >&5
7994sed 's/^/| /' conftest.$ac_ext >&5
7995
Benny Prijonoe2746132008-09-27 13:16:35 +00007996ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007997fi
Benny Prijonoe2746132008-09-27 13:16:35 +00007998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7999echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8000echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008001
8002# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00008003echo "$as_me:$LINENO: checking sys/types.h presence" >&5
8004echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008005cat >conftest.$ac_ext <<_ACEOF
8006/* confdefs.h. */
8007_ACEOF
8008cat confdefs.h >>conftest.$ac_ext
8009cat >>conftest.$ac_ext <<_ACEOF
8010/* end confdefs.h. */
8011#include <sys/types.h>
8012_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00008013if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008015 ac_status=$?
8016 grep -v '^ *+' conftest.er1 >conftest.err
8017 rm -f conftest.er1
8018 cat conftest.err >&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00008020 (exit $ac_status); } >/dev/null; then
8021 if test -s conftest.err; then
8022 ac_cpp_err=$ac_c_preproc_warn_flag
8023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8024 else
8025 ac_cpp_err=
8026 fi
8027else
8028 ac_cpp_err=yes
8029fi
8030if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008031 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008032else
8033 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008034sed 's/^/| /' conftest.$ac_ext >&5
8035
8036 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008037fi
8038rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00008039echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8040echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008041
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008042# So? What about this header?
8043case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8044 yes:no: )
8045 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
8046echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8047 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
8048echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
8049 ac_header_preproc=yes
8050 ;;
8051 no:yes:* )
8052 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
8053echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
8054 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
8055echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
8056 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
8057echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
8058 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
8059echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
8060 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
8061echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
8062 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
8063echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00008064 (
8065 cat <<\_ASBOX
8066## ------------------------------------ ##
8067## Report this to the pjproject lists. ##
8068## ------------------------------------ ##
8069_ASBOX
8070 ) |
8071 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008072 ;;
8073esac
Benny Prijonoe2746132008-09-27 13:16:35 +00008074echo "$as_me:$LINENO: checking for sys/types.h" >&5
8075echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008076if test "${ac_cv_header_sys_types_h+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008078else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008079 ac_cv_header_sys_types_h=$ac_header_preproc
8080fi
Benny Prijonoe2746132008-09-27 13:16:35 +00008081echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
8082echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008083
8084fi
8085if test $ac_cv_header_sys_types_h = yes; then
8086 cat >>confdefs.h <<\_ACEOF
8087#define PJ_HAS_SYS_TYPES_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008088_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008089
8090fi
8091
8092
8093if test "${ac_cv_header_time_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00008094 echo "$as_me:$LINENO: checking for time.h" >&5
8095echo $ECHO_N "checking for time.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008096if test "${ac_cv_header_time_h+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8098fi
Benny Prijonoe2746132008-09-27 13:16:35 +00008099echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
8100echo "${ECHO_T}$ac_cv_header_time_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008101else
8102 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00008103echo "$as_me:$LINENO: checking time.h usability" >&5
8104echo $ECHO_N "checking time.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008105cat >conftest.$ac_ext <<_ACEOF
8106/* confdefs.h. */
8107_ACEOF
8108cat confdefs.h >>conftest.$ac_ext
8109cat >>conftest.$ac_ext <<_ACEOF
8110/* end confdefs.h. */
8111$ac_includes_default
8112#include <time.h>
8113_ACEOF
8114rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00008115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8116 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008117 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008118 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008119 rm -f conftest.er1
8120 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00008122 (exit $ac_status); } &&
8123 { ac_try='test -z "$ac_c_werror_flag"
8124 || test ! -s conftest.err'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 (eval $ac_try) 2>&5
8127 ac_status=$?
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try='test -s conftest.$ac_objext'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 (eval $ac_try) 2>&5
8133 ac_status=$?
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008136 ac_header_compiler=yes
8137else
8138 echo "$as_me: failed program was:" >&5
8139sed 's/^/| /' conftest.$ac_ext >&5
8140
Benny Prijonoe2746132008-09-27 13:16:35 +00008141ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008142fi
Benny Prijonoe2746132008-09-27 13:16:35 +00008143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8144echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8145echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008146
8147# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00008148echo "$as_me:$LINENO: checking time.h presence" >&5
8149echo $ECHO_N "checking time.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008150cat >conftest.$ac_ext <<_ACEOF
8151/* confdefs.h. */
8152_ACEOF
8153cat confdefs.h >>conftest.$ac_ext
8154cat >>conftest.$ac_ext <<_ACEOF
8155/* end confdefs.h. */
8156#include <time.h>
8157_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00008158if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008160 ac_status=$?
8161 grep -v '^ *+' conftest.er1 >conftest.err
8162 rm -f conftest.er1
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00008165 (exit $ac_status); } >/dev/null; then
8166 if test -s conftest.err; then
8167 ac_cpp_err=$ac_c_preproc_warn_flag
8168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8169 else
8170 ac_cpp_err=
8171 fi
8172else
8173 ac_cpp_err=yes
8174fi
8175if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008176 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008177else
8178 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008179sed 's/^/| /' conftest.$ac_ext >&5
8180
8181 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008182fi
8183rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00008184echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8185echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008186
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008187# So? What about this header?
8188case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8189 yes:no: )
8190 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
8191echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
8193echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
8194 ac_header_preproc=yes
8195 ;;
8196 no:yes:* )
8197 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
8198echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
8200echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
8201 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
8202echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
8204echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
8206echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
8208echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00008209 (
8210 cat <<\_ASBOX
8211## ------------------------------------ ##
8212## Report this to the pjproject lists. ##
8213## ------------------------------------ ##
8214_ASBOX
8215 ) |
8216 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008217 ;;
8218esac
Benny Prijonoe2746132008-09-27 13:16:35 +00008219echo "$as_me:$LINENO: checking for time.h" >&5
8220echo $ECHO_N "checking for time.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008221if test "${ac_cv_header_time_h+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008223else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008224 ac_cv_header_time_h=$ac_header_preproc
8225fi
Benny Prijonoe2746132008-09-27 13:16:35 +00008226echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
8227echo "${ECHO_T}$ac_cv_header_time_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008228
8229fi
8230if test $ac_cv_header_time_h = yes; then
8231 cat >>confdefs.h <<\_ACEOF
8232#define PJ_HAS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008233_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008234
8235fi
8236
8237
8238if test "${ac_cv_header_unistd_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00008239 echo "$as_me:$LINENO: checking for unistd.h" >&5
8240echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008241if test "${ac_cv_header_unistd_h+set}" = set; then
8242 echo $ECHO_N "(cached) $ECHO_C" >&6
8243fi
Benny Prijonoe2746132008-09-27 13:16:35 +00008244echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
8245echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008246else
8247 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00008248echo "$as_me:$LINENO: checking unistd.h usability" >&5
8249echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008250cat >conftest.$ac_ext <<_ACEOF
8251/* confdefs.h. */
8252_ACEOF
8253cat confdefs.h >>conftest.$ac_ext
8254cat >>conftest.$ac_ext <<_ACEOF
8255/* end confdefs.h. */
8256$ac_includes_default
8257#include <unistd.h>
8258_ACEOF
8259rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00008260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8261 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008262 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008263 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008264 rm -f conftest.er1
8265 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00008267 (exit $ac_status); } &&
8268 { ac_try='test -z "$ac_c_werror_flag"
8269 || test ! -s conftest.err'
8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271 (eval $ac_try) 2>&5
8272 ac_status=$?
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; } &&
8275 { ac_try='test -s conftest.$ac_objext'
8276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277 (eval $ac_try) 2>&5
8278 ac_status=$?
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008281 ac_header_compiler=yes
8282else
8283 echo "$as_me: failed program was:" >&5
8284sed 's/^/| /' conftest.$ac_ext >&5
8285
Benny Prijonoe2746132008-09-27 13:16:35 +00008286ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008287fi
Benny Prijonoe2746132008-09-27 13:16:35 +00008288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8289echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8290echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008291
8292# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00008293echo "$as_me:$LINENO: checking unistd.h presence" >&5
8294echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008295cat >conftest.$ac_ext <<_ACEOF
8296/* confdefs.h. */
8297_ACEOF
8298cat confdefs.h >>conftest.$ac_ext
8299cat >>conftest.$ac_ext <<_ACEOF
8300/* end confdefs.h. */
8301#include <unistd.h>
8302_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00008303if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008305 ac_status=$?
8306 grep -v '^ *+' conftest.er1 >conftest.err
8307 rm -f conftest.er1
8308 cat conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00008310 (exit $ac_status); } >/dev/null; then
8311 if test -s conftest.err; then
8312 ac_cpp_err=$ac_c_preproc_warn_flag
8313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8314 else
8315 ac_cpp_err=
8316 fi
8317else
8318 ac_cpp_err=yes
8319fi
8320if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008321 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008322else
8323 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008324sed 's/^/| /' conftest.$ac_ext >&5
8325
8326 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008327fi
8328rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00008329echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8330echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008331
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008332# So? What about this header?
8333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8334 yes:no: )
8335 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
8336echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8337 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
8338echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
8339 ac_header_preproc=yes
8340 ;;
8341 no:yes:* )
8342 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
8343echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
8344 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
8345echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
8346 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
8347echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
8348 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
8349echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
8350 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
8351echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
8352 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
8353echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00008354 (
8355 cat <<\_ASBOX
8356## ------------------------------------ ##
8357## Report this to the pjproject lists. ##
8358## ------------------------------------ ##
8359_ASBOX
8360 ) |
8361 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008362 ;;
8363esac
Benny Prijonoe2746132008-09-27 13:16:35 +00008364echo "$as_me:$LINENO: checking for unistd.h" >&5
8365echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008366if test "${ac_cv_header_unistd_h+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008368else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008369 ac_cv_header_unistd_h=$ac_header_preproc
8370fi
Benny Prijonoe2746132008-09-27 13:16:35 +00008371echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
8372echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008373
8374fi
8375if test $ac_cv_header_unistd_h = yes; then
8376 cat >>confdefs.h <<\_ACEOF
8377#define PJ_HAS_UNISTD_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008378_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008379
8380fi
8381
8382
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008383if test "${ac_cv_header_winsock_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00008384 echo "$as_me:$LINENO: checking for winsock.h" >&5
8385echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008386if test "${ac_cv_header_winsock_h+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8388fi
Benny Prijonoe2746132008-09-27 13:16:35 +00008389echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8390echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008391else
8392 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00008393echo "$as_me:$LINENO: checking winsock.h usability" >&5
8394echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008395cat >conftest.$ac_ext <<_ACEOF
8396/* confdefs.h. */
8397_ACEOF
8398cat confdefs.h >>conftest.$ac_ext
8399cat >>conftest.$ac_ext <<_ACEOF
8400/* end confdefs.h. */
8401$ac_includes_default
8402#include <winsock.h>
8403_ACEOF
8404rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00008405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8406 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008407 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008408 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008409 rm -f conftest.er1
8410 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00008412 (exit $ac_status); } &&
8413 { ac_try='test -z "$ac_c_werror_flag"
8414 || test ! -s conftest.err'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; } &&
8420 { ac_try='test -s conftest.$ac_objext'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 (eval $ac_try) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008426 ac_header_compiler=yes
8427else
8428 echo "$as_me: failed program was:" >&5
8429sed 's/^/| /' conftest.$ac_ext >&5
8430
Benny Prijonoe2746132008-09-27 13:16:35 +00008431ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008432fi
Benny Prijonoe2746132008-09-27 13:16:35 +00008433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8434echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8435echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008436
8437# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00008438echo "$as_me:$LINENO: checking winsock.h presence" >&5
8439echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008440cat >conftest.$ac_ext <<_ACEOF
8441/* confdefs.h. */
8442_ACEOF
8443cat confdefs.h >>conftest.$ac_ext
8444cat >>conftest.$ac_ext <<_ACEOF
8445/* end confdefs.h. */
8446#include <winsock.h>
8447_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00008448if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008450 ac_status=$?
8451 grep -v '^ *+' conftest.er1 >conftest.err
8452 rm -f conftest.er1
8453 cat conftest.err >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00008455 (exit $ac_status); } >/dev/null; then
8456 if test -s conftest.err; then
8457 ac_cpp_err=$ac_c_preproc_warn_flag
8458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8459 else
8460 ac_cpp_err=
8461 fi
8462else
8463 ac_cpp_err=yes
8464fi
8465if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008466 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008467else
8468 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008469sed 's/^/| /' conftest.$ac_ext >&5
8470
8471 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008472fi
8473rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00008474echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8475echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008476
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008477# So? What about this header?
8478case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8479 yes:no: )
8480 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
8481echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8482 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
8483echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
8484 ac_header_preproc=yes
8485 ;;
8486 no:yes:* )
8487 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
8488echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
8489 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
8490echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
8491 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
8492echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
8493 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
8494echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
8495 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
8496echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
8497 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
8498echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00008499 (
8500 cat <<\_ASBOX
8501## ------------------------------------ ##
8502## Report this to the pjproject lists. ##
8503## ------------------------------------ ##
8504_ASBOX
8505 ) |
8506 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008507 ;;
8508esac
Benny Prijonoe2746132008-09-27 13:16:35 +00008509echo "$as_me:$LINENO: checking for winsock.h" >&5
8510echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008511if test "${ac_cv_header_winsock_h+set}" = set; then
8512 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008513else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008514 ac_cv_header_winsock_h=$ac_header_preproc
8515fi
Benny Prijonoe2746132008-09-27 13:16:35 +00008516echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8517echo "${ECHO_T}$ac_cv_header_winsock_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008518
8519fi
8520if test $ac_cv_header_winsock_h = yes; then
8521 cat >>confdefs.h <<\_ACEOF
8522#define PJ_HAS_WINSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008523_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008524
8525fi
8526
8527
8528if test "${ac_cv_header_winsock2_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00008529 echo "$as_me:$LINENO: checking for winsock2.h" >&5
8530echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008531if test "${ac_cv_header_winsock2_h+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8533fi
Benny Prijonoe2746132008-09-27 13:16:35 +00008534echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
8535echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008536else
8537 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00008538echo "$as_me:$LINENO: checking winsock2.h usability" >&5
8539echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008540cat >conftest.$ac_ext <<_ACEOF
8541/* confdefs.h. */
8542_ACEOF
8543cat confdefs.h >>conftest.$ac_ext
8544cat >>conftest.$ac_ext <<_ACEOF
8545/* end confdefs.h. */
8546$ac_includes_default
8547#include <winsock2.h>
8548_ACEOF
8549rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00008550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8551 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008552 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008553 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008554 rm -f conftest.er1
8555 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00008557 (exit $ac_status); } &&
8558 { ac_try='test -z "$ac_c_werror_flag"
8559 || test ! -s conftest.err'
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 (eval $ac_try) 2>&5
8562 ac_status=$?
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; } &&
8565 { ac_try='test -s conftest.$ac_objext'
8566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 (eval $ac_try) 2>&5
8568 ac_status=$?
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008571 ac_header_compiler=yes
8572else
8573 echo "$as_me: failed program was:" >&5
8574sed 's/^/| /' conftest.$ac_ext >&5
8575
Benny Prijonoe2746132008-09-27 13:16:35 +00008576ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008577fi
Benny Prijonoe2746132008-09-27 13:16:35 +00008578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8579echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8580echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008581
8582# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00008583echo "$as_me:$LINENO: checking winsock2.h presence" >&5
8584echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008585cat >conftest.$ac_ext <<_ACEOF
8586/* confdefs.h. */
8587_ACEOF
8588cat confdefs.h >>conftest.$ac_ext
8589cat >>conftest.$ac_ext <<_ACEOF
8590/* end confdefs.h. */
8591#include <winsock2.h>
8592_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00008593if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008595 ac_status=$?
8596 grep -v '^ *+' conftest.er1 >conftest.err
8597 rm -f conftest.er1
8598 cat conftest.err >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00008600 (exit $ac_status); } >/dev/null; then
8601 if test -s conftest.err; then
8602 ac_cpp_err=$ac_c_preproc_warn_flag
8603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8604 else
8605 ac_cpp_err=
8606 fi
8607else
8608 ac_cpp_err=yes
8609fi
8610if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008611 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008612else
8613 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008614sed 's/^/| /' conftest.$ac_ext >&5
8615
8616 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008617fi
8618rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00008619echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8620echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008621
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008622# So? What about this header?
8623case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8624 yes:no: )
8625 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
8626echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8627 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
8628echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
8629 ac_header_preproc=yes
8630 ;;
8631 no:yes:* )
8632 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
8633echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
8634 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
8635echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
8636 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
8637echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
8638 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
8639echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
8640 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
8641echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
8642 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
8643echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00008644 (
8645 cat <<\_ASBOX
8646## ------------------------------------ ##
8647## Report this to the pjproject lists. ##
8648## ------------------------------------ ##
8649_ASBOX
8650 ) |
8651 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008652 ;;
8653esac
Benny Prijonoe2746132008-09-27 13:16:35 +00008654echo "$as_me:$LINENO: checking for winsock2.h" >&5
8655echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008656if test "${ac_cv_header_winsock2_h+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008658else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008659 ac_cv_header_winsock2_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008660fi
Benny Prijonoe2746132008-09-27 13:16:35 +00008661echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
8662echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008663
8664fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008665if test $ac_cv_header_winsock2_h = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008666 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008667#define PJ_HAS_WINSOCK2_H 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008668_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008669
8670fi
8671
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008672
Benny Prijonoe2746132008-09-27 13:16:35 +00008673echo "$as_me:$LINENO: checking for mswsock.h" >&5
8674echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6
Benny Prijonoa9948e62008-03-25 14:03:01 +00008675if test "${ac_cv_header_mswsock_h+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677else
8678 cat >conftest.$ac_ext <<_ACEOF
8679/* confdefs.h. */
8680_ACEOF
8681cat confdefs.h >>conftest.$ac_ext
8682cat >>conftest.$ac_ext <<_ACEOF
8683/* end confdefs.h. */
8684#if PJ_HAS_WINSOCK2_H
8685 # include <winsock2.h>
8686 #elif PJ_HAS_WINSOCK_H
8687 # include <winsock.h>
8688 #endif
8689
8690
8691#include <mswsock.h>
8692_ACEOF
8693rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00008694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8695 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9948e62008-03-25 14:03:01 +00008696 ac_status=$?
8697 grep -v '^ *+' conftest.er1 >conftest.err
8698 rm -f conftest.er1
8699 cat conftest.err >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00008701 (exit $ac_status); } &&
8702 { ac_try='test -z "$ac_c_werror_flag"
8703 || test ! -s conftest.err'
8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705 (eval $ac_try) 2>&5
8706 ac_status=$?
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; } &&
8709 { ac_try='test -s conftest.$ac_objext'
8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711 (eval $ac_try) 2>&5
8712 ac_status=$?
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; }; then
Benny Prijonoa9948e62008-03-25 14:03:01 +00008715 ac_cv_header_mswsock_h=yes
8716else
8717 echo "$as_me: failed program was:" >&5
8718sed 's/^/| /' conftest.$ac_ext >&5
8719
Benny Prijonoe2746132008-09-27 13:16:35 +00008720ac_cv_header_mswsock_h=no
Benny Prijonoa9948e62008-03-25 14:03:01 +00008721fi
Benny Prijonoe2746132008-09-27 13:16:35 +00008722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9948e62008-03-25 14:03:01 +00008723fi
Benny Prijonoe2746132008-09-27 13:16:35 +00008724echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
8725echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6
Benny Prijonoa9948e62008-03-25 14:03:01 +00008726if test $ac_cv_header_mswsock_h = yes; then
8727 cat >>confdefs.h <<\_ACEOF
8728#define PJ_HAS_MSWSOCK_H 1
8729_ACEOF
8730
8731fi
8732
8733
Benny Prijonoe2746132008-09-27 13:16:35 +00008734if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
8735 echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5
8736echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6
8737if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8739fi
8740echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5
8741echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6
8742else
8743 # Is the header compilable?
8744echo "$as_me:$LINENO: checking ws2tcpip.h usability" >&5
8745echo $ECHO_N "checking ws2tcpip.h usability... $ECHO_C" >&6
8746cat >conftest.$ac_ext <<_ACEOF
8747/* confdefs.h. */
8748_ACEOF
8749cat confdefs.h >>conftest.$ac_ext
8750cat >>conftest.$ac_ext <<_ACEOF
8751/* end confdefs.h. */
8752$ac_includes_default
8753#include <ws2tcpip.h>
8754_ACEOF
8755rm -f conftest.$ac_objext
8756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8757 (eval $ac_compile) 2>conftest.er1
8758 ac_status=$?
8759 grep -v '^ *+' conftest.er1 >conftest.err
8760 rm -f conftest.er1
8761 cat conftest.err >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } &&
8764 { ac_try='test -z "$ac_c_werror_flag"
8765 || test ! -s conftest.err'
8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767 (eval $ac_try) 2>&5
8768 ac_status=$?
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; } &&
8771 { ac_try='test -s conftest.$ac_objext'
8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773 (eval $ac_try) 2>&5
8774 ac_status=$?
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; }; then
8777 ac_header_compiler=yes
8778else
8779 echo "$as_me: failed program was:" >&5
8780sed 's/^/| /' conftest.$ac_ext >&5
8781
8782ac_header_compiler=no
8783fi
8784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8785echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8786echo "${ECHO_T}$ac_header_compiler" >&6
8787
8788# Is the header present?
8789echo "$as_me:$LINENO: checking ws2tcpip.h presence" >&5
8790echo $ECHO_N "checking ws2tcpip.h presence... $ECHO_C" >&6
8791cat >conftest.$ac_ext <<_ACEOF
8792/* confdefs.h. */
8793_ACEOF
8794cat confdefs.h >>conftest.$ac_ext
8795cat >>conftest.$ac_ext <<_ACEOF
8796/* end confdefs.h. */
8797#include <ws2tcpip.h>
8798_ACEOF
8799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8801 ac_status=$?
8802 grep -v '^ *+' conftest.er1 >conftest.err
8803 rm -f conftest.er1
8804 cat conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } >/dev/null; then
8807 if test -s conftest.err; then
8808 ac_cpp_err=$ac_c_preproc_warn_flag
8809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8810 else
8811 ac_cpp_err=
8812 fi
8813else
8814 ac_cpp_err=yes
8815fi
8816if test -z "$ac_cpp_err"; then
8817 ac_header_preproc=yes
8818else
8819 echo "$as_me: failed program was:" >&5
8820sed 's/^/| /' conftest.$ac_ext >&5
8821
8822 ac_header_preproc=no
8823fi
8824rm -f conftest.err conftest.$ac_ext
8825echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8826echo "${ECHO_T}$ac_header_preproc" >&6
8827
8828# So? What about this header?
8829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8830 yes:no: )
8831 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&5
8832echo "$as_me: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8833 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&5
8834echo "$as_me: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&2;}
8835 ac_header_preproc=yes
8836 ;;
8837 no:yes:* )
8838 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: present but cannot be compiled" >&5
8839echo "$as_me: WARNING: ws2tcpip.h: present but cannot be compiled" >&2;}
8840 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&5
8841echo "$as_me: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&2;}
8842 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: see the Autoconf documentation" >&5
8843echo "$as_me: WARNING: ws2tcpip.h: see the Autoconf documentation" >&2;}
8844 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&5
8845echo "$as_me: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&2;}
8846 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&5
8847echo "$as_me: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&2;}
8848 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&5
8849echo "$as_me: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&2;}
8850 (
8851 cat <<\_ASBOX
8852## ------------------------------------ ##
8853## Report this to the pjproject lists. ##
8854## ------------------------------------ ##
8855_ASBOX
8856 ) |
8857 sed "s/^/$as_me: WARNING: /" >&2
8858 ;;
8859esac
8860echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5
8861echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6
8862if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
8864else
8865 ac_cv_header_ws2tcpip_h=$ac_header_preproc
8866fi
8867echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5
8868echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6
8869
8870fi
8871if test $ac_cv_header_ws2tcpip_h = yes; then
8872 cat >>confdefs.h <<\_ACEOF
8873#define PJ_HAS_WS2TCPIP_H 1
8874_ACEOF
8875
8876fi
8877
8878
Benny Prijono4e48b512007-05-16 13:41:00 +00008879if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00008880 echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
8881echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008882if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8883 echo $ECHO_N "(cached) $ECHO_C" >&6
8884fi
Benny Prijonoe2746132008-09-27 13:16:35 +00008885echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
8886echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008887else
8888 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00008889echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
8890echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008891cat >conftest.$ac_ext <<_ACEOF
8892/* confdefs.h. */
8893_ACEOF
8894cat confdefs.h >>conftest.$ac_ext
8895cat >>conftest.$ac_ext <<_ACEOF
8896/* end confdefs.h. */
8897$ac_includes_default
8898#include <uuid/uuid.h>
8899_ACEOF
8900rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00008901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8902 (eval $ac_compile) 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00008903 ac_status=$?
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00008908 (exit $ac_status); } &&
8909 { ac_try='test -z "$ac_c_werror_flag"
8910 || test ! -s conftest.err'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 (eval $ac_try) 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; } &&
8916 { ac_try='test -s conftest.$ac_objext'
8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918 (eval $ac_try) 2>&5
8919 ac_status=$?
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; }; then
Benny Prijono4e48b512007-05-16 13:41:00 +00008922 ac_header_compiler=yes
8923else
8924 echo "$as_me: failed program was:" >&5
8925sed 's/^/| /' conftest.$ac_ext >&5
8926
Benny Prijonoe2746132008-09-27 13:16:35 +00008927ac_header_compiler=no
Benny Prijono4e48b512007-05-16 13:41:00 +00008928fi
Benny Prijonoe2746132008-09-27 13:16:35 +00008929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8930echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8931echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008932
8933# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00008934echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
8935echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008936cat >conftest.$ac_ext <<_ACEOF
8937/* confdefs.h. */
8938_ACEOF
8939cat confdefs.h >>conftest.$ac_ext
8940cat >>conftest.$ac_ext <<_ACEOF
8941/* end confdefs.h. */
8942#include <uuid/uuid.h>
8943_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00008944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00008946 ac_status=$?
8947 grep -v '^ *+' conftest.er1 >conftest.err
8948 rm -f conftest.er1
8949 cat conftest.err >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00008951 (exit $ac_status); } >/dev/null; then
8952 if test -s conftest.err; then
8953 ac_cpp_err=$ac_c_preproc_warn_flag
8954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8955 else
8956 ac_cpp_err=
8957 fi
8958else
8959 ac_cpp_err=yes
8960fi
8961if test -z "$ac_cpp_err"; then
Benny Prijono4e48b512007-05-16 13:41:00 +00008962 ac_header_preproc=yes
8963else
8964 echo "$as_me: failed program was:" >&5
8965sed 's/^/| /' conftest.$ac_ext >&5
8966
8967 ac_header_preproc=no
8968fi
8969rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00008970echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8971echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00008972
8973# So? What about this header?
8974case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8975 yes:no: )
8976 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
8977echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8978 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
8979echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
8980 ac_header_preproc=yes
8981 ;;
8982 no:yes:* )
8983 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
8984echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
8985 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
8986echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
8987 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
8988echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
8989 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
8990echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
8991 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
8992echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
8993 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
8994echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00008995 (
8996 cat <<\_ASBOX
8997## ------------------------------------ ##
8998## Report this to the pjproject lists. ##
8999## ------------------------------------ ##
9000_ASBOX
9001 ) |
9002 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono4e48b512007-05-16 13:41:00 +00009003 ;;
9004esac
Benny Prijonoe2746132008-09-27 13:16:35 +00009005echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
9006echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00009007if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9009else
9010 ac_cv_header_uuid_uuid_h=$ac_header_preproc
9011fi
Benny Prijonoe2746132008-09-27 13:16:35 +00009012echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
9013echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00009014
9015fi
9016if test $ac_cv_header_uuid_uuid_h = yes; then
9017 ac_has_uuid_h=1
9018fi
9019
9020
Benny Prijonoe2746132008-09-27 13:16:35 +00009021echo "$as_me:$LINENO: checking for net/if.h" >&5
9022echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6
Benny Prijonoa9948e62008-03-25 14:03:01 +00009023if test "${ac_cv_header_net_if_h+set}" = set; then
Benny Prijono188ba7e2008-03-25 13:53:16 +00009024 echo $ECHO_N "(cached) $ECHO_C" >&6
9025else
9026 cat >conftest.$ac_ext <<_ACEOF
9027/* confdefs.h. */
9028_ACEOF
9029cat confdefs.h >>conftest.$ac_ext
9030cat >>conftest.$ac_ext <<_ACEOF
9031/* end confdefs.h. */
9032#if PJ_HAS_SYS_SOCKET_H
9033 # include <sys/socket.h>
9034 #endif
9035
9036
Benny Prijonoa9948e62008-03-25 14:03:01 +00009037#include <net/if.h>
Benny Prijono188ba7e2008-03-25 13:53:16 +00009038_ACEOF
9039rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00009040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9041 (eval $ac_compile) 2>conftest.er1
Benny Prijono188ba7e2008-03-25 13:53:16 +00009042 ac_status=$?
9043 grep -v '^ *+' conftest.er1 >conftest.err
9044 rm -f conftest.er1
9045 cat conftest.err >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00009047 (exit $ac_status); } &&
9048 { ac_try='test -z "$ac_c_werror_flag"
9049 || test ! -s conftest.err'
9050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051 (eval $ac_try) 2>&5
9052 ac_status=$?
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); }; } &&
9055 { ac_try='test -s conftest.$ac_objext'
9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057 (eval $ac_try) 2>&5
9058 ac_status=$?
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; }; then
Benny Prijonoa9948e62008-03-25 14:03:01 +00009061 ac_cv_header_net_if_h=yes
Benny Prijono188ba7e2008-03-25 13:53:16 +00009062else
9063 echo "$as_me: failed program was:" >&5
9064sed 's/^/| /' conftest.$ac_ext >&5
9065
Benny Prijonoe2746132008-09-27 13:16:35 +00009066ac_cv_header_net_if_h=no
Benny Prijono188ba7e2008-03-25 13:53:16 +00009067fi
Benny Prijonoe2746132008-09-27 13:16:35 +00009068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono188ba7e2008-03-25 13:53:16 +00009069fi
Benny Prijonoe2746132008-09-27 13:16:35 +00009070echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
9071echo "${ECHO_T}$ac_cv_header_net_if_h" >&6
Benny Prijonoa9948e62008-03-25 14:03:01 +00009072if test $ac_cv_header_net_if_h = yes; then
9073 cat >>confdefs.h <<\_ACEOF
Benny Prijono188ba7e2008-03-25 13:53:16 +00009074#define PJ_HAS_NET_IF_H 1
9075_ACEOF
9076
9077fi
9078
Benny Prijono188ba7e2008-03-25 13:53:16 +00009079
9080
Benny Prijonoe2746132008-09-27 13:16:35 +00009081echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5
9082echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009083cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009084#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009085_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009086
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009087
Benny Prijonoe2746132008-09-27 13:16:35 +00009088echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
9089echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009090cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009091#define PJ_HAS_ERRNO_VAR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009092_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009093
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009094
Benny Prijonoe2746132008-09-27 13:16:35 +00009095echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
9096echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009097cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009098#define PJ_HAS_HIGH_RES_TIMER 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009099_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009100
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009101
Benny Prijonoe2746132008-09-27 13:16:35 +00009102echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5
9103echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009104cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009105#define PJ_HAS_MALLOC 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009106_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009107
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009108
Benny Prijonoe2746132008-09-27 13:16:35 +00009109echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
9110echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009111cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009112#define PJ_NATIVE_STRING_IS_UNICODE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009113_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009114
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009115
Benny Prijonoe2746132008-09-27 13:16:35 +00009116echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
9117echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009118cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009119#define PJ_ATOMIC_VALUE_TYPE long
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009120_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009121
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009122
Benny Prijonoe2746132008-09-27 13:16:35 +00009123echo "$as_me:$LINENO: checking if inet_aton() is available" >&5
9124echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009125cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009126/* confdefs.h. */
9127_ACEOF
9128cat confdefs.h >>conftest.$ac_ext
9129cat >>conftest.$ac_ext <<_ACEOF
9130/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009131#include <sys/types.h>
9132 #include <sys/socket.h>
9133 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009134int
9135main ()
9136{
9137inet_aton(0, 0);
9138 ;
9139 return 0;
9140}
9141_ACEOF
9142rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00009143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9144 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009145 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009146 grep -v '^ *+' conftest.er1 >conftest.err
9147 rm -f conftest.er1
9148 cat conftest.err >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00009150 (exit $ac_status); } &&
9151 { ac_try='test -z "$ac_c_werror_flag"
9152 || test ! -s conftest.err'
9153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154 (eval $ac_try) 2>&5
9155 ac_status=$?
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; } &&
9158 { ac_try='test -s conftest.$ac_objext'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160 (eval $ac_try) 2>&5
9161 ac_status=$?
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009164 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009165#define PJ_SOCK_HAS_INET_ATON 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009166_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009167
Benny Prijonoe2746132008-09-27 13:16:35 +00009168 echo "$as_me:$LINENO: result: yes" >&5
9169echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009170else
9171 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009172sed 's/^/| /' conftest.$ac_ext >&5
9173
Benny Prijonoe2746132008-09-27 13:16:35 +00009174echo "$as_me:$LINENO: result: no" >&5
9175echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009176fi
Benny Prijonoe2746132008-09-27 13:16:35 +00009177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009178
Benny Prijonoe2746132008-09-27 13:16:35 +00009179echo "$as_me:$LINENO: checking if inet_pton() is available" >&5
9180echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009181cat >conftest.$ac_ext <<_ACEOF
9182/* confdefs.h. */
9183_ACEOF
9184cat confdefs.h >>conftest.$ac_ext
9185cat >>conftest.$ac_ext <<_ACEOF
9186/* end confdefs.h. */
9187#include <sys/types.h>
9188 #include <sys/socket.h>
9189 #include <arpa/inet.h>
9190int
9191main ()
9192{
9193inet_pton(0, 0, 0);
9194 ;
9195 return 0;
9196}
9197_ACEOF
9198rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00009199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9200 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009201 ac_status=$?
9202 grep -v '^ *+' conftest.er1 >conftest.err
9203 rm -f conftest.er1
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00009206 (exit $ac_status); } &&
9207 { ac_try='test -z "$ac_c_werror_flag"
9208 || test ! -s conftest.err'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 (eval $ac_try) 2>&5
9211 ac_status=$?
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; } &&
9214 { ac_try='test -s conftest.$ac_objext'
9215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9216 (eval $ac_try) 2>&5
9217 ac_status=$?
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); }; }; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009220 cat >>confdefs.h <<\_ACEOF
9221#define PJ_SOCK_HAS_INET_PTON 1
9222_ACEOF
9223
Benny Prijonoe2746132008-09-27 13:16:35 +00009224 echo "$as_me:$LINENO: result: yes" >&5
9225echo "${ECHO_T}yes" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009226else
9227 echo "$as_me: failed program was:" >&5
9228sed 's/^/| /' conftest.$ac_ext >&5
9229
Benny Prijonoe2746132008-09-27 13:16:35 +00009230echo "$as_me:$LINENO: result: no" >&5
9231echo "${ECHO_T}no" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009232fi
Benny Prijonoe2746132008-09-27 13:16:35 +00009233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009234
Benny Prijonoe2746132008-09-27 13:16:35 +00009235echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5
9236echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009237cat >conftest.$ac_ext <<_ACEOF
9238/* confdefs.h. */
9239_ACEOF
9240cat confdefs.h >>conftest.$ac_ext
9241cat >>conftest.$ac_ext <<_ACEOF
9242/* end confdefs.h. */
9243#include <sys/types.h>
9244 #include <sys/socket.h>
9245 #include <arpa/inet.h>
9246int
9247main ()
9248{
9249inet_ntop(0, 0, 0, 0);
9250 ;
9251 return 0;
9252}
9253_ACEOF
9254rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00009255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9256 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009257 ac_status=$?
9258 grep -v '^ *+' conftest.er1 >conftest.err
9259 rm -f conftest.er1
9260 cat conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00009262 (exit $ac_status); } &&
9263 { ac_try='test -z "$ac_c_werror_flag"
9264 || test ! -s conftest.err'
9265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266 (eval $ac_try) 2>&5
9267 ac_status=$?
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; } &&
9270 { ac_try='test -s conftest.$ac_objext'
9271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272 (eval $ac_try) 2>&5
9273 ac_status=$?
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); }; }; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009276 cat >>confdefs.h <<\_ACEOF
9277#define PJ_SOCK_HAS_INET_NTOP 1
9278_ACEOF
9279
Benny Prijonoe2746132008-09-27 13:16:35 +00009280 echo "$as_me:$LINENO: result: yes" >&5
9281echo "${ECHO_T}yes" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009282else
9283 echo "$as_me: failed program was:" >&5
9284sed 's/^/| /' conftest.$ac_ext >&5
9285
Benny Prijonoe2746132008-09-27 13:16:35 +00009286echo "$as_me:$LINENO: result: no" >&5
9287echo "${ECHO_T}no" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009288fi
Benny Prijonoe2746132008-09-27 13:16:35 +00009289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009290
Benny Prijonoe2746132008-09-27 13:16:35 +00009291echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5
9292echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009293cat >conftest.$ac_ext <<_ACEOF
9294/* confdefs.h. */
9295_ACEOF
9296cat confdefs.h >>conftest.$ac_ext
9297cat >>conftest.$ac_ext <<_ACEOF
9298/* end confdefs.h. */
9299#include <sys/types.h>
9300 #include <sys/socket.h>
9301 #include <netdb.h>
9302int
9303main ()
9304{
9305getaddrinfo(0, 0, 0, 0);
9306 ;
9307 return 0;
9308}
9309_ACEOF
9310rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00009311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9312 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009313 ac_status=$?
9314 grep -v '^ *+' conftest.er1 >conftest.err
9315 rm -f conftest.er1
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00009318 (exit $ac_status); } &&
9319 { ac_try='test -z "$ac_c_werror_flag"
9320 || test ! -s conftest.err'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 (eval $ac_try) 2>&5
9323 ac_status=$?
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; } &&
9326 { ac_try='test -s conftest.$ac_objext'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328 (eval $ac_try) 2>&5
9329 ac_status=$?
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; }; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009332 cat >>confdefs.h <<\_ACEOF
9333#define PJ_SOCK_HAS_GETADDRINFO 1
9334_ACEOF
9335
Benny Prijonoe2746132008-09-27 13:16:35 +00009336 echo "$as_me:$LINENO: result: yes" >&5
9337echo "${ECHO_T}yes" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009338else
9339 echo "$as_me: failed program was:" >&5
9340sed 's/^/| /' conftest.$ac_ext >&5
9341
Benny Prijonoe2746132008-09-27 13:16:35 +00009342echo "$as_me:$LINENO: result: no" >&5
9343echo "${ECHO_T}no" >&6
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009344fi
Benny Prijonoe2746132008-09-27 13:16:35 +00009345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009346
Benny Prijonoe2746132008-09-27 13:16:35 +00009347echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
9348echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009349cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009350/* confdefs.h. */
9351_ACEOF
9352cat confdefs.h >>conftest.$ac_ext
9353cat >>conftest.$ac_ext <<_ACEOF
9354/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00009355#include <sys/types.h>
9356 #include <sys/socket.h>
9357 #include <netinet/in.h>
9358 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009359int
9360main ()
9361{
9362struct sockaddr_in a; a.sin_len=0;
9363 ;
9364 return 0;
9365}
9366_ACEOF
9367rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00009368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9369 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009370 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009371 grep -v '^ *+' conftest.er1 >conftest.err
9372 rm -f conftest.er1
9373 cat conftest.err >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00009375 (exit $ac_status); } &&
9376 { ac_try='test -z "$ac_c_werror_flag"
9377 || test ! -s conftest.err'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 (eval $ac_try) 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; } &&
9383 { ac_try='test -s conftest.$ac_objext'
9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 (eval $ac_try) 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009389 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009390#define PJ_SOCKADDR_HAS_LEN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009391_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009392
Benny Prijonoe2746132008-09-27 13:16:35 +00009393 echo "$as_me:$LINENO: result: yes" >&5
9394echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009395else
9396 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009397sed 's/^/| /' conftest.$ac_ext >&5
9398
Benny Prijonoe2746132008-09-27 13:16:35 +00009399echo "$as_me:$LINENO: result: no" >&5
9400echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009401fi
Benny Prijonoe2746132008-09-27 13:16:35 +00009402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009403
Benny Prijonoe2746132008-09-27 13:16:35 +00009404echo "$as_me:$LINENO: checking if socklen_t is available" >&5
9405echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6
Benny Prijono30f85c62006-09-09 20:05:33 +00009406cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009407/* confdefs.h. */
9408_ACEOF
9409cat confdefs.h >>conftest.$ac_ext
9410cat >>conftest.$ac_ext <<_ACEOF
9411/* end confdefs.h. */
Benny Prijono1d971622006-09-10 22:27:40 +00009412#include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00009413int
9414main ()
9415{
9416socklen_t xxx = 0;
9417 ;
9418 return 0;
9419}
9420_ACEOF
9421rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00009422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9423 (eval $ac_compile) 2>conftest.er1
Benny Prijono30f85c62006-09-09 20:05:33 +00009424 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009425 grep -v '^ *+' conftest.er1 >conftest.err
9426 rm -f conftest.er1
9427 cat conftest.err >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00009429 (exit $ac_status); } &&
9430 { ac_try='test -z "$ac_c_werror_flag"
9431 || test ! -s conftest.err'
9432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9433 (eval $ac_try) 2>&5
9434 ac_status=$?
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); }; } &&
9437 { ac_try='test -s conftest.$ac_objext'
9438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439 (eval $ac_try) 2>&5
9440 ac_status=$?
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009443 cat >>confdefs.h <<\_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00009444#define PJ_HAS_SOCKLEN_T 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009445_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00009446
Benny Prijonoe2746132008-09-27 13:16:35 +00009447 echo "$as_me:$LINENO: result: yes" >&5
9448echo "${ECHO_T}yes" >&6
Benny Prijono30f85c62006-09-09 20:05:33 +00009449else
9450 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009451sed 's/^/| /' conftest.$ac_ext >&5
9452
Benny Prijonoe2746132008-09-27 13:16:35 +00009453echo "$as_me:$LINENO: result: no" >&5
9454echo "${ECHO_T}no" >&6
Benny Prijono30f85c62006-09-09 20:05:33 +00009455fi
Benny Prijonoe2746132008-09-27 13:16:35 +00009456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono30f85c62006-09-09 20:05:33 +00009457
Benny Prijonoe2746132008-09-27 13:16:35 +00009458echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
9459echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009460case $target in
9461 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009462 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009463#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009464_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009465
Benny Prijonoe2746132008-09-27 13:16:35 +00009466 echo "$as_me:$LINENO: result: yes" >&5
9467echo "${ECHO_T}yes" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009468 ;;
9469 *)
9470 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009471/* confdefs.h. */
9472_ACEOF
9473cat confdefs.h >>conftest.$ac_ext
9474cat >>conftest.$ac_ext <<_ACEOF
9475/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00009476#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009477 #include <sys/socket.h>
9478 #include <netinet/in.h>
9479 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009480int
9481main ()
9482{
9483int i=SO_ERROR;
9484 ;
9485 return 0;
9486}
9487_ACEOF
9488rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00009489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9490 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009491 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009492 grep -v '^ *+' conftest.er1 >conftest.err
9493 rm -f conftest.er1
9494 cat conftest.err >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00009496 (exit $ac_status); } &&
9497 { ac_try='test -z "$ac_c_werror_flag"
9498 || test ! -s conftest.err'
9499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 (eval $ac_try) 2>&5
9501 ac_status=$?
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; } &&
9504 { ac_try='test -s conftest.$ac_objext'
9505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 (eval $ac_try) 2>&5
9507 ac_status=$?
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009510 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009511#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009512_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009513
Benny Prijonoe2746132008-09-27 13:16:35 +00009514 echo "$as_me:$LINENO: result: yes" >&5
9515echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009516else
9517 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009518sed 's/^/| /' conftest.$ac_ext >&5
9519
Benny Prijonoe2746132008-09-27 13:16:35 +00009520echo "$as_me:$LINENO: result: no" >&5
9521echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009522fi
Benny Prijonoe2746132008-09-27 13:16:35 +00009523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009524 ;;
9525esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009526
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009527
Benny Prijonoe2746132008-09-27 13:16:35 +00009528echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
9529echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009530cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009531/* confdefs.h. */
9532_ACEOF
9533cat confdefs.h >>conftest.$ac_ext
9534cat >>conftest.$ac_ext <<_ACEOF
9535/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009536#include <pthread.h>
9537int
9538main ()
9539{
9540pthread_rwlock_t *x;
9541 ;
9542 return 0;
9543}
9544_ACEOF
9545rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00009546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9547 (eval $ac_compile) 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009548 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009549 grep -v '^ *+' conftest.er1 >conftest.err
9550 rm -f conftest.er1
9551 cat conftest.err >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00009553 (exit $ac_status); } &&
9554 { ac_try='test -z "$ac_c_werror_flag"
9555 || test ! -s conftest.err'
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557 (eval $ac_try) 2>&5
9558 ac_status=$?
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; } &&
9561 { ac_try='test -s conftest.$ac_objext'
9562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9563 (eval $ac_try) 2>&5
9564 ac_status=$?
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009567 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009568#define PJ_EMULATE_RWMUTEX 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009569_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009570
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009571 ac_rwmutex="yes"
Benny Prijonoe2746132008-09-27 13:16:35 +00009572 echo "$as_me:$LINENO: result: yes" >&5
9573echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009574else
9575 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009576sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009577
Benny Prijonoe2746132008-09-27 13:16:35 +00009578cat >>confdefs.h <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009579#define PJ_EMULATE_RWMUTEX 1
9580_ACEOF
9581
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009582 ac_rwmutex="no"
Benny Prijonoe2746132008-09-27 13:16:35 +00009583 echo "$as_me:$LINENO: result: no" >&5
9584echo "${ECHO_T}no" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009585fi
Benny Prijonoe2746132008-09-27 13:16:35 +00009586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009587
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009588if test "$ac_rwmutex" = "no"; then
Benny Prijonoe2746132008-09-27 13:16:35 +00009589 echo "$as_me:$LINENO: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
9590echo $ECHO_N "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009591 cat >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#define _POSIX_READER_WRITER_LOCKS
9598 #include <pthread.h>
9599int
9600main ()
9601{
9602pthread_rwlock_t *x;
9603 ;
9604 return 0;
9605}
9606_ACEOF
9607rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00009608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9609 (eval $ac_compile) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009610 ac_status=$?
9611 grep -v '^ *+' conftest.er1 >conftest.err
9612 rm -f conftest.er1
9613 cat conftest.err >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00009615 (exit $ac_status); } &&
9616 { ac_try='test -z "$ac_c_werror_flag"
9617 || test ! -s conftest.err'
9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619 (eval $ac_try) 2>&5
9620 ac_status=$?
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; } &&
9623 { ac_try='test -s conftest.$ac_objext'
9624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625 (eval $ac_try) 2>&5
9626 ac_status=$?
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009629 cat >>confdefs.h <<\_ACEOF
9630#define PJ_EMULATE_RWMUTEX 0
9631_ACEOF
9632
9633 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Benny Prijonoe2746132008-09-27 13:16:35 +00009634 echo "$as_me:$LINENO: result: yes" >&5
9635echo "${ECHO_T}yes" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009636else
9637 echo "$as_me: failed program was:" >&5
9638sed 's/^/| /' conftest.$ac_ext >&5
9639
Benny Prijonoe2746132008-09-27 13:16:35 +00009640cat >>confdefs.h <<\_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009641#define PJ_EMULATE_RWMUTEX 1
9642_ACEOF
9643
Benny Prijonoe2746132008-09-27 13:16:35 +00009644 echo "$as_me:$LINENO: result: no" >&5
9645echo "${ECHO_T}no" >&6
9646fi
9647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009648fi
9649
Benny Prijonoe2746132008-09-27 13:16:35 +00009650echo "$as_me:$LINENO: checking if pthread_mutexattr_settype() is available" >&5
9651echo $ECHO_N "checking if pthread_mutexattr_settype() is available... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009652cat >conftest.$ac_ext <<_ACEOF
9653/* confdefs.h. */
9654_ACEOF
9655cat confdefs.h >>conftest.$ac_ext
9656cat >>conftest.$ac_ext <<_ACEOF
9657/* end confdefs.h. */
9658#include <pthread.h>
9659int
9660main ()
9661{
9662pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
9663 ;
9664 return 0;
9665}
9666_ACEOF
9667rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00009668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9669 (eval $ac_compile) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009670 ac_status=$?
9671 grep -v '^ *+' conftest.er1 >conftest.err
9672 rm -f conftest.er1
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00009675 (exit $ac_status); } &&
9676 { ac_try='test -z "$ac_c_werror_flag"
9677 || test ! -s conftest.err'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 (eval $ac_try) 2>&5
9680 ac_status=$?
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; } &&
9683 { ac_try='test -s conftest.$ac_objext'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 (eval $ac_try) 2>&5
9686 ac_status=$?
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009689 cat >>confdefs.h <<\_ACEOF
9690#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1
9691_ACEOF
9692
Benny Prijonoe2746132008-09-27 13:16:35 +00009693 echo "$as_me:$LINENO: result: yes" >&5
9694echo "${ECHO_T}yes" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009695else
9696 echo "$as_me: failed program was:" >&5
9697sed 's/^/| /' conftest.$ac_ext >&5
9698
Benny Prijonoe2746132008-09-27 13:16:35 +00009699echo "$as_me:$LINENO: result: no" >&5
9700echo "${ECHO_T}no" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009701fi
Benny Prijonoe2746132008-09-27 13:16:35 +00009702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009703
Benny Prijonoe2746132008-09-27 13:16:35 +00009704echo "$as_me:$LINENO: checking if pthread_mutexattr_t has recursive member" >&5
9705echo $ECHO_N "checking if pthread_mutexattr_t has recursive member... $ECHO_C" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009706cat >conftest.$ac_ext <<_ACEOF
9707/* confdefs.h. */
9708_ACEOF
9709cat confdefs.h >>conftest.$ac_ext
9710cat >>conftest.$ac_ext <<_ACEOF
9711/* end confdefs.h. */
9712#include <pthread.h>
9713int
9714main ()
9715{
9716pthread_mutexattr_t attr;
9717 attr.recursive=1;
9718 ;
9719 return 0;
9720}
9721_ACEOF
9722rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00009723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9724 (eval $ac_compile) 2>conftest.er1
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009725 ac_status=$?
9726 grep -v '^ *+' conftest.er1 >conftest.err
9727 rm -f conftest.er1
9728 cat conftest.err >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00009730 (exit $ac_status); } &&
9731 { ac_try='test -z "$ac_c_werror_flag"
9732 || test ! -s conftest.err'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734 (eval $ac_try) 2>&5
9735 ac_status=$?
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; } &&
9738 { ac_try='test -s conftest.$ac_objext'
9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740 (eval $ac_try) 2>&5
9741 ac_status=$?
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; }; then
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009744 cat >>confdefs.h <<\_ACEOF
9745#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1
9746_ACEOF
9747
Benny Prijonoe2746132008-09-27 13:16:35 +00009748 echo "$as_me:$LINENO: result: yes" >&5
9749echo "${ECHO_T}yes" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009750else
9751 echo "$as_me: failed program was:" >&5
9752sed 's/^/| /' conftest.$ac_ext >&5
9753
Benny Prijonoe2746132008-09-27 13:16:35 +00009754echo "$as_me:$LINENO: result: no" >&5
9755echo "${ECHO_T}no" >&6
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009756fi
Benny Prijonoe2746132008-09-27 13:16:35 +00009757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00009758
Benny Prijono99eec382008-09-18 21:22:16 +00009759
Benny Prijonoe2746132008-09-27 13:16:35 +00009760echo "$as_me:$LINENO: checking ioqueue backend" >&5
9761echo $ECHO_N "checking ioqueue backend... $ECHO_C" >&6
9762# Check whether --enable-epoll or --disable-epoll was given.
Benny Prijono99eec382008-09-18 21:22:16 +00009763if test "${enable_epoll+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00009764 enableval="$enable_epoll"
9765
Benny Prijono99eec382008-09-18 21:22:16 +00009766 ac_os_objs=ioqueue_epoll.o
Benny Prijonoe2746132008-09-27 13:16:35 +00009767 echo "$as_me:$LINENO: result: /dev/epoll" >&5
9768echo "${ECHO_T}/dev/epoll" >&6
Benny Prijono99eec382008-09-18 21:22:16 +00009769
9770else
9771
9772 ac_os_objs=ioqueue_select.o
Benny Prijonoe2746132008-09-27 13:16:35 +00009773 echo "$as_me:$LINENO: result: select()" >&5
9774echo "${ECHO_T}select()" >&6
Benny Prijono99eec382008-09-18 21:22:16 +00009775
Benny Prijonoe2746132008-09-27 13:16:35 +00009776fi;
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009777
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009778
9779case $target in
9780 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono99eec382008-09-18 21:22:16 +00009781 ac_os_objs="$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"
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009782 ;;
9783 *)
Benny Prijono99eec382008-09-18 21:22:16 +00009784 ac_os_objs="$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"
Benny Prijono4e48b512007-05-16 13:41:00 +00009785 # UUID
9786 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
9787 ac_os_objs="$ac_os_objs guid_uuid.o"
9788 else
9789 ac_os_objs="$ac_os_objs guid_simple.o"
9790 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009791 ;;
9792esac
9793
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009794
9795
9796
Benny Prijono4e48b512007-05-16 13:41:00 +00009797
Benny Prijonoe2746132008-09-27 13:16:35 +00009798# Check whether --enable-sound or --disable-sound was given.
Benny Prijono1d971622006-09-10 22:27:40 +00009799if test "${enable_sound+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00009800 enableval="$enable_sound"
9801 if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +00009802 ac_pjmedia_snd=null
Benny Prijonoe2746132008-09-27 13:16:35 +00009803 echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5
9804echo "${ECHO_T}Checking if sound is disabled... yes" >&6
Benny Prijono1d971622006-09-10 22:27:40 +00009805 fi
9806
Benny Prijonoe2746132008-09-27 13:16:35 +00009807fi;
Benny Prijono1d971622006-09-10 22:27:40 +00009808
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009809
Benny Prijono27c98722007-04-09 21:28:15 +00009810if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00009811 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9812echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009813if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9815fi
Benny Prijonoe2746132008-09-27 13:16:35 +00009816echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9817echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009818else
9819 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00009820echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
9821echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009822cat >conftest.$ac_ext <<_ACEOF
9823/* confdefs.h. */
9824_ACEOF
9825cat confdefs.h >>conftest.$ac_ext
9826cat >>conftest.$ac_ext <<_ACEOF
9827/* end confdefs.h. */
9828$ac_includes_default
9829#include <sys/soundcard.h>
9830_ACEOF
9831rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00009832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9833 (eval $ac_compile) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00009839 (exit $ac_status); } &&
9840 { ac_try='test -z "$ac_c_werror_flag"
9841 || test ! -s conftest.err'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try='test -s conftest.$ac_objext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
Benny Prijono27c98722007-04-09 21:28:15 +00009853 ac_header_compiler=yes
9854else
9855 echo "$as_me: failed program was:" >&5
9856sed 's/^/| /' conftest.$ac_ext >&5
9857
Benny Prijonoe2746132008-09-27 13:16:35 +00009858ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +00009859fi
Benny Prijonoe2746132008-09-27 13:16:35 +00009860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9861echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9862echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009863
9864# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +00009865echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
9866echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009867cat >conftest.$ac_ext <<_ACEOF
9868/* confdefs.h. */
9869_ACEOF
9870cat confdefs.h >>conftest.$ac_ext
9871cat >>conftest.$ac_ext <<_ACEOF
9872/* end confdefs.h. */
9873#include <sys/soundcard.h>
9874_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00009875if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009877 ac_status=$?
9878 grep -v '^ *+' conftest.er1 >conftest.err
9879 rm -f conftest.er1
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00009882 (exit $ac_status); } >/dev/null; then
9883 if test -s conftest.err; then
9884 ac_cpp_err=$ac_c_preproc_warn_flag
9885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9886 else
9887 ac_cpp_err=
9888 fi
9889else
9890 ac_cpp_err=yes
9891fi
9892if test -z "$ac_cpp_err"; then
Benny Prijono27c98722007-04-09 21:28:15 +00009893 ac_header_preproc=yes
9894else
9895 echo "$as_me: failed program was:" >&5
9896sed 's/^/| /' conftest.$ac_ext >&5
9897
9898 ac_header_preproc=no
9899fi
9900rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +00009901echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9902echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009903
9904# So? What about this header?
9905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9906 yes:no: )
9907 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9908echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
9910echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
9911 ac_header_preproc=yes
9912 ;;
9913 no:yes:* )
9914 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
9915echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
9917echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
9919echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
9920 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9921echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9922 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
9923echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
9924 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
9925echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +00009926 (
9927 cat <<\_ASBOX
9928## ------------------------------------ ##
9929## Report this to the pjproject lists. ##
9930## ------------------------------------ ##
9931_ASBOX
9932 ) |
9933 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono27c98722007-04-09 21:28:15 +00009934 ;;
9935esac
Benny Prijonoe2746132008-09-27 13:16:35 +00009936echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9937echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009938if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
9940else
9941 ac_cv_header_sys_soundcard_h=$ac_header_preproc
9942fi
Benny Prijonoe2746132008-09-27 13:16:35 +00009943echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9944echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009945
9946fi
9947if test $ac_cv_header_sys_soundcard_h = yes; then
9948 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
9949fi
9950
9951
9952if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +00009953 echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
9954echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009955if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9957fi
Benny Prijonoe2746132008-09-27 13:16:35 +00009958echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
9959echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009960else
9961 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +00009962echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
9963echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +00009964cat >conftest.$ac_ext <<_ACEOF
9965/* confdefs.h. */
9966_ACEOF
9967cat confdefs.h >>conftest.$ac_ext
9968cat >>conftest.$ac_ext <<_ACEOF
9969/* end confdefs.h. */
9970$ac_includes_default
9971#include <linux/soundcard.h>
9972_ACEOF
9973rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +00009974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9975 (eval $ac_compile) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009976 ac_status=$?
9977 grep -v '^ *+' conftest.er1 >conftest.err
9978 rm -f conftest.er1
9979 cat conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +00009981 (exit $ac_status); } &&
9982 { ac_try='test -z "$ac_c_werror_flag"
9983 || test ! -s conftest.err'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; } &&
9989 { ac_try='test -s conftest.$ac_objext'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 (eval $ac_try) 2>&5
9992 ac_status=$?
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
Benny Prijono27c98722007-04-09 21:28:15 +00009995 ac_header_compiler=yes
9996else
9997 echo "$as_me: failed program was:" >&5
9998sed 's/^/| /' conftest.$ac_ext >&5
9999
Benny Prijonoe2746132008-09-27 13:16:35 +000010000ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +000010001fi
Benny Prijonoe2746132008-09-27 13:16:35 +000010002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10003echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10004echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010005
10006# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +000010007echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
10008echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010009cat >conftest.$ac_ext <<_ACEOF
10010/* confdefs.h. */
10011_ACEOF
10012cat confdefs.h >>conftest.$ac_ext
10013cat >>conftest.$ac_ext <<_ACEOF
10014/* end confdefs.h. */
10015#include <linux/soundcard.h>
10016_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +000010017if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +000010019 ac_status=$?
10020 grep -v '^ *+' conftest.er1 >conftest.err
10021 rm -f conftest.er1
10022 cat conftest.err >&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +000010024 (exit $ac_status); } >/dev/null; then
10025 if test -s conftest.err; then
10026 ac_cpp_err=$ac_c_preproc_warn_flag
10027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10028 else
10029 ac_cpp_err=
10030 fi
10031else
10032 ac_cpp_err=yes
10033fi
10034if test -z "$ac_cpp_err"; then
Benny Prijono27c98722007-04-09 21:28:15 +000010035 ac_header_preproc=yes
10036else
10037 echo "$as_me: failed program was:" >&5
10038sed 's/^/| /' conftest.$ac_ext >&5
10039
10040 ac_header_preproc=no
10041fi
10042rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +000010043echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10044echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010045
10046# So? What about this header?
10047case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10048 yes:no: )
10049 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
10050echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10051 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
10052echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
10053 ac_header_preproc=yes
10054 ;;
10055 no:yes:* )
10056 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
10057echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
10059echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
10060 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
10061echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
10062 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
10063echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
10064 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
10065echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
10066 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
10067echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +000010068 (
10069 cat <<\_ASBOX
10070## ------------------------------------ ##
10071## Report this to the pjproject lists. ##
10072## ------------------------------------ ##
10073_ASBOX
10074 ) |
10075 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono27c98722007-04-09 21:28:15 +000010076 ;;
10077esac
Benny Prijonoe2746132008-09-27 13:16:35 +000010078echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
10079echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010080if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
10081 echo $ECHO_N "(cached) $ECHO_C" >&6
10082else
10083 ac_cv_header_linux_soundcard_h=$ac_header_preproc
10084fi
Benny Prijonoe2746132008-09-27 13:16:35 +000010085echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
10086echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010087
10088fi
10089if test $ac_cv_header_linux_soundcard_h = yes; then
10090 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
10091fi
10092
10093
10094if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010095 echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
10096echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010097if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10099fi
Benny Prijonoe2746132008-09-27 13:16:35 +000010100echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
10101echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010102else
10103 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +000010104echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5
10105echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010106cat >conftest.$ac_ext <<_ACEOF
10107/* confdefs.h. */
10108_ACEOF
10109cat confdefs.h >>conftest.$ac_ext
10110cat >>conftest.$ac_ext <<_ACEOF
10111/* end confdefs.h. */
10112$ac_includes_default
10113#include <machine/soundcard.h>
10114_ACEOF
10115rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +000010116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10117 (eval $ac_compile) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +000010118 ac_status=$?
10119 grep -v '^ *+' conftest.er1 >conftest.err
10120 rm -f conftest.er1
10121 cat conftest.err >&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +000010123 (exit $ac_status); } &&
10124 { ac_try='test -z "$ac_c_werror_flag"
10125 || test ! -s conftest.err'
10126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127 (eval $ac_try) 2>&5
10128 ac_status=$?
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; } &&
10131 { ac_try='test -s conftest.$ac_objext'
10132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133 (eval $ac_try) 2>&5
10134 ac_status=$?
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; }; then
Benny Prijono27c98722007-04-09 21:28:15 +000010137 ac_header_compiler=yes
10138else
10139 echo "$as_me: failed program was:" >&5
10140sed 's/^/| /' conftest.$ac_ext >&5
10141
Benny Prijonoe2746132008-09-27 13:16:35 +000010142ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +000010143fi
Benny Prijonoe2746132008-09-27 13:16:35 +000010144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10145echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10146echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010147
10148# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +000010149echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5
10150echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010151cat >conftest.$ac_ext <<_ACEOF
10152/* confdefs.h. */
10153_ACEOF
10154cat confdefs.h >>conftest.$ac_ext
10155cat >>conftest.$ac_ext <<_ACEOF
10156/* end confdefs.h. */
10157#include <machine/soundcard.h>
10158_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +000010159if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +000010161 ac_status=$?
10162 grep -v '^ *+' conftest.er1 >conftest.err
10163 rm -f conftest.er1
10164 cat conftest.err >&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +000010166 (exit $ac_status); } >/dev/null; then
10167 if test -s conftest.err; then
10168 ac_cpp_err=$ac_c_preproc_warn_flag
10169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10170 else
10171 ac_cpp_err=
10172 fi
10173else
10174 ac_cpp_err=yes
10175fi
10176if test -z "$ac_cpp_err"; then
Benny Prijono27c98722007-04-09 21:28:15 +000010177 ac_header_preproc=yes
10178else
10179 echo "$as_me: failed program was:" >&5
10180sed 's/^/| /' conftest.$ac_ext >&5
10181
10182 ac_header_preproc=no
10183fi
10184rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +000010185echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10186echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010187
10188# So? What about this header?
10189case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10190 yes:no: )
10191 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
10192echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10193 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5
10194echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;}
10195 ac_header_preproc=yes
10196 ;;
10197 no:yes:* )
10198 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5
10199echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;}
10200 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5
10201echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;}
10202 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5
10203echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;}
10204 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
10205echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
10206 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5
10207echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5
10209echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +000010210 (
10211 cat <<\_ASBOX
10212## ------------------------------------ ##
10213## Report this to the pjproject lists. ##
10214## ------------------------------------ ##
10215_ASBOX
10216 ) |
10217 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono27c98722007-04-09 21:28:15 +000010218 ;;
10219esac
Benny Prijonoe2746132008-09-27 13:16:35 +000010220echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
10221echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010222if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10224else
10225 ac_cv_header_machine_soundcard_h=$ac_header_preproc
10226fi
Benny Prijonoe2746132008-09-27 13:16:35 +000010227echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
10228echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6
Benny Prijono27c98722007-04-09 21:28:15 +000010229
10230fi
10231if test $ac_cv_header_machine_soundcard_h = yes; then
10232 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
10233fi
10234
10235
10236
Benny Prijono3e091672008-01-09 15:43:02 +000010237if test "x$ac_cv_c_bigendian" = "xyes"; then
10238 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
10239else
10240 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
10241fi
10242
Benny Prijono1d971622006-09-10 22:27:40 +000010243if test "$enable_sound" = "no"; then
10244 true;
10245else
10246 case $target in
Benny Prijonob466e232006-09-10 08:53:59 +000010247 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +000010248 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
10249 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +000010250 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +000010251 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
10252 ac_pjmedia_snd=pa_old_darwinos
Benny Prijonoe2746132008-09-27 13:16:35 +000010253 echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
10254echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6
Benny Prijono39ae2da2006-10-13 17:57:42 +000010255 else
10256 ac_pjmedia_snd=pa_darwinos
Benny Prijonoe2746132008-09-27 13:16:35 +000010257 echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
10258echo "${ECHO_T}Checking sound device backend... coreaudio" >&6
Benny Prijono39ae2da2006-10-13 17:57:42 +000010259 fi
Benny Prijonob466e232006-09-10 08:53:59 +000010260 ;;
10261 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010262 ac_pjmedia_snd=pa_win32
Benny Prijonoe2746132008-09-27 13:16:35 +000010263 echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
10264echo "${ECHO_T}Checking sound device backend... win32 sound" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010265 ;;
10266 *rtems*)
10267 ac_pjmedia_snd=null
Benny Prijonoe2746132008-09-27 13:16:35 +000010268 echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
10269echo "${ECHO_T}Checking sound device backend... null sound" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010270 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010271 *)
Benny Prijono0b462322008-03-12 22:44:24 +000010272 ac_pjmedia_snd=pa_unix
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010273 if test "${ac_cv_header_alsa_version_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010274 echo "$as_me:$LINENO: checking for alsa/version.h" >&5
10275echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010276if test "${ac_cv_header_alsa_version_h+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010278fi
Benny Prijonoe2746132008-09-27 13:16:35 +000010279echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
10280echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010281else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010282 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +000010283echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
10284echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010285cat >conftest.$ac_ext <<_ACEOF
10286/* confdefs.h. */
10287_ACEOF
10288cat confdefs.h >>conftest.$ac_ext
10289cat >>conftest.$ac_ext <<_ACEOF
10290/* end confdefs.h. */
10291$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010292#include <alsa/version.h>
10293_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010294rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +000010295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10296 (eval $ac_compile) 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010297 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010298 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010299 rm -f conftest.er1
10300 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +000010302 (exit $ac_status); } &&
10303 { ac_try='test -z "$ac_c_werror_flag"
10304 || test ! -s conftest.err'
10305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10307 ac_status=$?
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; } &&
10310 { ac_try='test -s conftest.$ac_objext'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10313 ac_status=$?
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010316 ac_header_compiler=yes
10317else
10318 echo "$as_me: failed program was:" >&5
10319sed 's/^/| /' conftest.$ac_ext >&5
10320
Benny Prijonoe2746132008-09-27 13:16:35 +000010321ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010322fi
Benny Prijonoe2746132008-09-27 13:16:35 +000010323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10324echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10325echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010326
10327# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +000010328echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
10329echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010330cat >conftest.$ac_ext <<_ACEOF
10331/* confdefs.h. */
10332_ACEOF
10333cat confdefs.h >>conftest.$ac_ext
10334cat >>conftest.$ac_ext <<_ACEOF
10335/* end confdefs.h. */
10336#include <alsa/version.h>
10337_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +000010338if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010340 ac_status=$?
10341 grep -v '^ *+' conftest.er1 >conftest.err
10342 rm -f conftest.er1
10343 cat conftest.err >&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +000010345 (exit $ac_status); } >/dev/null; then
10346 if test -s conftest.err; then
10347 ac_cpp_err=$ac_c_preproc_warn_flag
10348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10349 else
10350 ac_cpp_err=
10351 fi
10352else
10353 ac_cpp_err=yes
10354fi
10355if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010356 ac_header_preproc=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010357else
10358 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010359sed 's/^/| /' conftest.$ac_ext >&5
10360
10361 ac_header_preproc=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010362fi
10363rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +000010364echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10365echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010366
10367# So? What about this header?
10368case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10369 yes:no: )
10370 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
10371echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10372 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
10373echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
10374 ac_header_preproc=yes
10375 ;;
10376 no:yes:* )
10377 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
10378echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
10379 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
10380echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
10381 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
10382echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
10383 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
10384echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
10385 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
10386echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
10387 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
10388echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +000010389 (
10390 cat <<\_ASBOX
10391## ------------------------------------ ##
10392## Report this to the pjproject lists. ##
10393## ------------------------------------ ##
10394_ASBOX
10395 ) |
10396 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010397 ;;
10398esac
Benny Prijonoe2746132008-09-27 13:16:35 +000010399echo "$as_me:$LINENO: checking for alsa/version.h" >&5
10400echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010401if test "${ac_cv_header_alsa_version_h+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403else
10404 ac_cv_header_alsa_version_h=$ac_header_preproc
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010405fi
Benny Prijonoe2746132008-09-27 13:16:35 +000010406echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
10407echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010408
10409fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010410if test $ac_cv_header_alsa_version_h = yes; then
10411 ac_pa_use_alsa=1
10412
10413 LIBS="$LIBS -lasound"
10414
10415else
10416 ac_pa_use_alsa=0
10417
10418fi
10419
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010420
Benny Prijonoe2746132008-09-27 13:16:35 +000010421 echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
10422echo "${ECHO_T}Checking sound device backend... unix" >&6
Benny Prijono0b462322008-03-12 22:44:24 +000010423
10424 ac_pa_use_oss=1
10425
Benny Prijonoe2746132008-09-27 13:16:35 +000010426 # Check whether --enable-oss or --disable-oss was given.
Benny Prijono0b462322008-03-12 22:44:24 +000010427if test "${enable_oss+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010428 enableval="$enable_oss"
10429
Benny Prijono0b462322008-03-12 22:44:24 +000010430 if test "$enable_oss" = "no"; then
10431 ac_pa_use_oss=0
Benny Prijonoe2746132008-09-27 13:16:35 +000010432 echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&5
10433echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6
Benny Prijono0b462322008-03-12 22:44:24 +000010434 fi
10435
Benny Prijonoe2746132008-09-27 13:16:35 +000010436fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010437 ;;
Benny Prijono1d971622006-09-10 22:27:40 +000010438 esac
10439fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010440
Benny Prijonoe2746132008-09-27 13:16:35 +000010441# Check whether --enable-ext_sound or --disable-ext_sound was given.
Benny Prijonoebb2c332008-07-28 23:40:58 +000010442if test "${enable_ext_sound+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010443 enableval="$enable_ext_sound"
10444 if test "$enable_ext_sound" = "yes"; then
Benny Prijonoebb2c332008-07-28 23:40:58 +000010445 ac_pjmedia_snd=external
Benny Prijonoe2746132008-09-27 13:16:35 +000010446 echo "$as_me:$LINENO: result: Checking if external sound is set... yes" >&5
10447echo "${ECHO_T}Checking if external sound is set... yes" >&6
Benny Prijonoebb2c332008-07-28 23:40:58 +000010448 fi
10449
Benny Prijonoe2746132008-09-27 13:16:35 +000010450fi;
Benny Prijonoebb2c332008-07-28 23:40:58 +000010451
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010452
Benny Prijonoe2746132008-09-27 13:16:35 +000010453# Check whether --enable-small-filter or --disable-small-filter was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010454if test "${enable_small_filter+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010455 enableval="$enable_small_filter"
10456 if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010457 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijonoe2746132008-09-27 13:16:35 +000010458 echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
10459echo "${ECHO_T}Checking if small filter is disabled... yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010460 fi
10461else
Benny Prijonoe2746132008-09-27 13:16:35 +000010462 echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
10463echo "${ECHO_T}Checking if small filter is disabled... no" >&6
10464fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010465
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010466
Benny Prijonoe2746132008-09-27 13:16:35 +000010467# Check whether --enable-large-filter or --disable-large-filter was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010468if test "${enable_large_filter+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010469 enableval="$enable_large_filter"
10470 if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010471 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijonoe2746132008-09-27 13:16:35 +000010472 echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
10473echo "${ECHO_T}Checking if large filter is disabled... yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010474 fi
10475else
Benny Prijonoe2746132008-09-27 13:16:35 +000010476 echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
10477echo "${ECHO_T}Checking if large filter is disabled... no" >&6
10478fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010479
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010480
Benny Prijonoe2746132008-09-27 13:16:35 +000010481# Check whether --enable-speex-aec or --disable-speex-aec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010482if test "${enable_speex_aec+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010483 enableval="$enable_speex_aec"
10484 if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010485 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijonoe2746132008-09-27 13:16:35 +000010486 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
10487echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010488 fi
10489else
Benny Prijonoe2746132008-09-27 13:16:35 +000010490 echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
10491echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6
10492fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010493
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010494
Benny Prijonoe2746132008-09-27 13:16:35 +000010495# Check whether --enable-g711-codec or --disable-g711-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010496if test "${enable_g711_codec+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010497 enableval="$enable_g711_codec"
10498 if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010499 ac_no_g711_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010500 cat >>confdefs.h <<\_ACEOF
10501#define PJMEDIA_HAS_G711_CODEC 0
10502_ACEOF
10503
Benny Prijonoe2746132008-09-27 13:16:35 +000010504 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
10505echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010506 fi
10507else
Benny Prijonoe2746132008-09-27 13:16:35 +000010508 echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
10509echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6
10510fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010511
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010512
10513
Benny Prijonoe2746132008-09-27 13:16:35 +000010514# Check whether --enable-l16-codec or --disable-l16-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010515if test "${enable_l16_codec+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010516 enableval="$enable_l16_codec"
10517 if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010518 ac_no_l16_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010519 cat >>confdefs.h <<\_ACEOF
10520#define PJMEDIA_HAS_L16_CODEC 0
10521_ACEOF
10522
Benny Prijonoe2746132008-09-27 13:16:35 +000010523 echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
10524echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010525 fi
10526else
Benny Prijonoe2746132008-09-27 13:16:35 +000010527 echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
10528echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6
10529fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010530
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010531
10532
Benny Prijonoe2746132008-09-27 13:16:35 +000010533# Check whether --enable-gsm-codec or --disable-gsm-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010534if test "${enable_gsm_codec+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010535 enableval="$enable_gsm_codec"
10536 if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010537 ac_no_gsm_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010538 cat >>confdefs.h <<\_ACEOF
10539#define PJMEDIA_HAS_GSM_CODEC 0
10540_ACEOF
10541
Benny Prijonoe2746132008-09-27 13:16:35 +000010542 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
10543echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010544 fi
10545else
Benny Prijonoe2746132008-09-27 13:16:35 +000010546 echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
10547echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6
10548fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010549
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010550
Benny Prijonoe2746132008-09-27 13:16:35 +000010551# Check whether --enable-g722-codec or --disable-g722-codec was given.
Benny Prijono71f657d2008-03-17 14:24:21 +000010552if test "${enable_g722_codec+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010553 enableval="$enable_g722_codec"
10554 if test "$enable_g722_codec" = "no"; then
Benny Prijono71f657d2008-03-17 14:24:21 +000010555 ac_no_g722_codec=1
10556 cat >>confdefs.h <<\_ACEOF
10557#define PJMEDIA_HAS_G722_CODEC 0
10558_ACEOF
10559
Benny Prijonoe2746132008-09-27 13:16:35 +000010560 echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...yes" >&5
10561echo "${ECHO_T}Checking if G.722 codec is disabled...yes" >&6
Benny Prijono71f657d2008-03-17 14:24:21 +000010562 fi
10563else
Benny Prijonoe2746132008-09-27 13:16:35 +000010564 echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...no" >&5
10565echo "${ECHO_T}Checking if G.722 codec is disabled...no" >&6
10566fi;
Benny Prijono71f657d2008-03-17 14:24:21 +000010567
10568
Benny Prijonoe2746132008-09-27 13:16:35 +000010569# Check whether --enable-speex-codec or --disable-speex-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010570if test "${enable_speex_codec+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010571 enableval="$enable_speex_codec"
10572 if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010573 ac_no_speex_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010574 cat >>confdefs.h <<\_ACEOF
10575#define PJMEDIA_HAS_SPEEX_CODEC 0
10576_ACEOF
10577
Benny Prijonoe2746132008-09-27 13:16:35 +000010578 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
10579echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010580 fi
10581else
Benny Prijonoe2746132008-09-27 13:16:35 +000010582 echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
10583echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6
10584fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010585
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010586
Benny Prijonoe2746132008-09-27 13:16:35 +000010587# Check whether --enable-ilbc-codec or --disable-ilbc-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010588if test "${enable_ilbc_codec+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010589 enableval="$enable_ilbc_codec"
10590 if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010591 ac_no_ilbc_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010592 cat >>confdefs.h <<\_ACEOF
10593#define PJMEDIA_HAS_ILBC_CODEC 0
10594_ACEOF
10595
Benny Prijonoe2746132008-09-27 13:16:35 +000010596 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
10597echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010598 fi
10599else
Benny Prijonoe2746132008-09-27 13:16:35 +000010600 echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
10601echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6
10602fi;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010603
Benny Prijonoe2746132008-09-27 13:16:35 +000010604# Check whether --enable-libsamplerate or --disable-libsamplerate was given.
Benny Prijono550a1a62007-10-16 08:54:00 +000010605if test "${enable_libsamplerate+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010606 enableval="$enable_libsamplerate"
10607
10608echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5
10609echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6
Benny Prijono550a1a62007-10-16 08:54:00 +000010610if test "${ac_cv_lib_samplerate_src_new+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10612else
10613 ac_check_lib_save_LIBS=$LIBS
10614LIBS="-lsamplerate $LIBS"
10615cat >conftest.$ac_ext <<_ACEOF
10616/* confdefs.h. */
10617_ACEOF
10618cat confdefs.h >>conftest.$ac_ext
10619cat >>conftest.$ac_ext <<_ACEOF
10620/* end confdefs.h. */
10621
Benny Prijonoe2746132008-09-27 13:16:35 +000010622/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono550a1a62007-10-16 08:54:00 +000010623#ifdef __cplusplus
10624extern "C"
10625#endif
Benny Prijonoe2746132008-09-27 13:16:35 +000010626/* We use char because int might match the return type of a gcc2
10627 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +000010628char src_new ();
10629int
10630main ()
10631{
Benny Prijonoe2746132008-09-27 13:16:35 +000010632src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +000010633 ;
10634 return 0;
10635}
10636_ACEOF
10637rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonoe2746132008-09-27 13:16:35 +000010638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10639 (eval $ac_link) 2>conftest.er1
Benny Prijono550a1a62007-10-16 08:54:00 +000010640 ac_status=$?
10641 grep -v '^ *+' conftest.er1 >conftest.err
10642 rm -f conftest.er1
10643 cat conftest.err >&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +000010645 (exit $ac_status); } &&
10646 { ac_try='test -z "$ac_c_werror_flag"
10647 || test ! -s conftest.err'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10650 ac_status=$?
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; } &&
10653 { ac_try='test -s conftest$ac_exeext'
10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655 (eval $ac_try) 2>&5
10656 ac_status=$?
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; }; then
Benny Prijono550a1a62007-10-16 08:54:00 +000010659 ac_cv_lib_samplerate_src_new=yes
10660else
10661 echo "$as_me: failed program was:" >&5
10662sed 's/^/| /' conftest.$ac_ext >&5
10663
Benny Prijonoe2746132008-09-27 13:16:35 +000010664ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +000010665fi
Benny Prijonoe2746132008-09-27 13:16:35 +000010666rm -f conftest.err conftest.$ac_objext \
Benny Prijono550a1a62007-10-16 08:54:00 +000010667 conftest$ac_exeext conftest.$ac_ext
10668LIBS=$ac_check_lib_save_LIBS
10669fi
Benny Prijonoe2746132008-09-27 13:16:35 +000010670echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5
10671echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6
Benny Prijono550a1a62007-10-16 08:54:00 +000010672if test $ac_cv_lib_samplerate_src_new = yes; then
10673 cat >>confdefs.h <<_ACEOF
10674#define HAVE_LIBSAMPLERATE 1
10675_ACEOF
10676
10677 LIBS="-lsamplerate $LIBS"
10678
10679fi
10680
10681else
Benny Prijonoe2746132008-09-27 13:16:35 +000010682 echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5
10683echo "${ECHO_T}Skipping libsamplerate detection" >&6
Benny Prijono550a1a62007-10-16 08:54:00 +000010684
Benny Prijonoe2746132008-09-27 13:16:35 +000010685fi;
Benny Prijono0822c192008-08-21 20:59:58 +000010686
10687
Benny Prijonoe2746132008-09-27 13:16:35 +000010688# Check whether --enable-ipp or --disable-ipp was given.
Benny Prijono0822c192008-08-21 20:59:58 +000010689if test "${enable_ipp+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010690 enableval="$enable_ipp"
10691
Benny Prijono0822c192008-08-21 20:59:58 +000010692else
10693 enable_ipp=no
10694
Benny Prijonoe2746132008-09-27 13:16:35 +000010695fi;
Benny Prijono0822c192008-08-21 20:59:58 +000010696
Benny Prijonoe2746132008-09-27 13:16:35 +000010697# Check whether --enable-ipp or --disable-ipp was given.
Benny Prijono0822c192008-08-21 20:59:58 +000010698if test "${enable_ipp+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010699 enableval="$enable_ipp"
10700
Benny Prijono0822c192008-08-21 20:59:58 +000010701else
10702 with_ipp=no
10703
Benny Prijonoe2746132008-09-27 13:16:35 +000010704fi;
Benny Prijono0822c192008-08-21 20:59:58 +000010705
Benny Prijonoe2746132008-09-27 13:16:35 +000010706# Check whether --enable-ipp-samples or --disable-ipp-samples was given.
Benny Prijono0822c192008-08-21 20:59:58 +000010707if test "${enable_ipp_samples+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010708 enableval="$enable_ipp_samples"
10709
Benny Prijono0822c192008-08-21 20:59:58 +000010710else
10711 with_ipp_samples=no
10712
Benny Prijonoe2746132008-09-27 13:16:35 +000010713fi;
Benny Prijono0822c192008-08-21 20:59:58 +000010714
10715if test "x$enable_ipp" != "xno"; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010716 echo "$as_me:$LINENO: checking Intel IPP location" >&5
10717echo $ECHO_N "checking Intel IPP location... $ECHO_C" >&6
Benny Prijono0822c192008-08-21 20:59:58 +000010718
10719 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010720 echo "$as_me:$LINENO: result: $with_ipp" >&5
10721echo "${ECHO_T}$with_ipp" >&6
Benny Prijono0822c192008-08-21 20:59:58 +000010722 IPPROOT=$with_ipp
10723 elif test "x$IPPROOT" = "x"; then
10724 if test -d /opt/intel/ipp; then
10725 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
Benny Prijonoe2746132008-09-27 13:16:35 +000010726 echo "$as_me:$LINENO: result: autodetected in $IPPROOT" >&5
10727echo "${ECHO_T}autodetected in $IPPROOT" >&6
Benny Prijono0822c192008-08-21 20:59:58 +000010728 fi
10729 else
Benny Prijonoe2746132008-09-27 13:16:35 +000010730 echo "$as_me:$LINENO: result: $IPPROOT" >&5
10731echo "${ECHO_T}$IPPROOT" >&6
Benny Prijono0822c192008-08-21 20:59:58 +000010732 fi
10733
10734 if test x$IPPROOT = x; then
10735 { { echo "$as_me:$LINENO: error: the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" >&5
10736echo "$as_me: error: the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" >&2;}
10737 { (exit 1); exit 1; }; }
10738 elif test ! -d $IPPROOT; then
10739 { { echo "$as_me:$LINENO: error: not found" >&5
10740echo "$as_me: error: not found" >&2;}
10741 { (exit 1); exit 1; }; }
10742 elif test ! -d $IPPROOT/include; then
10743 { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5
10744echo "$as_me: error: directory doesn't seem to be valid" >&2;}
10745 { (exit 1); exit 1; }; }
10746 else
10747 # IPP directory looks okay.
10748 # Remove trailing backslash
10749 IPPROOT=`echo $IPPROOT/ | sed 's/\/$//'`
10750
10751 SAVED_CFLAGS="$CFLAGS"
10752 SAVED_LDFLAGS="$LDFLAGS"
10753 SAVED_LIBS="$LIBS"
10754
10755 IPP_CFLAGS="-I$IPPROOT/include"
10756 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
10757 IPP_LIBS="-lippsc -lipps -lippsr -lippcore -lguide"
10758 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
10759 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
10760
10761 CFLAGS="$CFLAGS $IPP_CFLAGS"
10762 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
10763 LIBS="$IPP_LIBS $LIBS"
10764
10765
Benny Prijonoe2746132008-09-27 13:16:35 +000010766 echo "$as_me:$LINENO: checking Intel IPP usability" >&5
10767echo $ECHO_N "checking Intel IPP usability... $ECHO_C" >&6
Benny Prijono0822c192008-08-21 20:59:58 +000010768 cat >conftest.$ac_ext <<_ACEOF
10769/* confdefs.h. */
10770_ACEOF
10771cat confdefs.h >>conftest.$ac_ext
10772cat >>conftest.$ac_ext <<_ACEOF
10773/* end confdefs.h. */
10774#include <ippcore.h>
10775
10776int
10777main ()
10778{
10779ippStaticInit();
10780 ;
10781 return 0;
10782}
10783_ACEOF
10784rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonoe2746132008-09-27 13:16:35 +000010785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10786 (eval $ac_link) 2>conftest.er1
Benny Prijono0822c192008-08-21 20:59:58 +000010787 ac_status=$?
10788 grep -v '^ *+' conftest.er1 >conftest.err
10789 rm -f conftest.er1
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +000010792 (exit $ac_status); } &&
10793 { ac_try='test -z "$ac_c_werror_flag"
10794 || test ! -s conftest.err'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest$ac_exeext'
10801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802 (eval $ac_try) 2>&5
10803 ac_status=$?
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; }; then
10806 echo "$as_me:$LINENO: result: ok" >&5
10807echo "${ECHO_T}ok" >&6
Benny Prijono0822c192008-08-21 20:59:58 +000010808else
10809 echo "$as_me: failed program was:" >&5
10810sed 's/^/| /' conftest.$ac_ext >&5
10811
Benny Prijonoe2746132008-09-27 13:16:35 +000010812{ { echo "$as_me:$LINENO: error: failed
Benny Prijono0822c192008-08-21 20:59:58 +000010813See \`config.log' for more details." >&5
10814echo "$as_me: error: failed
10815See \`config.log' for more details." >&2;}
10816 { (exit 1); exit 1; }; }
10817fi
Benny Prijonoe2746132008-09-27 13:16:35 +000010818rm -f conftest.err conftest.$ac_objext \
Benny Prijono0822c192008-08-21 20:59:58 +000010819 conftest$ac_exeext conftest.$ac_ext
10820
10821 CFLAGS="$SAVED_CFLAGS"
10822 LDFLAGS="$SAVED_LDFLAGS"
10823 LIBS="$SAVED_LIBS"
10824 fi
10825
Benny Prijonoe2746132008-09-27 13:16:35 +000010826 echo "$as_me:$LINENO: checking Intel IPP samples location" >&5
10827echo $ECHO_N "checking Intel IPP samples location... $ECHO_C" >&6
Benny Prijono0822c192008-08-21 20:59:58 +000010828
10829 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010830 echo "$as_me:$LINENO: result: $with_ipp_samples" >&5
10831echo "${ECHO_T}$with_ipp_samples" >&6
Benny Prijono0822c192008-08-21 20:59:58 +000010832 IPPSAMPLES=$with_ipp_samples
10833 elif test "x$IPPSAMPLES" = "x"; then
10834 if test -d /opt/intel/ipp-samples; then
10835 IPPSAMPLES=/opt/intel/ipp-samples
Benny Prijonoe2746132008-09-27 13:16:35 +000010836 echo "$as_me:$LINENO: result: autodetected in $IPPSAMPLES" >&5
10837echo "${ECHO_T}autodetected in $IPPSAMPLES" >&6
Benny Prijono0822c192008-08-21 20:59:58 +000010838 fi
10839 else
Benny Prijonoe2746132008-09-27 13:16:35 +000010840 echo "$as_me:$LINENO: result: $IPPSAMPLES" >&5
10841echo "${ECHO_T}$IPPSAMPLES" >&6
Benny Prijono0822c192008-08-21 20:59:58 +000010842 fi
10843
10844 if test x$IPPSAMPLES = x; then
10845 { { echo "$as_me:$LINENO: error: the location is neither specified nor can be guessed. Please specify with IPPSAMPLES env var or with --with-ipp-samples option" >&5
10846echo "$as_me: error: the location is neither specified nor can be guessed. Please specify with IPPSAMPLES env var or with --with-ipp-samples option" >&2;}
10847 { (exit 1); exit 1; }; }
10848 elif test ! -d $IPPSAMPLES; then
10849 { { echo "$as_me:$LINENO: error: not found" >&5
10850echo "$as_me: error: not found" >&2;}
10851 { (exit 1); exit 1; }; }
10852 elif test ! -d $IPPSAMPLES/speech-codecs; then
10853 { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5
10854echo "$as_me: error: directory doesn't seem to be valid" >&2;}
10855 { (exit 1); exit 1; }; }
10856 else
10857 # Remove trailing backslash
10858 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
10859
10860 # Guess the libusc.a build location
Benny Prijonoe2746132008-09-27 13:16:35 +000010861 echo "$as_me:$LINENO: checking Intel IPP USC build location" >&5
10862echo $ECHO_N "checking Intel IPP USC build location... $ECHO_C" >&6
Benny Prijono0822c192008-08-21 20:59:58 +000010863 IPPSAMPLESLIB=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
10864 if test ! -d $IPPSAMPLESLIB; then
10865 { { echo "$as_me:$LINENO: error: the $IPPSAMPLES/speech-codecs/bin/*gcc*/lib directory not found. Have you built the samples?
10866See \`config.log' for more details." >&5
10867echo "$as_me: error: the $IPPSAMPLES/speech-codecs/bin/*gcc*/lib directory not found. Have you built the samples?
10868See \`config.log' for more details." >&2;}
10869 { (exit 1); exit 1; }; }
10870 fi
10871 if test ! -f $IPPSAMPLESLIB/libusc.a; then
10872 { { echo "$as_me:$LINENO: error: libusc.a doesn't exist in $IPPSAMPLESLIB
10873See \`config.log' for more details." >&5
10874echo "$as_me: error: libusc.a doesn't exist in $IPPSAMPLESLIB
10875See \`config.log' for more details." >&2;}
10876 { (exit 1); exit 1; }; }
10877 fi
Benny Prijonoe2746132008-09-27 13:16:35 +000010878 echo "$as_me:$LINENO: result: $IPPSAMPLESLIB" >&5
10879echo "${ECHO_T}$IPPSAMPLESLIB" >&6
Benny Prijono0822c192008-08-21 20:59:58 +000010880
10881 SAVED_CFLAGS="$CFLAGS"
10882 SAVED_LDFLAGS="$LDFLAGS"
10883 SAVED_LIBS="$LIBS"
10884
10885 IPPSAMPLESINC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
10886 CFLAGS="$CFLAGS $IPPSAMPLESINC"
10887 LDFLAGS="$LDFLAGS -L$IPPSAMPLESLIB"
10888 LIBS="-lusc $LIBS"
10889
Benny Prijonoe2746132008-09-27 13:16:35 +000010890 echo "$as_me:$LINENO: checking Intel IPP USC usability" >&5
10891echo $ECHO_N "checking Intel IPP USC usability... $ECHO_C" >&6
Benny Prijono0822c192008-08-21 20:59:58 +000010892 cat >conftest.$ac_ext <<_ACEOF
10893/* confdefs.h. */
10894_ACEOF
10895cat confdefs.h >>conftest.$ac_ext
10896cat >>conftest.$ac_ext <<_ACEOF
10897/* end confdefs.h. */
10898#include <usc.h>
10899
10900int
10901main ()
10902{
10903extern USC_Fxns USC_G729AFP_Fxns;
10904 ;
10905 return 0;
10906}
10907_ACEOF
10908rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonoe2746132008-09-27 13:16:35 +000010909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10910 (eval $ac_link) 2>conftest.er1
Benny Prijono0822c192008-08-21 20:59:58 +000010911 ac_status=$?
10912 grep -v '^ *+' conftest.er1 >conftest.err
10913 rm -f conftest.er1
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +000010916 (exit $ac_status); } &&
10917 { ac_try='test -z "$ac_c_werror_flag"
10918 || test ! -s conftest.err'
10919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920 (eval $ac_try) 2>&5
10921 ac_status=$?
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; } &&
10924 { ac_try='test -s conftest$ac_exeext'
10925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10926 (eval $ac_try) 2>&5
10927 ac_status=$?
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; }; then
10930 echo "$as_me:$LINENO: result: ok" >&5
10931echo "${ECHO_T}ok" >&6
Benny Prijono0822c192008-08-21 20:59:58 +000010932else
10933 echo "$as_me: failed program was:" >&5
10934sed 's/^/| /' conftest.$ac_ext >&5
10935
Benny Prijonoe2746132008-09-27 13:16:35 +000010936{ { echo "$as_me:$LINENO: error: failed
Benny Prijono0822c192008-08-21 20:59:58 +000010937See \`config.log' for more details." >&5
10938echo "$as_me: error: failed
10939See \`config.log' for more details." >&2;}
10940 { (exit 1); exit 1; }; }
10941fi
Benny Prijonoe2746132008-09-27 13:16:35 +000010942rm -f conftest.err conftest.$ac_objext \
Benny Prijono0822c192008-08-21 20:59:58 +000010943 conftest$ac_exeext conftest.$ac_ext
10944
10945 CFLAGS="$SAVED_CFLAGS"
10946 LDFLAGS="\$(IPP_LDFLAGS) $SAVED_LDFLAGS"
10947 LIBS="\$(IPP_LIBS) $SAVED_LIBS"
10948
10949 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMPLESINC"
10950 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMPLESLIB"
10951 IPP_LIBS="-lusc $IPP_LIBS"
10952 fi
10953
10954 ac_build_mak_vars="$ac_build_mak_vars\n\
10955export IPP_CFLAGS=$IPP_CFLAGS\n\
10956export IPP_LDFLAGS=$IPP_LDFLAGS\n\
10957export IPP_LIBS=$IPP_LIBS"
10958else
Benny Prijonoe2746132008-09-27 13:16:35 +000010959 echo "$as_me:$LINENO: result: Skipping Intel IPP settings (not wanted)" >&5
10960echo "${ECHO_T}Skipping Intel IPP settings (not wanted)" >&6
Benny Prijono0822c192008-08-21 20:59:58 +000010961fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010962
10963
10964
10965
Benny Prijonoe2746132008-09-27 13:16:35 +000010966# Check whether --enable-ssl or --disable-ssl was given.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010967if test "${enable_ssl+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010968 enableval="$enable_ssl"
10969
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010970 if test "$enable_ssl" = "no"; then
10971 ac_no_ssl=1
Benny Prijonoe2746132008-09-27 13:16:35 +000010972 echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
10973echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010974 fi
10975
10976else
10977
Benny Prijonoe2746132008-09-27 13:16:35 +000010978 echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
10979echo "${ECHO_T}checking for OpenSSL installations.." >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010980
10981
10982
10983 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
Benny Prijonoe2746132008-09-27 13:16:35 +000010984 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10985echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010986if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10988fi
Benny Prijonoe2746132008-09-27 13:16:35 +000010989echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10990echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010991else
10992 # Is the header compilable?
Benny Prijonoe2746132008-09-27 13:16:35 +000010993echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
10994echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010995cat >conftest.$ac_ext <<_ACEOF
10996/* confdefs.h. */
10997_ACEOF
10998cat confdefs.h >>conftest.$ac_ext
10999cat >>conftest.$ac_ext <<_ACEOF
11000/* end confdefs.h. */
11001$ac_includes_default
11002#include <openssl/ssl.h>
11003_ACEOF
11004rm -f conftest.$ac_objext
Benny Prijonoe2746132008-09-27 13:16:35 +000011005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11006 (eval $ac_compile) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011007 ac_status=$?
11008 grep -v '^ *+' conftest.er1 >conftest.err
11009 rm -f conftest.er1
11010 cat conftest.err >&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +000011012 (exit $ac_status); } &&
11013 { ac_try='test -z "$ac_c_werror_flag"
11014 || test ! -s conftest.err'
11015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11017 ac_status=$?
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; } &&
11020 { ac_try='test -s conftest.$ac_objext'
11021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022 (eval $ac_try) 2>&5
11023 ac_status=$?
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011026 ac_header_compiler=yes
11027else
11028 echo "$as_me: failed program was:" >&5
11029sed 's/^/| /' conftest.$ac_ext >&5
11030
Benny Prijonoe2746132008-09-27 13:16:35 +000011031ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011032fi
Benny Prijonoe2746132008-09-27 13:16:35 +000011033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11034echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11035echo "${ECHO_T}$ac_header_compiler" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011036
11037# Is the header present?
Benny Prijonoe2746132008-09-27 13:16:35 +000011038echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11039echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011040cat >conftest.$ac_ext <<_ACEOF
11041/* confdefs.h. */
11042_ACEOF
11043cat confdefs.h >>conftest.$ac_ext
11044cat >>conftest.$ac_ext <<_ACEOF
11045/* end confdefs.h. */
11046#include <openssl/ssl.h>
11047_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +000011048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011050 ac_status=$?
11051 grep -v '^ *+' conftest.er1 >conftest.err
11052 rm -f conftest.er1
11053 cat conftest.err >&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +000011055 (exit $ac_status); } >/dev/null; then
11056 if test -s conftest.err; then
11057 ac_cpp_err=$ac_c_preproc_warn_flag
11058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11059 else
11060 ac_cpp_err=
11061 fi
11062else
11063 ac_cpp_err=yes
11064fi
11065if test -z "$ac_cpp_err"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011066 ac_header_preproc=yes
11067else
11068 echo "$as_me: failed program was:" >&5
11069sed 's/^/| /' conftest.$ac_ext >&5
11070
11071 ac_header_preproc=no
11072fi
11073rm -f conftest.err conftest.$ac_ext
Benny Prijonoe2746132008-09-27 13:16:35 +000011074echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11075echo "${ECHO_T}$ac_header_preproc" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011076
11077# So? What about this header?
11078case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11079 yes:no: )
11080 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11081echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11082 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11083echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11084 ac_header_preproc=yes
11085 ;;
11086 no:yes:* )
11087 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11088echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11089 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11090echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11091 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11092echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11093 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11094echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11095 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11096echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11097 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11098echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonoe2746132008-09-27 13:16:35 +000011099 (
11100 cat <<\_ASBOX
11101## ------------------------------------ ##
11102## Report this to the pjproject lists. ##
11103## ------------------------------------ ##
11104_ASBOX
11105 ) |
11106 sed "s/^/$as_me: WARNING: /" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011107 ;;
11108esac
Benny Prijonoe2746132008-09-27 13:16:35 +000011109echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11110echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011111if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
11113else
11114 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11115fi
Benny Prijonoe2746132008-09-27 13:16:35 +000011116echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11117echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011118
11119fi
11120if test $ac_cv_header_openssl_ssl_h = yes; then
11121 openssl_h_present=1
11122fi
11123
11124
Benny Prijonoe2746132008-09-27 13:16:35 +000011125 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
11126echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011127if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11129else
11130 ac_check_lib_save_LIBS=$LIBS
11131LIBS="-lssl $LIBS"
11132cat >conftest.$ac_ext <<_ACEOF
11133/* confdefs.h. */
11134_ACEOF
11135cat confdefs.h >>conftest.$ac_ext
11136cat >>conftest.$ac_ext <<_ACEOF
11137/* end confdefs.h. */
11138
Benny Prijonoe2746132008-09-27 13:16:35 +000011139/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011140#ifdef __cplusplus
11141extern "C"
11142#endif
Benny Prijonoe2746132008-09-27 13:16:35 +000011143/* We use char because int might match the return type of a gcc2
11144 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011145char SSL_library_init ();
11146int
11147main ()
11148{
Benny Prijonoe2746132008-09-27 13:16:35 +000011149SSL_library_init ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011150 ;
11151 return 0;
11152}
11153_ACEOF
11154rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonoe2746132008-09-27 13:16:35 +000011155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11156 (eval $ac_link) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011157 ac_status=$?
11158 grep -v '^ *+' conftest.er1 >conftest.err
11159 rm -f conftest.er1
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +000011162 (exit $ac_status); } &&
11163 { ac_try='test -z "$ac_c_werror_flag"
11164 || test ! -s conftest.err'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11167 ac_status=$?
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; } &&
11170 { ac_try='test -s conftest$ac_exeext'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011176 ac_cv_lib_ssl_SSL_library_init=yes
11177else
11178 echo "$as_me: failed program was:" >&5
11179sed 's/^/| /' conftest.$ac_ext >&5
11180
Benny Prijonoe2746132008-09-27 13:16:35 +000011181ac_cv_lib_ssl_SSL_library_init=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011182fi
Benny Prijonoe2746132008-09-27 13:16:35 +000011183rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011184 conftest$ac_exeext conftest.$ac_ext
11185LIBS=$ac_check_lib_save_LIBS
11186fi
Benny Prijonoe2746132008-09-27 13:16:35 +000011187echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
11188echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011189if test $ac_cv_lib_ssl_SSL_library_init = yes; then
11190 libssl_present=1 && LIBS="$LIBS -lssl"
11191fi
11192
Benny Prijonoe2746132008-09-27 13:16:35 +000011193 echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
11194echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011195if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11197else
11198 ac_check_lib_save_LIBS=$LIBS
11199LIBS="-lcrypto $LIBS"
11200cat >conftest.$ac_ext <<_ACEOF
11201/* confdefs.h. */
11202_ACEOF
11203cat confdefs.h >>conftest.$ac_ext
11204cat >>conftest.$ac_ext <<_ACEOF
11205/* end confdefs.h. */
11206
Benny Prijonoe2746132008-09-27 13:16:35 +000011207/* Override any gcc2 internal prototype to avoid an error. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011208#ifdef __cplusplus
11209extern "C"
11210#endif
Benny Prijonoe2746132008-09-27 13:16:35 +000011211/* We use char because int might match the return type of a gcc2
11212 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011213char ERR_load_BIO_strings ();
11214int
11215main ()
11216{
Benny Prijonoe2746132008-09-27 13:16:35 +000011217ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011218 ;
11219 return 0;
11220}
11221_ACEOF
11222rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonoe2746132008-09-27 13:16:35 +000011223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11224 (eval $ac_link) 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011225 ac_status=$?
11226 grep -v '^ *+' conftest.er1 >conftest.err
11227 rm -f conftest.er1
11228 cat conftest.err >&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoe2746132008-09-27 13:16:35 +000011230 (exit $ac_status); } &&
11231 { ac_try='test -z "$ac_c_werror_flag"
11232 || test ! -s conftest.err'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11235 ac_status=$?
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; } &&
11238 { ac_try='test -s conftest$ac_exeext'
11239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240 (eval $ac_try) 2>&5
11241 ac_status=$?
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011244 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
11245else
11246 echo "$as_me: failed program was:" >&5
11247sed 's/^/| /' conftest.$ac_ext >&5
11248
Benny Prijonoe2746132008-09-27 13:16:35 +000011249ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011250fi
Benny Prijonoe2746132008-09-27 13:16:35 +000011251rm -f conftest.err conftest.$ac_objext \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011252 conftest$ac_exeext conftest.$ac_ext
11253LIBS=$ac_check_lib_save_LIBS
11254fi
Benny Prijonoe2746132008-09-27 13:16:35 +000011255echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
11256echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011257if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
11258 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
11259fi
11260
11261 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
Benny Prijonoe2746132008-09-27 13:16:35 +000011262 echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
11263echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011264 cat >>confdefs.h <<\_ACEOF
11265#define PJSIP_HAS_TLS_TRANSPORT 1
11266_ACEOF
11267
11268 else
Benny Prijonoe2746132008-09-27 13:16:35 +000011269 echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
11270echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011271 fi
11272
Benny Prijonoe2746132008-09-27 13:16:35 +000011273fi;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011274
11275
11276
11277
Benny Prijonoe2746132008-09-27 13:16:35 +000011278echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
11279echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011280case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011281 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011282#define PJ_SELECT_NEEDS_NFDS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011283_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011284
Benny Prijonoe2746132008-09-27 13:16:35 +000011285 echo "$as_me:$LINENO: result: yes" >&5
11286echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011287 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011288 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011289#define PJ_SELECT_NEEDS_NFDS 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011290_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011291
Benny Prijonoe2746132008-09-27 13:16:35 +000011292 echo "$as_me:$LINENO: result: no (default)" >&5
11293echo "${ECHO_T}no (default)" >&6
11294 echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
11295echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011296 ;;
11297esac
11298
Benny Prijonoe2746132008-09-27 13:16:35 +000011299echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
11300echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011301case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011302 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011303#define PJ_THREAD_SET_STACK_SIZE 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011304_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011305
Benny Prijonoe2746132008-09-27 13:16:35 +000011306 echo "$as_me:$LINENO: result: yes" >&5
11307echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011308 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011309 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011310#define PJ_THREAD_SET_STACK_SIZE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011311_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011312
Benny Prijonoe2746132008-09-27 13:16:35 +000011313 echo "$as_me:$LINENO: result: no (default)" >&5
11314echo "${ECHO_T}no (default)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011315 ;;
11316esac
11317
Benny Prijonoe2746132008-09-27 13:16:35 +000011318echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
11319echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011320case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011321 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011322#define PJ_THREAD_ALLOCATE_STACK 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011323_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011324
Benny Prijonoe2746132008-09-27 13:16:35 +000011325 echo "$as_me:$LINENO: result: yes" >&5
11326echo "${ECHO_T}yes" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011327 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011328 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011329#define PJ_THREAD_ALLOCATE_STACK 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011330_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011331
Benny Prijonoe2746132008-09-27 13:16:35 +000011332 echo "$as_me:$LINENO: result: no (default)" >&5
11333echo "${ECHO_T}no (default)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011334 ;;
11335esac
11336
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011337case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011338 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011339 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011340#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011341_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011342
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011343 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011344 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011345#define PJ_BLOCKING_ERROR_VAL EAGAIN
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011346_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011347
Benny Prijonoe2746132008-09-27 13:16:35 +000011348 echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
11349echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011350 ;;
11351esac
11352
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011353case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011354 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011355 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011356#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011357_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011358
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011359 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011360 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011361#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011362_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011363
Benny Prijonoe2746132008-09-27 13:16:35 +000011364 echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
11365echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011366 ;;
11367esac
11368
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011369
11370
11371
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011372if test "$build" = "$host"; then
11373 ac_cross_compile=
11374else
Benny Prijono5b818b22006-09-17 22:58:51 +000011375 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011376fi
11377ac_linux_poll=select
11378
11379ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011380
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011381
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011382case $target in
11383 *rtems*)
11384 ac_main_obj=main_rtems.o
11385 ;;
11386 *)
11387 ac_main_obj=main.o
11388 ;;
11389esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011390
Benny Prijono0822c192008-08-21 20:59:58 +000011391
11392ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011393cat >confcache <<\_ACEOF
11394# This file is a shell script that caches the results of configure
11395# tests run on this system so they can be shared between configure
11396# scripts and configure runs, see configure's option --config-cache.
11397# It is not useful on other systems. If it contains results you don't
11398# want to keep, you may remove or edit it.
11399#
11400# config.status only pays attention to the cache file if you give it
11401# the --recheck option to rerun configure.
11402#
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011403# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011404# loading this file, other *unset* `ac_cv_foo' will be assigned the
11405# following values.
11406
11407_ACEOF
11408
11409# The following way of writing the cache mishandles newlines in values,
11410# but we know of no workaround that is simple, portable, and efficient.
Benny Prijonoe2746132008-09-27 13:16:35 +000011411# So, don't put newlines in cache variables' values.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011412# Ultrix sh set writes to stderr and can't be redirected directly,
11413# and sets the high bit in the cache file unless we assign to the vars.
Benny Prijonoe2746132008-09-27 13:16:35 +000011414{
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011415 (set) 2>&1 |
Benny Prijonoe2746132008-09-27 13:16:35 +000011416 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11417 *ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011418 # `set' does not quote correctly, so add quotes (double-quote
11419 # substitution turns \\\\ into \\, and sed turns \\ into \).
11420 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011421 "s/'/'\\\\''/g;
11422 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Benny Prijonoe2746132008-09-27 13:16:35 +000011423 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011424 *)
11425 # `set' quotes correctly as required by POSIX, so do not add quotes.
Benny Prijonoe2746132008-09-27 13:16:35 +000011426 sed -n \
11427 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011428 ;;
Benny Prijonoe2746132008-09-27 13:16:35 +000011429 esac;
11430} |
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011431 sed '
11432 t clear
Benny Prijonoe2746132008-09-27 13:16:35 +000011433 : clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011434 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11435 t end
Benny Prijonoe2746132008-09-27 13:16:35 +000011436 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11437 : end' >>confcache
11438if diff $cache_file confcache >/dev/null 2>&1; then :; else
11439 if test -w $cache_file; then
11440 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011441 cat confcache >$cache_file
11442 else
Benny Prijonoe2746132008-09-27 13:16:35 +000011443 echo "not updating unwritable cache $cache_file"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011444 fi
11445fi
11446rm -f confcache
11447
11448test "x$prefix" = xNONE && prefix=$ac_default_prefix
11449# Let make expand exec_prefix.
11450test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11451
Benny Prijonoe2746132008-09-27 13:16:35 +000011452# VPATH may cause trouble with some makes, so we remove $(srcdir),
11453# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11454# trailing colons and then remove the whole line if VPATH becomes empty
11455# (actually we leave an empty line to preserve line numbers).
11456if test "x$srcdir" = x.; then
11457 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11458s/:*\$(srcdir):*/:/;
11459s/:*\${srcdir}:*/:/;
11460s/:*@srcdir@:*/:/;
11461s/^\([^=]*=[ ]*\):*/\1/;
11462s/:*$//;
11463s/^[^=]*=[ ]*$//;
11464}'
11465fi
11466
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011467DEFS=-DHAVE_CONFIG_H
11468
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011469ac_libobjs=
11470ac_ltlibobjs=
11471for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11472 # 1. Remove the extension, and $U if already installed.
Benny Prijonoe2746132008-09-27 13:16:35 +000011473 ac_i=`echo "$ac_i" |
11474 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11475 # 2. Add them.
11476 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11477 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011478done
11479LIBOBJS=$ac_libobjs
11480
11481LTLIBOBJS=$ac_ltlibobjs
11482
11483
11484
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011485: ${CONFIG_STATUS=./config.status}
11486ac_clean_files_save=$ac_clean_files
11487ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011488{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011489echo "$as_me: creating $CONFIG_STATUS" >&6;}
11490cat >$CONFIG_STATUS <<_ACEOF
11491#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011492# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011493# Run this file to recreate the current configuration.
11494# Compiler output produced by configure, useful for debugging
11495# configure, is in config.log if it exists.
11496
11497debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011498ac_cs_recheck=false
11499ac_cs_silent=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011500SHELL=\${CONFIG_SHELL-$SHELL}
11501_ACEOF
11502
11503cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011504## --------------------- ##
11505## M4sh Initialization. ##
11506## --------------------- ##
11507
Benny Prijonoe2746132008-09-27 13:16:35 +000011508# Be Bourne compatible
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011509if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11510 emulate sh
11511 NULLCMD=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011512 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11513 # is contrary to our usage. Disable this feature.
11514 alias -g '${1+"$@"}'='"$@"'
Benny Prijonoe2746132008-09-27 13:16:35 +000011515elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11516 set -o posix
11517fi
11518DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijono9489e7a2008-09-19 22:18:50 +000011519
Benny Prijonoe2746132008-09-27 13:16:35 +000011520# Support unset when possible.
11521if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11522 as_unset=unset
11523else
11524 as_unset=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011525fi
11526
11527
Benny Prijonoe2746132008-09-27 13:16:35 +000011528# Work around bugs in pre-3.0 UWIN ksh.
11529$as_unset ENV MAIL MAILPATH
11530PS1='$ '
11531PS2='> '
11532PS4='+ '
11533
11534# NLS nuisances.
11535for as_var in \
11536 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11537 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11538 LC_TELEPHONE LC_TIME
11539do
11540 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11541 eval $as_var=C; export $as_var
11542 else
11543 $as_unset $as_var
11544 fi
11545done
11546
11547# Required to use basename.
11548if expr a : '\(a\)' >/dev/null 2>&1; then
11549 as_expr=expr
11550else
11551 as_expr=false
11552fi
11553
11554if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11555 as_basename=basename
11556else
11557 as_basename=false
11558fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011559
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011560
Benny Prijonoe2746132008-09-27 13:16:35 +000011561# Name of the executable.
11562as_me=`$as_basename "$0" ||
11563$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11564 X"$0" : 'X\(//\)$' \| \
11565 X"$0" : 'X\(/\)$' \| \
11566 . : '\(.\)' 2>/dev/null ||
11567echo X/"$0" |
11568 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11569 /^X\/\(\/\/\)$/{ s//\1/; q; }
11570 /^X\/\(\/\).*/{ s//\1/; q; }
11571 s/.*/./; q'`
11572
11573
11574# PATH needs CR, and LINENO needs CR and PATH.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011575# Avoid depending upon Character Ranges.
11576as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11577as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11578as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11579as_cr_digits='0123456789'
11580as_cr_alnum=$as_cr_Letters$as_cr_digits
11581
11582# The user is always right.
11583if test "${PATH_SEPARATOR+set}" != set; then
11584 echo "#! /bin/sh" >conf$$.sh
11585 echo "exit 0" >>conf$$.sh
11586 chmod +x conf$$.sh
11587 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11588 PATH_SEPARATOR=';'
11589 else
11590 PATH_SEPARATOR=:
11591 fi
11592 rm -f conf$$.sh
11593fi
11594
11595
Benny Prijonoe2746132008-09-27 13:16:35 +000011596 as_lineno_1=$LINENO
11597 as_lineno_2=$LINENO
11598 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11599 test "x$as_lineno_1" != "x$as_lineno_2" &&
11600 test "x$as_lineno_3" = "x$as_lineno_2" || {
11601 # Find who we are. Look in the path if we contain no path at all
11602 # relative or not.
11603 case $0 in
11604 *[\\/]* ) as_myself=$0 ;;
11605 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011606for as_dir in $PATH
11607do
11608 IFS=$as_save_IFS
11609 test -z "$as_dir" && as_dir=.
11610 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11611done
11612
Benny Prijonoe2746132008-09-27 13:16:35 +000011613 ;;
11614 esac
11615 # We did not find ourselves, most probably we were run as `sh COMMAND'
11616 # in which case we are not to be found in the path.
11617 if test "x$as_myself" = x; then
11618 as_myself=$0
Benny Prijono9489e7a2008-09-19 22:18:50 +000011619 fi
Benny Prijonoe2746132008-09-27 13:16:35 +000011620 if test ! -f "$as_myself"; then
11621 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11622echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11623 { (exit 1); exit 1; }; }
11624 fi
11625 case $CONFIG_SHELL in
11626 '')
11627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11629do
11630 IFS=$as_save_IFS
11631 test -z "$as_dir" && as_dir=.
11632 for as_base in sh bash ksh sh5; do
11633 case $as_dir in
11634 /*)
11635 if ("$as_dir/$as_base" -c '
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011636 as_lineno_1=$LINENO
11637 as_lineno_2=$LINENO
Benny Prijonoe2746132008-09-27 13:16:35 +000011638 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011639 test "x$as_lineno_1" != "x$as_lineno_2" &&
Benny Prijonoe2746132008-09-27 13:16:35 +000011640 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11641 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11642 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11643 CONFIG_SHELL=$as_dir/$as_base
11644 export CONFIG_SHELL
11645 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11646 fi;;
11647 esac
11648 done
11649done
11650;;
11651 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011652
11653 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11654 # uniformly replaced by the line number. The first 'sed' inserts a
Benny Prijonoe2746132008-09-27 13:16:35 +000011655 # line-number line before each line; the second 'sed' does the real
11656 # work. The second script uses 'N' to pair each line-number line
11657 # with the numbered line, and appends trailing '-' during
11658 # substitution so that $LINENO is not a special case at line end.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011659 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Benny Prijonoe2746132008-09-27 13:16:35 +000011660 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11661 sed '=' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011662 sed '
11663 N
Benny Prijonoe2746132008-09-27 13:16:35 +000011664 s,$,-,
11665 : loop
11666 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011667 t loop
Benny Prijonoe2746132008-09-27 13:16:35 +000011668 s,-$,,
11669 s,^['$as_cr_digits']*\n,,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011670 ' >$as_me.lineno &&
Benny Prijonoe2746132008-09-27 13:16:35 +000011671 chmod +x $as_me.lineno ||
11672 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11673echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011674 { (exit 1); exit 1; }; }
11675
11676 # Don't try to exec as it changes $[0], causing all sort of problems
11677 # (the dirname of $[0] is not the place where we might find the
Benny Prijonoe2746132008-09-27 13:16:35 +000011678 # original and so on. Autoconf is especially sensible to this).
11679 . ./$as_me.lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011680 # Exit status is that of the last command.
11681 exit
11682}
11683
11684
Benny Prijonoe2746132008-09-27 13:16:35 +000011685case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11686 *c*,-n*) ECHO_N= ECHO_C='
11687' ECHO_T=' ' ;;
11688 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11689 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011690esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011691
Benny Prijonoe2746132008-09-27 13:16:35 +000011692if expr a : '\(a\)' >/dev/null 2>&1; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011693 as_expr=expr
11694else
11695 as_expr=false
11696fi
11697
11698rm -f conf$$ conf$$.exe conf$$.file
11699echo >conf$$.file
11700if ln -s conf$$.file conf$$ 2>/dev/null; then
Benny Prijonoe2746132008-09-27 13:16:35 +000011701 # We could just check for DJGPP; but this test a) works b) is more generic
11702 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11703 if test -f conf$$.exe; then
11704 # Don't use ln at all; we don't have any links
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011705 as_ln_s='cp -p'
Benny Prijonoe2746132008-09-27 13:16:35 +000011706 else
11707 as_ln_s='ln -s'
11708 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011709elif ln conf$$.file conf$$ 2>/dev/null; then
11710 as_ln_s=ln
11711else
11712 as_ln_s='cp -p'
11713fi
Benny Prijonoe2746132008-09-27 13:16:35 +000011714rm -f conf$$ conf$$.exe conf$$.file
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011715
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011716if mkdir -p . 2>/dev/null; then
11717 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +000011718else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011719 test -d ./-p && rmdir ./-p
11720 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +000011721fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011722
Benny Prijonoe2746132008-09-27 13:16:35 +000011723as_executable_p="test -f"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011724
11725# Sed expression to map a string onto a valid CPP name.
11726as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11727
11728# Sed expression to map a string onto a valid variable name.
11729as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11730
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011731
Benny Prijonoe2746132008-09-27 13:16:35 +000011732# IFS
11733# We need space, tab and new line, in precisely that order.
11734as_nl='
11735'
11736IFS=" $as_nl"
11737
11738# CDPATH.
11739$as_unset CDPATH
11740
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011741exec 6>&1
11742
Benny Prijonoe2746132008-09-27 13:16:35 +000011743# Open the log real soon, to keep \$[0] and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011744# report actual input values of CONFIG_FILES etc. instead of their
Benny Prijonoe2746132008-09-27 13:16:35 +000011745# values after options handling. Logging --version etc. is OK.
11746exec 5>>config.log
11747{
11748 echo
11749 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11750## Running $as_me. ##
11751_ASBOX
11752} >&5
11753cat >&5 <<_CSEOF
11754
Benny Prijono0822c192008-08-21 20:59:58 +000011755This file was extended by pjproject $as_me 1.0, which was
Benny Prijonoe2746132008-09-27 13:16:35 +000011756generated by GNU Autoconf 2.59. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011757
11758 CONFIG_FILES = $CONFIG_FILES
11759 CONFIG_HEADERS = $CONFIG_HEADERS
11760 CONFIG_LINKS = $CONFIG_LINKS
11761 CONFIG_COMMANDS = $CONFIG_COMMANDS
11762 $ $0 $@
11763
Benny Prijonoe2746132008-09-27 13:16:35 +000011764_CSEOF
11765echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11766echo >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011767_ACEOF
11768
11769# Files that config.status was made for.
Benny Prijonoe2746132008-09-27 13:16:35 +000011770if test -n "$ac_config_files"; then
11771 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11772fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011773
Benny Prijonoe2746132008-09-27 13:16:35 +000011774if test -n "$ac_config_headers"; then
11775 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11776fi
11777
11778if test -n "$ac_config_links"; then
11779 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11780fi
11781
11782if test -n "$ac_config_commands"; then
11783 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11784fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011785
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011786cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +000011787
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011788ac_cs_usage="\
11789\`$as_me' instantiates files from templates according to the
11790current configuration.
11791
11792Usage: $0 [OPTIONS] [FILE]...
11793
11794 -h, --help print this help, then exit
Benny Prijonoe2746132008-09-27 13:16:35 +000011795 -V, --version print version number, then exit
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011796 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011797 -d, --debug don't remove temporary files
11798 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011799 --file=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011800 instantiate the configuration file FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011801 --header=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011802 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011803
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011804Configuration files:
11805$config_files
11806
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011807Configuration headers:
11808$config_headers
11809
11810Report bugs to <bug-autoconf@gnu.org>."
Benny Prijono9489e7a2008-09-19 22:18:50 +000011811_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +000011812
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011813cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011814ac_cs_version="\\
Benny Prijono0822c192008-08-21 20:59:58 +000011815pjproject config.status 1.0
Benny Prijonoe2746132008-09-27 13:16:35 +000011816configured by $0, generated by GNU Autoconf 2.59,
11817 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011818
Benny Prijonoe2746132008-09-27 13:16:35 +000011819Copyright (C) 2003 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011820This config.status script is free software; the Free Software Foundation
11821gives unlimited permission to copy, distribute and modify it."
Benny Prijonoe2746132008-09-27 13:16:35 +000011822srcdir=$srcdir
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011823_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011824
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011825cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011826# If no file are specified by the user, then we need to provide default
11827# value. By we need to know if files were specified by the user.
11828ac_need_defaults=:
11829while test $# != 0
11830do
11831 case $1 in
11832 --*=*)
Benny Prijonoe2746132008-09-27 13:16:35 +000011833 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11834 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011835 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011836 ;;
Benny Prijonoe2746132008-09-27 13:16:35 +000011837 -*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011838 ac_option=$1
11839 ac_optarg=$2
11840 ac_shift=shift
11841 ;;
Benny Prijonoe2746132008-09-27 13:16:35 +000011842 *) # This is not an option, so the user has probably given explicit
11843 # arguments.
11844 ac_option=$1
11845 ac_need_defaults=false;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011846 esac
11847
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011848 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011849 # Handling of the options.
Benny Prijonoe2746132008-09-27 13:16:35 +000011850_ACEOF
11851cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011852 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011853 ac_cs_recheck=: ;;
Benny Prijonoe2746132008-09-27 13:16:35 +000011854 --version | --vers* | -V )
11855 echo "$ac_cs_version"; exit 0 ;;
11856 --he | --h)
11857 # Conflict between --help and --header
11858 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11859Try \`$0 --help' for more information." >&5
11860echo "$as_me: error: ambiguous option: $1
11861Try \`$0 --help' for more information." >&2;}
11862 { (exit 1); exit 1; }; };;
11863 --help | --hel | -h )
11864 echo "$ac_cs_usage"; exit 0 ;;
11865 --debug | --d* | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011866 debug=: ;;
11867 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011868 $ac_shift
11869 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011870 ac_need_defaults=false;;
11871 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011872 $ac_shift
11873 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011874 ac_need_defaults=false;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011875 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11876 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11877 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011878
11879 # This is an error.
Benny Prijonoe2746132008-09-27 13:16:35 +000011880 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11881Try \`$0 --help' for more information." >&5
11882echo "$as_me: error: unrecognized option: $1
11883Try \`$0 --help' for more information." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011884 { (exit 1); exit 1; }; } ;;
11885
Benny Prijonoe2746132008-09-27 13:16:35 +000011886 *) ac_config_targets="$ac_config_targets $1" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011887
11888 esac
11889 shift
11890done
11891
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011892ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011893
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011894if $ac_cs_silent; then
11895 exec 6>/dev/null
11896 ac_configure_extra_args="$ac_configure_extra_args --silent"
11897fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011898
11899_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011900cat >>$CONFIG_STATUS <<_ACEOF
11901if \$ac_cs_recheck; then
Benny Prijonoe2746132008-09-27 13:16:35 +000011902 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11903 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011904fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011905
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011906_ACEOF
11907
Benny Prijonoe2746132008-09-27 13:16:35 +000011908
11909
11910
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011911
11912cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011913for ac_config_target in $ac_config_targets
11914do
Benny Prijonoe2746132008-09-27 13:16:35 +000011915 case "$ac_config_target" in
11916 # Handling of arguments.
11917 "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;;
11918 "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
11919 "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
11920 "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
11921 "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
11922 "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
11923 "third_party/build/portaudio/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;;
11924 "third_party/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
11925 "pjlib/include/pj/compat/os_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
11926 "pjlib/include/pj/compat/m_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
11927 "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
11928 "pjmedia/include/pjmedia-codec/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
11929 "pjsip/include/pjsip/sip_autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011930 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011931echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11932 { (exit 1); exit 1; }; };;
11933 esac
11934done
11935
11936# If the user did not use the arguments to specify the items to instantiate,
11937# then the envvar interface is used. Set only those that are not.
11938# We use the long form for the default assignment because of an extremely
11939# bizarre bug on SunOS 4.1.3.
11940if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011941 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011942 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11943fi
11944
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011945# Have a temporary directory for convenience. Make it in the build tree
Benny Prijonoe2746132008-09-27 13:16:35 +000011946# simply because there is no reason to put it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011947# creating and moving files from /tmp can sometimes cause problems.
Benny Prijonoe2746132008-09-27 13:16:35 +000011948# Create a temporary directory, and hook for its removal unless debugging.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011949$debug ||
11950{
Benny Prijonoe2746132008-09-27 13:16:35 +000011951 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011952 trap '{ (exit 1); exit 1; }' 1 2 13 15
11953}
Benny Prijonoe2746132008-09-27 13:16:35 +000011954
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011955# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011956
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011957{
Benny Prijonoe2746132008-09-27 13:16:35 +000011958 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011959 test -n "$tmp" && test -d "$tmp"
11960} ||
11961{
Benny Prijonoe2746132008-09-27 13:16:35 +000011962 tmp=./confstat$$-$RANDOM
11963 (umask 077 && mkdir $tmp)
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011964} ||
11965{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011966 echo "$me: cannot create a temporary directory in ." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011967 { (exit 1); exit 1; }
11968}
11969
Benny Prijonoe2746132008-09-27 13:16:35 +000011970_ACEOF
11971
11972cat >>$CONFIG_STATUS <<_ACEOF
11973
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011974#
Benny Prijonoe2746132008-09-27 13:16:35 +000011975# CONFIG_FILES section.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011976#
11977
11978# No need to generate the scripts if there are no CONFIG_FILES.
11979# This happens for instance when ./config.status config.h
Benny Prijonoe2746132008-09-27 13:16:35 +000011980if test -n "\$CONFIG_FILES"; then
11981 # Protect against being on the right side of a sed subst in config.status.
11982 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11983 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11984s,@SHELL@,$SHELL,;t t
11985s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11986s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11987s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11988s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11989s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11990s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11991s,@exec_prefix@,$exec_prefix,;t t
11992s,@prefix@,$prefix,;t t
11993s,@program_transform_name@,$program_transform_name,;t t
11994s,@bindir@,$bindir,;t t
11995s,@sbindir@,$sbindir,;t t
11996s,@libexecdir@,$libexecdir,;t t
11997s,@datadir@,$datadir,;t t
11998s,@sysconfdir@,$sysconfdir,;t t
11999s,@sharedstatedir@,$sharedstatedir,;t t
12000s,@localstatedir@,$localstatedir,;t t
12001s,@libdir@,$libdir,;t t
12002s,@includedir@,$includedir,;t t
12003s,@oldincludedir@,$oldincludedir,;t t
12004s,@infodir@,$infodir,;t t
12005s,@mandir@,$mandir,;t t
12006s,@build_alias@,$build_alias,;t t
12007s,@host_alias@,$host_alias,;t t
12008s,@target_alias@,$target_alias,;t t
12009s,@DEFS@,$DEFS,;t t
12010s,@ECHO_C@,$ECHO_C,;t t
12011s,@ECHO_N@,$ECHO_N,;t t
12012s,@ECHO_T@,$ECHO_T,;t t
12013s,@LIBS@,$LIBS,;t t
12014s,@build@,$build,;t t
12015s,@build_cpu@,$build_cpu,;t t
12016s,@build_vendor@,$build_vendor,;t t
12017s,@build_os@,$build_os,;t t
12018s,@host@,$host,;t t
12019s,@host_cpu@,$host_cpu,;t t
12020s,@host_vendor@,$host_vendor,;t t
12021s,@host_os@,$host_os,;t t
12022s,@target@,$target,;t t
12023s,@target_cpu@,$target_cpu,;t t
12024s,@target_vendor@,$target_vendor,;t t
12025s,@target_os@,$target_os,;t t
12026s,@CC@,$CC,;t t
12027s,@CFLAGS@,$CFLAGS,;t t
12028s,@LDFLAGS@,$LDFLAGS,;t t
12029s,@CPPFLAGS@,$CPPFLAGS,;t t
12030s,@ac_ct_CC@,$ac_ct_CC,;t t
12031s,@EXEEXT@,$EXEEXT,;t t
12032s,@OBJEXT@,$OBJEXT,;t t
12033s,@CXX@,$CXX,;t t
12034s,@CXXFLAGS@,$CXXFLAGS,;t t
12035s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12036s,@ac_pjdir@,$ac_pjdir,;t t
12037s,@ac_build_mak_vars@,$ac_build_mak_vars,;t t
12038s,@CPP@,$CPP,;t t
12039s,@EGREP@,$EGREP,;t t
12040s,@ac_os_objs@,$ac_os_objs,;t t
12041s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t
12042s,@ac_pa_cflags@,$ac_pa_cflags,;t t
12043s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t
12044s,@ac_pa_use_oss@,$ac_pa_use_oss,;t t
12045s,@ac_no_small_filter@,$ac_no_small_filter,;t t
12046s,@ac_no_large_filter@,$ac_no_large_filter,;t t
12047s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t
12048s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t
12049s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t
12050s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t
12051s,@ac_no_g722_codec@,$ac_no_g722_codec,;t t
12052s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t
12053s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t
12054s,@ac_no_ssl@,$ac_no_ssl,;t t
12055s,@openssl_h_present@,$openssl_h_present,;t t
12056s,@libssl_present@,$libssl_present,;t t
12057s,@libcrypto_present@,$libcrypto_present,;t t
12058s,@ac_cross_compile@,$ac_cross_compile,;t t
12059s,@ac_linux_poll@,$ac_linux_poll,;t t
12060s,@ac_host@,$ac_host,;t t
12061s,@ac_main_obj@,$ac_main_obj,;t t
12062s,@LIBOBJS@,$LIBOBJS,;t t
12063s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12064CEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012065
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012066_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012067
Benny Prijonoe2746132008-09-27 13:16:35 +000012068 cat >>$CONFIG_STATUS <<\_ACEOF
12069 # Split the substitutions into bite-sized pieces for seds with
12070 # small command number limits, like on Digital OSF/1 and HP-UX.
12071 ac_max_sed_lines=48
12072 ac_sed_frag=1 # Number of current file.
12073 ac_beg=1 # First line for current file.
12074 ac_end=$ac_max_sed_lines # Line after last line for current file.
12075 ac_more_lines=:
12076 ac_sed_cmds=
12077 while $ac_more_lines; do
12078 if test $ac_beg -gt 1; then
12079 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12080 else
12081 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12082 fi
12083 if test ! -s $tmp/subs.frag; then
12084 ac_more_lines=false
12085 else
12086 # The purpose of the label and of the branching condition is to
12087 # speed up the sed processing (if there are no `@' at all, there
12088 # is no need to browse any of the substitutions).
12089 # These are the two extra sed commands mentioned above.
12090 (echo ':t
12091 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12092 if test -z "$ac_sed_cmds"; then
12093 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12094 else
12095 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12096 fi
12097 ac_sed_frag=`expr $ac_sed_frag + 1`
12098 ac_beg=$ac_end
12099 ac_end=`expr $ac_end + $ac_max_sed_lines`
12100 fi
12101 done
12102 if test -z "$ac_sed_cmds"; then
12103 ac_sed_cmds=cat
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012104 fi
12105fi # test -n "$CONFIG_FILES"
12106
Benny Prijonoe2746132008-09-27 13:16:35 +000012107_ACEOF
12108cat >>$CONFIG_STATUS <<\_ACEOF
12109for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12110 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12111 case $ac_file in
12112 - | *:- | *:-:* ) # input from stdin
12113 cat >$tmp/stdin
12114 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12115 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12116 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12117 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12118 * ) ac_file_in=$ac_file.in ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012119 esac
12120
Benny Prijonoe2746132008-09-27 13:16:35 +000012121 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12122 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012123$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12124 X"$ac_file" : 'X\(//\)[^/]' \| \
12125 X"$ac_file" : 'X\(//\)$' \| \
Benny Prijonoe2746132008-09-27 13:16:35 +000012126 X"$ac_file" : 'X\(/\)' \| \
12127 . : '\(.\)' 2>/dev/null ||
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012128echo X"$ac_file" |
Benny Prijonoe2746132008-09-27 13:16:35 +000012129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12131 /^X\(\/\/\)$/{ s//\1/; q; }
12132 /^X\(\/\).*/{ s//\1/; q; }
12133 s/.*/./; q'`
12134 { if $as_mkdir_p; then
12135 mkdir -p "$ac_dir"
12136 else
12137 as_dir="$ac_dir"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012138 as_dirs=
Benny Prijonoe2746132008-09-27 13:16:35 +000012139 while test ! -d "$as_dir"; do
12140 as_dirs="$as_dir $as_dirs"
12141 as_dir=`(dirname "$as_dir") 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012142$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12143 X"$as_dir" : 'X\(//\)[^/]' \| \
12144 X"$as_dir" : 'X\(//\)$' \| \
Benny Prijonoe2746132008-09-27 13:16:35 +000012145 X"$as_dir" : 'X\(/\)' \| \
12146 . : '\(.\)' 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012147echo X"$as_dir" |
Benny Prijonoe2746132008-09-27 13:16:35 +000012148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12150 /^X\(\/\/\)$/{ s//\1/; q; }
12151 /^X\(\/\).*/{ s//\1/; q; }
12152 s/.*/./; q'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012153 done
Benny Prijonoe2746132008-09-27 13:16:35 +000012154 test ! -n "$as_dirs" || mkdir $as_dirs
12155 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12156echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012157 { (exit 1); exit 1; }; }; }
Benny Prijonoe2746132008-09-27 13:16:35 +000012158
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012159 ac_builddir=.
12160
Benny Prijonoe2746132008-09-27 13:16:35 +000012161if test "$ac_dir" != .; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012162 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Benny Prijonoe2746132008-09-27 13:16:35 +000012163 # A "../" for each directory in $ac_dir_suffix.
12164 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12165else
12166 ac_dir_suffix= ac_top_builddir=
12167fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012168
12169case $srcdir in
Benny Prijonoe2746132008-09-27 13:16:35 +000012170 .) # No --srcdir option. We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012171 ac_srcdir=.
Benny Prijonoe2746132008-09-27 13:16:35 +000012172 if test -z "$ac_top_builddir"; then
12173 ac_top_srcdir=.
12174 else
12175 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12176 fi ;;
12177 [\\/]* | ?:[\\/]* ) # Absolute path.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012178 ac_srcdir=$srcdir$ac_dir_suffix;
Benny Prijonoe2746132008-09-27 13:16:35 +000012179 ac_top_srcdir=$srcdir ;;
12180 *) # Relative path.
12181 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12182 ac_top_srcdir=$ac_top_builddir$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012183esac
Benny Prijono0822c192008-08-21 20:59:58 +000012184
Benny Prijonoe2746132008-09-27 13:16:35 +000012185# Do not use `cd foo && pwd` to compute absolute paths, because
12186# the directories may not exist.
12187case `pwd` in
12188.) ac_abs_builddir="$ac_dir";;
12189*)
12190 case "$ac_dir" in
12191 .) ac_abs_builddir=`pwd`;;
12192 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12193 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12194 esac;;
Benny Prijono9489e7a2008-09-19 22:18:50 +000012195esac
Benny Prijonoe2746132008-09-27 13:16:35 +000012196case $ac_abs_builddir in
12197.) ac_abs_top_builddir=${ac_top_builddir}.;;
12198*)
12199 case ${ac_top_builddir}. in
12200 .) ac_abs_top_builddir=$ac_abs_builddir;;
12201 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12202 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12203 esac;;
12204esac
12205case $ac_abs_builddir in
12206.) ac_abs_srcdir=$ac_srcdir;;
12207*)
12208 case $ac_srcdir in
12209 .) ac_abs_srcdir=$ac_abs_builddir;;
12210 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12211 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12212 esac;;
12213esac
12214case $ac_abs_builddir in
12215.) ac_abs_top_srcdir=$ac_top_srcdir;;
12216*)
12217 case $ac_top_srcdir in
12218 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12219 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12220 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12221 esac;;
12222esac
Benny Prijono9489e7a2008-09-19 22:18:50 +000012223
Benny Prijonoe2746132008-09-27 13:16:35 +000012224
12225
12226 if test x"$ac_file" != x-; then
12227 { echo "$as_me:$LINENO: creating $ac_file" >&5
12228echo "$as_me: creating $ac_file" >&6;}
12229 rm -f "$ac_file"
12230 fi
12231 # Let's still pretend it is `configure' which instantiates (i.e., don't
12232 # use $as_me), people would be surprised to read:
12233 # /* config.h. Generated by config.status. */
12234 if test x"$ac_file" = x-; then
12235 configure_input=
12236 else
12237 configure_input="$ac_file. "
12238 fi
12239 configure_input=$configure_input"Generated from `echo $ac_file_in |
12240 sed 's,.*/,,'` by configure."
12241
12242 # First look for the input files in the build tree, otherwise in the
12243 # src tree.
12244 ac_file_inputs=`IFS=:
12245 for f in $ac_file_in; do
12246 case $f in
12247 -) echo $tmp/stdin ;;
12248 [\\/$]*)
12249 # Absolute (can't be DOS-style, as IFS=:)
12250 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12251echo "$as_me: error: cannot find input file: $f" >&2;}
12252 { (exit 1); exit 1; }; }
12253 echo "$f";;
12254 *) # Relative
12255 if test -f "$f"; then
12256 # Build tree
12257 echo "$f"
12258 elif test -f "$srcdir/$f"; then
12259 # Source tree
12260 echo "$srcdir/$f"
12261 else
12262 # /dev/null tree
12263 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12264echo "$as_me: error: cannot find input file: $f" >&2;}
12265 { (exit 1); exit 1; }; }
12266 fi;;
12267 esac
12268 done` || { (exit 1); exit 1; }
12269_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012270cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012271 sed "$ac_vpsub
12272$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012273_ACEOF
12274cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012275:t
12276/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Benny Prijonoe2746132008-09-27 13:16:35 +000012277s,@configure_input@,$configure_input,;t t
12278s,@srcdir@,$ac_srcdir,;t t
12279s,@abs_srcdir@,$ac_abs_srcdir,;t t
12280s,@top_srcdir@,$ac_top_srcdir,;t t
12281s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12282s,@builddir@,$ac_builddir,;t t
12283s,@abs_builddir@,$ac_abs_builddir,;t t
12284s,@top_builddir@,$ac_top_builddir,;t t
12285s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12286" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12287 rm -f $tmp/stdin
12288 if test x"$ac_file" != x-; then
12289 mv $tmp/out $ac_file
12290 else
12291 cat $tmp/out
12292 rm -f $tmp/out
12293 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012294
Benny Prijonoe2746132008-09-27 13:16:35 +000012295done
12296_ACEOF
12297cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012298
Benny Prijonoe2746132008-09-27 13:16:35 +000012299#
12300# CONFIG_HEADER section.
12301#
12302
12303# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12304# NAME is the cpp macro being defined and VALUE is the value it is being given.
12305#
12306# ac_d sets the value in "#define NAME VALUE" lines.
12307ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12308ac_dB='[ ].*$,\1#\2'
12309ac_dC=' '
12310ac_dD=',;t'
12311# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12312ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12313ac_uB='$,\1#\2define\3'
12314ac_uC=' '
12315ac_uD=',;t'
12316
12317for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12318 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012319 case $ac_file in
Benny Prijonoe2746132008-09-27 13:16:35 +000012320 - | *:- | *:-:* ) # input from stdin
12321 cat >$tmp/stdin
12322 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12323 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12324 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12325 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12326 * ) ac_file_in=$ac_file.in ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012327 esac
Benny Prijonoe2746132008-09-27 13:16:35 +000012328
12329 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12330echo "$as_me: creating $ac_file" >&6;}
12331
12332 # First look for the input files in the build tree, otherwise in the
12333 # src tree.
12334 ac_file_inputs=`IFS=:
12335 for f in $ac_file_in; do
12336 case $f in
12337 -) echo $tmp/stdin ;;
12338 [\\/$]*)
12339 # Absolute (can't be DOS-style, as IFS=:)
12340 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12341echo "$as_me: error: cannot find input file: $f" >&2;}
12342 { (exit 1); exit 1; }; }
12343 # Do quote $f, to prevent DOS paths from being IFS'd.
12344 echo "$f";;
12345 *) # Relative
12346 if test -f "$f"; then
12347 # Build tree
12348 echo "$f"
12349 elif test -f "$srcdir/$f"; then
12350 # Source tree
12351 echo "$srcdir/$f"
12352 else
12353 # /dev/null tree
12354 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12355echo "$as_me: error: cannot find input file: $f" >&2;}
12356 { (exit 1); exit 1; }; }
12357 fi;;
12358 esac
12359 done` || { (exit 1); exit 1; }
12360 # Remove the trailing spaces.
12361 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12362
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012363_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012364
Benny Prijonoe2746132008-09-27 13:16:35 +000012365# Transform confdefs.h into two sed scripts, `conftest.defines' and
12366# `conftest.undefs', that substitutes the proper values into
12367# config.h.in to produce config.h. The first handles `#define'
12368# templates, and the second `#undef' templates.
12369# And first: Protect against being on the right side of a sed subst in
12370# config.status. Protect against being in an unquoted here document
12371# in config.status.
12372rm -f conftest.defines conftest.undefs
12373# Using a here document instead of a string reduces the quoting nightmare.
12374# Putting comments in sed scripts is not portable.
12375#
12376# `end' is used to avoid that the second main sed command (meant for
12377# 0-ary CPP macros) applies to n-ary macro definitions.
12378# See the Autoconf documentation for `clear'.
12379cat >confdef2sed.sed <<\_ACEOF
12380s/[\\&,]/\\&/g
12381s,[\\$`],\\&,g
12382t clear
12383: clear
12384s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12385t end
12386s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12387: end
12388_ACEOF
12389# If some macros were called several times there might be several times
12390# the same #defines, which is useless. Nevertheless, we may not want to
12391# sort them, since we want the *last* AC-DEFINE to be honored.
12392uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12393sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12394rm -f confdef2sed.sed
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012395
Benny Prijonoe2746132008-09-27 13:16:35 +000012396# This sed command replaces #undef with comments. This is necessary, for
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012397# example, in the case of _POSIX_SOURCE, which is predefined and required
12398# on some systems where configure will not decide to define it.
Benny Prijonoe2746132008-09-27 13:16:35 +000012399cat >>conftest.undefs <<\_ACEOF
12400s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Benny Prijono9489e7a2008-09-19 22:18:50 +000012401_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +000012402
12403# Break up conftest.defines because some shells have a limit on the size
12404# of here documents, and old seds have small limits too (100 cmds).
12405echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12406echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12407echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12408echo ' :' >>$CONFIG_STATUS
12409rm -f conftest.tail
12410while grep . conftest.defines >/dev/null
12411do
12412 # Write a limited-size here document to $tmp/defines.sed.
12413 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12414 # Speed up: don't consider the non `#define' lines.
12415 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12416 # Work around the forget-to-reset-the-flag bug.
12417 echo 't clr' >>$CONFIG_STATUS
12418 echo ': clr' >>$CONFIG_STATUS
12419 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012420 echo 'CEOF
Benny Prijonoe2746132008-09-27 13:16:35 +000012421 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12422 rm -f $tmp/in
12423 mv $tmp/out $tmp/in
12424' >>$CONFIG_STATUS
12425 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012426 rm -f conftest.defines
12427 mv conftest.tail conftest.defines
12428done
Benny Prijonoe2746132008-09-27 13:16:35 +000012429rm -f conftest.defines
12430echo ' fi # grep' >>$CONFIG_STATUS
12431echo >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012432
Benny Prijonoe2746132008-09-27 13:16:35 +000012433# Break up conftest.undefs because some shells have a limit on the size
12434# of here documents, and old seds have small limits too (100 cmds).
12435echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12436rm -f conftest.tail
12437while grep . conftest.undefs >/dev/null
12438do
12439 # Write a limited-size here document to $tmp/undefs.sed.
12440 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12441 # Speed up: don't consider the non `#undef'
12442 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12443 # Work around the forget-to-reset-the-flag bug.
12444 echo 't clr' >>$CONFIG_STATUS
12445 echo ': clr' >>$CONFIG_STATUS
12446 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12447 echo 'CEOF
12448 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12449 rm -f $tmp/in
12450 mv $tmp/out $tmp/in
12451' >>$CONFIG_STATUS
12452 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12453 rm -f conftest.undefs
12454 mv conftest.tail conftest.undefs
12455done
12456rm -f conftest.undefs
12457
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012458cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +000012459 # Let's still pretend it is `configure' which instantiates (i.e., don't
12460 # use $as_me), people would be surprised to read:
12461 # /* config.h. Generated by config.status. */
12462 if test x"$ac_file" = x-; then
12463 echo "/* Generated by configure. */" >$tmp/config.h
12464 else
12465 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12466 fi
12467 cat $tmp/in >>$tmp/config.h
12468 rm -f $tmp/in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012469 if test x"$ac_file" != x-; then
Benny Prijonoe2746132008-09-27 13:16:35 +000012470 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012471 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012472echo "$as_me: $ac_file is unchanged" >&6;}
12473 else
Benny Prijonoe2746132008-09-27 13:16:35 +000012474 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12475$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12476 X"$ac_file" : 'X\(//\)[^/]' \| \
12477 X"$ac_file" : 'X\(//\)$' \| \
12478 X"$ac_file" : 'X\(/\)' \| \
12479 . : '\(.\)' 2>/dev/null ||
12480echo X"$ac_file" |
12481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12483 /^X\(\/\/\)$/{ s//\1/; q; }
12484 /^X\(\/\).*/{ s//\1/; q; }
12485 s/.*/./; q'`
12486 { if $as_mkdir_p; then
12487 mkdir -p "$ac_dir"
12488 else
12489 as_dir="$ac_dir"
12490 as_dirs=
12491 while test ! -d "$as_dir"; do
12492 as_dirs="$as_dir $as_dirs"
12493 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12494$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12495 X"$as_dir" : 'X\(//\)[^/]' \| \
12496 X"$as_dir" : 'X\(//\)$' \| \
12497 X"$as_dir" : 'X\(/\)' \| \
12498 . : '\(.\)' 2>/dev/null ||
12499echo X"$as_dir" |
12500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12501 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12502 /^X\(\/\/\)$/{ s//\1/; q; }
12503 /^X\(\/\).*/{ s//\1/; q; }
12504 s/.*/./; q'`
12505 done
12506 test ! -n "$as_dirs" || mkdir $as_dirs
12507 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12508echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12509 { (exit 1); exit 1; }; }; }
12510
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012511 rm -f $ac_file
Benny Prijonoe2746132008-09-27 13:16:35 +000012512 mv $tmp/config.h $ac_file
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012513 fi
12514 else
Benny Prijonoe2746132008-09-27 13:16:35 +000012515 cat $tmp/config.h
12516 rm -f $tmp/config.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012517 fi
Benny Prijonoe2746132008-09-27 13:16:35 +000012518done
12519_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012520
Benny Prijonoe2746132008-09-27 13:16:35 +000012521cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012522
12523{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012524_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012525chmod +x $CONFIG_STATUS
12526ac_clean_files=$ac_clean_files_save
12527
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012528
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012529# configure is writing to config.log, and then calls config.status.
12530# config.status does its own redirection, appending to config.log.
12531# Unfortunately, on DOS this fails, as config.log is still kept open
12532# by configure, so config.status won't be able to write to it; its
12533# output is simply discarded. So we exec the FD to /dev/null,
12534# effectively closing config.log, so it can be properly (re)opened and
12535# appended to by config.status. When coming back to configure, we
12536# need to make the FD available again.
12537if test "$no_create" != yes; then
12538 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012539 ac_config_status_args=
12540 test "$silent" = yes &&
12541 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012542 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012543 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012544 exec 5>>config.log
12545 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12546 # would make configure fail if this is the last instruction.
12547 $ac_cs_success || { (exit 1); exit 1; }
12548fi
12549
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012550
Benny Prijonod9627842007-04-18 09:24:31 +000012551
Benny Prijonoe2746132008-09-27 13:16:35 +000012552echo "$as_me:$LINENO: result:
Benny Prijonod9627842007-04-18 09:24:31 +000012553
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012554Configurations 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 +000012555
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012556Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000012557 - 'user.mak'
12558 - 'pjlib/include/pj/config_site.h'
12559
12560The next step now is to run 'make dep' and 'make'.
12561" >&5
12562echo "${ECHO_T}
12563
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012564Configurations 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 +000012565
Benny Prijonoc16c6e32007-11-18 14:53:47 +000012566Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000012567 - 'user.mak'
12568 - 'pjlib/include/pj/config_site.h'
12569
12570The next step now is to run 'make dep' and 'make'.
Benny Prijonoe2746132008-09-27 13:16:35 +000012571" >&6
Benny Prijonod9627842007-04-18 09:24:31 +000012572