blob: 43a1b188fb760715240ea1c265a40ac92cd33f5d [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijonofdafd402008-01-23 14:34:46 +00003# Generated by GNU Autoconf 2.61 for pjproject 0.7.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004#
Benny Prijonofdafd402008-01-23 14:34:46 +00005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012
Benny Prijonofdafd402008-01-23 14:34:46 +000013# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijono7e0d75f2006-12-25 20:34:14 +000015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
Benny Prijonofdafd402008-01-23 14:34:46 +000021 setopt NO_GLOB_SUBST
Benny Prijono7e0d75f2006-12-25 20:34:14 +000022else
Benny Prijonofdafd402008-01-23 14:34:46 +000023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
Benny Prijono7e0d75f2006-12-25 20:34:14 +000027fi
28
29
Benny Prijono7e0d75f2006-12-25 20:34:14 +000030
31
Benny Prijonofdafd402008-01-23 14:34:46 +000032# PATH needs CR
Benny Prijonoa9b372a2006-07-24 02:07:11 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
Benny Prijono7e0d75f2006-12-25 20:34:14 +000040# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
Benny Prijonoa9b372a2006-07-24 02:07:11 +000051fi
52
Benny Prijonofdafd402008-01-23 14:34:46 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000059
Benny Prijonofdafd402008-01-23 14:34:46 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Benny Prijonofdafd402008-01-23 14:34:46 +000080IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000081
Benny Prijonofdafd402008-01-23 14:34:46 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000112 fi
Benny Prijonofdafd402008-01-23 14:34:46 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Benny Prijonofdafd402008-01-23 14:34:46 +0000226 case $as_dir in
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000227 /*)
Benny Prijonofdafd402008-01-23 14:34:46 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000330 test "x$as_lineno_1" != "x$as_lineno_2" &&
Benny Prijonofdafd402008-01-23 14:34:46 +0000331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
Benny Prijonofdafd402008-01-23 14:34:46 +0000430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Benny Prijonofdafd402008-01-23 14:34:46 +0000436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000442 sed '
Benny Prijonofdafd402008-01-23 14:34:46 +0000443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000447 N
Benny Prijonofdafd402008-01-23 14:34:46 +0000448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000450 t loop
Benny Prijonofdafd402008-01-23 14:34:46 +0000451 s/-\n.*//
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000452 ' >$as_me.lineno &&
Benny Prijonofdafd402008-01-23 14:34:46 +0000453 chmod +x "$as_me.lineno" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
Benny Prijonofdafd402008-01-23 14:34:46 +0000459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000461 # Exit status is that of the last command.
462 exit
463}
464
465
Benny Prijonofdafd402008-01-23 14:34:46 +0000466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000481esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000482
Benny Prijonofdafd402008-01-23 14:34:46 +0000483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
Benny Prijonofdafd402008-01-23 14:34:46 +0000491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
Benny Prijonofdafd402008-01-23 14:34:46 +0000499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000505 as_ln_s='cp -p'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
Benny Prijonofdafd402008-01-23 14:34:46 +0000511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000513
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +0000516else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +0000519fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +0000520
Benny Prijonofdafd402008-01-23 14:34:46 +0000521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541fi
542as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000550
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000551
Benny Prijonofdafd402008-01-23 14:34:46 +0000552exec 7<&0 </dev/null 6>&1
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
Benny Prijonofdafd402008-01-23 14:34:46 +0000563ac_clean_files=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000564ac_config_libobj_dir=.
Benny Prijonofdafd402008-01-23 14:34:46 +0000565LIBOBJS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000566cross_compiling=no
567subdirs=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000568MFLAGS=
569MAKEFLAGS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000570SHELL=${CONFIG_SHELL-/bin/sh}
571
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000572# Identity of this package.
573PACKAGE_NAME='pjproject'
574PACKAGE_TARNAME='pjproject'
Benny Prijonoabcf49c2007-05-15 21:02:54 +0000575PACKAGE_VERSION='0.7'
576PACKAGE_STRING='pjproject 0.7'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000577PACKAGE_BUGREPORT=''
578
579# Factoring default headers for most tests.
580ac_includes_default="\
581#include <stdio.h>
Benny Prijonofdafd402008-01-23 14:34:46 +0000582#ifdef HAVE_SYS_TYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000583# include <sys/types.h>
584#endif
Benny Prijonofdafd402008-01-23 14:34:46 +0000585#ifdef HAVE_SYS_STAT_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000586# include <sys/stat.h>
587#endif
Benny Prijonofdafd402008-01-23 14:34:46 +0000588#ifdef STDC_HEADERS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000589# include <stdlib.h>
590# include <stddef.h>
591#else
Benny Prijonofdafd402008-01-23 14:34:46 +0000592# ifdef HAVE_STDLIB_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000593# include <stdlib.h>
594# endif
595#endif
Benny Prijonofdafd402008-01-23 14:34:46 +0000596#ifdef HAVE_STRING_H
597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000598# include <memory.h>
599# endif
600# include <string.h>
601#endif
Benny Prijonofdafd402008-01-23 14:34:46 +0000602#ifdef HAVE_STRINGS_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000603# include <strings.h>
604#endif
Benny Prijonofdafd402008-01-23 14:34:46 +0000605#ifdef HAVE_INTTYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000606# include <inttypes.h>
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000607#endif
Benny Prijonofdafd402008-01-23 14:34:46 +0000608#ifdef HAVE_STDINT_H
609# include <stdint.h>
610#endif
611#ifdef HAVE_UNISTD_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000612# include <unistd.h>
613#endif"
614
Benny Prijonofdafd402008-01-23 14:34:46 +0000615ac_subst_vars='SHELL
616PATH_SEPARATOR
617PACKAGE_NAME
618PACKAGE_TARNAME
619PACKAGE_VERSION
620PACKAGE_STRING
621PACKAGE_BUGREPORT
622exec_prefix
623prefix
624program_transform_name
625bindir
626sbindir
627libexecdir
628datarootdir
629datadir
630sysconfdir
631sharedstatedir
632localstatedir
633includedir
634oldincludedir
635docdir
636infodir
637htmldir
638dvidir
639pdfdir
640psdir
641libdir
642localedir
643mandir
644DEFS
645ECHO_C
646ECHO_N
647ECHO_T
648LIBS
649build_alias
650host_alias
651target_alias
652build
653build_cpu
654build_vendor
655build_os
656host
657host_cpu
658host_vendor
659host_os
660target
661target_cpu
662target_vendor
663target_os
664CC
665CFLAGS
666LDFLAGS
667CPPFLAGS
668ac_ct_CC
669EXEEXT
670OBJEXT
671CXX
672CXXFLAGS
673ac_ct_CXX
674ac_pjdir
675CPP
676GREP
677EGREP
678ac_os_objs
679ac_pjmedia_snd
680ac_pa_cflags
681ac_pa_use_alsa
682ac_no_small_filter
683ac_no_large_filter
684ac_no_speex_aec
685ac_no_g711_codec
686ac_no_l16_codec
687ac_no_gsm_codec
688ac_no_speex_codec
689ac_no_ilbc_codec
690ac_no_ssl
691openssl_h_present
692libssl_present
693libcrypto_present
694ac_cross_compile
695ac_linux_poll
696ac_host
697ac_main_obj
698LIBOBJS
699LTLIBOBJS'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000700ac_subst_files=''
Benny Prijonofdafd402008-01-23 14:34:46 +0000701 ac_precious_vars='build_alias
702host_alias
703target_alias
704CC
705CFLAGS
706LDFLAGS
707LIBS
708CPPFLAGS
709CXX
710CXXFLAGS
711CCC
712CPP'
713
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000714
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000715# Initialize some variables set by options.
716ac_init_help=
717ac_init_version=false
718# The variables have the same names as the options, with
719# dashes changed to underlines.
720cache_file=/dev/null
721exec_prefix=NONE
722no_create=
723no_recursion=
724prefix=NONE
725program_prefix=NONE
726program_suffix=NONE
727program_transform_name=s,x,x,
728silent=
729site=
730srcdir=
731verbose=
732x_includes=NONE
733x_libraries=NONE
734
735# Installation directory options.
736# These are left unexpanded so users can "make install exec_prefix=/foo"
737# and all the variables that are supposed to be based on exec_prefix
738# by default will actually change.
739# Use braces instead of parens because sh, perl, etc. also accept them.
Benny Prijonofdafd402008-01-23 14:34:46 +0000740# (The list follows the same order as the GNU Coding Standards.)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000741bindir='${exec_prefix}/bin'
742sbindir='${exec_prefix}/sbin'
743libexecdir='${exec_prefix}/libexec'
Benny Prijonofdafd402008-01-23 14:34:46 +0000744datarootdir='${prefix}/share'
745datadir='${datarootdir}'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000746sysconfdir='${prefix}/etc'
747sharedstatedir='${prefix}/com'
748localstatedir='${prefix}/var'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000749includedir='${prefix}/include'
750oldincludedir='/usr/include'
Benny Prijonofdafd402008-01-23 14:34:46 +0000751docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
752infodir='${datarootdir}/info'
753htmldir='${docdir}'
754dvidir='${docdir}'
755pdfdir='${docdir}'
756psdir='${docdir}'
757libdir='${exec_prefix}/lib'
758localedir='${datarootdir}/locale'
759mandir='${datarootdir}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000760
761ac_prev=
Benny Prijonofdafd402008-01-23 14:34:46 +0000762ac_dashdash=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000763for ac_option
764do
765 # If the previous option needs an argument, assign it.
766 if test -n "$ac_prev"; then
Benny Prijonofdafd402008-01-23 14:34:46 +0000767 eval $ac_prev=\$ac_option
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000768 ac_prev=
769 continue
770 fi
771
Benny Prijonofdafd402008-01-23 14:34:46 +0000772 case $ac_option in
773 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
774 *) ac_optarg=yes ;;
775 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000776
777 # Accept the important Cygnus configure options, so we can diagnose typos.
778
Benny Prijonofdafd402008-01-23 14:34:46 +0000779 case $ac_dashdash$ac_option in
780 --)
781 ac_dashdash=yes ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000782
783 -bindir | --bindir | --bindi | --bind | --bin | --bi)
784 ac_prev=bindir ;;
785 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
786 bindir=$ac_optarg ;;
787
788 -build | --build | --buil | --bui | --bu)
789 ac_prev=build_alias ;;
790 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
791 build_alias=$ac_optarg ;;
792
793 -cache-file | --cache-file | --cache-fil | --cache-fi \
794 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
795 ac_prev=cache_file ;;
796 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
797 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
798 cache_file=$ac_optarg ;;
799
800 --config-cache | -C)
801 cache_file=config.cache ;;
802
Benny Prijonofdafd402008-01-23 14:34:46 +0000803 -datadir | --datadir | --datadi | --datad)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000804 ac_prev=datadir ;;
Benny Prijonofdafd402008-01-23 14:34:46 +0000805 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000806 datadir=$ac_optarg ;;
807
Benny Prijonofdafd402008-01-23 14:34:46 +0000808 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
809 | --dataroo | --dataro | --datar)
810 ac_prev=datarootdir ;;
811 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
812 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
813 datarootdir=$ac_optarg ;;
814
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000815 -disable-* | --disable-*)
816 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
817 # Reject names that are not valid shell variable names.
Benny Prijonofdafd402008-01-23 14:34:46 +0000818 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000819 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
820 { (exit 1); exit 1; }; }
Benny Prijonofdafd402008-01-23 14:34:46 +0000821 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
822 eval enable_$ac_feature=no ;;
823
824 -docdir | --docdir | --docdi | --doc | --do)
825 ac_prev=docdir ;;
826 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
827 docdir=$ac_optarg ;;
828
829 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
830 ac_prev=dvidir ;;
831 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
832 dvidir=$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000833
834 -enable-* | --enable-*)
835 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
836 # Reject names that are not valid shell variable names.
Benny Prijonofdafd402008-01-23 14:34:46 +0000837 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000838 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
839 { (exit 1); exit 1; }; }
Benny Prijonofdafd402008-01-23 14:34:46 +0000840 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
841 eval enable_$ac_feature=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000842
843 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
844 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
845 | --exec | --exe | --ex)
846 ac_prev=exec_prefix ;;
847 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
848 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
849 | --exec=* | --exe=* | --ex=*)
850 exec_prefix=$ac_optarg ;;
851
852 -gas | --gas | --ga | --g)
853 # Obsolete; use --with-gas.
854 with_gas=yes ;;
855
856 -help | --help | --hel | --he | -h)
857 ac_init_help=long ;;
858 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
859 ac_init_help=recursive ;;
860 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
861 ac_init_help=short ;;
862
863 -host | --host | --hos | --ho)
864 ac_prev=host_alias ;;
865 -host=* | --host=* | --hos=* | --ho=*)
866 host_alias=$ac_optarg ;;
867
Benny Prijonofdafd402008-01-23 14:34:46 +0000868 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
869 ac_prev=htmldir ;;
870 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
871 | --ht=*)
872 htmldir=$ac_optarg ;;
873
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000874 -includedir | --includedir | --includedi | --included | --include \
875 | --includ | --inclu | --incl | --inc)
876 ac_prev=includedir ;;
877 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
878 | --includ=* | --inclu=* | --incl=* | --inc=*)
879 includedir=$ac_optarg ;;
880
881 -infodir | --infodir | --infodi | --infod | --info | --inf)
882 ac_prev=infodir ;;
883 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
884 infodir=$ac_optarg ;;
885
886 -libdir | --libdir | --libdi | --libd)
887 ac_prev=libdir ;;
888 -libdir=* | --libdir=* | --libdi=* | --libd=*)
889 libdir=$ac_optarg ;;
890
891 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
892 | --libexe | --libex | --libe)
893 ac_prev=libexecdir ;;
894 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
895 | --libexe=* | --libex=* | --libe=*)
896 libexecdir=$ac_optarg ;;
897
Benny Prijonofdafd402008-01-23 14:34:46 +0000898 -localedir | --localedir | --localedi | --localed | --locale)
899 ac_prev=localedir ;;
900 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
901 localedir=$ac_optarg ;;
902
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000903 -localstatedir | --localstatedir | --localstatedi | --localstated \
Benny Prijonofdafd402008-01-23 14:34:46 +0000904 | --localstate | --localstat | --localsta | --localst | --locals)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000905 ac_prev=localstatedir ;;
906 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Benny Prijonofdafd402008-01-23 14:34:46 +0000907 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000908 localstatedir=$ac_optarg ;;
909
910 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
911 ac_prev=mandir ;;
912 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
913 mandir=$ac_optarg ;;
914
915 -nfp | --nfp | --nf)
916 # Obsolete; use --without-fp.
917 with_fp=no ;;
918
919 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000920 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000921 no_create=yes ;;
922
923 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
924 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
925 no_recursion=yes ;;
926
927 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
928 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
929 | --oldin | --oldi | --old | --ol | --o)
930 ac_prev=oldincludedir ;;
931 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
932 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
933 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
934 oldincludedir=$ac_optarg ;;
935
936 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
937 ac_prev=prefix ;;
938 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
939 prefix=$ac_optarg ;;
940
941 -program-prefix | --program-prefix | --program-prefi | --program-pref \
942 | --program-pre | --program-pr | --program-p)
943 ac_prev=program_prefix ;;
944 -program-prefix=* | --program-prefix=* | --program-prefi=* \
945 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
946 program_prefix=$ac_optarg ;;
947
948 -program-suffix | --program-suffix | --program-suffi | --program-suff \
949 | --program-suf | --program-su | --program-s)
950 ac_prev=program_suffix ;;
951 -program-suffix=* | --program-suffix=* | --program-suffi=* \
952 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
953 program_suffix=$ac_optarg ;;
954
955 -program-transform-name | --program-transform-name \
956 | --program-transform-nam | --program-transform-na \
957 | --program-transform-n | --program-transform- \
958 | --program-transform | --program-transfor \
959 | --program-transfo | --program-transf \
960 | --program-trans | --program-tran \
961 | --progr-tra | --program-tr | --program-t)
962 ac_prev=program_transform_name ;;
963 -program-transform-name=* | --program-transform-name=* \
964 | --program-transform-nam=* | --program-transform-na=* \
965 | --program-transform-n=* | --program-transform-=* \
966 | --program-transform=* | --program-transfor=* \
967 | --program-transfo=* | --program-transf=* \
968 | --program-trans=* | --program-tran=* \
969 | --progr-tra=* | --program-tr=* | --program-t=*)
970 program_transform_name=$ac_optarg ;;
971
Benny Prijonofdafd402008-01-23 14:34:46 +0000972 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
973 ac_prev=pdfdir ;;
974 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
975 pdfdir=$ac_optarg ;;
976
977 -psdir | --psdir | --psdi | --psd | --ps)
978 ac_prev=psdir ;;
979 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
980 psdir=$ac_optarg ;;
981
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
983 | -silent | --silent | --silen | --sile | --sil)
984 silent=yes ;;
985
986 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
987 ac_prev=sbindir ;;
988 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
989 | --sbi=* | --sb=*)
990 sbindir=$ac_optarg ;;
991
992 -sharedstatedir | --sharedstatedir | --sharedstatedi \
993 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
994 | --sharedst | --shareds | --shared | --share | --shar \
995 | --sha | --sh)
996 ac_prev=sharedstatedir ;;
997 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
998 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
999 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1000 | --sha=* | --sh=*)
1001 sharedstatedir=$ac_optarg ;;
1002
1003 -site | --site | --sit)
1004 ac_prev=site ;;
1005 -site=* | --site=* | --sit=*)
1006 site=$ac_optarg ;;
1007
1008 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1009 ac_prev=srcdir ;;
1010 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1011 srcdir=$ac_optarg ;;
1012
1013 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1014 | --syscon | --sysco | --sysc | --sys | --sy)
1015 ac_prev=sysconfdir ;;
1016 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1017 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1018 sysconfdir=$ac_optarg ;;
1019
1020 -target | --target | --targe | --targ | --tar | --ta | --t)
1021 ac_prev=target_alias ;;
1022 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1023 target_alias=$ac_optarg ;;
1024
1025 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1026 verbose=yes ;;
1027
1028 -version | --version | --versio | --versi | --vers | -V)
1029 ac_init_version=: ;;
1030
1031 -with-* | --with-*)
1032 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1033 # Reject names that are not valid shell variable names.
Benny Prijonofdafd402008-01-23 14:34:46 +00001034 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001035 { echo "$as_me: error: invalid package name: $ac_package" >&2
1036 { (exit 1); exit 1; }; }
Benny Prijonofdafd402008-01-23 14:34:46 +00001037 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1038 eval with_$ac_package=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001039
1040 -without-* | --without-*)
1041 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1042 # Reject names that are not valid shell variable names.
Benny Prijonofdafd402008-01-23 14:34:46 +00001043 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001044 { echo "$as_me: error: invalid package name: $ac_package" >&2
1045 { (exit 1); exit 1; }; }
Benny Prijonofdafd402008-01-23 14:34:46 +00001046 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1047 eval with_$ac_package=no ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001048
1049 --x)
1050 # Obsolete; use --with-x.
1051 with_x=yes ;;
1052
1053 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1054 | --x-incl | --x-inc | --x-in | --x-i)
1055 ac_prev=x_includes ;;
1056 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1057 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1058 x_includes=$ac_optarg ;;
1059
1060 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1061 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1062 ac_prev=x_libraries ;;
1063 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1064 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1065 x_libraries=$ac_optarg ;;
1066
1067 -*) { echo "$as_me: error: unrecognized option: $ac_option
1068Try \`$0 --help' for more information." >&2
1069 { (exit 1); exit 1; }; }
1070 ;;
1071
1072 *=*)
1073 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1076 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1077 { (exit 1); exit 1; }; }
Benny Prijonofdafd402008-01-23 14:34:46 +00001078 eval $ac_envvar=\$ac_optarg
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001079 export $ac_envvar ;;
1080
1081 *)
1082 # FIXME: should be removed in autoconf 3.0.
1083 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1084 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1085 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1086 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1087 ;;
1088
1089 esac
1090done
1091
1092if test -n "$ac_prev"; then
1093 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1094 { echo "$as_me: error: missing argument to $ac_option" >&2
1095 { (exit 1); exit 1; }; }
1096fi
1097
Benny Prijonofdafd402008-01-23 14:34:46 +00001098# Be sure to have absolute directory names.
1099for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1100 datadir sysconfdir sharedstatedir localstatedir includedir \
1101 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1102 libdir localedir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001103do
Benny Prijonofdafd402008-01-23 14:34:46 +00001104 eval ac_val=\$$ac_var
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001105 case $ac_val in
Benny Prijonofdafd402008-01-23 14:34:46 +00001106 [\\/$]* | ?:[\\/]* ) continue;;
1107 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001108 esac
Benny Prijonofdafd402008-01-23 14:34:46 +00001109 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1110 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001111done
1112
1113# There might be people who depend on the old broken behavior: `$host'
1114# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001115# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001116build=$build_alias
1117host=$host_alias
1118target=$target_alias
1119
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001120# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001121if test "x$host_alias" != x; then
1122 if test "x$build_alias" = x; then
1123 cross_compiling=maybe
1124 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1125 If a cross compiler is detected then cross compile mode will be used." >&2
1126 elif test "x$build_alias" != "x$host_alias"; then
1127 cross_compiling=yes
1128 fi
1129fi
1130
1131ac_tool_prefix=
1132test -n "$host_alias" && ac_tool_prefix=$host_alias-
1133
1134test "$silent" = yes && exec 6>/dev/null
1135
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001136
Benny Prijonofdafd402008-01-23 14:34:46 +00001137ac_pwd=`pwd` && test -n "$ac_pwd" &&
1138ac_ls_di=`ls -di .` &&
1139ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1140 { echo "$as_me: error: Working directory cannot be determined" >&2
1141 { (exit 1); exit 1; }; }
1142test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1143 { echo "$as_me: error: pwd does not report name of working directory" >&2
1144 { (exit 1); exit 1; }; }
1145
1146
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001147# Find the source files, if location was not specified.
1148if test -z "$srcdir"; then
1149 ac_srcdir_defaulted=yes
Benny Prijonofdafd402008-01-23 14:34:46 +00001150 # Try the directory containing this script, then the parent directory.
1151 ac_confdir=`$as_dirname -- "$0" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001152$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1153 X"$0" : 'X\(//\)[^/]' \| \
1154 X"$0" : 'X\(//\)$' \| \
Benny Prijonofdafd402008-01-23 14:34:46 +00001155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001156echo X"$0" |
Benny Prijonofdafd402008-01-23 14:34:46 +00001157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1158 s//\1/
1159 q
1160 }
1161 /^X\(\/\/\)[^/].*/{
1162 s//\1/
1163 q
1164 }
1165 /^X\(\/\/\)$/{
1166 s//\1/
1167 q
1168 }
1169 /^X\(\/\).*/{
1170 s//\1/
1171 q
1172 }
1173 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001174 srcdir=$ac_confdir
Benny Prijonofdafd402008-01-23 14:34:46 +00001175 if test ! -r "$srcdir/$ac_unique_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001176 srcdir=..
1177 fi
1178else
1179 ac_srcdir_defaulted=no
1180fi
Benny Prijonofdafd402008-01-23 14:34:46 +00001181if test ! -r "$srcdir/$ac_unique_file"; then
1182 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1183 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001184 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001185fi
Benny Prijonofdafd402008-01-23 14:34:46 +00001186ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1187ac_abs_confdir=`(
1188 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001189 { (exit 1); exit 1; }; }
Benny Prijonofdafd402008-01-23 14:34:46 +00001190 pwd)`
1191# When building in place, set srcdir=.
1192if test "$ac_abs_confdir" = "$ac_pwd"; then
1193 srcdir=.
1194fi
1195# Remove unnecessary trailing slashes from srcdir.
1196# Double slashes in file names in object file debugging info
1197# mess up M-x gdb in Emacs.
1198case $srcdir in
1199*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1200esac
1201for ac_var in $ac_precious_vars; do
1202 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1203 eval ac_env_${ac_var}_value=\$${ac_var}
1204 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1205 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1206done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001207
1208#
1209# Report the --help message.
1210#
1211if test "$ac_init_help" = "long"; then
1212 # Omit some internal or obsolete options to make the list less imposing.
1213 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001214 cat <<_ACEOF
Benny Prijonoabcf49c2007-05-15 21:02:54 +00001215\`configure' configures pjproject 0.7 to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001216
1217Usage: $0 [OPTION]... [VAR=VALUE]...
1218
1219To assign environment variables (e.g., CC, CFLAGS...), specify them as
1220VAR=VALUE. See below for descriptions of some of the useful variables.
1221
1222Defaults for the options are specified in brackets.
1223
1224Configuration:
1225 -h, --help display this help and exit
1226 --help=short display options specific to this package
1227 --help=recursive display the short help of all the included packages
1228 -V, --version display version information and exit
1229 -q, --quiet, --silent do not print \`checking...' messages
1230 --cache-file=FILE cache test results in FILE [disabled]
1231 -C, --config-cache alias for \`--cache-file=config.cache'
1232 -n, --no-create do not create output files
1233 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1234
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001235Installation directories:
1236 --prefix=PREFIX install architecture-independent files in PREFIX
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001237 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001238 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001239 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001240
1241By default, \`make install' will install all the files in
1242\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1243an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1244for instance \`--prefix=\$HOME'.
1245
1246For better control, use the options below.
1247
1248Fine tuning of the installation directories:
1249 --bindir=DIR user executables [EPREFIX/bin]
1250 --sbindir=DIR system admin executables [EPREFIX/sbin]
1251 --libexecdir=DIR program executables [EPREFIX/libexec]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001252 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1253 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1254 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1255 --libdir=DIR object code libraries [EPREFIX/lib]
1256 --includedir=DIR C header files [PREFIX/include]
1257 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Benny Prijonofdafd402008-01-23 14:34:46 +00001258 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1259 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1260 --infodir=DIR info documentation [DATAROOTDIR/info]
1261 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1262 --mandir=DIR man documentation [DATAROOTDIR/man]
1263 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1264 --htmldir=DIR html documentation [DOCDIR]
1265 --dvidir=DIR dvi documentation [DOCDIR]
1266 --pdfdir=DIR pdf documentation [DOCDIR]
1267 --psdir=DIR ps documentation [DOCDIR]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001268_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001269
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001270 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001271
1272System types:
1273 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001274 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001275 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001276_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001277fi
1278
1279if test -n "$ac_init_help"; then
1280 case $ac_init_help in
Benny Prijonoabcf49c2007-05-15 21:02:54 +00001281 short | recursive ) echo "Configuration of pjproject 0.7:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001282 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001283 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001284
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001285Optional Features:
1286 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1287 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1288 --disable-floating-point
1289 Disable floating point where possible
Benny Prijono1d971622006-09-10 22:27:40 +00001290 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001291 --disable-small-filter Exclude small filter in resampling
1292 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001293 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1294 --disable-g711-codec Exclude G.711 codecs from the build
1295 --disable-l16-codec Exclude Linear/L16 codec family from the build
1296 --disable-gsm-codec Exclude GSM codec in the build
1297 --disable-speex-codec Exclude Speex codecs in the build
1298 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +00001299 --enable-libsamplerate Link with libsamplerate when available. Note that
1300 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijonoce1db762007-02-14 02:21:08 +00001301 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001302
1303
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001304Some influential environment variables:
1305 CC C compiler command
1306 CFLAGS C compiler flags
1307 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1308 nonstandard directory <lib dir>
Benny Prijonofdafd402008-01-23 14:34:46 +00001309 LIBS libraries to pass to the linker, e.g. -l<library>
1310 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1311 you have headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001312 CXX C++ compiler command
1313 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001314 CPP C preprocessor
1315
1316Use these variables to override the choices made by `configure' or to help
1317it to find libraries and programs with nonstandard names/locations.
1318
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001319_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00001320ac_status=$?
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001321fi
1322
1323if test "$ac_init_help" = "recursive"; then
1324 # If there are subdirs, report their specific --help.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001325 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Benny Prijonofdafd402008-01-23 14:34:46 +00001326 test -d "$ac_dir" || continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001327 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001328
Benny Prijonofdafd402008-01-23 14:34:46 +00001329case "$ac_dir" in
1330.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1331*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001332 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Benny Prijonofdafd402008-01-23 14:34:46 +00001333 # A ".." for each directory in $ac_dir_suffix.
1334 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1335 case $ac_top_builddir_sub in
1336 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1337 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1338 esac ;;
1339esac
1340ac_abs_top_builddir=$ac_pwd
1341ac_abs_builddir=$ac_pwd$ac_dir_suffix
1342# for backward compatibility:
1343ac_top_builddir=$ac_top_build_prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001344
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001345case $srcdir in
Benny Prijonofdafd402008-01-23 14:34:46 +00001346 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001347 ac_srcdir=.
Benny Prijonofdafd402008-01-23 14:34:46 +00001348 ac_top_srcdir=$ac_top_builddir_sub
1349 ac_abs_top_srcdir=$ac_pwd ;;
1350 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001351 ac_srcdir=$srcdir$ac_dir_suffix;
Benny Prijonofdafd402008-01-23 14:34:46 +00001352 ac_top_srcdir=$srcdir
1353 ac_abs_top_srcdir=$srcdir ;;
1354 *) # Relative name.
1355 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1356 ac_top_srcdir=$ac_top_build_prefix$srcdir
1357 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001358esac
Benny Prijonofdafd402008-01-23 14:34:46 +00001359ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001360
Benny Prijonofdafd402008-01-23 14:34:46 +00001361 cd "$ac_dir" || { ac_status=$?; continue; }
1362 # Check for guested configure.
1363 if test -f "$ac_srcdir/configure.gnu"; then
1364 echo &&
1365 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1366 elif test -f "$ac_srcdir/configure"; then
1367 echo &&
1368 $SHELL "$ac_srcdir/configure" --help=recursive
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001369 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001370 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Benny Prijonofdafd402008-01-23 14:34:46 +00001371 fi || ac_status=$?
1372 cd "$ac_pwd" || { ac_status=$?; break; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001373 done
1374fi
1375
Benny Prijonofdafd402008-01-23 14:34:46 +00001376test -n "$ac_init_help" && exit $ac_status
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001377if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001378 cat <<\_ACEOF
Benny Prijonoabcf49c2007-05-15 21:02:54 +00001379pjproject configure 0.7
Benny Prijonofdafd402008-01-23 14:34:46 +00001380generated by GNU Autoconf 2.61
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001381
Benny Prijonofdafd402008-01-23 14:34:46 +00001382Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13832002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001384This configure script is free software; the Free Software Foundation
1385gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001386_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00001387 exit
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001388fi
Benny Prijonofdafd402008-01-23 14:34:46 +00001389cat >config.log <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001390This file contains any messages produced by compilers while
1391running configure, to aid debugging if configure makes a mistake.
1392
Benny Prijonoabcf49c2007-05-15 21:02:54 +00001393It was created by pjproject $as_me 0.7, which was
Benny Prijonofdafd402008-01-23 14:34:46 +00001394generated by GNU Autoconf 2.61. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001395
1396 $ $0 $@
1397
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001398_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00001399exec 5>>config.log
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001400{
1401cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001402## --------- ##
1403## Platform. ##
1404## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001405
1406hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1407uname -m = `(uname -m) 2>/dev/null || echo unknown`
1408uname -r = `(uname -r) 2>/dev/null || echo unknown`
1409uname -s = `(uname -s) 2>/dev/null || echo unknown`
1410uname -v = `(uname -v) 2>/dev/null || echo unknown`
1411
1412/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1413/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1414
1415/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1416/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1417/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Benny Prijonofdafd402008-01-23 14:34:46 +00001418/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001419/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1420/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1421/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1422
1423_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001424
1425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1426for as_dir in $PATH
1427do
1428 IFS=$as_save_IFS
1429 test -z "$as_dir" && as_dir=.
1430 echo "PATH: $as_dir"
1431done
Benny Prijonofdafd402008-01-23 14:34:46 +00001432IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001433
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001434} >&5
1435
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001436cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001437
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001438
1439## ----------- ##
1440## Core tests. ##
1441## ----------- ##
1442
1443_ACEOF
1444
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001445
1446# Keep a trace of the command line.
1447# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001448# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001449# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001450# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001451ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001452ac_configure_args0=
1453ac_configure_args1=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001454ac_must_keep_next=false
1455for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001456do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001457 for ac_arg
1458 do
1459 case $ac_arg in
1460 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1461 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1462 | -silent | --silent | --silen | --sile | --sil)
1463 continue ;;
Benny Prijonofdafd402008-01-23 14:34:46 +00001464 *\'*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001465 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1466 esac
1467 case $ac_pass in
1468 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1469 2)
1470 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1471 if test $ac_must_keep_next = true; then
1472 ac_must_keep_next=false # Got value, back to normal.
1473 else
1474 case $ac_arg in
1475 *=* | --config-cache | -C | -disable-* | --disable-* \
1476 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1477 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1478 | -with-* | --with-* | -without-* | --without-* | --x)
1479 case "$ac_configure_args0 " in
1480 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1481 esac
1482 ;;
1483 -* ) ac_must_keep_next=true ;;
1484 esac
1485 fi
Benny Prijonofdafd402008-01-23 14:34:46 +00001486 ac_configure_args="$ac_configure_args '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001487 ;;
1488 esac
1489 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001490done
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001491$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1492$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 +00001493
1494# When interrupted or exit'd, cleanup temporary files, and complete
1495# config.log. We remove comments because anyway the quotes in there
1496# would cause problems or look ugly.
Benny Prijonofdafd402008-01-23 14:34:46 +00001497# WARNING: Use '\'' to represent an apostrophe within the trap.
1498# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001499trap 'exit_status=$?
1500 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001501 {
1502 echo
1503
1504 cat <<\_ASBOX
1505## ---------------- ##
1506## Cache variables. ##
1507## ---------------- ##
1508_ASBOX
1509 echo
1510 # The following way of writing the cache mishandles newlines in values,
Benny Prijonofdafd402008-01-23 14:34:46 +00001511(
1512 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1513 eval ac_val=\$$ac_var
1514 case $ac_val in #(
1515 *${as_nl}*)
1516 case $ac_var in #(
1517 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1518echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1519 esac
1520 case $ac_var in #(
1521 _ | IFS | as_nl) ;; #(
1522 *) $as_unset $ac_var ;;
1523 esac ;;
1524 esac
1525 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001526 (set) 2>&1 |
Benny Prijonofdafd402008-01-23 14:34:46 +00001527 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1528 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001529 sed -n \
Benny Prijonofdafd402008-01-23 14:34:46 +00001530 "s/'\''/'\''\\\\'\'''\''/g;
1531 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1532 ;; #(
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001533 *)
Benny Prijonofdafd402008-01-23 14:34:46 +00001534 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001535 ;;
Benny Prijonofdafd402008-01-23 14:34:46 +00001536 esac |
1537 sort
1538)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001539 echo
1540
1541 cat <<\_ASBOX
1542## ----------------- ##
1543## Output variables. ##
1544## ----------------- ##
1545_ASBOX
1546 echo
1547 for ac_var in $ac_subst_vars
1548 do
Benny Prijonofdafd402008-01-23 14:34:46 +00001549 eval ac_val=\$$ac_var
1550 case $ac_val in
1551 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1552 esac
1553 echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001554 done | sort
1555 echo
1556
1557 if test -n "$ac_subst_files"; then
1558 cat <<\_ASBOX
Benny Prijonofdafd402008-01-23 14:34:46 +00001559## ------------------- ##
1560## File substitutions. ##
1561## ------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001562_ASBOX
1563 echo
1564 for ac_var in $ac_subst_files
1565 do
Benny Prijonofdafd402008-01-23 14:34:46 +00001566 eval ac_val=\$$ac_var
1567 case $ac_val in
1568 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1569 esac
1570 echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001571 done | sort
1572 echo
1573 fi
1574
1575 if test -s confdefs.h; then
1576 cat <<\_ASBOX
1577## ----------- ##
1578## confdefs.h. ##
1579## ----------- ##
1580_ASBOX
1581 echo
Benny Prijonofdafd402008-01-23 14:34:46 +00001582 cat confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001583 echo
1584 fi
1585 test "$ac_signal" != 0 &&
1586 echo "$as_me: caught signal $ac_signal"
1587 echo "$as_me: exit $exit_status"
1588 } >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00001589 rm -f core *.core core.conftest.* &&
1590 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001591 exit $exit_status
Benny Prijonofdafd402008-01-23 14:34:46 +00001592' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001593for ac_signal in 1 2 13 15; do
1594 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1595done
1596ac_signal=0
1597
1598# confdefs.h avoids OS command line length limits that DEFS can exceed.
Benny Prijonofdafd402008-01-23 14:34:46 +00001599rm -f -r conftest* confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001600
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001601# Predefined preprocessor variables.
1602
1603cat >>confdefs.h <<_ACEOF
1604#define PACKAGE_NAME "$PACKAGE_NAME"
1605_ACEOF
1606
1607
1608cat >>confdefs.h <<_ACEOF
1609#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1610_ACEOF
1611
1612
1613cat >>confdefs.h <<_ACEOF
1614#define PACKAGE_VERSION "$PACKAGE_VERSION"
1615_ACEOF
1616
1617
1618cat >>confdefs.h <<_ACEOF
1619#define PACKAGE_STRING "$PACKAGE_STRING"
1620_ACEOF
1621
1622
1623cat >>confdefs.h <<_ACEOF
1624#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1625_ACEOF
1626
1627
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001628# Let the site file select an alternate cache file if it wants to.
1629# Prefer explicitly selected file to automatically selected ones.
Benny Prijonofdafd402008-01-23 14:34:46 +00001630if test -n "$CONFIG_SITE"; then
1631 set x "$CONFIG_SITE"
1632elif test "x$prefix" != xNONE; then
1633 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1634else
1635 set x "$ac_default_prefix/share/config.site" \
1636 "$ac_default_prefix/etc/config.site"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001637fi
Benny Prijonofdafd402008-01-23 14:34:46 +00001638shift
1639for ac_site_file
1640do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001641 if test -r "$ac_site_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001642 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001643echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001644 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001645 . "$ac_site_file"
1646 fi
1647done
1648
1649if test -r "$cache_file"; then
1650 # Some versions of bash will fail to source /dev/null (special
1651 # files actually), so we avoid doing that.
1652 if test -f "$cache_file"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001653 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001654echo "$as_me: loading cache $cache_file" >&6;}
1655 case $cache_file in
Benny Prijonofdafd402008-01-23 14:34:46 +00001656 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1657 *) . "./$cache_file";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001658 esac
1659 fi
1660else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001661 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001662echo "$as_me: creating cache $cache_file" >&6;}
1663 >$cache_file
1664fi
1665
1666# Check that the precious variables saved in the cache have kept the same
1667# value.
1668ac_cache_corrupted=false
Benny Prijonofdafd402008-01-23 14:34:46 +00001669for ac_var in $ac_precious_vars; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001670 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1671 eval ac_new_set=\$ac_env_${ac_var}_set
Benny Prijonofdafd402008-01-23 14:34:46 +00001672 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1673 eval ac_new_val=\$ac_env_${ac_var}_value
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001674 case $ac_old_set,$ac_new_set in
1675 set,)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001676 { 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 +00001677echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1678 ac_cache_corrupted=: ;;
1679 ,set)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001680 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001681echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1682 ac_cache_corrupted=: ;;
1683 ,);;
1684 *)
1685 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001686 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001687echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001688 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001689echo "$as_me: former value: $ac_old_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001690 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001691echo "$as_me: current value: $ac_new_val" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001692 ac_cache_corrupted=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001693 fi;;
1694 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001695 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001696 if test "$ac_new_set" = set; then
1697 case $ac_new_val in
Benny Prijonofdafd402008-01-23 14:34:46 +00001698 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001699 *) ac_arg=$ac_var=$ac_new_val ;;
1700 esac
1701 case " $ac_configure_args " in
1702 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1703 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001704 esac
1705 fi
1706done
1707if $ac_cache_corrupted; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001708 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001709echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001710 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001711echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1712 { (exit 1); exit 1; }; }
1713fi
1714
Benny Prijonofdafd402008-01-23 14:34:46 +00001715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001739ac_ext=c
1740ac_cpp='$CPP $CPPFLAGS'
1741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1743ac_compiler_gnu=$ac_cv_c_compiler_gnu
1744
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001745
1746
Benny Prijono5b818b22006-09-17 22:58:51 +00001747host_orig="$host"
1748
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001749ac_aux_dir=
Benny Prijonofdafd402008-01-23 14:34:46 +00001750for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1751 if test -f "$ac_dir/install-sh"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001752 ac_aux_dir=$ac_dir
1753 ac_install_sh="$ac_aux_dir/install-sh -c"
1754 break
Benny Prijonofdafd402008-01-23 14:34:46 +00001755 elif test -f "$ac_dir/install.sh"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001756 ac_aux_dir=$ac_dir
1757 ac_install_sh="$ac_aux_dir/install.sh -c"
1758 break
Benny Prijonofdafd402008-01-23 14:34:46 +00001759 elif test -f "$ac_dir/shtool"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001760 ac_aux_dir=$ac_dir
1761 ac_install_sh="$ac_aux_dir/shtool install -c"
1762 break
1763 fi
1764done
1765if test -z "$ac_aux_dir"; then
Benny Prijonofdafd402008-01-23 14:34:46 +00001766 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1767echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001768 { (exit 1); exit 1; }; }
1769fi
Benny Prijonofdafd402008-01-23 14:34:46 +00001770
1771# These three variables are undocumented and unsupported,
1772# and are intended to be withdrawn in a future Autoconf release.
1773# They can cause serious problems if a builder's source tree is in a directory
1774# whose full name contains unusual characters.
1775ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1776ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1777ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1778
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001779
1780# Make sure we can run config.sub.
Benny Prijonofdafd402008-01-23 14:34:46 +00001781$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1782 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1783echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001784 { (exit 1); exit 1; }; }
1785
Benny Prijonofdafd402008-01-23 14:34:46 +00001786{ echo "$as_me:$LINENO: checking build system type" >&5
1787echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001788if test "${ac_cv_build+set}" = set; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1790else
Benny Prijonofdafd402008-01-23 14:34:46 +00001791 ac_build_alias=$build_alias
1792test "x$ac_build_alias" = x &&
1793 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1794test "x$ac_build_alias" = x &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001795 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001796echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1797 { (exit 1); exit 1; }; }
Benny Prijonofdafd402008-01-23 14:34:46 +00001798ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1799 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1800echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001801 { (exit 1); exit 1; }; }
1802
1803fi
Benny Prijonofdafd402008-01-23 14:34:46 +00001804{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1805echo "${ECHO_T}$ac_cv_build" >&6; }
1806case $ac_cv_build in
1807*-*-*) ;;
1808*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1809echo "$as_me: error: invalid value of canonical build" >&2;}
1810 { (exit 1); exit 1; }; };;
1811esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001812build=$ac_cv_build
Benny Prijonofdafd402008-01-23 14:34:46 +00001813ac_save_IFS=$IFS; IFS='-'
1814set x $ac_cv_build
1815shift
1816build_cpu=$1
1817build_vendor=$2
1818shift; shift
1819# Remember, the first character of IFS is used to create $*,
1820# except with old shells:
1821build_os=$*
1822IFS=$ac_save_IFS
1823case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001824
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001825
Benny Prijonofdafd402008-01-23 14:34:46 +00001826{ echo "$as_me:$LINENO: checking host system type" >&5
1827echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001828if test "${ac_cv_host+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1830else
Benny Prijonofdafd402008-01-23 14:34:46 +00001831 if test "x$host_alias" = x; then
1832 ac_cv_host=$ac_cv_build
1833else
1834 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1835 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1836echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001837 { (exit 1); exit 1; }; }
Benny Prijonofdafd402008-01-23 14:34:46 +00001838fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001839
1840fi
Benny Prijonofdafd402008-01-23 14:34:46 +00001841{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1842echo "${ECHO_T}$ac_cv_host" >&6; }
1843case $ac_cv_host in
1844*-*-*) ;;
1845*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1846echo "$as_me: error: invalid value of canonical host" >&2;}
1847 { (exit 1); exit 1; }; };;
1848esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001849host=$ac_cv_host
Benny Prijonofdafd402008-01-23 14:34:46 +00001850ac_save_IFS=$IFS; IFS='-'
1851set x $ac_cv_host
1852shift
1853host_cpu=$1
1854host_vendor=$2
1855shift; shift
1856# Remember, the first character of IFS is used to create $*,
1857# except with old shells:
1858host_os=$*
1859IFS=$ac_save_IFS
1860case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001861
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001862
Benny Prijonofdafd402008-01-23 14:34:46 +00001863{ echo "$as_me:$LINENO: checking target system type" >&5
1864echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001865if test "${ac_cv_target+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1867else
Benny Prijonofdafd402008-01-23 14:34:46 +00001868 if test "x$target_alias" = x; then
1869 ac_cv_target=$ac_cv_host
1870else
1871 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1872 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1873echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001874 { (exit 1); exit 1; }; }
Benny Prijonofdafd402008-01-23 14:34:46 +00001875fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001876
1877fi
Benny Prijonofdafd402008-01-23 14:34:46 +00001878{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1879echo "${ECHO_T}$ac_cv_target" >&6; }
1880case $ac_cv_target in
1881*-*-*) ;;
1882*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1883echo "$as_me: error: invalid value of canonical target" >&2;}
1884 { (exit 1); exit 1; }; };;
1885esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001886target=$ac_cv_target
Benny Prijonofdafd402008-01-23 14:34:46 +00001887ac_save_IFS=$IFS; IFS='-'
1888set x $ac_cv_target
1889shift
1890target_cpu=$1
1891target_vendor=$2
1892shift; shift
1893# Remember, the first character of IFS is used to create $*,
1894# except with old shells:
1895target_os=$*
1896IFS=$ac_save_IFS
1897case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001898
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001899
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001900# The aliases save the names the user supplied, while $host etc.
1901# will get canonicalized.
1902test -n "$target_alias" &&
1903 test "$program_prefix$program_suffix$program_transform_name" = \
1904 NONENONEs,x,x, &&
1905 program_prefix=${target_alias}-
Benny Prijonofdafd402008-01-23 14:34:46 +00001906ac_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 +00001907
Benny Prijonofdafd402008-01-23 14:34:46 +00001908ac_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 +00001909
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001910
Benny Prijono12483112007-03-12 10:44:38 +00001911
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001912if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00001913 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001914else
1915 CFLAGS="$CFLAGS"
1916fi
1917
1918CXXFLAGS="$CFLAGS $CXXFLAGS"
1919
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001920ac_ext=c
1921ac_cpp='$CPP $CPPFLAGS'
1922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925if test -n "$ac_tool_prefix"; then
1926 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1927set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijonofdafd402008-01-23 14:34:46 +00001928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001930if test "${ac_cv_prog_CC+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932else
1933 if test -n "$CC"; then
1934 ac_cv_prog_CC="$CC" # Let the user override the test.
1935else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937for as_dir in $PATH
1938do
1939 IFS=$as_save_IFS
1940 test -z "$as_dir" && as_dir=.
1941 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijonofdafd402008-01-23 14:34:46 +00001942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001943 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945 break 2
1946 fi
1947done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001948done
Benny Prijonofdafd402008-01-23 14:34:46 +00001949IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001950
1951fi
1952fi
1953CC=$ac_cv_prog_CC
1954if test -n "$CC"; then
Benny Prijonofdafd402008-01-23 14:34:46 +00001955 { echo "$as_me:$LINENO: result: $CC" >&5
1956echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001957else
Benny Prijonofdafd402008-01-23 14:34:46 +00001958 { echo "$as_me:$LINENO: result: no" >&5
1959echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001960fi
1961
Benny Prijonofdafd402008-01-23 14:34:46 +00001962
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001963fi
1964if test -z "$ac_cv_prog_CC"; then
1965 ac_ct_CC=$CC
1966 # Extract the first word of "gcc", so it can be a program name with args.
1967set dummy gcc; ac_word=$2
Benny Prijonofdafd402008-01-23 14:34:46 +00001968{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001970if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973 if test -n "$ac_ct_CC"; then
1974 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1975else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979 IFS=$as_save_IFS
1980 test -z "$as_dir" && as_dir=.
1981 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijonofdafd402008-01-23 14:34:46 +00001982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001983 ac_cv_prog_ac_ct_CC="gcc"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 break 2
1986 fi
1987done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001988done
Benny Prijonofdafd402008-01-23 14:34:46 +00001989IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001990
1991fi
1992fi
1993ac_ct_CC=$ac_cv_prog_ac_ct_CC
1994if test -n "$ac_ct_CC"; then
Benny Prijonofdafd402008-01-23 14:34:46 +00001995 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1996echo "${ECHO_T}$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001997else
Benny Prijonofdafd402008-01-23 14:34:46 +00001998 { echo "$as_me:$LINENO: result: no" >&5
1999echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002000fi
2001
Benny Prijonofdafd402008-01-23 14:34:46 +00002002 if test "x$ac_ct_CC" = x; then
2003 CC=""
2004 else
2005 case $cross_compiling:$ac_tool_warned in
2006yes:)
2007{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2008whose name does not start with the host triplet. If you think this
2009configuration is useful to you, please write to autoconf@gnu.org." >&5
2010echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2011whose name does not start with the host triplet. If you think this
2012configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2013ac_tool_warned=yes ;;
2014esac
2015 CC=$ac_ct_CC
2016 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002017else
2018 CC="$ac_cv_prog_CC"
2019fi
2020
2021if test -z "$CC"; then
Benny Prijonofdafd402008-01-23 14:34:46 +00002022 if test -n "$ac_tool_prefix"; then
2023 # 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 +00002024set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijonofdafd402008-01-23 14:34:46 +00002025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002027if test "${ac_cv_prog_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2029else
2030 if test -n "$CC"; then
2031 ac_cv_prog_CC="$CC" # Let the user override the test.
2032else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034for as_dir in $PATH
2035do
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijonofdafd402008-01-23 14:34:46 +00002039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002040 ac_cv_prog_CC="${ac_tool_prefix}cc"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 break 2
2043 fi
2044done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002045done
Benny Prijonofdafd402008-01-23 14:34:46 +00002046IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002047
2048fi
2049fi
2050CC=$ac_cv_prog_CC
2051if test -n "$CC"; then
Benny Prijonofdafd402008-01-23 14:34:46 +00002052 { echo "$as_me:$LINENO: result: $CC" >&5
2053echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002054else
Benny Prijonofdafd402008-01-23 14:34:46 +00002055 { echo "$as_me:$LINENO: result: no" >&5
2056echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002057fi
2058
Benny Prijonofdafd402008-01-23 14:34:46 +00002059
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002060 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002061fi
2062if test -z "$CC"; then
2063 # Extract the first word of "cc", so it can be a program name with args.
2064set dummy cc; ac_word=$2
Benny Prijonofdafd402008-01-23 14:34:46 +00002065{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002067if test "${ac_cv_prog_CC+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2069else
2070 if test -n "$CC"; then
2071 ac_cv_prog_CC="$CC" # Let the user override the test.
2072else
2073 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075for as_dir in $PATH
2076do
2077 IFS=$as_save_IFS
2078 test -z "$as_dir" && as_dir=.
2079 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijonofdafd402008-01-23 14:34:46 +00002080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002081 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2082 ac_prog_rejected=yes
2083 continue
2084 fi
2085 ac_cv_prog_CC="cc"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087 break 2
2088 fi
2089done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002090done
Benny Prijonofdafd402008-01-23 14:34:46 +00002091IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002092
2093if test $ac_prog_rejected = yes; then
2094 # We found a bogon in the path, so make sure we never use it.
2095 set dummy $ac_cv_prog_CC
2096 shift
2097 if test $# != 0; then
2098 # We chose a different compiler from the bogus one.
2099 # However, it has the same basename, so the bogon will be chosen
2100 # first if we set CC to just the basename; use the full file name.
2101 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002102 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002103 fi
2104fi
2105fi
2106fi
2107CC=$ac_cv_prog_CC
2108if test -n "$CC"; then
Benny Prijonofdafd402008-01-23 14:34:46 +00002109 { echo "$as_me:$LINENO: result: $CC" >&5
2110echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002111else
Benny Prijonofdafd402008-01-23 14:34:46 +00002112 { echo "$as_me:$LINENO: result: no" >&5
2113echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002114fi
2115
Benny Prijonofdafd402008-01-23 14:34:46 +00002116
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002117fi
2118if test -z "$CC"; then
2119 if test -n "$ac_tool_prefix"; then
Benny Prijonofdafd402008-01-23 14:34:46 +00002120 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002121 do
2122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2123set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijonofdafd402008-01-23 14:34:46 +00002124{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002126if test "${ac_cv_prog_CC+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
2129 if test -n "$CC"; then
2130 ac_cv_prog_CC="$CC" # Let the user override the test.
2131else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133for as_dir in $PATH
2134do
2135 IFS=$as_save_IFS
2136 test -z "$as_dir" && as_dir=.
2137 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijonofdafd402008-01-23 14:34:46 +00002138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002139 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 break 2
2142 fi
2143done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002144done
Benny Prijonofdafd402008-01-23 14:34:46 +00002145IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002146
2147fi
2148fi
2149CC=$ac_cv_prog_CC
2150if test -n "$CC"; then
Benny Prijonofdafd402008-01-23 14:34:46 +00002151 { echo "$as_me:$LINENO: result: $CC" >&5
2152echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002153else
Benny Prijonofdafd402008-01-23 14:34:46 +00002154 { echo "$as_me:$LINENO: result: no" >&5
2155echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002156fi
2157
Benny Prijonofdafd402008-01-23 14:34:46 +00002158
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002159 test -n "$CC" && break
2160 done
2161fi
2162if test -z "$CC"; then
2163 ac_ct_CC=$CC
Benny Prijonofdafd402008-01-23 14:34:46 +00002164 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002165do
2166 # Extract the first word of "$ac_prog", so it can be a program name with args.
2167set dummy $ac_prog; ac_word=$2
Benny Prijonofdafd402008-01-23 14:34:46 +00002168{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002170if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
2173 if test -n "$ac_ct_CC"; then
2174 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2175else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177for as_dir in $PATH
2178do
2179 IFS=$as_save_IFS
2180 test -z "$as_dir" && as_dir=.
2181 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijonofdafd402008-01-23 14:34:46 +00002182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002183 ac_cv_prog_ac_ct_CC="$ac_prog"
2184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185 break 2
2186 fi
2187done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002188done
Benny Prijonofdafd402008-01-23 14:34:46 +00002189IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002190
2191fi
2192fi
2193ac_ct_CC=$ac_cv_prog_ac_ct_CC
2194if test -n "$ac_ct_CC"; then
Benny Prijonofdafd402008-01-23 14:34:46 +00002195 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2196echo "${ECHO_T}$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002197else
Benny Prijonofdafd402008-01-23 14:34:46 +00002198 { echo "$as_me:$LINENO: result: no" >&5
2199echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002200fi
2201
Benny Prijonofdafd402008-01-23 14:34:46 +00002202
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002203 test -n "$ac_ct_CC" && break
2204done
2205
Benny Prijonofdafd402008-01-23 14:34:46 +00002206 if test "x$ac_ct_CC" = x; then
2207 CC=""
2208 else
2209 case $cross_compiling:$ac_tool_warned in
2210yes:)
2211{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2212whose name does not start with the host triplet. If you think this
2213configuration is useful to you, please write to autoconf@gnu.org." >&5
2214echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2215whose name does not start with the host triplet. If you think this
2216configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2217ac_tool_warned=yes ;;
2218esac
2219 CC=$ac_ct_CC
2220 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002221fi
2222
2223fi
2224
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002225
2226test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2227See \`config.log' for more details." >&5
2228echo "$as_me: error: no acceptable C compiler found in \$PATH
2229See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002230 { (exit 1); exit 1; }; }
2231
2232# Provide some information about the compiler.
Benny Prijonofdafd402008-01-23 14:34:46 +00002233echo "$as_me:$LINENO: checking for C compiler version" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002234ac_compiler=`set X $ac_compile; echo $2`
Benny Prijonofdafd402008-01-23 14:34:46 +00002235{ (ac_try="$ac_compiler --version >&5"
2236case "(($ac_try" in
2237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2238 *) ac_try_echo=$ac_try;;
2239esac
2240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2241 (eval "$ac_compiler --version >&5") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002242 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002244 (exit $ac_status); }
Benny Prijonofdafd402008-01-23 14:34:46 +00002245{ (ac_try="$ac_compiler -v >&5"
2246case "(($ac_try" in
2247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248 *) ac_try_echo=$ac_try;;
2249esac
2250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2251 (eval "$ac_compiler -v >&5") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002252 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002254 (exit $ac_status); }
Benny Prijonofdafd402008-01-23 14:34:46 +00002255{ (ac_try="$ac_compiler -V >&5"
2256case "(($ac_try" in
2257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258 *) ac_try_echo=$ac_try;;
2259esac
2260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2261 (eval "$ac_compiler -V >&5") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002262 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002264 (exit $ac_status); }
2265
2266cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002267/* confdefs.h. */
2268_ACEOF
2269cat confdefs.h >>conftest.$ac_ext
2270cat >>conftest.$ac_ext <<_ACEOF
2271/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002272
2273int
2274main ()
2275{
2276
2277 ;
2278 return 0;
2279}
2280_ACEOF
2281ac_clean_files_save=$ac_clean_files
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002282ac_clean_files="$ac_clean_files a.out a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002283# Try to create an executable without -o first, disregard a.out.
2284# It will help us diagnose broken compilers, and finding out an intuition
2285# of exeext.
Benny Prijonofdafd402008-01-23 14:34:46 +00002286{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2287echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002288ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Benny Prijonofdafd402008-01-23 14:34:46 +00002289#
2290# List of possible output files, starting from the most likely.
2291# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2292# only as a last resort. b.out is created by i960 compilers.
2293ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2294#
2295# The IRIX 6 linker writes into existing files which may not be
2296# executable, retaining their permissions. Remove them first so a
2297# subsequent execution test works.
2298ac_rmfiles=
2299for ac_file in $ac_files
2300do
2301 case $ac_file in
2302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2303 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2304 esac
2305done
2306rm -f $ac_rmfiles
2307
2308if { (ac_try="$ac_link_default"
2309case "(($ac_try" in
2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311 *) ac_try_echo=$ac_try;;
2312esac
2313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2314 (eval "$ac_link_default") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002315 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002317 (exit $ac_status); }; then
Benny Prijonofdafd402008-01-23 14:34:46 +00002318 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2319# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2320# in a Makefile. We should not override ac_cv_exeext if it was cached,
2321# so that the user can short-circuit this test for compilers unknown to
2322# Autoconf.
2323for ac_file in $ac_files ''
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002324do
2325 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002326 case $ac_file in
Benny Prijonofdafd402008-01-23 14:34:46 +00002327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002328 ;;
2329 [ab].out )
2330 # We found the default executable, but exeext='' is most
2331 # certainly right.
2332 break;;
2333 *.* )
Benny Prijonofdafd402008-01-23 14:34:46 +00002334 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2335 then :; else
2336 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2337 fi
2338 # We set ac_cv_exeext here because the later test for it is not
2339 # safe: cross compilers may not add the suffix if given an `-o'
2340 # argument, so we may need to know it at that point already.
2341 # Even if this section looks crufty: it has the advantage of
2342 # actually working.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002343 break;;
2344 * )
2345 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002346 esac
2347done
Benny Prijonofdafd402008-01-23 14:34:46 +00002348test "$ac_cv_exeext" = no && ac_cv_exeext=
2349
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002350else
Benny Prijonofdafd402008-01-23 14:34:46 +00002351 ac_file=''
2352fi
2353
2354{ echo "$as_me:$LINENO: result: $ac_file" >&5
2355echo "${ECHO_T}$ac_file" >&6; }
2356if test -z "$ac_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002357 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002358sed 's/^/| /' conftest.$ac_ext >&5
2359
2360{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2361See \`config.log' for more details." >&5
2362echo "$as_me: error: C compiler cannot create executables
2363See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002364 { (exit 77); exit 77; }; }
2365fi
2366
2367ac_exeext=$ac_cv_exeext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002368
Benny Prijonofdafd402008-01-23 14:34:46 +00002369# Check that the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002370# the compiler is broken, or we cross compile.
Benny Prijonofdafd402008-01-23 14:34:46 +00002371{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2372echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002373# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2374# If not cross compiling, check that we can run a simple program.
2375if test "$cross_compiling" != yes; then
2376 if { ac_try='./$ac_file'
Benny Prijonofdafd402008-01-23 14:34:46 +00002377 { (case "(($ac_try" in
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2380esac
2381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2382 (eval "$ac_try") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002383 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002385 (exit $ac_status); }; }; then
2386 cross_compiling=no
2387 else
2388 if test "$cross_compiling" = maybe; then
2389 cross_compiling=yes
2390 else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002391 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2392If you meant to cross compile, use \`--host'.
2393See \`config.log' for more details." >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002394echo "$as_me: error: cannot run C compiled programs.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002395If you meant to cross compile, use \`--host'.
2396See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002397 { (exit 1); exit 1; }; }
2398 fi
2399 fi
2400fi
Benny Prijonofdafd402008-01-23 14:34:46 +00002401{ echo "$as_me:$LINENO: result: yes" >&5
2402echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002403
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002404rm -f a.out a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002405ac_clean_files=$ac_clean_files_save
Benny Prijonofdafd402008-01-23 14:34:46 +00002406# Check that the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002407# the compiler is broken, or we cross compile.
Benny Prijonofdafd402008-01-23 14:34:46 +00002408{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2409echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2410{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2411echo "${ECHO_T}$cross_compiling" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002412
Benny Prijonofdafd402008-01-23 14:34:46 +00002413{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2414echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2415if { (ac_try="$ac_link"
2416case "(($ac_try" in
2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 *) ac_try_echo=$ac_try;;
2419esac
2420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2421 (eval "$ac_link") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002422 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002424 (exit $ac_status); }; then
2425 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2426# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2427# work properly (i.e., refer to `conftest.exe'), while it won't with
2428# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002429for ac_file in conftest.exe conftest conftest.*; do
2430 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002431 case $ac_file in
Benny Prijonofdafd402008-01-23 14:34:46 +00002432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002433 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002434 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002435 * ) break;;
2436 esac
2437done
2438else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002439 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2440See \`config.log' for more details." >&5
2441echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2442See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002443 { (exit 1); exit 1; }; }
2444fi
2445
2446rm -f conftest$ac_cv_exeext
Benny Prijonofdafd402008-01-23 14:34:46 +00002447{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2448echo "${ECHO_T}$ac_cv_exeext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002449
2450rm -f conftest.$ac_ext
2451EXEEXT=$ac_cv_exeext
2452ac_exeext=$EXEEXT
Benny Prijonofdafd402008-01-23 14:34:46 +00002453{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2454echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002455if test "${ac_cv_objext+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2457else
2458 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002459/* confdefs.h. */
2460_ACEOF
2461cat confdefs.h >>conftest.$ac_ext
2462cat >>conftest.$ac_ext <<_ACEOF
2463/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002464
2465int
2466main ()
2467{
2468
2469 ;
2470 return 0;
2471}
2472_ACEOF
2473rm -f conftest.o conftest.obj
Benny Prijonofdafd402008-01-23 14:34:46 +00002474if { (ac_try="$ac_compile"
2475case "(($ac_try" in
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2478esac
2479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480 (eval "$ac_compile") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002481 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002483 (exit $ac_status); }; then
Benny Prijonofdafd402008-01-23 14:34:46 +00002484 for ac_file in conftest.o conftest.obj conftest.*; do
2485 test -f "$ac_file" || continue;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002486 case $ac_file in
Benny Prijonofdafd402008-01-23 14:34:46 +00002487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002488 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2489 break;;
2490 esac
2491done
2492else
2493 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002494sed 's/^/| /' conftest.$ac_ext >&5
2495
2496{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2497See \`config.log' for more details." >&5
2498echo "$as_me: error: cannot compute suffix of object files: cannot compile
2499See \`config.log' for more details." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002500 { (exit 1); exit 1; }; }
2501fi
2502
2503rm -f conftest.$ac_cv_objext conftest.$ac_ext
2504fi
Benny Prijonofdafd402008-01-23 14:34:46 +00002505{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2506echo "${ECHO_T}$ac_cv_objext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002507OBJEXT=$ac_cv_objext
2508ac_objext=$OBJEXT
Benny Prijonofdafd402008-01-23 14:34:46 +00002509{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2510echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002511if test "${ac_cv_c_compiler_gnu+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2513else
2514 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002515/* confdefs.h. */
2516_ACEOF
2517cat confdefs.h >>conftest.$ac_ext
2518cat >>conftest.$ac_ext <<_ACEOF
2519/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002520
2521int
2522main ()
2523{
2524#ifndef __GNUC__
2525 choke me
2526#endif
2527
2528 ;
2529 return 0;
2530}
2531_ACEOF
2532rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00002533if { (ac_try="$ac_compile"
2534case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537esac
2538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002540 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002541 grep -v '^ *+' conftest.er1 >conftest.err
2542 rm -f conftest.er1
2543 cat conftest.err >&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00002545 (exit $ac_status); } && {
2546 test -z "$ac_c_werror_flag" ||
2547 test ! -s conftest.err
2548 } && test -s conftest.$ac_objext; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002549 ac_compiler_gnu=yes
2550else
2551 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002552sed 's/^/| /' conftest.$ac_ext >&5
2553
Benny Prijonofdafd402008-01-23 14:34:46 +00002554 ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002555fi
Benny Prijonofdafd402008-01-23 14:34:46 +00002556
2557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002558ac_cv_c_compiler_gnu=$ac_compiler_gnu
2559
2560fi
Benny Prijonofdafd402008-01-23 14:34:46 +00002561{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2562echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002563GCC=`test $ac_compiler_gnu = yes && echo yes`
2564ac_test_CFLAGS=${CFLAGS+set}
2565ac_save_CFLAGS=$CFLAGS
Benny Prijonofdafd402008-01-23 14:34:46 +00002566{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2567echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002568if test "${ac_cv_prog_cc_g+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2570else
Benny Prijonofdafd402008-01-23 14:34:46 +00002571 ac_save_c_werror_flag=$ac_c_werror_flag
2572 ac_c_werror_flag=yes
2573 ac_cv_prog_cc_g=no
2574 CFLAGS="-g"
2575 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002576/* confdefs.h. */
2577_ACEOF
2578cat confdefs.h >>conftest.$ac_ext
2579cat >>conftest.$ac_ext <<_ACEOF
2580/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002581
2582int
2583main ()
2584{
2585
2586 ;
2587 return 0;
2588}
2589_ACEOF
2590rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00002591if { (ac_try="$ac_compile"
2592case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2595esac
2596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002598 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002599 grep -v '^ *+' conftest.er1 >conftest.err
2600 rm -f conftest.er1
2601 cat conftest.err >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00002603 (exit $ac_status); } && {
2604 test -z "$ac_c_werror_flag" ||
2605 test ! -s conftest.err
2606 } && test -s conftest.$ac_objext; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002607 ac_cv_prog_cc_g=yes
2608else
2609 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002610sed 's/^/| /' conftest.$ac_ext >&5
2611
Benny Prijonofdafd402008-01-23 14:34:46 +00002612 CFLAGS=""
2613 cat >conftest.$ac_ext <<_ACEOF
2614/* confdefs.h. */
2615_ACEOF
2616cat confdefs.h >>conftest.$ac_ext
2617cat >>conftest.$ac_ext <<_ACEOF
2618/* end confdefs.h. */
2619
2620int
2621main ()
2622{
2623
2624 ;
2625 return 0;
2626}
2627_ACEOF
2628rm -f conftest.$ac_objext
2629if { (ac_try="$ac_compile"
2630case "(($ac_try" in
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2633esac
2634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2635 (eval "$ac_compile") 2>conftest.er1
2636 ac_status=$?
2637 grep -v '^ *+' conftest.er1 >conftest.err
2638 rm -f conftest.er1
2639 cat conftest.err >&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); } && {
2642 test -z "$ac_c_werror_flag" ||
2643 test ! -s conftest.err
2644 } && test -s conftest.$ac_objext; then
2645 :
2646else
2647 echo "$as_me: failed program was:" >&5
2648sed 's/^/| /' conftest.$ac_ext >&5
2649
2650 ac_c_werror_flag=$ac_save_c_werror_flag
2651 CFLAGS="-g"
2652 cat >conftest.$ac_ext <<_ACEOF
2653/* confdefs.h. */
2654_ACEOF
2655cat confdefs.h >>conftest.$ac_ext
2656cat >>conftest.$ac_ext <<_ACEOF
2657/* end confdefs.h. */
2658
2659int
2660main ()
2661{
2662
2663 ;
2664 return 0;
2665}
2666_ACEOF
2667rm -f conftest.$ac_objext
2668if { (ac_try="$ac_compile"
2669case "(($ac_try" in
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2672esac
2673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2674 (eval "$ac_compile") 2>conftest.er1
2675 ac_status=$?
2676 grep -v '^ *+' conftest.er1 >conftest.err
2677 rm -f conftest.er1
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } && {
2681 test -z "$ac_c_werror_flag" ||
2682 test ! -s conftest.err
2683 } && test -s conftest.$ac_objext; then
2684 ac_cv_prog_cc_g=yes
2685else
2686 echo "$as_me: failed program was:" >&5
2687sed 's/^/| /' conftest.$ac_ext >&5
2688
2689
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002690fi
Benny Prijonofdafd402008-01-23 14:34:46 +00002691
2692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002693fi
Benny Prijonofdafd402008-01-23 14:34:46 +00002694
2695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2696fi
2697
2698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2699 ac_c_werror_flag=$ac_save_c_werror_flag
2700fi
2701{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2702echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002703if test "$ac_test_CFLAGS" = set; then
2704 CFLAGS=$ac_save_CFLAGS
2705elif test $ac_cv_prog_cc_g = yes; then
2706 if test "$GCC" = yes; then
2707 CFLAGS="-g -O2"
2708 else
2709 CFLAGS="-g"
2710 fi
2711else
2712 if test "$GCC" = yes; then
2713 CFLAGS="-O2"
2714 else
2715 CFLAGS=
2716 fi
2717fi
Benny Prijonofdafd402008-01-23 14:34:46 +00002718{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2719echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2720if test "${ac_cv_prog_cc_c89+set}" = set; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722else
Benny Prijonofdafd402008-01-23 14:34:46 +00002723 ac_cv_prog_cc_c89=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002724ac_save_CC=$CC
2725cat >conftest.$ac_ext <<_ACEOF
2726/* confdefs.h. */
2727_ACEOF
2728cat confdefs.h >>conftest.$ac_ext
2729cat >>conftest.$ac_ext <<_ACEOF
2730/* end confdefs.h. */
2731#include <stdarg.h>
2732#include <stdio.h>
2733#include <sys/types.h>
2734#include <sys/stat.h>
2735/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2736struct buf { int x; };
2737FILE * (*rcsopen) (struct buf *, struct stat *, int);
2738static char *e (p, i)
2739 char **p;
2740 int i;
2741{
2742 return p[i];
2743}
2744static char *f (char * (*g) (char **, int), char **p, ...)
2745{
2746 char *s;
2747 va_list v;
2748 va_start (v,p);
2749 s = g (p, va_arg (v,int));
2750 va_end (v);
2751 return s;
2752}
2753
2754/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2755 function prototypes and stuff, but not '\xHH' hex character constants.
2756 These don't provoke an error unfortunately, instead are silently treated
Benny Prijonofdafd402008-01-23 14:34:46 +00002757 as 'x'. The following induces an error, until -std is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002758 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2759 array size at least. It's necessary to write '\x00'==0 to get something
Benny Prijonofdafd402008-01-23 14:34:46 +00002760 that's true only with -std. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002761int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2762
Benny Prijonofdafd402008-01-23 14:34:46 +00002763/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2764 inside strings and character constants. */
2765#define FOO(x) 'x'
2766int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2767
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002768int test (int i, double x);
2769struct s1 {int (*f) (int a);};
2770struct s2 {int (*f) (double a);};
2771int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2772int argc;
2773char **argv;
2774int
2775main ()
2776{
2777return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2778 ;
2779 return 0;
2780}
2781_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00002782for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2783 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002784do
2785 CC="$ac_save_CC $ac_arg"
2786 rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00002787if { (ac_try="$ac_compile"
2788case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791esac
2792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793 (eval "$ac_compile") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002794 ac_status=$?
2795 grep -v '^ *+' conftest.er1 >conftest.err
2796 rm -f conftest.er1
2797 cat conftest.err >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00002799 (exit $ac_status); } && {
2800 test -z "$ac_c_werror_flag" ||
2801 test ! -s conftest.err
2802 } && test -s conftest.$ac_objext; then
2803 ac_cv_prog_cc_c89=$ac_arg
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002804else
2805 echo "$as_me: failed program was:" >&5
2806sed 's/^/| /' conftest.$ac_ext >&5
2807
Benny Prijonofdafd402008-01-23 14:34:46 +00002808
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002809fi
Benny Prijonofdafd402008-01-23 14:34:46 +00002810
2811rm -f core conftest.err conftest.$ac_objext
2812 test "x$ac_cv_prog_cc_c89" != "xno" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002813done
Benny Prijonofdafd402008-01-23 14:34:46 +00002814rm -f conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002815CC=$ac_save_CC
2816
2817fi
Benny Prijonofdafd402008-01-23 14:34:46 +00002818# AC_CACHE_VAL
2819case "x$ac_cv_prog_cc_c89" in
2820 x)
2821 { echo "$as_me:$LINENO: result: none needed" >&5
2822echo "${ECHO_T}none needed" >&6; } ;;
2823 xno)
2824 { echo "$as_me:$LINENO: result: unsupported" >&5
2825echo "${ECHO_T}unsupported" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002826 *)
Benny Prijonofdafd402008-01-23 14:34:46 +00002827 CC="$CC $ac_cv_prog_cc_c89"
2828 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2829echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002830esac
2831
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002832
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002833ac_ext=c
2834ac_cpp='$CPP $CPPFLAGS'
2835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2837ac_compiler_gnu=$ac_cv_c_compiler_gnu
2838
Benny Prijonofdafd402008-01-23 14:34:46 +00002839ac_ext=cpp
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002840ac_cpp='$CXXCPP $CPPFLAGS'
2841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Benny Prijonofdafd402008-01-23 14:34:46 +00002844if test -z "$CXX"; then
2845 if test -n "$CCC"; then
2846 CXX=$CCC
2847 else
2848 if test -n "$ac_tool_prefix"; then
2849 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002850 do
2851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2852set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijonofdafd402008-01-23 14:34:46 +00002853{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002855if test "${ac_cv_prog_CXX+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857else
2858 if test -n "$CXX"; then
2859 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2860else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862for as_dir in $PATH
2863do
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijonofdafd402008-01-23 14:34:46 +00002867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002868 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 break 2
2871 fi
2872done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002873done
Benny Prijonofdafd402008-01-23 14:34:46 +00002874IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002875
2876fi
2877fi
2878CXX=$ac_cv_prog_CXX
2879if test -n "$CXX"; then
Benny Prijonofdafd402008-01-23 14:34:46 +00002880 { echo "$as_me:$LINENO: result: $CXX" >&5
2881echo "${ECHO_T}$CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002882else
Benny Prijonofdafd402008-01-23 14:34:46 +00002883 { echo "$as_me:$LINENO: result: no" >&5
2884echo "${ECHO_T}no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002885fi
2886
Benny Prijonofdafd402008-01-23 14:34:46 +00002887
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002888 test -n "$CXX" && break
2889 done
2890fi
2891if test -z "$CXX"; then
2892 ac_ct_CXX=$CXX
Benny Prijonofdafd402008-01-23 14:34:46 +00002893 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002894do
2895 # Extract the first word of "$ac_prog", so it can be a program name with args.
2896set dummy $ac_prog; ac_word=$2
Benny Prijonofdafd402008-01-23 14:34:46 +00002897{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002899if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901else
2902 if test -n "$ac_ct_CXX"; then
2903 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2904else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
Benny Prijonofdafd402008-01-23 14:34:46 +00002911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002912 ac_cv_prog_ac_ct_CXX="$ac_prog"
2913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2915 fi
2916done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002917done
Benny Prijonofdafd402008-01-23 14:34:46 +00002918IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002919
2920fi
2921fi
2922ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2923if test -n "$ac_ct_CXX"; then
Benny Prijonofdafd402008-01-23 14:34:46 +00002924 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2925echo "${ECHO_T}$ac_ct_CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002926else
Benny Prijonofdafd402008-01-23 14:34:46 +00002927 { echo "$as_me:$LINENO: result: no" >&5
2928echo "${ECHO_T}no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002929fi
2930
Benny Prijonofdafd402008-01-23 14:34:46 +00002931
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002932 test -n "$ac_ct_CXX" && break
2933done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002934
Benny Prijonofdafd402008-01-23 14:34:46 +00002935 if test "x$ac_ct_CXX" = x; then
2936 CXX="g++"
2937 else
2938 case $cross_compiling:$ac_tool_warned in
2939yes:)
2940{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2941whose name does not start with the host triplet. If you think this
2942configuration is useful to you, please write to autoconf@gnu.org." >&5
2943echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2944whose name does not start with the host triplet. If you think this
2945configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2946ac_tool_warned=yes ;;
2947esac
2948 CXX=$ac_ct_CXX
2949 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002950fi
2951
Benny Prijonofdafd402008-01-23 14:34:46 +00002952 fi
2953fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002954# Provide some information about the compiler.
Benny Prijonofdafd402008-01-23 14:34:46 +00002955echo "$as_me:$LINENO: checking for C++ compiler version" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002956ac_compiler=`set X $ac_compile; echo $2`
Benny Prijonofdafd402008-01-23 14:34:46 +00002957{ (ac_try="$ac_compiler --version >&5"
2958case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961esac
2962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_compiler --version >&5") 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002964 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002966 (exit $ac_status); }
Benny Prijonofdafd402008-01-23 14:34:46 +00002967{ (ac_try="$ac_compiler -v >&5"
2968case "(($ac_try" in
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2971esac
2972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_compiler -v >&5") 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002974 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002976 (exit $ac_status); }
Benny Prijonofdafd402008-01-23 14:34:46 +00002977{ (ac_try="$ac_compiler -V >&5"
2978case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981esac
2982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_compiler -V >&5") 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002984 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002986 (exit $ac_status); }
2987
Benny Prijonofdafd402008-01-23 14:34:46 +00002988{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2989echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002990if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2992else
2993 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002994/* confdefs.h. */
2995_ACEOF
2996cat confdefs.h >>conftest.$ac_ext
2997cat >>conftest.$ac_ext <<_ACEOF
2998/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002999
3000int
3001main ()
3002{
3003#ifndef __GNUC__
3004 choke me
3005#endif
3006
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00003012if { (ac_try="$ac_compile"
3013case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016esac
3017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003019 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003020 grep -v '^ *+' conftest.er1 >conftest.err
3021 rm -f conftest.er1
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00003024 (exit $ac_status); } && {
3025 test -z "$ac_cxx_werror_flag" ||
3026 test ! -s conftest.err
3027 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003028 ac_compiler_gnu=yes
3029else
3030 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003031sed 's/^/| /' conftest.$ac_ext >&5
3032
Benny Prijonofdafd402008-01-23 14:34:46 +00003033 ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003034fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003035
3036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003037ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3038
3039fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003040{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3041echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003042GXX=`test $ac_compiler_gnu = yes && echo yes`
3043ac_test_CXXFLAGS=${CXXFLAGS+set}
3044ac_save_CXXFLAGS=$CXXFLAGS
Benny Prijonofdafd402008-01-23 14:34:46 +00003045{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3046echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003047if test "${ac_cv_prog_cxx_g+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3049else
Benny Prijonofdafd402008-01-23 14:34:46 +00003050 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3051 ac_cxx_werror_flag=yes
3052 ac_cv_prog_cxx_g=no
3053 CXXFLAGS="-g"
3054 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003055/* confdefs.h. */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
3059/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003060
3061int
3062main ()
3063{
3064
3065 ;
3066 return 0;
3067}
3068_ACEOF
3069rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00003070if { (ac_try="$ac_compile"
3071case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074esac
3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003077 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003078 grep -v '^ *+' conftest.er1 >conftest.err
3079 rm -f conftest.er1
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00003082 (exit $ac_status); } && {
3083 test -z "$ac_cxx_werror_flag" ||
3084 test ! -s conftest.err
3085 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003086 ac_cv_prog_cxx_g=yes
3087else
3088 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003089sed 's/^/| /' conftest.$ac_ext >&5
3090
Benny Prijonofdafd402008-01-23 14:34:46 +00003091 CXXFLAGS=""
3092 cat >conftest.$ac_ext <<_ACEOF
3093/* confdefs.h. */
3094_ACEOF
3095cat confdefs.h >>conftest.$ac_ext
3096cat >>conftest.$ac_ext <<_ACEOF
3097/* end confdefs.h. */
3098
3099int
3100main ()
3101{
3102
3103 ;
3104 return 0;
3105}
3106_ACEOF
3107rm -f conftest.$ac_objext
3108if { (ac_try="$ac_compile"
3109case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112esac
3113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114 (eval "$ac_compile") 2>conftest.er1
3115 ac_status=$?
3116 grep -v '^ *+' conftest.er1 >conftest.err
3117 rm -f conftest.er1
3118 cat conftest.err >&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); } && {
3121 test -z "$ac_cxx_werror_flag" ||
3122 test ! -s conftest.err
3123 } && test -s conftest.$ac_objext; then
3124 :
3125else
3126 echo "$as_me: failed program was:" >&5
3127sed 's/^/| /' conftest.$ac_ext >&5
3128
3129 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3130 CXXFLAGS="-g"
3131 cat >conftest.$ac_ext <<_ACEOF
3132/* confdefs.h. */
3133_ACEOF
3134cat confdefs.h >>conftest.$ac_ext
3135cat >>conftest.$ac_ext <<_ACEOF
3136/* end confdefs.h. */
3137
3138int
3139main ()
3140{
3141
3142 ;
3143 return 0;
3144}
3145_ACEOF
3146rm -f conftest.$ac_objext
3147if { (ac_try="$ac_compile"
3148case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151esac
3152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_compile") 2>conftest.er1
3154 ac_status=$?
3155 grep -v '^ *+' conftest.er1 >conftest.err
3156 rm -f conftest.er1
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } && {
3160 test -z "$ac_cxx_werror_flag" ||
3161 test ! -s conftest.err
3162 } && test -s conftest.$ac_objext; then
3163 ac_cv_prog_cxx_g=yes
3164else
3165 echo "$as_me: failed program was:" >&5
3166sed 's/^/| /' conftest.$ac_ext >&5
3167
3168
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003169fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003170
3171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003172fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003173
3174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175fi
3176
3177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3179fi
3180{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3181echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003182if test "$ac_test_CXXFLAGS" = set; then
3183 CXXFLAGS=$ac_save_CXXFLAGS
3184elif test $ac_cv_prog_cxx_g = yes; then
3185 if test "$GXX" = yes; then
3186 CXXFLAGS="-g -O2"
3187 else
3188 CXXFLAGS="-g"
3189 fi
3190else
3191 if test "$GXX" = yes; then
3192 CXXFLAGS="-O2"
3193 else
3194 CXXFLAGS=
3195 fi
3196fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003197ac_ext=c
3198ac_cpp='$CPP $CPPFLAGS'
3199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003203ac_ext=c
3204ac_cpp='$CPP $CPPFLAGS'
3205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207ac_compiler_gnu=$ac_cv_c_compiler_gnu
3208
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003209
3210
Benny Prijono53847a32007-09-24 16:10:13 +00003211case $target in
3212 *mingw* | *cygw* | *win32* | *w32* )
3213 ac_pjdir=`pwd -W`
3214 ;;
3215 *)
3216 ac_pjdir=`pwd`
3217 ;;
3218esac
Benny Prijono12483112007-03-12 10:44:38 +00003219
3220
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003221
Benny Prijonofdafd402008-01-23 14:34:46 +00003222{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
3223echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003224if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3226else
3227 ac_check_lib_save_LIBS=$LIBS
3228LIBS="-lpthread $LIBS"
3229cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003230/* confdefs.h. */
3231_ACEOF
3232cat confdefs.h >>conftest.$ac_ext
3233cat >>conftest.$ac_ext <<_ACEOF
3234/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003235
Benny Prijonofdafd402008-01-23 14:34:46 +00003236/* Override any GCC internal prototype to avoid an error.
3237 Use char because int might match the return type of a GCC
3238 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003239#ifdef __cplusplus
3240extern "C"
3241#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003242char pthread_create ();
3243int
3244main ()
3245{
Benny Prijonofdafd402008-01-23 14:34:46 +00003246return pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003247 ;
3248 return 0;
3249}
3250_ACEOF
3251rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonofdafd402008-01-23 14:34:46 +00003252if { (ac_try="$ac_link"
3253case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256esac
3257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003259 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003260 grep -v '^ *+' conftest.er1 >conftest.err
3261 rm -f conftest.er1
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00003264 (exit $ac_status); } && {
3265 test -z "$ac_c_werror_flag" ||
3266 test ! -s conftest.err
3267 } && test -s conftest$ac_exeext &&
3268 $as_test_x conftest$ac_exeext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003269 ac_cv_lib_pthread_pthread_create=yes
3270else
3271 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003272sed 's/^/| /' conftest.$ac_ext >&5
3273
Benny Prijonofdafd402008-01-23 14:34:46 +00003274 ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003275fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003276
3277rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003278 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003279LIBS=$ac_check_lib_save_LIBS
3280fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003281{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
3282echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003283if test $ac_cv_lib_pthread_pthread_create = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003284 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003285#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003286_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003287
3288 LIBS="-lpthread $LIBS"
3289
3290fi
3291
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003292
Benny Prijonofdafd402008-01-23 14:34:46 +00003293{ echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5
3294echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003295if test "${ac_cv_lib_wsock32_puts+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3297else
3298 ac_check_lib_save_LIBS=$LIBS
3299LIBS="-lwsock32 $LIBS"
3300cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003301/* confdefs.h. */
3302_ACEOF
3303cat confdefs.h >>conftest.$ac_ext
3304cat >>conftest.$ac_ext <<_ACEOF
3305/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003306
Benny Prijonofdafd402008-01-23 14:34:46 +00003307/* Override any GCC internal prototype to avoid an error.
3308 Use char because int might match the return type of a GCC
3309 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003310#ifdef __cplusplus
3311extern "C"
3312#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003313char puts ();
3314int
3315main ()
3316{
Benny Prijonofdafd402008-01-23 14:34:46 +00003317return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003318 ;
3319 return 0;
3320}
3321_ACEOF
3322rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonofdafd402008-01-23 14:34:46 +00003323if { (ac_try="$ac_link"
3324case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327esac
3328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003330 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003331 grep -v '^ *+' conftest.er1 >conftest.err
3332 rm -f conftest.er1
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00003335 (exit $ac_status); } && {
3336 test -z "$ac_c_werror_flag" ||
3337 test ! -s conftest.err
3338 } && test -s conftest$ac_exeext &&
3339 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003340 ac_cv_lib_wsock32_puts=yes
3341else
3342 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003343sed 's/^/| /' conftest.$ac_ext >&5
3344
Benny Prijonofdafd402008-01-23 14:34:46 +00003345 ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003346fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003347
3348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
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 Prijonofdafd402008-01-23 14:34:46 +00003352{ echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5
3353echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003354if test $ac_cv_lib_wsock32_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_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003357_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003358
3359 LIBS="-lwsock32 $LIBS"
3360
3361fi
3362
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003363
Benny Prijonofdafd402008-01-23 14:34:46 +00003364{ echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5
3365echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003366if test "${ac_cv_lib_ws2_32_puts+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3368else
3369 ac_check_lib_save_LIBS=$LIBS
3370LIBS="-lws2_32 $LIBS"
3371cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003372/* confdefs.h. */
3373_ACEOF
3374cat confdefs.h >>conftest.$ac_ext
3375cat >>conftest.$ac_ext <<_ACEOF
3376/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003377
Benny Prijonofdafd402008-01-23 14:34:46 +00003378/* Override any GCC internal prototype to avoid an error.
3379 Use char because int might match the return type of a GCC
3380 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003381#ifdef __cplusplus
3382extern "C"
3383#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003384char puts ();
3385int
3386main ()
3387{
Benny Prijonofdafd402008-01-23 14:34:46 +00003388return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003389 ;
3390 return 0;
3391}
3392_ACEOF
3393rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonofdafd402008-01-23 14:34:46 +00003394if { (ac_try="$ac_link"
3395case "(($ac_try" in
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3398esac
3399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003401 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003402 grep -v '^ *+' conftest.er1 >conftest.err
3403 rm -f conftest.er1
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00003406 (exit $ac_status); } && {
3407 test -z "$ac_c_werror_flag" ||
3408 test ! -s conftest.err
3409 } && test -s conftest$ac_exeext &&
3410 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003411 ac_cv_lib_ws2_32_puts=yes
3412else
3413 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003414sed 's/^/| /' conftest.$ac_ext >&5
3415
Benny Prijonofdafd402008-01-23 14:34:46 +00003416 ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003417fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003418
3419rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003420 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003421LIBS=$ac_check_lib_save_LIBS
3422fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003423{ echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5
3424echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003425if test $ac_cv_lib_ws2_32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003426 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003427#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003428_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003429
3430 LIBS="-lws2_32 $LIBS"
3431
3432fi
3433
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003434
Benny Prijonofdafd402008-01-23 14:34:46 +00003435{ echo "$as_me:$LINENO: checking for puts in -lole32" >&5
3436echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003437if test "${ac_cv_lib_ole32_puts+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3439else
3440 ac_check_lib_save_LIBS=$LIBS
3441LIBS="-lole32 $LIBS"
3442cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003443/* confdefs.h. */
3444_ACEOF
3445cat confdefs.h >>conftest.$ac_ext
3446cat >>conftest.$ac_ext <<_ACEOF
3447/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003448
Benny Prijonofdafd402008-01-23 14:34:46 +00003449/* Override any GCC internal prototype to avoid an error.
3450 Use char because int might match the return type of a GCC
3451 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003452#ifdef __cplusplus
3453extern "C"
3454#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003455char puts ();
3456int
3457main ()
3458{
Benny Prijonofdafd402008-01-23 14:34:46 +00003459return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003460 ;
3461 return 0;
3462}
3463_ACEOF
3464rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonofdafd402008-01-23 14:34:46 +00003465if { (ac_try="$ac_link"
3466case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3469esac
3470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003472 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003473 grep -v '^ *+' conftest.er1 >conftest.err
3474 rm -f conftest.er1
3475 cat conftest.err >&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00003477 (exit $ac_status); } && {
3478 test -z "$ac_c_werror_flag" ||
3479 test ! -s conftest.err
3480 } && test -s conftest$ac_exeext &&
3481 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003482 ac_cv_lib_ole32_puts=yes
3483else
3484 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003485sed 's/^/| /' conftest.$ac_ext >&5
3486
Benny Prijonofdafd402008-01-23 14:34:46 +00003487 ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003488fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003489
3490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003491 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003492LIBS=$ac_check_lib_save_LIBS
3493fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003494{ echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5
3495echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003496if test $ac_cv_lib_ole32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003497 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003498#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003499_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003500
3501 LIBS="-lole32 $LIBS"
3502
3503fi
3504
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003505
Benny Prijonofdafd402008-01-23 14:34:46 +00003506{ echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5
3507echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003508if test "${ac_cv_lib_winmm_puts+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3510else
3511 ac_check_lib_save_LIBS=$LIBS
3512LIBS="-lwinmm $LIBS"
3513cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003514/* confdefs.h. */
3515_ACEOF
3516cat confdefs.h >>conftest.$ac_ext
3517cat >>conftest.$ac_ext <<_ACEOF
3518/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003519
Benny Prijonofdafd402008-01-23 14:34:46 +00003520/* Override any GCC internal prototype to avoid an error.
3521 Use char because int might match the return type of a GCC
3522 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003523#ifdef __cplusplus
3524extern "C"
3525#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003526char puts ();
3527int
3528main ()
3529{
Benny Prijonofdafd402008-01-23 14:34:46 +00003530return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003531 ;
3532 return 0;
3533}
3534_ACEOF
3535rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonofdafd402008-01-23 14:34:46 +00003536if { (ac_try="$ac_link"
3537case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540esac
3541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003543 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003544 grep -v '^ *+' conftest.er1 >conftest.err
3545 rm -f conftest.er1
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00003548 (exit $ac_status); } && {
3549 test -z "$ac_c_werror_flag" ||
3550 test ! -s conftest.err
3551 } && test -s conftest$ac_exeext &&
3552 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003553 ac_cv_lib_winmm_puts=yes
3554else
3555 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003556sed 's/^/| /' conftest.$ac_ext >&5
3557
Benny Prijonofdafd402008-01-23 14:34:46 +00003558 ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003559fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003560
3561rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003562 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003563LIBS=$ac_check_lib_save_LIBS
3564fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003565{ echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5
3566echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003567if test $ac_cv_lib_winmm_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003568 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003569#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003570_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003571
3572 LIBS="-lwinmm $LIBS"
3573
3574fi
3575
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003576
Benny Prijonofdafd402008-01-23 14:34:46 +00003577{ echo "$as_me:$LINENO: checking for puts in -lsocket" >&5
3578echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003579if test "${ac_cv_lib_socket_puts+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581else
3582 ac_check_lib_save_LIBS=$LIBS
3583LIBS="-lsocket $LIBS"
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 Prijonoc5b6dbf2006-09-10 16:33:48 +00003590
Benny Prijonofdafd402008-01-23 14:34:46 +00003591/* Override any GCC internal prototype to avoid an error.
3592 Use char because int might match the return type of a GCC
3593 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003594#ifdef __cplusplus
3595extern "C"
3596#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003597char puts ();
3598int
3599main ()
3600{
Benny Prijonofdafd402008-01-23 14:34:46 +00003601return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003602 ;
3603 return 0;
3604}
3605_ACEOF
3606rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonofdafd402008-01-23 14:34:46 +00003607if { (ac_try="$ac_link"
3608case "(($ac_try" in
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3611esac
3612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003614 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003615 grep -v '^ *+' conftest.er1 >conftest.err
3616 rm -f conftest.er1
3617 cat conftest.err >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00003619 (exit $ac_status); } && {
3620 test -z "$ac_c_werror_flag" ||
3621 test ! -s conftest.err
3622 } && test -s conftest$ac_exeext &&
3623 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003624 ac_cv_lib_socket_puts=yes
3625else
3626 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003627sed 's/^/| /' conftest.$ac_ext >&5
3628
Benny Prijonofdafd402008-01-23 14:34:46 +00003629 ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003630fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003631
3632rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003633 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003634LIBS=$ac_check_lib_save_LIBS
3635fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003636{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5
3637echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003638if test $ac_cv_lib_socket_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003639 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003640#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003641_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003642
3643 LIBS="-lsocket $LIBS"
3644
3645fi
3646
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003647
Benny Prijonofdafd402008-01-23 14:34:46 +00003648{ echo "$as_me:$LINENO: checking for puts in -lrt" >&5
3649echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003650if test "${ac_cv_lib_rt_puts+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3652else
3653 ac_check_lib_save_LIBS=$LIBS
3654LIBS="-lrt $LIBS"
3655cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003656/* confdefs.h. */
3657_ACEOF
3658cat confdefs.h >>conftest.$ac_ext
3659cat >>conftest.$ac_ext <<_ACEOF
3660/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003661
Benny Prijonofdafd402008-01-23 14:34:46 +00003662/* Override any GCC internal prototype to avoid an error.
3663 Use char because int might match the return type of a GCC
3664 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003665#ifdef __cplusplus
3666extern "C"
3667#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003668char puts ();
3669int
3670main ()
3671{
Benny Prijonofdafd402008-01-23 14:34:46 +00003672return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003673 ;
3674 return 0;
3675}
3676_ACEOF
3677rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonofdafd402008-01-23 14:34:46 +00003678if { (ac_try="$ac_link"
3679case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682esac
3683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003685 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003686 grep -v '^ *+' conftest.er1 >conftest.err
3687 rm -f conftest.er1
3688 cat conftest.err >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00003690 (exit $ac_status); } && {
3691 test -z "$ac_c_werror_flag" ||
3692 test ! -s conftest.err
3693 } && test -s conftest$ac_exeext &&
3694 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003695 ac_cv_lib_rt_puts=yes
3696else
3697 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003698sed 's/^/| /' conftest.$ac_ext >&5
3699
Benny Prijonofdafd402008-01-23 14:34:46 +00003700 ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003701fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003702
3703rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003704 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003705LIBS=$ac_check_lib_save_LIBS
3706fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003707{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5
3708echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003709if test $ac_cv_lib_rt_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003710 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003711#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003712_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003713
3714 LIBS="-lrt $LIBS"
3715
3716fi
3717
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003718
Benny Prijonofdafd402008-01-23 14:34:46 +00003719{ echo "$as_me:$LINENO: checking for puts in -lnsl" >&5
3720echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003721if test "${ac_cv_lib_nsl_puts+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3723else
3724 ac_check_lib_save_LIBS=$LIBS
3725LIBS="-lnsl $LIBS"
3726cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003727/* confdefs.h. */
3728_ACEOF
3729cat confdefs.h >>conftest.$ac_ext
3730cat >>conftest.$ac_ext <<_ACEOF
3731/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003732
Benny Prijonofdafd402008-01-23 14:34:46 +00003733/* Override any GCC internal prototype to avoid an error.
3734 Use char because int might match the return type of a GCC
3735 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003736#ifdef __cplusplus
3737extern "C"
3738#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003739char puts ();
3740int
3741main ()
3742{
Benny Prijonofdafd402008-01-23 14:34:46 +00003743return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003744 ;
3745 return 0;
3746}
3747_ACEOF
3748rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonofdafd402008-01-23 14:34:46 +00003749if { (ac_try="$ac_link"
3750case "(($ac_try" in
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3753esac
3754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3755 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003756 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003757 grep -v '^ *+' conftest.er1 >conftest.err
3758 rm -f conftest.er1
3759 cat conftest.err >&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00003761 (exit $ac_status); } && {
3762 test -z "$ac_c_werror_flag" ||
3763 test ! -s conftest.err
3764 } && test -s conftest$ac_exeext &&
3765 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003766 ac_cv_lib_nsl_puts=yes
3767else
3768 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003769sed 's/^/| /' conftest.$ac_ext >&5
3770
Benny Prijonofdafd402008-01-23 14:34:46 +00003771 ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003772fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003773
3774rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003775 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003776LIBS=$ac_check_lib_save_LIBS
3777fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003778{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5
3779echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003780if test $ac_cv_lib_nsl_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003781 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003782#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003783_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003784
3785 LIBS="-lnsl $LIBS"
3786
3787fi
3788
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003789
Benny Prijonofdafd402008-01-23 14:34:46 +00003790{ echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3791echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00003792if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795 ac_check_lib_save_LIBS=$LIBS
3796LIBS="-luuid $LIBS"
3797cat >conftest.$ac_ext <<_ACEOF
3798/* confdefs.h. */
3799_ACEOF
3800cat confdefs.h >>conftest.$ac_ext
3801cat >>conftest.$ac_ext <<_ACEOF
3802/* end confdefs.h. */
3803
Benny Prijonofdafd402008-01-23 14:34:46 +00003804/* Override any GCC internal prototype to avoid an error.
3805 Use char because int might match the return type of a GCC
3806 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003807#ifdef __cplusplus
3808extern "C"
3809#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003810char uuid_generate ();
3811int
3812main ()
3813{
Benny Prijonofdafd402008-01-23 14:34:46 +00003814return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003815 ;
3816 return 0;
3817}
3818_ACEOF
3819rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonofdafd402008-01-23 14:34:46 +00003820if { (ac_try="$ac_link"
3821case "(($ac_try" in
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3824esac
3825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3826 (eval "$ac_link") 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00003827 ac_status=$?
3828 grep -v '^ *+' conftest.er1 >conftest.err
3829 rm -f conftest.er1
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00003832 (exit $ac_status); } && {
3833 test -z "$ac_c_werror_flag" ||
3834 test ! -s conftest.err
3835 } && test -s conftest$ac_exeext &&
3836 $as_test_x conftest$ac_exeext; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003837 ac_cv_lib_uuid_uuid_generate=yes
3838else
3839 echo "$as_me: failed program was:" >&5
3840sed 's/^/| /' conftest.$ac_ext >&5
3841
Benny Prijonofdafd402008-01-23 14:34:46 +00003842 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003843fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003844
3845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono4e48b512007-05-16 13:41:00 +00003846 conftest$ac_exeext conftest.$ac_ext
3847LIBS=$ac_check_lib_save_LIBS
3848fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003849{ echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3850echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00003851if test $ac_cv_lib_uuid_uuid_generate = yes; then
3852 cat >>confdefs.h <<_ACEOF
3853#define HAVE_LIBUUID 1
3854_ACEOF
3855
3856 LIBS="-luuid $LIBS"
3857
3858fi
3859
Benny Prijonofdafd402008-01-23 14:34:46 +00003860{ echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3861echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00003862if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864else
3865 ac_check_lib_save_LIBS=$LIBS
3866LIBS="-luuid $LIBS"
3867cat >conftest.$ac_ext <<_ACEOF
3868/* confdefs.h. */
3869_ACEOF
3870cat confdefs.h >>conftest.$ac_ext
3871cat >>conftest.$ac_ext <<_ACEOF
3872/* end confdefs.h. */
3873
Benny Prijonofdafd402008-01-23 14:34:46 +00003874/* Override any GCC internal prototype to avoid an error.
3875 Use char because int might match the return type of a GCC
3876 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003877#ifdef __cplusplus
3878extern "C"
3879#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003880char uuid_generate ();
3881int
3882main ()
3883{
Benny Prijonofdafd402008-01-23 14:34:46 +00003884return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003885 ;
3886 return 0;
3887}
3888_ACEOF
3889rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonofdafd402008-01-23 14:34:46 +00003890if { (ac_try="$ac_link"
3891case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894esac
3895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_link") 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00003897 ac_status=$?
3898 grep -v '^ *+' conftest.er1 >conftest.err
3899 rm -f conftest.er1
3900 cat conftest.err >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00003902 (exit $ac_status); } && {
3903 test -z "$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3905 } && test -s conftest$ac_exeext &&
3906 $as_test_x conftest$ac_exeext; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003907 ac_cv_lib_uuid_uuid_generate=yes
3908else
3909 echo "$as_me: failed program was:" >&5
3910sed 's/^/| /' conftest.$ac_ext >&5
3911
Benny Prijonofdafd402008-01-23 14:34:46 +00003912 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003913fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003914
3915rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono4e48b512007-05-16 13:41:00 +00003916 conftest$ac_exeext conftest.$ac_ext
3917LIBS=$ac_check_lib_save_LIBS
3918fi
Benny Prijonofdafd402008-01-23 14:34:46 +00003919{ echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3920echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00003921if test $ac_cv_lib_uuid_uuid_generate = yes; then
3922 ac_has_uuid_lib=1
3923fi
3924
3925
Benny Prijonofdafd402008-01-23 14:34:46 +00003926{ echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5
3927echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003928cat >>confdefs.h <<_ACEOF
3929#define PJ_M_NAME "$target_cpu"
3930_ACEOF
3931
3932
Benny Prijonofdafd402008-01-23 14:34:46 +00003933{ echo "$as_me:$LINENO: checking memory alignment" >&5
3934echo $ECHO_N "checking memory alignment... $ECHO_C" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003935case $target in
3936 ia64-* | x86_64-* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003937 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003938#define PJ_POOL_ALIGNMENT 8
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003939_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003940
Benny Prijonofdafd402008-01-23 14:34:46 +00003941 { echo "$as_me:$LINENO: result: 8 bytes" >&5
3942echo "${ECHO_T}8 bytes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003943 ;;
3944 * )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003945 cat >>confdefs.h <<\_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003946#define PJ_POOL_ALIGNMENT 4
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003947_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00003948
Benny Prijonofdafd402008-01-23 14:34:46 +00003949 { echo "$as_me:$LINENO: result: 4 bytes (default)" >&5
3950echo "${ECHO_T}4 bytes (default)" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003951 ;;
3952esac
3953
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003954
Benny Prijonofdafd402008-01-23 14:34:46 +00003955ac_ext=c
3956ac_cpp='$CPP $CPPFLAGS'
3957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3961echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3962# On Suns, sometimes $CPP names a directory.
3963if test -n "$CPP" && test -d "$CPP"; then
3964 CPP=
3965fi
3966if test -z "$CPP"; then
3967 if test "${ac_cv_prog_CPP+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3969else
3970 # Double quotes because CPP needs to be expanded
3971 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3972 do
3973 ac_preproc_ok=false
3974for ac_c_preproc_warn_flag in '' yes
3975do
3976 # Use a header file that comes with gcc, so configuring glibc
3977 # with a fresh cross-compiler works.
3978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3979 # <limits.h> exists even on freestanding compilers.
3980 # On the NeXT, cc -E runs the code through the compiler's parser,
3981 # not just through cpp. "Syntax error" is here to catch this case.
3982 cat >conftest.$ac_ext <<_ACEOF
3983/* confdefs.h. */
3984_ACEOF
3985cat confdefs.h >>conftest.$ac_ext
3986cat >>conftest.$ac_ext <<_ACEOF
3987/* end confdefs.h. */
3988#ifdef __STDC__
3989# include <limits.h>
3990#else
3991# include <assert.h>
3992#endif
3993 Syntax error
3994_ACEOF
3995if { (ac_try="$ac_cpp conftest.$ac_ext"
3996case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999esac
4000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4002 ac_status=$?
4003 grep -v '^ *+' conftest.er1 >conftest.err
4004 rm -f conftest.er1
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } >/dev/null && {
4008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4009 test ! -s conftest.err
4010 }; then
4011 :
4012else
4013 echo "$as_me: failed program was:" >&5
4014sed 's/^/| /' conftest.$ac_ext >&5
4015
4016 # Broken: fails on valid input.
4017continue
4018fi
4019
4020rm -f conftest.err conftest.$ac_ext
4021
4022 # OK, works on sane cases. Now check whether nonexistent headers
4023 # can be detected and how.
4024 cat >conftest.$ac_ext <<_ACEOF
4025/* confdefs.h. */
4026_ACEOF
4027cat confdefs.h >>conftest.$ac_ext
4028cat >>conftest.$ac_ext <<_ACEOF
4029/* end confdefs.h. */
4030#include <ac_nonexistent.h>
4031_ACEOF
4032if { (ac_try="$ac_cpp conftest.$ac_ext"
4033case "(($ac_try" in
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4036esac
4037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } >/dev/null && {
4045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4046 test ! -s conftest.err
4047 }; then
4048 # Broken: success on invalid input.
4049continue
4050else
4051 echo "$as_me: failed program was:" >&5
4052sed 's/^/| /' conftest.$ac_ext >&5
4053
4054 # Passes both tests.
4055ac_preproc_ok=:
4056break
4057fi
4058
4059rm -f conftest.err conftest.$ac_ext
4060
4061done
4062# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4063rm -f conftest.err conftest.$ac_ext
4064if $ac_preproc_ok; then
4065 break
4066fi
4067
4068 done
4069 ac_cv_prog_CPP=$CPP
4070
4071fi
4072 CPP=$ac_cv_prog_CPP
4073else
4074 ac_cv_prog_CPP=$CPP
4075fi
4076{ echo "$as_me:$LINENO: result: $CPP" >&5
4077echo "${ECHO_T}$CPP" >&6; }
4078ac_preproc_ok=false
4079for ac_c_preproc_warn_flag in '' yes
4080do
4081 # Use a header file that comes with gcc, so configuring glibc
4082 # with a fresh cross-compiler works.
4083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4084 # <limits.h> exists even on freestanding compilers.
4085 # On the NeXT, cc -E runs the code through the compiler's parser,
4086 # not just through cpp. "Syntax error" is here to catch this case.
4087 cat >conftest.$ac_ext <<_ACEOF
4088/* confdefs.h. */
4089_ACEOF
4090cat confdefs.h >>conftest.$ac_ext
4091cat >>conftest.$ac_ext <<_ACEOF
4092/* end confdefs.h. */
4093#ifdef __STDC__
4094# include <limits.h>
4095#else
4096# include <assert.h>
4097#endif
4098 Syntax error
4099_ACEOF
4100if { (ac_try="$ac_cpp conftest.$ac_ext"
4101case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104esac
4105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } >/dev/null && {
4113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4114 test ! -s conftest.err
4115 }; then
4116 :
4117else
4118 echo "$as_me: failed program was:" >&5
4119sed 's/^/| /' conftest.$ac_ext >&5
4120
4121 # Broken: fails on valid input.
4122continue
4123fi
4124
4125rm -f conftest.err conftest.$ac_ext
4126
4127 # OK, works on sane cases. Now check whether nonexistent headers
4128 # can be detected and how.
4129 cat >conftest.$ac_ext <<_ACEOF
4130/* confdefs.h. */
4131_ACEOF
4132cat confdefs.h >>conftest.$ac_ext
4133cat >>conftest.$ac_ext <<_ACEOF
4134/* end confdefs.h. */
4135#include <ac_nonexistent.h>
4136_ACEOF
4137if { (ac_try="$ac_cpp conftest.$ac_ext"
4138case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141esac
4142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4144 ac_status=$?
4145 grep -v '^ *+' conftest.er1 >conftest.err
4146 rm -f conftest.er1
4147 cat conftest.err >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } >/dev/null && {
4150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4151 test ! -s conftest.err
4152 }; then
4153 # Broken: success on invalid input.
4154continue
4155else
4156 echo "$as_me: failed program was:" >&5
4157sed 's/^/| /' conftest.$ac_ext >&5
4158
4159 # Passes both tests.
4160ac_preproc_ok=:
4161break
4162fi
4163
4164rm -f conftest.err conftest.$ac_ext
4165
4166done
4167# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4168rm -f conftest.err conftest.$ac_ext
4169if $ac_preproc_ok; then
4170 :
4171else
4172 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4173See \`config.log' for more details." >&5
4174echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4175See \`config.log' for more details." >&2;}
4176 { (exit 1); exit 1; }; }
4177fi
4178
4179ac_ext=c
4180ac_cpp='$CPP $CPPFLAGS'
4181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184
4185
4186{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4187echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4188if test "${ac_cv_path_GREP+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190else
4191 # Extract the first word of "grep ggrep" to use in msg output
4192if test -z "$GREP"; then
4193set dummy grep ggrep; ac_prog_name=$2
4194if test "${ac_cv_path_GREP+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196else
4197 ac_path_GREP_found=false
4198# Loop through the user's path and test for each of PROGNAME-LIST
4199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4201do
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
4204 for ac_prog in grep ggrep; do
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4207 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4208 # Check for GNU ac_path_GREP and select it if it is found.
4209 # Check for GNU $ac_path_GREP
4210case `"$ac_path_GREP" --version 2>&1` in
4211*GNU*)
4212 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4213*)
4214 ac_count=0
4215 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4216 while :
4217 do
4218 cat "conftest.in" "conftest.in" >"conftest.tmp"
4219 mv "conftest.tmp" "conftest.in"
4220 cp "conftest.in" "conftest.nl"
4221 echo 'GREP' >> "conftest.nl"
4222 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4223 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4224 ac_count=`expr $ac_count + 1`
4225 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4226 # Best one so far, save it but keep looking for a better one
4227 ac_cv_path_GREP="$ac_path_GREP"
4228 ac_path_GREP_max=$ac_count
4229 fi
4230 # 10*(2^10) chars as input seems more than enough
4231 test $ac_count -gt 10 && break
4232 done
4233 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4234esac
4235
4236
4237 $ac_path_GREP_found && break 3
4238 done
4239done
4240
4241done
4242IFS=$as_save_IFS
4243
4244
4245fi
4246
4247GREP="$ac_cv_path_GREP"
4248if test -z "$GREP"; then
4249 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4250echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4251 { (exit 1); exit 1; }; }
4252fi
4253
4254else
4255 ac_cv_path_GREP=$GREP
4256fi
4257
4258
4259fi
4260{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4261echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4262 GREP="$ac_cv_path_GREP"
4263
4264
4265{ echo "$as_me:$LINENO: checking for egrep" >&5
4266echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4267if test "${ac_cv_path_EGREP+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4269else
4270 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4271 then ac_cv_path_EGREP="$GREP -E"
4272 else
4273 # Extract the first word of "egrep" to use in msg output
4274if test -z "$EGREP"; then
4275set dummy egrep; ac_prog_name=$2
4276if test "${ac_cv_path_EGREP+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4278else
4279 ac_path_EGREP_found=false
4280# Loop through the user's path and test for each of PROGNAME-LIST
4281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4283do
4284 IFS=$as_save_IFS
4285 test -z "$as_dir" && as_dir=.
4286 for ac_prog in egrep; do
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4289 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4290 # Check for GNU ac_path_EGREP and select it if it is found.
4291 # Check for GNU $ac_path_EGREP
4292case `"$ac_path_EGREP" --version 2>&1` in
4293*GNU*)
4294 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4295*)
4296 ac_count=0
4297 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4298 while :
4299 do
4300 cat "conftest.in" "conftest.in" >"conftest.tmp"
4301 mv "conftest.tmp" "conftest.in"
4302 cp "conftest.in" "conftest.nl"
4303 echo 'EGREP' >> "conftest.nl"
4304 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4305 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4306 ac_count=`expr $ac_count + 1`
4307 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4308 # Best one so far, save it but keep looking for a better one
4309 ac_cv_path_EGREP="$ac_path_EGREP"
4310 ac_path_EGREP_max=$ac_count
4311 fi
4312 # 10*(2^10) chars as input seems more than enough
4313 test $ac_count -gt 10 && break
4314 done
4315 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4316esac
4317
4318
4319 $ac_path_EGREP_found && break 3
4320 done
4321done
4322
4323done
4324IFS=$as_save_IFS
4325
4326
4327fi
4328
4329EGREP="$ac_cv_path_EGREP"
4330if test -z "$EGREP"; then
4331 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4332echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4333 { (exit 1); exit 1; }; }
4334fi
4335
4336else
4337 ac_cv_path_EGREP=$EGREP
4338fi
4339
4340
4341 fi
4342fi
4343{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4344echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4345 EGREP="$ac_cv_path_EGREP"
4346
4347
4348{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4349echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4350if test "${ac_cv_header_stdc+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352else
4353 cat >conftest.$ac_ext <<_ACEOF
4354/* confdefs.h. */
4355_ACEOF
4356cat confdefs.h >>conftest.$ac_ext
4357cat >>conftest.$ac_ext <<_ACEOF
4358/* end confdefs.h. */
4359#include <stdlib.h>
4360#include <stdarg.h>
4361#include <string.h>
4362#include <float.h>
4363
4364int
4365main ()
4366{
4367
4368 ;
4369 return 0;
4370}
4371_ACEOF
4372rm -f conftest.$ac_objext
4373if { (ac_try="$ac_compile"
4374case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377esac
4378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379 (eval "$ac_compile") 2>conftest.er1
4380 ac_status=$?
4381 grep -v '^ *+' conftest.er1 >conftest.err
4382 rm -f conftest.er1
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } && {
4386 test -z "$ac_c_werror_flag" ||
4387 test ! -s conftest.err
4388 } && test -s conftest.$ac_objext; then
4389 ac_cv_header_stdc=yes
4390else
4391 echo "$as_me: failed program was:" >&5
4392sed 's/^/| /' conftest.$ac_ext >&5
4393
4394 ac_cv_header_stdc=no
4395fi
4396
4397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398
4399if test $ac_cv_header_stdc = yes; then
4400 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4401 cat >conftest.$ac_ext <<_ACEOF
4402/* confdefs.h. */
4403_ACEOF
4404cat confdefs.h >>conftest.$ac_ext
4405cat >>conftest.$ac_ext <<_ACEOF
4406/* end confdefs.h. */
4407#include <string.h>
4408
4409_ACEOF
4410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4411 $EGREP "memchr" >/dev/null 2>&1; then
4412 :
4413else
4414 ac_cv_header_stdc=no
4415fi
4416rm -f conftest*
4417
4418fi
4419
4420if test $ac_cv_header_stdc = yes; then
4421 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4422 cat >conftest.$ac_ext <<_ACEOF
4423/* confdefs.h. */
4424_ACEOF
4425cat confdefs.h >>conftest.$ac_ext
4426cat >>conftest.$ac_ext <<_ACEOF
4427/* end confdefs.h. */
4428#include <stdlib.h>
4429
4430_ACEOF
4431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4432 $EGREP "free" >/dev/null 2>&1; then
4433 :
4434else
4435 ac_cv_header_stdc=no
4436fi
4437rm -f conftest*
4438
4439fi
4440
4441if test $ac_cv_header_stdc = yes; then
4442 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4443 if test "$cross_compiling" = yes; then
4444 :
4445else
4446 cat >conftest.$ac_ext <<_ACEOF
4447/* confdefs.h. */
4448_ACEOF
4449cat confdefs.h >>conftest.$ac_ext
4450cat >>conftest.$ac_ext <<_ACEOF
4451/* end confdefs.h. */
4452#include <ctype.h>
4453#include <stdlib.h>
4454#if ((' ' & 0x0FF) == 0x020)
4455# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4456# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4457#else
4458# define ISLOWER(c) \
4459 (('a' <= (c) && (c) <= 'i') \
4460 || ('j' <= (c) && (c) <= 'r') \
4461 || ('s' <= (c) && (c) <= 'z'))
4462# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4463#endif
4464
4465#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4466int
4467main ()
4468{
4469 int i;
4470 for (i = 0; i < 256; i++)
4471 if (XOR (islower (i), ISLOWER (i))
4472 || toupper (i) != TOUPPER (i))
4473 return 2;
4474 return 0;
4475}
4476_ACEOF
4477rm -f conftest$ac_exeext
4478if { (ac_try="$ac_link"
4479case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482esac
4483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484 (eval "$ac_link") 2>&5
4485 ac_status=$?
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4488 { (case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491esac
4492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_try") 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; }; then
4497 :
4498else
4499 echo "$as_me: program exited with status $ac_status" >&5
4500echo "$as_me: failed program was:" >&5
4501sed 's/^/| /' conftest.$ac_ext >&5
4502
4503( exit $ac_status )
4504ac_cv_header_stdc=no
4505fi
4506rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4507fi
4508
4509
4510fi
4511fi
4512{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4513echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4514if test $ac_cv_header_stdc = yes; then
4515
4516cat >>confdefs.h <<\_ACEOF
4517#define STDC_HEADERS 1
4518_ACEOF
4519
4520fi
4521
4522# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4533 inttypes.h stdint.h unistd.h
4534do
4535as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4536{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4538if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540else
4541 cat >conftest.$ac_ext <<_ACEOF
4542/* confdefs.h. */
4543_ACEOF
4544cat confdefs.h >>conftest.$ac_ext
4545cat >>conftest.$ac_ext <<_ACEOF
4546/* end confdefs.h. */
4547$ac_includes_default
4548
4549#include <$ac_header>
4550_ACEOF
4551rm -f conftest.$ac_objext
4552if { (ac_try="$ac_compile"
4553case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4556esac
4557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558 (eval "$ac_compile") 2>conftest.er1
4559 ac_status=$?
4560 grep -v '^ *+' conftest.er1 >conftest.err
4561 rm -f conftest.er1
4562 cat conftest.err >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } && {
4565 test -z "$ac_c_werror_flag" ||
4566 test ! -s conftest.err
4567 } && test -s conftest.$ac_objext; then
4568 eval "$as_ac_Header=yes"
4569else
4570 echo "$as_me: failed program was:" >&5
4571sed 's/^/| /' conftest.$ac_ext >&5
4572
4573 eval "$as_ac_Header=no"
4574fi
4575
4576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577fi
4578ac_res=`eval echo '${'$as_ac_Header'}'`
4579 { echo "$as_me:$LINENO: result: $ac_res" >&5
4580echo "${ECHO_T}$ac_res" >&6; }
4581if test `eval echo '${'$as_ac_Header'}'` = yes; then
4582 cat >>confdefs.h <<_ACEOF
4583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4584_ACEOF
4585
4586fi
4587
4588done
4589
4590
4591{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4592echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004593if test "${ac_cv_c_bigendian+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004596 # See if sys/param.h defines the BYTE_ORDER macro.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004597cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004598/* confdefs.h. */
4599_ACEOF
4600cat confdefs.h >>conftest.$ac_ext
4601cat >>conftest.$ac_ext <<_ACEOF
4602/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004603#include <sys/types.h>
4604#include <sys/param.h>
4605
4606int
4607main ()
4608{
Benny Prijonofdafd402008-01-23 14:34:46 +00004609#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4610 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004611 bogus endian macros
4612#endif
4613
4614 ;
4615 return 0;
4616}
4617_ACEOF
4618rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00004619if { (ac_try="$ac_compile"
4620case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623esac
4624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4625 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004626 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004627 grep -v '^ *+' conftest.er1 >conftest.err
4628 rm -f conftest.er1
4629 cat conftest.err >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00004631 (exit $ac_status); } && {
4632 test -z "$ac_c_werror_flag" ||
4633 test ! -s conftest.err
4634 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004635 # It does; now see whether it defined to BIG_ENDIAN or not.
4636cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004637/* confdefs.h. */
4638_ACEOF
4639cat confdefs.h >>conftest.$ac_ext
4640cat >>conftest.$ac_ext <<_ACEOF
4641/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004642#include <sys/types.h>
4643#include <sys/param.h>
4644
4645int
4646main ()
4647{
4648#if BYTE_ORDER != BIG_ENDIAN
4649 not big endian
4650#endif
4651
4652 ;
4653 return 0;
4654}
4655_ACEOF
4656rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00004657if { (ac_try="$ac_compile"
4658case "(($ac_try" in
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4661esac
4662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4663 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004664 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004665 grep -v '^ *+' conftest.er1 >conftest.err
4666 rm -f conftest.er1
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00004669 (exit $ac_status); } && {
4670 test -z "$ac_c_werror_flag" ||
4671 test ! -s conftest.err
4672 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004673 ac_cv_c_bigendian=yes
4674else
4675 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004676sed 's/^/| /' conftest.$ac_ext >&5
4677
Benny Prijonofdafd402008-01-23 14:34:46 +00004678 ac_cv_c_bigendian=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004679fi
Benny Prijonofdafd402008-01-23 14:34:46 +00004680
4681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004682else
4683 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004684sed 's/^/| /' conftest.$ac_ext >&5
4685
Benny Prijonofdafd402008-01-23 14:34:46 +00004686 # It does not; compile a test program.
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004687if test "$cross_compiling" = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004688 # try to guess the endianness by grepping values into an object file
4689 ac_cv_c_bigendian=unknown
4690 cat >conftest.$ac_ext <<_ACEOF
4691/* confdefs.h. */
4692_ACEOF
4693cat confdefs.h >>conftest.$ac_ext
4694cat >>conftest.$ac_ext <<_ACEOF
4695/* end confdefs.h. */
Benny Prijonofdafd402008-01-23 14:34:46 +00004696short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4697short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004698void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Benny Prijonofdafd402008-01-23 14:34:46 +00004699short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4700short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004701void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4702int
4703main ()
4704{
4705 _ascii (); _ebcdic ();
4706 ;
4707 return 0;
4708}
4709_ACEOF
4710rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00004711if { (ac_try="$ac_compile"
4712case "(($ac_try" in
4713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714 *) ac_try_echo=$ac_try;;
4715esac
4716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717 (eval "$ac_compile") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004718 ac_status=$?
4719 grep -v '^ *+' conftest.er1 >conftest.err
4720 rm -f conftest.er1
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00004723 (exit $ac_status); } && {
4724 test -z "$ac_c_werror_flag" ||
4725 test ! -s conftest.err
4726 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004727 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4728 ac_cv_c_bigendian=yes
4729fi
4730if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4731 if test "$ac_cv_c_bigendian" = unknown; then
4732 ac_cv_c_bigendian=no
4733 else
4734 # finding both strings is unlikely to happen, but who knows?
4735 ac_cv_c_bigendian=unknown
4736 fi
4737fi
4738else
4739 echo "$as_me: failed program was:" >&5
4740sed 's/^/| /' conftest.$ac_ext >&5
4741
Benny Prijonofdafd402008-01-23 14:34:46 +00004742
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004743fi
Benny Prijonofdafd402008-01-23 14:34:46 +00004744
4745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004746else
4747 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004748/* confdefs.h. */
4749_ACEOF
4750cat confdefs.h >>conftest.$ac_ext
4751cat >>conftest.$ac_ext <<_ACEOF
4752/* end confdefs.h. */
Benny Prijonofdafd402008-01-23 14:34:46 +00004753$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004754int
4755main ()
4756{
Benny Prijonofdafd402008-01-23 14:34:46 +00004757
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004758 /* Are we little or big endian? From Harbison&Steele. */
4759 union
4760 {
Benny Prijonofdafd402008-01-23 14:34:46 +00004761 long int l;
4762 char c[sizeof (long int)];
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004763 } u;
4764 u.l = 1;
Benny Prijonofdafd402008-01-23 14:34:46 +00004765 return u.c[sizeof (long int) - 1] == 1;
4766
4767 ;
4768 return 0;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004769}
4770_ACEOF
4771rm -f conftest$ac_exeext
Benny Prijonofdafd402008-01-23 14:34:46 +00004772if { (ac_try="$ac_link"
4773case "(($ac_try" in
4774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775 *) ac_try_echo=$ac_try;;
4776esac
4777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4778 (eval "$ac_link") 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004779 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Benny Prijonofdafd402008-01-23 14:34:46 +00004782 { (case "(($ac_try" in
4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;;
4785esac
4786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4787 (eval "$ac_try") 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004788 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004790 (exit $ac_status); }; }; then
4791 ac_cv_c_bigendian=no
4792else
4793 echo "$as_me: program exited with status $ac_status" >&5
4794echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004795sed 's/^/| /' conftest.$ac_ext >&5
4796
4797( exit $ac_status )
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004798ac_cv_c_bigendian=yes
4799fi
Benny Prijonofdafd402008-01-23 14:34:46 +00004800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004801fi
Benny Prijonofdafd402008-01-23 14:34:46 +00004802
4803
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004804fi
Benny Prijonofdafd402008-01-23 14:34:46 +00004805
4806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004807fi
Benny Prijonofdafd402008-01-23 14:34:46 +00004808{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4809echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004810case $ac_cv_c_bigendian in
4811 yes)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004812
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004813cat >>confdefs.h <<\_ACEOF
Benny Prijonob466e232006-09-10 08:53:59 +00004814#define WORDS_BIGENDIAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004815_ACEOF
4816 ;;
4817 no)
4818 ;;
4819 *)
4820 { { echo "$as_me:$LINENO: error: unknown endianness
4821presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4822echo "$as_me: error: unknown endianness
4823presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4824 { (exit 1); exit 1; }; } ;;
4825esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004826
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004827
4828case $target in
4829 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004830 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004831#define PJ_WIN32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004832_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004833
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004834 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004835#define PJ_WIN32_WINNT 0x0400
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004836_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004837
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004838 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004839#define WIN32_LEAN_AND_MEAN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004840_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004841
4842 ;;
4843 *darwin*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004844 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004845#define PJ_DARWINOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004846_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004847
4848 ;;
4849 *linux*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004850 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004851#define PJ_LINUX 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004852_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004853
4854 ;;
4855 *rtems*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004856 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004857#define PJ_RTEMS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004858_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004859
4860 ;;
4861 *sunos* | *solaris* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004862 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004863#define PJ_SUNOS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004864_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004865
4866 ;;
4867 *)
4868 ;;
4869esac
4870
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004871
4872
4873
Benny Prijonofdafd402008-01-23 14:34:46 +00004874# Check whether --enable-floating-point was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004875if test "${enable_floating_point+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00004876 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004877 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004878#define PJ_HAS_FLOATING_POINT 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004879_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004880
Benny Prijonofdafd402008-01-23 14:34:46 +00004881 { echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5
4882echo "${ECHO_T}Checking if floating point is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004883 fi
4884else
4885
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004886 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004887#define PJ_HAS_FLOATING_POINT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004888_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004889
Benny Prijonofdafd402008-01-23 14:34:46 +00004890 { echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5
4891echo "${ECHO_T}Checking if floating point is disabled... no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004892
Benny Prijonofdafd402008-01-23 14:34:46 +00004893{ echo "$as_me:$LINENO: checking for fmod in -lm" >&5
4894echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004895if test "${ac_cv_lib_m_fmod+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4897else
4898 ac_check_lib_save_LIBS=$LIBS
4899LIBS="-lm $LIBS"
4900cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004901/* confdefs.h. */
4902_ACEOF
4903cat confdefs.h >>conftest.$ac_ext
4904cat >>conftest.$ac_ext <<_ACEOF
4905/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004906
Benny Prijonofdafd402008-01-23 14:34:46 +00004907/* Override any GCC internal prototype to avoid an error.
4908 Use char because int might match the return type of a GCC
4909 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004910#ifdef __cplusplus
4911extern "C"
4912#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004913char fmod ();
4914int
4915main ()
4916{
Benny Prijonofdafd402008-01-23 14:34:46 +00004917return fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004918 ;
4919 return 0;
4920}
4921_ACEOF
4922rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonofdafd402008-01-23 14:34:46 +00004923if { (ac_try="$ac_link"
4924case "(($ac_try" in
4925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926 *) ac_try_echo=$ac_try;;
4927esac
4928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4929 (eval "$ac_link") 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004930 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004931 grep -v '^ *+' conftest.er1 >conftest.err
4932 rm -f conftest.er1
4933 cat conftest.err >&5
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00004935 (exit $ac_status); } && {
4936 test -z "$ac_c_werror_flag" ||
4937 test ! -s conftest.err
4938 } && test -s conftest$ac_exeext &&
4939 $as_test_x conftest$ac_exeext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004940 ac_cv_lib_m_fmod=yes
4941else
4942 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004943sed 's/^/| /' conftest.$ac_ext >&5
4944
Benny Prijonofdafd402008-01-23 14:34:46 +00004945 ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004946fi
Benny Prijonofdafd402008-01-23 14:34:46 +00004947
4948rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004949 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004950LIBS=$ac_check_lib_save_LIBS
4951fi
Benny Prijonofdafd402008-01-23 14:34:46 +00004952{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
4953echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004954if test $ac_cv_lib_m_fmod = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004955 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004956#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004957_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004958
4959 LIBS="-lm $LIBS"
4960
4961fi
4962
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004963
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004964fi
4965
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004966
4967
4968if test "${ac_cv_header_arpa_inet_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00004969 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
4970echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004971if test "${ac_cv_header_arpa_inet_h+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4973fi
Benny Prijonofdafd402008-01-23 14:34:46 +00004974{ echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
4975echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004976else
4977 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00004978{ echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
4979echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004980cat >conftest.$ac_ext <<_ACEOF
4981/* confdefs.h. */
4982_ACEOF
4983cat confdefs.h >>conftest.$ac_ext
4984cat >>conftest.$ac_ext <<_ACEOF
4985/* end confdefs.h. */
4986$ac_includes_default
4987#include <arpa/inet.h>
4988_ACEOF
4989rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00004990if { (ac_try="$ac_compile"
4991case "(($ac_try" in
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4994esac
4995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4996 (eval "$ac_compile") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004997 ac_status=$?
4998 grep -v '^ *+' conftest.er1 >conftest.err
4999 rm -f conftest.er1
5000 cat conftest.err >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00005002 (exit $ac_status); } && {
5003 test -z "$ac_c_werror_flag" ||
5004 test ! -s conftest.err
5005 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005006 ac_header_compiler=yes
5007else
5008 echo "$as_me: failed program was:" >&5
5009sed 's/^/| /' conftest.$ac_ext >&5
5010
Benny Prijonofdafd402008-01-23 14:34:46 +00005011 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005012fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005013
5014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5016echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005017
5018# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00005019{ echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
5020echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005021cat >conftest.$ac_ext <<_ACEOF
5022/* confdefs.h. */
5023_ACEOF
5024cat confdefs.h >>conftest.$ac_ext
5025cat >>conftest.$ac_ext <<_ACEOF
5026/* end confdefs.h. */
5027#include <arpa/inet.h>
5028_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00005029if { (ac_try="$ac_cpp conftest.$ac_ext"
5030case "(($ac_try" in
5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032 *) ac_try_echo=$ac_try;;
5033esac
5034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005036 ac_status=$?
5037 grep -v '^ *+' conftest.er1 >conftest.err
5038 rm -f conftest.er1
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00005041 (exit $ac_status); } >/dev/null && {
5042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5043 test ! -s conftest.err
5044 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005045 ac_header_preproc=yes
5046else
5047 echo "$as_me: failed program was:" >&5
5048sed 's/^/| /' conftest.$ac_ext >&5
5049
5050 ac_header_preproc=no
5051fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005052
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005053rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00005054{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5055echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005056
5057# So? What about this header?
5058case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5059 yes:no: )
5060 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
5061echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5062 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
5063echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
5064 ac_header_preproc=yes
5065 ;;
5066 no:yes:* )
5067 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
5068echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
5069 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
5070echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
5071 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
5072echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
5073 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
5074echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
5075 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
5076echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
5077 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
5078echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00005079
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005080 ;;
5081esac
Benny Prijonofdafd402008-01-23 14:34:46 +00005082{ echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
5083echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005084if test "${ac_cv_header_arpa_inet_h+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005086else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005087 ac_cv_header_arpa_inet_h=$ac_header_preproc
5088fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005089{ echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
5090echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005091
5092fi
5093if test $ac_cv_header_arpa_inet_h = yes; then
5094 cat >>confdefs.h <<\_ACEOF
5095#define PJ_HAS_ARPA_INET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005096_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005097
5098fi
5099
5100
5101if test "${ac_cv_header_assert_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00005102 { echo "$as_me:$LINENO: checking for assert.h" >&5
5103echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005104if test "${ac_cv_header_assert_h+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5106fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005107{ echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
5108echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005109else
5110 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00005111{ echo "$as_me:$LINENO: checking assert.h usability" >&5
5112echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005113cat >conftest.$ac_ext <<_ACEOF
5114/* confdefs.h. */
5115_ACEOF
5116cat confdefs.h >>conftest.$ac_ext
5117cat >>conftest.$ac_ext <<_ACEOF
5118/* end confdefs.h. */
5119$ac_includes_default
5120#include <assert.h>
5121_ACEOF
5122rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00005123if { (ac_try="$ac_compile"
5124case "(($ac_try" in
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5127esac
5128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005130 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005131 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005132 rm -f conftest.er1
5133 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00005135 (exit $ac_status); } && {
5136 test -z "$ac_c_werror_flag" ||
5137 test ! -s conftest.err
5138 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005139 ac_header_compiler=yes
5140else
5141 echo "$as_me: failed program was:" >&5
5142sed 's/^/| /' conftest.$ac_ext >&5
5143
Benny Prijonofdafd402008-01-23 14:34:46 +00005144 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005145fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005146
5147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5148{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5149echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005150
5151# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00005152{ echo "$as_me:$LINENO: checking assert.h presence" >&5
5153echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005154cat >conftest.$ac_ext <<_ACEOF
5155/* confdefs.h. */
5156_ACEOF
5157cat confdefs.h >>conftest.$ac_ext
5158cat >>conftest.$ac_ext <<_ACEOF
5159/* end confdefs.h. */
5160#include <assert.h>
5161_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00005162if { (ac_try="$ac_cpp conftest.$ac_ext"
5163case "(($ac_try" in
5164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165 *) ac_try_echo=$ac_try;;
5166esac
5167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005169 ac_status=$?
5170 grep -v '^ *+' conftest.er1 >conftest.err
5171 rm -f conftest.er1
5172 cat conftest.err >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00005174 (exit $ac_status); } >/dev/null && {
5175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5176 test ! -s conftest.err
5177 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005178 ac_header_preproc=yes
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005179else
5180 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005181sed 's/^/| /' conftest.$ac_ext >&5
5182
5183 ac_header_preproc=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005184fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005185
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005186rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00005187{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5188echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005189
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005190# So? What about this header?
5191case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5192 yes:no: )
5193 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
5194echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5195 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
5196echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
5197 ac_header_preproc=yes
5198 ;;
5199 no:yes:* )
5200 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
5201echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
5202 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
5203echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
5204 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
5205echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
5206 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
5207echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
5208 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
5209echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
5210 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
5211echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00005212
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005213 ;;
5214esac
Benny Prijonofdafd402008-01-23 14:34:46 +00005215{ echo "$as_me:$LINENO: checking for assert.h" >&5
5216echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005217if test "${ac_cv_header_assert_h+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005219else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005220 ac_cv_header_assert_h=$ac_header_preproc
5221fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005222{ echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
5223echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005224
5225fi
5226if test $ac_cv_header_assert_h = yes; then
5227 cat >>confdefs.h <<\_ACEOF
5228#define PJ_HAS_ASSERT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005229_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005230
5231fi
5232
5233
5234if test "${ac_cv_header_ctype_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00005235 { echo "$as_me:$LINENO: checking for ctype.h" >&5
5236echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005237if test "${ac_cv_header_ctype_h+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5239fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005240{ echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
5241echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005242else
5243 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00005244{ echo "$as_me:$LINENO: checking ctype.h usability" >&5
5245echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005246cat >conftest.$ac_ext <<_ACEOF
5247/* confdefs.h. */
5248_ACEOF
5249cat confdefs.h >>conftest.$ac_ext
5250cat >>conftest.$ac_ext <<_ACEOF
5251/* end confdefs.h. */
5252$ac_includes_default
5253#include <ctype.h>
5254_ACEOF
5255rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00005256if { (ac_try="$ac_compile"
5257case "(($ac_try" in
5258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259 *) ac_try_echo=$ac_try;;
5260esac
5261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005263 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005264 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005265 rm -f conftest.er1
5266 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00005268 (exit $ac_status); } && {
5269 test -z "$ac_c_werror_flag" ||
5270 test ! -s conftest.err
5271 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005272 ac_header_compiler=yes
5273else
5274 echo "$as_me: failed program was:" >&5
5275sed 's/^/| /' conftest.$ac_ext >&5
5276
Benny Prijonofdafd402008-01-23 14:34:46 +00005277 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005278fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005279
5280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5282echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005283
5284# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00005285{ echo "$as_me:$LINENO: checking ctype.h presence" >&5
5286echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005287cat >conftest.$ac_ext <<_ACEOF
5288/* confdefs.h. */
5289_ACEOF
5290cat confdefs.h >>conftest.$ac_ext
5291cat >>conftest.$ac_ext <<_ACEOF
5292/* end confdefs.h. */
5293#include <ctype.h>
5294_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00005295if { (ac_try="$ac_cpp conftest.$ac_ext"
5296case "(($ac_try" in
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5299esac
5300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005302 ac_status=$?
5303 grep -v '^ *+' conftest.er1 >conftest.err
5304 rm -f conftest.er1
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00005307 (exit $ac_status); } >/dev/null && {
5308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5309 test ! -s conftest.err
5310 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005311 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005312else
5313 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005314sed 's/^/| /' conftest.$ac_ext >&5
5315
5316 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005317fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005318
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005319rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00005320{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5321echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005322
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005323# So? What about this header?
5324case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5325 yes:no: )
5326 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5
5327echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5328 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5
5329echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;}
5330 ac_header_preproc=yes
5331 ;;
5332 no:yes:* )
5333 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5
5334echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;}
5335 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5
5336echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;}
5337 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5
5338echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;}
5339 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5
5340echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;}
5341 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5
5342echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;}
5343 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5
5344echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00005345
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005346 ;;
5347esac
Benny Prijonofdafd402008-01-23 14:34:46 +00005348{ echo "$as_me:$LINENO: checking for ctype.h" >&5
5349echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005350if test "${ac_cv_header_ctype_h+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005352else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005353 ac_cv_header_ctype_h=$ac_header_preproc
5354fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005355{ echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
5356echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005357
5358fi
5359if test $ac_cv_header_ctype_h = yes; then
5360 cat >>confdefs.h <<\_ACEOF
5361#define PJ_HAS_CTYPE_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005362_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005363
5364fi
5365
5366
5367
5368case $target in
5369 *mingw* | *cygw* | *win32* | *w32* )
5370 cat >>confdefs.h <<\_ACEOF
5371#define PJ_HAS_ERRNO_H 0
5372_ACEOF
5373
5374 ;;
5375 *)
5376 if test "${ac_cv_header_errno_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00005377 { echo "$as_me:$LINENO: checking for errno.h" >&5
5378echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005379if test "${ac_cv_header_errno_h+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5381fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005382{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5383echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005384else
5385 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00005386{ echo "$as_me:$LINENO: checking errno.h usability" >&5
5387echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005388cat >conftest.$ac_ext <<_ACEOF
5389/* confdefs.h. */
5390_ACEOF
5391cat confdefs.h >>conftest.$ac_ext
5392cat >>conftest.$ac_ext <<_ACEOF
5393/* end confdefs.h. */
5394$ac_includes_default
5395#include <errno.h>
5396_ACEOF
5397rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00005398if { (ac_try="$ac_compile"
5399case "(($ac_try" in
5400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401 *) ac_try_echo=$ac_try;;
5402esac
5403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005405 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005406 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005407 rm -f conftest.er1
5408 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00005410 (exit $ac_status); } && {
5411 test -z "$ac_c_werror_flag" ||
5412 test ! -s conftest.err
5413 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005414 ac_header_compiler=yes
5415else
5416 echo "$as_me: failed program was:" >&5
5417sed 's/^/| /' conftest.$ac_ext >&5
5418
Benny Prijonofdafd402008-01-23 14:34:46 +00005419 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005420fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005421
5422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5424echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005425
5426# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00005427{ echo "$as_me:$LINENO: checking errno.h presence" >&5
5428echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005429cat >conftest.$ac_ext <<_ACEOF
5430/* confdefs.h. */
5431_ACEOF
5432cat confdefs.h >>conftest.$ac_ext
5433cat >>conftest.$ac_ext <<_ACEOF
5434/* end confdefs.h. */
5435#include <errno.h>
5436_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00005437if { (ac_try="$ac_cpp conftest.$ac_ext"
5438case "(($ac_try" in
5439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440 *) ac_try_echo=$ac_try;;
5441esac
5442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005444 ac_status=$?
5445 grep -v '^ *+' conftest.er1 >conftest.err
5446 rm -f conftest.er1
5447 cat conftest.err >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00005449 (exit $ac_status); } >/dev/null && {
5450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5451 test ! -s conftest.err
5452 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005453 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005454else
5455 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005456sed 's/^/| /' conftest.$ac_ext >&5
5457
5458 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005459fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005460
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005461rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00005462{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5463echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005464
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005465# So? What about this header?
5466case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5467 yes:no: )
5468 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
5469echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5470 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
5471echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
5472 ac_header_preproc=yes
5473 ;;
5474 no:yes:* )
5475 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
5476echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
5477 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5
5478echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;}
5479 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
5480echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
5481 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5
5482echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
5483 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
5484echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
5485 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
5486echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00005487
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005488 ;;
5489esac
Benny Prijonofdafd402008-01-23 14:34:46 +00005490{ echo "$as_me:$LINENO: checking for errno.h" >&5
5491echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005492if test "${ac_cv_header_errno_h+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005494else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005495 ac_cv_header_errno_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005496fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005497{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5498echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005499
5500fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005501if test $ac_cv_header_errno_h = yes; then
5502 cat >>confdefs.h <<\_ACEOF
5503#define PJ_HAS_ERRNO_H 1
5504_ACEOF
5505
5506fi
5507
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005508
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005509 ;;
5510esac
5511
Benny Prijono1d481ab2008-01-24 15:27:30 +00005512if test "${ac_cv_header_fcntl_h+set}" = set; then
5513 { echo "$as_me:$LINENO: checking for fcntl.h" >&5
5514echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; }
5515if test "${ac_cv_header_fcntl_h+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517fi
5518{ echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
5519echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; }
5520else
5521 # Is the header compilable?
5522{ echo "$as_me:$LINENO: checking fcntl.h usability" >&5
5523echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6; }
5524cat >conftest.$ac_ext <<_ACEOF
5525/* confdefs.h. */
5526_ACEOF
5527cat confdefs.h >>conftest.$ac_ext
5528cat >>conftest.$ac_ext <<_ACEOF
5529/* end confdefs.h. */
5530$ac_includes_default
5531#include <fcntl.h>
5532_ACEOF
5533rm -f conftest.$ac_objext
5534if { (ac_try="$ac_compile"
5535case "(($ac_try" in
5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537 *) ac_try_echo=$ac_try;;
5538esac
5539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540 (eval "$ac_compile") 2>conftest.er1
5541 ac_status=$?
5542 grep -v '^ *+' conftest.er1 >conftest.err
5543 rm -f conftest.er1
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } && {
5547 test -z "$ac_c_werror_flag" ||
5548 test ! -s conftest.err
5549 } && test -s conftest.$ac_objext; then
5550 ac_header_compiler=yes
5551else
5552 echo "$as_me: failed program was:" >&5
5553sed 's/^/| /' conftest.$ac_ext >&5
5554
5555 ac_header_compiler=no
5556fi
5557
5558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5560echo "${ECHO_T}$ac_header_compiler" >&6; }
5561
5562# Is the header present?
5563{ echo "$as_me:$LINENO: checking fcntl.h presence" >&5
5564echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6; }
5565cat >conftest.$ac_ext <<_ACEOF
5566/* confdefs.h. */
5567_ACEOF
5568cat confdefs.h >>conftest.$ac_ext
5569cat >>conftest.$ac_ext <<_ACEOF
5570/* end confdefs.h. */
5571#include <fcntl.h>
5572_ACEOF
5573if { (ac_try="$ac_cpp conftest.$ac_ext"
5574case "(($ac_try" in
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5577esac
5578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5580 ac_status=$?
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } >/dev/null && {
5586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5587 test ! -s conftest.err
5588 }; then
5589 ac_header_preproc=yes
5590else
5591 echo "$as_me: failed program was:" >&5
5592sed 's/^/| /' conftest.$ac_ext >&5
5593
5594 ac_header_preproc=no
5595fi
5596
5597rm -f conftest.err conftest.$ac_ext
5598{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5599echo "${ECHO_T}$ac_header_preproc" >&6; }
5600
5601# So? What about this header?
5602case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5603 yes:no: )
5604 { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5605echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5606 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5
5607echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;}
5608 ac_header_preproc=yes
5609 ;;
5610 no:yes:* )
5611 { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5
5612echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;}
5613 { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5
5614echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;}
5615 { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5
5616echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;}
5617 { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5
5618echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5619 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5
5620echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;}
5621 { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5
5622echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;}
5623
5624 ;;
5625esac
5626{ echo "$as_me:$LINENO: checking for fcntl.h" >&5
5627echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; }
5628if test "${ac_cv_header_fcntl_h+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5630else
5631 ac_cv_header_fcntl_h=$ac_header_preproc
5632fi
5633{ echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
5634echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; }
5635
5636fi
5637if test $ac_cv_header_fcntl_h = yes; then
5638 cat >>confdefs.h <<\_ACEOF
5639#define PJ_HAS_FCNTL_H 1
5640_ACEOF
5641
5642fi
5643
5644
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005645if test "${ac_cv_header_linux_socket_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00005646 { echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5647echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005648if test "${ac_cv_header_linux_socket_h+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5650fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005651{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5652echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005653else
5654 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00005655{ echo "$as_me:$LINENO: checking linux/socket.h usability" >&5
5656echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005657cat >conftest.$ac_ext <<_ACEOF
5658/* confdefs.h. */
5659_ACEOF
5660cat confdefs.h >>conftest.$ac_ext
5661cat >>conftest.$ac_ext <<_ACEOF
5662/* end confdefs.h. */
5663$ac_includes_default
5664#include <linux/socket.h>
5665_ACEOF
5666rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00005667if { (ac_try="$ac_compile"
5668case "(($ac_try" in
5669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670 *) ac_try_echo=$ac_try;;
5671esac
5672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5673 (eval "$ac_compile") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005674 ac_status=$?
5675 grep -v '^ *+' conftest.er1 >conftest.err
5676 rm -f conftest.er1
5677 cat conftest.err >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00005679 (exit $ac_status); } && {
5680 test -z "$ac_c_werror_flag" ||
5681 test ! -s conftest.err
5682 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005683 ac_header_compiler=yes
5684else
5685 echo "$as_me: failed program was:" >&5
5686sed 's/^/| /' conftest.$ac_ext >&5
5687
Benny Prijonofdafd402008-01-23 14:34:46 +00005688 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005689fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005690
5691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5692{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5693echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005694
5695# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00005696{ echo "$as_me:$LINENO: checking linux/socket.h presence" >&5
5697echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005698cat >conftest.$ac_ext <<_ACEOF
5699/* confdefs.h. */
5700_ACEOF
5701cat confdefs.h >>conftest.$ac_ext
5702cat >>conftest.$ac_ext <<_ACEOF
5703/* end confdefs.h. */
5704#include <linux/socket.h>
5705_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00005706if { (ac_try="$ac_cpp conftest.$ac_ext"
5707case "(($ac_try" in
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5710esac
5711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005713 ac_status=$?
5714 grep -v '^ *+' conftest.er1 >conftest.err
5715 rm -f conftest.er1
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00005718 (exit $ac_status); } >/dev/null && {
5719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5720 test ! -s conftest.err
5721 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005722 ac_header_preproc=yes
5723else
5724 echo "$as_me: failed program was:" >&5
5725sed 's/^/| /' conftest.$ac_ext >&5
5726
5727 ac_header_preproc=no
5728fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005729
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005730rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00005731{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5732echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005733
5734# So? What about this header?
5735case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5736 yes:no: )
5737 { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
5738echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5739 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5
5740echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;}
5741 ac_header_preproc=yes
5742 ;;
5743 no:yes:* )
5744 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5
5745echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;}
5746 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5
5747echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;}
5748 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5
5749echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;}
5750 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5
5751echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
5752 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5
5753echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;}
5754 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5
5755echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00005756
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005757 ;;
5758esac
Benny Prijonofdafd402008-01-23 14:34:46 +00005759{ echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5760echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005761if test "${ac_cv_header_linux_socket_h+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005763else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005764 ac_cv_header_linux_socket_h=$ac_header_preproc
5765fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005766{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5767echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005768
5769fi
5770if test $ac_cv_header_linux_socket_h = yes; then
5771 cat >>confdefs.h <<\_ACEOF
5772#define PJ_HAS_LINUX_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005773_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005774
5775fi
5776
5777
5778if test "${ac_cv_header_malloc_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00005779 { echo "$as_me:$LINENO: checking for malloc.h" >&5
5780echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005781if test "${ac_cv_header_malloc_h+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005784{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5785echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005786else
5787 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00005788{ echo "$as_me:$LINENO: checking malloc.h usability" >&5
5789echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005790cat >conftest.$ac_ext <<_ACEOF
5791/* confdefs.h. */
5792_ACEOF
5793cat confdefs.h >>conftest.$ac_ext
5794cat >>conftest.$ac_ext <<_ACEOF
5795/* end confdefs.h. */
5796$ac_includes_default
5797#include <malloc.h>
5798_ACEOF
5799rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00005800if { (ac_try="$ac_compile"
5801case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5804esac
5805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005807 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005808 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005809 rm -f conftest.er1
5810 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00005812 (exit $ac_status); } && {
5813 test -z "$ac_c_werror_flag" ||
5814 test ! -s conftest.err
5815 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005816 ac_header_compiler=yes
5817else
5818 echo "$as_me: failed program was:" >&5
5819sed 's/^/| /' conftest.$ac_ext >&5
5820
Benny Prijonofdafd402008-01-23 14:34:46 +00005821 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005822fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005823
5824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5825{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5826echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005827
5828# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00005829{ echo "$as_me:$LINENO: checking malloc.h presence" >&5
5830echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005831cat >conftest.$ac_ext <<_ACEOF
5832/* confdefs.h. */
5833_ACEOF
5834cat confdefs.h >>conftest.$ac_ext
5835cat >>conftest.$ac_ext <<_ACEOF
5836/* end confdefs.h. */
5837#include <malloc.h>
5838_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00005839if { (ac_try="$ac_cpp conftest.$ac_ext"
5840case "(($ac_try" in
5841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5843esac
5844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005846 ac_status=$?
5847 grep -v '^ *+' conftest.er1 >conftest.err
5848 rm -f conftest.er1
5849 cat conftest.err >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00005851 (exit $ac_status); } >/dev/null && {
5852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5853 test ! -s conftest.err
5854 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005855 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005856else
5857 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005858sed 's/^/| /' conftest.$ac_ext >&5
5859
5860 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005861fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005862
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005863rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00005864{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5865echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005866
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005867# So? What about this header?
5868case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5869 yes:no: )
5870 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
5871echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5872 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
5873echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
5874 ac_header_preproc=yes
5875 ;;
5876 no:yes:* )
5877 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
5878echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
5879 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
5880echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
5881 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
5882echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
5883 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
5884echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
5885 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
5886echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
5887 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
5888echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00005889
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005890 ;;
5891esac
Benny Prijonofdafd402008-01-23 14:34:46 +00005892{ echo "$as_me:$LINENO: checking for malloc.h" >&5
5893echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005894if test "${ac_cv_header_malloc_h+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005896else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005897 ac_cv_header_malloc_h=$ac_header_preproc
5898fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005899{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5900echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005901
5902fi
5903if test $ac_cv_header_malloc_h = yes; then
5904 cat >>confdefs.h <<\_ACEOF
5905#define PJ_HAS_MALLOC_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005906_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005907
5908fi
5909
5910
5911if test "${ac_cv_header_netdb_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00005912 { echo "$as_me:$LINENO: checking for netdb.h" >&5
5913echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005914if test "${ac_cv_header_netdb_h+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5916fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005917{ echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
5918echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005919else
5920 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00005921{ echo "$as_me:$LINENO: checking netdb.h usability" >&5
5922echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005923cat >conftest.$ac_ext <<_ACEOF
5924/* confdefs.h. */
5925_ACEOF
5926cat confdefs.h >>conftest.$ac_ext
5927cat >>conftest.$ac_ext <<_ACEOF
5928/* end confdefs.h. */
5929$ac_includes_default
5930#include <netdb.h>
5931_ACEOF
5932rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00005933if { (ac_try="$ac_compile"
5934case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937esac
5938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005940 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005941 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005942 rm -f conftest.er1
5943 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00005945 (exit $ac_status); } && {
5946 test -z "$ac_c_werror_flag" ||
5947 test ! -s conftest.err
5948 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005949 ac_header_compiler=yes
5950else
5951 echo "$as_me: failed program was:" >&5
5952sed 's/^/| /' conftest.$ac_ext >&5
5953
Benny Prijonofdafd402008-01-23 14:34:46 +00005954 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005955fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005956
5957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5959echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005960
5961# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00005962{ echo "$as_me:$LINENO: checking netdb.h presence" >&5
5963echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005964cat >conftest.$ac_ext <<_ACEOF
5965/* confdefs.h. */
5966_ACEOF
5967cat confdefs.h >>conftest.$ac_ext
5968cat >>conftest.$ac_ext <<_ACEOF
5969/* end confdefs.h. */
5970#include <netdb.h>
5971_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00005972if { (ac_try="$ac_cpp conftest.$ac_ext"
5973case "(($ac_try" in
5974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5976esac
5977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005979 ac_status=$?
5980 grep -v '^ *+' conftest.er1 >conftest.err
5981 rm -f conftest.er1
5982 cat conftest.err >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00005984 (exit $ac_status); } >/dev/null && {
5985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5986 test ! -s conftest.err
5987 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005988 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005989else
5990 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005991sed 's/^/| /' conftest.$ac_ext >&5
5992
5993 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005994fi
Benny Prijonofdafd402008-01-23 14:34:46 +00005995
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005996rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00005997{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5998echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005999
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006000# So? What about this header?
6001case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6002 yes:no: )
6003 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
6004echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6005 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5
6006echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;}
6007 ac_header_preproc=yes
6008 ;;
6009 no:yes:* )
6010 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5
6011echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;}
6012 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5
6013echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;}
6014 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5
6015echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;}
6016 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5
6017echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5
6019echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;}
6020 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5
6021echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00006022
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006023 ;;
6024esac
Benny Prijonofdafd402008-01-23 14:34:46 +00006025{ echo "$as_me:$LINENO: checking for netdb.h" >&5
6026echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006027if test "${ac_cv_header_netdb_h+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006029else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006030 ac_cv_header_netdb_h=$ac_header_preproc
6031fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006032{ echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
6033echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006034
6035fi
6036if test $ac_cv_header_netdb_h = yes; then
6037 cat >>confdefs.h <<\_ACEOF
6038#define PJ_HAS_NETDB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006039_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006040
6041fi
6042
6043
6044if test "${ac_cv_header_netinet_in_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00006045 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
6046echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006047if test "${ac_cv_header_netinet_in_h+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006050{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
6051echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006052else
6053 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00006054{ echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
6055echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006056cat >conftest.$ac_ext <<_ACEOF
6057/* confdefs.h. */
6058_ACEOF
6059cat confdefs.h >>conftest.$ac_ext
6060cat >>conftest.$ac_ext <<_ACEOF
6061/* end confdefs.h. */
6062$ac_includes_default
6063#include <netinet/in.h>
6064_ACEOF
6065rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00006066if { (ac_try="$ac_compile"
6067case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6070esac
6071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006073 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006074 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006075 rm -f conftest.er1
6076 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00006078 (exit $ac_status); } && {
6079 test -z "$ac_c_werror_flag" ||
6080 test ! -s conftest.err
6081 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006082 ac_header_compiler=yes
6083else
6084 echo "$as_me: failed program was:" >&5
6085sed 's/^/| /' conftest.$ac_ext >&5
6086
Benny Prijonofdafd402008-01-23 14:34:46 +00006087 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006088fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006089
6090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6091{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6092echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006093
6094# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00006095{ echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
6096echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006097cat >conftest.$ac_ext <<_ACEOF
6098/* confdefs.h. */
6099_ACEOF
6100cat confdefs.h >>conftest.$ac_ext
6101cat >>conftest.$ac_ext <<_ACEOF
6102/* end confdefs.h. */
6103#include <netinet/in.h>
6104_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00006105if { (ac_try="$ac_cpp conftest.$ac_ext"
6106case "(($ac_try" in
6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108 *) ac_try_echo=$ac_try;;
6109esac
6110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006112 ac_status=$?
6113 grep -v '^ *+' conftest.er1 >conftest.err
6114 rm -f conftest.er1
6115 cat conftest.err >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00006117 (exit $ac_status); } >/dev/null && {
6118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6119 test ! -s conftest.err
6120 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006121 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006122else
6123 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006124sed 's/^/| /' conftest.$ac_ext >&5
6125
6126 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006127fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006128
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006129rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00006130{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6131echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006132
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006133# So? What about this header?
6134case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6135 yes:no: )
6136 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
6137echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6138 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
6139echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
6140 ac_header_preproc=yes
6141 ;;
6142 no:yes:* )
6143 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
6144echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
6145 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
6146echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
6147 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
6148echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
6149 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
6150echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
6151 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
6152echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
6153 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
6154echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00006155
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006156 ;;
6157esac
Benny Prijonofdafd402008-01-23 14:34:46 +00006158{ echo "$as_me:$LINENO: checking for netinet/in.h" >&5
6159echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006160if test "${ac_cv_header_netinet_in_h+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006162else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006163 ac_cv_header_netinet_in_h=$ac_header_preproc
6164fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006165{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
6166echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006167
6168fi
6169if test $ac_cv_header_netinet_in_h = yes; then
6170 cat >>confdefs.h <<\_ACEOF
6171#define PJ_HAS_NETINET_IN_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006172_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006173
6174fi
6175
6176
Benny Prijonof63a2552007-02-01 00:36:52 +00006177if test "${ac_cv_header_netinet_ip_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00006178 { echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
6179echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6; }
Benny Prijonof63a2552007-02-01 00:36:52 +00006180if test "${ac_cv_header_netinet_ip_h+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6182fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006183{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
6184echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6; }
Benny Prijonof63a2552007-02-01 00:36:52 +00006185else
6186 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00006187{ echo "$as_me:$LINENO: checking netinet/ip.h usability" >&5
6188echo $ECHO_N "checking netinet/ip.h usability... $ECHO_C" >&6; }
Benny Prijonof63a2552007-02-01 00:36:52 +00006189cat >conftest.$ac_ext <<_ACEOF
6190/* confdefs.h. */
6191_ACEOF
6192cat confdefs.h >>conftest.$ac_ext
6193cat >>conftest.$ac_ext <<_ACEOF
6194/* end confdefs.h. */
6195$ac_includes_default
6196#include <netinet/ip.h>
6197_ACEOF
6198rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00006199if { (ac_try="$ac_compile"
6200case "(($ac_try" in
6201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202 *) ac_try_echo=$ac_try;;
6203esac
6204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6205 (eval "$ac_compile") 2>conftest.er1
Benny Prijonof63a2552007-02-01 00:36:52 +00006206 ac_status=$?
6207 grep -v '^ *+' conftest.er1 >conftest.err
6208 rm -f conftest.er1
6209 cat conftest.err >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00006211 (exit $ac_status); } && {
6212 test -z "$ac_c_werror_flag" ||
6213 test ! -s conftest.err
6214 } && test -s conftest.$ac_objext; then
Benny Prijonof63a2552007-02-01 00:36:52 +00006215 ac_header_compiler=yes
6216else
6217 echo "$as_me: failed program was:" >&5
6218sed 's/^/| /' conftest.$ac_ext >&5
6219
Benny Prijonofdafd402008-01-23 14:34:46 +00006220 ac_header_compiler=no
Benny Prijonof63a2552007-02-01 00:36:52 +00006221fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006222
6223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6224{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6225echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijonof63a2552007-02-01 00:36:52 +00006226
6227# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00006228{ echo "$as_me:$LINENO: checking netinet/ip.h presence" >&5
6229echo $ECHO_N "checking netinet/ip.h presence... $ECHO_C" >&6; }
Benny Prijonof63a2552007-02-01 00:36:52 +00006230cat >conftest.$ac_ext <<_ACEOF
6231/* confdefs.h. */
6232_ACEOF
6233cat confdefs.h >>conftest.$ac_ext
6234cat >>conftest.$ac_ext <<_ACEOF
6235/* end confdefs.h. */
6236#include <netinet/ip.h>
6237_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00006238if { (ac_try="$ac_cpp conftest.$ac_ext"
6239case "(($ac_try" in
6240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6241 *) ac_try_echo=$ac_try;;
6242esac
6243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijonof63a2552007-02-01 00:36:52 +00006245 ac_status=$?
6246 grep -v '^ *+' conftest.er1 >conftest.err
6247 rm -f conftest.er1
6248 cat conftest.err >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00006250 (exit $ac_status); } >/dev/null && {
6251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6252 test ! -s conftest.err
6253 }; then
Benny Prijonof63a2552007-02-01 00:36:52 +00006254 ac_header_preproc=yes
6255else
6256 echo "$as_me: failed program was:" >&5
6257sed 's/^/| /' conftest.$ac_ext >&5
6258
6259 ac_header_preproc=no
6260fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006261
Benny Prijonof63a2552007-02-01 00:36:52 +00006262rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00006263{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6264echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonof63a2552007-02-01 00:36:52 +00006265
6266# So? What about this header?
6267case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6268 yes:no: )
6269 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&5
6270echo "$as_me: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6271 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the compiler's result" >&5
6272echo "$as_me: WARNING: netinet/ip.h: proceeding with the compiler's result" >&2;}
6273 ac_header_preproc=yes
6274 ;;
6275 no:yes:* )
6276 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: present but cannot be compiled" >&5
6277echo "$as_me: WARNING: netinet/ip.h: present but cannot be compiled" >&2;}
6278 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&5
6279echo "$as_me: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&2;}
6280 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: see the Autoconf documentation" >&5
6281echo "$as_me: WARNING: netinet/ip.h: see the Autoconf documentation" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&5
6283echo "$as_me: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&2;}
6284 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&5
6285echo "$as_me: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&2;}
6286 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&5
6287echo "$as_me: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00006288
Benny Prijonof63a2552007-02-01 00:36:52 +00006289 ;;
6290esac
Benny Prijonofdafd402008-01-23 14:34:46 +00006291{ echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
6292echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6; }
Benny Prijonof63a2552007-02-01 00:36:52 +00006293if test "${ac_cv_header_netinet_ip_h+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6295else
6296 ac_cv_header_netinet_ip_h=$ac_header_preproc
6297fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006298{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
6299echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6; }
Benny Prijonof63a2552007-02-01 00:36:52 +00006300
6301fi
6302if test $ac_cv_header_netinet_ip_h = yes; then
6303 cat >>confdefs.h <<\_ACEOF
6304#define PJ_HAS_NETINET_IP_H 1
6305_ACEOF
6306
6307fi
6308
6309
Benny Prijono0ae59ae2007-11-17 10:27:34 +00006310if test "${ac_cv_header_net_if_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00006311 { echo "$as_me:$LINENO: checking for net/if.h" >&5
6312echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; }
Benny Prijono0ae59ae2007-11-17 10:27:34 +00006313if test "${ac_cv_header_net_if_h+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006316{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
6317echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; }
Benny Prijono0ae59ae2007-11-17 10:27:34 +00006318else
6319 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00006320{ echo "$as_me:$LINENO: checking net/if.h usability" >&5
6321echo $ECHO_N "checking net/if.h usability... $ECHO_C" >&6; }
Benny Prijono0ae59ae2007-11-17 10:27:34 +00006322cat >conftest.$ac_ext <<_ACEOF
6323/* confdefs.h. */
6324_ACEOF
6325cat confdefs.h >>conftest.$ac_ext
6326cat >>conftest.$ac_ext <<_ACEOF
6327/* end confdefs.h. */
6328$ac_includes_default
6329#include <net/if.h>
6330_ACEOF
6331rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00006332if { (ac_try="$ac_compile"
6333case "(($ac_try" in
6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335 *) ac_try_echo=$ac_try;;
6336esac
6337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338 (eval "$ac_compile") 2>conftest.er1
Benny Prijono0ae59ae2007-11-17 10:27:34 +00006339 ac_status=$?
6340 grep -v '^ *+' conftest.er1 >conftest.err
6341 rm -f conftest.er1
6342 cat conftest.err >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00006344 (exit $ac_status); } && {
6345 test -z "$ac_c_werror_flag" ||
6346 test ! -s conftest.err
6347 } && test -s conftest.$ac_objext; then
Benny Prijono0ae59ae2007-11-17 10:27:34 +00006348 ac_header_compiler=yes
6349else
6350 echo "$as_me: failed program was:" >&5
6351sed 's/^/| /' conftest.$ac_ext >&5
6352
Benny Prijonofdafd402008-01-23 14:34:46 +00006353 ac_header_compiler=no
Benny Prijono0ae59ae2007-11-17 10:27:34 +00006354fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006355
6356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6358echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono0ae59ae2007-11-17 10:27:34 +00006359
6360# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00006361{ echo "$as_me:$LINENO: checking net/if.h presence" >&5
6362echo $ECHO_N "checking net/if.h presence... $ECHO_C" >&6; }
Benny Prijono0ae59ae2007-11-17 10:27:34 +00006363cat >conftest.$ac_ext <<_ACEOF
6364/* confdefs.h. */
6365_ACEOF
6366cat confdefs.h >>conftest.$ac_ext
6367cat >>conftest.$ac_ext <<_ACEOF
6368/* end confdefs.h. */
6369#include <net/if.h>
6370_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00006371if { (ac_try="$ac_cpp conftest.$ac_ext"
6372case "(($ac_try" in
6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374 *) ac_try_echo=$ac_try;;
6375esac
6376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono0ae59ae2007-11-17 10:27:34 +00006378 ac_status=$?
6379 grep -v '^ *+' conftest.er1 >conftest.err
6380 rm -f conftest.er1
6381 cat conftest.err >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00006383 (exit $ac_status); } >/dev/null && {
6384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6385 test ! -s conftest.err
6386 }; then
Benny Prijono0ae59ae2007-11-17 10:27:34 +00006387 ac_header_preproc=yes
6388else
6389 echo "$as_me: failed program was:" >&5
6390sed 's/^/| /' conftest.$ac_ext >&5
6391
6392 ac_header_preproc=no
6393fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006394
Benny Prijono0ae59ae2007-11-17 10:27:34 +00006395rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00006396{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6397echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono0ae59ae2007-11-17 10:27:34 +00006398
6399# So? What about this header?
6400case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6401 yes:no: )
6402 { echo "$as_me:$LINENO: WARNING: net/if.h: accepted by the compiler, rejected by the preprocessor!" >&5
6403echo "$as_me: WARNING: net/if.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6404 { echo "$as_me:$LINENO: WARNING: net/if.h: proceeding with the compiler's result" >&5
6405echo "$as_me: WARNING: net/if.h: proceeding with the compiler's result" >&2;}
6406 ac_header_preproc=yes
6407 ;;
6408 no:yes:* )
6409 { echo "$as_me:$LINENO: WARNING: net/if.h: present but cannot be compiled" >&5
6410echo "$as_me: WARNING: net/if.h: present but cannot be compiled" >&2;}
6411 { echo "$as_me:$LINENO: WARNING: net/if.h: check for missing prerequisite headers?" >&5
6412echo "$as_me: WARNING: net/if.h: check for missing prerequisite headers?" >&2;}
6413 { echo "$as_me:$LINENO: WARNING: net/if.h: see the Autoconf documentation" >&5
6414echo "$as_me: WARNING: net/if.h: see the Autoconf documentation" >&2;}
6415 { echo "$as_me:$LINENO: WARNING: net/if.h: section \"Present But Cannot Be Compiled\"" >&5
6416echo "$as_me: WARNING: net/if.h: section \"Present But Cannot Be Compiled\"" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: net/if.h: proceeding with the preprocessor's result" >&5
6418echo "$as_me: WARNING: net/if.h: proceeding with the preprocessor's result" >&2;}
6419 { echo "$as_me:$LINENO: WARNING: net/if.h: in the future, the compiler will take precedence" >&5
6420echo "$as_me: WARNING: net/if.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00006421
Benny Prijono0ae59ae2007-11-17 10:27:34 +00006422 ;;
6423esac
Benny Prijonofdafd402008-01-23 14:34:46 +00006424{ echo "$as_me:$LINENO: checking for net/if.h" >&5
6425echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; }
Benny Prijono0ae59ae2007-11-17 10:27:34 +00006426if test "${ac_cv_header_net_if_h+set}" = set; then
6427 echo $ECHO_N "(cached) $ECHO_C" >&6
6428else
6429 ac_cv_header_net_if_h=$ac_header_preproc
6430fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006431{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
6432echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; }
Benny Prijono0ae59ae2007-11-17 10:27:34 +00006433
6434fi
6435if test $ac_cv_header_net_if_h = yes; then
6436 cat >>confdefs.h <<\_ACEOF
6437#define PJ_HAS_NET_IF_H 1
6438_ACEOF
6439
6440fi
6441
6442
Benny Prijono1d65f702007-12-03 04:03:17 +00006443if test "${ac_cv_header_ifaddrs_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00006444 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
6445echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006446if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6448fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006449{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
6450echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006451else
6452 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00006453{ echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
6454echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006455cat >conftest.$ac_ext <<_ACEOF
6456/* confdefs.h. */
6457_ACEOF
6458cat confdefs.h >>conftest.$ac_ext
6459cat >>conftest.$ac_ext <<_ACEOF
6460/* end confdefs.h. */
6461$ac_includes_default
6462#include <ifaddrs.h>
6463_ACEOF
6464rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00006465if { (ac_try="$ac_compile"
6466case "(($ac_try" in
6467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6468 *) ac_try_echo=$ac_try;;
6469esac
6470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6471 (eval "$ac_compile") 2>conftest.er1
Benny Prijono1d65f702007-12-03 04:03:17 +00006472 ac_status=$?
6473 grep -v '^ *+' conftest.er1 >conftest.err
6474 rm -f conftest.er1
6475 cat conftest.err >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00006477 (exit $ac_status); } && {
6478 test -z "$ac_c_werror_flag" ||
6479 test ! -s conftest.err
6480 } && test -s conftest.$ac_objext; then
Benny Prijono1d65f702007-12-03 04:03:17 +00006481 ac_header_compiler=yes
6482else
6483 echo "$as_me: failed program was:" >&5
6484sed 's/^/| /' conftest.$ac_ext >&5
6485
Benny Prijonofdafd402008-01-23 14:34:46 +00006486 ac_header_compiler=no
Benny Prijono1d65f702007-12-03 04:03:17 +00006487fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006488
6489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6490{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6491echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006492
6493# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00006494{ echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
6495echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006496cat >conftest.$ac_ext <<_ACEOF
6497/* confdefs.h. */
6498_ACEOF
6499cat confdefs.h >>conftest.$ac_ext
6500cat >>conftest.$ac_ext <<_ACEOF
6501/* end confdefs.h. */
6502#include <ifaddrs.h>
6503_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00006504if { (ac_try="$ac_cpp conftest.$ac_ext"
6505case "(($ac_try" in
6506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6507 *) ac_try_echo=$ac_try;;
6508esac
6509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono1d65f702007-12-03 04:03:17 +00006511 ac_status=$?
6512 grep -v '^ *+' conftest.er1 >conftest.err
6513 rm -f conftest.er1
6514 cat conftest.err >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00006516 (exit $ac_status); } >/dev/null && {
6517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6518 test ! -s conftest.err
6519 }; then
Benny Prijono1d65f702007-12-03 04:03:17 +00006520 ac_header_preproc=yes
6521else
6522 echo "$as_me: failed program was:" >&5
6523sed 's/^/| /' conftest.$ac_ext >&5
6524
6525 ac_header_preproc=no
6526fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006527
Benny Prijono1d65f702007-12-03 04:03:17 +00006528rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00006529{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6530echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006531
6532# So? What about this header?
6533case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6534 yes:no: )
6535 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
6536echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6537 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
6538echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
6539 ac_header_preproc=yes
6540 ;;
6541 no:yes:* )
6542 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
6543echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
6544 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
6545echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
6546 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
6547echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
6548 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
6549echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
6550 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
6551echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
6552 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
6553echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00006554
Benny Prijono1d65f702007-12-03 04:03:17 +00006555 ;;
6556esac
Benny Prijonofdafd402008-01-23 14:34:46 +00006557{ echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
6558echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006559if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6561else
6562 ac_cv_header_ifaddrs_h=$ac_header_preproc
6563fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006564{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
6565echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
Benny Prijono1d65f702007-12-03 04:03:17 +00006566
6567fi
6568if test $ac_cv_header_ifaddrs_h = yes; then
6569 cat >>confdefs.h <<\_ACEOF
6570#define PJ_HAS_IFADDRS_H 1
6571_ACEOF
6572
6573fi
6574
6575
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006576if test "${ac_cv_header_setjmp_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00006577 { echo "$as_me:$LINENO: checking for setjmp.h" >&5
6578echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006579if test "${ac_cv_header_setjmp_h+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6581fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006582{ echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
6583echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006584else
6585 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00006586{ echo "$as_me:$LINENO: checking setjmp.h usability" >&5
6587echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006588cat >conftest.$ac_ext <<_ACEOF
6589/* confdefs.h. */
6590_ACEOF
6591cat confdefs.h >>conftest.$ac_ext
6592cat >>conftest.$ac_ext <<_ACEOF
6593/* end confdefs.h. */
6594$ac_includes_default
6595#include <setjmp.h>
6596_ACEOF
6597rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00006598if { (ac_try="$ac_compile"
6599case "(($ac_try" in
6600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601 *) ac_try_echo=$ac_try;;
6602esac
6603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6604 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006605 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006606 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006607 rm -f conftest.er1
6608 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00006610 (exit $ac_status); } && {
6611 test -z "$ac_c_werror_flag" ||
6612 test ! -s conftest.err
6613 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006614 ac_header_compiler=yes
6615else
6616 echo "$as_me: failed program was:" >&5
6617sed 's/^/| /' conftest.$ac_ext >&5
6618
Benny Prijonofdafd402008-01-23 14:34:46 +00006619 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006620fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006621
6622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6624echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006625
6626# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00006627{ echo "$as_me:$LINENO: checking setjmp.h presence" >&5
6628echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006629cat >conftest.$ac_ext <<_ACEOF
6630/* confdefs.h. */
6631_ACEOF
6632cat confdefs.h >>conftest.$ac_ext
6633cat >>conftest.$ac_ext <<_ACEOF
6634/* end confdefs.h. */
6635#include <setjmp.h>
6636_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00006637if { (ac_try="$ac_cpp conftest.$ac_ext"
6638case "(($ac_try" in
6639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6640 *) ac_try_echo=$ac_try;;
6641esac
6642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006644 ac_status=$?
6645 grep -v '^ *+' conftest.er1 >conftest.err
6646 rm -f conftest.er1
6647 cat conftest.err >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00006649 (exit $ac_status); } >/dev/null && {
6650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6651 test ! -s conftest.err
6652 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006653 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006654else
6655 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006656sed 's/^/| /' conftest.$ac_ext >&5
6657
6658 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006659fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006660
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006661rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00006662{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6663echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006664
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006665# So? What about this header?
6666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6667 yes:no: )
6668 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
6669echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6670 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5
6671echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;}
6672 ac_header_preproc=yes
6673 ;;
6674 no:yes:* )
6675 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5
6676echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;}
6677 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5
6678echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;}
6679 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5
6680echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;}
6681 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5
6682echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
6683 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5
6684echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;}
6685 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5
6686echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00006687
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006688 ;;
6689esac
Benny Prijonofdafd402008-01-23 14:34:46 +00006690{ echo "$as_me:$LINENO: checking for setjmp.h" >&5
6691echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006692if test "${ac_cv_header_setjmp_h+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006694else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006695 ac_cv_header_setjmp_h=$ac_header_preproc
6696fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006697{ echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
6698echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006699
6700fi
6701if test $ac_cv_header_setjmp_h = yes; then
6702 cat >>confdefs.h <<\_ACEOF
6703#define PJ_HAS_SETJMP_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006704_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006705
6706fi
6707
6708
6709if test "${ac_cv_header_stdarg_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00006710 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
6711echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006712if test "${ac_cv_header_stdarg_h+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6714fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006715{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6716echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006717else
6718 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00006719{ echo "$as_me:$LINENO: checking stdarg.h usability" >&5
6720echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006721cat >conftest.$ac_ext <<_ACEOF
6722/* confdefs.h. */
6723_ACEOF
6724cat confdefs.h >>conftest.$ac_ext
6725cat >>conftest.$ac_ext <<_ACEOF
6726/* end confdefs.h. */
6727$ac_includes_default
6728#include <stdarg.h>
6729_ACEOF
6730rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00006731if { (ac_try="$ac_compile"
6732case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735esac
6736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006738 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006739 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006740 rm -f conftest.er1
6741 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00006743 (exit $ac_status); } && {
6744 test -z "$ac_c_werror_flag" ||
6745 test ! -s conftest.err
6746 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006747 ac_header_compiler=yes
6748else
6749 echo "$as_me: failed program was:" >&5
6750sed 's/^/| /' conftest.$ac_ext >&5
6751
Benny Prijonofdafd402008-01-23 14:34:46 +00006752 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006753fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006754
6755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6757echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006758
6759# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00006760{ echo "$as_me:$LINENO: checking stdarg.h presence" >&5
6761echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006762cat >conftest.$ac_ext <<_ACEOF
6763/* confdefs.h. */
6764_ACEOF
6765cat confdefs.h >>conftest.$ac_ext
6766cat >>conftest.$ac_ext <<_ACEOF
6767/* end confdefs.h. */
6768#include <stdarg.h>
6769_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00006770if { (ac_try="$ac_cpp conftest.$ac_ext"
6771case "(($ac_try" in
6772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6774esac
6775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006777 ac_status=$?
6778 grep -v '^ *+' conftest.er1 >conftest.err
6779 rm -f conftest.er1
6780 cat conftest.err >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00006782 (exit $ac_status); } >/dev/null && {
6783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6784 test ! -s conftest.err
6785 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006786 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006787else
6788 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006789sed 's/^/| /' conftest.$ac_ext >&5
6790
6791 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006792fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006793
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006794rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00006795{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6796echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006797
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006798# So? What about this header?
6799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6800 yes:no: )
6801 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
6802echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6803 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
6804echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
6805 ac_header_preproc=yes
6806 ;;
6807 no:yes:* )
6808 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
6809echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
6810 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
6811echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
6812 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
6813echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
6814 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
6815echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
6816 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
6817echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
6818 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
6819echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00006820
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006821 ;;
6822esac
Benny Prijonofdafd402008-01-23 14:34:46 +00006823{ echo "$as_me:$LINENO: checking for stdarg.h" >&5
6824echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006825if test "${ac_cv_header_stdarg_h+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006827else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006828 ac_cv_header_stdarg_h=$ac_header_preproc
6829fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006830{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6831echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006832
6833fi
6834if test $ac_cv_header_stdarg_h = yes; then
6835 cat >>confdefs.h <<\_ACEOF
6836#define PJ_HAS_STDARG_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006837_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006838
6839fi
6840
6841
6842if test "${ac_cv_header_stddef_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00006843 { echo "$as_me:$LINENO: checking for stddef.h" >&5
6844echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006845if test "${ac_cv_header_stddef_h+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006848{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
6849echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006850else
6851 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00006852{ echo "$as_me:$LINENO: checking stddef.h usability" >&5
6853echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006854cat >conftest.$ac_ext <<_ACEOF
6855/* confdefs.h. */
6856_ACEOF
6857cat confdefs.h >>conftest.$ac_ext
6858cat >>conftest.$ac_ext <<_ACEOF
6859/* end confdefs.h. */
6860$ac_includes_default
6861#include <stddef.h>
6862_ACEOF
6863rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00006864if { (ac_try="$ac_compile"
6865case "(($ac_try" in
6866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6867 *) ac_try_echo=$ac_try;;
6868esac
6869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6870 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006871 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006872 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006873 rm -f conftest.er1
6874 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00006876 (exit $ac_status); } && {
6877 test -z "$ac_c_werror_flag" ||
6878 test ! -s conftest.err
6879 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006880 ac_header_compiler=yes
6881else
6882 echo "$as_me: failed program was:" >&5
6883sed 's/^/| /' conftest.$ac_ext >&5
6884
Benny Prijonofdafd402008-01-23 14:34:46 +00006885 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006886fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006887
6888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6889{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6890echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006891
6892# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00006893{ echo "$as_me:$LINENO: checking stddef.h presence" >&5
6894echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006895cat >conftest.$ac_ext <<_ACEOF
6896/* confdefs.h. */
6897_ACEOF
6898cat confdefs.h >>conftest.$ac_ext
6899cat >>conftest.$ac_ext <<_ACEOF
6900/* end confdefs.h. */
6901#include <stddef.h>
6902_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00006903if { (ac_try="$ac_cpp conftest.$ac_ext"
6904case "(($ac_try" in
6905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6906 *) ac_try_echo=$ac_try;;
6907esac
6908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006910 ac_status=$?
6911 grep -v '^ *+' conftest.er1 >conftest.err
6912 rm -f conftest.er1
6913 cat conftest.err >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00006915 (exit $ac_status); } >/dev/null && {
6916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6917 test ! -s conftest.err
6918 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006919 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006920else
6921 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006922sed 's/^/| /' conftest.$ac_ext >&5
6923
6924 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006925fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006926
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006927rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00006928{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6929echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006930
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006931# So? What about this header?
6932case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6933 yes:no: )
6934 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
6935echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6936 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
6937echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
6938 ac_header_preproc=yes
6939 ;;
6940 no:yes:* )
6941 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
6942echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
6943 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
6944echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
6945 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
6946echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
6947 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
6948echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
6949 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
6950echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
6951 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
6952echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00006953
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006954 ;;
6955esac
Benny Prijonofdafd402008-01-23 14:34:46 +00006956{ echo "$as_me:$LINENO: checking for stddef.h" >&5
6957echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006958if test "${ac_cv_header_stddef_h+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006960else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006961 ac_cv_header_stddef_h=$ac_header_preproc
6962fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006963{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
6964echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006965
6966fi
6967if test $ac_cv_header_stddef_h = yes; then
6968 cat >>confdefs.h <<\_ACEOF
6969#define PJ_HAS_STDDEF_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006970_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006971
6972fi
6973
6974
6975if test "${ac_cv_header_stdio_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00006976 { echo "$as_me:$LINENO: checking for stdio.h" >&5
6977echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006978if test "${ac_cv_header_stdio_h+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6980fi
Benny Prijonofdafd402008-01-23 14:34:46 +00006981{ echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
6982echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006983else
6984 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00006985{ echo "$as_me:$LINENO: checking stdio.h usability" >&5
6986echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006987cat >conftest.$ac_ext <<_ACEOF
6988/* confdefs.h. */
6989_ACEOF
6990cat confdefs.h >>conftest.$ac_ext
6991cat >>conftest.$ac_ext <<_ACEOF
6992/* end confdefs.h. */
6993$ac_includes_default
6994#include <stdio.h>
6995_ACEOF
6996rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00006997if { (ac_try="$ac_compile"
6998case "(($ac_try" in
6999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7000 *) ac_try_echo=$ac_try;;
7001esac
7002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7003 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007004 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007005 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007006 rm -f conftest.er1
7007 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00007009 (exit $ac_status); } && {
7010 test -z "$ac_c_werror_flag" ||
7011 test ! -s conftest.err
7012 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007013 ac_header_compiler=yes
7014else
7015 echo "$as_me: failed program was:" >&5
7016sed 's/^/| /' conftest.$ac_ext >&5
7017
Benny Prijonofdafd402008-01-23 14:34:46 +00007018 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007019fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007020
7021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7022{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7023echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007024
7025# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00007026{ echo "$as_me:$LINENO: checking stdio.h presence" >&5
7027echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007028cat >conftest.$ac_ext <<_ACEOF
7029/* confdefs.h. */
7030_ACEOF
7031cat confdefs.h >>conftest.$ac_ext
7032cat >>conftest.$ac_ext <<_ACEOF
7033/* end confdefs.h. */
7034#include <stdio.h>
7035_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00007036if { (ac_try="$ac_cpp conftest.$ac_ext"
7037case "(($ac_try" in
7038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7039 *) ac_try_echo=$ac_try;;
7040esac
7041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007043 ac_status=$?
7044 grep -v '^ *+' conftest.er1 >conftest.err
7045 rm -f conftest.er1
7046 cat conftest.err >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00007048 (exit $ac_status); } >/dev/null && {
7049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7050 test ! -s conftest.err
7051 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007052 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007053else
7054 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007055sed 's/^/| /' conftest.$ac_ext >&5
7056
7057 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007058fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007059
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007060rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00007061{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7062echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007063
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007064# So? What about this header?
7065case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7066 yes:no: )
7067 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
7068echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7069 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
7070echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
7071 ac_header_preproc=yes
7072 ;;
7073 no:yes:* )
7074 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
7075echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
7076 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
7077echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
7078 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
7079echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
7080 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
7081echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
7082 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
7083echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
7084 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
7085echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00007086
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007087 ;;
7088esac
Benny Prijonofdafd402008-01-23 14:34:46 +00007089{ echo "$as_me:$LINENO: checking for stdio.h" >&5
7090echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007091if test "${ac_cv_header_stdio_h+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007093else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007094 ac_cv_header_stdio_h=$ac_header_preproc
7095fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007096{ echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
7097echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007098
7099fi
7100if test $ac_cv_header_stdio_h = yes; then
7101 cat >>confdefs.h <<\_ACEOF
7102#define PJ_HAS_STDIO_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007103_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007104
7105fi
7106
7107
Benny Prijonofdafd402008-01-23 14:34:46 +00007108if test "${ac_cv_header_stdint_h+set}" = set; then
7109 { echo "$as_me:$LINENO: checking for stdint.h" >&5
7110echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
7111if test "${ac_cv_header_stdint_h+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113fi
7114{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
7115echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
7116else
7117 # Is the header compilable?
7118{ echo "$as_me:$LINENO: checking stdint.h usability" >&5
7119echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
7120cat >conftest.$ac_ext <<_ACEOF
7121/* confdefs.h. */
7122_ACEOF
7123cat confdefs.h >>conftest.$ac_ext
7124cat >>conftest.$ac_ext <<_ACEOF
7125/* end confdefs.h. */
7126$ac_includes_default
7127#include <stdint.h>
7128_ACEOF
7129rm -f conftest.$ac_objext
7130if { (ac_try="$ac_compile"
7131case "(($ac_try" in
7132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7133 *) ac_try_echo=$ac_try;;
7134esac
7135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7136 (eval "$ac_compile") 2>conftest.er1
7137 ac_status=$?
7138 grep -v '^ *+' conftest.er1 >conftest.err
7139 rm -f conftest.er1
7140 cat conftest.err >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } && {
7143 test -z "$ac_c_werror_flag" ||
7144 test ! -s conftest.err
7145 } && test -s conftest.$ac_objext; then
7146 ac_header_compiler=yes
7147else
7148 echo "$as_me: failed program was:" >&5
7149sed 's/^/| /' conftest.$ac_ext >&5
7150
7151 ac_header_compiler=no
7152fi
7153
7154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7155{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7156echo "${ECHO_T}$ac_header_compiler" >&6; }
7157
7158# Is the header present?
7159{ echo "$as_me:$LINENO: checking stdint.h presence" >&5
7160echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
7161cat >conftest.$ac_ext <<_ACEOF
7162/* confdefs.h. */
7163_ACEOF
7164cat confdefs.h >>conftest.$ac_ext
7165cat >>conftest.$ac_ext <<_ACEOF
7166/* end confdefs.h. */
7167#include <stdint.h>
7168_ACEOF
7169if { (ac_try="$ac_cpp conftest.$ac_ext"
7170case "(($ac_try" in
7171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7172 *) ac_try_echo=$ac_try;;
7173esac
7174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7176 ac_status=$?
7177 grep -v '^ *+' conftest.er1 >conftest.err
7178 rm -f conftest.er1
7179 cat conftest.err >&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); } >/dev/null && {
7182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7183 test ! -s conftest.err
7184 }; then
7185 ac_header_preproc=yes
7186else
7187 echo "$as_me: failed program was:" >&5
7188sed 's/^/| /' conftest.$ac_ext >&5
7189
7190 ac_header_preproc=no
7191fi
7192
7193rm -f conftest.err conftest.$ac_ext
7194{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7195echo "${ECHO_T}$ac_header_preproc" >&6; }
7196
7197# So? What about this header?
7198case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7199 yes:no: )
7200 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
7201echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7202 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
7203echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
7204 ac_header_preproc=yes
7205 ;;
7206 no:yes:* )
7207 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
7208echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
7209 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
7210echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
7211 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
7212echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
7213 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
7214echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
7215 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
7216echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
7217 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
7218echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
7219
7220 ;;
7221esac
7222{ echo "$as_me:$LINENO: checking for stdint.h" >&5
7223echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
7224if test "${ac_cv_header_stdint_h+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226else
7227 ac_cv_header_stdint_h=$ac_header_preproc
7228fi
7229{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
7230echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
7231
7232fi
7233if test $ac_cv_header_stdint_h = yes; then
7234 cat >>confdefs.h <<\_ACEOF
7235#define PJ_HAS_STDINT_H 1
7236_ACEOF
7237
7238fi
7239
7240
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007241if test "${ac_cv_header_stdlib_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00007242 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
7243echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007244if test "${ac_cv_header_stdlib_h+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007247{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7248echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007249else
7250 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00007251{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5
7252echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007253cat >conftest.$ac_ext <<_ACEOF
7254/* confdefs.h. */
7255_ACEOF
7256cat confdefs.h >>conftest.$ac_ext
7257cat >>conftest.$ac_ext <<_ACEOF
7258/* end confdefs.h. */
7259$ac_includes_default
7260#include <stdlib.h>
7261_ACEOF
7262rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00007263if { (ac_try="$ac_compile"
7264case "(($ac_try" in
7265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266 *) ac_try_echo=$ac_try;;
7267esac
7268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7269 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007270 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007271 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007272 rm -f conftest.er1
7273 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00007275 (exit $ac_status); } && {
7276 test -z "$ac_c_werror_flag" ||
7277 test ! -s conftest.err
7278 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007279 ac_header_compiler=yes
7280else
7281 echo "$as_me: failed program was:" >&5
7282sed 's/^/| /' conftest.$ac_ext >&5
7283
Benny Prijonofdafd402008-01-23 14:34:46 +00007284 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007285fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007286
7287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7289echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007290
7291# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00007292{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5
7293echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007294cat >conftest.$ac_ext <<_ACEOF
7295/* confdefs.h. */
7296_ACEOF
7297cat confdefs.h >>conftest.$ac_ext
7298cat >>conftest.$ac_ext <<_ACEOF
7299/* end confdefs.h. */
7300#include <stdlib.h>
7301_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00007302if { (ac_try="$ac_cpp conftest.$ac_ext"
7303case "(($ac_try" in
7304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7305 *) ac_try_echo=$ac_try;;
7306esac
7307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007309 ac_status=$?
7310 grep -v '^ *+' conftest.er1 >conftest.err
7311 rm -f conftest.er1
7312 cat conftest.err >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00007314 (exit $ac_status); } >/dev/null && {
7315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7316 test ! -s conftest.err
7317 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007318 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007319else
7320 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007321sed 's/^/| /' conftest.$ac_ext >&5
7322
7323 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007324fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007325
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007326rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00007327{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7328echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007329
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007330# So? What about this header?
7331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7332 yes:no: )
7333 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7334echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7335 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
7336echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
7337 ac_header_preproc=yes
7338 ;;
7339 no:yes:* )
7340 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
7341echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
7342 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
7343echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
7344 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
7345echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
7346 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
7347echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
7348 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
7349echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
7350 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
7351echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00007352
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007353 ;;
7354esac
Benny Prijonofdafd402008-01-23 14:34:46 +00007355{ echo "$as_me:$LINENO: checking for stdlib.h" >&5
7356echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007357if test "${ac_cv_header_stdlib_h+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007359else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007360 ac_cv_header_stdlib_h=$ac_header_preproc
7361fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007362{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7363echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007364
7365fi
7366if test $ac_cv_header_stdlib_h = yes; then
7367 cat >>confdefs.h <<\_ACEOF
7368#define PJ_HAS_STDLIB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007369_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007370
7371fi
7372
7373
7374if test "${ac_cv_header_string_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00007375 { echo "$as_me:$LINENO: checking for string.h" >&5
7376echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007377if test "${ac_cv_header_string_h+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007380{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7381echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007382else
7383 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00007384{ echo "$as_me:$LINENO: checking string.h usability" >&5
7385echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007386cat >conftest.$ac_ext <<_ACEOF
7387/* confdefs.h. */
7388_ACEOF
7389cat confdefs.h >>conftest.$ac_ext
7390cat >>conftest.$ac_ext <<_ACEOF
7391/* end confdefs.h. */
7392$ac_includes_default
7393#include <string.h>
7394_ACEOF
7395rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00007396if { (ac_try="$ac_compile"
7397case "(($ac_try" in
7398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7399 *) ac_try_echo=$ac_try;;
7400esac
7401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7402 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007403 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007404 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007405 rm -f conftest.er1
7406 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00007408 (exit $ac_status); } && {
7409 test -z "$ac_c_werror_flag" ||
7410 test ! -s conftest.err
7411 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007412 ac_header_compiler=yes
7413else
7414 echo "$as_me: failed program was:" >&5
7415sed 's/^/| /' conftest.$ac_ext >&5
7416
Benny Prijonofdafd402008-01-23 14:34:46 +00007417 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007418fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007419
7420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7422echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007423
7424# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00007425{ echo "$as_me:$LINENO: checking string.h presence" >&5
7426echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007427cat >conftest.$ac_ext <<_ACEOF
7428/* confdefs.h. */
7429_ACEOF
7430cat confdefs.h >>conftest.$ac_ext
7431cat >>conftest.$ac_ext <<_ACEOF
7432/* end confdefs.h. */
7433#include <string.h>
7434_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00007435if { (ac_try="$ac_cpp conftest.$ac_ext"
7436case "(($ac_try" in
7437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438 *) ac_try_echo=$ac_try;;
7439esac
7440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007442 ac_status=$?
7443 grep -v '^ *+' conftest.er1 >conftest.err
7444 rm -f conftest.er1
7445 cat conftest.err >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00007447 (exit $ac_status); } >/dev/null && {
7448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7449 test ! -s conftest.err
7450 }; 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
Benny Prijonofdafd402008-01-23 14:34:46 +00007458
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007459rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00007460{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7461echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007462
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007463# So? What about this header?
7464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7465 yes:no: )
7466 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7467echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7468 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
7469echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
7470 ac_header_preproc=yes
7471 ;;
7472 no:yes:* )
7473 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
7474echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
7475 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
7476echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
7477 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
7478echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
7479 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
7480echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
7481 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7482echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7483 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
7484echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00007485
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007486 ;;
7487esac
Benny Prijonofdafd402008-01-23 14:34:46 +00007488{ echo "$as_me:$LINENO: checking for string.h" >&5
7489echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007490if test "${ac_cv_header_string_h+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007492else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007493 ac_cv_header_string_h=$ac_header_preproc
7494fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007495{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7496echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007497
7498fi
7499if test $ac_cv_header_string_h = yes; then
7500 cat >>confdefs.h <<\_ACEOF
7501#define PJ_HAS_STRING_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007502_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007503
7504fi
7505
7506
7507if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00007508 { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
7509echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007510if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7512fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007513{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
7514echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007515else
7516 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00007517{ echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5
7518echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007519cat >conftest.$ac_ext <<_ACEOF
7520/* confdefs.h. */
7521_ACEOF
7522cat confdefs.h >>conftest.$ac_ext
7523cat >>conftest.$ac_ext <<_ACEOF
7524/* end confdefs.h. */
7525$ac_includes_default
7526#include <sys/ioctl.h>
7527_ACEOF
7528rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00007529if { (ac_try="$ac_compile"
7530case "(($ac_try" in
7531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532 *) ac_try_echo=$ac_try;;
7533esac
7534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7535 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007536 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007537 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007538 rm -f conftest.er1
7539 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00007541 (exit $ac_status); } && {
7542 test -z "$ac_c_werror_flag" ||
7543 test ! -s conftest.err
7544 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007545 ac_header_compiler=yes
7546else
7547 echo "$as_me: failed program was:" >&5
7548sed 's/^/| /' conftest.$ac_ext >&5
7549
Benny Prijonofdafd402008-01-23 14:34:46 +00007550 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007551fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007552
7553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7554{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7555echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007556
7557# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00007558{ echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5
7559echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007560cat >conftest.$ac_ext <<_ACEOF
7561/* confdefs.h. */
7562_ACEOF
7563cat confdefs.h >>conftest.$ac_ext
7564cat >>conftest.$ac_ext <<_ACEOF
7565/* end confdefs.h. */
7566#include <sys/ioctl.h>
7567_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00007568if { (ac_try="$ac_cpp conftest.$ac_ext"
7569case "(($ac_try" in
7570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7572esac
7573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007575 ac_status=$?
7576 grep -v '^ *+' conftest.er1 >conftest.err
7577 rm -f conftest.er1
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00007580 (exit $ac_status); } >/dev/null && {
7581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7582 test ! -s conftest.err
7583 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007584 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007585else
7586 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007587sed 's/^/| /' conftest.$ac_ext >&5
7588
7589 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007590fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007591
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007592rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00007593{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7594echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007595
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007596# So? What about this header?
7597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7598 yes:no: )
7599 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7600echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7601 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5
7602echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;}
7603 ac_header_preproc=yes
7604 ;;
7605 no:yes:* )
7606 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5
7607echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;}
7608 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5
7609echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;}
7610 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5
7611echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;}
7612 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
7613echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7614 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5
7615echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;}
7616 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5
7617echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00007618
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007619 ;;
7620esac
Benny Prijonofdafd402008-01-23 14:34:46 +00007621{ echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
7622echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007623if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007625else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007626 ac_cv_header_sys_ioctl_h=$ac_header_preproc
7627fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007628{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
7629echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007630
7631fi
7632if test $ac_cv_header_sys_ioctl_h = yes; then
7633 cat >>confdefs.h <<\_ACEOF
7634#define PJ_HAS_SYS_IOCTL_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007635_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007636
7637fi
7638
7639
7640if test "${ac_cv_header_sys_select_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00007641 { echo "$as_me:$LINENO: checking for sys/select.h" >&5
7642echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007643if test "${ac_cv_header_sys_select_h+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7645fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007646{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
7647echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007648else
7649 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00007650{ echo "$as_me:$LINENO: checking sys/select.h usability" >&5
7651echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007652cat >conftest.$ac_ext <<_ACEOF
7653/* confdefs.h. */
7654_ACEOF
7655cat confdefs.h >>conftest.$ac_ext
7656cat >>conftest.$ac_ext <<_ACEOF
7657/* end confdefs.h. */
7658$ac_includes_default
7659#include <sys/select.h>
7660_ACEOF
7661rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00007662if { (ac_try="$ac_compile"
7663case "(($ac_try" in
7664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7665 *) ac_try_echo=$ac_try;;
7666esac
7667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7668 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007669 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007670 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007671 rm -f conftest.er1
7672 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00007674 (exit $ac_status); } && {
7675 test -z "$ac_c_werror_flag" ||
7676 test ! -s conftest.err
7677 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007678 ac_header_compiler=yes
7679else
7680 echo "$as_me: failed program was:" >&5
7681sed 's/^/| /' conftest.$ac_ext >&5
7682
Benny Prijonofdafd402008-01-23 14:34:46 +00007683 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007684fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007685
7686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7687{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7688echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007689
7690# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00007691{ echo "$as_me:$LINENO: checking sys/select.h presence" >&5
7692echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007693cat >conftest.$ac_ext <<_ACEOF
7694/* confdefs.h. */
7695_ACEOF
7696cat confdefs.h >>conftest.$ac_ext
7697cat >>conftest.$ac_ext <<_ACEOF
7698/* end confdefs.h. */
7699#include <sys/select.h>
7700_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00007701if { (ac_try="$ac_cpp conftest.$ac_ext"
7702case "(($ac_try" in
7703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7704 *) ac_try_echo=$ac_try;;
7705esac
7706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007708 ac_status=$?
7709 grep -v '^ *+' conftest.er1 >conftest.err
7710 rm -f conftest.er1
7711 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00007713 (exit $ac_status); } >/dev/null && {
7714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7715 test ! -s conftest.err
7716 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007717 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007718else
7719 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007720sed 's/^/| /' conftest.$ac_ext >&5
7721
7722 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007723fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007724
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007725rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00007726{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7727echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007728
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007729# So? What about this header?
7730case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7731 yes:no: )
7732 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
7733echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7734 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
7735echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
7736 ac_header_preproc=yes
7737 ;;
7738 no:yes:* )
7739 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
7740echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
7741 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
7742echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
7743 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
7744echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
7745 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
7746echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
7747 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
7748echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
7749 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
7750echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00007751
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007752 ;;
7753esac
Benny Prijonofdafd402008-01-23 14:34:46 +00007754{ echo "$as_me:$LINENO: checking for sys/select.h" >&5
7755echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007756if test "${ac_cv_header_sys_select_h+set}" = set; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007758else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007759 ac_cv_header_sys_select_h=$ac_header_preproc
7760fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007761{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
7762echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007763
7764fi
7765if test $ac_cv_header_sys_select_h = yes; then
7766 cat >>confdefs.h <<\_ACEOF
7767#define PJ_HAS_SYS_SELECT_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007768_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007769
7770fi
7771
7772
7773if test "${ac_cv_header_sys_socket_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00007774 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
7775echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007776if test "${ac_cv_header_sys_socket_h+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7778fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007779{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
7780echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007781else
7782 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00007783{ echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
7784echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007785cat >conftest.$ac_ext <<_ACEOF
7786/* confdefs.h. */
7787_ACEOF
7788cat confdefs.h >>conftest.$ac_ext
7789cat >>conftest.$ac_ext <<_ACEOF
7790/* end confdefs.h. */
7791$ac_includes_default
7792#include <sys/socket.h>
7793_ACEOF
7794rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00007795if { (ac_try="$ac_compile"
7796case "(($ac_try" in
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7799esac
7800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007802 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007803 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007804 rm -f conftest.er1
7805 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00007807 (exit $ac_status); } && {
7808 test -z "$ac_c_werror_flag" ||
7809 test ! -s conftest.err
7810 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007811 ac_header_compiler=yes
7812else
7813 echo "$as_me: failed program was:" >&5
7814sed 's/^/| /' conftest.$ac_ext >&5
7815
Benny Prijonofdafd402008-01-23 14:34:46 +00007816 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007817fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007818
7819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7821echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007822
7823# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00007824{ echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
7825echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007826cat >conftest.$ac_ext <<_ACEOF
7827/* confdefs.h. */
7828_ACEOF
7829cat confdefs.h >>conftest.$ac_ext
7830cat >>conftest.$ac_ext <<_ACEOF
7831/* end confdefs.h. */
7832#include <sys/socket.h>
7833_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00007834if { (ac_try="$ac_cpp conftest.$ac_ext"
7835case "(($ac_try" in
7836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837 *) ac_try_echo=$ac_try;;
7838esac
7839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007841 ac_status=$?
7842 grep -v '^ *+' conftest.er1 >conftest.err
7843 rm -f conftest.er1
7844 cat conftest.err >&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00007846 (exit $ac_status); } >/dev/null && {
7847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7848 test ! -s conftest.err
7849 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007850 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007851else
7852 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007853sed 's/^/| /' conftest.$ac_ext >&5
7854
7855 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007856fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007857
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007858rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00007859{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7860echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007861
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007862# So? What about this header?
7863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7864 yes:no: )
7865 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
7866echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7867 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
7868echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
7869 ac_header_preproc=yes
7870 ;;
7871 no:yes:* )
7872 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
7873echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
7874 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
7875echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
7876 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
7877echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
7878 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
7879echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
7880 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
7881echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
7882 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
7883echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00007884
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007885 ;;
7886esac
Benny Prijonofdafd402008-01-23 14:34:46 +00007887{ echo "$as_me:$LINENO: checking for sys/socket.h" >&5
7888echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007889if test "${ac_cv_header_sys_socket_h+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007891else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007892 ac_cv_header_sys_socket_h=$ac_header_preproc
7893fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007894{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
7895echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007896
7897fi
7898if test $ac_cv_header_sys_socket_h = yes; then
7899 cat >>confdefs.h <<\_ACEOF
7900#define PJ_HAS_SYS_SOCKET_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007901_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007902
7903fi
7904
7905
7906if test "${ac_cv_header_sys_time_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00007907 { echo "$as_me:$LINENO: checking for sys/time.h" >&5
7908echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007909if test "${ac_cv_header_sys_time_h+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007912{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
7913echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007914else
7915 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00007916{ echo "$as_me:$LINENO: checking sys/time.h usability" >&5
7917echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007918cat >conftest.$ac_ext <<_ACEOF
7919/* confdefs.h. */
7920_ACEOF
7921cat confdefs.h >>conftest.$ac_ext
7922cat >>conftest.$ac_ext <<_ACEOF
7923/* end confdefs.h. */
7924$ac_includes_default
7925#include <sys/time.h>
7926_ACEOF
7927rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00007928if { (ac_try="$ac_compile"
7929case "(($ac_try" in
7930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7931 *) ac_try_echo=$ac_try;;
7932esac
7933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7934 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007935 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007936 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007937 rm -f conftest.er1
7938 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00007940 (exit $ac_status); } && {
7941 test -z "$ac_c_werror_flag" ||
7942 test ! -s conftest.err
7943 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007944 ac_header_compiler=yes
7945else
7946 echo "$as_me: failed program was:" >&5
7947sed 's/^/| /' conftest.$ac_ext >&5
7948
Benny Prijonofdafd402008-01-23 14:34:46 +00007949 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007950fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007951
7952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7953{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7954echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007955
7956# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00007957{ echo "$as_me:$LINENO: checking sys/time.h presence" >&5
7958echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007959cat >conftest.$ac_ext <<_ACEOF
7960/* confdefs.h. */
7961_ACEOF
7962cat confdefs.h >>conftest.$ac_ext
7963cat >>conftest.$ac_ext <<_ACEOF
7964/* end confdefs.h. */
7965#include <sys/time.h>
7966_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00007967if { (ac_try="$ac_cpp conftest.$ac_ext"
7968case "(($ac_try" in
7969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970 *) ac_try_echo=$ac_try;;
7971esac
7972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007974 ac_status=$?
7975 grep -v '^ *+' conftest.er1 >conftest.err
7976 rm -f conftest.er1
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00007979 (exit $ac_status); } >/dev/null && {
7980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7981 test ! -s conftest.err
7982 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007983 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007984else
7985 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007986sed 's/^/| /' conftest.$ac_ext >&5
7987
7988 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007989fi
Benny Prijonofdafd402008-01-23 14:34:46 +00007990
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007991rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00007992{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7993echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007994
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007995# So? What about this header?
7996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7997 yes:no: )
7998 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
7999echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8000 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
8001echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
8002 ac_header_preproc=yes
8003 ;;
8004 no:yes:* )
8005 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
8006echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
8007 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
8008echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
8009 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
8010echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
8011 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
8012echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
8013 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
8014echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
8015 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
8016echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00008017
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008018 ;;
8019esac
Benny Prijonofdafd402008-01-23 14:34:46 +00008020{ echo "$as_me:$LINENO: checking for sys/time.h" >&5
8021echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008022if test "${ac_cv_header_sys_time_h+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008024else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008025 ac_cv_header_sys_time_h=$ac_header_preproc
8026fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008027{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
8028echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008029
8030fi
8031if test $ac_cv_header_sys_time_h = yes; then
8032 cat >>confdefs.h <<\_ACEOF
8033#define PJ_HAS_SYS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008034_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008035
8036fi
8037
8038
8039if test "${ac_cv_header_sys_timeb_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00008040 { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
8041echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008042if test "${ac_cv_header_sys_timeb_h+set}" = set; then
8043 echo $ECHO_N "(cached) $ECHO_C" >&6
8044fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008045{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
8046echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008047else
8048 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00008049{ echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5
8050echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008051cat >conftest.$ac_ext <<_ACEOF
8052/* confdefs.h. */
8053_ACEOF
8054cat confdefs.h >>conftest.$ac_ext
8055cat >>conftest.$ac_ext <<_ACEOF
8056/* end confdefs.h. */
8057$ac_includes_default
8058#include <sys/timeb.h>
8059_ACEOF
8060rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00008061if { (ac_try="$ac_compile"
8062case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8065esac
8066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008068 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008069 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008070 rm -f conftest.er1
8071 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00008073 (exit $ac_status); } && {
8074 test -z "$ac_c_werror_flag" ||
8075 test ! -s conftest.err
8076 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008077 ac_header_compiler=yes
8078else
8079 echo "$as_me: failed program was:" >&5
8080sed 's/^/| /' conftest.$ac_ext >&5
8081
Benny Prijonofdafd402008-01-23 14:34:46 +00008082 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008083fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008084
8085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8087echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008088
8089# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00008090{ echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5
8091echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008092cat >conftest.$ac_ext <<_ACEOF
8093/* confdefs.h. */
8094_ACEOF
8095cat confdefs.h >>conftest.$ac_ext
8096cat >>conftest.$ac_ext <<_ACEOF
8097/* end confdefs.h. */
8098#include <sys/timeb.h>
8099_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00008100if { (ac_try="$ac_cpp conftest.$ac_ext"
8101case "(($ac_try" in
8102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8103 *) ac_try_echo=$ac_try;;
8104esac
8105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008107 ac_status=$?
8108 grep -v '^ *+' conftest.er1 >conftest.err
8109 rm -f conftest.er1
8110 cat conftest.err >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00008112 (exit $ac_status); } >/dev/null && {
8113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8114 test ! -s conftest.err
8115 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008116 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008117else
8118 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008119sed 's/^/| /' conftest.$ac_ext >&5
8120
8121 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008122fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008123
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008124rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00008125{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8126echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008127
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008128# So? What about this header?
8129case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8130 yes:no: )
8131 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8132echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8133 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5
8134echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;}
8135 ac_header_preproc=yes
8136 ;;
8137 no:yes:* )
8138 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5
8139echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;}
8140 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5
8141echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;}
8142 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5
8143echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;}
8144 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5
8145echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;}
8146 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5
8147echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;}
8148 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5
8149echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00008150
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008151 ;;
8152esac
Benny Prijonofdafd402008-01-23 14:34:46 +00008153{ echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
8154echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008155if test "${ac_cv_header_sys_timeb_h+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008157else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008158 ac_cv_header_sys_timeb_h=$ac_header_preproc
8159fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008160{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
8161echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008162
8163fi
8164if test $ac_cv_header_sys_timeb_h = yes; then
8165 cat >>confdefs.h <<\_ACEOF
8166#define PJ_HAS_SYS_TIMEB_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008167_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008168
8169fi
8170
8171
8172if test "${ac_cv_header_sys_types_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00008173 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
8174echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008175if test "${ac_cv_header_sys_types_h+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8177fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008178{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
8179echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008180else
8181 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00008182{ echo "$as_me:$LINENO: checking sys/types.h usability" >&5
8183echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008184cat >conftest.$ac_ext <<_ACEOF
8185/* confdefs.h. */
8186_ACEOF
8187cat confdefs.h >>conftest.$ac_ext
8188cat >>conftest.$ac_ext <<_ACEOF
8189/* end confdefs.h. */
8190$ac_includes_default
8191#include <sys/types.h>
8192_ACEOF
8193rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00008194if { (ac_try="$ac_compile"
8195case "(($ac_try" in
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8198esac
8199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008201 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008202 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008203 rm -f conftest.er1
8204 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00008206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008210 ac_header_compiler=yes
8211else
8212 echo "$as_me: failed program was:" >&5
8213sed 's/^/| /' conftest.$ac_ext >&5
8214
Benny Prijonofdafd402008-01-23 14:34:46 +00008215 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008216fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008217
8218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8220echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008221
8222# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00008223{ echo "$as_me:$LINENO: checking sys/types.h presence" >&5
8224echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008225cat >conftest.$ac_ext <<_ACEOF
8226/* confdefs.h. */
8227_ACEOF
8228cat confdefs.h >>conftest.$ac_ext
8229cat >>conftest.$ac_ext <<_ACEOF
8230/* end confdefs.h. */
8231#include <sys/types.h>
8232_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00008233if { (ac_try="$ac_cpp conftest.$ac_ext"
8234case "(($ac_try" in
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8237esac
8238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008240 ac_status=$?
8241 grep -v '^ *+' conftest.er1 >conftest.err
8242 rm -f conftest.er1
8243 cat conftest.err >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00008245 (exit $ac_status); } >/dev/null && {
8246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8247 test ! -s conftest.err
8248 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008249 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008250else
8251 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008252sed 's/^/| /' conftest.$ac_ext >&5
8253
8254 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008255fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008256
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008257rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00008258{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8259echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008260
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008261# So? What about this header?
8262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8263 yes:no: )
8264 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
8265echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8266 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
8267echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
8268 ac_header_preproc=yes
8269 ;;
8270 no:yes:* )
8271 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
8272echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
8273 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
8274echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
8275 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
8276echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
8277 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
8278echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
8279 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
8280echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
8281 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
8282echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00008283
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008284 ;;
8285esac
Benny Prijonofdafd402008-01-23 14:34:46 +00008286{ echo "$as_me:$LINENO: checking for sys/types.h" >&5
8287echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008288if test "${ac_cv_header_sys_types_h+set}" = set; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008290else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008291 ac_cv_header_sys_types_h=$ac_header_preproc
8292fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008293{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
8294echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008295
8296fi
8297if test $ac_cv_header_sys_types_h = yes; then
8298 cat >>confdefs.h <<\_ACEOF
8299#define PJ_HAS_SYS_TYPES_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008300_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008301
8302fi
8303
8304
8305if test "${ac_cv_header_time_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00008306 { echo "$as_me:$LINENO: checking for time.h" >&5
8307echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008308if test "${ac_cv_header_time_h+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8310fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008311{ echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
8312echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008313else
8314 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00008315{ echo "$as_me:$LINENO: checking time.h usability" >&5
8316echo $ECHO_N "checking time.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008317cat >conftest.$ac_ext <<_ACEOF
8318/* confdefs.h. */
8319_ACEOF
8320cat confdefs.h >>conftest.$ac_ext
8321cat >>conftest.$ac_ext <<_ACEOF
8322/* end confdefs.h. */
8323$ac_includes_default
8324#include <time.h>
8325_ACEOF
8326rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00008327if { (ac_try="$ac_compile"
8328case "(($ac_try" in
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8331esac
8332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008334 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008335 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008336 rm -f conftest.er1
8337 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00008339 (exit $ac_status); } && {
8340 test -z "$ac_c_werror_flag" ||
8341 test ! -s conftest.err
8342 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008343 ac_header_compiler=yes
8344else
8345 echo "$as_me: failed program was:" >&5
8346sed 's/^/| /' conftest.$ac_ext >&5
8347
Benny Prijonofdafd402008-01-23 14:34:46 +00008348 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008349fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008350
8351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8353echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008354
8355# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00008356{ echo "$as_me:$LINENO: checking time.h presence" >&5
8357echo $ECHO_N "checking time.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008358cat >conftest.$ac_ext <<_ACEOF
8359/* confdefs.h. */
8360_ACEOF
8361cat confdefs.h >>conftest.$ac_ext
8362cat >>conftest.$ac_ext <<_ACEOF
8363/* end confdefs.h. */
8364#include <time.h>
8365_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00008366if { (ac_try="$ac_cpp conftest.$ac_ext"
8367case "(($ac_try" in
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8370esac
8371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008373 ac_status=$?
8374 grep -v '^ *+' conftest.er1 >conftest.err
8375 rm -f conftest.er1
8376 cat conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00008378 (exit $ac_status); } >/dev/null && {
8379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8380 test ! -s conftest.err
8381 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008382 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008383else
8384 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008385sed 's/^/| /' conftest.$ac_ext >&5
8386
8387 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008388fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008389
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008390rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00008391{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8392echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008393
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008394# So? What about this header?
8395case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8396 yes:no: )
8397 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
8398echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8399 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
8400echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
8401 ac_header_preproc=yes
8402 ;;
8403 no:yes:* )
8404 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
8405echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
8406 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
8407echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
8408 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
8409echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
8410 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
8411echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
8412 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
8413echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
8414 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
8415echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00008416
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008417 ;;
8418esac
Benny Prijonofdafd402008-01-23 14:34:46 +00008419{ echo "$as_me:$LINENO: checking for time.h" >&5
8420echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008421if test "${ac_cv_header_time_h+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008423else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008424 ac_cv_header_time_h=$ac_header_preproc
8425fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008426{ echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
8427echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008428
8429fi
8430if test $ac_cv_header_time_h = yes; then
8431 cat >>confdefs.h <<\_ACEOF
8432#define PJ_HAS_TIME_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008433_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008434
8435fi
8436
8437
8438if test "${ac_cv_header_unistd_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00008439 { echo "$as_me:$LINENO: checking for unistd.h" >&5
8440echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008441if test "${ac_cv_header_unistd_h+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8443fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008444{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
8445echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008446else
8447 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00008448{ echo "$as_me:$LINENO: checking unistd.h usability" >&5
8449echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008450cat >conftest.$ac_ext <<_ACEOF
8451/* confdefs.h. */
8452_ACEOF
8453cat confdefs.h >>conftest.$ac_ext
8454cat >>conftest.$ac_ext <<_ACEOF
8455/* end confdefs.h. */
8456$ac_includes_default
8457#include <unistd.h>
8458_ACEOF
8459rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00008460if { (ac_try="$ac_compile"
8461case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8464esac
8465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008467 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008468 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008469 rm -f conftest.er1
8470 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00008472 (exit $ac_status); } && {
8473 test -z "$ac_c_werror_flag" ||
8474 test ! -s conftest.err
8475 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008476 ac_header_compiler=yes
8477else
8478 echo "$as_me: failed program was:" >&5
8479sed 's/^/| /' conftest.$ac_ext >&5
8480
Benny Prijonofdafd402008-01-23 14:34:46 +00008481 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008482fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008483
8484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8485{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8486echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008487
8488# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00008489{ echo "$as_me:$LINENO: checking unistd.h presence" >&5
8490echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008491cat >conftest.$ac_ext <<_ACEOF
8492/* confdefs.h. */
8493_ACEOF
8494cat confdefs.h >>conftest.$ac_ext
8495cat >>conftest.$ac_ext <<_ACEOF
8496/* end confdefs.h. */
8497#include <unistd.h>
8498_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00008499if { (ac_try="$ac_cpp conftest.$ac_ext"
8500case "(($ac_try" in
8501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502 *) ac_try_echo=$ac_try;;
8503esac
8504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008506 ac_status=$?
8507 grep -v '^ *+' conftest.er1 >conftest.err
8508 rm -f conftest.er1
8509 cat conftest.err >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00008511 (exit $ac_status); } >/dev/null && {
8512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8513 test ! -s conftest.err
8514 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008515 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008516else
8517 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008518sed 's/^/| /' conftest.$ac_ext >&5
8519
8520 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008521fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008522
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008523rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00008524{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8525echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008526
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008527# So? What about this header?
8528case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8529 yes:no: )
8530 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
8531echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8532 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
8533echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
8534 ac_header_preproc=yes
8535 ;;
8536 no:yes:* )
8537 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
8538echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
8539 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
8540echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
8541 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
8542echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
8543 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
8544echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
8545 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
8546echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
8547 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
8548echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00008549
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008550 ;;
8551esac
Benny Prijonofdafd402008-01-23 14:34:46 +00008552{ echo "$as_me:$LINENO: checking for unistd.h" >&5
8553echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008554if test "${ac_cv_header_unistd_h+set}" = set; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008556else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008557 ac_cv_header_unistd_h=$ac_header_preproc
8558fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008559{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
8560echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008561
8562fi
8563if test $ac_cv_header_unistd_h = yes; then
8564 cat >>confdefs.h <<\_ACEOF
8565#define PJ_HAS_UNISTD_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008566_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008567
8568fi
8569
8570
8571if test "${ac_cv_header_mswsock_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00008572 { echo "$as_me:$LINENO: checking for mswsock.h" >&5
8573echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008574if test "${ac_cv_header_mswsock_h+set}" = set; then
8575 echo $ECHO_N "(cached) $ECHO_C" >&6
8576fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008577{ echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
8578echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008579else
8580 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00008581{ echo "$as_me:$LINENO: checking mswsock.h usability" >&5
8582echo $ECHO_N "checking mswsock.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008583cat >conftest.$ac_ext <<_ACEOF
8584/* confdefs.h. */
8585_ACEOF
8586cat confdefs.h >>conftest.$ac_ext
8587cat >>conftest.$ac_ext <<_ACEOF
8588/* end confdefs.h. */
8589$ac_includes_default
8590#include <mswsock.h>
8591_ACEOF
8592rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00008593if { (ac_try="$ac_compile"
8594case "(($ac_try" in
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8597esac
8598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008600 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008601 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008602 rm -f conftest.er1
8603 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00008605 (exit $ac_status); } && {
8606 test -z "$ac_c_werror_flag" ||
8607 test ! -s conftest.err
8608 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008609 ac_header_compiler=yes
8610else
8611 echo "$as_me: failed program was:" >&5
8612sed 's/^/| /' conftest.$ac_ext >&5
8613
Benny Prijonofdafd402008-01-23 14:34:46 +00008614 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008615fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008616
8617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8619echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008620
8621# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00008622{ echo "$as_me:$LINENO: checking mswsock.h presence" >&5
8623echo $ECHO_N "checking mswsock.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008624cat >conftest.$ac_ext <<_ACEOF
8625/* confdefs.h. */
8626_ACEOF
8627cat confdefs.h >>conftest.$ac_ext
8628cat >>conftest.$ac_ext <<_ACEOF
8629/* end confdefs.h. */
8630#include <mswsock.h>
8631_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00008632if { (ac_try="$ac_cpp conftest.$ac_ext"
8633case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8636esac
8637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00008644 (exit $ac_status); } >/dev/null && {
8645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8646 test ! -s conftest.err
8647 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008648 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008649else
8650 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008651sed 's/^/| /' conftest.$ac_ext >&5
8652
8653 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008654fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008655
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008656rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00008657{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8658echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008659
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008660# So? What about this header?
8661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8662 yes:no: )
8663 { echo "$as_me:$LINENO: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
8664echo "$as_me: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8665 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the compiler's result" >&5
8666echo "$as_me: WARNING: mswsock.h: proceeding with the compiler's result" >&2;}
8667 ac_header_preproc=yes
8668 ;;
8669 no:yes:* )
8670 { echo "$as_me:$LINENO: WARNING: mswsock.h: present but cannot be compiled" >&5
8671echo "$as_me: WARNING: mswsock.h: present but cannot be compiled" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: mswsock.h: check for missing prerequisite headers?" >&5
8673echo "$as_me: WARNING: mswsock.h: check for missing prerequisite headers?" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: mswsock.h: see the Autoconf documentation" >&5
8675echo "$as_me: WARNING: mswsock.h: see the Autoconf documentation" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&5
8677echo "$as_me: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the preprocessor's result" >&5
8679echo "$as_me: WARNING: mswsock.h: proceeding with the preprocessor's result" >&2;}
8680 { echo "$as_me:$LINENO: WARNING: mswsock.h: in the future, the compiler will take precedence" >&5
8681echo "$as_me: WARNING: mswsock.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00008682
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008683 ;;
8684esac
Benny Prijonofdafd402008-01-23 14:34:46 +00008685{ echo "$as_me:$LINENO: checking for mswsock.h" >&5
8686echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008687if test "${ac_cv_header_mswsock_h+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008689else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008690 ac_cv_header_mswsock_h=$ac_header_preproc
8691fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008692{ echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
8693echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008694
8695fi
8696if test $ac_cv_header_mswsock_h = yes; then
8697 cat >>confdefs.h <<\_ACEOF
8698#define PJ_HAS_MSWSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008699_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008700
8701fi
8702
8703
8704if test "${ac_cv_header_winsock_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00008705 { echo "$as_me:$LINENO: checking for winsock.h" >&5
8706echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008707if test "${ac_cv_header_winsock_h+set}" = set; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8709fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008710{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8711echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008712else
8713 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00008714{ echo "$as_me:$LINENO: checking winsock.h usability" >&5
8715echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008716cat >conftest.$ac_ext <<_ACEOF
8717/* confdefs.h. */
8718_ACEOF
8719cat confdefs.h >>conftest.$ac_ext
8720cat >>conftest.$ac_ext <<_ACEOF
8721/* end confdefs.h. */
8722$ac_includes_default
8723#include <winsock.h>
8724_ACEOF
8725rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00008726if { (ac_try="$ac_compile"
8727case "(($ac_try" in
8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8730esac
8731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008733 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008734 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008735 rm -f conftest.er1
8736 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00008738 (exit $ac_status); } && {
8739 test -z "$ac_c_werror_flag" ||
8740 test ! -s conftest.err
8741 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008742 ac_header_compiler=yes
8743else
8744 echo "$as_me: failed program was:" >&5
8745sed 's/^/| /' conftest.$ac_ext >&5
8746
Benny Prijonofdafd402008-01-23 14:34:46 +00008747 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008748fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008749
8750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8752echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008753
8754# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00008755{ echo "$as_me:$LINENO: checking winsock.h presence" >&5
8756echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008757cat >conftest.$ac_ext <<_ACEOF
8758/* confdefs.h. */
8759_ACEOF
8760cat confdefs.h >>conftest.$ac_ext
8761cat >>conftest.$ac_ext <<_ACEOF
8762/* end confdefs.h. */
8763#include <winsock.h>
8764_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00008765if { (ac_try="$ac_cpp conftest.$ac_ext"
8766case "(($ac_try" in
8767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768 *) ac_try_echo=$ac_try;;
8769esac
8770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008772 ac_status=$?
8773 grep -v '^ *+' conftest.er1 >conftest.err
8774 rm -f conftest.er1
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00008777 (exit $ac_status); } >/dev/null && {
8778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8779 test ! -s conftest.err
8780 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008781 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008782else
8783 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008784sed 's/^/| /' conftest.$ac_ext >&5
8785
8786 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008787fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008788
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008789rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00008790{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8791echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008792
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008793# So? What about this header?
8794case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8795 yes:no: )
8796 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
8797echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8798 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
8799echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
8800 ac_header_preproc=yes
8801 ;;
8802 no:yes:* )
8803 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
8804echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
8805 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
8806echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
8807 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
8808echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
8809 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
8810echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
8811 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
8812echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
8813 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
8814echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00008815
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008816 ;;
8817esac
Benny Prijonofdafd402008-01-23 14:34:46 +00008818{ echo "$as_me:$LINENO: checking for winsock.h" >&5
8819echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008820if test "${ac_cv_header_winsock_h+set}" = set; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008822else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008823 ac_cv_header_winsock_h=$ac_header_preproc
8824fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008825{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
8826echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008827
8828fi
8829if test $ac_cv_header_winsock_h = yes; then
8830 cat >>confdefs.h <<\_ACEOF
8831#define PJ_HAS_WINSOCK_H 1
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008832_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008833
8834fi
8835
8836
8837if test "${ac_cv_header_winsock2_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00008838 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
8839echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008840if test "${ac_cv_header_winsock2_h+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8842fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008843{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
8844echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008845else
8846 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00008847{ echo "$as_me:$LINENO: checking winsock2.h usability" >&5
8848echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008849cat >conftest.$ac_ext <<_ACEOF
8850/* confdefs.h. */
8851_ACEOF
8852cat confdefs.h >>conftest.$ac_ext
8853cat >>conftest.$ac_ext <<_ACEOF
8854/* end confdefs.h. */
8855$ac_includes_default
8856#include <winsock2.h>
8857_ACEOF
8858rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00008859if { (ac_try="$ac_compile"
8860case "(($ac_try" in
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8863esac
8864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008866 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008867 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008868 rm -f conftest.er1
8869 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00008871 (exit $ac_status); } && {
8872 test -z "$ac_c_werror_flag" ||
8873 test ! -s conftest.err
8874 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008875 ac_header_compiler=yes
8876else
8877 echo "$as_me: failed program was:" >&5
8878sed 's/^/| /' conftest.$ac_ext >&5
8879
Benny Prijonofdafd402008-01-23 14:34:46 +00008880 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008881fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008882
8883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8885echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008886
8887# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00008888{ echo "$as_me:$LINENO: checking winsock2.h presence" >&5
8889echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008890cat >conftest.$ac_ext <<_ACEOF
8891/* confdefs.h. */
8892_ACEOF
8893cat confdefs.h >>conftest.$ac_ext
8894cat >>conftest.$ac_ext <<_ACEOF
8895/* end confdefs.h. */
8896#include <winsock2.h>
8897_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00008898if { (ac_try="$ac_cpp conftest.$ac_ext"
8899case "(($ac_try" in
8900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8901 *) ac_try_echo=$ac_try;;
8902esac
8903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008905 ac_status=$?
8906 grep -v '^ *+' conftest.er1 >conftest.err
8907 rm -f conftest.er1
8908 cat conftest.err >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00008910 (exit $ac_status); } >/dev/null && {
8911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8912 test ! -s conftest.err
8913 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008914 ac_header_preproc=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008915else
8916 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008917sed 's/^/| /' conftest.$ac_ext >&5
8918
8919 ac_header_preproc=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008920fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008921
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008922rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00008923{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8924echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008925
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008926# So? What about this header?
8927case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8928 yes:no: )
8929 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
8930echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8931 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
8932echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
8933 ac_header_preproc=yes
8934 ;;
8935 no:yes:* )
8936 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
8937echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
8938 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
8939echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
8940 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
8941echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
8942 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
8943echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
8944 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
8945echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
8946 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
8947echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00008948
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008949 ;;
8950esac
Benny Prijonofdafd402008-01-23 14:34:46 +00008951{ echo "$as_me:$LINENO: checking for winsock2.h" >&5
8952echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008953if test "${ac_cv_header_winsock2_h+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008955else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008956 ac_cv_header_winsock2_h=$ac_header_preproc
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008957fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008958{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
8959echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008960
8961fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008962if test $ac_cv_header_winsock2_h = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008963 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008964#define PJ_HAS_WINSOCK2_H 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008965_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008966
8967fi
8968
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008969
Benny Prijono4e48b512007-05-16 13:41:00 +00008970if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00008971 { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
8972echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00008973if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8975fi
Benny Prijonofdafd402008-01-23 14:34:46 +00008976{ echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
8977echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00008978else
8979 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00008980{ echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
8981echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00008982cat >conftest.$ac_ext <<_ACEOF
8983/* confdefs.h. */
8984_ACEOF
8985cat confdefs.h >>conftest.$ac_ext
8986cat >>conftest.$ac_ext <<_ACEOF
8987/* end confdefs.h. */
8988$ac_includes_default
8989#include <uuid/uuid.h>
8990_ACEOF
8991rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00008992if { (ac_try="$ac_compile"
8993case "(($ac_try" in
8994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8995 *) ac_try_echo=$ac_try;;
8996esac
8997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8998 (eval "$ac_compile") 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00008999 ac_status=$?
9000 grep -v '^ *+' conftest.er1 >conftest.err
9001 rm -f conftest.er1
9002 cat conftest.err >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00009004 (exit $ac_status); } && {
9005 test -z "$ac_c_werror_flag" ||
9006 test ! -s conftest.err
9007 } && test -s conftest.$ac_objext; then
Benny Prijono4e48b512007-05-16 13:41:00 +00009008 ac_header_compiler=yes
9009else
9010 echo "$as_me: failed program was:" >&5
9011sed 's/^/| /' conftest.$ac_ext >&5
9012
Benny Prijonofdafd402008-01-23 14:34:46 +00009013 ac_header_compiler=no
Benny Prijono4e48b512007-05-16 13:41:00 +00009014fi
Benny Prijonofdafd402008-01-23 14:34:46 +00009015
9016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9017{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9018echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00009019
9020# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00009021{ echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
9022echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00009023cat >conftest.$ac_ext <<_ACEOF
9024/* confdefs.h. */
9025_ACEOF
9026cat confdefs.h >>conftest.$ac_ext
9027cat >>conftest.$ac_ext <<_ACEOF
9028/* end confdefs.h. */
9029#include <uuid/uuid.h>
9030_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00009031if { (ac_try="$ac_cpp conftest.$ac_ext"
9032case "(($ac_try" in
9033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034 *) ac_try_echo=$ac_try;;
9035esac
9036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono4e48b512007-05-16 13:41:00 +00009038 ac_status=$?
9039 grep -v '^ *+' conftest.er1 >conftest.err
9040 rm -f conftest.er1
9041 cat conftest.err >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00009043 (exit $ac_status); } >/dev/null && {
9044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9045 test ! -s conftest.err
9046 }; then
Benny Prijono4e48b512007-05-16 13:41:00 +00009047 ac_header_preproc=yes
9048else
9049 echo "$as_me: failed program was:" >&5
9050sed 's/^/| /' conftest.$ac_ext >&5
9051
9052 ac_header_preproc=no
9053fi
Benny Prijonofdafd402008-01-23 14:34:46 +00009054
Benny Prijono4e48b512007-05-16 13:41:00 +00009055rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00009056{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9057echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00009058
9059# So? What about this header?
9060case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9061 yes:no: )
9062 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
9063echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9064 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
9065echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
9066 ac_header_preproc=yes
9067 ;;
9068 no:yes:* )
9069 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
9070echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
9071 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
9072echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
9073 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
9074echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
9075 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
9076echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
9077 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
9078echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
9079 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
9080echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00009081
Benny Prijono4e48b512007-05-16 13:41:00 +00009082 ;;
9083esac
Benny Prijonofdafd402008-01-23 14:34:46 +00009084{ echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
9085echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00009086if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9088else
9089 ac_cv_header_uuid_uuid_h=$ac_header_preproc
9090fi
Benny Prijonofdafd402008-01-23 14:34:46 +00009091{ echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
9092echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; }
Benny Prijono4e48b512007-05-16 13:41:00 +00009093
9094fi
9095if test $ac_cv_header_uuid_uuid_h = yes; then
9096 ac_has_uuid_h=1
9097fi
9098
9099
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009100
Benny Prijonofdafd402008-01-23 14:34:46 +00009101{ echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5
9102echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009103cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009104#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009105_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009106
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009107
Benny Prijonofdafd402008-01-23 14:34:46 +00009108{ echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
9109echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009110cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009111#define PJ_HAS_ERRNO_VAR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009112_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009113
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009114
Benny Prijonofdafd402008-01-23 14:34:46 +00009115{ echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
9116echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009117cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009118#define PJ_HAS_HIGH_RES_TIMER 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009119_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009120
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009121
Benny Prijonofdafd402008-01-23 14:34:46 +00009122{ echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5
9123echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009124cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009125#define PJ_HAS_MALLOC 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009126_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009127
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009128
Benny Prijonofdafd402008-01-23 14:34:46 +00009129{ echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
9130echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009131cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009132#define PJ_NATIVE_STRING_IS_UNICODE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009133_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009134
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009135
Benny Prijonofdafd402008-01-23 14:34:46 +00009136{ echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
9137echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009138cat >>confdefs.h <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009139#define PJ_ATOMIC_VALUE_TYPE long
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009140_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009141
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009142
Benny Prijonofdafd402008-01-23 14:34:46 +00009143{ echo "$as_me:$LINENO: checking if inet_aton() is available" >&5
9144echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009145cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009146/* confdefs.h. */
9147_ACEOF
9148cat confdefs.h >>conftest.$ac_ext
9149cat >>conftest.$ac_ext <<_ACEOF
9150/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009151#include <sys/types.h>
9152 #include <sys/socket.h>
9153 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009154int
9155main ()
9156{
9157inet_aton(0, 0);
9158 ;
9159 return 0;
9160}
9161_ACEOF
9162rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00009163if { (ac_try="$ac_compile"
9164case "(($ac_try" in
9165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9166 *) ac_try_echo=$ac_try;;
9167esac
9168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9169 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009170 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009171 grep -v '^ *+' conftest.er1 >conftest.err
9172 rm -f conftest.er1
9173 cat conftest.err >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00009175 (exit $ac_status); } && {
9176 test -z "$ac_c_werror_flag" ||
9177 test ! -s conftest.err
9178 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009179 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009180#define PJ_SOCK_HAS_INET_ATON 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009181_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009182
Benny Prijonofdafd402008-01-23 14:34:46 +00009183 { echo "$as_me:$LINENO: result: yes" >&5
9184echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009185else
9186 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009187sed 's/^/| /' conftest.$ac_ext >&5
9188
Benny Prijonofdafd402008-01-23 14:34:46 +00009189 { echo "$as_me:$LINENO: result: no" >&5
9190echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009191fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009192
Benny Prijonofdafd402008-01-23 14:34:46 +00009193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194
9195{ echo "$as_me:$LINENO: checking if inet_pton() is available" >&5
9196echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009197cat >conftest.$ac_ext <<_ACEOF
9198/* confdefs.h. */
9199_ACEOF
9200cat confdefs.h >>conftest.$ac_ext
9201cat >>conftest.$ac_ext <<_ACEOF
9202/* end confdefs.h. */
9203#include <sys/types.h>
9204 #include <sys/socket.h>
9205 #include <arpa/inet.h>
9206int
9207main ()
9208{
9209inet_pton(0, 0, 0);
9210 ;
9211 return 0;
9212}
9213_ACEOF
9214rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00009215if { (ac_try="$ac_compile"
9216case "(($ac_try" in
9217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218 *) ac_try_echo=$ac_try;;
9219esac
9220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009222 ac_status=$?
9223 grep -v '^ *+' conftest.er1 >conftest.err
9224 rm -f conftest.er1
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00009227 (exit $ac_status); } && {
9228 test -z "$ac_c_werror_flag" ||
9229 test ! -s conftest.err
9230 } && test -s conftest.$ac_objext; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009231 cat >>confdefs.h <<\_ACEOF
9232#define PJ_SOCK_HAS_INET_PTON 1
9233_ACEOF
9234
Benny Prijonofdafd402008-01-23 14:34:46 +00009235 { echo "$as_me:$LINENO: result: yes" >&5
9236echo "${ECHO_T}yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009237else
9238 echo "$as_me: failed program was:" >&5
9239sed 's/^/| /' conftest.$ac_ext >&5
9240
Benny Prijonofdafd402008-01-23 14:34:46 +00009241 { echo "$as_me:$LINENO: result: no" >&5
9242echo "${ECHO_T}no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009243fi
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009244
Benny Prijonofdafd402008-01-23 14:34:46 +00009245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9246
9247{ echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5
9248echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009249cat >conftest.$ac_ext <<_ACEOF
9250/* confdefs.h. */
9251_ACEOF
9252cat confdefs.h >>conftest.$ac_ext
9253cat >>conftest.$ac_ext <<_ACEOF
9254/* end confdefs.h. */
9255#include <sys/types.h>
9256 #include <sys/socket.h>
9257 #include <arpa/inet.h>
9258int
9259main ()
9260{
9261inet_ntop(0, 0, 0, 0);
9262 ;
9263 return 0;
9264}
9265_ACEOF
9266rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00009267if { (ac_try="$ac_compile"
9268case "(($ac_try" in
9269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9270 *) ac_try_echo=$ac_try;;
9271esac
9272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9273 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009274 ac_status=$?
9275 grep -v '^ *+' conftest.er1 >conftest.err
9276 rm -f conftest.er1
9277 cat conftest.err >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00009279 (exit $ac_status); } && {
9280 test -z "$ac_c_werror_flag" ||
9281 test ! -s conftest.err
9282 } && test -s conftest.$ac_objext; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009283 cat >>confdefs.h <<\_ACEOF
9284#define PJ_SOCK_HAS_INET_NTOP 1
9285_ACEOF
9286
Benny Prijonofdafd402008-01-23 14:34:46 +00009287 { echo "$as_me:$LINENO: result: yes" >&5
9288echo "${ECHO_T}yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009289else
9290 echo "$as_me: failed program was:" >&5
9291sed 's/^/| /' conftest.$ac_ext >&5
9292
Benny Prijonofdafd402008-01-23 14:34:46 +00009293 { echo "$as_me:$LINENO: result: no" >&5
9294echo "${ECHO_T}no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009295fi
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009296
Benny Prijonofdafd402008-01-23 14:34:46 +00009297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9298
9299{ echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5
9300echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009301cat >conftest.$ac_ext <<_ACEOF
9302/* confdefs.h. */
9303_ACEOF
9304cat confdefs.h >>conftest.$ac_ext
9305cat >>conftest.$ac_ext <<_ACEOF
9306/* end confdefs.h. */
9307#include <sys/types.h>
9308 #include <sys/socket.h>
9309 #include <netdb.h>
9310int
9311main ()
9312{
9313getaddrinfo(0, 0, 0, 0);
9314 ;
9315 return 0;
9316}
9317_ACEOF
9318rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00009319if { (ac_try="$ac_compile"
9320case "(($ac_try" in
9321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9322 *) ac_try_echo=$ac_try;;
9323esac
9324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9325 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009326 ac_status=$?
9327 grep -v '^ *+' conftest.er1 >conftest.err
9328 rm -f conftest.er1
9329 cat conftest.err >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00009331 (exit $ac_status); } && {
9332 test -z "$ac_c_werror_flag" ||
9333 test ! -s conftest.err
9334 } && test -s conftest.$ac_objext; then
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009335 cat >>confdefs.h <<\_ACEOF
9336#define PJ_SOCK_HAS_GETADDRINFO 1
9337_ACEOF
9338
Benny Prijonofdafd402008-01-23 14:34:46 +00009339 { echo "$as_me:$LINENO: result: yes" >&5
9340echo "${ECHO_T}yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009341else
9342 echo "$as_me: failed program was:" >&5
9343sed 's/^/| /' conftest.$ac_ext >&5
9344
Benny Prijonofdafd402008-01-23 14:34:46 +00009345 { echo "$as_me:$LINENO: result: no" >&5
9346echo "${ECHO_T}no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009347fi
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009348
Benny Prijonofdafd402008-01-23 14:34:46 +00009349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9350
9351{ echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
9352echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009353cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009354/* confdefs.h. */
9355_ACEOF
9356cat confdefs.h >>conftest.$ac_ext
9357cat >>conftest.$ac_ext <<_ACEOF
9358/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00009359#include <sys/types.h>
9360 #include <sys/socket.h>
9361 #include <netinet/in.h>
9362 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009363int
9364main ()
9365{
9366struct sockaddr_in a; a.sin_len=0;
9367 ;
9368 return 0;
9369}
9370_ACEOF
9371rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00009372if { (ac_try="$ac_compile"
9373case "(($ac_try" in
9374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375 *) ac_try_echo=$ac_try;;
9376esac
9377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009379 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009380 grep -v '^ *+' conftest.er1 >conftest.err
9381 rm -f conftest.er1
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00009384 (exit $ac_status); } && {
9385 test -z "$ac_c_werror_flag" ||
9386 test ! -s conftest.err
9387 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009388 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009389#define PJ_SOCKADDR_HAS_LEN 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009390_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009391
Benny Prijonofdafd402008-01-23 14:34:46 +00009392 { echo "$as_me:$LINENO: result: yes" >&5
9393echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009394else
9395 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009396sed 's/^/| /' conftest.$ac_ext >&5
9397
Benny Prijonofdafd402008-01-23 14:34:46 +00009398 { echo "$as_me:$LINENO: result: no" >&5
9399echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009400fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009401
Benny Prijonofdafd402008-01-23 14:34:46 +00009402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9403
9404{ echo "$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 Prijonofdafd402008-01-23 14:34:46 +00009422if { (ac_try="$ac_compile"
9423case "(($ac_try" in
9424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9425 *) ac_try_echo=$ac_try;;
9426esac
9427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9428 (eval "$ac_compile") 2>conftest.er1
Benny Prijono30f85c62006-09-09 20:05:33 +00009429 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009430 grep -v '^ *+' conftest.er1 >conftest.err
9431 rm -f conftest.er1
9432 cat conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00009434 (exit $ac_status); } && {
9435 test -z "$ac_c_werror_flag" ||
9436 test ! -s conftest.err
9437 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009438 cat >>confdefs.h <<\_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00009439#define PJ_HAS_SOCKLEN_T 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009440_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +00009441
Benny Prijonofdafd402008-01-23 14:34:46 +00009442 { echo "$as_me:$LINENO: result: yes" >&5
9443echo "${ECHO_T}yes" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00009444else
9445 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009446sed 's/^/| /' conftest.$ac_ext >&5
9447
Benny Prijonofdafd402008-01-23 14:34:46 +00009448 { echo "$as_me:$LINENO: result: no" >&5
9449echo "${ECHO_T}no" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00009450fi
Benny Prijono30f85c62006-09-09 20:05:33 +00009451
Benny Prijonofdafd402008-01-23 14:34:46 +00009452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9453
9454{ echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
9455echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009456case $target in
9457 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009458 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009459#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009460_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009461
Benny Prijonofdafd402008-01-23 14:34:46 +00009462 { echo "$as_me:$LINENO: result: yes" >&5
9463echo "${ECHO_T}yes" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009464 ;;
9465 *)
9466 cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009467/* confdefs.h. */
9468_ACEOF
9469cat confdefs.h >>conftest.$ac_ext
9470cat >>conftest.$ac_ext <<_ACEOF
9471/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00009472#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009473 #include <sys/socket.h>
9474 #include <netinet/in.h>
9475 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009476int
9477main ()
9478{
9479int i=SO_ERROR;
9480 ;
9481 return 0;
9482}
9483_ACEOF
9484rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00009485if { (ac_try="$ac_compile"
9486case "(($ac_try" in
9487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9488 *) ac_try_echo=$ac_try;;
9489esac
9490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9491 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009492 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009493 grep -v '^ *+' conftest.er1 >conftest.err
9494 rm -f conftest.er1
9495 cat conftest.err >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00009497 (exit $ac_status); } && {
9498 test -z "$ac_c_werror_flag" ||
9499 test ! -s conftest.err
9500 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009501 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009502#define PJ_HAS_SO_ERROR 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009503_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009504
Benny Prijonofdafd402008-01-23 14:34:46 +00009505 { echo "$as_me:$LINENO: result: yes" >&5
9506echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009507else
9508 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009509sed 's/^/| /' conftest.$ac_ext >&5
9510
Benny Prijonofdafd402008-01-23 14:34:46 +00009511 { echo "$as_me:$LINENO: result: no" >&5
9512echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009513fi
Benny Prijonofdafd402008-01-23 14:34:46 +00009514
9515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009516 ;;
9517esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009518
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009519
Benny Prijonofdafd402008-01-23 14:34:46 +00009520{ echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
9521echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009522cat >conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009523/* confdefs.h. */
9524_ACEOF
9525cat confdefs.h >>conftest.$ac_ext
9526cat >>conftest.$ac_ext <<_ACEOF
9527/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009528#include <pthread.h>
9529int
9530main ()
9531{
9532pthread_rwlock_t *x;
9533 ;
9534 return 0;
9535}
9536_ACEOF
9537rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00009538if { (ac_try="$ac_compile"
9539case "(($ac_try" in
9540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9541 *) ac_try_echo=$ac_try;;
9542esac
9543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9544 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009545 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009546 grep -v '^ *+' conftest.er1 >conftest.err
9547 rm -f conftest.er1
9548 cat conftest.err >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00009550 (exit $ac_status); } && {
9551 test -z "$ac_c_werror_flag" ||
9552 test ! -s conftest.err
9553 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009554 cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009555#define PJ_EMULATE_RWMUTEX 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009556_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009557
Benny Prijonofdafd402008-01-23 14:34:46 +00009558 { echo "$as_me:$LINENO: result: yes" >&5
9559echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009560else
9561 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009562sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009563
Benny Prijonofdafd402008-01-23 14:34:46 +00009564 cat >>confdefs.h <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009565#define PJ_EMULATE_RWMUTEX 1
9566_ACEOF
9567
Benny Prijonofdafd402008-01-23 14:34:46 +00009568 { echo "$as_me:$LINENO: result: no" >&5
9569echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009570fi
Benny Prijonofdafd402008-01-23 14:34:46 +00009571
9572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009573
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009574
9575case $target in
9576 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonoad086e02007-02-16 10:58:18 +00009577 ac_os_objs="file_access_win32.o file_io_win32.o os_core_win32.o os_error_win32.o os_time_win32.o os_timestamp_win32.o guid_win32.o ioqueue_select.o"
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009578 ;;
9579 *)
Benny Prijono4e48b512007-05-16 13:41:00 +00009580 ac_os_objs="file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o ioqueue_select.o"
9581 # UUID
9582 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
9583 ac_os_objs="$ac_os_objs guid_uuid.o"
9584 else
9585 ac_os_objs="$ac_os_objs guid_simple.o"
9586 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00009587 ;;
9588esac
9589
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009590
9591
9592
Benny Prijono4e48b512007-05-16 13:41:00 +00009593
Benny Prijonofdafd402008-01-23 14:34:46 +00009594# Check whether --enable-sound was given.
Benny Prijono1d971622006-09-10 22:27:40 +00009595if test "${enable_sound+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00009596 enableval=$enable_sound; if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +00009597 ac_pjmedia_snd=null
Benny Prijonofdafd402008-01-23 14:34:46 +00009598 { echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5
9599echo "${ECHO_T}Checking if sound is disabled... yes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00009600 fi
9601
Benny Prijonofdafd402008-01-23 14:34:46 +00009602fi
9603
Benny Prijono1d971622006-09-10 22:27:40 +00009604
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009605
Benny Prijono27c98722007-04-09 21:28:15 +00009606if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00009607 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9608echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009609if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9611fi
Benny Prijonofdafd402008-01-23 14:34:46 +00009612{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9613echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009614else
9615 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00009616{ echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
9617echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009618cat >conftest.$ac_ext <<_ACEOF
9619/* confdefs.h. */
9620_ACEOF
9621cat confdefs.h >>conftest.$ac_ext
9622cat >>conftest.$ac_ext <<_ACEOF
9623/* end confdefs.h. */
9624$ac_includes_default
9625#include <sys/soundcard.h>
9626_ACEOF
9627rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00009628if { (ac_try="$ac_compile"
9629case "(($ac_try" in
9630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631 *) ac_try_echo=$ac_try;;
9632esac
9633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9634 (eval "$ac_compile") 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009635 ac_status=$?
9636 grep -v '^ *+' conftest.er1 >conftest.err
9637 rm -f conftest.er1
9638 cat conftest.err >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00009640 (exit $ac_status); } && {
9641 test -z "$ac_c_werror_flag" ||
9642 test ! -s conftest.err
9643 } && test -s conftest.$ac_objext; then
Benny Prijono27c98722007-04-09 21:28:15 +00009644 ac_header_compiler=yes
9645else
9646 echo "$as_me: failed program was:" >&5
9647sed 's/^/| /' conftest.$ac_ext >&5
9648
Benny Prijonofdafd402008-01-23 14:34:46 +00009649 ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +00009650fi
Benny Prijonofdafd402008-01-23 14:34:46 +00009651
9652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9653{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9654echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009655
9656# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00009657{ echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
9658echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009659cat >conftest.$ac_ext <<_ACEOF
9660/* confdefs.h. */
9661_ACEOF
9662cat confdefs.h >>conftest.$ac_ext
9663cat >>conftest.$ac_ext <<_ACEOF
9664/* end confdefs.h. */
9665#include <sys/soundcard.h>
9666_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00009667if { (ac_try="$ac_cpp conftest.$ac_ext"
9668case "(($ac_try" in
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9671esac
9672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009674 ac_status=$?
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00009679 (exit $ac_status); } >/dev/null && {
9680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9681 test ! -s conftest.err
9682 }; then
Benny Prijono27c98722007-04-09 21:28:15 +00009683 ac_header_preproc=yes
9684else
9685 echo "$as_me: failed program was:" >&5
9686sed 's/^/| /' conftest.$ac_ext >&5
9687
9688 ac_header_preproc=no
9689fi
Benny Prijonofdafd402008-01-23 14:34:46 +00009690
Benny Prijono27c98722007-04-09 21:28:15 +00009691rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00009692{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9693echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009694
9695# So? What about this header?
9696case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9697 yes:no: )
9698 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9699echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
9701echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
9702 ac_header_preproc=yes
9703 ;;
9704 no:yes:* )
9705 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
9706echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
9708echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
9710echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
9711 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9712echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9713 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
9714echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
9715 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
9716echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00009717
Benny Prijono27c98722007-04-09 21:28:15 +00009718 ;;
9719esac
Benny Prijonofdafd402008-01-23 14:34:46 +00009720{ echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
9721echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009722if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9724else
9725 ac_cv_header_sys_soundcard_h=$ac_header_preproc
9726fi
Benny Prijonofdafd402008-01-23 14:34:46 +00009727{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9728echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009729
9730fi
9731if test $ac_cv_header_sys_soundcard_h = yes; then
9732 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
9733fi
9734
9735
9736if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00009737 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
9738echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009739if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9741fi
Benny Prijonofdafd402008-01-23 14:34:46 +00009742{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
9743echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009744else
9745 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00009746{ echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
9747echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009748cat >conftest.$ac_ext <<_ACEOF
9749/* confdefs.h. */
9750_ACEOF
9751cat confdefs.h >>conftest.$ac_ext
9752cat >>conftest.$ac_ext <<_ACEOF
9753/* end confdefs.h. */
9754$ac_includes_default
9755#include <linux/soundcard.h>
9756_ACEOF
9757rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00009758if { (ac_try="$ac_compile"
9759case "(($ac_try" in
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9762esac
9763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764 (eval "$ac_compile") 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009765 ac_status=$?
9766 grep -v '^ *+' conftest.er1 >conftest.err
9767 rm -f conftest.er1
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00009770 (exit $ac_status); } && {
9771 test -z "$ac_c_werror_flag" ||
9772 test ! -s conftest.err
9773 } && test -s conftest.$ac_objext; then
Benny Prijono27c98722007-04-09 21:28:15 +00009774 ac_header_compiler=yes
9775else
9776 echo "$as_me: failed program was:" >&5
9777sed 's/^/| /' conftest.$ac_ext >&5
9778
Benny Prijonofdafd402008-01-23 14:34:46 +00009779 ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +00009780fi
Benny Prijonofdafd402008-01-23 14:34:46 +00009781
9782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9783{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9784echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009785
9786# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00009787{ echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
9788echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009789cat >conftest.$ac_ext <<_ACEOF
9790/* confdefs.h. */
9791_ACEOF
9792cat confdefs.h >>conftest.$ac_ext
9793cat >>conftest.$ac_ext <<_ACEOF
9794/* end confdefs.h. */
9795#include <linux/soundcard.h>
9796_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00009797if { (ac_try="$ac_cpp conftest.$ac_ext"
9798case "(($ac_try" in
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9801esac
9802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00009809 (exit $ac_status); } >/dev/null && {
9810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9811 test ! -s conftest.err
9812 }; then
Benny Prijono27c98722007-04-09 21:28:15 +00009813 ac_header_preproc=yes
9814else
9815 echo "$as_me: failed program was:" >&5
9816sed 's/^/| /' conftest.$ac_ext >&5
9817
9818 ac_header_preproc=no
9819fi
Benny Prijonofdafd402008-01-23 14:34:46 +00009820
Benny Prijono27c98722007-04-09 21:28:15 +00009821rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00009822{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9823echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009824
9825# So? What about this header?
9826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9827 yes:no: )
9828 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9829echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9830 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
9831echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
9832 ac_header_preproc=yes
9833 ;;
9834 no:yes:* )
9835 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
9836echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
9837 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
9838echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
9840echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
9841 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9842echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9843 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
9844echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
9845 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
9846echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00009847
Benny Prijono27c98722007-04-09 21:28:15 +00009848 ;;
9849esac
Benny Prijonofdafd402008-01-23 14:34:46 +00009850{ echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
9851echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009852if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
9853 echo $ECHO_N "(cached) $ECHO_C" >&6
9854else
9855 ac_cv_header_linux_soundcard_h=$ac_header_preproc
9856fi
Benny Prijonofdafd402008-01-23 14:34:46 +00009857{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
9858echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009859
9860fi
9861if test $ac_cv_header_linux_soundcard_h = yes; then
9862 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
9863fi
9864
9865
9866if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +00009867 { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
9868echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009869if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9871fi
Benny Prijonofdafd402008-01-23 14:34:46 +00009872{ echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
9873echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009874else
9875 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +00009876{ echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5
9877echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009878cat >conftest.$ac_ext <<_ACEOF
9879/* confdefs.h. */
9880_ACEOF
9881cat confdefs.h >>conftest.$ac_ext
9882cat >>conftest.$ac_ext <<_ACEOF
9883/* end confdefs.h. */
9884$ac_includes_default
9885#include <machine/soundcard.h>
9886_ACEOF
9887rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +00009888if { (ac_try="$ac_compile"
9889case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892esac
9893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_compile") 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009895 ac_status=$?
9896 grep -v '^ *+' conftest.er1 >conftest.err
9897 rm -f conftest.er1
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00009900 (exit $ac_status); } && {
9901 test -z "$ac_c_werror_flag" ||
9902 test ! -s conftest.err
9903 } && test -s conftest.$ac_objext; then
Benny Prijono27c98722007-04-09 21:28:15 +00009904 ac_header_compiler=yes
9905else
9906 echo "$as_me: failed program was:" >&5
9907sed 's/^/| /' conftest.$ac_ext >&5
9908
Benny Prijonofdafd402008-01-23 14:34:46 +00009909 ac_header_compiler=no
Benny Prijono27c98722007-04-09 21:28:15 +00009910fi
Benny Prijonofdafd402008-01-23 14:34:46 +00009911
9912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9913{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9914echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009915
9916# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +00009917{ echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5
9918echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009919cat >conftest.$ac_ext <<_ACEOF
9920/* confdefs.h. */
9921_ACEOF
9922cat confdefs.h >>conftest.$ac_ext
9923cat >>conftest.$ac_ext <<_ACEOF
9924/* end confdefs.h. */
9925#include <machine/soundcard.h>
9926_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +00009927if { (ac_try="$ac_cpp conftest.$ac_ext"
9928case "(($ac_try" in
9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9931esac
9932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono27c98722007-04-09 21:28:15 +00009934 ac_status=$?
9935 grep -v '^ *+' conftest.er1 >conftest.err
9936 rm -f conftest.er1
9937 cat conftest.err >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +00009939 (exit $ac_status); } >/dev/null && {
9940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9941 test ! -s conftest.err
9942 }; then
Benny Prijono27c98722007-04-09 21:28:15 +00009943 ac_header_preproc=yes
9944else
9945 echo "$as_me: failed program was:" >&5
9946sed 's/^/| /' conftest.$ac_ext >&5
9947
9948 ac_header_preproc=no
9949fi
Benny Prijonofdafd402008-01-23 14:34:46 +00009950
Benny Prijono27c98722007-04-09 21:28:15 +00009951rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +00009952{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9953echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009954
9955# So? What about this header?
9956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9957 yes:no: )
9958 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
9959echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9960 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5
9961echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;}
9962 ac_header_preproc=yes
9963 ;;
9964 no:yes:* )
9965 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5
9966echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;}
9967 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5
9968echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;}
9969 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5
9970echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;}
9971 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
9972echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
9973 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5
9974echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;}
9975 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5
9976echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +00009977
Benny Prijono27c98722007-04-09 21:28:15 +00009978 ;;
9979esac
Benny Prijonofdafd402008-01-23 14:34:46 +00009980{ echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
9981echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009982if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9984else
9985 ac_cv_header_machine_soundcard_h=$ac_header_preproc
9986fi
Benny Prijonofdafd402008-01-23 14:34:46 +00009987{ echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
9988echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; }
Benny Prijono27c98722007-04-09 21:28:15 +00009989
9990fi
9991if test $ac_cv_header_machine_soundcard_h = yes; then
9992 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
9993fi
9994
9995
9996
Benny Prijono3e091672008-01-09 15:43:02 +00009997if test "x$ac_cv_c_bigendian" = "xyes"; then
9998 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
9999else
10000 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
10001fi
10002
Benny Prijono1d971622006-09-10 22:27:40 +000010003if test "$enable_sound" = "no"; then
10004 true;
10005else
10006 case $target in
Benny Prijonob466e232006-09-10 08:53:59 +000010007 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +000010008 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
10009 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +000010010 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +000010011 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
10012 ac_pjmedia_snd=pa_old_darwinos
Benny Prijonofdafd402008-01-23 14:34:46 +000010013 { echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
10014echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +000010015 else
10016 ac_pjmedia_snd=pa_darwinos
Benny Prijonofdafd402008-01-23 14:34:46 +000010017 { echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
10018echo "${ECHO_T}Checking sound device backend... coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +000010019 fi
Benny Prijonob466e232006-09-10 08:53:59 +000010020 ;;
10021 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010022 ac_pjmedia_snd=pa_win32
Benny Prijonofdafd402008-01-23 14:34:46 +000010023 { echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
10024echo "${ECHO_T}Checking sound device backend... win32 sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010025 ;;
10026 *rtems*)
10027 ac_pjmedia_snd=null
Benny Prijonofdafd402008-01-23 14:34:46 +000010028 { echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
10029echo "${ECHO_T}Checking sound device backend... null sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010030 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010031 *)
10032 ac_pjmedia_snd=pa_unix
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010033 if test "${ac_cv_header_alsa_version_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +000010034 { echo "$as_me:$LINENO: checking for alsa/version.h" >&5
10035echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010036if test "${ac_cv_header_alsa_version_h+set}" = set; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010038fi
Benny Prijonofdafd402008-01-23 14:34:46 +000010039{ echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
10040echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010041else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010042 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +000010043{ echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
10044echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010045cat >conftest.$ac_ext <<_ACEOF
10046/* confdefs.h. */
10047_ACEOF
10048cat confdefs.h >>conftest.$ac_ext
10049cat >>conftest.$ac_ext <<_ACEOF
10050/* end confdefs.h. */
10051$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010052#include <alsa/version.h>
10053_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010054rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +000010055if { (ac_try="$ac_compile"
10056case "(($ac_try" in
10057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10058 *) ac_try_echo=$ac_try;;
10059esac
10060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10061 (eval "$ac_compile") 2>conftest.er1
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010062 ac_status=$?
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010063 grep -v '^ *+' conftest.er1 >conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010064 rm -f conftest.er1
10065 cat conftest.err >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +000010067 (exit $ac_status); } && {
10068 test -z "$ac_c_werror_flag" ||
10069 test ! -s conftest.err
10070 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010071 ac_header_compiler=yes
10072else
10073 echo "$as_me: failed program was:" >&5
10074sed 's/^/| /' conftest.$ac_ext >&5
10075
Benny Prijonofdafd402008-01-23 14:34:46 +000010076 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010077fi
Benny Prijonofdafd402008-01-23 14:34:46 +000010078
10079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10080{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10081echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010082
10083# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +000010084{ echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
10085echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010086cat >conftest.$ac_ext <<_ACEOF
10087/* confdefs.h. */
10088_ACEOF
10089cat confdefs.h >>conftest.$ac_ext
10090cat >>conftest.$ac_ext <<_ACEOF
10091/* end confdefs.h. */
10092#include <alsa/version.h>
10093_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +000010094if { (ac_try="$ac_cpp conftest.$ac_ext"
10095case "(($ac_try" in
10096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097 *) ac_try_echo=$ac_try;;
10098esac
10099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010101 ac_status=$?
10102 grep -v '^ *+' conftest.er1 >conftest.err
10103 rm -f conftest.er1
10104 cat conftest.err >&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +000010106 (exit $ac_status); } >/dev/null && {
10107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10108 test ! -s conftest.err
10109 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010110 ac_header_preproc=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010111else
10112 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010113sed 's/^/| /' conftest.$ac_ext >&5
10114
10115 ac_header_preproc=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010116fi
Benny Prijonofdafd402008-01-23 14:34:46 +000010117
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010118rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +000010119{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10120echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010121
10122# So? What about this header?
10123case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10124 yes:no: )
10125 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
10126echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10127 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
10128echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
10129 ac_header_preproc=yes
10130 ;;
10131 no:yes:* )
10132 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
10133echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
10134 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
10135echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
10136 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
10137echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
10138 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
10139echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
10140 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
10141echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
10142 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
10143echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +000010144
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010145 ;;
10146esac
Benny Prijonofdafd402008-01-23 14:34:46 +000010147{ echo "$as_me:$LINENO: checking for alsa/version.h" >&5
10148echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010149if test "${ac_cv_header_alsa_version_h+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10151else
10152 ac_cv_header_alsa_version_h=$ac_header_preproc
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010153fi
Benny Prijonofdafd402008-01-23 14:34:46 +000010154{ echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
10155echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010156
10157fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010158if test $ac_cv_header_alsa_version_h = yes; then
10159 ac_pa_use_alsa=1
10160
10161 LIBS="$LIBS -lasound"
10162
10163else
10164 ac_pa_use_alsa=0
10165
10166fi
10167
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010168
Benny Prijonofdafd402008-01-23 14:34:46 +000010169 { echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
10170echo "${ECHO_T}Checking sound device backend... unix" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010171 ;;
Benny Prijono1d971622006-09-10 22:27:40 +000010172 esac
10173fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010174
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010175
Benny Prijonofdafd402008-01-23 14:34:46 +000010176# Check whether --enable-small-filter was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010177if test "${enable_small_filter+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +000010178 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010179 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijonofdafd402008-01-23 14:34:46 +000010180 { echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
10181echo "${ECHO_T}Checking if small filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010182 fi
10183else
Benny Prijonofdafd402008-01-23 14:34:46 +000010184 { echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
10185echo "${ECHO_T}Checking if small filter is disabled... no" >&6; }
10186fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010187
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010188
Benny Prijonofdafd402008-01-23 14:34:46 +000010189
10190# Check whether --enable-large-filter was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010191if test "${enable_large_filter+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +000010192 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010193 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijonofdafd402008-01-23 14:34:46 +000010194 { echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
10195echo "${ECHO_T}Checking if large filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010196 fi
10197else
Benny Prijonofdafd402008-01-23 14:34:46 +000010198 { echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
10199echo "${ECHO_T}Checking if large filter is disabled... no" >&6; }
10200fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010201
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010202
Benny Prijonofdafd402008-01-23 14:34:46 +000010203
10204# Check whether --enable-speex-aec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010205if test "${enable_speex_aec+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +000010206 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010207 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijonofdafd402008-01-23 14:34:46 +000010208 { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
10209echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010210 fi
10211else
Benny Prijonofdafd402008-01-23 14:34:46 +000010212 { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
10213echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6; }
10214fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010215
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010216
Benny Prijonofdafd402008-01-23 14:34:46 +000010217
10218# Check whether --enable-g711-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010219if test "${enable_g711_codec+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +000010220 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010221 ac_no_g711_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010222 cat >>confdefs.h <<\_ACEOF
10223#define PJMEDIA_HAS_G711_CODEC 0
10224_ACEOF
10225
Benny Prijonofdafd402008-01-23 14:34:46 +000010226 { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
10227echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010228 fi
10229else
Benny Prijonofdafd402008-01-23 14:34:46 +000010230 { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
10231echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6; }
10232fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010233
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010234
10235
Benny Prijonofdafd402008-01-23 14:34:46 +000010236
10237# Check whether --enable-l16-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010238if test "${enable_l16_codec+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +000010239 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010240 ac_no_l16_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010241 cat >>confdefs.h <<\_ACEOF
10242#define PJMEDIA_HAS_L16_CODEC 0
10243_ACEOF
10244
Benny Prijonofdafd402008-01-23 14:34:46 +000010245 { echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
10246echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010247 fi
10248else
Benny Prijonofdafd402008-01-23 14:34:46 +000010249 { echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
10250echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6; }
10251fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010252
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010253
10254
Benny Prijonofdafd402008-01-23 14:34:46 +000010255
10256# Check whether --enable-gsm-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010257if test "${enable_gsm_codec+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +000010258 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010259 ac_no_gsm_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010260 cat >>confdefs.h <<\_ACEOF
10261#define PJMEDIA_HAS_GSM_CODEC 0
10262_ACEOF
10263
Benny Prijonofdafd402008-01-23 14:34:46 +000010264 { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
10265echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010266 fi
10267else
Benny Prijonofdafd402008-01-23 14:34:46 +000010268 { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
10269echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6; }
10270fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010271
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010272
Benny Prijonofdafd402008-01-23 14:34:46 +000010273
10274# Check whether --enable-speex-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010275if test "${enable_speex_codec+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +000010276 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010277 ac_no_speex_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010278 cat >>confdefs.h <<\_ACEOF
10279#define PJMEDIA_HAS_SPEEX_CODEC 0
10280_ACEOF
10281
Benny Prijonofdafd402008-01-23 14:34:46 +000010282 { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
10283echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010284 fi
10285else
Benny Prijonofdafd402008-01-23 14:34:46 +000010286 { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
10287echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6; }
10288fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010289
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010290
Benny Prijonofdafd402008-01-23 14:34:46 +000010291
10292# Check whether --enable-ilbc-codec was given.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010293if test "${enable_ilbc_codec+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +000010294 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010295 ac_no_ilbc_codec=1
Benny Prijono06d1d0e2007-01-27 18:09:28 +000010296 cat >>confdefs.h <<\_ACEOF
10297#define PJMEDIA_HAS_ILBC_CODEC 0
10298_ACEOF
10299
Benny Prijonofdafd402008-01-23 14:34:46 +000010300 { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
10301echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010302 fi
10303else
Benny Prijonofdafd402008-01-23 14:34:46 +000010304 { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
10305echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6; }
10306fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010307
Benny Prijonofdafd402008-01-23 14:34:46 +000010308
10309# Check whether --enable-libsamplerate was given.
Benny Prijono550a1a62007-10-16 08:54:00 +000010310if test "${enable_libsamplerate+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +000010311 enableval=$enable_libsamplerate;
10312{ echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5
10313echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6; }
Benny Prijono550a1a62007-10-16 08:54:00 +000010314if test "${ac_cv_lib_samplerate_src_new+set}" = set; then
10315 echo $ECHO_N "(cached) $ECHO_C" >&6
10316else
10317 ac_check_lib_save_LIBS=$LIBS
10318LIBS="-lsamplerate $LIBS"
10319cat >conftest.$ac_ext <<_ACEOF
10320/* confdefs.h. */
10321_ACEOF
10322cat confdefs.h >>conftest.$ac_ext
10323cat >>conftest.$ac_ext <<_ACEOF
10324/* end confdefs.h. */
10325
Benny Prijonofdafd402008-01-23 14:34:46 +000010326/* Override any GCC internal prototype to avoid an error.
10327 Use char because int might match the return type of a GCC
10328 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +000010329#ifdef __cplusplus
10330extern "C"
10331#endif
Benny Prijono550a1a62007-10-16 08:54:00 +000010332char src_new ();
10333int
10334main ()
10335{
Benny Prijonofdafd402008-01-23 14:34:46 +000010336return src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +000010337 ;
10338 return 0;
10339}
10340_ACEOF
10341rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonofdafd402008-01-23 14:34:46 +000010342if { (ac_try="$ac_link"
10343case "(($ac_try" in
10344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345 *) ac_try_echo=$ac_try;;
10346esac
10347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10348 (eval "$ac_link") 2>conftest.er1
Benny Prijono550a1a62007-10-16 08:54:00 +000010349 ac_status=$?
10350 grep -v '^ *+' conftest.er1 >conftest.err
10351 rm -f conftest.er1
10352 cat conftest.err >&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +000010354 (exit $ac_status); } && {
10355 test -z "$ac_c_werror_flag" ||
10356 test ! -s conftest.err
10357 } && test -s conftest$ac_exeext &&
10358 $as_test_x conftest$ac_exeext; then
Benny Prijono550a1a62007-10-16 08:54:00 +000010359 ac_cv_lib_samplerate_src_new=yes
10360else
10361 echo "$as_me: failed program was:" >&5
10362sed 's/^/| /' conftest.$ac_ext >&5
10363
Benny Prijonofdafd402008-01-23 14:34:46 +000010364 ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +000010365fi
Benny Prijonofdafd402008-01-23 14:34:46 +000010366
10367rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono550a1a62007-10-16 08:54:00 +000010368 conftest$ac_exeext conftest.$ac_ext
10369LIBS=$ac_check_lib_save_LIBS
10370fi
Benny Prijonofdafd402008-01-23 14:34:46 +000010371{ echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5
10372echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6; }
Benny Prijono550a1a62007-10-16 08:54:00 +000010373if test $ac_cv_lib_samplerate_src_new = yes; then
10374 cat >>confdefs.h <<_ACEOF
10375#define HAVE_LIBSAMPLERATE 1
10376_ACEOF
10377
10378 LIBS="-lsamplerate $LIBS"
10379
10380fi
10381
10382else
Benny Prijonofdafd402008-01-23 14:34:46 +000010383 { echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5
10384echo "${ECHO_T}Skipping libsamplerate detection" >&6; }
Benny Prijono550a1a62007-10-16 08:54:00 +000010385
Benny Prijonofdafd402008-01-23 14:34:46 +000010386fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010387
10388
10389
10390
Benny Prijonofdafd402008-01-23 14:34:46 +000010391
10392# Check whether --enable-ssl was given.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010393if test "${enable_ssl+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +000010394 enableval=$enable_ssl;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010395 if test "$enable_ssl" = "no"; then
10396 ac_no_ssl=1
Benny Prijonofdafd402008-01-23 14:34:46 +000010397 { echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
10398echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010399 fi
10400
10401else
10402
Benny Prijonofdafd402008-01-23 14:34:46 +000010403 { echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
10404echo "${ECHO_T}checking for OpenSSL installations.." >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010405
10406
10407
10408 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
Benny Prijonofdafd402008-01-23 14:34:46 +000010409 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10410echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010411if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413fi
Benny Prijonofdafd402008-01-23 14:34:46 +000010414{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10415echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010416else
10417 # Is the header compilable?
Benny Prijonofdafd402008-01-23 14:34:46 +000010418{ echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
10419echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010420cat >conftest.$ac_ext <<_ACEOF
10421/* confdefs.h. */
10422_ACEOF
10423cat confdefs.h >>conftest.$ac_ext
10424cat >>conftest.$ac_ext <<_ACEOF
10425/* end confdefs.h. */
10426$ac_includes_default
10427#include <openssl/ssl.h>
10428_ACEOF
10429rm -f conftest.$ac_objext
Benny Prijonofdafd402008-01-23 14:34:46 +000010430if { (ac_try="$ac_compile"
10431case "(($ac_try" in
10432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433 *) ac_try_echo=$ac_try;;
10434esac
10435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436 (eval "$ac_compile") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010437 ac_status=$?
10438 grep -v '^ *+' conftest.er1 >conftest.err
10439 rm -f conftest.er1
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +000010442 (exit $ac_status); } && {
10443 test -z "$ac_c_werror_flag" ||
10444 test ! -s conftest.err
10445 } && test -s conftest.$ac_objext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010446 ac_header_compiler=yes
10447else
10448 echo "$as_me: failed program was:" >&5
10449sed 's/^/| /' conftest.$ac_ext >&5
10450
Benny Prijonofdafd402008-01-23 14:34:46 +000010451 ac_header_compiler=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010452fi
Benny Prijonofdafd402008-01-23 14:34:46 +000010453
10454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10455{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10456echo "${ECHO_T}$ac_header_compiler" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010457
10458# Is the header present?
Benny Prijonofdafd402008-01-23 14:34:46 +000010459{ echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10460echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010461cat >conftest.$ac_ext <<_ACEOF
10462/* confdefs.h. */
10463_ACEOF
10464cat confdefs.h >>conftest.$ac_ext
10465cat >>conftest.$ac_ext <<_ACEOF
10466/* end confdefs.h. */
10467#include <openssl/ssl.h>
10468_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +000010469if { (ac_try="$ac_cpp conftest.$ac_ext"
10470case "(($ac_try" in
10471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472 *) ac_try_echo=$ac_try;;
10473esac
10474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010476 ac_status=$?
10477 grep -v '^ *+' conftest.er1 >conftest.err
10478 rm -f conftest.er1
10479 cat conftest.err >&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +000010481 (exit $ac_status); } >/dev/null && {
10482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10483 test ! -s conftest.err
10484 }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010485 ac_header_preproc=yes
10486else
10487 echo "$as_me: failed program was:" >&5
10488sed 's/^/| /' conftest.$ac_ext >&5
10489
10490 ac_header_preproc=no
10491fi
Benny Prijonofdafd402008-01-23 14:34:46 +000010492
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010493rm -f conftest.err conftest.$ac_ext
Benny Prijonofdafd402008-01-23 14:34:46 +000010494{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10495echo "${ECHO_T}$ac_header_preproc" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010496
10497# So? What about this header?
10498case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10499 yes:no: )
10500 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10501echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10502 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
10503echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
10504 ac_header_preproc=yes
10505 ;;
10506 no:yes:* )
10507 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
10508echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
10509 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
10510echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
10511 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
10512echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
10514echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10515 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
10516echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
10517 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
10518echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
Benny Prijonofdafd402008-01-23 14:34:46 +000010519
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010520 ;;
10521esac
Benny Prijonofdafd402008-01-23 14:34:46 +000010522{ echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10523echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010524if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10526else
10527 ac_cv_header_openssl_ssl_h=$ac_header_preproc
10528fi
Benny Prijonofdafd402008-01-23 14:34:46 +000010529{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10530echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010531
10532fi
10533if test $ac_cv_header_openssl_ssl_h = yes; then
10534 openssl_h_present=1
10535fi
10536
10537
Benny Prijonofdafd402008-01-23 14:34:46 +000010538 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
10539echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010540if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
10541 echo $ECHO_N "(cached) $ECHO_C" >&6
10542else
10543 ac_check_lib_save_LIBS=$LIBS
10544LIBS="-lssl $LIBS"
10545cat >conftest.$ac_ext <<_ACEOF
10546/* confdefs.h. */
10547_ACEOF
10548cat confdefs.h >>conftest.$ac_ext
10549cat >>conftest.$ac_ext <<_ACEOF
10550/* end confdefs.h. */
10551
Benny Prijonofdafd402008-01-23 14:34:46 +000010552/* Override any GCC internal prototype to avoid an error.
10553 Use char because int might match the return type of a GCC
10554 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010555#ifdef __cplusplus
10556extern "C"
10557#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010558char SSL_library_init ();
10559int
10560main ()
10561{
Benny Prijonofdafd402008-01-23 14:34:46 +000010562return SSL_library_init ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010563 ;
10564 return 0;
10565}
10566_ACEOF
10567rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonofdafd402008-01-23 14:34:46 +000010568if { (ac_try="$ac_link"
10569case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;;
10572esac
10573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574 (eval "$ac_link") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010575 ac_status=$?
10576 grep -v '^ *+' conftest.er1 >conftest.err
10577 rm -f conftest.er1
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Benny Prijonofdafd402008-01-23 14:34:46 +000010580 (exit $ac_status); } && {
10581 test -z "$ac_c_werror_flag" ||
10582 test ! -s conftest.err
10583 } && test -s conftest$ac_exeext &&
10584 $as_test_x conftest$ac_exeext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010585 ac_cv_lib_ssl_SSL_library_init=yes
10586else
10587 echo "$as_me: failed program was:" >&5
10588sed 's/^/| /' conftest.$ac_ext >&5
10589
Benny Prijonofdafd402008-01-23 14:34:46 +000010590 ac_cv_lib_ssl_SSL_library_init=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010591fi
Benny Prijonofdafd402008-01-23 14:34:46 +000010592
10593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010594 conftest$ac_exeext conftest.$ac_ext
10595LIBS=$ac_check_lib_save_LIBS
10596fi
Benny Prijonofdafd402008-01-23 14:34:46 +000010597{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
10598echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010599if test $ac_cv_lib_ssl_SSL_library_init = yes; then
10600 libssl_present=1 && LIBS="$LIBS -lssl"
10601fi
10602
Benny Prijonofdafd402008-01-23 14:34:46 +000010603 { echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
10604echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010605if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10607else
10608 ac_check_lib_save_LIBS=$LIBS
10609LIBS="-lcrypto $LIBS"
10610cat >conftest.$ac_ext <<_ACEOF
10611/* confdefs.h. */
10612_ACEOF
10613cat confdefs.h >>conftest.$ac_ext
10614cat >>conftest.$ac_ext <<_ACEOF
10615/* end confdefs.h. */
10616
Benny Prijonofdafd402008-01-23 14:34:46 +000010617/* Override any GCC internal prototype to avoid an error.
10618 Use char because int might match the return type of a GCC
10619 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010620#ifdef __cplusplus
10621extern "C"
10622#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010623char ERR_load_BIO_strings ();
10624int
10625main ()
10626{
Benny Prijonofdafd402008-01-23 14:34:46 +000010627return ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010628 ;
10629 return 0;
10630}
10631_ACEOF
10632rm -f conftest.$ac_objext conftest$ac_exeext
Benny Prijonofdafd402008-01-23 14:34:46 +000010633if { (ac_try="$ac_link"
10634case "(($ac_try" in
10635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10636 *) ac_try_echo=$ac_try;;
10637esac
10638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10639 (eval "$ac_link") 2>conftest.er1
Benny Prijono7e0d75f2006-12-25 20:34:14 +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 Prijonofdafd402008-01-23 14:34:46 +000010645 (exit $ac_status); } && {
10646 test -z "$ac_c_werror_flag" ||
10647 test ! -s conftest.err
10648 } && test -s conftest$ac_exeext &&
10649 $as_test_x conftest$ac_exeext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010650 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
10651else
10652 echo "$as_me: failed program was:" >&5
10653sed 's/^/| /' conftest.$ac_ext >&5
10654
Benny Prijonofdafd402008-01-23 14:34:46 +000010655 ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010656fi
Benny Prijonofdafd402008-01-23 14:34:46 +000010657
10658rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010659 conftest$ac_exeext conftest.$ac_ext
10660LIBS=$ac_check_lib_save_LIBS
10661fi
Benny Prijonofdafd402008-01-23 14:34:46 +000010662{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
10663echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010664if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
10665 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
10666fi
10667
10668 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
Benny Prijonofdafd402008-01-23 14:34:46 +000010669 { echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
10670echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010671 cat >>confdefs.h <<\_ACEOF
10672#define PJSIP_HAS_TLS_TRANSPORT 1
10673_ACEOF
10674
10675 else
Benny Prijonofdafd402008-01-23 14:34:46 +000010676 { echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
10677echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010678 fi
10679
Benny Prijonofdafd402008-01-23 14:34:46 +000010680fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010681
10682
10683
10684
Benny Prijonofdafd402008-01-23 14:34:46 +000010685
10686{ echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
10687echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010688case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010689 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010690#define PJ_SELECT_NEEDS_NFDS 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010691_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010692
Benny Prijonofdafd402008-01-23 14:34:46 +000010693 { echo "$as_me:$LINENO: result: yes" >&5
10694echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010695 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010696 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010697#define PJ_SELECT_NEEDS_NFDS 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010698_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010699
Benny Prijonofdafd402008-01-23 14:34:46 +000010700 { echo "$as_me:$LINENO: result: no (default)" >&5
10701echo "${ECHO_T}no (default)" >&6; }
10702 { echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
10703echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010704 ;;
10705esac
10706
Benny Prijonofdafd402008-01-23 14:34:46 +000010707{ echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
10708echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010709case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010710 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010711#define PJ_THREAD_SET_STACK_SIZE 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010712_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010713
Benny Prijonofdafd402008-01-23 14:34:46 +000010714 { echo "$as_me:$LINENO: result: yes" >&5
10715echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010716 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010717 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010718#define PJ_THREAD_SET_STACK_SIZE 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010719_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010720
Benny Prijonofdafd402008-01-23 14:34:46 +000010721 { echo "$as_me:$LINENO: result: no (default)" >&5
10722echo "${ECHO_T}no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010723 ;;
10724esac
10725
Benny Prijonofdafd402008-01-23 14:34:46 +000010726{ echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
10727echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010728case $target in
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010729 *rtems*) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010730#define PJ_THREAD_ALLOCATE_STACK 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010731_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010732
Benny Prijonofdafd402008-01-23 14:34:46 +000010733 { echo "$as_me:$LINENO: result: yes" >&5
10734echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010735 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010736 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010737#define PJ_THREAD_ALLOCATE_STACK 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010738_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010739
Benny Prijonofdafd402008-01-23 14:34:46 +000010740 { echo "$as_me:$LINENO: result: no (default)" >&5
10741echo "${ECHO_T}no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010742 ;;
10743esac
10744
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010745case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010746 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010747 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010748#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010749_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010750
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010751 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010752 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010753#define PJ_BLOCKING_ERROR_VAL EAGAIN
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010754_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010755
Benny Prijonofdafd402008-01-23 14:34:46 +000010756 { echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
10757echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010758 ;;
10759esac
10760
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010761case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010762 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010763 cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010764#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010765_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010766
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010767 ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010768 *) cat >>confdefs.h <<\_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010769#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010770_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010771
Benny Prijonofdafd402008-01-23 14:34:46 +000010772 { echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
10773echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010774 ;;
10775esac
10776
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010777
10778
10779
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010780if test "$build" = "$host"; then
10781 ac_cross_compile=
10782else
Benny Prijono5b818b22006-09-17 22:58:51 +000010783 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010784fi
10785ac_linux_poll=select
10786
10787ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010788
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010789
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010790case $target in
10791 *rtems*)
10792 ac_main_obj=main_rtems.o
10793 ;;
10794 *)
10795 ac_main_obj=main.o
10796 ;;
10797esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010798
10799cat >confcache <<\_ACEOF
10800# This file is a shell script that caches the results of configure
10801# tests run on this system so they can be shared between configure
10802# scripts and configure runs, see configure's option --config-cache.
10803# It is not useful on other systems. If it contains results you don't
10804# want to keep, you may remove or edit it.
10805#
10806# config.status only pays attention to the cache file if you give it
10807# the --recheck option to rerun configure.
10808#
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010809# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010810# loading this file, other *unset* `ac_cv_foo' will be assigned the
10811# following values.
10812
10813_ACEOF
10814
10815# The following way of writing the cache mishandles newlines in values,
10816# but we know of no workaround that is simple, portable, and efficient.
Benny Prijonofdafd402008-01-23 14:34:46 +000010817# So, we kill variables containing newlines.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010818# Ultrix sh set writes to stderr and can't be redirected directly,
10819# and sets the high bit in the cache file unless we assign to the vars.
Benny Prijonofdafd402008-01-23 14:34:46 +000010820(
10821 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10822 eval ac_val=\$$ac_var
10823 case $ac_val in #(
10824 *${as_nl}*)
10825 case $ac_var in #(
10826 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10827echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10828 esac
10829 case $ac_var in #(
10830 _ | IFS | as_nl) ;; #(
10831 *) $as_unset $ac_var ;;
10832 esac ;;
10833 esac
10834 done
10835
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010836 (set) 2>&1 |
Benny Prijonofdafd402008-01-23 14:34:46 +000010837 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10838 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010839 # `set' does not quote correctly, so add quotes (double-quote
10840 # substitution turns \\\\ into \\, and sed turns \\ into \).
10841 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010842 "s/'/'\\\\''/g;
10843 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Benny Prijonofdafd402008-01-23 14:34:46 +000010844 ;; #(
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010845 *)
10846 # `set' quotes correctly as required by POSIX, so do not add quotes.
Benny Prijonofdafd402008-01-23 14:34:46 +000010847 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010848 ;;
Benny Prijonofdafd402008-01-23 14:34:46 +000010849 esac |
10850 sort
10851) |
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010852 sed '
Benny Prijonofdafd402008-01-23 14:34:46 +000010853 /^ac_cv_env_/b end
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010854 t clear
Benny Prijonofdafd402008-01-23 14:34:46 +000010855 :clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010856 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10857 t end
Benny Prijonofdafd402008-01-23 14:34:46 +000010858 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10859 :end' >>confcache
10860if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10861 if test -w "$cache_file"; then
10862 test "x$cache_file" != "x/dev/null" &&
10863 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10864echo "$as_me: updating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010865 cat confcache >$cache_file
10866 else
Benny Prijonofdafd402008-01-23 14:34:46 +000010867 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10868echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010869 fi
10870fi
10871rm -f confcache
10872
10873test "x$prefix" = xNONE && prefix=$ac_default_prefix
10874# Let make expand exec_prefix.
10875test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10876
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010877DEFS=-DHAVE_CONFIG_H
10878
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010879ac_libobjs=
10880ac_ltlibobjs=
10881for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10882 # 1. Remove the extension, and $U if already installed.
Benny Prijonofdafd402008-01-23 14:34:46 +000010883 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10884 ac_i=`echo "$ac_i" | sed "$ac_script"`
10885 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10886 # will be set to the directory where LIBOBJS objects are built.
10887 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10888 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010889done
10890LIBOBJS=$ac_libobjs
10891
10892LTLIBOBJS=$ac_ltlibobjs
10893
10894
10895
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010896: ${CONFIG_STATUS=./config.status}
10897ac_clean_files_save=$ac_clean_files
10898ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010899{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010900echo "$as_me: creating $CONFIG_STATUS" >&6;}
10901cat >$CONFIG_STATUS <<_ACEOF
10902#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010903# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010904# Run this file to recreate the current configuration.
10905# Compiler output produced by configure, useful for debugging
10906# configure, is in config.log if it exists.
10907
10908debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010909ac_cs_recheck=false
10910ac_cs_silent=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010911SHELL=\${CONFIG_SHELL-$SHELL}
10912_ACEOF
10913
10914cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010915## --------------------- ##
10916## M4sh Initialization. ##
10917## --------------------- ##
10918
Benny Prijonofdafd402008-01-23 14:34:46 +000010919# Be more Bourne compatible
10920DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010921if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10922 emulate sh
10923 NULLCMD=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010924 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10925 # is contrary to our usage. Disable this feature.
10926 alias -g '${1+"$@"}'='"$@"'
Benny Prijonofdafd402008-01-23 14:34:46 +000010927 setopt NO_GLOB_SUBST
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010928else
Benny Prijonofdafd402008-01-23 14:34:46 +000010929 case `(set -o) 2>/dev/null` in
10930 *posix*) set -o posix ;;
10931esac
10932
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010933fi
10934
10935
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010936
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010937
Benny Prijonofdafd402008-01-23 14:34:46 +000010938# PATH needs CR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010939# Avoid depending upon Character Ranges.
10940as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10941as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10942as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10943as_cr_digits='0123456789'
10944as_cr_alnum=$as_cr_Letters$as_cr_digits
10945
10946# The user is always right.
10947if test "${PATH_SEPARATOR+set}" != set; then
10948 echo "#! /bin/sh" >conf$$.sh
10949 echo "exit 0" >>conf$$.sh
10950 chmod +x conf$$.sh
10951 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10952 PATH_SEPARATOR=';'
10953 else
10954 PATH_SEPARATOR=:
10955 fi
10956 rm -f conf$$.sh
10957fi
10958
Benny Prijonofdafd402008-01-23 14:34:46 +000010959# Support unset when possible.
10960if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10961 as_unset=unset
10962else
10963 as_unset=false
10964fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010965
Benny Prijonofdafd402008-01-23 14:34:46 +000010966
10967# IFS
10968# We need space, tab and new line, in precisely that order. Quoting is
10969# there to prevent editors from complaining about space-tab.
10970# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10971# splitting by setting IFS to empty value.)
10972as_nl='
10973'
10974IFS=" "" $as_nl"
10975
10976# Find who we are. Look in the path if we contain no directory separator.
10977case $0 in
10978 *[\\/]* ) as_myself=$0 ;;
10979 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010980for as_dir in $PATH
10981do
10982 IFS=$as_save_IFS
10983 test -z "$as_dir" && as_dir=.
10984 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10985done
Benny Prijonofdafd402008-01-23 14:34:46 +000010986IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010987
Benny Prijonofdafd402008-01-23 14:34:46 +000010988 ;;
10989esac
10990# We did not find ourselves, most probably we were run as `sh COMMAND'
10991# in which case we are not to be found in the path.
10992if test "x$as_myself" = x; then
10993 as_myself=$0
10994fi
10995if test ! -f "$as_myself"; then
10996 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10997 { (exit 1); exit 1; }
10998fi
10999
11000# Work around bugs in pre-3.0 UWIN ksh.
11001for as_var in ENV MAIL MAILPATH
11002do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11003done
11004PS1='$ '
11005PS2='> '
11006PS4='+ '
11007
11008# NLS nuisances.
11009for as_var in \
11010 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11011 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11012 LC_TELEPHONE LC_TIME
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011013do
Benny Prijonofdafd402008-01-23 14:34:46 +000011014 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11015 eval $as_var=C; export $as_var
11016 else
11017 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11018 fi
11019done
11020
11021# Required to use basename.
11022if expr a : '\(a\)' >/dev/null 2>&1 &&
11023 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11024 as_expr=expr
11025else
11026 as_expr=false
11027fi
11028
11029if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11030 as_basename=basename
11031else
11032 as_basename=false
11033fi
11034
11035
11036# Name of the executable.
11037as_me=`$as_basename -- "$0" ||
11038$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11039 X"$0" : 'X\(//\)$' \| \
11040 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11041echo X/"$0" |
11042 sed '/^.*\/\([^/][^/]*\)\/*$/{
11043 s//\1/
11044 q
11045 }
11046 /^X\/\(\/\/\)$/{
11047 s//\1/
11048 q
11049 }
11050 /^X\/\(\/\).*/{
11051 s//\1/
11052 q
11053 }
11054 s/.*/./; q'`
11055
11056# CDPATH.
11057$as_unset CDPATH
11058
11059
11060
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011061 as_lineno_1=$LINENO
11062 as_lineno_2=$LINENO
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011063 test "x$as_lineno_1" != "x$as_lineno_2" &&
Benny Prijonofdafd402008-01-23 14:34:46 +000011064 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011065
11066 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11067 # uniformly replaced by the line number. The first 'sed' inserts a
Benny Prijonofdafd402008-01-23 14:34:46 +000011068 # line-number line after each line using $LINENO; the second 'sed'
11069 # does the real work. The second script uses 'N' to pair each
11070 # line-number line with the line containing $LINENO, and appends
11071 # trailing '-' during substitution so that $LINENO is not a special
11072 # case at line end.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011073 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Benny Prijonofdafd402008-01-23 14:34:46 +000011074 # scripts with optimization help from Paolo Bonzini. Blame Lee
11075 # E. McMahon (1931-1989) for sed's syntax. :-)
11076 sed -n '
11077 p
11078 /[$]LINENO/=
11079 ' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011080 sed '
Benny Prijonofdafd402008-01-23 14:34:46 +000011081 s/[$]LINENO.*/&-/
11082 t lineno
11083 b
11084 :lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011085 N
Benny Prijonofdafd402008-01-23 14:34:46 +000011086 :loop
11087 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011088 t loop
Benny Prijonofdafd402008-01-23 14:34:46 +000011089 s/-\n.*//
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011090 ' >$as_me.lineno &&
Benny Prijonofdafd402008-01-23 14:34:46 +000011091 chmod +x "$as_me.lineno" ||
11092 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011093 { (exit 1); exit 1; }; }
11094
11095 # Don't try to exec as it changes $[0], causing all sort of problems
11096 # (the dirname of $[0] is not the place where we might find the
Benny Prijonofdafd402008-01-23 14:34:46 +000011097 # original and so on. Autoconf is especially sensitive to this).
11098 . "./$as_me.lineno"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011099 # Exit status is that of the last command.
11100 exit
11101}
11102
11103
Benny Prijonofdafd402008-01-23 14:34:46 +000011104if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11105 as_dirname=dirname
11106else
11107 as_dirname=false
11108fi
11109
11110ECHO_C= ECHO_N= ECHO_T=
11111case `echo -n x` in
11112-n*)
11113 case `echo 'x\c'` in
11114 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11115 *) ECHO_C='\c';;
11116 esac;;
11117*)
11118 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011119esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011120
Benny Prijonofdafd402008-01-23 14:34:46 +000011121if expr a : '\(a\)' >/dev/null 2>&1 &&
11122 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011123 as_expr=expr
11124else
11125 as_expr=false
11126fi
11127
11128rm -f conf$$ conf$$.exe conf$$.file
Benny Prijonofdafd402008-01-23 14:34:46 +000011129if test -d conf$$.dir; then
11130 rm -f conf$$.dir/conf$$.file
11131else
11132 rm -f conf$$.dir
11133 mkdir conf$$.dir
11134fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011135echo >conf$$.file
11136if ln -s conf$$.file conf$$ 2>/dev/null; then
Benny Prijonofdafd402008-01-23 14:34:46 +000011137 as_ln_s='ln -s'
11138 # ... but there are two gotchas:
11139 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11140 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11141 # In both cases, we have to default to `cp -p'.
11142 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011143 as_ln_s='cp -p'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011144elif ln conf$$.file conf$$ 2>/dev/null; then
11145 as_ln_s=ln
11146else
11147 as_ln_s='cp -p'
11148fi
Benny Prijonofdafd402008-01-23 14:34:46 +000011149rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11150rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011151
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011152if mkdir -p . 2>/dev/null; then
11153 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +000011154else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011155 test -d ./-p && rmdir ./-p
11156 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +000011157fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000011158
Benny Prijonofdafd402008-01-23 14:34:46 +000011159if test -x / >/dev/null 2>&1; then
11160 as_test_x='test -x'
11161else
11162 if ls -dL / >/dev/null 2>&1; then
11163 as_ls_L_option=L
11164 else
11165 as_ls_L_option=
11166 fi
11167 as_test_x='
11168 eval sh -c '\''
11169 if test -d "$1"; then
11170 test -d "$1/.";
11171 else
11172 case $1 in
11173 -*)set "./$1";;
11174 esac;
11175 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11176 ???[sx]*):;;*)false;;esac;fi
11177 '\'' sh
11178 '
11179fi
11180as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011181
11182# Sed expression to map a string onto a valid CPP name.
11183as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11184
11185# Sed expression to map a string onto a valid variable name.
11186as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11187
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011188
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011189exec 6>&1
11190
Benny Prijonofdafd402008-01-23 14:34:46 +000011191# Save the log message, to keep $[0] and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011192# report actual input values of CONFIG_FILES etc. instead of their
Benny Prijonofdafd402008-01-23 14:34:46 +000011193# values after options handling.
11194ac_log="
Benny Prijonoabcf49c2007-05-15 21:02:54 +000011195This file was extended by pjproject $as_me 0.7, which was
Benny Prijonofdafd402008-01-23 14:34:46 +000011196generated by GNU Autoconf 2.61. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011197
11198 CONFIG_FILES = $CONFIG_FILES
11199 CONFIG_HEADERS = $CONFIG_HEADERS
11200 CONFIG_LINKS = $CONFIG_LINKS
11201 CONFIG_COMMANDS = $CONFIG_COMMANDS
11202 $ $0 $@
11203
Benny Prijonofdafd402008-01-23 14:34:46 +000011204on `(hostname || uname -n) 2>/dev/null | sed 1q`
11205"
11206
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011207_ACEOF
11208
Benny Prijonofdafd402008-01-23 14:34:46 +000011209cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011210# Files that config.status was made for.
Benny Prijonofdafd402008-01-23 14:34:46 +000011211config_files="$ac_config_files"
11212config_headers="$ac_config_headers"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011213
Benny Prijonofdafd402008-01-23 14:34:46 +000011214_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011215
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011216cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011217ac_cs_usage="\
11218\`$as_me' instantiates files from templates according to the
11219current configuration.
11220
11221Usage: $0 [OPTIONS] [FILE]...
11222
11223 -h, --help print this help, then exit
Benny Prijonofdafd402008-01-23 14:34:46 +000011224 -V, --version print version number and configuration settings, then exit
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011225 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011226 -d, --debug don't remove temporary files
11227 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011228 --file=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011229 instantiate the configuration file FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011230 --header=FILE[:TEMPLATE]
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011231 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011232
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011233Configuration files:
11234$config_files
11235
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011236Configuration headers:
11237$config_headers
11238
11239Report bugs to <bug-autoconf@gnu.org>."
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011240
Benny Prijonofdafd402008-01-23 14:34:46 +000011241_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011242cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011243ac_cs_version="\\
Benny Prijonoabcf49c2007-05-15 21:02:54 +000011244pjproject config.status 0.7
Benny Prijonofdafd402008-01-23 14:34:46 +000011245configured by $0, generated by GNU Autoconf 2.61,
11246 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011247
Benny Prijonofdafd402008-01-23 14:34:46 +000011248Copyright (C) 2006 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011249This config.status script is free software; the Free Software Foundation
11250gives unlimited permission to copy, distribute and modify it."
Benny Prijonofdafd402008-01-23 14:34:46 +000011251
11252ac_pwd='$ac_pwd'
11253srcdir='$srcdir'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011254_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011255
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011256cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011257# If no file are specified by the user, then we need to provide default
11258# value. By we need to know if files were specified by the user.
11259ac_need_defaults=:
11260while test $# != 0
11261do
11262 case $1 in
11263 --*=*)
Benny Prijonofdafd402008-01-23 14:34:46 +000011264 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11265 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011266 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011267 ;;
Benny Prijonofdafd402008-01-23 14:34:46 +000011268 *)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011269 ac_option=$1
11270 ac_optarg=$2
11271 ac_shift=shift
11272 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011273 esac
11274
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011275 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011276 # Handling of the options.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011277 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011278 ac_cs_recheck=: ;;
Benny Prijonofdafd402008-01-23 14:34:46 +000011279 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11280 echo "$ac_cs_version"; exit ;;
11281 --debug | --debu | --deb | --de | --d | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011282 debug=: ;;
11283 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011284 $ac_shift
11285 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011286 ac_need_defaults=false;;
11287 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011288 $ac_shift
11289 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011290 ac_need_defaults=false;;
Benny Prijonofdafd402008-01-23 14:34:46 +000011291 --he | --h)
11292 # Conflict between --help and --header
11293 { echo "$as_me: error: ambiguous option: $1
11294Try \`$0 --help' for more information." >&2
11295 { (exit 1); exit 1; }; };;
11296 --help | --hel | -h )
11297 echo "$ac_cs_usage"; exit ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11299 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11300 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011301
11302 # This is an error.
Benny Prijonofdafd402008-01-23 14:34:46 +000011303 -*) { echo "$as_me: error: unrecognized option: $1
11304Try \`$0 --help' for more information." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011305 { (exit 1); exit 1; }; } ;;
11306
Benny Prijonofdafd402008-01-23 14:34:46 +000011307 *) ac_config_targets="$ac_config_targets $1"
11308 ac_need_defaults=false ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011309
11310 esac
11311 shift
11312done
11313
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011314ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011315
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011316if $ac_cs_silent; then
11317 exec 6>/dev/null
11318 ac_configure_extra_args="$ac_configure_extra_args --silent"
11319fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011320
11321_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011322cat >>$CONFIG_STATUS <<_ACEOF
11323if \$ac_cs_recheck; then
Benny Prijonofdafd402008-01-23 14:34:46 +000011324 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11325 CONFIG_SHELL=$SHELL
11326 export CONFIG_SHELL
11327 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011328fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011329
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011330_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +000011331cat >>$CONFIG_STATUS <<\_ACEOF
11332exec 5>>config.log
11333{
11334 echo
11335 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11336## Running $as_me. ##
11337_ASBOX
11338 echo "$ac_log"
11339} >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011340
Benny Prijonofdafd402008-01-23 14:34:46 +000011341_ACEOF
11342cat >>$CONFIG_STATUS <<_ACEOF
11343_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011344
11345cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +000011346
11347# Handling of arguments.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011348for ac_config_target in $ac_config_targets
11349do
Benny Prijonofdafd402008-01-23 14:34:46 +000011350 case $ac_config_target in
11351 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
11352 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
11353 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
11354 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
11355 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
11356 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
11357 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
11358 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
11359 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
11360 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
11361 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
11362 "third_party/build/portaudio/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;;
11363 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
11364
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011365 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011366echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11367 { (exit 1); exit 1; }; };;
11368 esac
11369done
11370
Benny Prijonofdafd402008-01-23 14:34:46 +000011371
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011372# If the user did not use the arguments to specify the items to instantiate,
11373# then the envvar interface is used. Set only those that are not.
11374# We use the long form for the default assignment because of an extremely
11375# bizarre bug on SunOS 4.1.3.
11376if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011377 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011378 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11379fi
11380
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011381# Have a temporary directory for convenience. Make it in the build tree
Benny Prijonofdafd402008-01-23 14:34:46 +000011382# simply because there is no reason against having it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011383# creating and moving files from /tmp can sometimes cause problems.
Benny Prijonofdafd402008-01-23 14:34:46 +000011384# Hook for its removal unless debugging.
11385# Note that there is a small window in which the directory will not be cleaned:
11386# after its creation but before its name has been assigned to `$tmp'.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011387$debug ||
11388{
Benny Prijonofdafd402008-01-23 14:34:46 +000011389 tmp=
11390 trap 'exit_status=$?
11391 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11392' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011393 trap '{ (exit 1); exit 1; }' 1 2 13 15
11394}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011395# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011396
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011397{
Benny Prijonofdafd402008-01-23 14:34:46 +000011398 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011399 test -n "$tmp" && test -d "$tmp"
11400} ||
11401{
Benny Prijonofdafd402008-01-23 14:34:46 +000011402 tmp=./conf$$-$RANDOM
11403 (umask 077 && mkdir "$tmp")
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011404} ||
11405{
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011406 echo "$me: cannot create a temporary directory in ." >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011407 { (exit 1); exit 1; }
11408}
11409
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011410#
Benny Prijonofdafd402008-01-23 14:34:46 +000011411# Set up the sed scripts for CONFIG_FILES section.
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011412#
11413
11414# No need to generate the scripts if there are no CONFIG_FILES.
11415# This happens for instance when ./config.status config.h
Benny Prijonofdafd402008-01-23 14:34:46 +000011416if test -n "$CONFIG_FILES"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011417
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011418_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011419
Benny Prijonofdafd402008-01-23 14:34:46 +000011420
11421
11422ac_delim='%!_!# '
11423for ac_last_try in false false false false false :; do
11424 cat >conf$$subs.sed <<_ACEOF
11425SHELL!$SHELL$ac_delim
11426PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11427PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11428PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11429PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11430PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11431PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11432exec_prefix!$exec_prefix$ac_delim
11433prefix!$prefix$ac_delim
11434program_transform_name!$program_transform_name$ac_delim
11435bindir!$bindir$ac_delim
11436sbindir!$sbindir$ac_delim
11437libexecdir!$libexecdir$ac_delim
11438datarootdir!$datarootdir$ac_delim
11439datadir!$datadir$ac_delim
11440sysconfdir!$sysconfdir$ac_delim
11441sharedstatedir!$sharedstatedir$ac_delim
11442localstatedir!$localstatedir$ac_delim
11443includedir!$includedir$ac_delim
11444oldincludedir!$oldincludedir$ac_delim
11445docdir!$docdir$ac_delim
11446infodir!$infodir$ac_delim
11447htmldir!$htmldir$ac_delim
11448dvidir!$dvidir$ac_delim
11449pdfdir!$pdfdir$ac_delim
11450psdir!$psdir$ac_delim
11451libdir!$libdir$ac_delim
11452localedir!$localedir$ac_delim
11453mandir!$mandir$ac_delim
11454DEFS!$DEFS$ac_delim
11455ECHO_C!$ECHO_C$ac_delim
11456ECHO_N!$ECHO_N$ac_delim
11457ECHO_T!$ECHO_T$ac_delim
11458LIBS!$LIBS$ac_delim
11459build_alias!$build_alias$ac_delim
11460host_alias!$host_alias$ac_delim
11461target_alias!$target_alias$ac_delim
11462build!$build$ac_delim
11463build_cpu!$build_cpu$ac_delim
11464build_vendor!$build_vendor$ac_delim
11465build_os!$build_os$ac_delim
11466host!$host$ac_delim
11467host_cpu!$host_cpu$ac_delim
11468host_vendor!$host_vendor$ac_delim
11469host_os!$host_os$ac_delim
11470target!$target$ac_delim
11471target_cpu!$target_cpu$ac_delim
11472target_vendor!$target_vendor$ac_delim
11473target_os!$target_os$ac_delim
11474CC!$CC$ac_delim
11475CFLAGS!$CFLAGS$ac_delim
11476LDFLAGS!$LDFLAGS$ac_delim
11477CPPFLAGS!$CPPFLAGS$ac_delim
11478ac_ct_CC!$ac_ct_CC$ac_delim
11479EXEEXT!$EXEEXT$ac_delim
11480OBJEXT!$OBJEXT$ac_delim
11481CXX!$CXX$ac_delim
11482CXXFLAGS!$CXXFLAGS$ac_delim
11483ac_ct_CXX!$ac_ct_CXX$ac_delim
11484ac_pjdir!$ac_pjdir$ac_delim
11485CPP!$CPP$ac_delim
11486GREP!$GREP$ac_delim
11487EGREP!$EGREP$ac_delim
11488ac_os_objs!$ac_os_objs$ac_delim
11489ac_pjmedia_snd!$ac_pjmedia_snd$ac_delim
11490ac_pa_cflags!$ac_pa_cflags$ac_delim
11491ac_pa_use_alsa!$ac_pa_use_alsa$ac_delim
11492ac_no_small_filter!$ac_no_small_filter$ac_delim
11493ac_no_large_filter!$ac_no_large_filter$ac_delim
11494ac_no_speex_aec!$ac_no_speex_aec$ac_delim
11495ac_no_g711_codec!$ac_no_g711_codec$ac_delim
11496ac_no_l16_codec!$ac_no_l16_codec$ac_delim
11497ac_no_gsm_codec!$ac_no_gsm_codec$ac_delim
11498ac_no_speex_codec!$ac_no_speex_codec$ac_delim
11499ac_no_ilbc_codec!$ac_no_ilbc_codec$ac_delim
11500ac_no_ssl!$ac_no_ssl$ac_delim
11501openssl_h_present!$openssl_h_present$ac_delim
11502libssl_present!$libssl_present$ac_delim
11503libcrypto_present!$libcrypto_present$ac_delim
11504ac_cross_compile!$ac_cross_compile$ac_delim
11505ac_linux_poll!$ac_linux_poll$ac_delim
11506ac_host!$ac_host$ac_delim
11507ac_main_obj!$ac_main_obj$ac_delim
11508LIBOBJS!$LIBOBJS$ac_delim
11509LTLIBOBJS!$LTLIBOBJS$ac_delim
11510_ACEOF
11511
11512 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
11513 break
11514 elif $ac_last_try; then
11515 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11516echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11517 { (exit 1); exit 1; }; }
11518 else
11519 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011520 fi
Benny Prijonofdafd402008-01-23 14:34:46 +000011521done
11522
11523ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11524if test -n "$ac_eof"; then
11525 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11526 ac_eof=`expr $ac_eof + 1`
11527fi
11528
11529cat >>$CONFIG_STATUS <<_ACEOF
11530cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11531/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11532_ACEOF
11533sed '
11534s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11535s/^/s,@/; s/!/@,|#_!!_#|/
11536:n
11537t n
11538s/'"$ac_delim"'$/,g/; t
11539s/$/\\/; p
11540N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11541' >>$CONFIG_STATUS <conf$$subs.sed
11542rm -f conf$$subs.sed
11543cat >>$CONFIG_STATUS <<_ACEOF
11544:end
11545s/|#_!!_#|//g
11546CEOF$ac_eof
11547_ACEOF
11548
11549
11550# VPATH may cause trouble with some makes, so we remove $(srcdir),
11551# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11552# trailing colons and then remove the whole line if VPATH becomes empty
11553# (actually we leave an empty line to preserve line numbers).
11554if test "x$srcdir" = x.; then
11555 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11556s/:*\$(srcdir):*/:/
11557s/:*\${srcdir}:*/:/
11558s/:*@srcdir@:*/:/
11559s/^\([^=]*=[ ]*\):*/\1/
11560s/:*$//
11561s/^[^=]*=[ ]*$//
11562}'
11563fi
11564
11565cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011566fi # test -n "$CONFIG_FILES"
11567
Benny Prijonofdafd402008-01-23 14:34:46 +000011568
11569for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
11570do
11571 case $ac_tag in
11572 :[FHLC]) ac_mode=$ac_tag; continue;;
11573 esac
11574 case $ac_mode$ac_tag in
11575 :[FHL]*:*);;
11576 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11577echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11578 { (exit 1); exit 1; }; };;
11579 :[FH]-) ac_tag=-:-;;
11580 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11581 esac
11582 ac_save_IFS=$IFS
11583 IFS=:
11584 set x $ac_tag
11585 IFS=$ac_save_IFS
11586 shift
11587 ac_file=$1
11588 shift
11589
11590 case $ac_mode in
11591 :L) ac_source=$1;;
11592 :[FH])
11593 ac_file_inputs=
11594 for ac_f
11595 do
11596 case $ac_f in
11597 -) ac_f="$tmp/stdin";;
11598 *) # Look for the file first in the build tree, then in the source tree
11599 # (if the path is not absolute). The absolute path cannot be DOS-style,
11600 # because $ac_f cannot contain `:'.
11601 test -f "$ac_f" ||
11602 case $ac_f in
11603 [\\/$]*) false;;
11604 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11605 esac ||
11606 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11607echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11608 { (exit 1); exit 1; }; };;
11609 esac
11610 ac_file_inputs="$ac_file_inputs $ac_f"
11611 done
11612
11613 # Let's still pretend it is `configure' which instantiates (i.e., don't
11614 # use $as_me), people would be surprised to read:
11615 # /* config.h. Generated by config.status. */
11616 configure_input="Generated from "`IFS=:
11617 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11618 if test x"$ac_file" != x-; then
11619 configure_input="$ac_file. $configure_input"
11620 { echo "$as_me:$LINENO: creating $ac_file" >&5
11621echo "$as_me: creating $ac_file" >&6;}
11622 fi
11623
11624 case $ac_tag in
11625 *:-:* | *:-) cat >"$tmp/stdin";;
11626 esac
11627 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011628 esac
11629
Benny Prijonofdafd402008-01-23 14:34:46 +000011630 ac_dir=`$as_dirname -- "$ac_file" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011631$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11632 X"$ac_file" : 'X\(//\)[^/]' \| \
11633 X"$ac_file" : 'X\(//\)$' \| \
Benny Prijonofdafd402008-01-23 14:34:46 +000011634 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011635echo X"$ac_file" |
Benny Prijonofdafd402008-01-23 14:34:46 +000011636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11637 s//\1/
11638 q
11639 }
11640 /^X\(\/\/\)[^/].*/{
11641 s//\1/
11642 q
11643 }
11644 /^X\(\/\/\)$/{
11645 s//\1/
11646 q
11647 }
11648 /^X\(\/\).*/{
11649 s//\1/
11650 q
11651 }
11652 s/.*/./; q'`
11653 { as_dir="$ac_dir"
11654 case $as_dir in #(
11655 -*) as_dir=./$as_dir;;
11656 esac
11657 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011658 as_dirs=
Benny Prijonofdafd402008-01-23 14:34:46 +000011659 while :; do
11660 case $as_dir in #(
11661 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11662 *) as_qdir=$as_dir;;
11663 esac
11664 as_dirs="'$as_qdir' $as_dirs"
11665 as_dir=`$as_dirname -- "$as_dir" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011666$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11667 X"$as_dir" : 'X\(//\)[^/]' \| \
11668 X"$as_dir" : 'X\(//\)$' \| \
Benny Prijonofdafd402008-01-23 14:34:46 +000011669 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011670echo X"$as_dir" |
Benny Prijonofdafd402008-01-23 14:34:46 +000011671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11672 s//\1/
11673 q
11674 }
11675 /^X\(\/\/\)[^/].*/{
11676 s//\1/
11677 q
11678 }
11679 /^X\(\/\/\)$/{
11680 s//\1/
11681 q
11682 }
11683 /^X\(\/\).*/{
11684 s//\1/
11685 q
11686 }
11687 s/.*/./; q'`
11688 test -d "$as_dir" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011689 done
Benny Prijonofdafd402008-01-23 14:34:46 +000011690 test -z "$as_dirs" || eval "mkdir $as_dirs"
11691 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11692echo "$as_me: error: cannot create directory $as_dir" >&2;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011693 { (exit 1); exit 1; }; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011694 ac_builddir=.
11695
Benny Prijonofdafd402008-01-23 14:34:46 +000011696case "$ac_dir" in
11697.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11698*)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011699 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Benny Prijonofdafd402008-01-23 14:34:46 +000011700 # A ".." for each directory in $ac_dir_suffix.
11701 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11702 case $ac_top_builddir_sub in
11703 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11704 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11705 esac ;;
11706esac
11707ac_abs_top_builddir=$ac_pwd
11708ac_abs_builddir=$ac_pwd$ac_dir_suffix
11709# for backward compatibility:
11710ac_top_builddir=$ac_top_build_prefix
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011711
11712case $srcdir in
Benny Prijonofdafd402008-01-23 14:34:46 +000011713 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011714 ac_srcdir=.
Benny Prijonofdafd402008-01-23 14:34:46 +000011715 ac_top_srcdir=$ac_top_builddir_sub
11716 ac_abs_top_srcdir=$ac_pwd ;;
11717 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011718 ac_srcdir=$srcdir$ac_dir_suffix;
Benny Prijonofdafd402008-01-23 14:34:46 +000011719 ac_top_srcdir=$srcdir
11720 ac_abs_top_srcdir=$srcdir ;;
11721 *) # Relative name.
11722 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11723 ac_top_srcdir=$ac_top_build_prefix$srcdir
11724 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011725esac
Benny Prijonofdafd402008-01-23 14:34:46 +000011726ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011727
11728
Benny Prijonofdafd402008-01-23 14:34:46 +000011729 case $ac_mode in
11730 :F)
11731 #
11732 # CONFIG_FILE
11733 #
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011734
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011735_ACEOF
Benny Prijonofdafd402008-01-23 14:34:46 +000011736
11737cat >>$CONFIG_STATUS <<\_ACEOF
11738# If the template does not know about datarootdir, expand it.
11739# FIXME: This hack should be removed a few years after 2.60.
11740ac_datarootdir_hack=; ac_datarootdir_seen=
11741
11742case `sed -n '/datarootdir/ {
11743 p
11744 q
11745}
11746/@datadir@/p
11747/@docdir@/p
11748/@infodir@/p
11749/@localedir@/p
11750/@mandir@/p
11751' $ac_file_inputs` in
11752*datarootdir*) ac_datarootdir_seen=yes;;
11753*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11754 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11755echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11756_ACEOF
11757cat >>$CONFIG_STATUS <<_ACEOF
11758 ac_datarootdir_hack='
11759 s&@datadir@&$datadir&g
11760 s&@docdir@&$docdir&g
11761 s&@infodir@&$infodir&g
11762 s&@localedir@&$localedir&g
11763 s&@mandir@&$mandir&g
11764 s&\\\${datarootdir}&$datarootdir&g' ;;
11765esac
11766_ACEOF
11767
11768# Neutralize VPATH when `$srcdir' = `.'.
11769# Shell code in configure.ac might set extrasub.
11770# FIXME: do we really want to maintain this feature?
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011771cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011772 sed "$ac_vpsub
11773$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011774_ACEOF
11775cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011776:t
11777/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Benny Prijonofdafd402008-01-23 14:34:46 +000011778s&@configure_input@&$configure_input&;t t
11779s&@top_builddir@&$ac_top_builddir_sub&;t t
11780s&@srcdir@&$ac_srcdir&;t t
11781s&@abs_srcdir@&$ac_abs_srcdir&;t t
11782s&@top_srcdir@&$ac_top_srcdir&;t t
11783s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11784s&@builddir@&$ac_builddir&;t t
11785s&@abs_builddir@&$ac_abs_builddir&;t t
11786s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11787$ac_datarootdir_hack
11788" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011789
Benny Prijonofdafd402008-01-23 14:34:46 +000011790test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11791 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11792 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11793 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11794which seems to be undefined. Please make sure it is defined." >&5
11795echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11796which seems to be undefined. Please make sure it is defined." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011797
Benny Prijonofdafd402008-01-23 14:34:46 +000011798 rm -f "$tmp/stdin"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011799 case $ac_file in
Benny Prijonofdafd402008-01-23 14:34:46 +000011800 -) cat "$tmp/out"; rm -f "$tmp/out";;
11801 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011802 esac
Benny Prijonofdafd402008-01-23 14:34:46 +000011803 ;;
11804 :H)
11805 #
11806 # CONFIG_HEADER
11807 #
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011808_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011809
Benny Prijonofdafd402008-01-23 14:34:46 +000011810# Transform confdefs.h into a sed script `conftest.defines', that
11811# substitutes the proper values into config.h.in to produce config.h.
11812rm -f conftest.defines conftest.tail
11813# First, append a space to every undef/define line, to ease matching.
11814echo 's/$/ /' >conftest.defines
11815# Then, protect against being on the right side of a sed subst, or in
11816# an unquoted here document, in config.status. If some macros were
11817# called several times there might be several #defines for the same
11818# symbol, which is useless. But do not sort them, since the last
11819# AC_DEFINE must be honored.
11820ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11821# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11822# NAME is the cpp macro being defined, VALUE is the value it is being given.
11823# PARAMS is the parameter list in the macro definition--in most cases, it's
11824# just an empty string.
11825ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11826ac_dB='\\)[ (].*,\\1define\\2'
11827ac_dC=' '
11828ac_dD=' ,'
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011829
Benny Prijonofdafd402008-01-23 14:34:46 +000011830uniq confdefs.h |
11831 sed -n '
11832 t rset
11833 :rset
11834 s/^[ ]*#[ ]*define[ ][ ]*//
11835 t ok
11836 d
11837 :ok
11838 s/[\\&,]/\\&/g
11839 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11840 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11841 ' >>conftest.defines
11842
11843# Remove the space that was appended to ease matching.
11844# Then replace #undef with comments. This is necessary, for
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011845# example, in the case of _POSIX_SOURCE, which is predefined and required
11846# on some systems where configure will not decide to define it.
Benny Prijonofdafd402008-01-23 14:34:46 +000011847# (The regexp can be short, since the line contains either #define or #undef.)
11848echo 's/ $//
11849s,^[ #]*u.*,/* & */,' >>conftest.defines
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011850
Benny Prijonofdafd402008-01-23 14:34:46 +000011851# Break up conftest.defines:
11852ac_max_sed_lines=50
11853
11854# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11855# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11856# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11857# et cetera.
11858ac_in='$ac_file_inputs'
11859ac_out='"$tmp/out1"'
11860ac_nxt='"$tmp/out2"'
11861
11862while :
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011863do
Benny Prijonofdafd402008-01-23 14:34:46 +000011864 # Write a here document:
11865 cat >>$CONFIG_STATUS <<_ACEOF
11866 # First, check the format of the line:
11867 cat >"\$tmp/defines.sed" <<\\CEOF
11868/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11869/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11870b
11871:def
11872_ACEOF
11873 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011874 echo 'CEOF
Benny Prijonofdafd402008-01-23 14:34:46 +000011875 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11876 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11877 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11878 grep . conftest.tail >/dev/null || break
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011879 rm -f conftest.defines
11880 mv conftest.tail conftest.defines
11881done
Benny Prijonofdafd402008-01-23 14:34:46 +000011882rm -f conftest.defines conftest.tail
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011883
Benny Prijonofdafd402008-01-23 14:34:46 +000011884echo "ac_result=$ac_in" >>$CONFIG_STATUS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011885cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011886 if test x"$ac_file" != x-; then
Benny Prijonofdafd402008-01-23 14:34:46 +000011887 echo "/* $configure_input */" >"$tmp/config.h"
11888 cat "$ac_result" >>"$tmp/config.h"
11889 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011890 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011891echo "$as_me: $ac_file is unchanged" >&6;}
11892 else
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011893 rm -f $ac_file
Benny Prijonofdafd402008-01-23 14:34:46 +000011894 mv "$tmp/config.h" $ac_file
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011895 fi
11896 else
Benny Prijonofdafd402008-01-23 14:34:46 +000011897 echo "/* $configure_input */"
11898 cat "$ac_result"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011899 fi
Benny Prijonofdafd402008-01-23 14:34:46 +000011900 rm -f "$tmp/out12"
11901 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011902
Benny Prijonofdafd402008-01-23 14:34:46 +000011903
11904 esac
11905
11906done # for ac_tag
11907
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011908
11909{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011910_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011911chmod +x $CONFIG_STATUS
11912ac_clean_files=$ac_clean_files_save
11913
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011914
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011915# configure is writing to config.log, and then calls config.status.
11916# config.status does its own redirection, appending to config.log.
11917# Unfortunately, on DOS this fails, as config.log is still kept open
11918# by configure, so config.status won't be able to write to it; its
11919# output is simply discarded. So we exec the FD to /dev/null,
11920# effectively closing config.log, so it can be properly (re)opened and
11921# appended to by config.status. When coming back to configure, we
11922# need to make the FD available again.
11923if test "$no_create" != yes; then
11924 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011925 ac_config_status_args=
11926 test "$silent" = yes &&
11927 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011928 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011929 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011930 exec 5>>config.log
11931 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11932 # would make configure fail if this is the last instruction.
11933 $ac_cs_success || { (exit 1); exit 1; }
11934fi
11935
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011936
Benny Prijonod9627842007-04-18 09:24:31 +000011937
Benny Prijonofdafd402008-01-23 14:34:46 +000011938{ echo "$as_me:$LINENO: result:
Benny Prijonod9627842007-04-18 09:24:31 +000011939
Benny Prijonoc16c6e32007-11-18 14:53:47 +000011940Configurations 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 +000011941
Benny Prijonoc16c6e32007-11-18 14:53:47 +000011942Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000011943 - 'user.mak'
11944 - 'pjlib/include/pj/config_site.h'
11945
11946The next step now is to run 'make dep' and 'make'.
11947" >&5
11948echo "${ECHO_T}
11949
Benny Prijonoc16c6e32007-11-18 14:53:47 +000011950Configurations 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 +000011951
Benny Prijonoc16c6e32007-11-18 14:53:47 +000011952Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000011953 - 'user.mak'
11954 - 'pjlib/include/pj/config_site.h'
11955
11956The next step now is to run 'make dep' and 'make'.
Benny Prijonofdafd402008-01-23 14:34:46 +000011957" >&6; }
Benny Prijonod9627842007-04-18 09:24:31 +000011958