blob: e004ef8664360d052204cc2b4f2c7f50ec1dcf10 [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Sauw Mingbe3771a2010-08-27 06:46:29 +00003# Generated by GNU Autoconf 2.61 for pjproject 1.x.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004#
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Sauw Mingbe3771a2010-08-27 06:46:29 +00006# 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.
Sauw Mingbe3771a2010-08-27 06:46:29 +00009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
Sauw Mingbe3771a2010-08-27 06:46:29 +000015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000016 emulate sh
17 NULLCMD=:
Sauw Mingbe3771a2010-08-27 06:46:29 +000018 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +000019 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000021 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +000022else
Sauw Mingbe3771a2010-08-27 06:46:29 +000023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000025esac
Sauw Mingbe3771a2010-08-27 06:46:29 +000026
Benny Prijono7e0d75f2006-12-25 20:34:14 +000027fi
28
29
Sauw Mingbe3771a2010-08-27 06:46:29 +000030
31
32# PATH needs CR
33# 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
Benny Prijonod5233702010-01-13 13:09:45 +000039
Benny Prijono7e0d75f2006-12-25 20:34:14 +000040# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Sauw Mingbe3771a2010-08-27 06:46:29 +000042 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
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000058fi
59
Nanang Izzuddin56e380a2009-04-15 14:45:41 +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.)
Sauw Mingbe3771a2010-08-27 06:46:29 +000066as_nl='
67'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Sauw Mingbe3771a2010-08-27 06:46:29 +000071case $0 in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000072 *[\\/]* ) 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=.
Sauw Mingbe3771a2010-08-27 06:46:29 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000080IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000081
Nanang Izzuddin56e380a2009-04-15 14:45:41 +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
Sauw Mingbe3771a2010-08-27 06:46:29 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000092fi
93
Sauw Mingbe3771a2010-08-27 06:46:29 +000094# 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
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Sauw Mingbe3771a2010-08-27 06:46:29 +0000103for 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
Benny Prijonod4306432010-05-01 22:05:41 +0000107do
Sauw Mingbe3771a2010-08-27 06:46:29 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Benny Prijonod4306432010-05-01 22:05:41 +0000110 else
Sauw Mingbe3771a2010-08-27 06:46:29 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Benny Prijonod4306432010-05-01 22:05:41 +0000112 fi
Sauw Mingbe3771a2010-08-27 06:46:29 +0000113done
Benny Prijonod4306432010-05-01 22:05:41 +0000114
Sauw Mingbe3771a2010-08-27 06:46:29 +0000115# Required to use basename.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000116if 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
Sauw Mingbe3771a2010-08-27 06:46:29 +0000130# Name of the executable.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Sauw Mingbe3771a2010-08-27 06:46:29 +0000135echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000136 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
Sauw Mingbe3771a2010-08-27 06:46:29 +0000150# CDPATH.
151$as_unset CDPATH
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000152
153
Sauw Mingbe3771a2010-08-27 06:46:29 +0000154if 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=
221 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=.
226 case $as_dir in
227 /*)
228 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(
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 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" || {
427
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
430 # 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.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000442 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000447 N
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000450 t loop
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000451 s/-\n.*//
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000452 ' >$as_me.lineno &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000453 chmod +x "$as_me.lineno" ||
Sauw Mingbe3771a2010-08-27 06:46:29 +0000454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000456
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
Nanang Izzuddin56e380a2009-04-15 14:45:41 +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
Sauw Mingbe3771a2010-08-27 06:46:29 +0000465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000472ECHO_C= ECHO_N= ECHO_T=
Sauw Mingbe3771a2010-08-27 06:46:29 +0000473case `echo -n x` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000474-n*)
Sauw Mingbe3771a2010-08-27 06:46:29 +0000475 case `echo 'x\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Sauw Mingbe3771a2010-08-27 06:46:29 +0000477 *) ECHO_C='\c';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000478 esac;;
479*)
480 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000481esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000482
Sauw Mingbe3771a2010-08-27 06:46:29 +0000483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486else
487 as_expr=false
488fi
489
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000490rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
Sauw Mingbe3771a2010-08-27 06:46:29 +0000495 mkdir conf$$.dir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000496fi
Sauw Mingbe3771a2010-08-27 06:46:29 +0000497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499 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'
Sauw Mingbe3771a2010-08-27 06:46:29 +0000506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000508else
509 as_ln_s='cp -p'
510fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +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
Sauw Mingbe3771a2010-08-27 06:46:29 +0000515 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
Nanang Izzuddin56e380a2009-04-15 14:45:41 +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
Sauw Mingbe3771a2010-08-27 06:46:29 +0000532 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000533 else
Sauw Mingbe3771a2010-08-27 06:46:29 +0000534 case $1 in
535 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000536 esac;
Sauw Mingbe3771a2010-08-27 06:46:29 +0000537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000538 ???[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
Sauw Mingbe3771a2010-08-27 06:46:29 +0000551
552exec 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
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000563ac_clean_files=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000564ac_config_libobj_dir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000565LIBOBJS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000566cross_compiling=no
567subdirs=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000568MFLAGS=
569MAKEFLAGS=
Sauw Mingbe3771a2010-08-27 06:46:29 +0000570SHELL=${CONFIG_SHELL-/bin/sh}
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000571
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000572# Identity of this package.
573PACKAGE_NAME='pjproject'
574PACKAGE_TARNAME='pjproject'
Benny Prijono8a9b3b22010-01-14 14:46:54 +0000575PACKAGE_VERSION='1.x'
576PACKAGE_STRING='pjproject 1.x'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000577PACKAGE_BUGREPORT=''
578
579# Factoring default headers for most tests.
580ac_includes_default="\
581#include <stdio.h>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000582#ifdef HAVE_SYS_TYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000583# include <sys/types.h>
584#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000585#ifdef HAVE_SYS_STAT_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000586# include <sys/stat.h>
587#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000588#ifdef STDC_HEADERS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000589# include <stdlib.h>
590# include <stddef.h>
591#else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000592# ifdef HAVE_STDLIB_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000593# include <stdlib.h>
594# endif
595#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +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
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000602#ifdef HAVE_STRINGS_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000603# include <strings.h>
604#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +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
Nanang Izzuddin56e380a2009-04-15 14:45:41 +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
Sauw Mingbe3771a2010-08-27 06:46:29 +0000615ac_subst_vars='SHELL
Benny Prijonod4306432010-05-01 22:05:41 +0000616PATH_SEPARATOR
Sauw Mingbe3771a2010-08-27 06:46:29 +0000617PACKAGE_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
674AR
675LD
676LDOUT
677RANLIB
678LIBEXT
679LIBEXT2
680CC_OUT
681CC_INC
682CC_DEF
683CC_OPTIMIZE
684CC_CFLAGS
685ac_pjdir
686ac_build_mak_vars
687CPP
688GREP
689EGREP
690ac_os_objs
691ac_external_speex
692ac_external_gsm
693ac_pjmedia_snd
694ac_external_pa
695ac_pa_cflags
696ac_pa_use_alsa
697ac_pa_use_oss
698ac_no_small_filter
699ac_no_large_filter
700ac_no_speex_aec
701ac_no_g711_codec
702ac_no_l16_codec
703ac_no_gsm_codec
704ac_no_g722_codec
705ac_no_g7221_codec
706ac_no_speex_codec
707ac_no_ilbc_codec
708ac_no_ssl
709openssl_h_present
710libssl_present
711libcrypto_present
712ac_cross_compile
713ac_linux_poll
714ac_host
715ac_main_obj
716LIBOBJS
717LTLIBOBJS'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000718ac_subst_files=''
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000719 ac_precious_vars='build_alias
720host_alias
721target_alias
722CC
723CFLAGS
724LDFLAGS
725LIBS
726CPPFLAGS
727CXX
728CXXFLAGS
729CCC
730CPP'
731
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000732
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000733# Initialize some variables set by options.
734ac_init_help=
735ac_init_version=false
736# The variables have the same names as the options, with
737# dashes changed to underlines.
738cache_file=/dev/null
739exec_prefix=NONE
740no_create=
741no_recursion=
742prefix=NONE
743program_prefix=NONE
744program_suffix=NONE
745program_transform_name=s,x,x,
746silent=
747site=
748srcdir=
749verbose=
750x_includes=NONE
751x_libraries=NONE
752
753# Installation directory options.
754# These are left unexpanded so users can "make install exec_prefix=/foo"
755# and all the variables that are supposed to be based on exec_prefix
756# by default will actually change.
757# Use braces instead of parens because sh, perl, etc. also accept them.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000758# (The list follows the same order as the GNU Coding Standards.)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000759bindir='${exec_prefix}/bin'
760sbindir='${exec_prefix}/sbin'
761libexecdir='${exec_prefix}/libexec'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000762datarootdir='${prefix}/share'
763datadir='${datarootdir}'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000764sysconfdir='${prefix}/etc'
765sharedstatedir='${prefix}/com'
766localstatedir='${prefix}/var'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000767includedir='${prefix}/include'
768oldincludedir='/usr/include'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000769docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
770infodir='${datarootdir}/info'
771htmldir='${docdir}'
772dvidir='${docdir}'
773pdfdir='${docdir}'
774psdir='${docdir}'
775libdir='${exec_prefix}/lib'
776localedir='${datarootdir}/locale'
777mandir='${datarootdir}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000778
779ac_prev=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000780ac_dashdash=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000781for ac_option
782do
783 # If the previous option needs an argument, assign it.
784 if test -n "$ac_prev"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000785 eval $ac_prev=\$ac_option
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000786 ac_prev=
787 continue
788 fi
789
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000790 case $ac_option in
791 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
792 *) ac_optarg=yes ;;
793 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000794
795 # Accept the important Cygnus configure options, so we can diagnose typos.
796
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000797 case $ac_dashdash$ac_option in
798 --)
799 ac_dashdash=yes ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000800
801 -bindir | --bindir | --bindi | --bind | --bin | --bi)
802 ac_prev=bindir ;;
803 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
804 bindir=$ac_optarg ;;
805
806 -build | --build | --buil | --bui | --bu)
807 ac_prev=build_alias ;;
808 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
809 build_alias=$ac_optarg ;;
810
811 -cache-file | --cache-file | --cache-fil | --cache-fi \
812 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
813 ac_prev=cache_file ;;
814 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
815 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
816 cache_file=$ac_optarg ;;
817
818 --config-cache | -C)
819 cache_file=config.cache ;;
820
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000821 -datadir | --datadir | --datadi | --datad)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000822 ac_prev=datadir ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000823 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000824 datadir=$ac_optarg ;;
825
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000826 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
827 | --dataroo | --dataro | --datar)
828 ac_prev=datarootdir ;;
829 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
830 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
831 datarootdir=$ac_optarg ;;
832
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000833 -disable-* | --disable-*)
Sauw Mingbe3771a2010-08-27 06:46:29 +0000834 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000835 # Reject names that are not valid shell variable names.
Sauw Mingbe3771a2010-08-27 06:46:29 +0000836 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
837 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
838 { (exit 1); exit 1; }; }
839 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
840 eval enable_$ac_feature=no ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000841
842 -docdir | --docdir | --docdi | --doc | --do)
843 ac_prev=docdir ;;
844 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
845 docdir=$ac_optarg ;;
846
847 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
848 ac_prev=dvidir ;;
849 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
850 dvidir=$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000851
852 -enable-* | --enable-*)
Sauw Mingbe3771a2010-08-27 06:46:29 +0000853 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000854 # Reject names that are not valid shell variable names.
Sauw Mingbe3771a2010-08-27 06:46:29 +0000855 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
856 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
857 { (exit 1); exit 1; }; }
858 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
859 eval enable_$ac_feature=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000860
861 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
862 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
863 | --exec | --exe | --ex)
864 ac_prev=exec_prefix ;;
865 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
866 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
867 | --exec=* | --exe=* | --ex=*)
868 exec_prefix=$ac_optarg ;;
869
870 -gas | --gas | --ga | --g)
871 # Obsolete; use --with-gas.
872 with_gas=yes ;;
873
874 -help | --help | --hel | --he | -h)
875 ac_init_help=long ;;
876 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
877 ac_init_help=recursive ;;
878 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
879 ac_init_help=short ;;
880
881 -host | --host | --hos | --ho)
882 ac_prev=host_alias ;;
883 -host=* | --host=* | --hos=* | --ho=*)
884 host_alias=$ac_optarg ;;
885
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000886 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
887 ac_prev=htmldir ;;
888 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
889 | --ht=*)
890 htmldir=$ac_optarg ;;
891
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000892 -includedir | --includedir | --includedi | --included | --include \
893 | --includ | --inclu | --incl | --inc)
894 ac_prev=includedir ;;
895 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
896 | --includ=* | --inclu=* | --incl=* | --inc=*)
897 includedir=$ac_optarg ;;
898
899 -infodir | --infodir | --infodi | --infod | --info | --inf)
900 ac_prev=infodir ;;
901 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
902 infodir=$ac_optarg ;;
903
904 -libdir | --libdir | --libdi | --libd)
905 ac_prev=libdir ;;
906 -libdir=* | --libdir=* | --libdi=* | --libd=*)
907 libdir=$ac_optarg ;;
908
909 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
910 | --libexe | --libex | --libe)
911 ac_prev=libexecdir ;;
912 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
913 | --libexe=* | --libex=* | --libe=*)
914 libexecdir=$ac_optarg ;;
915
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000916 -localedir | --localedir | --localedi | --localed | --locale)
917 ac_prev=localedir ;;
918 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
919 localedir=$ac_optarg ;;
920
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000921 -localstatedir | --localstatedir | --localstatedi | --localstated \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000922 | --localstate | --localstat | --localsta | --localst | --locals)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000923 ac_prev=localstatedir ;;
924 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000925 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000926 localstatedir=$ac_optarg ;;
927
928 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
929 ac_prev=mandir ;;
930 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
931 mandir=$ac_optarg ;;
932
933 -nfp | --nfp | --nf)
934 # Obsolete; use --without-fp.
935 with_fp=no ;;
936
937 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000938 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000939 no_create=yes ;;
940
941 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
942 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
943 no_recursion=yes ;;
944
945 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
946 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
947 | --oldin | --oldi | --old | --ol | --o)
948 ac_prev=oldincludedir ;;
949 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
950 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
951 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
952 oldincludedir=$ac_optarg ;;
953
954 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
955 ac_prev=prefix ;;
956 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
957 prefix=$ac_optarg ;;
958
959 -program-prefix | --program-prefix | --program-prefi | --program-pref \
960 | --program-pre | --program-pr | --program-p)
961 ac_prev=program_prefix ;;
962 -program-prefix=* | --program-prefix=* | --program-prefi=* \
963 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
964 program_prefix=$ac_optarg ;;
965
966 -program-suffix | --program-suffix | --program-suffi | --program-suff \
967 | --program-suf | --program-su | --program-s)
968 ac_prev=program_suffix ;;
969 -program-suffix=* | --program-suffix=* | --program-suffi=* \
970 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
971 program_suffix=$ac_optarg ;;
972
973 -program-transform-name | --program-transform-name \
974 | --program-transform-nam | --program-transform-na \
975 | --program-transform-n | --program-transform- \
976 | --program-transform | --program-transfor \
977 | --program-transfo | --program-transf \
978 | --program-trans | --program-tran \
979 | --progr-tra | --program-tr | --program-t)
980 ac_prev=program_transform_name ;;
981 -program-transform-name=* | --program-transform-name=* \
982 | --program-transform-nam=* | --program-transform-na=* \
983 | --program-transform-n=* | --program-transform-=* \
984 | --program-transform=* | --program-transfor=* \
985 | --program-transfo=* | --program-transf=* \
986 | --program-trans=* | --program-tran=* \
987 | --progr-tra=* | --program-tr=* | --program-t=*)
988 program_transform_name=$ac_optarg ;;
989
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000990 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
991 ac_prev=pdfdir ;;
992 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
993 pdfdir=$ac_optarg ;;
994
995 -psdir | --psdir | --psdi | --psd | --ps)
996 ac_prev=psdir ;;
997 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
998 psdir=$ac_optarg ;;
999
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1001 | -silent | --silent | --silen | --sile | --sil)
1002 silent=yes ;;
1003
1004 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1005 ac_prev=sbindir ;;
1006 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1007 | --sbi=* | --sb=*)
1008 sbindir=$ac_optarg ;;
1009
1010 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1011 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1012 | --sharedst | --shareds | --shared | --share | --shar \
1013 | --sha | --sh)
1014 ac_prev=sharedstatedir ;;
1015 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1016 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1017 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1018 | --sha=* | --sh=*)
1019 sharedstatedir=$ac_optarg ;;
1020
1021 -site | --site | --sit)
1022 ac_prev=site ;;
1023 -site=* | --site=* | --sit=*)
1024 site=$ac_optarg ;;
1025
1026 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1027 ac_prev=srcdir ;;
1028 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1029 srcdir=$ac_optarg ;;
1030
1031 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1032 | --syscon | --sysco | --sysc | --sys | --sy)
1033 ac_prev=sysconfdir ;;
1034 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1035 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1036 sysconfdir=$ac_optarg ;;
1037
1038 -target | --target | --targe | --targ | --tar | --ta | --t)
1039 ac_prev=target_alias ;;
1040 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1041 target_alias=$ac_optarg ;;
1042
1043 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1044 verbose=yes ;;
1045
1046 -version | --version | --versio | --versi | --vers | -V)
1047 ac_init_version=: ;;
1048
1049 -with-* | --with-*)
Sauw Mingbe3771a2010-08-27 06:46:29 +00001050 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001051 # Reject names that are not valid shell variable names.
Sauw Mingbe3771a2010-08-27 06:46:29 +00001052 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1053 { echo "$as_me: error: invalid package name: $ac_package" >&2
1054 { (exit 1); exit 1; }; }
1055 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1056 eval with_$ac_package=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001057
1058 -without-* | --without-*)
Sauw Mingbe3771a2010-08-27 06:46:29 +00001059 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001060 # Reject names that are not valid shell variable names.
Sauw Mingbe3771a2010-08-27 06:46:29 +00001061 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1062 { echo "$as_me: error: invalid package name: $ac_package" >&2
1063 { (exit 1); exit 1; }; }
1064 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1065 eval with_$ac_package=no ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001066
1067 --x)
1068 # Obsolete; use --with-x.
1069 with_x=yes ;;
1070
1071 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1072 | --x-incl | --x-inc | --x-in | --x-i)
1073 ac_prev=x_includes ;;
1074 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1075 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1076 x_includes=$ac_optarg ;;
1077
1078 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1079 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1080 ac_prev=x_libraries ;;
1081 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1082 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1083 x_libraries=$ac_optarg ;;
1084
Sauw Mingbe3771a2010-08-27 06:46:29 +00001085 -*) { echo "$as_me: error: unrecognized option: $ac_option
1086Try \`$0 --help' for more information." >&2
1087 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001088 ;;
1089
1090 *=*)
1091 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1092 # Reject names that are not valid shell variable names.
Sauw Mingbe3771a2010-08-27 06:46:29 +00001093 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1094 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1095 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001096 eval $ac_envvar=\$ac_optarg
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001097 export $ac_envvar ;;
1098
1099 *)
1100 # FIXME: should be removed in autoconf 3.0.
Sauw Mingbe3771a2010-08-27 06:46:29 +00001101 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001102 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Sauw Mingbe3771a2010-08-27 06:46:29 +00001103 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001104 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1105 ;;
1106
1107 esac
1108done
1109
1110if test -n "$ac_prev"; then
1111 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Sauw Mingbe3771a2010-08-27 06:46:29 +00001112 { echo "$as_me: error: missing argument to $ac_option" >&2
1113 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001114fi
1115
Sauw Mingbe3771a2010-08-27 06:46:29 +00001116# Be sure to have absolute directory names.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001117for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1118 datadir sysconfdir sharedstatedir localstatedir includedir \
1119 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1120 libdir localedir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001121do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001122 eval ac_val=\$$ac_var
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001123 case $ac_val in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001124 [\\/$]* | ?:[\\/]* ) continue;;
1125 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001126 esac
Sauw Mingbe3771a2010-08-27 06:46:29 +00001127 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1128 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001129done
1130
1131# There might be people who depend on the old broken behavior: `$host'
1132# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001133# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001134build=$build_alias
1135host=$host_alias
1136target=$target_alias
1137
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001138# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001139if test "x$host_alias" != x; then
1140 if test "x$build_alias" = x; then
1141 cross_compiling=maybe
Sauw Mingbe3771a2010-08-27 06:46:29 +00001142 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001143 If a cross compiler is detected then cross compile mode will be used." >&2
1144 elif test "x$build_alias" != "x$host_alias"; then
1145 cross_compiling=yes
1146 fi
1147fi
1148
1149ac_tool_prefix=
1150test -n "$host_alias" && ac_tool_prefix=$host_alias-
1151
1152test "$silent" = yes && exec 6>/dev/null
1153
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001154
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001155ac_pwd=`pwd` && test -n "$ac_pwd" &&
1156ac_ls_di=`ls -di .` &&
1157ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Sauw Mingbe3771a2010-08-27 06:46:29 +00001158 { echo "$as_me: error: Working directory cannot be determined" >&2
1159 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001160test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Sauw Mingbe3771a2010-08-27 06:46:29 +00001161 { echo "$as_me: error: pwd does not report name of working directory" >&2
1162 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001163
1164
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001165# Find the source files, if location was not specified.
1166if test -z "$srcdir"; then
1167 ac_srcdir_defaulted=yes
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001168 # Try the directory containing this script, then the parent directory.
Sauw Mingbe3771a2010-08-27 06:46:29 +00001169 ac_confdir=`$as_dirname -- "$0" ||
1170$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1171 X"$0" : 'X\(//\)[^/]' \| \
1172 X"$0" : 'X\(//\)$' \| \
1173 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1174echo X"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1176 s//\1/
1177 q
1178 }
1179 /^X\(\/\/\)[^/].*/{
1180 s//\1/
1181 q
1182 }
1183 /^X\(\/\/\)$/{
1184 s//\1/
1185 q
1186 }
1187 /^X\(\/\).*/{
1188 s//\1/
1189 q
1190 }
1191 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001192 srcdir=$ac_confdir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001193 if test ! -r "$srcdir/$ac_unique_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001194 srcdir=..
1195 fi
1196else
1197 ac_srcdir_defaulted=no
1198fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001199if test ! -r "$srcdir/$ac_unique_file"; then
1200 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Sauw Mingbe3771a2010-08-27 06:46:29 +00001201 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1202 { (exit 1); exit 1; }; }
Benny Prijono9489e7a2008-09-19 22:18:50 +00001203fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001204ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1205ac_abs_confdir=`(
Sauw Mingbe3771a2010-08-27 06:46:29 +00001206 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1207 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001208 pwd)`
1209# When building in place, set srcdir=.
1210if test "$ac_abs_confdir" = "$ac_pwd"; then
1211 srcdir=.
1212fi
1213# Remove unnecessary trailing slashes from srcdir.
1214# Double slashes in file names in object file debugging info
1215# mess up M-x gdb in Emacs.
1216case $srcdir in
1217*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1218esac
1219for ac_var in $ac_precious_vars; do
1220 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1221 eval ac_env_${ac_var}_value=\$${ac_var}
1222 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1223 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1224done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001225
1226#
1227# Report the --help message.
1228#
1229if test "$ac_init_help" = "long"; then
1230 # Omit some internal or obsolete options to make the list less imposing.
1231 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001232 cat <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001233\`configure' configures pjproject 1.x to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001234
1235Usage: $0 [OPTION]... [VAR=VALUE]...
1236
1237To assign environment variables (e.g., CC, CFLAGS...), specify them as
1238VAR=VALUE. See below for descriptions of some of the useful variables.
1239
1240Defaults for the options are specified in brackets.
1241
1242Configuration:
1243 -h, --help display this help and exit
1244 --help=short display options specific to this package
1245 --help=recursive display the short help of all the included packages
1246 -V, --version display version information and exit
1247 -q, --quiet, --silent do not print \`checking...' messages
1248 --cache-file=FILE cache test results in FILE [disabled]
1249 -C, --config-cache alias for \`--cache-file=config.cache'
1250 -n, --no-create do not create output files
1251 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1252
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001253Installation directories:
1254 --prefix=PREFIX install architecture-independent files in PREFIX
Sauw Mingbe3771a2010-08-27 06:46:29 +00001255 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001256 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Sauw Mingbe3771a2010-08-27 06:46:29 +00001257 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001258
1259By default, \`make install' will install all the files in
1260\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1261an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1262for instance \`--prefix=\$HOME'.
1263
1264For better control, use the options below.
1265
1266Fine tuning of the installation directories:
Sauw Mingbe3771a2010-08-27 06:46:29 +00001267 --bindir=DIR user executables [EPREFIX/bin]
1268 --sbindir=DIR system admin executables [EPREFIX/sbin]
1269 --libexecdir=DIR program executables [EPREFIX/libexec]
1270 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1271 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1272 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1273 --libdir=DIR object code libraries [EPREFIX/lib]
1274 --includedir=DIR C header files [PREFIX/include]
1275 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1276 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1277 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1278 --infodir=DIR info documentation [DATAROOTDIR/info]
1279 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1280 --mandir=DIR man documentation [DATAROOTDIR/man]
1281 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1282 --htmldir=DIR html documentation [DOCDIR]
1283 --dvidir=DIR dvi documentation [DOCDIR]
1284 --pdfdir=DIR pdf documentation [DOCDIR]
1285 --psdir=DIR ps documentation [DOCDIR]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001286_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001287
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001288 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001289
1290System types:
1291 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001292 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001293 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001294_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001295fi
1296
1297if test -n "$ac_init_help"; then
1298 case $ac_init_help in
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001299 short | recursive ) echo "Configuration of pjproject 1.x:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001300 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001301 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001302
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001303Optional Features:
1304 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1305 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1306 --disable-floating-point
1307 Disable floating point where possible
Benny Prijono9489e7a2008-09-19 22:18:50 +00001308 --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
Benny Prijono1d971622006-09-10 22:27:40 +00001309 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijono0b462322008-03-12 22:44:24 +00001310 --disable-oss Disable OSS audio (default: not disabled)
1311
Benny Prijonoebb2c332008-07-28 23:40:58 +00001312 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001313 --disable-small-filter Exclude small filter in resampling
1314 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001315 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1316 --disable-g711-codec Exclude G.711 codecs from the build
1317 --disable-l16-codec Exclude Linear/L16 codec family from the build
1318 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +00001319 --disable-g722-codec Exclude G.722 codec in the build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001320 --disable-g7221-codec Exclude G.7221 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001321 --disable-speex-codec Exclude Speex codecs in the build
1322 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +00001323 --enable-libsamplerate Link with libsamplerate when available. Note that
1324 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijono0822c192008-08-21 20:59:58 +00001325 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
1326 package and samples location using IPPROOT and
1327 IPPSAMPLES env var or with --with-ipp and
1328 --with-ipp-samples options
Benny Prijonoce1db762007-02-14 02:21:08 +00001329 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001330
1331
Benny Prijonofe0c1272010-01-13 16:28:15 +00001332Optional Packages:
1333 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1334 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001335 --with-external-speex Use external Speex development files, not the one in
1336 "third_party" directory. When this option is set,
1337 make sure that Speex is accessible to use (hint: use
1338 CFLAGS and LDFLAGS env var to set the include/lib
1339 paths)
1340 --with-external-gsm Use external GSM codec library, not the one in
1341 "third_party" directory. When this option is set,
1342 make sure that the GSM include/lib files are
1343 accessible to use (hint: use CFLAGS and LDFLAGS env
1344 var to set the include/lib paths)
1345 --with-external-pa Use external PortAudio development files, not the
1346 one in "third_party" directory. When this option is
1347 set, make sure that PortAudio is accessible to use
1348 (hint: use CFLAGS and LDFLAGS env var to set the
1349 include/lib paths)
Benny Prijono3965f192010-02-10 18:46:05 +00001350 --with-ipp=DIR Specify the Intel IPP location
1351 --with-ipp-samples=DIR Specify the Intel IPP samples location
1352 --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or
Benny Prijono46bd0842010-02-12 14:12:41 +00001353 "em64t. Default is blank for IA32"
Benny Prijonofe0c1272010-01-13 16:28:15 +00001354
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001355Some influential environment variables:
1356 CC C compiler command
1357 CFLAGS C compiler flags
1358 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1359 nonstandard directory <lib dir>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001360 LIBS libraries to pass to the linker, e.g. -l<library>
Sauw Mingbe3771a2010-08-27 06:46:29 +00001361 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001362 you have headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001363 CXX C++ compiler command
1364 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001365 CPP C preprocessor
1366
1367Use these variables to override the choices made by `configure' or to help
1368it to find libraries and programs with nonstandard names/locations.
1369
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001370_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001371ac_status=$?
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001372fi
1373
1374if test "$ac_init_help" = "recursive"; then
1375 # If there are subdirs, report their specific --help.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001376 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Sauw Mingbe3771a2010-08-27 06:46:29 +00001377 test -d "$ac_dir" || continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001378 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001379
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001380case "$ac_dir" in
1381.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382*)
Sauw Mingbe3771a2010-08-27 06:46:29 +00001383 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001384 # A ".." for each directory in $ac_dir_suffix.
Sauw Mingbe3771a2010-08-27 06:46:29 +00001385 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001386 case $ac_top_builddir_sub in
1387 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1389 esac ;;
1390esac
1391ac_abs_top_builddir=$ac_pwd
1392ac_abs_builddir=$ac_pwd$ac_dir_suffix
1393# for backward compatibility:
1394ac_top_builddir=$ac_top_build_prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001395
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001396case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001397 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001398 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001399 ac_top_srcdir=$ac_top_builddir_sub
1400 ac_abs_top_srcdir=$ac_pwd ;;
1401 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001402 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001403 ac_top_srcdir=$srcdir
1404 ac_abs_top_srcdir=$srcdir ;;
1405 *) # Relative name.
1406 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1407 ac_top_srcdir=$ac_top_build_prefix$srcdir
1408 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001409esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001410ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001411
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001412 cd "$ac_dir" || { ac_status=$?; continue; }
1413 # Check for guested configure.
1414 if test -f "$ac_srcdir/configure.gnu"; then
1415 echo &&
1416 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1417 elif test -f "$ac_srcdir/configure"; then
1418 echo &&
1419 $SHELL "$ac_srcdir/configure" --help=recursive
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001420 else
Sauw Mingbe3771a2010-08-27 06:46:29 +00001421 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001422 fi || ac_status=$?
1423 cd "$ac_pwd" || { ac_status=$?; break; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001424 done
1425fi
1426
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001427test -n "$ac_init_help" && exit $ac_status
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001428if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001429 cat <<\_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001430pjproject configure 1.x
Sauw Mingbe3771a2010-08-27 06:46:29 +00001431generated by GNU Autoconf 2.61
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001432
Sauw Mingbe3771a2010-08-27 06:46:29 +00001433Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14342002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001435This configure script is free software; the Free Software Foundation
1436gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001437_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001438 exit
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001439fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001440cat >config.log <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001441This file contains any messages produced by compilers while
1442running configure, to aid debugging if configure makes a mistake.
1443
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001444It was created by pjproject $as_me 1.x, which was
Sauw Mingbe3771a2010-08-27 06:46:29 +00001445generated by GNU Autoconf 2.61. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001446
1447 $ $0 $@
1448
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001449_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001450exec 5>>config.log
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001451{
1452cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001453## --------- ##
1454## Platform. ##
1455## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001456
1457hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1458uname -m = `(uname -m) 2>/dev/null || echo unknown`
1459uname -r = `(uname -r) 2>/dev/null || echo unknown`
1460uname -s = `(uname -s) 2>/dev/null || echo unknown`
1461uname -v = `(uname -v) 2>/dev/null || echo unknown`
1462
1463/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1464/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1465
1466/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1467/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1468/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001469/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001470/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1471/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1472/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1473
1474_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001475
1476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477for as_dir in $PATH
1478do
1479 IFS=$as_save_IFS
1480 test -z "$as_dir" && as_dir=.
Sauw Mingbe3771a2010-08-27 06:46:29 +00001481 echo "PATH: $as_dir"
1482done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001483IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001484
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001485} >&5
1486
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001487cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001488
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001489
1490## ----------- ##
1491## Core tests. ##
1492## ----------- ##
1493
1494_ACEOF
1495
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001496
1497# Keep a trace of the command line.
1498# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001499# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001500# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001501# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001502ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001503ac_configure_args0=
1504ac_configure_args1=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001505ac_must_keep_next=false
1506for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001507do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001508 for ac_arg
1509 do
1510 case $ac_arg in
1511 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1512 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1513 | -silent | --silent | --silen | --sile | --sil)
1514 continue ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001515 *\'*)
Sauw Mingbe3771a2010-08-27 06:46:29 +00001516 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001517 esac
1518 case $ac_pass in
Sauw Mingbe3771a2010-08-27 06:46:29 +00001519 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001520 2)
Sauw Mingbe3771a2010-08-27 06:46:29 +00001521 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001522 if test $ac_must_keep_next = true; then
1523 ac_must_keep_next=false # Got value, back to normal.
1524 else
1525 case $ac_arg in
1526 *=* | --config-cache | -C | -disable-* | --disable-* \
1527 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1528 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1529 | -with-* | --with-* | -without-* | --without-* | --x)
1530 case "$ac_configure_args0 " in
1531 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1532 esac
1533 ;;
1534 -* ) ac_must_keep_next=true ;;
1535 esac
1536 fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00001537 ac_configure_args="$ac_configure_args '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001538 ;;
1539 esac
1540 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001541done
Sauw Mingbe3771a2010-08-27 06:46:29 +00001542$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1543$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 +00001544
1545# When interrupted or exit'd, cleanup temporary files, and complete
1546# config.log. We remove comments because anyway the quotes in there
1547# would cause problems or look ugly.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001548# WARNING: Use '\'' to represent an apostrophe within the trap.
1549# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001550trap 'exit_status=$?
1551 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001552 {
1553 echo
1554
1555 cat <<\_ASBOX
1556## ---------------- ##
1557## Cache variables. ##
1558## ---------------- ##
1559_ASBOX
1560 echo
1561 # The following way of writing the cache mishandles newlines in values,
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001562(
1563 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1564 eval ac_val=\$$ac_var
1565 case $ac_val in #(
1566 *${as_nl}*)
1567 case $ac_var in #(
Sauw Mingbe3771a2010-08-27 06:46:29 +00001568 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1569echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001570 esac
1571 case $ac_var in #(
1572 _ | IFS | as_nl) ;; #(
Sauw Mingbe3771a2010-08-27 06:46:29 +00001573 *) $as_unset $ac_var ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001574 esac ;;
1575 esac
1576 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001577 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001578 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1579 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001580 sed -n \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001581 "s/'\''/'\''\\\\'\'''\''/g;
1582 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1583 ;; #(
Benny Prijonoe2746132008-09-27 13:16:35 +00001584 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001585 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoe2746132008-09-27 13:16:35 +00001586 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001587 esac |
1588 sort
1589)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001590 echo
1591
1592 cat <<\_ASBOX
1593## ----------------- ##
1594## Output variables. ##
1595## ----------------- ##
1596_ASBOX
1597 echo
1598 for ac_var in $ac_subst_vars
1599 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001600 eval ac_val=\$$ac_var
1601 case $ac_val in
Sauw Mingbe3771a2010-08-27 06:46:29 +00001602 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001603 esac
Sauw Mingbe3771a2010-08-27 06:46:29 +00001604 echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001605 done | sort
1606 echo
1607
1608 if test -n "$ac_subst_files"; then
1609 cat <<\_ASBOX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001610## ------------------- ##
1611## File substitutions. ##
1612## ------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001613_ASBOX
1614 echo
1615 for ac_var in $ac_subst_files
1616 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001617 eval ac_val=\$$ac_var
1618 case $ac_val in
Sauw Mingbe3771a2010-08-27 06:46:29 +00001619 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001620 esac
Sauw Mingbe3771a2010-08-27 06:46:29 +00001621 echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001622 done | sort
1623 echo
1624 fi
1625
1626 if test -s confdefs.h; then
1627 cat <<\_ASBOX
1628## ----------- ##
1629## confdefs.h. ##
1630## ----------- ##
1631_ASBOX
1632 echo
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001633 cat confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001634 echo
1635 fi
1636 test "$ac_signal" != 0 &&
Sauw Mingbe3771a2010-08-27 06:46:29 +00001637 echo "$as_me: caught signal $ac_signal"
1638 echo "$as_me: exit $exit_status"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001639 } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001640 rm -f core *.core core.conftest.* &&
1641 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001642 exit $exit_status
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001643' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001644for ac_signal in 1 2 13 15; do
Sauw Mingbe3771a2010-08-27 06:46:29 +00001645 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001646done
1647ac_signal=0
1648
1649# confdefs.h avoids OS command line length limits that DEFS can exceed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001650rm -f -r conftest* confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001651
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001652# Predefined preprocessor variables.
1653
1654cat >>confdefs.h <<_ACEOF
1655#define PACKAGE_NAME "$PACKAGE_NAME"
1656_ACEOF
1657
Sauw Mingbe3771a2010-08-27 06:46:29 +00001658
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001659cat >>confdefs.h <<_ACEOF
1660#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1661_ACEOF
1662
Sauw Mingbe3771a2010-08-27 06:46:29 +00001663
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001664cat >>confdefs.h <<_ACEOF
1665#define PACKAGE_VERSION "$PACKAGE_VERSION"
1666_ACEOF
1667
Sauw Mingbe3771a2010-08-27 06:46:29 +00001668
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001669cat >>confdefs.h <<_ACEOF
1670#define PACKAGE_STRING "$PACKAGE_STRING"
1671_ACEOF
1672
Sauw Mingbe3771a2010-08-27 06:46:29 +00001673
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001674cat >>confdefs.h <<_ACEOF
1675#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1676_ACEOF
1677
1678
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001679# Let the site file select an alternate cache file if it wants to.
Sauw Mingbe3771a2010-08-27 06:46:29 +00001680# Prefer explicitly selected file to automatically selected ones.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001681if test -n "$CONFIG_SITE"; then
Sauw Mingbe3771a2010-08-27 06:46:29 +00001682 set x "$CONFIG_SITE"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001683elif test "x$prefix" != xNONE; then
Sauw Mingbe3771a2010-08-27 06:46:29 +00001684 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001685else
Sauw Mingbe3771a2010-08-27 06:46:29 +00001686 set x "$ac_default_prefix/share/config.site" \
1687 "$ac_default_prefix/etc/config.site"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001688fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00001689shift
1690for ac_site_file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001691do
Sauw Mingbe3771a2010-08-27 06:46:29 +00001692 if test -r "$ac_site_file"; then
1693 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1694echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001695 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001696 . "$ac_site_file"
1697 fi
1698done
1699
1700if test -r "$cache_file"; then
Sauw Mingbe3771a2010-08-27 06:46:29 +00001701 # Some versions of bash will fail to source /dev/null (special
1702 # files actually), so we avoid doing that.
1703 if test -f "$cache_file"; then
1704 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1705echo "$as_me: loading cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001706 case $cache_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001707 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1708 *) . "./$cache_file";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001709 esac
1710 fi
1711else
Sauw Mingbe3771a2010-08-27 06:46:29 +00001712 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1713echo "$as_me: creating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001714 >$cache_file
1715fi
1716
1717# Check that the precious variables saved in the cache have kept the same
1718# value.
1719ac_cache_corrupted=false
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001720for ac_var in $ac_precious_vars; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001721 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1722 eval ac_new_set=\$ac_env_${ac_var}_set
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001723 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1724 eval ac_new_val=\$ac_env_${ac_var}_value
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001725 case $ac_old_set,$ac_new_set in
1726 set,)
Sauw Mingbe3771a2010-08-27 06:46:29 +00001727 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1728echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001729 ac_cache_corrupted=: ;;
1730 ,set)
Sauw Mingbe3771a2010-08-27 06:46:29 +00001731 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1732echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001733 ac_cache_corrupted=: ;;
1734 ,);;
1735 *)
1736 if test "x$ac_old_val" != "x$ac_new_val"; then
Sauw Mingbe3771a2010-08-27 06:46:29 +00001737 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1738echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1739 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1740echo "$as_me: former value: $ac_old_val" >&2;}
1741 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1742echo "$as_me: current value: $ac_new_val" >&2;}
1743 ac_cache_corrupted=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001744 fi;;
1745 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001746 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001747 if test "$ac_new_set" = set; then
1748 case $ac_new_val in
Sauw Mingbe3771a2010-08-27 06:46:29 +00001749 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001750 *) ac_arg=$ac_var=$ac_new_val ;;
1751 esac
1752 case " $ac_configure_args " in
1753 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Sauw Mingbe3771a2010-08-27 06:46:29 +00001754 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001755 esac
1756 fi
1757done
1758if $ac_cache_corrupted; then
Sauw Mingbe3771a2010-08-27 06:46:29 +00001759 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1760echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1761 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1762echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1763 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001764fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00001765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001789
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001790ac_ext=c
1791ac_cpp='$CPP $CPPFLAGS'
1792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001796
1797
Benny Prijono5b818b22006-09-17 22:58:51 +00001798host_orig="$host"
1799
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001800ac_aux_dir=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001801for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Sauw Mingbe3771a2010-08-27 06:46:29 +00001802 if test -f "$ac_dir/install-sh"; then
1803 ac_aux_dir=$ac_dir
1804 ac_install_sh="$ac_aux_dir/install-sh -c"
1805 break
1806 elif test -f "$ac_dir/install.sh"; then
1807 ac_aux_dir=$ac_dir
1808 ac_install_sh="$ac_aux_dir/install.sh -c"
1809 break
1810 elif test -f "$ac_dir/shtool"; then
1811 ac_aux_dir=$ac_dir
1812 ac_install_sh="$ac_aux_dir/shtool install -c"
1813 break
1814 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001815done
1816if test -z "$ac_aux_dir"; then
Sauw Mingbe3771a2010-08-27 06:46:29 +00001817 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1818echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1819 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001820fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001821
1822# These three variables are undocumented and unsupported,
1823# and are intended to be withdrawn in a future Autoconf release.
1824# They can cause serious problems if a builder's source tree is in a directory
1825# whose full name contains unusual characters.
1826ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1827ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1828ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1829
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001830
1831# Make sure we can run config.sub.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001832$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Sauw Mingbe3771a2010-08-27 06:46:29 +00001833 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1834echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1835 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001836
Sauw Mingbe3771a2010-08-27 06:46:29 +00001837{ echo "$as_me:$LINENO: checking build system type" >&5
1838echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1839if test "${ac_cv_build+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001841else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001842 ac_build_alias=$build_alias
1843test "x$ac_build_alias" = x &&
1844 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1845test "x$ac_build_alias" = x &&
Sauw Mingbe3771a2010-08-27 06:46:29 +00001846 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1847echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1848 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001849ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Sauw Mingbe3771a2010-08-27 06:46:29 +00001850 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1851echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1852 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001853
1854fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00001855{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1856echo "${ECHO_T}$ac_cv_build" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001857case $ac_cv_build in
1858*-*-*) ;;
Sauw Mingbe3771a2010-08-27 06:46:29 +00001859*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1860echo "$as_me: error: invalid value of canonical build" >&2;}
1861 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001862esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001863build=$ac_cv_build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001864ac_save_IFS=$IFS; IFS='-'
1865set x $ac_cv_build
1866shift
1867build_cpu=$1
1868build_vendor=$2
1869shift; shift
1870# Remember, the first character of IFS is used to create $*,
1871# except with old shells:
1872build_os=$*
1873IFS=$ac_save_IFS
1874case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001875
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001876
Sauw Mingbe3771a2010-08-27 06:46:29 +00001877{ echo "$as_me:$LINENO: checking host system type" >&5
1878echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1879if test "${ac_cv_host+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001881else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001882 if test "x$host_alias" = x; then
1883 ac_cv_host=$ac_cv_build
1884else
1885 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Sauw Mingbe3771a2010-08-27 06:46:29 +00001886 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1887echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1888 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001889fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001890
1891fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00001892{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1893echo "${ECHO_T}$ac_cv_host" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001894case $ac_cv_host in
1895*-*-*) ;;
Sauw Mingbe3771a2010-08-27 06:46:29 +00001896*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1897echo "$as_me: error: invalid value of canonical host" >&2;}
1898 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001899esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001900host=$ac_cv_host
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001901ac_save_IFS=$IFS; IFS='-'
1902set x $ac_cv_host
1903shift
1904host_cpu=$1
1905host_vendor=$2
1906shift; shift
1907# Remember, the first character of IFS is used to create $*,
1908# except with old shells:
1909host_os=$*
1910IFS=$ac_save_IFS
1911case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001912
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001913
Sauw Mingbe3771a2010-08-27 06:46:29 +00001914{ echo "$as_me:$LINENO: checking target system type" >&5
1915echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1916if test "${ac_cv_target+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001918else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001919 if test "x$target_alias" = x; then
1920 ac_cv_target=$ac_cv_host
1921else
1922 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Sauw Mingbe3771a2010-08-27 06:46:29 +00001923 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1924echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1925 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001926fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001927
1928fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00001929{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1930echo "${ECHO_T}$ac_cv_target" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001931case $ac_cv_target in
1932*-*-*) ;;
Sauw Mingbe3771a2010-08-27 06:46:29 +00001933*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1934echo "$as_me: error: invalid value of canonical target" >&2;}
1935 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001936esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001937target=$ac_cv_target
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001938ac_save_IFS=$IFS; IFS='-'
1939set x $ac_cv_target
1940shift
1941target_cpu=$1
1942target_vendor=$2
1943shift; shift
1944# Remember, the first character of IFS is used to create $*,
1945# except with old shells:
1946target_os=$*
1947IFS=$ac_save_IFS
1948case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001949
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001950
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001951# The aliases save the names the user supplied, while $host etc.
1952# will get canonicalized.
1953test -n "$target_alias" &&
1954 test "$program_prefix$program_suffix$program_transform_name" = \
1955 NONENONEs,x,x, &&
1956 program_prefix=${target_alias}-
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001957ac_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 +00001958
Benny Prijono8ec5eae2010-05-12 10:59:20 +00001959ac_config_files="$ac_config_files build.mak build/os-auto.mak build/cc-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/os-auto.mak third_party/build/portaudio/os-auto.mak"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001960
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001961
Benny Prijono12483112007-03-12 10:44:38 +00001962
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001963if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00001964 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001965else
1966 CFLAGS="$CFLAGS"
1967fi
1968
1969CXXFLAGS="$CFLAGS $CXXFLAGS"
1970
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001971ac_ext=c
1972ac_cpp='$CPP $CPPFLAGS'
1973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1975ac_compiler_gnu=$ac_cv_c_compiler_gnu
1976if test -n "$ac_tool_prefix"; then
1977 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1978set dummy ${ac_tool_prefix}gcc; ac_word=$2
Sauw Mingbe3771a2010-08-27 06:46:29 +00001979{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1981if test "${ac_cv_prog_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001983else
1984 if test -n "$CC"; then
1985 ac_cv_prog_CC="$CC" # Let the user override the test.
1986else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988for as_dir in $PATH
1989do
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
Sauw Mingbe3771a2010-08-27 06:46:29 +00001992 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001993 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 +00001994 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Sauw Mingbe3771a2010-08-27 06:46:29 +00001995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001996 break 2
1997 fi
1998done
Sauw Mingbe3771a2010-08-27 06:46:29 +00001999done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002000IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002001
2002fi
2003fi
2004CC=$ac_cv_prog_CC
2005if test -n "$CC"; then
Sauw Mingbe3771a2010-08-27 06:46:29 +00002006 { echo "$as_me:$LINENO: result: $CC" >&5
2007echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002008else
Sauw Mingbe3771a2010-08-27 06:46:29 +00002009 { echo "$as_me:$LINENO: result: no" >&5
2010echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002011fi
2012
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002013
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002014fi
2015if test -z "$ac_cv_prog_CC"; then
2016 ac_ct_CC=$CC
2017 # Extract the first word of "gcc", so it can be a program name with args.
2018set dummy gcc; ac_word=$2
Sauw Mingbe3771a2010-08-27 06:46:29 +00002019{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2021if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002023else
2024 if test -n "$ac_ct_CC"; then
2025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2026else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028for as_dir in $PATH
2029do
2030 IFS=$as_save_IFS
2031 test -z "$as_dir" && as_dir=.
Sauw Mingbe3771a2010-08-27 06:46:29 +00002032 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002033 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 +00002034 ac_cv_prog_ac_ct_CC="gcc"
Sauw Mingbe3771a2010-08-27 06:46:29 +00002035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002036 break 2
2037 fi
2038done
Sauw Mingbe3771a2010-08-27 06:46:29 +00002039done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002040IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002041
2042fi
2043fi
2044ac_ct_CC=$ac_cv_prog_ac_ct_CC
2045if test -n "$ac_ct_CC"; then
Sauw Mingbe3771a2010-08-27 06:46:29 +00002046 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2047echo "${ECHO_T}$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002048else
Sauw Mingbe3771a2010-08-27 06:46:29 +00002049 { echo "$as_me:$LINENO: result: no" >&5
2050echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002051fi
2052
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002053 if test "x$ac_ct_CC" = x; then
2054 CC=""
2055 else
2056 case $cross_compiling:$ac_tool_warned in
2057yes:)
Sauw Mingbe3771a2010-08-27 06:46:29 +00002058{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2059whose name does not start with the host triplet. If you think this
2060configuration is useful to you, please write to autoconf@gnu.org." >&5
2061echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2062whose name does not start with the host triplet. If you think this
2063configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002064ac_tool_warned=yes ;;
2065esac
2066 CC=$ac_ct_CC
2067 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002068else
2069 CC="$ac_cv_prog_CC"
2070fi
2071
2072if test -z "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002073 if test -n "$ac_tool_prefix"; then
2074 # 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 +00002075set dummy ${ac_tool_prefix}cc; ac_word=$2
Sauw Mingbe3771a2010-08-27 06:46:29 +00002076{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2078if test "${ac_cv_prog_CC+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002080else
2081 if test -n "$CC"; then
2082 ac_cv_prog_CC="$CC" # Let the user override the test.
2083else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085for as_dir in $PATH
2086do
2087 IFS=$as_save_IFS
2088 test -z "$as_dir" && as_dir=.
Sauw Mingbe3771a2010-08-27 06:46:29 +00002089 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002090 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 +00002091 ac_cv_prog_CC="${ac_tool_prefix}cc"
Sauw Mingbe3771a2010-08-27 06:46:29 +00002092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002093 break 2
2094 fi
2095done
Sauw Mingbe3771a2010-08-27 06:46:29 +00002096done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002097IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002098
2099fi
2100fi
2101CC=$ac_cv_prog_CC
2102if test -n "$CC"; then
Sauw Mingbe3771a2010-08-27 06:46:29 +00002103 { echo "$as_me:$LINENO: result: $CC" >&5
2104echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002105else
Sauw Mingbe3771a2010-08-27 06:46:29 +00002106 { echo "$as_me:$LINENO: result: no" >&5
2107echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002108fi
2109
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002110
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002111 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002112fi
2113if test -z "$CC"; then
2114 # Extract the first word of "cc", so it can be a program name with args.
2115set dummy cc; ac_word=$2
Sauw Mingbe3771a2010-08-27 06:46:29 +00002116{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2118if test "${ac_cv_prog_CC+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002120else
2121 if test -n "$CC"; then
2122 ac_cv_prog_CC="$CC" # Let the user override the test.
2123else
2124 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126for as_dir in $PATH
2127do
2128 IFS=$as_save_IFS
2129 test -z "$as_dir" && as_dir=.
Sauw Mingbe3771a2010-08-27 06:46:29 +00002130 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002131 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 +00002132 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2133 ac_prog_rejected=yes
2134 continue
2135 fi
2136 ac_cv_prog_CC="cc"
Sauw Mingbe3771a2010-08-27 06:46:29 +00002137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002138 break 2
2139 fi
2140done
Sauw Mingbe3771a2010-08-27 06:46:29 +00002141done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002142IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002143
2144if test $ac_prog_rejected = yes; then
2145 # We found a bogon in the path, so make sure we never use it.
2146 set dummy $ac_cv_prog_CC
2147 shift
2148 if test $# != 0; then
2149 # We chose a different compiler from the bogus one.
2150 # However, it has the same basename, so the bogon will be chosen
2151 # first if we set CC to just the basename; use the full file name.
2152 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002153 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002154 fi
2155fi
2156fi
2157fi
2158CC=$ac_cv_prog_CC
2159if test -n "$CC"; then
Sauw Mingbe3771a2010-08-27 06:46:29 +00002160 { echo "$as_me:$LINENO: result: $CC" >&5
2161echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002162else
Sauw Mingbe3771a2010-08-27 06:46:29 +00002163 { echo "$as_me:$LINENO: result: no" >&5
2164echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002165fi
2166
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002167
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002168fi
2169if test -z "$CC"; then
2170 if test -n "$ac_tool_prefix"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002171 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002172 do
2173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2174set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Sauw Mingbe3771a2010-08-27 06:46:29 +00002175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2177if test "${ac_cv_prog_CC+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002179else
2180 if test -n "$CC"; then
2181 ac_cv_prog_CC="$CC" # Let the user override the test.
2182else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184for as_dir in $PATH
2185do
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
Sauw Mingbe3771a2010-08-27 06:46:29 +00002188 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002189 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 +00002190 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Sauw Mingbe3771a2010-08-27 06:46:29 +00002191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002192 break 2
2193 fi
2194done
Sauw Mingbe3771a2010-08-27 06:46:29 +00002195done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002196IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002197
2198fi
2199fi
2200CC=$ac_cv_prog_CC
2201if test -n "$CC"; then
Sauw Mingbe3771a2010-08-27 06:46:29 +00002202 { echo "$as_me:$LINENO: result: $CC" >&5
2203echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002204else
Sauw Mingbe3771a2010-08-27 06:46:29 +00002205 { echo "$as_me:$LINENO: result: no" >&5
2206echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002207fi
2208
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002209
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002210 test -n "$CC" && break
2211 done
2212fi
2213if test -z "$CC"; then
2214 ac_ct_CC=$CC
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002215 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002216do
2217 # Extract the first word of "$ac_prog", so it can be a program name with args.
2218set dummy $ac_prog; ac_word=$2
Sauw Mingbe3771a2010-08-27 06:46:29 +00002219{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2221if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002223else
2224 if test -n "$ac_ct_CC"; then
2225 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2226else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228for as_dir in $PATH
2229do
2230 IFS=$as_save_IFS
2231 test -z "$as_dir" && as_dir=.
Sauw Mingbe3771a2010-08-27 06:46:29 +00002232 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002233 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 +00002234 ac_cv_prog_ac_ct_CC="$ac_prog"
Sauw Mingbe3771a2010-08-27 06:46:29 +00002235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002236 break 2
2237 fi
2238done
Sauw Mingbe3771a2010-08-27 06:46:29 +00002239done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002240IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002241
2242fi
2243fi
2244ac_ct_CC=$ac_cv_prog_ac_ct_CC
2245if test -n "$ac_ct_CC"; then
Sauw Mingbe3771a2010-08-27 06:46:29 +00002246 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2247echo "${ECHO_T}$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002248else
Sauw Mingbe3771a2010-08-27 06:46:29 +00002249 { echo "$as_me:$LINENO: result: no" >&5
2250echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002251fi
2252
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002253
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002254 test -n "$ac_ct_CC" && break
2255done
2256
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002257 if test "x$ac_ct_CC" = x; then
2258 CC=""
2259 else
2260 case $cross_compiling:$ac_tool_warned in
2261yes:)
Sauw Mingbe3771a2010-08-27 06:46:29 +00002262{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2263whose name does not start with the host triplet. If you think this
2264configuration is useful to you, please write to autoconf@gnu.org." >&5
2265echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2266whose name does not start with the host triplet. If you think this
2267configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002268ac_tool_warned=yes ;;
2269esac
2270 CC=$ac_ct_CC
2271 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002272fi
2273
2274fi
2275
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002276
Sauw Mingbe3771a2010-08-27 06:46:29 +00002277test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2278See \`config.log' for more details." >&5
2279echo "$as_me: error: no acceptable C compiler found in \$PATH
2280See \`config.log' for more details." >&2;}
2281 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002282
2283# Provide some information about the compiler.
Sauw Mingbe3771a2010-08-27 06:46:29 +00002284echo "$as_me:$LINENO: checking for C compiler version" >&5
2285ac_compiler=`set X $ac_compile; echo $2`
2286{ (ac_try="$ac_compiler --version >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002287case "(($ac_try" in
2288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289 *) ac_try_echo=$ac_try;;
2290esac
Sauw Mingbe3771a2010-08-27 06:46:29 +00002291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2292 (eval "$ac_compiler --version >&5") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002293 ac_status=$?
Sauw Mingbe3771a2010-08-27 06:46:29 +00002294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }
2296{ (ac_try="$ac_compiler -v >&5"
2297case "(($ac_try" in
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2300esac
2301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2302 (eval "$ac_compiler -v >&5") 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }
2306{ (ac_try="$ac_compiler -V >&5"
2307case "(($ac_try" in
2308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2309 *) ac_try_echo=$ac_try;;
2310esac
2311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2312 (eval "$ac_compiler -V >&5") 2>&5
2313 ac_status=$?
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002316
Sauw Mingbe3771a2010-08-27 06:46:29 +00002317cat >conftest.$ac_ext <<_ACEOF
2318/* confdefs.h. */
2319_ACEOF
2320cat confdefs.h >>conftest.$ac_ext
2321cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002322/* end confdefs.h. */
Benny Prijono5bbebc02010-06-15 05:21:43 +00002323
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002324int
2325main ()
2326{
2327
2328 ;
2329 return 0;
2330}
2331_ACEOF
2332ac_clean_files_save=$ac_clean_files
Sauw Mingbe3771a2010-08-27 06:46:29 +00002333ac_clean_files="$ac_clean_files a.out a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002334# Try to create an executable without -o first, disregard a.out.
2335# It will help us diagnose broken compilers, and finding out an intuition
2336# of exeext.
Sauw Mingbe3771a2010-08-27 06:46:29 +00002337{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2338echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2339ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2340#
2341# List of possible output files, starting from the most likely.
2342# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2343# only as a last resort. b.out is created by i960 compilers.
2344ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2345#
2346# The IRIX 6 linker writes into existing files which may not be
2347# executable, retaining their permissions. Remove them first so a
2348# subsequent execution test works.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002349ac_rmfiles=
2350for ac_file in $ac_files
2351do
2352 case $ac_file in
Sauw Mingbe3771a2010-08-27 06:46:29 +00002353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002354 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2355 esac
2356done
2357rm -f $ac_rmfiles
2358
Sauw Mingbe3771a2010-08-27 06:46:29 +00002359if { (ac_try="$ac_link_default"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002360case "(($ac_try" in
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2363esac
Sauw Mingbe3771a2010-08-27 06:46:29 +00002364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002365 (eval "$ac_link_default") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002366 ac_status=$?
Sauw Mingbe3771a2010-08-27 06:46:29 +00002367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002369 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2370# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2371# in a Makefile. We should not override ac_cv_exeext if it was cached,
2372# so that the user can short-circuit this test for compilers unknown to
2373# Autoconf.
2374for ac_file in $ac_files ''
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002375do
2376 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002377 case $ac_file in
Sauw Mingbe3771a2010-08-27 06:46:29 +00002378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002379 ;;
2380 [ab].out )
2381 # We found the default executable, but exeext='' is most
2382 # certainly right.
2383 break;;
2384 *.* )
Sauw Mingbe3771a2010-08-27 06:46:29 +00002385 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002386 then :; else
2387 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2388 fi
2389 # We set ac_cv_exeext here because the later test for it is not
2390 # safe: cross compilers may not add the suffix if given an `-o'
2391 # argument, so we may need to know it at that point already.
2392 # Even if this section looks crufty: it has the advantage of
2393 # actually working.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002394 break;;
2395 * )
2396 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002397 esac
2398done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002399test "$ac_cv_exeext" = no && ac_cv_exeext=
2400
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002401else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002402 ac_file=''
2403fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00002404
2405{ echo "$as_me:$LINENO: result: $ac_file" >&5
2406echo "${ECHO_T}$ac_file" >&6; }
2407if test -z "$ac_file"; then
2408 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002409sed 's/^/| /' conftest.$ac_ext >&5
2410
Sauw Mingbe3771a2010-08-27 06:46:29 +00002411{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2412See \`config.log' for more details." >&5
2413echo "$as_me: error: C compiler cannot create executables
2414See \`config.log' for more details." >&2;}
2415 { (exit 77); exit 77; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002416fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00002417
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002418ac_exeext=$ac_cv_exeext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002419
Sauw Mingbe3771a2010-08-27 06:46:29 +00002420# Check that the compiler produces executables we can run. If not, either
2421# the compiler is broken, or we cross compile.
2422{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2423echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2424# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2425# If not cross compiling, check that we can run a simple program.
2426if test "$cross_compiling" != yes; then
2427 if { ac_try='./$ac_file'
2428 { (case "(($ac_try" in
2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430 *) ac_try_echo=$ac_try;;
2431esac
2432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2433 (eval "$ac_try") 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; }; then
2437 cross_compiling=no
2438 else
2439 if test "$cross_compiling" = maybe; then
2440 cross_compiling=yes
2441 else
2442 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2443If you meant to cross compile, use \`--host'.
2444See \`config.log' for more details." >&5
2445echo "$as_me: error: cannot run C compiled programs.
2446If you meant to cross compile, use \`--host'.
2447See \`config.log' for more details." >&2;}
2448 { (exit 1); exit 1; }; }
2449 fi
2450 fi
2451fi
2452{ echo "$as_me:$LINENO: result: yes" >&5
2453echo "${ECHO_T}yes" >&6; }
2454
2455rm -f a.out a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002456ac_clean_files=$ac_clean_files_save
Sauw Mingbe3771a2010-08-27 06:46:29 +00002457# Check that the compiler produces executables we can run. If not, either
2458# the compiler is broken, or we cross compile.
2459{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2460echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2461{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2462echo "${ECHO_T}$cross_compiling" >&6; }
2463
2464{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2465echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2466if { (ac_try="$ac_link"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002467case "(($ac_try" in
2468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469 *) ac_try_echo=$ac_try;;
2470esac
Sauw Mingbe3771a2010-08-27 06:46:29 +00002471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002472 (eval "$ac_link") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002473 ac_status=$?
Sauw Mingbe3771a2010-08-27 06:46:29 +00002474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002476 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2477# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2478# work properly (i.e., refer to `conftest.exe'), while it won't with
2479# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002480for ac_file in conftest.exe conftest conftest.*; do
2481 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002482 case $ac_file in
Sauw Mingbe3771a2010-08-27 06:46:29 +00002483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002484 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002485 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002486 * ) break;;
2487 esac
2488done
2489else
Sauw Mingbe3771a2010-08-27 06:46:29 +00002490 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2491See \`config.log' for more details." >&5
2492echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2493See \`config.log' for more details." >&2;}
2494 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002495fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00002496
2497rm -f conftest$ac_cv_exeext
2498{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2499echo "${ECHO_T}$ac_cv_exeext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002500
2501rm -f conftest.$ac_ext
2502EXEEXT=$ac_cv_exeext
2503ac_exeext=$EXEEXT
Sauw Mingbe3771a2010-08-27 06:46:29 +00002504{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2505echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2506if test "${ac_cv_objext+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002508else
Sauw Mingbe3771a2010-08-27 06:46:29 +00002509 cat >conftest.$ac_ext <<_ACEOF
2510/* confdefs.h. */
2511_ACEOF
2512cat confdefs.h >>conftest.$ac_ext
2513cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002514/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002515
2516int
2517main ()
2518{
2519
2520 ;
2521 return 0;
2522}
2523_ACEOF
2524rm -f conftest.o conftest.obj
Sauw Mingbe3771a2010-08-27 06:46:29 +00002525if { (ac_try="$ac_compile"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002526case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2529esac
Sauw Mingbe3771a2010-08-27 06:46:29 +00002530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002531 (eval "$ac_compile") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002532 ac_status=$?
Sauw Mingbe3771a2010-08-27 06:46:29 +00002533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002535 for ac_file in conftest.o conftest.obj conftest.*; do
2536 test -f "$ac_file" || continue;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002537 case $ac_file in
Sauw Mingbe3771a2010-08-27 06:46:29 +00002538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002539 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2540 break;;
2541 esac
2542done
2543else
Sauw Mingbe3771a2010-08-27 06:46:29 +00002544 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002545sed 's/^/| /' conftest.$ac_ext >&5
2546
Sauw Mingbe3771a2010-08-27 06:46:29 +00002547{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2548See \`config.log' for more details." >&5
2549echo "$as_me: error: cannot compute suffix of object files: cannot compile
2550See \`config.log' for more details." >&2;}
2551 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002552fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00002553
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002554rm -f conftest.$ac_cv_objext conftest.$ac_ext
2555fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00002556{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2557echo "${ECHO_T}$ac_cv_objext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002558OBJEXT=$ac_cv_objext
2559ac_objext=$OBJEXT
Sauw Mingbe3771a2010-08-27 06:46:29 +00002560{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2561echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2562if test "${ac_cv_c_compiler_gnu+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002564else
Sauw Mingbe3771a2010-08-27 06:46:29 +00002565 cat >conftest.$ac_ext <<_ACEOF
2566/* confdefs.h. */
2567_ACEOF
2568cat confdefs.h >>conftest.$ac_ext
2569cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002570/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002571
2572int
2573main ()
2574{
2575#ifndef __GNUC__
2576 choke me
2577#endif
2578
2579 ;
2580 return 0;
2581}
2582_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00002583rm -f conftest.$ac_objext
2584if { (ac_try="$ac_compile"
2585case "(($ac_try" in
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2588esac
2589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590 (eval "$ac_compile") 2>conftest.er1
2591 ac_status=$?
2592 grep -v '^ *+' conftest.er1 >conftest.err
2593 rm -f conftest.er1
2594 cat conftest.err >&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); } && {
2597 test -z "$ac_c_werror_flag" ||
2598 test ! -s conftest.err
2599 } && test -s conftest.$ac_objext; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002600 ac_compiler_gnu=yes
2601else
Sauw Mingbe3771a2010-08-27 06:46:29 +00002602 echo "$as_me: failed program was:" >&5
2603sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002606fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00002607
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002609ac_cv_c_compiler_gnu=$ac_compiler_gnu
2610
2611fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00002612{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2613echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2614GCC=`test $ac_compiler_gnu = yes && echo yes`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002615ac_test_CFLAGS=${CFLAGS+set}
2616ac_save_CFLAGS=$CFLAGS
Sauw Mingbe3771a2010-08-27 06:46:29 +00002617{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2618echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2619if test "${ac_cv_prog_cc_g+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002621else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002622 ac_save_c_werror_flag=$ac_c_werror_flag
2623 ac_c_werror_flag=yes
2624 ac_cv_prog_cc_g=no
2625 CFLAGS="-g"
Sauw Mingbe3771a2010-08-27 06:46:29 +00002626 cat >conftest.$ac_ext <<_ACEOF
2627/* confdefs.h. */
2628_ACEOF
2629cat confdefs.h >>conftest.$ac_ext
2630cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002631/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002632
2633int
2634main ()
2635{
2636
2637 ;
2638 return 0;
2639}
2640_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00002641rm -f conftest.$ac_objext
2642if { (ac_try="$ac_compile"
2643case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2646esac
2647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compile") 2>conftest.er1
2649 ac_status=$?
2650 grep -v '^ *+' conftest.er1 >conftest.err
2651 rm -f conftest.er1
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } && {
2655 test -z "$ac_c_werror_flag" ||
2656 test ! -s conftest.err
2657 } && test -s conftest.$ac_objext; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002658 ac_cv_prog_cc_g=yes
2659else
Sauw Mingbe3771a2010-08-27 06:46:29 +00002660 echo "$as_me: failed program was:" >&5
2661sed 's/^/| /' conftest.$ac_ext >&5
2662
2663 CFLAGS=""
2664 cat >conftest.$ac_ext <<_ACEOF
2665/* confdefs.h. */
2666_ACEOF
2667cat confdefs.h >>conftest.$ac_ext
2668cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002669/* end confdefs.h. */
2670
2671int
2672main ()
2673{
2674
2675 ;
2676 return 0;
2677}
2678_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00002679rm -f conftest.$ac_objext
2680if { (ac_try="$ac_compile"
2681case "(($ac_try" in
2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2684esac
2685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2686 (eval "$ac_compile") 2>conftest.er1
2687 ac_status=$?
2688 grep -v '^ *+' conftest.er1 >conftest.err
2689 rm -f conftest.er1
2690 cat conftest.err >&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } && {
2693 test -z "$ac_c_werror_flag" ||
2694 test ! -s conftest.err
2695 } && test -s conftest.$ac_objext; then
2696 :
Benny Prijonod4306432010-05-01 22:05:41 +00002697else
Sauw Mingbe3771a2010-08-27 06:46:29 +00002698 echo "$as_me: failed program was:" >&5
2699sed 's/^/| /' conftest.$ac_ext >&5
2700
2701 ac_c_werror_flag=$ac_save_c_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002702 CFLAGS="-g"
Sauw Mingbe3771a2010-08-27 06:46:29 +00002703 cat >conftest.$ac_ext <<_ACEOF
2704/* confdefs.h. */
2705_ACEOF
2706cat confdefs.h >>conftest.$ac_ext
2707cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002708/* end confdefs.h. */
2709
2710int
2711main ()
2712{
2713
2714 ;
2715 return 0;
2716}
2717_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00002718rm -f conftest.$ac_objext
2719if { (ac_try="$ac_compile"
2720case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2723esac
2724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_compile") 2>conftest.er1
2726 ac_status=$?
2727 grep -v '^ *+' conftest.er1 >conftest.err
2728 rm -f conftest.er1
2729 cat conftest.err >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } && {
2732 test -z "$ac_c_werror_flag" ||
2733 test ! -s conftest.err
2734 } && test -s conftest.$ac_objext; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002735 ac_cv_prog_cc_g=yes
Sauw Mingbe3771a2010-08-27 06:46:29 +00002736else
2737 echo "$as_me: failed program was:" >&5
2738sed 's/^/| /' conftest.$ac_ext >&5
2739
2740
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002741fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00002742
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002744fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00002745
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00002748
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2750 ac_c_werror_flag=$ac_save_c_werror_flag
2751fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00002752{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2753echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002754if test "$ac_test_CFLAGS" = set; then
2755 CFLAGS=$ac_save_CFLAGS
2756elif test $ac_cv_prog_cc_g = yes; then
2757 if test "$GCC" = yes; then
2758 CFLAGS="-g -O2"
2759 else
2760 CFLAGS="-g"
2761 fi
2762else
2763 if test "$GCC" = yes; then
2764 CFLAGS="-O2"
2765 else
2766 CFLAGS=
2767 fi
2768fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00002769{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2770echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2771if test "${ac_cv_prog_cc_c89+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002773else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002774 ac_cv_prog_cc_c89=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002775ac_save_CC=$CC
Sauw Mingbe3771a2010-08-27 06:46:29 +00002776cat >conftest.$ac_ext <<_ACEOF
2777/* confdefs.h. */
2778_ACEOF
2779cat confdefs.h >>conftest.$ac_ext
2780cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002781/* end confdefs.h. */
2782#include <stdarg.h>
2783#include <stdio.h>
2784#include <sys/types.h>
2785#include <sys/stat.h>
2786/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2787struct buf { int x; };
2788FILE * (*rcsopen) (struct buf *, struct stat *, int);
2789static char *e (p, i)
2790 char **p;
2791 int i;
2792{
2793 return p[i];
2794}
2795static char *f (char * (*g) (char **, int), char **p, ...)
2796{
2797 char *s;
2798 va_list v;
2799 va_start (v,p);
2800 s = g (p, va_arg (v,int));
2801 va_end (v);
2802 return s;
2803}
2804
2805/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2806 function prototypes and stuff, but not '\xHH' hex character constants.
2807 These don't provoke an error unfortunately, instead are silently treated
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002808 as 'x'. The following induces an error, until -std is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002809 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2810 array size at least. It's necessary to write '\x00'==0 to get something
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002811 that's true only with -std. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002812int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2813
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002814/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2815 inside strings and character constants. */
2816#define FOO(x) 'x'
2817int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2818
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002819int test (int i, double x);
2820struct s1 {int (*f) (int a);};
2821struct s2 {int (*f) (double a);};
2822int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2823int argc;
2824char **argv;
2825int
2826main ()
2827{
2828return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2829 ;
2830 return 0;
2831}
2832_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002833for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2834 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002835do
2836 CC="$ac_save_CC $ac_arg"
Sauw Mingbe3771a2010-08-27 06:46:29 +00002837 rm -f conftest.$ac_objext
2838if { (ac_try="$ac_compile"
2839case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2842esac
2843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_compile") 2>conftest.er1
2845 ac_status=$?
2846 grep -v '^ *+' conftest.er1 >conftest.err
2847 rm -f conftest.er1
2848 cat conftest.err >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } && {
2851 test -z "$ac_c_werror_flag" ||
2852 test ! -s conftest.err
2853 } && test -s conftest.$ac_objext; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002854 ac_cv_prog_cc_c89=$ac_arg
Sauw Mingbe3771a2010-08-27 06:46:29 +00002855else
2856 echo "$as_me: failed program was:" >&5
2857sed 's/^/| /' conftest.$ac_ext >&5
2858
2859
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002860fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00002861
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002862rm -f core conftest.err conftest.$ac_objext
2863 test "x$ac_cv_prog_cc_c89" != "xno" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002864done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002865rm -f conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002866CC=$ac_save_CC
2867
2868fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002869# AC_CACHE_VAL
2870case "x$ac_cv_prog_cc_c89" in
2871 x)
Sauw Mingbe3771a2010-08-27 06:46:29 +00002872 { echo "$as_me:$LINENO: result: none needed" >&5
2873echo "${ECHO_T}none needed" >&6; } ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002874 xno)
Sauw Mingbe3771a2010-08-27 06:46:29 +00002875 { echo "$as_me:$LINENO: result: unsupported" >&5
2876echo "${ECHO_T}unsupported" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002877 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002878 CC="$CC $ac_cv_prog_cc_c89"
Sauw Mingbe3771a2010-08-27 06:46:29 +00002879 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2880echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002881esac
2882
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002883
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002884ac_ext=c
2885ac_cpp='$CPP $CPPFLAGS'
2886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002890ac_ext=cpp
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002891ac_cpp='$CXXCPP $CPPFLAGS'
2892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002895if test -z "$CXX"; then
2896 if test -n "$CCC"; then
2897 CXX=$CCC
2898 else
2899 if test -n "$ac_tool_prefix"; then
2900 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 +00002901 do
2902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2903set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Sauw Mingbe3771a2010-08-27 06:46:29 +00002904{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2906if test "${ac_cv_prog_CXX+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002908else
2909 if test -n "$CXX"; then
2910 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2911else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913for as_dir in $PATH
2914do
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
Sauw Mingbe3771a2010-08-27 06:46:29 +00002917 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002918 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 +00002919 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Sauw Mingbe3771a2010-08-27 06:46:29 +00002920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002921 break 2
2922 fi
2923done
Sauw Mingbe3771a2010-08-27 06:46:29 +00002924done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002925IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002926
2927fi
2928fi
2929CXX=$ac_cv_prog_CXX
2930if test -n "$CXX"; then
Sauw Mingbe3771a2010-08-27 06:46:29 +00002931 { echo "$as_me:$LINENO: result: $CXX" >&5
2932echo "${ECHO_T}$CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002933else
Sauw Mingbe3771a2010-08-27 06:46:29 +00002934 { echo "$as_me:$LINENO: result: no" >&5
2935echo "${ECHO_T}no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002936fi
2937
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002938
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002939 test -n "$CXX" && break
2940 done
2941fi
2942if test -z "$CXX"; then
2943 ac_ct_CXX=$CXX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002944 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 +00002945do
2946 # Extract the first word of "$ac_prog", so it can be a program name with args.
2947set dummy $ac_prog; ac_word=$2
Sauw Mingbe3771a2010-08-27 06:46:29 +00002948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2950if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002952else
2953 if test -n "$ac_ct_CXX"; then
2954 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2955else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957for as_dir in $PATH
2958do
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
Sauw Mingbe3771a2010-08-27 06:46:29 +00002961 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002962 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 +00002963 ac_cv_prog_ac_ct_CXX="$ac_prog"
Sauw Mingbe3771a2010-08-27 06:46:29 +00002964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002965 break 2
2966 fi
2967done
Sauw Mingbe3771a2010-08-27 06:46:29 +00002968done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002969IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002970
2971fi
2972fi
2973ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2974if test -n "$ac_ct_CXX"; then
Sauw Mingbe3771a2010-08-27 06:46:29 +00002975 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2976echo "${ECHO_T}$ac_ct_CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002977else
Sauw Mingbe3771a2010-08-27 06:46:29 +00002978 { echo "$as_me:$LINENO: result: no" >&5
2979echo "${ECHO_T}no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002980fi
2981
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002982
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002983 test -n "$ac_ct_CXX" && break
2984done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002985
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002986 if test "x$ac_ct_CXX" = x; then
2987 CXX="g++"
2988 else
2989 case $cross_compiling:$ac_tool_warned in
2990yes:)
Sauw Mingbe3771a2010-08-27 06:46:29 +00002991{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2992whose name does not start with the host triplet. If you think this
2993configuration is useful to you, please write to autoconf@gnu.org." >&5
2994echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2995whose name does not start with the host triplet. If you think this
2996configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002997ac_tool_warned=yes ;;
2998esac
2999 CXX=$ac_ct_CXX
3000 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003001fi
3002
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003003 fi
3004fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003005# Provide some information about the compiler.
Sauw Mingbe3771a2010-08-27 06:46:29 +00003006echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3007ac_compiler=`set X $ac_compile; echo $2`
3008{ (ac_try="$ac_compiler --version >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003009case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012esac
Sauw Mingbe3771a2010-08-27 06:46:29 +00003013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_compiler --version >&5") 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003015 ac_status=$?
Sauw Mingbe3771a2010-08-27 06:46:29 +00003016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }
3018{ (ac_try="$ac_compiler -v >&5"
3019case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022esac
3023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compiler -v >&5") 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3028{ (ac_try="$ac_compiler -V >&5"
3029case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032esac
3033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compiler -V >&5") 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003038
Sauw Mingbe3771a2010-08-27 06:46:29 +00003039{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3040echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3041if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003043else
Sauw Mingbe3771a2010-08-27 06:46:29 +00003044 cat >conftest.$ac_ext <<_ACEOF
3045/* confdefs.h. */
3046_ACEOF
3047cat confdefs.h >>conftest.$ac_ext
3048cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003049/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003050
3051int
3052main ()
3053{
3054#ifndef __GNUC__
3055 choke me
3056#endif
3057
3058 ;
3059 return 0;
3060}
3061_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00003062rm -f conftest.$ac_objext
3063if { (ac_try="$ac_compile"
3064case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067esac
3068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_compile") 2>conftest.er1
3070 ac_status=$?
3071 grep -v '^ *+' conftest.er1 >conftest.err
3072 rm -f conftest.er1
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } && {
3076 test -z "$ac_cxx_werror_flag" ||
3077 test ! -s conftest.err
3078 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003079 ac_compiler_gnu=yes
3080else
Sauw Mingbe3771a2010-08-27 06:46:29 +00003081 echo "$as_me: failed program was:" >&5
3082sed 's/^/| /' conftest.$ac_ext >&5
3083
3084 ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003085fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003086
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003088ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3089
3090fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003091{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3092echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3093GXX=`test $ac_compiler_gnu = yes && echo yes`
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003094ac_test_CXXFLAGS=${CXXFLAGS+set}
3095ac_save_CXXFLAGS=$CXXFLAGS
Sauw Mingbe3771a2010-08-27 06:46:29 +00003096{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3097echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3098if test "${ac_cv_prog_cxx_g+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003100else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003101 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3102 ac_cxx_werror_flag=yes
3103 ac_cv_prog_cxx_g=no
3104 CXXFLAGS="-g"
Sauw Mingbe3771a2010-08-27 06:46:29 +00003105 cat >conftest.$ac_ext <<_ACEOF
3106/* confdefs.h. */
3107_ACEOF
3108cat confdefs.h >>conftest.$ac_ext
3109cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003110/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003111
3112int
3113main ()
3114{
3115
3116 ;
3117 return 0;
3118}
3119_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00003120rm -f conftest.$ac_objext
3121if { (ac_try="$ac_compile"
3122case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125esac
3126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_compile") 2>conftest.er1
3128 ac_status=$?
3129 grep -v '^ *+' conftest.er1 >conftest.err
3130 rm -f conftest.er1
3131 cat conftest.err >&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } && {
3134 test -z "$ac_cxx_werror_flag" ||
3135 test ! -s conftest.err
3136 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003137 ac_cv_prog_cxx_g=yes
3138else
Sauw Mingbe3771a2010-08-27 06:46:29 +00003139 echo "$as_me: failed program was:" >&5
3140sed 's/^/| /' conftest.$ac_ext >&5
3141
3142 CXXFLAGS=""
3143 cat >conftest.$ac_ext <<_ACEOF
3144/* confdefs.h. */
3145_ACEOF
3146cat confdefs.h >>conftest.$ac_ext
3147cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003148/* end confdefs.h. */
3149
3150int
3151main ()
3152{
3153
3154 ;
3155 return 0;
3156}
3157_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00003158rm -f conftest.$ac_objext
3159if { (ac_try="$ac_compile"
3160case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163esac
3164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_compile") 2>conftest.er1
3166 ac_status=$?
3167 grep -v '^ *+' conftest.er1 >conftest.err
3168 rm -f conftest.er1
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } && {
3172 test -z "$ac_cxx_werror_flag" ||
3173 test ! -s conftest.err
3174 } && test -s conftest.$ac_objext; then
3175 :
Benny Prijonod4306432010-05-01 22:05:41 +00003176else
Sauw Mingbe3771a2010-08-27 06:46:29 +00003177 echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003181 CXXFLAGS="-g"
Sauw Mingbe3771a2010-08-27 06:46:29 +00003182 cat >conftest.$ac_ext <<_ACEOF
3183/* confdefs.h. */
3184_ACEOF
3185cat confdefs.h >>conftest.$ac_ext
3186cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003187/* end confdefs.h. */
3188
3189int
3190main ()
3191{
3192
3193 ;
3194 return 0;
3195}
3196_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00003197rm -f conftest.$ac_objext
3198if { (ac_try="$ac_compile"
3199case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202esac
3203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_compile") 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } && {
3211 test -z "$ac_cxx_werror_flag" ||
3212 test ! -s conftest.err
3213 } && test -s conftest.$ac_objext; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003214 ac_cv_prog_cxx_g=yes
Sauw Mingbe3771a2010-08-27 06:46:29 +00003215else
3216 echo "$as_me: failed program was:" >&5
3217sed 's/^/| /' conftest.$ac_ext >&5
3218
3219
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003220fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003221
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003223fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003224
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003227
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3230fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003231{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3232echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003233if test "$ac_test_CXXFLAGS" = set; then
3234 CXXFLAGS=$ac_save_CXXFLAGS
3235elif test $ac_cv_prog_cxx_g = yes; then
3236 if test "$GXX" = yes; then
3237 CXXFLAGS="-g -O2"
3238 else
3239 CXXFLAGS="-g"
3240 fi
3241else
3242 if test "$GXX" = yes; then
3243 CXXFLAGS="-O2"
3244 else
3245 CXXFLAGS=
3246 fi
3247fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003248ac_ext=c
3249ac_cpp='$CPP $CPPFLAGS'
3250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252ac_compiler_gnu=$ac_cv_c_compiler_gnu
3253
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003254ac_ext=c
3255ac_cpp='$CPP $CPPFLAGS'
3256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003260
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003261if test -z "$CROSS_COMPILE"; then
3262 CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'`
3263fi
3264
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003265if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003266
3267if test "$LD" = ""; then LD="$CC"; fi
3268
3269if test "$LDOUT" = ""; then LDOUT="-o"; fi
3270
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003271if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003272
3273if test "$OBJEXT" = ""; then OBJEXT='o'; fi
3274
3275if test "$LIBEXT" = ""; then LIBEXT='a'; fi
3276
3277if test "$LIBEXT2" = ""; then LIBEXT2=""; fi
3278
3279if test "$CC_OUT" = ""; then CC_OUT="-o"; fi
3280
3281if test "$CC_INC" = ""; then CC_INC="-I"; fi
3282
3283if test "$CC_DEF" = ""; then CC_DEF="-D"; fi
3284
3285if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi
3286
3287if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi
3288
3289
3290
3291
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003292
Benny Prijono0822c192008-08-21 20:59:58 +00003293
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003294
3295case $host in
Benny Prijono53847a32007-09-24 16:10:13 +00003296 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003297 if pwd -W 2&> /dev/null; then
3298 ac_pjdir=`pwd -W`
3299 else
3300 # We're probably cross-compiling mingw on Linux
3301 ac_pjdir=`pwd`
3302 fi
Benny Prijono53847a32007-09-24 16:10:13 +00003303 ;;
3304 *)
3305 ac_pjdir=`pwd`
3306 ;;
3307esac
Benny Prijono12483112007-03-12 10:44:38 +00003308
3309
Sauw Mingbe3771a2010-08-27 06:46:29 +00003310
3311{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
3312echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
3313if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003315else
3316 ac_check_lib_save_LIBS=$LIBS
3317LIBS="-lpthread $LIBS"
Sauw Mingbe3771a2010-08-27 06:46:29 +00003318cat >conftest.$ac_ext <<_ACEOF
3319/* confdefs.h. */
3320_ACEOF
3321cat confdefs.h >>conftest.$ac_ext
3322cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003323/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003324
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003325/* Override any GCC internal prototype to avoid an error.
3326 Use char because int might match the return type of a GCC
3327 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003328#ifdef __cplusplus
3329extern "C"
3330#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003331char pthread_create ();
3332int
3333main ()
3334{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003335return pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003336 ;
3337 return 0;
3338}
3339_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00003340rm -f conftest.$ac_objext conftest$ac_exeext
3341if { (ac_try="$ac_link"
3342case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345esac
3346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_link") 2>conftest.er1
3348 ac_status=$?
3349 grep -v '^ *+' conftest.er1 >conftest.err
3350 rm -f conftest.er1
3351 cat conftest.err >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } && {
3354 test -z "$ac_c_werror_flag" ||
3355 test ! -s conftest.err
3356 } && test -s conftest$ac_exeext &&
3357 $as_test_x conftest$ac_exeext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003358 ac_cv_lib_pthread_pthread_create=yes
3359else
Sauw Mingbe3771a2010-08-27 06:46:29 +00003360 echo "$as_me: failed program was:" >&5
3361sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003364fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003365
3366rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3367 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003368LIBS=$ac_check_lib_save_LIBS
3369fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003370{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
3371echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
3372if test $ac_cv_lib_pthread_pthread_create = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003373 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003374#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003375_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003376
3377 LIBS="-lpthread $LIBS"
3378
3379fi
3380
Sauw Mingbe3771a2010-08-27 06:46:29 +00003381
3382{ echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5
3383echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6; }
3384if test "${ac_cv_lib_wsock32_puts+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003386else
3387 ac_check_lib_save_LIBS=$LIBS
3388LIBS="-lwsock32 $LIBS"
Sauw Mingbe3771a2010-08-27 06:46:29 +00003389cat >conftest.$ac_ext <<_ACEOF
3390/* confdefs.h. */
3391_ACEOF
3392cat confdefs.h >>conftest.$ac_ext
3393cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003394/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003395
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003396/* Override any GCC internal prototype to avoid an error.
3397 Use char because int might match the return type of a GCC
3398 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003399#ifdef __cplusplus
3400extern "C"
3401#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003402char puts ();
3403int
3404main ()
3405{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003406return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003407 ;
3408 return 0;
3409}
3410_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00003411rm -f conftest.$ac_objext conftest$ac_exeext
3412if { (ac_try="$ac_link"
3413case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3416esac
3417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_link") 2>conftest.er1
3419 ac_status=$?
3420 grep -v '^ *+' conftest.er1 >conftest.err
3421 rm -f conftest.er1
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } && {
3425 test -z "$ac_c_werror_flag" ||
3426 test ! -s conftest.err
3427 } && test -s conftest$ac_exeext &&
3428 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003429 ac_cv_lib_wsock32_puts=yes
3430else
Sauw Mingbe3771a2010-08-27 06:46:29 +00003431 echo "$as_me: failed program was:" >&5
3432sed 's/^/| /' conftest.$ac_ext >&5
3433
3434 ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003435fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003436
3437rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3438 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003439LIBS=$ac_check_lib_save_LIBS
3440fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003441{ echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5
3442echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6; }
3443if test $ac_cv_lib_wsock32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003444 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003445#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003446_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003447
3448 LIBS="-lwsock32 $LIBS"
3449
3450fi
3451
Sauw Mingbe3771a2010-08-27 06:46:29 +00003452
3453{ echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5
3454echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6; }
3455if test "${ac_cv_lib_ws2_32_puts+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003457else
3458 ac_check_lib_save_LIBS=$LIBS
3459LIBS="-lws2_32 $LIBS"
Sauw Mingbe3771a2010-08-27 06:46:29 +00003460cat >conftest.$ac_ext <<_ACEOF
3461/* confdefs.h. */
3462_ACEOF
3463cat confdefs.h >>conftest.$ac_ext
3464cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003465/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003466
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003467/* Override any GCC internal prototype to avoid an error.
3468 Use char because int might match the return type of a GCC
3469 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003470#ifdef __cplusplus
3471extern "C"
3472#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003473char puts ();
3474int
3475main ()
3476{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003477return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003478 ;
3479 return 0;
3480}
3481_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00003482rm -f conftest.$ac_objext conftest$ac_exeext
3483if { (ac_try="$ac_link"
3484case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487esac
3488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_link") 2>conftest.er1
3490 ac_status=$?
3491 grep -v '^ *+' conftest.er1 >conftest.err
3492 rm -f conftest.er1
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } && {
3496 test -z "$ac_c_werror_flag" ||
3497 test ! -s conftest.err
3498 } && test -s conftest$ac_exeext &&
3499 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003500 ac_cv_lib_ws2_32_puts=yes
3501else
Sauw Mingbe3771a2010-08-27 06:46:29 +00003502 echo "$as_me: failed program was:" >&5
3503sed 's/^/| /' conftest.$ac_ext >&5
3504
3505 ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003506fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003507
3508rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3509 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003510LIBS=$ac_check_lib_save_LIBS
3511fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003512{ echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5
3513echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6; }
3514if test $ac_cv_lib_ws2_32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003515 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003516#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003517_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003518
3519 LIBS="-lws2_32 $LIBS"
3520
3521fi
3522
Sauw Mingbe3771a2010-08-27 06:46:29 +00003523
3524{ echo "$as_me:$LINENO: checking for puts in -lole32" >&5
3525echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6; }
3526if test "${ac_cv_lib_ole32_puts+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003528else
3529 ac_check_lib_save_LIBS=$LIBS
3530LIBS="-lole32 $LIBS"
Sauw Mingbe3771a2010-08-27 06:46:29 +00003531cat >conftest.$ac_ext <<_ACEOF
3532/* confdefs.h. */
3533_ACEOF
3534cat confdefs.h >>conftest.$ac_ext
3535cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003536/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003537
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003538/* Override any GCC internal prototype to avoid an error.
3539 Use char because int might match the return type of a GCC
3540 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003541#ifdef __cplusplus
3542extern "C"
3543#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003544char puts ();
3545int
3546main ()
3547{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003548return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003549 ;
3550 return 0;
3551}
3552_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00003553rm -f conftest.$ac_objext conftest$ac_exeext
3554if { (ac_try="$ac_link"
3555case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3558esac
3559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_link") 2>conftest.er1
3561 ac_status=$?
3562 grep -v '^ *+' conftest.er1 >conftest.err
3563 rm -f conftest.er1
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } && {
3567 test -z "$ac_c_werror_flag" ||
3568 test ! -s conftest.err
3569 } && test -s conftest$ac_exeext &&
3570 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003571 ac_cv_lib_ole32_puts=yes
3572else
Sauw Mingbe3771a2010-08-27 06:46:29 +00003573 echo "$as_me: failed program was:" >&5
3574sed 's/^/| /' conftest.$ac_ext >&5
3575
3576 ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003577fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003578
3579rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3580 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003581LIBS=$ac_check_lib_save_LIBS
3582fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003583{ echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5
3584echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6; }
3585if test $ac_cv_lib_ole32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003586 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003587#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003588_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003589
3590 LIBS="-lole32 $LIBS"
3591
3592fi
3593
Sauw Mingbe3771a2010-08-27 06:46:29 +00003594
3595{ echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5
3596echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6; }
3597if test "${ac_cv_lib_winmm_puts+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003599else
3600 ac_check_lib_save_LIBS=$LIBS
3601LIBS="-lwinmm $LIBS"
Sauw Mingbe3771a2010-08-27 06:46:29 +00003602cat >conftest.$ac_ext <<_ACEOF
3603/* confdefs.h. */
3604_ACEOF
3605cat confdefs.h >>conftest.$ac_ext
3606cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003607/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003608
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003609/* Override any GCC internal prototype to avoid an error.
3610 Use char because int might match the return type of a GCC
3611 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003612#ifdef __cplusplus
3613extern "C"
3614#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003615char puts ();
3616int
3617main ()
3618{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003619return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003620 ;
3621 return 0;
3622}
3623_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00003624rm -f conftest.$ac_objext conftest$ac_exeext
3625if { (ac_try="$ac_link"
3626case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629esac
3630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_link") 2>conftest.er1
3632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } && {
3638 test -z "$ac_c_werror_flag" ||
3639 test ! -s conftest.err
3640 } && test -s conftest$ac_exeext &&
3641 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003642 ac_cv_lib_winmm_puts=yes
3643else
Sauw Mingbe3771a2010-08-27 06:46:29 +00003644 echo "$as_me: failed program was:" >&5
3645sed 's/^/| /' conftest.$ac_ext >&5
3646
3647 ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003648fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003649
3650rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3651 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003652LIBS=$ac_check_lib_save_LIBS
3653fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003654{ echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5
3655echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6; }
3656if test $ac_cv_lib_winmm_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003657 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003658#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003659_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003660
3661 LIBS="-lwinmm $LIBS"
3662
3663fi
3664
Sauw Mingbe3771a2010-08-27 06:46:29 +00003665
3666{ echo "$as_me:$LINENO: checking for puts in -lsocket" >&5
3667echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6; }
3668if test "${ac_cv_lib_socket_puts+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003670else
3671 ac_check_lib_save_LIBS=$LIBS
3672LIBS="-lsocket $LIBS"
Sauw Mingbe3771a2010-08-27 06:46:29 +00003673cat >conftest.$ac_ext <<_ACEOF
3674/* confdefs.h. */
3675_ACEOF
3676cat confdefs.h >>conftest.$ac_ext
3677cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003678/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003679
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003680/* Override any GCC internal prototype to avoid an error.
3681 Use char because int might match the return type of a GCC
3682 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003683#ifdef __cplusplus
3684extern "C"
3685#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003686char puts ();
3687int
3688main ()
3689{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003690return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003691 ;
3692 return 0;
3693}
3694_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00003695rm -f conftest.$ac_objext conftest$ac_exeext
3696if { (ac_try="$ac_link"
3697case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700esac
3701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702 (eval "$ac_link") 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } && {
3709 test -z "$ac_c_werror_flag" ||
3710 test ! -s conftest.err
3711 } && test -s conftest$ac_exeext &&
3712 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003713 ac_cv_lib_socket_puts=yes
3714else
Sauw Mingbe3771a2010-08-27 06:46:29 +00003715 echo "$as_me: failed program was:" >&5
3716sed 's/^/| /' conftest.$ac_ext >&5
3717
3718 ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003719fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003720
3721rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3722 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003723LIBS=$ac_check_lib_save_LIBS
3724fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003725{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5
3726echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6; }
3727if test $ac_cv_lib_socket_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003728 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003729#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003730_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003731
3732 LIBS="-lsocket $LIBS"
3733
3734fi
3735
Sauw Mingbe3771a2010-08-27 06:46:29 +00003736
3737{ echo "$as_me:$LINENO: checking for puts in -lrt" >&5
3738echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6; }
3739if test "${ac_cv_lib_rt_puts+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003741else
3742 ac_check_lib_save_LIBS=$LIBS
3743LIBS="-lrt $LIBS"
Sauw Mingbe3771a2010-08-27 06:46:29 +00003744cat >conftest.$ac_ext <<_ACEOF
3745/* confdefs.h. */
3746_ACEOF
3747cat confdefs.h >>conftest.$ac_ext
3748cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003749/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003750
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003751/* Override any GCC internal prototype to avoid an error.
3752 Use char because int might match the return type of a GCC
3753 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003754#ifdef __cplusplus
3755extern "C"
3756#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003757char puts ();
3758int
3759main ()
3760{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003761return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003762 ;
3763 return 0;
3764}
3765_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00003766rm -f conftest.$ac_objext conftest$ac_exeext
3767if { (ac_try="$ac_link"
3768case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3771esac
3772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3773 (eval "$ac_link") 2>conftest.er1
3774 ac_status=$?
3775 grep -v '^ *+' conftest.er1 >conftest.err
3776 rm -f conftest.er1
3777 cat conftest.err >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } && {
3780 test -z "$ac_c_werror_flag" ||
3781 test ! -s conftest.err
3782 } && test -s conftest$ac_exeext &&
3783 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003784 ac_cv_lib_rt_puts=yes
3785else
Sauw Mingbe3771a2010-08-27 06:46:29 +00003786 echo "$as_me: failed program was:" >&5
3787sed 's/^/| /' conftest.$ac_ext >&5
3788
3789 ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003790fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003791
3792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3793 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003794LIBS=$ac_check_lib_save_LIBS
3795fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003796{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5
3797echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6; }
3798if test $ac_cv_lib_rt_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003799 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003800#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003801_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003802
3803 LIBS="-lrt $LIBS"
3804
3805fi
3806
Sauw Mingbe3771a2010-08-27 06:46:29 +00003807
3808{ echo "$as_me:$LINENO: checking for puts in -lnsl" >&5
3809echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6; }
3810if test "${ac_cv_lib_nsl_puts+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003812else
3813 ac_check_lib_save_LIBS=$LIBS
3814LIBS="-lnsl $LIBS"
Sauw Mingbe3771a2010-08-27 06:46:29 +00003815cat >conftest.$ac_ext <<_ACEOF
3816/* confdefs.h. */
3817_ACEOF
3818cat confdefs.h >>conftest.$ac_ext
3819cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003820/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003821
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003822/* Override any GCC internal prototype to avoid an error.
3823 Use char because int might match the return type of a GCC
3824 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003825#ifdef __cplusplus
3826extern "C"
3827#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003828char puts ();
3829int
3830main ()
3831{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003832return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003833 ;
3834 return 0;
3835}
3836_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00003837rm -f conftest.$ac_objext conftest$ac_exeext
3838if { (ac_try="$ac_link"
3839case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3842esac
3843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844 (eval "$ac_link") 2>conftest.er1
3845 ac_status=$?
3846 grep -v '^ *+' conftest.er1 >conftest.err
3847 rm -f conftest.er1
3848 cat conftest.err >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } && {
3851 test -z "$ac_c_werror_flag" ||
3852 test ! -s conftest.err
3853 } && test -s conftest$ac_exeext &&
3854 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003855 ac_cv_lib_nsl_puts=yes
3856else
Sauw Mingbe3771a2010-08-27 06:46:29 +00003857 echo "$as_me: failed program was:" >&5
3858sed 's/^/| /' conftest.$ac_ext >&5
3859
3860 ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003861fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003862
3863rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3864 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003865LIBS=$ac_check_lib_save_LIBS
3866fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003867{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5
3868echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6; }
3869if test $ac_cv_lib_nsl_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003870 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003871#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003872_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003873
3874 LIBS="-lnsl $LIBS"
3875
3876fi
3877
Sauw Mingbe3771a2010-08-27 06:46:29 +00003878
3879{ echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3880echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; }
3881if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003883else
3884 ac_check_lib_save_LIBS=$LIBS
3885LIBS="-luuid $LIBS"
Sauw Mingbe3771a2010-08-27 06:46:29 +00003886cat >conftest.$ac_ext <<_ACEOF
3887/* confdefs.h. */
3888_ACEOF
3889cat confdefs.h >>conftest.$ac_ext
3890cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono4e48b512007-05-16 13:41:00 +00003891/* end confdefs.h. */
3892
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003893/* Override any GCC internal prototype to avoid an error.
3894 Use char because int might match the return type of a GCC
3895 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003896#ifdef __cplusplus
3897extern "C"
3898#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003899char uuid_generate ();
3900int
3901main ()
3902{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003903return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003904 ;
3905 return 0;
3906}
3907_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00003908rm -f conftest.$ac_objext conftest$ac_exeext
3909if { (ac_try="$ac_link"
3910case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913esac
3914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_link") 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } && {
3922 test -z "$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3924 } && test -s conftest$ac_exeext &&
3925 $as_test_x conftest$ac_exeext; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003926 ac_cv_lib_uuid_uuid_generate=yes
3927else
Sauw Mingbe3771a2010-08-27 06:46:29 +00003928 echo "$as_me: failed program was:" >&5
3929sed 's/^/| /' conftest.$ac_ext >&5
3930
3931 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003932fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003933
3934rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3935 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003936LIBS=$ac_check_lib_save_LIBS
3937fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00003938{ echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3939echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; }
3940if test $ac_cv_lib_uuid_uuid_generate = yes; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003941 cat >>confdefs.h <<_ACEOF
3942#define HAVE_LIBUUID 1
3943_ACEOF
3944
3945 LIBS="-luuid $LIBS"
3946
3947fi
3948
Sauw Mingbe3771a2010-08-27 06:46:29 +00003949{ echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3950echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; }
3951if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003953else
3954 ac_check_lib_save_LIBS=$LIBS
3955LIBS="-luuid $LIBS"
Sauw Mingbe3771a2010-08-27 06:46:29 +00003956cat >conftest.$ac_ext <<_ACEOF
3957/* confdefs.h. */
3958_ACEOF
3959cat confdefs.h >>conftest.$ac_ext
3960cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono4e48b512007-05-16 13:41:00 +00003961/* end confdefs.h. */
3962
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003963/* Override any GCC internal prototype to avoid an error.
3964 Use char because int might match the return type of a GCC
3965 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003966#ifdef __cplusplus
3967extern "C"
3968#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003969char uuid_generate ();
3970int
3971main ()
3972{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003973return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003974 ;
3975 return 0;
3976}
3977_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00003978rm -f conftest.$ac_objext conftest$ac_exeext
3979if { (ac_try="$ac_link"
3980case "(($ac_try" in
3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;;
3983esac
3984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3985 (eval "$ac_link") 2>conftest.er1
3986 ac_status=$?
3987 grep -v '^ *+' conftest.er1 >conftest.err
3988 rm -f conftest.er1
3989 cat conftest.err >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } && {
3992 test -z "$ac_c_werror_flag" ||
3993 test ! -s conftest.err
3994 } && test -s conftest$ac_exeext &&
3995 $as_test_x conftest$ac_exeext; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003996 ac_cv_lib_uuid_uuid_generate=yes
3997else
Sauw Mingbe3771a2010-08-27 06:46:29 +00003998 echo "$as_me: failed program was:" >&5
3999sed 's/^/| /' conftest.$ac_ext >&5
4000
4001 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00004002fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00004003
4004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4005 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00004006LIBS=$ac_check_lib_save_LIBS
4007fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00004008{ echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
4009echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; }
4010if test $ac_cv_lib_uuid_uuid_generate = yes; then
Benny Prijono4e48b512007-05-16 13:41:00 +00004011 ac_has_uuid_lib=1
4012fi
4013
4014
Sauw Mingbe3771a2010-08-27 06:46:29 +00004015{ echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5
4016echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004017cat >>confdefs.h <<_ACEOF
4018#define PJ_M_NAME "$target_cpu"
4019_ACEOF
4020
4021
Sauw Mingbe3771a2010-08-27 06:46:29 +00004022{ echo "$as_me:$LINENO: checking memory alignment" >&5
4023echo $ECHO_N "checking memory alignment... $ECHO_C" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004024case $target in
Benny Prijonob18e9502010-05-19 05:51:38 +00004025 sparc64-* | ia64-* | x86_64-* )
Sauw Mingbe3771a2010-08-27 06:46:29 +00004026 cat >>confdefs.h <<\_ACEOF
4027#define PJ_POOL_ALIGNMENT 8
4028_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00004029
Sauw Mingbe3771a2010-08-27 06:46:29 +00004030 { echo "$as_me:$LINENO: result: 8 bytes" >&5
4031echo "${ECHO_T}8 bytes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004032 ;;
4033 * )
Sauw Mingbe3771a2010-08-27 06:46:29 +00004034 cat >>confdefs.h <<\_ACEOF
4035#define PJ_POOL_ALIGNMENT 4
4036_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00004037
Sauw Mingbe3771a2010-08-27 06:46:29 +00004038 { echo "$as_me:$LINENO: result: 4 bytes (default)" >&5
4039echo "${ECHO_T}4 bytes (default)" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004040 ;;
4041esac
4042
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004043
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004044ac_ext=c
4045ac_cpp='$CPP $CPPFLAGS'
4046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048ac_compiler_gnu=$ac_cv_c_compiler_gnu
Sauw Mingbe3771a2010-08-27 06:46:29 +00004049{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4050echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004051# On Suns, sometimes $CPP names a directory.
4052if test -n "$CPP" && test -d "$CPP"; then
4053 CPP=
4054fi
4055if test -z "$CPP"; then
Sauw Mingbe3771a2010-08-27 06:46:29 +00004056 if test "${ac_cv_prog_CPP+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004058else
4059 # Double quotes because CPP needs to be expanded
4060 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4061 do
4062 ac_preproc_ok=false
4063for ac_c_preproc_warn_flag in '' yes
4064do
4065 # Use a header file that comes with gcc, so configuring glibc
4066 # with a fresh cross-compiler works.
4067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4068 # <limits.h> exists even on freestanding compilers.
4069 # On the NeXT, cc -E runs the code through the compiler's parser,
4070 # not just through cpp. "Syntax error" is here to catch this case.
Sauw Mingbe3771a2010-08-27 06:46:29 +00004071 cat >conftest.$ac_ext <<_ACEOF
4072/* confdefs.h. */
4073_ACEOF
4074cat confdefs.h >>conftest.$ac_ext
4075cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004076/* end confdefs.h. */
4077#ifdef __STDC__
4078# include <limits.h>
4079#else
4080# include <assert.h>
4081#endif
4082 Syntax error
4083_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00004084if { (ac_try="$ac_cpp conftest.$ac_ext"
4085case "(($ac_try" in
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4088esac
4089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4091 ac_status=$?
4092 grep -v '^ *+' conftest.er1 >conftest.err
4093 rm -f conftest.er1
4094 cat conftest.err >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } >/dev/null && {
4097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4098 test ! -s conftest.err
4099 }; then
4100 :
Benny Prijonod4306432010-05-01 22:05:41 +00004101else
Sauw Mingbe3771a2010-08-27 06:46:29 +00004102 echo "$as_me: failed program was:" >&5
4103sed 's/^/| /' conftest.$ac_ext >&5
4104
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004105 # Broken: fails on valid input.
4106continue
4107fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00004108
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004109rm -f conftest.err conftest.$ac_ext
4110
4111 # OK, works on sane cases. Now check whether nonexistent headers
4112 # can be detected and how.
Sauw Mingbe3771a2010-08-27 06:46:29 +00004113 cat >conftest.$ac_ext <<_ACEOF
4114/* confdefs.h. */
4115_ACEOF
4116cat confdefs.h >>conftest.$ac_ext
4117cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004118/* end confdefs.h. */
4119#include <ac_nonexistent.h>
4120_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00004121if { (ac_try="$ac_cpp conftest.$ac_ext"
4122case "(($ac_try" in
4123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124 *) ac_try_echo=$ac_try;;
4125esac
4126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4128 ac_status=$?
4129 grep -v '^ *+' conftest.er1 >conftest.err
4130 rm -f conftest.er1
4131 cat conftest.err >&5
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); } >/dev/null && {
4134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4135 test ! -s conftest.err
4136 }; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004137 # Broken: success on invalid input.
4138continue
4139else
Sauw Mingbe3771a2010-08-27 06:46:29 +00004140 echo "$as_me: failed program was:" >&5
4141sed 's/^/| /' conftest.$ac_ext >&5
4142
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004143 # Passes both tests.
4144ac_preproc_ok=:
4145break
4146fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00004147
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004148rm -f conftest.err conftest.$ac_ext
4149
4150done
4151# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4152rm -f conftest.err conftest.$ac_ext
Sauw Mingbe3771a2010-08-27 06:46:29 +00004153if $ac_preproc_ok; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004154 break
4155fi
4156
4157 done
4158 ac_cv_prog_CPP=$CPP
4159
4160fi
4161 CPP=$ac_cv_prog_CPP
4162else
4163 ac_cv_prog_CPP=$CPP
4164fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00004165{ echo "$as_me:$LINENO: result: $CPP" >&5
4166echo "${ECHO_T}$CPP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004167ac_preproc_ok=false
4168for ac_c_preproc_warn_flag in '' yes
4169do
4170 # Use a header file that comes with gcc, so configuring glibc
4171 # with a fresh cross-compiler works.
4172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4173 # <limits.h> exists even on freestanding compilers.
4174 # On the NeXT, cc -E runs the code through the compiler's parser,
4175 # not just through cpp. "Syntax error" is here to catch this case.
Sauw Mingbe3771a2010-08-27 06:46:29 +00004176 cat >conftest.$ac_ext <<_ACEOF
4177/* confdefs.h. */
4178_ACEOF
4179cat confdefs.h >>conftest.$ac_ext
4180cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004181/* end confdefs.h. */
4182#ifdef __STDC__
4183# include <limits.h>
4184#else
4185# include <assert.h>
4186#endif
4187 Syntax error
4188_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00004189if { (ac_try="$ac_cpp conftest.$ac_ext"
4190case "(($ac_try" in
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4193esac
4194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4196 ac_status=$?
4197 grep -v '^ *+' conftest.er1 >conftest.err
4198 rm -f conftest.er1
4199 cat conftest.err >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } >/dev/null && {
4202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4203 test ! -s conftest.err
4204 }; then
4205 :
Benny Prijonod4306432010-05-01 22:05:41 +00004206else
Sauw Mingbe3771a2010-08-27 06:46:29 +00004207 echo "$as_me: failed program was:" >&5
4208sed 's/^/| /' conftest.$ac_ext >&5
4209
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004210 # Broken: fails on valid input.
4211continue
4212fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00004213
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004214rm -f conftest.err conftest.$ac_ext
4215
4216 # OK, works on sane cases. Now check whether nonexistent headers
4217 # can be detected and how.
Sauw Mingbe3771a2010-08-27 06:46:29 +00004218 cat >conftest.$ac_ext <<_ACEOF
4219/* confdefs.h. */
4220_ACEOF
4221cat confdefs.h >>conftest.$ac_ext
4222cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004223/* end confdefs.h. */
4224#include <ac_nonexistent.h>
4225_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00004226if { (ac_try="$ac_cpp conftest.$ac_ext"
4227case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230esac
4231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4233 ac_status=$?
4234 grep -v '^ *+' conftest.er1 >conftest.err
4235 rm -f conftest.er1
4236 cat conftest.err >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } >/dev/null && {
4239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4240 test ! -s conftest.err
4241 }; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004242 # Broken: success on invalid input.
4243continue
4244else
Sauw Mingbe3771a2010-08-27 06:46:29 +00004245 echo "$as_me: failed program was:" >&5
4246sed 's/^/| /' conftest.$ac_ext >&5
4247
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004248 # Passes both tests.
4249ac_preproc_ok=:
4250break
4251fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00004252
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004253rm -f conftest.err conftest.$ac_ext
4254
4255done
4256# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4257rm -f conftest.err conftest.$ac_ext
Sauw Mingbe3771a2010-08-27 06:46:29 +00004258if $ac_preproc_ok; then
4259 :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004260else
Sauw Mingbe3771a2010-08-27 06:46:29 +00004261 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4262See \`config.log' for more details." >&5
4263echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4264See \`config.log' for more details." >&2;}
4265 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004266fi
4267
4268ac_ext=c
4269ac_cpp='$CPP $CPPFLAGS'
4270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272ac_compiler_gnu=$ac_cv_c_compiler_gnu
4273
4274
Sauw Mingbe3771a2010-08-27 06:46:29 +00004275{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4276echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4277if test "${ac_cv_path_GREP+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004279else
Sauw Mingbe3771a2010-08-27 06:46:29 +00004280 # Extract the first word of "grep ggrep" to use in msg output
4281if test -z "$GREP"; then
4282set dummy grep ggrep; ac_prog_name=$2
4283if test "${ac_cv_path_GREP+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004286 ac_path_GREP_found=false
Sauw Mingbe3771a2010-08-27 06:46:29 +00004287# Loop through the user's path and test for each of PROGNAME-LIST
4288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004289for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4290do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
Sauw Mingbe3771a2010-08-27 06:46:29 +00004293 for ac_prog in grep ggrep; do
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4296 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4297 # Check for GNU ac_path_GREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004298 # Check for GNU $ac_path_GREP
4299case `"$ac_path_GREP" --version 2>&1` in
4300*GNU*)
4301 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4302*)
4303 ac_count=0
Sauw Mingbe3771a2010-08-27 06:46:29 +00004304 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004305 while :
4306 do
4307 cat "conftest.in" "conftest.in" >"conftest.tmp"
4308 mv "conftest.tmp" "conftest.in"
4309 cp "conftest.in" "conftest.nl"
Sauw Mingbe3771a2010-08-27 06:46:29 +00004310 echo 'GREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004311 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4312 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Sauw Mingbe3771a2010-08-27 06:46:29 +00004313 ac_count=`expr $ac_count + 1`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004314 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4315 # Best one so far, save it but keep looking for a better one
4316 ac_cv_path_GREP="$ac_path_GREP"
4317 ac_path_GREP_max=$ac_count
4318 fi
4319 # 10*(2^10) chars as input seems more than enough
4320 test $ac_count -gt 10 && break
4321 done
4322 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4323esac
4324
Sauw Mingbe3771a2010-08-27 06:46:29 +00004325
4326 $ac_path_GREP_found && break 3
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004327 done
Sauw Mingbe3771a2010-08-27 06:46:29 +00004328done
4329
4330done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004331IFS=$as_save_IFS
Sauw Mingbe3771a2010-08-27 06:46:29 +00004332
4333
4334fi
4335
4336GREP="$ac_cv_path_GREP"
4337if test -z "$GREP"; then
4338 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4339echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4340 { (exit 1); exit 1; }; }
4341fi
4342
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004343else
4344 ac_cv_path_GREP=$GREP
4345fi
4346
Sauw Mingbe3771a2010-08-27 06:46:29 +00004347
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004348fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00004349{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4350echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004351 GREP="$ac_cv_path_GREP"
4352
4353
Sauw Mingbe3771a2010-08-27 06:46:29 +00004354{ echo "$as_me:$LINENO: checking for egrep" >&5
4355echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4356if test "${ac_cv_path_EGREP+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004358else
4359 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4360 then ac_cv_path_EGREP="$GREP -E"
4361 else
Sauw Mingbe3771a2010-08-27 06:46:29 +00004362 # Extract the first word of "egrep" to use in msg output
4363if test -z "$EGREP"; then
4364set dummy egrep; ac_prog_name=$2
4365if test "${ac_cv_path_EGREP+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004368 ac_path_EGREP_found=false
Sauw Mingbe3771a2010-08-27 06:46:29 +00004369# Loop through the user's path and test for each of PROGNAME-LIST
4370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004371for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4372do
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
Sauw Mingbe3771a2010-08-27 06:46:29 +00004375 for ac_prog in egrep; do
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4378 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4379 # Check for GNU ac_path_EGREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004380 # Check for GNU $ac_path_EGREP
4381case `"$ac_path_EGREP" --version 2>&1` in
4382*GNU*)
4383 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4384*)
4385 ac_count=0
Sauw Mingbe3771a2010-08-27 06:46:29 +00004386 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004387 while :
4388 do
4389 cat "conftest.in" "conftest.in" >"conftest.tmp"
4390 mv "conftest.tmp" "conftest.in"
4391 cp "conftest.in" "conftest.nl"
Sauw Mingbe3771a2010-08-27 06:46:29 +00004392 echo 'EGREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004393 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4394 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Sauw Mingbe3771a2010-08-27 06:46:29 +00004395 ac_count=`expr $ac_count + 1`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004396 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4397 # Best one so far, save it but keep looking for a better one
4398 ac_cv_path_EGREP="$ac_path_EGREP"
4399 ac_path_EGREP_max=$ac_count
4400 fi
4401 # 10*(2^10) chars as input seems more than enough
4402 test $ac_count -gt 10 && break
4403 done
4404 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4405esac
4406
Sauw Mingbe3771a2010-08-27 06:46:29 +00004407
4408 $ac_path_EGREP_found && break 3
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004409 done
Sauw Mingbe3771a2010-08-27 06:46:29 +00004410done
4411
4412done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004413IFS=$as_save_IFS
Sauw Mingbe3771a2010-08-27 06:46:29 +00004414
4415
4416fi
4417
4418EGREP="$ac_cv_path_EGREP"
4419if test -z "$EGREP"; then
4420 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4421echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4422 { (exit 1); exit 1; }; }
4423fi
4424
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004425else
4426 ac_cv_path_EGREP=$EGREP
4427fi
4428
Sauw Mingbe3771a2010-08-27 06:46:29 +00004429
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004430 fi
4431fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00004432{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4433echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004434 EGREP="$ac_cv_path_EGREP"
4435
4436
Sauw Mingbe3771a2010-08-27 06:46:29 +00004437{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4438echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4439if test "${ac_cv_header_stdc+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004441else
Sauw Mingbe3771a2010-08-27 06:46:29 +00004442 cat >conftest.$ac_ext <<_ACEOF
4443/* confdefs.h. */
4444_ACEOF
4445cat confdefs.h >>conftest.$ac_ext
4446cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004447/* end confdefs.h. */
4448#include <stdlib.h>
4449#include <stdarg.h>
4450#include <string.h>
4451#include <float.h>
4452
4453int
4454main ()
4455{
4456
4457 ;
4458 return 0;
4459}
4460_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00004461rm -f conftest.$ac_objext
4462if { (ac_try="$ac_compile"
4463case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4466esac
4467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468 (eval "$ac_compile") 2>conftest.er1
4469 ac_status=$?
4470 grep -v '^ *+' conftest.er1 >conftest.err
4471 rm -f conftest.er1
4472 cat conftest.err >&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } && {
4475 test -z "$ac_c_werror_flag" ||
4476 test ! -s conftest.err
4477 } && test -s conftest.$ac_objext; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004478 ac_cv_header_stdc=yes
4479else
Sauw Mingbe3771a2010-08-27 06:46:29 +00004480 echo "$as_me: failed program was:" >&5
4481sed 's/^/| /' conftest.$ac_ext >&5
4482
4483 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004484fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00004485
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4487
4488if test $ac_cv_header_stdc = yes; then
4489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Sauw Mingbe3771a2010-08-27 06:46:29 +00004490 cat >conftest.$ac_ext <<_ACEOF
4491/* confdefs.h. */
4492_ACEOF
4493cat confdefs.h >>conftest.$ac_ext
4494cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004495/* end confdefs.h. */
4496#include <string.h>
4497
4498_ACEOF
4499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Sauw Mingbe3771a2010-08-27 06:46:29 +00004500 $EGREP "memchr" >/dev/null 2>&1; then
4501 :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004502else
4503 ac_cv_header_stdc=no
4504fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00004505rm -f -r conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004506
4507fi
4508
4509if test $ac_cv_header_stdc = yes; then
4510 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Sauw Mingbe3771a2010-08-27 06:46:29 +00004511 cat >conftest.$ac_ext <<_ACEOF
4512/* confdefs.h. */
4513_ACEOF
4514cat confdefs.h >>conftest.$ac_ext
4515cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004516/* end confdefs.h. */
4517#include <stdlib.h>
4518
4519_ACEOF
4520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Sauw Mingbe3771a2010-08-27 06:46:29 +00004521 $EGREP "free" >/dev/null 2>&1; then
4522 :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004523else
4524 ac_cv_header_stdc=no
4525fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00004526rm -f -r conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004527
4528fi
4529
4530if test $ac_cv_header_stdc = yes; then
4531 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Sauw Mingbe3771a2010-08-27 06:46:29 +00004532 if test "$cross_compiling" = yes; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004533 :
4534else
Sauw Mingbe3771a2010-08-27 06:46:29 +00004535 cat >conftest.$ac_ext <<_ACEOF
4536/* confdefs.h. */
4537_ACEOF
4538cat confdefs.h >>conftest.$ac_ext
4539cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004540/* end confdefs.h. */
4541#include <ctype.h>
4542#include <stdlib.h>
4543#if ((' ' & 0x0FF) == 0x020)
4544# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4545# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4546#else
4547# define ISLOWER(c) \
4548 (('a' <= (c) && (c) <= 'i') \
4549 || ('j' <= (c) && (c) <= 'r') \
4550 || ('s' <= (c) && (c) <= 'z'))
4551# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4552#endif
4553
4554#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4555int
4556main ()
4557{
4558 int i;
4559 for (i = 0; i < 256; i++)
4560 if (XOR (islower (i), ISLOWER (i))
4561 || toupper (i) != TOUPPER (i))
4562 return 2;
4563 return 0;
4564}
4565_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00004566rm -f conftest$ac_exeext
4567if { (ac_try="$ac_link"
4568case "(($ac_try" in
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4571esac
4572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573 (eval "$ac_link") 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4577 { (case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580esac
4581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582 (eval "$ac_try") 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4586 :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004587else
Sauw Mingbe3771a2010-08-27 06:46:29 +00004588 echo "$as_me: program exited with status $ac_status" >&5
4589echo "$as_me: failed program was:" >&5
4590sed 's/^/| /' conftest.$ac_ext >&5
4591
4592( exit $ac_status )
4593ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004594fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00004595rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004596fi
4597
Sauw Mingbe3771a2010-08-27 06:46:29 +00004598
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004599fi
4600fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00004601{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4602echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004603if test $ac_cv_header_stdc = yes; then
4604
Sauw Mingbe3771a2010-08-27 06:46:29 +00004605cat >>confdefs.h <<\_ACEOF
4606#define STDC_HEADERS 1
4607_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004608
4609fi
4610
4611# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Sauw Mingbe3771a2010-08-27 06:46:29 +00004612
4613
4614
4615
4616
4617
4618
4619
4620
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004621for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4622 inttypes.h stdint.h unistd.h
Sauw Mingbe3771a2010-08-27 06:46:29 +00004623do
4624as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4625{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4626echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4627if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4629else
4630 cat >conftest.$ac_ext <<_ACEOF
4631/* confdefs.h. */
4632_ACEOF
4633cat confdefs.h >>conftest.$ac_ext
4634cat >>conftest.$ac_ext <<_ACEOF
4635/* end confdefs.h. */
4636$ac_includes_default
4637
4638#include <$ac_header>
4639_ACEOF
4640rm -f conftest.$ac_objext
4641if { (ac_try="$ac_compile"
4642case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645esac
4646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_compile") 2>conftest.er1
4648 ac_status=$?
4649 grep -v '^ *+' conftest.er1 >conftest.err
4650 rm -f conftest.er1
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } && {
4654 test -z "$ac_c_werror_flag" ||
4655 test ! -s conftest.err
4656 } && test -s conftest.$ac_objext; then
4657 eval "$as_ac_Header=yes"
4658else
4659 echo "$as_me: failed program was:" >&5
4660sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 eval "$as_ac_Header=no"
4663fi
4664
4665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666fi
4667ac_res=`eval echo '${'$as_ac_Header'}'`
4668 { echo "$as_me:$LINENO: result: $ac_res" >&5
4669echo "${ECHO_T}$ac_res" >&6; }
4670if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004671 cat >>confdefs.h <<_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00004672#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004673_ACEOF
4674
4675fi
4676
4677done
4678
4679
Sauw Mingbe3771a2010-08-27 06:46:29 +00004680{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4681echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4682if test "${ac_cv_c_bigendian+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004684else
Sauw Mingbe3771a2010-08-27 06:46:29 +00004685 # See if sys/param.h defines the BYTE_ORDER macro.
4686cat >conftest.$ac_ext <<_ACEOF
4687/* confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +00004688_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00004689cat confdefs.h >>conftest.$ac_ext
4690cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004691/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004692#include <sys/types.h>
Sauw Mingbe3771a2010-08-27 06:46:29 +00004693#include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004694
4695int
4696main ()
4697{
Sauw Mingbe3771a2010-08-27 06:46:29 +00004698#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4699 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4700 bogus endian macros
4701#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004702
4703 ;
4704 return 0;
4705}
4706_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00004707rm -f conftest.$ac_objext
4708if { (ac_try="$ac_compile"
4709case "(($ac_try" in
4710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711 *) ac_try_echo=$ac_try;;
4712esac
4713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4714 (eval "$ac_compile") 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } && {
4721 test -z "$ac_c_werror_flag" ||
4722 test ! -s conftest.err
4723 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004724 # It does; now see whether it defined to BIG_ENDIAN or not.
Sauw Mingbe3771a2010-08-27 06:46:29 +00004725cat >conftest.$ac_ext <<_ACEOF
4726/* confdefs.h. */
4727_ACEOF
4728cat confdefs.h >>conftest.$ac_ext
4729cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004730/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004731#include <sys/types.h>
Sauw Mingbe3771a2010-08-27 06:46:29 +00004732#include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004733
4734int
4735main ()
4736{
4737#if BYTE_ORDER != BIG_ENDIAN
Sauw Mingbe3771a2010-08-27 06:46:29 +00004738 not big endian
4739#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004740
4741 ;
4742 return 0;
4743}
4744_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00004745rm -f conftest.$ac_objext
4746if { (ac_try="$ac_compile"
4747case "(($ac_try" in
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4750esac
4751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4752 (eval "$ac_compile") 2>conftest.er1
4753 ac_status=$?
4754 grep -v '^ *+' conftest.er1 >conftest.err
4755 rm -f conftest.er1
4756 cat conftest.err >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } && {
4759 test -z "$ac_c_werror_flag" ||
4760 test ! -s conftest.err
4761 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004762 ac_cv_c_bigendian=yes
4763else
Sauw Mingbe3771a2010-08-27 06:46:29 +00004764 echo "$as_me: failed program was:" >&5
4765sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijonod4306432010-05-01 22:05:41 +00004766
Sauw Mingbe3771a2010-08-27 06:46:29 +00004767 ac_cv_c_bigendian=no
4768fi
4769
4770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771else
4772 echo "$as_me: failed program was:" >&5
4773sed 's/^/| /' conftest.$ac_ext >&5
4774
4775 # It does not; compile a test program.
4776if test "$cross_compiling" = yes; then
4777 # try to guess the endianness by grepping values into an object file
4778 ac_cv_c_bigendian=unknown
4779 cat >conftest.$ac_ext <<_ACEOF
4780/* confdefs.h. */
4781_ACEOF
4782cat confdefs.h >>conftest.$ac_ext
4783cat >>conftest.$ac_ext <<_ACEOF
4784/* end confdefs.h. */
4785short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4786short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4787void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4788short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4789short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4790void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004791int
4792main ()
4793{
Sauw Mingbe3771a2010-08-27 06:46:29 +00004794 _ascii (); _ebcdic ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004795 ;
4796 return 0;
4797}
4798_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00004799rm -f conftest.$ac_objext
4800if { (ac_try="$ac_compile"
4801case "(($ac_try" in
4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803 *) ac_try_echo=$ac_try;;
4804esac
4805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4806 (eval "$ac_compile") 2>conftest.er1
4807 ac_status=$?
4808 grep -v '^ *+' conftest.er1 >conftest.err
4809 rm -f conftest.er1
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } && {
4813 test -z "$ac_c_werror_flag" ||
4814 test ! -s conftest.err
4815 } && test -s conftest.$ac_objext; then
4816 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004817 ac_cv_c_bigendian=yes
Sauw Mingbe3771a2010-08-27 06:46:29 +00004818fi
4819if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4820 if test "$ac_cv_c_bigendian" = unknown; then
4821 ac_cv_c_bigendian=no
4822 else
4823 # finding both strings is unlikely to happen, but who knows?
4824 ac_cv_c_bigendian=unknown
4825 fi
4826fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004827else
Sauw Mingbe3771a2010-08-27 06:46:29 +00004828 echo "$as_me: failed program was:" >&5
4829sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijono46bd0842010-02-12 14:12:41 +00004830
Sauw Mingbe3771a2010-08-27 06:46:29 +00004831
Benny Prijonod4306432010-05-01 22:05:41 +00004832fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00004833
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004835else
Sauw Mingbe3771a2010-08-27 06:46:29 +00004836 cat >conftest.$ac_ext <<_ACEOF
4837/* confdefs.h. */
4838_ACEOF
4839cat confdefs.h >>conftest.$ac_ext
4840cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004841/* end confdefs.h. */
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004842$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004843int
4844main ()
4845{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004846
Sauw Mingbe3771a2010-08-27 06:46:29 +00004847 /* Are we little or big endian? From Harbison&Steele. */
4848 union
4849 {
4850 long int l;
4851 char c[sizeof (long int)];
4852 } u;
4853 u.l = 1;
4854 return u.c[sizeof (long int) - 1] == 1;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004855
4856 ;
4857 return 0;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004858}
4859_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00004860rm -f conftest$ac_exeext
4861if { (ac_try="$ac_link"
4862case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865esac
4866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_link") 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4871 { (case "(($ac_try" in
4872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4873 *) ac_try_echo=$ac_try;;
4874esac
4875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4876 (eval "$ac_try") 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004880 ac_cv_c_bigendian=no
4881else
Sauw Mingbe3771a2010-08-27 06:46:29 +00004882 echo "$as_me: program exited with status $ac_status" >&5
4883echo "$as_me: failed program was:" >&5
4884sed 's/^/| /' conftest.$ac_ext >&5
4885
4886( exit $ac_status )
4887ac_cv_c_bigendian=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004888fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00004889rm -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 +00004890fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004891
Sauw Mingbe3771a2010-08-27 06:46:29 +00004892
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004893fi
Benny Prijonod5233702010-01-13 13:09:45 +00004894
Sauw Mingbe3771a2010-08-27 06:46:29 +00004895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896fi
4897{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4898echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4899case $ac_cv_c_bigendian in
4900 yes)
Benny Prijonod5233702010-01-13 13:09:45 +00004901
Sauw Mingbe3771a2010-08-27 06:46:29 +00004902cat >>confdefs.h <<\_ACEOF
4903#define WORDS_BIGENDIAN 1
4904_ACEOF
4905 ;;
4906 no)
4907 ;;
4908 *)
4909 { { echo "$as_me:$LINENO: error: unknown endianness
4910presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4911echo "$as_me: error: unknown endianness
4912presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4913 { (exit 1); exit 1; }; } ;;
4914esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004915
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004916
4917case $target in
4918 *mingw* | *cygw* | *win32* | *w32* )
Sauw Mingbe3771a2010-08-27 06:46:29 +00004919 cat >>confdefs.h <<\_ACEOF
4920#define PJ_WIN32 1
4921_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004922
Sauw Mingbe3771a2010-08-27 06:46:29 +00004923 cat >>confdefs.h <<\_ACEOF
4924#define PJ_WIN32_WINNT 0x0400
4925_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004926
Sauw Mingbe3771a2010-08-27 06:46:29 +00004927 cat >>confdefs.h <<\_ACEOF
4928#define WIN32_LEAN_AND_MEAN 1
4929_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004930
4931 ;;
4932 *darwin*)
Sauw Mingbe3771a2010-08-27 06:46:29 +00004933 cat >>confdefs.h <<\_ACEOF
4934#define PJ_DARWINOS 1
4935_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004936
4937 ;;
4938 *linux*)
Sauw Mingbe3771a2010-08-27 06:46:29 +00004939 cat >>confdefs.h <<\_ACEOF
4940#define PJ_LINUX 1
4941_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004942
4943 ;;
4944 *rtems*)
Sauw Mingbe3771a2010-08-27 06:46:29 +00004945 cat >>confdefs.h <<\_ACEOF
4946#define PJ_RTEMS 1
4947_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004948
4949 ;;
4950 *sunos* | *solaris* )
Sauw Mingbe3771a2010-08-27 06:46:29 +00004951 cat >>confdefs.h <<\_ACEOF
4952#define PJ_SUNOS 1
4953_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004954
4955 ;;
4956 *)
4957 ;;
4958esac
4959
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004960
4961
4962
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004963# Check whether --enable-floating-point was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +00004964if test "${enable_floating_point+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004965 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
Sauw Mingbe3771a2010-08-27 06:46:29 +00004966 cat >>confdefs.h <<\_ACEOF
4967#define PJ_HAS_FLOATING_POINT 0
4968_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004969
Sauw Mingbe3771a2010-08-27 06:46:29 +00004970 { echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5
4971echo "${ECHO_T}Checking if floating point is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004972 fi
4973else
4974
Sauw Mingbe3771a2010-08-27 06:46:29 +00004975 cat >>confdefs.h <<\_ACEOF
4976#define PJ_HAS_FLOATING_POINT 1
4977_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004978
Sauw Mingbe3771a2010-08-27 06:46:29 +00004979 { echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5
4980echo "${ECHO_T}Checking if floating point is disabled... no" >&6; }
4981
4982{ echo "$as_me:$LINENO: checking for fmod in -lm" >&5
4983echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6; }
4984if test "${ac_cv_lib_m_fmod+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004986else
4987 ac_check_lib_save_LIBS=$LIBS
4988LIBS="-lm $LIBS"
Sauw Mingbe3771a2010-08-27 06:46:29 +00004989cat >conftest.$ac_ext <<_ACEOF
4990/* confdefs.h. */
4991_ACEOF
4992cat confdefs.h >>conftest.$ac_ext
4993cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004994/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004995
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004996/* Override any GCC internal prototype to avoid an error.
4997 Use char because int might match the return type of a GCC
4998 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004999#ifdef __cplusplus
5000extern "C"
5001#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005002char fmod ();
5003int
5004main ()
5005{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005006return fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005007 ;
5008 return 0;
5009}
5010_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00005011rm -f conftest.$ac_objext conftest$ac_exeext
5012if { (ac_try="$ac_link"
5013case "(($ac_try" in
5014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015 *) ac_try_echo=$ac_try;;
5016esac
5017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5018 (eval "$ac_link") 2>conftest.er1
5019 ac_status=$?
5020 grep -v '^ *+' conftest.er1 >conftest.err
5021 rm -f conftest.er1
5022 cat conftest.err >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } && {
5025 test -z "$ac_c_werror_flag" ||
5026 test ! -s conftest.err
5027 } && test -s conftest$ac_exeext &&
5028 $as_test_x conftest$ac_exeext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005029 ac_cv_lib_m_fmod=yes
5030else
Sauw Mingbe3771a2010-08-27 06:46:29 +00005031 echo "$as_me: failed program was:" >&5
5032sed 's/^/| /' conftest.$ac_ext >&5
5033
5034 ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005035fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00005036
5037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5038 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005039LIBS=$ac_check_lib_save_LIBS
5040fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00005041{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
5042echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6; }
5043if test $ac_cv_lib_m_fmod = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005044 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005045#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005046_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005047
5048 LIBS="-lm $LIBS"
5049
5050fi
5051
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005052
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005053fi
5054
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005055
5056
Sauw Mingbe3771a2010-08-27 06:46:29 +00005057if test "${ac_cv_header_arpa_inet_h+set}" = set; then
5058 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
5059echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
5060if test "${ac_cv_header_arpa_inet_h+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5062fi
5063{ echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
5064echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
5065else
5066 # Is the header compilable?
5067{ echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
5068echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
5069cat >conftest.$ac_ext <<_ACEOF
5070/* confdefs.h. */
5071_ACEOF
5072cat confdefs.h >>conftest.$ac_ext
5073cat >>conftest.$ac_ext <<_ACEOF
5074/* end confdefs.h. */
5075$ac_includes_default
5076#include <arpa/inet.h>
5077_ACEOF
5078rm -f conftest.$ac_objext
5079if { (ac_try="$ac_compile"
5080case "(($ac_try" in
5081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082 *) ac_try_echo=$ac_try;;
5083esac
5084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085 (eval "$ac_compile") 2>conftest.er1
5086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } && {
5092 test -z "$ac_c_werror_flag" ||
5093 test ! -s conftest.err
5094 } && test -s conftest.$ac_objext; then
5095 ac_header_compiler=yes
5096else
5097 echo "$as_me: failed program was:" >&5
5098sed 's/^/| /' conftest.$ac_ext >&5
5099
5100 ac_header_compiler=no
5101fi
5102
5103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5104{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5105echo "${ECHO_T}$ac_header_compiler" >&6; }
5106
5107# Is the header present?
5108{ echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
5109echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
5110cat >conftest.$ac_ext <<_ACEOF
5111/* confdefs.h. */
5112_ACEOF
5113cat confdefs.h >>conftest.$ac_ext
5114cat >>conftest.$ac_ext <<_ACEOF
5115/* end confdefs.h. */
5116#include <arpa/inet.h>
5117_ACEOF
5118if { (ac_try="$ac_cpp conftest.$ac_ext"
5119case "(($ac_try" in
5120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121 *) ac_try_echo=$ac_try;;
5122esac
5123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5125 ac_status=$?
5126 grep -v '^ *+' conftest.er1 >conftest.err
5127 rm -f conftest.er1
5128 cat conftest.err >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } >/dev/null && {
5131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5132 test ! -s conftest.err
5133 }; then
5134 ac_header_preproc=yes
5135else
5136 echo "$as_me: failed program was:" >&5
5137sed 's/^/| /' conftest.$ac_ext >&5
5138
5139 ac_header_preproc=no
5140fi
5141
5142rm -f conftest.err conftest.$ac_ext
5143{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5144echo "${ECHO_T}$ac_header_preproc" >&6; }
5145
5146# So? What about this header?
5147case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5148 yes:no: )
5149 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
5150echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5151 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
5152echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
5153 ac_header_preproc=yes
5154 ;;
5155 no:yes:* )
5156 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
5157echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
5158 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
5159echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
5160 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
5161echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
5162 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
5163echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
5164 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
5165echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
5166 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
5167echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
5168
5169 ;;
5170esac
5171{ echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
5172echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
5173if test "${ac_cv_header_arpa_inet_h+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5175else
5176 ac_cv_header_arpa_inet_h=$ac_header_preproc
5177fi
5178{ echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
5179echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
5180
5181fi
5182if test $ac_cv_header_arpa_inet_h = yes; then
5183 cat >>confdefs.h <<\_ACEOF
5184#define PJ_HAS_ARPA_INET_H 1
5185_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005186
5187fi
5188
5189
Sauw Mingbe3771a2010-08-27 06:46:29 +00005190if test "${ac_cv_header_assert_h+set}" = set; then
5191 { echo "$as_me:$LINENO: checking for assert.h" >&5
5192echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
5193if test "${ac_cv_header_assert_h+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5195fi
5196{ echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
5197echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
5198else
5199 # Is the header compilable?
5200{ echo "$as_me:$LINENO: checking assert.h usability" >&5
5201echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; }
5202cat >conftest.$ac_ext <<_ACEOF
5203/* confdefs.h. */
5204_ACEOF
5205cat confdefs.h >>conftest.$ac_ext
5206cat >>conftest.$ac_ext <<_ACEOF
5207/* end confdefs.h. */
5208$ac_includes_default
5209#include <assert.h>
5210_ACEOF
5211rm -f conftest.$ac_objext
5212if { (ac_try="$ac_compile"
5213case "(($ac_try" in
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5216esac
5217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218 (eval "$ac_compile") 2>conftest.er1
5219 ac_status=$?
5220 grep -v '^ *+' conftest.er1 >conftest.err
5221 rm -f conftest.er1
5222 cat conftest.err >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } && {
5225 test -z "$ac_c_werror_flag" ||
5226 test ! -s conftest.err
5227 } && test -s conftest.$ac_objext; then
5228 ac_header_compiler=yes
5229else
5230 echo "$as_me: failed program was:" >&5
5231sed 's/^/| /' conftest.$ac_ext >&5
5232
5233 ac_header_compiler=no
5234fi
5235
5236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5237{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5238echo "${ECHO_T}$ac_header_compiler" >&6; }
5239
5240# Is the header present?
5241{ echo "$as_me:$LINENO: checking assert.h presence" >&5
5242echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; }
5243cat >conftest.$ac_ext <<_ACEOF
5244/* confdefs.h. */
5245_ACEOF
5246cat confdefs.h >>conftest.$ac_ext
5247cat >>conftest.$ac_ext <<_ACEOF
5248/* end confdefs.h. */
5249#include <assert.h>
5250_ACEOF
5251if { (ac_try="$ac_cpp conftest.$ac_ext"
5252case "(($ac_try" in
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5255esac
5256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } >/dev/null && {
5264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 }; then
5267 ac_header_preproc=yes
5268else
5269 echo "$as_me: failed program was:" >&5
5270sed 's/^/| /' conftest.$ac_ext >&5
5271
5272 ac_header_preproc=no
5273fi
5274
5275rm -f conftest.err conftest.$ac_ext
5276{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5277echo "${ECHO_T}$ac_header_preproc" >&6; }
5278
5279# So? What about this header?
5280case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5281 yes:no: )
5282 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
5283echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5284 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
5285echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
5286 ac_header_preproc=yes
5287 ;;
5288 no:yes:* )
5289 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
5290echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
5291 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
5292echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
5293 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
5294echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
5295 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
5296echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
5297 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
5298echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
5299 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
5300echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
5301
5302 ;;
5303esac
5304{ echo "$as_me:$LINENO: checking for assert.h" >&5
5305echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
5306if test "${ac_cv_header_assert_h+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308else
5309 ac_cv_header_assert_h=$ac_header_preproc
5310fi
5311{ echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
5312echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
5313
5314fi
5315if test $ac_cv_header_assert_h = yes; then
5316 cat >>confdefs.h <<\_ACEOF
5317#define PJ_HAS_ASSERT_H 1
5318_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005319
5320fi
5321
5322
Sauw Mingbe3771a2010-08-27 06:46:29 +00005323if test "${ac_cv_header_ctype_h+set}" = set; then
5324 { echo "$as_me:$LINENO: checking for ctype.h" >&5
5325echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; }
5326if test "${ac_cv_header_ctype_h+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5328fi
5329{ echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
5330echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; }
5331else
5332 # Is the header compilable?
5333{ echo "$as_me:$LINENO: checking ctype.h usability" >&5
5334echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6; }
5335cat >conftest.$ac_ext <<_ACEOF
5336/* confdefs.h. */
5337_ACEOF
5338cat confdefs.h >>conftest.$ac_ext
5339cat >>conftest.$ac_ext <<_ACEOF
5340/* end confdefs.h. */
5341$ac_includes_default
5342#include <ctype.h>
5343_ACEOF
5344rm -f conftest.$ac_objext
5345if { (ac_try="$ac_compile"
5346case "(($ac_try" in
5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348 *) ac_try_echo=$ac_try;;
5349esac
5350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5351 (eval "$ac_compile") 2>conftest.er1
5352 ac_status=$?
5353 grep -v '^ *+' conftest.er1 >conftest.err
5354 rm -f conftest.er1
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } && {
5358 test -z "$ac_c_werror_flag" ||
5359 test ! -s conftest.err
5360 } && test -s conftest.$ac_objext; then
5361 ac_header_compiler=yes
5362else
5363 echo "$as_me: failed program was:" >&5
5364sed 's/^/| /' conftest.$ac_ext >&5
5365
5366 ac_header_compiler=no
5367fi
5368
5369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5370{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5371echo "${ECHO_T}$ac_header_compiler" >&6; }
5372
5373# Is the header present?
5374{ echo "$as_me:$LINENO: checking ctype.h presence" >&5
5375echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6; }
5376cat >conftest.$ac_ext <<_ACEOF
5377/* confdefs.h. */
5378_ACEOF
5379cat confdefs.h >>conftest.$ac_ext
5380cat >>conftest.$ac_ext <<_ACEOF
5381/* end confdefs.h. */
5382#include <ctype.h>
5383_ACEOF
5384if { (ac_try="$ac_cpp conftest.$ac_ext"
5385case "(($ac_try" in
5386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387 *) ac_try_echo=$ac_try;;
5388esac
5389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5391 ac_status=$?
5392 grep -v '^ *+' conftest.er1 >conftest.err
5393 rm -f conftest.er1
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } >/dev/null && {
5397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5398 test ! -s conftest.err
5399 }; then
5400 ac_header_preproc=yes
5401else
5402 echo "$as_me: failed program was:" >&5
5403sed 's/^/| /' conftest.$ac_ext >&5
5404
5405 ac_header_preproc=no
5406fi
5407
5408rm -f conftest.err conftest.$ac_ext
5409{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5410echo "${ECHO_T}$ac_header_preproc" >&6; }
5411
5412# So? What about this header?
5413case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5414 yes:no: )
5415 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5
5416echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5417 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5
5418echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;}
5419 ac_header_preproc=yes
5420 ;;
5421 no:yes:* )
5422 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5
5423echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;}
5424 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5
5425echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;}
5426 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5
5427echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;}
5428 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5
5429echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;}
5430 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5
5431echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;}
5432 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5
5433echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;}
5434
5435 ;;
5436esac
5437{ echo "$as_me:$LINENO: checking for ctype.h" >&5
5438echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; }
5439if test "${ac_cv_header_ctype_h+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5441else
5442 ac_cv_header_ctype_h=$ac_header_preproc
5443fi
5444{ echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
5445echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; }
5446
5447fi
5448if test $ac_cv_header_ctype_h = yes; then
5449 cat >>confdefs.h <<\_ACEOF
5450#define PJ_HAS_CTYPE_H 1
5451_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005452
5453fi
5454
5455
5456
5457case $target in
5458 *mingw* | *cygw* | *win32* | *w32* )
Sauw Mingbe3771a2010-08-27 06:46:29 +00005459 cat >>confdefs.h <<\_ACEOF
5460#define PJ_HAS_ERRNO_H 0
5461_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005462
5463 ;;
5464 *)
Sauw Mingbe3771a2010-08-27 06:46:29 +00005465 if test "${ac_cv_header_errno_h+set}" = set; then
5466 { echo "$as_me:$LINENO: checking for errno.h" >&5
5467echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
5468if test "${ac_cv_header_errno_h+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5470fi
5471{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5472echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
5473else
5474 # Is the header compilable?
5475{ echo "$as_me:$LINENO: checking errno.h usability" >&5
5476echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; }
5477cat >conftest.$ac_ext <<_ACEOF
5478/* confdefs.h. */
5479_ACEOF
5480cat confdefs.h >>conftest.$ac_ext
5481cat >>conftest.$ac_ext <<_ACEOF
5482/* end confdefs.h. */
5483$ac_includes_default
5484#include <errno.h>
5485_ACEOF
5486rm -f conftest.$ac_objext
5487if { (ac_try="$ac_compile"
5488case "(($ac_try" in
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5491esac
5492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_compile") 2>conftest.er1
5494 ac_status=$?
5495 grep -v '^ *+' conftest.er1 >conftest.err
5496 rm -f conftest.er1
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } && {
5500 test -z "$ac_c_werror_flag" ||
5501 test ! -s conftest.err
5502 } && test -s conftest.$ac_objext; then
5503 ac_header_compiler=yes
5504else
5505 echo "$as_me: failed program was:" >&5
5506sed 's/^/| /' conftest.$ac_ext >&5
5507
5508 ac_header_compiler=no
5509fi
5510
5511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5512{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5513echo "${ECHO_T}$ac_header_compiler" >&6; }
5514
5515# Is the header present?
5516{ echo "$as_me:$LINENO: checking errno.h presence" >&5
5517echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; }
5518cat >conftest.$ac_ext <<_ACEOF
5519/* confdefs.h. */
5520_ACEOF
5521cat confdefs.h >>conftest.$ac_ext
5522cat >>conftest.$ac_ext <<_ACEOF
5523/* end confdefs.h. */
5524#include <errno.h>
5525_ACEOF
5526if { (ac_try="$ac_cpp conftest.$ac_ext"
5527case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530esac
5531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5533 ac_status=$?
5534 grep -v '^ *+' conftest.er1 >conftest.err
5535 rm -f conftest.er1
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } >/dev/null && {
5539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5540 test ! -s conftest.err
5541 }; then
5542 ac_header_preproc=yes
5543else
5544 echo "$as_me: failed program was:" >&5
5545sed 's/^/| /' conftest.$ac_ext >&5
5546
5547 ac_header_preproc=no
5548fi
5549
5550rm -f conftest.err conftest.$ac_ext
5551{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5552echo "${ECHO_T}$ac_header_preproc" >&6; }
5553
5554# So? What about this header?
5555case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5556 yes:no: )
5557 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
5558echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5559 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
5560echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
5561 ac_header_preproc=yes
5562 ;;
5563 no:yes:* )
5564 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
5565echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
5566 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5
5567echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;}
5568 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
5569echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
5570 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5
5571echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
5572 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
5573echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
5574 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
5575echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
5576
5577 ;;
5578esac
5579{ echo "$as_me:$LINENO: checking for errno.h" >&5
5580echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
5581if test "${ac_cv_header_errno_h+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5583else
5584 ac_cv_header_errno_h=$ac_header_preproc
5585fi
5586{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5587echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
5588
5589fi
5590if test $ac_cv_header_errno_h = yes; then
5591 cat >>confdefs.h <<\_ACEOF
5592#define PJ_HAS_ERRNO_H 1
5593_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005594
5595fi
5596
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005597
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005598 ;;
5599esac
5600
Sauw Mingbe3771a2010-08-27 06:46:29 +00005601if test "${ac_cv_header_fcntl_h+set}" = set; then
5602 { echo "$as_me:$LINENO: checking for fcntl.h" >&5
5603echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; }
5604if test "${ac_cv_header_fcntl_h+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5606fi
5607{ echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
5608echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; }
5609else
5610 # Is the header compilable?
5611{ echo "$as_me:$LINENO: checking fcntl.h usability" >&5
5612echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6; }
5613cat >conftest.$ac_ext <<_ACEOF
5614/* confdefs.h. */
5615_ACEOF
5616cat confdefs.h >>conftest.$ac_ext
5617cat >>conftest.$ac_ext <<_ACEOF
5618/* end confdefs.h. */
5619$ac_includes_default
5620#include <fcntl.h>
5621_ACEOF
5622rm -f conftest.$ac_objext
5623if { (ac_try="$ac_compile"
5624case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5627esac
5628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629 (eval "$ac_compile") 2>conftest.er1
5630 ac_status=$?
5631 grep -v '^ *+' conftest.er1 >conftest.err
5632 rm -f conftest.er1
5633 cat conftest.err >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } && {
5636 test -z "$ac_c_werror_flag" ||
5637 test ! -s conftest.err
5638 } && test -s conftest.$ac_objext; then
5639 ac_header_compiler=yes
5640else
5641 echo "$as_me: failed program was:" >&5
5642sed 's/^/| /' conftest.$ac_ext >&5
5643
5644 ac_header_compiler=no
5645fi
5646
5647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5649echo "${ECHO_T}$ac_header_compiler" >&6; }
5650
5651# Is the header present?
5652{ echo "$as_me:$LINENO: checking fcntl.h presence" >&5
5653echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6; }
5654cat >conftest.$ac_ext <<_ACEOF
5655/* confdefs.h. */
5656_ACEOF
5657cat confdefs.h >>conftest.$ac_ext
5658cat >>conftest.$ac_ext <<_ACEOF
5659/* end confdefs.h. */
5660#include <fcntl.h>
5661_ACEOF
5662if { (ac_try="$ac_cpp conftest.$ac_ext"
5663case "(($ac_try" in
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5666esac
5667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5669 ac_status=$?
5670 grep -v '^ *+' conftest.er1 >conftest.err
5671 rm -f conftest.er1
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } >/dev/null && {
5675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5676 test ! -s conftest.err
5677 }; then
5678 ac_header_preproc=yes
5679else
5680 echo "$as_me: failed program was:" >&5
5681sed 's/^/| /' conftest.$ac_ext >&5
5682
5683 ac_header_preproc=no
5684fi
5685
5686rm -f conftest.err conftest.$ac_ext
5687{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5688echo "${ECHO_T}$ac_header_preproc" >&6; }
5689
5690# So? What about this header?
5691case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5692 yes:no: )
5693 { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5694echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5695 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5
5696echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;}
5697 ac_header_preproc=yes
5698 ;;
5699 no:yes:* )
5700 { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5
5701echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;}
5702 { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5
5703echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;}
5704 { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5
5705echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;}
5706 { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5
5707echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5708 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5
5709echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5
5711echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;}
5712
5713 ;;
5714esac
5715{ echo "$as_me:$LINENO: checking for fcntl.h" >&5
5716echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; }
5717if test "${ac_cv_header_fcntl_h+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5719else
5720 ac_cv_header_fcntl_h=$ac_header_preproc
5721fi
5722{ echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
5723echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; }
5724
5725fi
5726if test $ac_cv_header_fcntl_h = yes; then
5727 cat >>confdefs.h <<\_ACEOF
5728#define PJ_HAS_FCNTL_H 1
5729_ACEOF
Benny Prijono1d481ab2008-01-24 15:27:30 +00005730
5731fi
5732
5733
Sauw Mingbe3771a2010-08-27 06:46:29 +00005734if test "${ac_cv_header_linux_socket_h+set}" = set; then
5735 { echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5736echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; }
5737if test "${ac_cv_header_linux_socket_h+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5739fi
5740{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5741echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; }
5742else
5743 # Is the header compilable?
5744{ echo "$as_me:$LINENO: checking linux/socket.h usability" >&5
5745echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6; }
5746cat >conftest.$ac_ext <<_ACEOF
5747/* confdefs.h. */
5748_ACEOF
5749cat confdefs.h >>conftest.$ac_ext
5750cat >>conftest.$ac_ext <<_ACEOF
5751/* end confdefs.h. */
5752$ac_includes_default
5753#include <linux/socket.h>
5754_ACEOF
5755rm -f conftest.$ac_objext
5756if { (ac_try="$ac_compile"
5757case "(($ac_try" in
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5760esac
5761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_compile") 2>conftest.er1
5763 ac_status=$?
5764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } && {
5769 test -z "$ac_c_werror_flag" ||
5770 test ! -s conftest.err
5771 } && test -s conftest.$ac_objext; then
5772 ac_header_compiler=yes
5773else
5774 echo "$as_me: failed program was:" >&5
5775sed 's/^/| /' conftest.$ac_ext >&5
5776
5777 ac_header_compiler=no
5778fi
5779
5780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5782echo "${ECHO_T}$ac_header_compiler" >&6; }
5783
5784# Is the header present?
5785{ echo "$as_me:$LINENO: checking linux/socket.h presence" >&5
5786echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6; }
5787cat >conftest.$ac_ext <<_ACEOF
5788/* confdefs.h. */
5789_ACEOF
5790cat confdefs.h >>conftest.$ac_ext
5791cat >>conftest.$ac_ext <<_ACEOF
5792/* end confdefs.h. */
5793#include <linux/socket.h>
5794_ACEOF
5795if { (ac_try="$ac_cpp conftest.$ac_ext"
5796case "(($ac_try" in
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5799esac
5800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } >/dev/null && {
5808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5809 test ! -s conftest.err
5810 }; then
5811 ac_header_preproc=yes
5812else
5813 echo "$as_me: failed program was:" >&5
5814sed 's/^/| /' conftest.$ac_ext >&5
5815
5816 ac_header_preproc=no
5817fi
5818
5819rm -f conftest.err conftest.$ac_ext
5820{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5821echo "${ECHO_T}$ac_header_preproc" >&6; }
5822
5823# So? What about this header?
5824case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5825 yes:no: )
5826 { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
5827echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5828 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5
5829echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;}
5830 ac_header_preproc=yes
5831 ;;
5832 no:yes:* )
5833 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5
5834echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;}
5835 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5
5836echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;}
5837 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5
5838echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;}
5839 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5
5840echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
5841 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5
5842echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;}
5843 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5
5844echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;}
5845
5846 ;;
5847esac
5848{ echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5849echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; }
5850if test "${ac_cv_header_linux_socket_h+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5852else
5853 ac_cv_header_linux_socket_h=$ac_header_preproc
5854fi
5855{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5856echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; }
5857
5858fi
5859if test $ac_cv_header_linux_socket_h = yes; then
5860 cat >>confdefs.h <<\_ACEOF
5861#define PJ_HAS_LINUX_SOCKET_H 1
5862_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005863
5864fi
5865
5866
Sauw Mingbe3771a2010-08-27 06:46:29 +00005867if test "${ac_cv_header_malloc_h+set}" = set; then
5868 { echo "$as_me:$LINENO: checking for malloc.h" >&5
5869echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
5870if test "${ac_cv_header_malloc_h+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5872fi
5873{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5874echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
5875else
5876 # Is the header compilable?
5877{ echo "$as_me:$LINENO: checking malloc.h usability" >&5
5878echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; }
5879cat >conftest.$ac_ext <<_ACEOF
5880/* confdefs.h. */
5881_ACEOF
5882cat confdefs.h >>conftest.$ac_ext
5883cat >>conftest.$ac_ext <<_ACEOF
5884/* end confdefs.h. */
5885$ac_includes_default
5886#include <malloc.h>
5887_ACEOF
5888rm -f conftest.$ac_objext
5889if { (ac_try="$ac_compile"
5890case "(($ac_try" in
5891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892 *) ac_try_echo=$ac_try;;
5893esac
5894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_compile") 2>conftest.er1
5896 ac_status=$?
5897 grep -v '^ *+' conftest.er1 >conftest.err
5898 rm -f conftest.er1
5899 cat conftest.err >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } && {
5902 test -z "$ac_c_werror_flag" ||
5903 test ! -s conftest.err
5904 } && test -s conftest.$ac_objext; then
5905 ac_header_compiler=yes
5906else
5907 echo "$as_me: failed program was:" >&5
5908sed 's/^/| /' conftest.$ac_ext >&5
5909
5910 ac_header_compiler=no
5911fi
5912
5913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5915echo "${ECHO_T}$ac_header_compiler" >&6; }
5916
5917# Is the header present?
5918{ echo "$as_me:$LINENO: checking malloc.h presence" >&5
5919echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; }
5920cat >conftest.$ac_ext <<_ACEOF
5921/* confdefs.h. */
5922_ACEOF
5923cat confdefs.h >>conftest.$ac_ext
5924cat >>conftest.$ac_ext <<_ACEOF
5925/* end confdefs.h. */
5926#include <malloc.h>
5927_ACEOF
5928if { (ac_try="$ac_cpp conftest.$ac_ext"
5929case "(($ac_try" in
5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5932esac
5933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5935 ac_status=$?
5936 grep -v '^ *+' conftest.er1 >conftest.err
5937 rm -f conftest.er1
5938 cat conftest.err >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } >/dev/null && {
5941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5942 test ! -s conftest.err
5943 }; then
5944 ac_header_preproc=yes
5945else
5946 echo "$as_me: failed program was:" >&5
5947sed 's/^/| /' conftest.$ac_ext >&5
5948
5949 ac_header_preproc=no
5950fi
5951
5952rm -f conftest.err conftest.$ac_ext
5953{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5954echo "${ECHO_T}$ac_header_preproc" >&6; }
5955
5956# So? What about this header?
5957case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5958 yes:no: )
5959 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
5960echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5961 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
5962echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
5963 ac_header_preproc=yes
5964 ;;
5965 no:yes:* )
5966 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
5967echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
5968 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
5969echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
5970 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
5971echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
5972 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
5973echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
5974 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
5975echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
5976 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
5977echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
5978
5979 ;;
5980esac
5981{ echo "$as_me:$LINENO: checking for malloc.h" >&5
5982echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
5983if test "${ac_cv_header_malloc_h+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5985else
5986 ac_cv_header_malloc_h=$ac_header_preproc
5987fi
5988{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5989echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
5990
5991fi
5992if test $ac_cv_header_malloc_h = yes; then
5993 cat >>confdefs.h <<\_ACEOF
5994#define PJ_HAS_MALLOC_H 1
5995_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005996
5997fi
5998
5999
Sauw Mingbe3771a2010-08-27 06:46:29 +00006000if test "${ac_cv_header_netdb_h+set}" = set; then
6001 { echo "$as_me:$LINENO: checking for netdb.h" >&5
6002echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; }
6003if test "${ac_cv_header_netdb_h+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6005fi
6006{ echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
6007echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; }
6008else
6009 # Is the header compilable?
6010{ echo "$as_me:$LINENO: checking netdb.h usability" >&5
6011echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6; }
6012cat >conftest.$ac_ext <<_ACEOF
6013/* confdefs.h. */
6014_ACEOF
6015cat confdefs.h >>conftest.$ac_ext
6016cat >>conftest.$ac_ext <<_ACEOF
6017/* end confdefs.h. */
6018$ac_includes_default
6019#include <netdb.h>
6020_ACEOF
6021rm -f conftest.$ac_objext
6022if { (ac_try="$ac_compile"
6023case "(($ac_try" in
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6026esac
6027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_compile") 2>conftest.er1
6029 ac_status=$?
6030 grep -v '^ *+' conftest.er1 >conftest.err
6031 rm -f conftest.er1
6032 cat conftest.err >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); } && {
6035 test -z "$ac_c_werror_flag" ||
6036 test ! -s conftest.err
6037 } && test -s conftest.$ac_objext; then
6038 ac_header_compiler=yes
6039else
6040 echo "$as_me: failed program was:" >&5
6041sed 's/^/| /' conftest.$ac_ext >&5
6042
6043 ac_header_compiler=no
6044fi
6045
6046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6048echo "${ECHO_T}$ac_header_compiler" >&6; }
6049
6050# Is the header present?
6051{ echo "$as_me:$LINENO: checking netdb.h presence" >&5
6052echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6; }
6053cat >conftest.$ac_ext <<_ACEOF
6054/* confdefs.h. */
6055_ACEOF
6056cat confdefs.h >>conftest.$ac_ext
6057cat >>conftest.$ac_ext <<_ACEOF
6058/* end confdefs.h. */
6059#include <netdb.h>
6060_ACEOF
6061if { (ac_try="$ac_cpp conftest.$ac_ext"
6062case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065esac
6066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } >/dev/null && {
6074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6075 test ! -s conftest.err
6076 }; then
6077 ac_header_preproc=yes
6078else
6079 echo "$as_me: failed program was:" >&5
6080sed 's/^/| /' conftest.$ac_ext >&5
6081
6082 ac_header_preproc=no
6083fi
6084
6085rm -f conftest.err conftest.$ac_ext
6086{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6087echo "${ECHO_T}$ac_header_preproc" >&6; }
6088
6089# So? What about this header?
6090case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6091 yes:no: )
6092 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
6093echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6094 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5
6095echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;}
6096 ac_header_preproc=yes
6097 ;;
6098 no:yes:* )
6099 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5
6100echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;}
6101 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5
6102echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;}
6103 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5
6104echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;}
6105 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5
6106echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
6107 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5
6108echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;}
6109 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5
6110echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;}
6111
6112 ;;
6113esac
6114{ echo "$as_me:$LINENO: checking for netdb.h" >&5
6115echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; }
6116if test "${ac_cv_header_netdb_h+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118else
6119 ac_cv_header_netdb_h=$ac_header_preproc
6120fi
6121{ echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
6122echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; }
6123
6124fi
6125if test $ac_cv_header_netdb_h = yes; then
6126 cat >>confdefs.h <<\_ACEOF
6127#define PJ_HAS_NETDB_H 1
6128_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006129
6130fi
6131
6132
Sauw Mingbe3771a2010-08-27 06:46:29 +00006133if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
6134 { echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5
6135echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; }
6136if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6138fi
6139{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5
6140echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; }
6141else
6142 # Is the header compilable?
6143{ echo "$as_me:$LINENO: checking netinet/in_systm.h usability" >&5
6144echo $ECHO_N "checking netinet/in_systm.h usability... $ECHO_C" >&6; }
6145cat >conftest.$ac_ext <<_ACEOF
6146/* confdefs.h. */
6147_ACEOF
6148cat confdefs.h >>conftest.$ac_ext
6149cat >>conftest.$ac_ext <<_ACEOF
6150/* end confdefs.h. */
6151$ac_includes_default
6152#include <netinet/in_systm.h>
6153_ACEOF
6154rm -f conftest.$ac_objext
6155if { (ac_try="$ac_compile"
6156case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6159esac
6160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161 (eval "$ac_compile") 2>conftest.er1
6162 ac_status=$?
6163 grep -v '^ *+' conftest.er1 >conftest.err
6164 rm -f conftest.er1
6165 cat conftest.err >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } && {
6168 test -z "$ac_c_werror_flag" ||
6169 test ! -s conftest.err
6170 } && test -s conftest.$ac_objext; then
6171 ac_header_compiler=yes
6172else
6173 echo "$as_me: failed program was:" >&5
6174sed 's/^/| /' conftest.$ac_ext >&5
6175
6176 ac_header_compiler=no
6177fi
6178
6179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6181echo "${ECHO_T}$ac_header_compiler" >&6; }
6182
6183# Is the header present?
6184{ echo "$as_me:$LINENO: checking netinet/in_systm.h presence" >&5
6185echo $ECHO_N "checking netinet/in_systm.h presence... $ECHO_C" >&6; }
6186cat >conftest.$ac_ext <<_ACEOF
6187/* confdefs.h. */
6188_ACEOF
6189cat confdefs.h >>conftest.$ac_ext
6190cat >>conftest.$ac_ext <<_ACEOF
6191/* end confdefs.h. */
6192#include <netinet/in_systm.h>
6193_ACEOF
6194if { (ac_try="$ac_cpp conftest.$ac_ext"
6195case "(($ac_try" in
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6198esac
6199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6201 ac_status=$?
6202 grep -v '^ *+' conftest.er1 >conftest.err
6203 rm -f conftest.er1
6204 cat conftest.err >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } >/dev/null && {
6207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6208 test ! -s conftest.err
6209 }; then
6210 ac_header_preproc=yes
6211else
6212 echo "$as_me: failed program was:" >&5
6213sed 's/^/| /' conftest.$ac_ext >&5
6214
6215 ac_header_preproc=no
6216fi
6217
6218rm -f conftest.err conftest.$ac_ext
6219{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6220echo "${ECHO_T}$ac_header_preproc" >&6; }
6221
6222# So? What about this header?
6223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6224 yes:no: )
6225 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&5
6226echo "$as_me: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6227 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&5
6228echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&2;}
6229 ac_header_preproc=yes
6230 ;;
6231 no:yes:* )
6232 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: present but cannot be compiled" >&5
6233echo "$as_me: WARNING: netinet/in_systm.h: present but cannot be compiled" >&2;}
6234 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&5
6235echo "$as_me: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&2;}
6236 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&5
6237echo "$as_me: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&2;}
6238 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&5
6239echo "$as_me: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&2;}
6240 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&5
6241echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&2;}
6242 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&5
6243echo "$as_me: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&2;}
6244
6245 ;;
6246esac
6247{ echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5
6248echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; }
6249if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6251else
6252 ac_cv_header_netinet_in_systm_h=$ac_header_preproc
6253fi
6254{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5
6255echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; }
6256
6257fi
6258if test $ac_cv_header_netinet_in_systm_h = yes; then
6259 cat >>confdefs.h <<\_ACEOF
6260#define PJ_HAS_NETINET_IN_SYSTM_H 1
6261_ACEOF
Benny Prijono37fc9de2008-08-04 14:45:02 +00006262
6263fi
6264
6265
Sauw Mingbe3771a2010-08-27 06:46:29 +00006266if test "${ac_cv_header_netinet_in_h+set}" = set; then
6267 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
6268echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
6269if test "${ac_cv_header_netinet_in_h+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6271fi
6272{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
6273echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
6274else
6275 # Is the header compilable?
6276{ echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
6277echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
6278cat >conftest.$ac_ext <<_ACEOF
6279/* confdefs.h. */
6280_ACEOF
6281cat confdefs.h >>conftest.$ac_ext
6282cat >>conftest.$ac_ext <<_ACEOF
6283/* end confdefs.h. */
6284$ac_includes_default
6285#include <netinet/in.h>
6286_ACEOF
6287rm -f conftest.$ac_objext
6288if { (ac_try="$ac_compile"
6289case "(($ac_try" in
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6292esac
6293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_compile") 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } && {
6301 test -z "$ac_c_werror_flag" ||
6302 test ! -s conftest.err
6303 } && test -s conftest.$ac_objext; then
6304 ac_header_compiler=yes
6305else
6306 echo "$as_me: failed program was:" >&5
6307sed 's/^/| /' conftest.$ac_ext >&5
6308
6309 ac_header_compiler=no
6310fi
6311
6312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6314echo "${ECHO_T}$ac_header_compiler" >&6; }
6315
6316# Is the header present?
6317{ echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
6318echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
6319cat >conftest.$ac_ext <<_ACEOF
6320/* confdefs.h. */
6321_ACEOF
6322cat confdefs.h >>conftest.$ac_ext
6323cat >>conftest.$ac_ext <<_ACEOF
6324/* end confdefs.h. */
6325#include <netinet/in.h>
6326_ACEOF
6327if { (ac_try="$ac_cpp conftest.$ac_ext"
6328case "(($ac_try" in
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330 *) ac_try_echo=$ac_try;;
6331esac
6332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6334 ac_status=$?
6335 grep -v '^ *+' conftest.er1 >conftest.err
6336 rm -f conftest.er1
6337 cat conftest.err >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } >/dev/null && {
6340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6341 test ! -s conftest.err
6342 }; then
6343 ac_header_preproc=yes
6344else
6345 echo "$as_me: failed program was:" >&5
6346sed 's/^/| /' conftest.$ac_ext >&5
6347
6348 ac_header_preproc=no
6349fi
6350
6351rm -f conftest.err conftest.$ac_ext
6352{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6353echo "${ECHO_T}$ac_header_preproc" >&6; }
6354
6355# So? What about this header?
6356case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6357 yes:no: )
6358 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
6359echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6360 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
6361echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
6362 ac_header_preproc=yes
6363 ;;
6364 no:yes:* )
6365 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
6366echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
6367 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
6368echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
6369 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
6370echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
6371 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
6372echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
6373 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
6374echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
6375 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
6376echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
6377
6378 ;;
6379esac
6380{ echo "$as_me:$LINENO: checking for netinet/in.h" >&5
6381echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
6382if test "${ac_cv_header_netinet_in_h+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6384else
6385 ac_cv_header_netinet_in_h=$ac_header_preproc
6386fi
6387{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
6388echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
6389
6390fi
6391if test $ac_cv_header_netinet_in_h = yes; then
6392 cat >>confdefs.h <<\_ACEOF
6393#define PJ_HAS_NETINET_IN_H 1
6394_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006395
6396fi
6397
6398
Sauw Mingbe3771a2010-08-27 06:46:29 +00006399{ echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
6400echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6; }
6401if test "${ac_cv_header_netinet_ip_h+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403else
6404 cat >conftest.$ac_ext <<_ACEOF
6405/* confdefs.h. */
6406_ACEOF
6407cat confdefs.h >>conftest.$ac_ext
6408cat >>conftest.$ac_ext <<_ACEOF
6409/* end confdefs.h. */
6410#if PJ_HAS_SYS_TYPES_H
Benny Prijonod5233702010-01-13 13:09:45 +00006411 # include <sys/types.h>
6412 #endif
6413 #if PJ_HAS_NETINET_IN_SYSTM_H
Benny Prijono37fc9de2008-08-04 14:45:02 +00006414 # include <netinet/in_systm.h>
6415 #endif
Benny Prijonod5233702010-01-13 13:09:45 +00006416 #if PJ_HAS_NETINET_IN_H
6417 # include <netinet/in.h>
6418 #endif
Benny Prijono37fc9de2008-08-04 14:45:02 +00006419
Sauw Mingbe3771a2010-08-27 06:46:29 +00006420
6421#include <netinet/ip.h>
6422_ACEOF
6423rm -f conftest.$ac_objext
6424if { (ac_try="$ac_compile"
6425case "(($ac_try" in
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6428esac
6429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_compile") 2>conftest.er1
6431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } && {
6437 test -z "$ac_c_werror_flag" ||
6438 test ! -s conftest.err
6439 } && test -s conftest.$ac_objext; then
6440 ac_cv_header_netinet_ip_h=yes
6441else
6442 echo "$as_me: failed program was:" >&5
6443sed 's/^/| /' conftest.$ac_ext >&5
6444
6445 ac_cv_header_netinet_ip_h=no
6446fi
6447
6448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449fi
6450{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
6451echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6; }
6452if test $ac_cv_header_netinet_ip_h = yes; then
6453 cat >>confdefs.h <<\_ACEOF
6454#define PJ_HAS_NETINET_IP_H 1
6455_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00006456
Benny Prijono46bd0842010-02-12 14:12:41 +00006457fi
6458
Benny Prijonof63a2552007-02-01 00:36:52 +00006459
Sauw Mingbe3771a2010-08-27 06:46:29 +00006460if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
6461 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
6462echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
6463if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6465fi
6466{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
6467echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
6468else
6469 # Is the header compilable?
6470{ echo "$as_me:$LINENO: checking netinet/tcp.h usability" >&5
6471echo $ECHO_N "checking netinet/tcp.h usability... $ECHO_C" >&6; }
6472cat >conftest.$ac_ext <<_ACEOF
6473/* confdefs.h. */
6474_ACEOF
6475cat confdefs.h >>conftest.$ac_ext
6476cat >>conftest.$ac_ext <<_ACEOF
6477/* end confdefs.h. */
6478$ac_includes_default
6479#include <netinet/tcp.h>
6480_ACEOF
6481rm -f conftest.$ac_objext
6482if { (ac_try="$ac_compile"
6483case "(($ac_try" in
6484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6485 *) ac_try_echo=$ac_try;;
6486esac
6487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6488 (eval "$ac_compile") 2>conftest.er1
6489 ac_status=$?
6490 grep -v '^ *+' conftest.er1 >conftest.err
6491 rm -f conftest.er1
6492 cat conftest.err >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } && {
6495 test -z "$ac_c_werror_flag" ||
6496 test ! -s conftest.err
6497 } && test -s conftest.$ac_objext; then
6498 ac_header_compiler=yes
6499else
6500 echo "$as_me: failed program was:" >&5
6501sed 's/^/| /' conftest.$ac_ext >&5
6502
6503 ac_header_compiler=no
6504fi
6505
6506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6508echo "${ECHO_T}$ac_header_compiler" >&6; }
6509
6510# Is the header present?
6511{ echo "$as_me:$LINENO: checking netinet/tcp.h presence" >&5
6512echo $ECHO_N "checking netinet/tcp.h presence... $ECHO_C" >&6; }
6513cat >conftest.$ac_ext <<_ACEOF
6514/* confdefs.h. */
6515_ACEOF
6516cat confdefs.h >>conftest.$ac_ext
6517cat >>conftest.$ac_ext <<_ACEOF
6518/* end confdefs.h. */
6519#include <netinet/tcp.h>
6520_ACEOF
6521if { (ac_try="$ac_cpp conftest.$ac_ext"
6522case "(($ac_try" in
6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6524 *) ac_try_echo=$ac_try;;
6525esac
6526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6528 ac_status=$?
6529 grep -v '^ *+' conftest.er1 >conftest.err
6530 rm -f conftest.er1
6531 cat conftest.err >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } >/dev/null && {
6534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6535 test ! -s conftest.err
6536 }; then
6537 ac_header_preproc=yes
6538else
6539 echo "$as_me: failed program was:" >&5
6540sed 's/^/| /' conftest.$ac_ext >&5
6541
6542 ac_header_preproc=no
6543fi
6544
6545rm -f conftest.err conftest.$ac_ext
6546{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6547echo "${ECHO_T}$ac_header_preproc" >&6; }
6548
6549# So? What about this header?
6550case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6551 yes:no: )
6552 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&5
6553echo "$as_me: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6554 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&5
6555echo "$as_me: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&2;}
6556 ac_header_preproc=yes
6557 ;;
6558 no:yes:* )
6559 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: present but cannot be compiled" >&5
6560echo "$as_me: WARNING: netinet/tcp.h: present but cannot be compiled" >&2;}
6561 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&5
6562echo "$as_me: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&2;}
6563 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: see the Autoconf documentation" >&5
6564echo "$as_me: WARNING: netinet/tcp.h: see the Autoconf documentation" >&2;}
6565 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&5
6566echo "$as_me: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&2;}
6567 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&5
6568echo "$as_me: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&2;}
6569 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&5
6570echo "$as_me: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&2;}
6571
6572 ;;
6573esac
6574{ echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
6575echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
6576if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6578else
6579 ac_cv_header_netinet_tcp_h=$ac_header_preproc
6580fi
6581{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
6582echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
6583
6584fi
6585if test $ac_cv_header_netinet_tcp_h = yes; then
6586 cat >>confdefs.h <<\_ACEOF
6587#define PJ_HAS_NETINET_TCP_H 1
6588_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00006589
Benny Prijono46bd0842010-02-12 14:12:41 +00006590fi
6591
Benny Prijono46bd0842010-02-12 14:12:41 +00006592
Sauw Mingbe3771a2010-08-27 06:46:29 +00006593if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6594 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
6595echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
6596if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6598fi
6599{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
6600echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
6601else
6602 # Is the header compilable?
6603{ echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
6604echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
6605cat >conftest.$ac_ext <<_ACEOF
6606/* confdefs.h. */
6607_ACEOF
6608cat confdefs.h >>conftest.$ac_ext
6609cat >>conftest.$ac_ext <<_ACEOF
6610/* end confdefs.h. */
6611$ac_includes_default
6612#include <ifaddrs.h>
6613_ACEOF
6614rm -f conftest.$ac_objext
6615if { (ac_try="$ac_compile"
6616case "(($ac_try" in
6617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6618 *) ac_try_echo=$ac_try;;
6619esac
6620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6621 (eval "$ac_compile") 2>conftest.er1
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } && {
6628 test -z "$ac_c_werror_flag" ||
6629 test ! -s conftest.err
6630 } && test -s conftest.$ac_objext; then
6631 ac_header_compiler=yes
6632else
6633 echo "$as_me: failed program was:" >&5
6634sed 's/^/| /' conftest.$ac_ext >&5
6635
6636 ac_header_compiler=no
6637fi
6638
6639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6641echo "${ECHO_T}$ac_header_compiler" >&6; }
6642
6643# Is the header present?
6644{ echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
6645echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
6646cat >conftest.$ac_ext <<_ACEOF
6647/* confdefs.h. */
6648_ACEOF
6649cat confdefs.h >>conftest.$ac_ext
6650cat >>conftest.$ac_ext <<_ACEOF
6651/* end confdefs.h. */
6652#include <ifaddrs.h>
6653_ACEOF
6654if { (ac_try="$ac_cpp conftest.$ac_ext"
6655case "(($ac_try" in
6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657 *) ac_try_echo=$ac_try;;
6658esac
6659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6661 ac_status=$?
6662 grep -v '^ *+' conftest.er1 >conftest.err
6663 rm -f conftest.er1
6664 cat conftest.err >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } >/dev/null && {
6667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6668 test ! -s conftest.err
6669 }; then
6670 ac_header_preproc=yes
6671else
6672 echo "$as_me: failed program was:" >&5
6673sed 's/^/| /' conftest.$ac_ext >&5
6674
6675 ac_header_preproc=no
6676fi
6677
6678rm -f conftest.err conftest.$ac_ext
6679{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6680echo "${ECHO_T}$ac_header_preproc" >&6; }
6681
6682# So? What about this header?
6683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6684 yes:no: )
6685 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
6686echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6687 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
6688echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
6689 ac_header_preproc=yes
6690 ;;
6691 no:yes:* )
6692 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
6693echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
6694 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
6695echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
6696 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
6697echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
6698 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
6699echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
6700 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
6701echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
6702 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
6703echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
6704
6705 ;;
6706esac
6707{ echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
6708echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
6709if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6711else
6712 ac_cv_header_ifaddrs_h=$ac_header_preproc
6713fi
6714{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
6715echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
6716
6717fi
6718if test $ac_cv_header_ifaddrs_h = yes; then
6719 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
6720echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
6721if test "${ac_cv_func_getifaddrs+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723else
6724 cat >conftest.$ac_ext <<_ACEOF
6725/* confdefs.h. */
6726_ACEOF
6727cat confdefs.h >>conftest.$ac_ext
6728cat >>conftest.$ac_ext <<_ACEOF
6729/* end confdefs.h. */
6730/* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
6731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6732#define getifaddrs innocuous_getifaddrs
6733
6734/* System header to define __stub macros and hopefully few prototypes,
6735 which can conflict with char getifaddrs (); below.
6736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6737 <limits.h> exists even on freestanding compilers. */
6738
6739#ifdef __STDC__
6740# include <limits.h>
6741#else
6742# include <assert.h>
6743#endif
6744
6745#undef getifaddrs
6746
6747/* Override any GCC internal prototype to avoid an error.
6748 Use char because int might match the return type of a GCC
6749 builtin and then its argument prototype would still apply. */
6750#ifdef __cplusplus
6751extern "C"
6752#endif
6753char getifaddrs ();
6754/* The GNU C library defines this for functions which it implements
6755 to always fail with ENOSYS. Some functions are actually named
6756 something starting with __ and the normal name is an alias. */
6757#if defined __stub_getifaddrs || defined __stub___getifaddrs
6758choke me
6759#endif
6760
6761int
6762main ()
6763{
6764return getifaddrs ();
6765 ;
6766 return 0;
6767}
6768_ACEOF
6769rm -f conftest.$ac_objext conftest$ac_exeext
6770if { (ac_try="$ac_link"
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_link") 2>conftest.er1
6777 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
6782 (exit $ac_status); } && {
6783 test -z "$ac_c_werror_flag" ||
6784 test ! -s conftest.err
6785 } && test -s conftest$ac_exeext &&
6786 $as_test_x conftest$ac_exeext; then
6787 ac_cv_func_getifaddrs=yes
6788else
6789 echo "$as_me: failed program was:" >&5
6790sed 's/^/| /' conftest.$ac_ext >&5
6791
6792 ac_cv_func_getifaddrs=no
6793fi
6794
6795rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6796 conftest$ac_exeext conftest.$ac_ext
6797fi
6798{ echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
6799echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
6800if test $ac_cv_func_getifaddrs = yes; then
6801 cat >>confdefs.h <<\_ACEOF
6802#define PJ_HAS_IFADDRS_H 1
6803_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00006804
Benny Prijono46bd0842010-02-12 14:12:41 +00006805fi
6806
Benny Prijono5bbebc02010-06-15 05:21:43 +00006807fi
6808
Benny Prijono46bd0842010-02-12 14:12:41 +00006809
Sauw Mingbe3771a2010-08-27 06:46:29 +00006810if test "${ac_cv_header_semaphore_h+set}" = set; then
6811 { echo "$as_me:$LINENO: checking for semaphore.h" >&5
6812echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; }
6813if test "${ac_cv_header_semaphore_h+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815fi
6816{ echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
6817echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; }
6818else
6819 # Is the header compilable?
6820{ echo "$as_me:$LINENO: checking semaphore.h usability" >&5
6821echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6; }
6822cat >conftest.$ac_ext <<_ACEOF
6823/* confdefs.h. */
6824_ACEOF
6825cat confdefs.h >>conftest.$ac_ext
6826cat >>conftest.$ac_ext <<_ACEOF
6827/* end confdefs.h. */
6828$ac_includes_default
6829#include <semaphore.h>
6830_ACEOF
6831rm -f conftest.$ac_objext
6832if { (ac_try="$ac_compile"
6833case "(($ac_try" in
6834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6835 *) ac_try_echo=$ac_try;;
6836esac
6837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6838 (eval "$ac_compile") 2>conftest.er1
6839 ac_status=$?
6840 grep -v '^ *+' conftest.er1 >conftest.err
6841 rm -f conftest.er1
6842 cat conftest.err >&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); } && {
6845 test -z "$ac_c_werror_flag" ||
6846 test ! -s conftest.err
6847 } && test -s conftest.$ac_objext; then
6848 ac_header_compiler=yes
6849else
6850 echo "$as_me: failed program was:" >&5
6851sed 's/^/| /' conftest.$ac_ext >&5
6852
6853 ac_header_compiler=no
6854fi
6855
6856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6858echo "${ECHO_T}$ac_header_compiler" >&6; }
6859
6860# Is the header present?
6861{ echo "$as_me:$LINENO: checking semaphore.h presence" >&5
6862echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6; }
6863cat >conftest.$ac_ext <<_ACEOF
6864/* confdefs.h. */
6865_ACEOF
6866cat confdefs.h >>conftest.$ac_ext
6867cat >>conftest.$ac_ext <<_ACEOF
6868/* end confdefs.h. */
6869#include <semaphore.h>
6870_ACEOF
6871if { (ac_try="$ac_cpp conftest.$ac_ext"
6872case "(($ac_try" in
6873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874 *) ac_try_echo=$ac_try;;
6875esac
6876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6878 ac_status=$?
6879 grep -v '^ *+' conftest.er1 >conftest.err
6880 rm -f conftest.er1
6881 cat conftest.err >&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } >/dev/null && {
6884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6885 test ! -s conftest.err
6886 }; then
6887 ac_header_preproc=yes
6888else
6889 echo "$as_me: failed program was:" >&5
6890sed 's/^/| /' conftest.$ac_ext >&5
6891
6892 ac_header_preproc=no
6893fi
6894
6895rm -f conftest.err conftest.$ac_ext
6896{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6897echo "${ECHO_T}$ac_header_preproc" >&6; }
6898
6899# So? What about this header?
6900case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6901 yes:no: )
6902 { echo "$as_me:$LINENO: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&5
6903echo "$as_me: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6904 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the compiler's result" >&5
6905echo "$as_me: WARNING: semaphore.h: proceeding with the compiler's result" >&2;}
6906 ac_header_preproc=yes
6907 ;;
6908 no:yes:* )
6909 { echo "$as_me:$LINENO: WARNING: semaphore.h: present but cannot be compiled" >&5
6910echo "$as_me: WARNING: semaphore.h: present but cannot be compiled" >&2;}
6911 { echo "$as_me:$LINENO: WARNING: semaphore.h: check for missing prerequisite headers?" >&5
6912echo "$as_me: WARNING: semaphore.h: check for missing prerequisite headers?" >&2;}
6913 { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5
6914echo "$as_me: WARNING: semaphore.h: see the Autoconf documentation" >&2;}
6915 { echo "$as_me:$LINENO: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&5
6916echo "$as_me: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&2;}
6917 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the preprocessor's result" >&5
6918echo "$as_me: WARNING: semaphore.h: proceeding with the preprocessor's result" >&2;}
6919 { echo "$as_me:$LINENO: WARNING: semaphore.h: in the future, the compiler will take precedence" >&5
6920echo "$as_me: WARNING: semaphore.h: in the future, the compiler will take precedence" >&2;}
6921
6922 ;;
6923esac
6924{ echo "$as_me:$LINENO: checking for semaphore.h" >&5
6925echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; }
6926if test "${ac_cv_header_semaphore_h+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6928else
6929 ac_cv_header_semaphore_h=$ac_header_preproc
6930fi
6931{ echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
6932echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; }
6933
6934fi
6935if test $ac_cv_header_semaphore_h = yes; then
6936 cat >>confdefs.h <<\_ACEOF
6937#define PJ_HAS_SEMAPHORE_H 1
6938_ACEOF
Benny Prijono1d61ba52009-10-24 00:00:40 +00006939
Benny Prijono1d61ba52009-10-24 00:00:40 +00006940fi
6941
Benny Prijono1d61ba52009-10-24 00:00:40 +00006942
Sauw Mingbe3771a2010-08-27 06:46:29 +00006943if test "${ac_cv_header_setjmp_h+set}" = set; then
6944 { echo "$as_me:$LINENO: checking for setjmp.h" >&5
6945echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; }
6946if test "${ac_cv_header_setjmp_h+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948fi
6949{ echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
6950echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; }
6951else
6952 # Is the header compilable?
6953{ echo "$as_me:$LINENO: checking setjmp.h usability" >&5
6954echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6; }
6955cat >conftest.$ac_ext <<_ACEOF
6956/* confdefs.h. */
6957_ACEOF
6958cat confdefs.h >>conftest.$ac_ext
6959cat >>conftest.$ac_ext <<_ACEOF
6960/* end confdefs.h. */
6961$ac_includes_default
6962#include <setjmp.h>
6963_ACEOF
6964rm -f conftest.$ac_objext
6965if { (ac_try="$ac_compile"
6966case "(($ac_try" in
6967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6968 *) ac_try_echo=$ac_try;;
6969esac
6970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6971 (eval "$ac_compile") 2>conftest.er1
6972 ac_status=$?
6973 grep -v '^ *+' conftest.er1 >conftest.err
6974 rm -f conftest.er1
6975 cat conftest.err >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } && {
6978 test -z "$ac_c_werror_flag" ||
6979 test ! -s conftest.err
6980 } && test -s conftest.$ac_objext; then
6981 ac_header_compiler=yes
6982else
6983 echo "$as_me: failed program was:" >&5
6984sed 's/^/| /' conftest.$ac_ext >&5
6985
6986 ac_header_compiler=no
6987fi
6988
6989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6990{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6991echo "${ECHO_T}$ac_header_compiler" >&6; }
6992
6993# Is the header present?
6994{ echo "$as_me:$LINENO: checking setjmp.h presence" >&5
6995echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6; }
6996cat >conftest.$ac_ext <<_ACEOF
6997/* confdefs.h. */
6998_ACEOF
6999cat confdefs.h >>conftest.$ac_ext
7000cat >>conftest.$ac_ext <<_ACEOF
7001/* end confdefs.h. */
7002#include <setjmp.h>
7003_ACEOF
7004if { (ac_try="$ac_cpp conftest.$ac_ext"
7005case "(($ac_try" in
7006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7007 *) ac_try_echo=$ac_try;;
7008esac
7009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7011 ac_status=$?
7012 grep -v '^ *+' conftest.er1 >conftest.err
7013 rm -f conftest.er1
7014 cat conftest.err >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } >/dev/null && {
7017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7018 test ! -s conftest.err
7019 }; then
7020 ac_header_preproc=yes
7021else
7022 echo "$as_me: failed program was:" >&5
7023sed 's/^/| /' conftest.$ac_ext >&5
7024
7025 ac_header_preproc=no
7026fi
7027
7028rm -f conftest.err conftest.$ac_ext
7029{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7030echo "${ECHO_T}$ac_header_preproc" >&6; }
7031
7032# So? What about this header?
7033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7034 yes:no: )
7035 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
7036echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7037 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5
7038echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;}
7039 ac_header_preproc=yes
7040 ;;
7041 no:yes:* )
7042 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5
7043echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;}
7044 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5
7045echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;}
7046 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5
7047echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;}
7048 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5
7049echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
7050 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5
7051echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;}
7052 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5
7053echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;}
7054
7055 ;;
7056esac
7057{ echo "$as_me:$LINENO: checking for setjmp.h" >&5
7058echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; }
7059if test "${ac_cv_header_setjmp_h+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7061else
7062 ac_cv_header_setjmp_h=$ac_header_preproc
7063fi
7064{ echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
7065echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; }
7066
7067fi
7068if test $ac_cv_header_setjmp_h = yes; then
7069 cat >>confdefs.h <<\_ACEOF
7070#define PJ_HAS_SETJMP_H 1
7071_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00007072
Benny Prijono46bd0842010-02-12 14:12:41 +00007073fi
7074
Benny Prijono46bd0842010-02-12 14:12:41 +00007075
Sauw Mingbe3771a2010-08-27 06:46:29 +00007076if test "${ac_cv_header_stdarg_h+set}" = set; then
7077 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
7078echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7079if test "${ac_cv_header_stdarg_h+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7081fi
7082{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7083echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7084else
7085 # Is the header compilable?
7086{ echo "$as_me:$LINENO: checking stdarg.h usability" >&5
7087echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
7088cat >conftest.$ac_ext <<_ACEOF
7089/* confdefs.h. */
7090_ACEOF
7091cat confdefs.h >>conftest.$ac_ext
7092cat >>conftest.$ac_ext <<_ACEOF
7093/* end confdefs.h. */
7094$ac_includes_default
7095#include <stdarg.h>
7096_ACEOF
7097rm -f conftest.$ac_objext
7098if { (ac_try="$ac_compile"
7099case "(($ac_try" in
7100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101 *) ac_try_echo=$ac_try;;
7102esac
7103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104 (eval "$ac_compile") 2>conftest.er1
7105 ac_status=$?
7106 grep -v '^ *+' conftest.er1 >conftest.err
7107 rm -f conftest.er1
7108 cat conftest.err >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } && {
7111 test -z "$ac_c_werror_flag" ||
7112 test ! -s conftest.err
7113 } && test -s conftest.$ac_objext; then
7114 ac_header_compiler=yes
7115else
7116 echo "$as_me: failed program was:" >&5
7117sed 's/^/| /' conftest.$ac_ext >&5
7118
7119 ac_header_compiler=no
7120fi
7121
7122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7124echo "${ECHO_T}$ac_header_compiler" >&6; }
7125
7126# Is the header present?
7127{ echo "$as_me:$LINENO: checking stdarg.h presence" >&5
7128echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
7129cat >conftest.$ac_ext <<_ACEOF
7130/* confdefs.h. */
7131_ACEOF
7132cat confdefs.h >>conftest.$ac_ext
7133cat >>conftest.$ac_ext <<_ACEOF
7134/* end confdefs.h. */
7135#include <stdarg.h>
7136_ACEOF
7137if { (ac_try="$ac_cpp conftest.$ac_ext"
7138case "(($ac_try" in
7139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7140 *) ac_try_echo=$ac_try;;
7141esac
7142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7144 ac_status=$?
7145 grep -v '^ *+' conftest.er1 >conftest.err
7146 rm -f conftest.er1
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } >/dev/null && {
7150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7151 test ! -s conftest.err
7152 }; then
7153 ac_header_preproc=yes
7154else
7155 echo "$as_me: failed program was:" >&5
7156sed 's/^/| /' conftest.$ac_ext >&5
7157
7158 ac_header_preproc=no
7159fi
7160
7161rm -f conftest.err conftest.$ac_ext
7162{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7163echo "${ECHO_T}$ac_header_preproc" >&6; }
7164
7165# So? What about this header?
7166case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7167 yes:no: )
7168 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
7169echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7170 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
7171echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
7172 ac_header_preproc=yes
7173 ;;
7174 no:yes:* )
7175 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
7176echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
7177 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
7178echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
7179 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
7180echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
7181 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
7182echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
7183 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
7184echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
7185 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
7186echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
7187
7188 ;;
7189esac
7190{ echo "$as_me:$LINENO: checking for stdarg.h" >&5
7191echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7192if test "${ac_cv_header_stdarg_h+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7194else
7195 ac_cv_header_stdarg_h=$ac_header_preproc
7196fi
7197{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7198echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7199
7200fi
7201if test $ac_cv_header_stdarg_h = yes; then
7202 cat >>confdefs.h <<\_ACEOF
7203#define PJ_HAS_STDARG_H 1
7204_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00007205
Benny Prijono46bd0842010-02-12 14:12:41 +00007206fi
7207
Benny Prijono46bd0842010-02-12 14:12:41 +00007208
Sauw Mingbe3771a2010-08-27 06:46:29 +00007209if test "${ac_cv_header_stddef_h+set}" = set; then
7210 { echo "$as_me:$LINENO: checking for stddef.h" >&5
7211echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
7212if test "${ac_cv_header_stddef_h+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7214fi
7215{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
7216echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
7217else
7218 # Is the header compilable?
7219{ echo "$as_me:$LINENO: checking stddef.h usability" >&5
7220echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6; }
7221cat >conftest.$ac_ext <<_ACEOF
7222/* confdefs.h. */
7223_ACEOF
7224cat confdefs.h >>conftest.$ac_ext
7225cat >>conftest.$ac_ext <<_ACEOF
7226/* end confdefs.h. */
7227$ac_includes_default
7228#include <stddef.h>
7229_ACEOF
7230rm -f conftest.$ac_objext
7231if { (ac_try="$ac_compile"
7232case "(($ac_try" in
7233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7234 *) ac_try_echo=$ac_try;;
7235esac
7236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7237 (eval "$ac_compile") 2>conftest.er1
7238 ac_status=$?
7239 grep -v '^ *+' conftest.er1 >conftest.err
7240 rm -f conftest.er1
7241 cat conftest.err >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } && {
7244 test -z "$ac_c_werror_flag" ||
7245 test ! -s conftest.err
7246 } && test -s conftest.$ac_objext; then
7247 ac_header_compiler=yes
7248else
7249 echo "$as_me: failed program was:" >&5
7250sed 's/^/| /' conftest.$ac_ext >&5
7251
7252 ac_header_compiler=no
7253fi
7254
7255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7256{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7257echo "${ECHO_T}$ac_header_compiler" >&6; }
7258
7259# Is the header present?
7260{ echo "$as_me:$LINENO: checking stddef.h presence" >&5
7261echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6; }
7262cat >conftest.$ac_ext <<_ACEOF
7263/* confdefs.h. */
7264_ACEOF
7265cat confdefs.h >>conftest.$ac_ext
7266cat >>conftest.$ac_ext <<_ACEOF
7267/* end confdefs.h. */
7268#include <stddef.h>
7269_ACEOF
7270if { (ac_try="$ac_cpp conftest.$ac_ext"
7271case "(($ac_try" in
7272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273 *) ac_try_echo=$ac_try;;
7274esac
7275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7277 ac_status=$?
7278 grep -v '^ *+' conftest.er1 >conftest.err
7279 rm -f conftest.er1
7280 cat conftest.err >&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); } >/dev/null && {
7283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7284 test ! -s conftest.err
7285 }; then
7286 ac_header_preproc=yes
7287else
7288 echo "$as_me: failed program was:" >&5
7289sed 's/^/| /' conftest.$ac_ext >&5
7290
7291 ac_header_preproc=no
7292fi
7293
7294rm -f conftest.err conftest.$ac_ext
7295{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7296echo "${ECHO_T}$ac_header_preproc" >&6; }
7297
7298# So? What about this header?
7299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7300 yes:no: )
7301 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
7302echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7303 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
7304echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
7305 ac_header_preproc=yes
7306 ;;
7307 no:yes:* )
7308 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
7309echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
7310 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
7311echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
7312 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
7313echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
7314 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
7315echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
7316 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
7317echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
7318 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
7319echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
7320
7321 ;;
7322esac
7323{ echo "$as_me:$LINENO: checking for stddef.h" >&5
7324echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
7325if test "${ac_cv_header_stddef_h+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7327else
7328 ac_cv_header_stddef_h=$ac_header_preproc
7329fi
7330{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
7331echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
7332
7333fi
7334if test $ac_cv_header_stddef_h = yes; then
7335 cat >>confdefs.h <<\_ACEOF
7336#define PJ_HAS_STDDEF_H 1
7337_ACEOF
Benny Prijono1d61ba52009-10-24 00:00:40 +00007338
Benny Prijono1d61ba52009-10-24 00:00:40 +00007339fi
7340
Benny Prijono1d61ba52009-10-24 00:00:40 +00007341
Sauw Mingbe3771a2010-08-27 06:46:29 +00007342if test "${ac_cv_header_stdio_h+set}" = set; then
7343 { echo "$as_me:$LINENO: checking for stdio.h" >&5
7344echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; }
7345if test "${ac_cv_header_stdio_h+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7347fi
7348{ echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
7349echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; }
7350else
7351 # Is the header compilable?
7352{ echo "$as_me:$LINENO: checking stdio.h usability" >&5
7353echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6; }
7354cat >conftest.$ac_ext <<_ACEOF
7355/* confdefs.h. */
7356_ACEOF
7357cat confdefs.h >>conftest.$ac_ext
7358cat >>conftest.$ac_ext <<_ACEOF
7359/* end confdefs.h. */
7360$ac_includes_default
7361#include <stdio.h>
7362_ACEOF
7363rm -f conftest.$ac_objext
7364if { (ac_try="$ac_compile"
7365case "(($ac_try" in
7366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367 *) ac_try_echo=$ac_try;;
7368esac
7369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7370 (eval "$ac_compile") 2>conftest.er1
7371 ac_status=$?
7372 grep -v '^ *+' conftest.er1 >conftest.err
7373 rm -f conftest.er1
7374 cat conftest.err >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } && {
7377 test -z "$ac_c_werror_flag" ||
7378 test ! -s conftest.err
7379 } && test -s conftest.$ac_objext; then
7380 ac_header_compiler=yes
7381else
7382 echo "$as_me: failed program was:" >&5
7383sed 's/^/| /' conftest.$ac_ext >&5
7384
7385 ac_header_compiler=no
7386fi
7387
7388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7389{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7390echo "${ECHO_T}$ac_header_compiler" >&6; }
7391
7392# Is the header present?
7393{ echo "$as_me:$LINENO: checking stdio.h presence" >&5
7394echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6; }
7395cat >conftest.$ac_ext <<_ACEOF
7396/* confdefs.h. */
7397_ACEOF
7398cat confdefs.h >>conftest.$ac_ext
7399cat >>conftest.$ac_ext <<_ACEOF
7400/* end confdefs.h. */
7401#include <stdio.h>
7402_ACEOF
7403if { (ac_try="$ac_cpp conftest.$ac_ext"
7404case "(($ac_try" in
7405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7406 *) ac_try_echo=$ac_try;;
7407esac
7408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7410 ac_status=$?
7411 grep -v '^ *+' conftest.er1 >conftest.err
7412 rm -f conftest.er1
7413 cat conftest.err >&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } >/dev/null && {
7416 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7417 test ! -s conftest.err
7418 }; then
7419 ac_header_preproc=yes
7420else
7421 echo "$as_me: failed program was:" >&5
7422sed 's/^/| /' conftest.$ac_ext >&5
7423
7424 ac_header_preproc=no
7425fi
7426
7427rm -f conftest.err conftest.$ac_ext
7428{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7429echo "${ECHO_T}$ac_header_preproc" >&6; }
7430
7431# So? What about this header?
7432case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7433 yes:no: )
7434 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
7435echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7436 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
7437echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
7438 ac_header_preproc=yes
7439 ;;
7440 no:yes:* )
7441 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
7442echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
7443 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
7444echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
7445 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
7446echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
7447 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
7448echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
7449 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
7450echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
7451 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
7452echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
7453
7454 ;;
7455esac
7456{ echo "$as_me:$LINENO: checking for stdio.h" >&5
7457echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; }
7458if test "${ac_cv_header_stdio_h+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
7460else
7461 ac_cv_header_stdio_h=$ac_header_preproc
7462fi
7463{ echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
7464echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; }
7465
7466fi
7467if test $ac_cv_header_stdio_h = yes; then
7468 cat >>confdefs.h <<\_ACEOF
7469#define PJ_HAS_STDIO_H 1
7470_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00007471
Benny Prijono46bd0842010-02-12 14:12:41 +00007472fi
7473
Benny Prijono46bd0842010-02-12 14:12:41 +00007474
Sauw Mingbe3771a2010-08-27 06:46:29 +00007475if test "${ac_cv_header_stdint_h+set}" = set; then
7476 { echo "$as_me:$LINENO: checking for stdint.h" >&5
7477echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
7478if test "${ac_cv_header_stdint_h+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480fi
7481{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
7482echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
7483else
7484 # Is the header compilable?
7485{ echo "$as_me:$LINENO: checking stdint.h usability" >&5
7486echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
7487cat >conftest.$ac_ext <<_ACEOF
7488/* confdefs.h. */
7489_ACEOF
7490cat confdefs.h >>conftest.$ac_ext
7491cat >>conftest.$ac_ext <<_ACEOF
7492/* end confdefs.h. */
7493$ac_includes_default
7494#include <stdint.h>
7495_ACEOF
7496rm -f conftest.$ac_objext
7497if { (ac_try="$ac_compile"
7498case "(($ac_try" in
7499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7501esac
7502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7503 (eval "$ac_compile") 2>conftest.er1
7504 ac_status=$?
7505 grep -v '^ *+' conftest.er1 >conftest.err
7506 rm -f conftest.er1
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } && {
7510 test -z "$ac_c_werror_flag" ||
7511 test ! -s conftest.err
7512 } && test -s conftest.$ac_objext; then
7513 ac_header_compiler=yes
7514else
7515 echo "$as_me: failed program was:" >&5
7516sed 's/^/| /' conftest.$ac_ext >&5
7517
7518 ac_header_compiler=no
7519fi
7520
7521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7523echo "${ECHO_T}$ac_header_compiler" >&6; }
7524
7525# Is the header present?
7526{ echo "$as_me:$LINENO: checking stdint.h presence" >&5
7527echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
7528cat >conftest.$ac_ext <<_ACEOF
7529/* confdefs.h. */
7530_ACEOF
7531cat confdefs.h >>conftest.$ac_ext
7532cat >>conftest.$ac_ext <<_ACEOF
7533/* end confdefs.h. */
7534#include <stdint.h>
7535_ACEOF
7536if { (ac_try="$ac_cpp conftest.$ac_ext"
7537case "(($ac_try" in
7538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7540esac
7541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7543 ac_status=$?
7544 grep -v '^ *+' conftest.er1 >conftest.err
7545 rm -f conftest.er1
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } >/dev/null && {
7549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7550 test ! -s conftest.err
7551 }; then
7552 ac_header_preproc=yes
7553else
7554 echo "$as_me: failed program was:" >&5
7555sed 's/^/| /' conftest.$ac_ext >&5
7556
7557 ac_header_preproc=no
7558fi
7559
7560rm -f conftest.err conftest.$ac_ext
7561{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7562echo "${ECHO_T}$ac_header_preproc" >&6; }
7563
7564# So? What about this header?
7565case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7566 yes:no: )
7567 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
7568echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7569 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
7570echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
7571 ac_header_preproc=yes
7572 ;;
7573 no:yes:* )
7574 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
7575echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
7576 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
7577echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
7578 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
7579echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
7580 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
7581echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
7582 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
7583echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
7584 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
7585echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
7586
7587 ;;
7588esac
7589{ echo "$as_me:$LINENO: checking for stdint.h" >&5
7590echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
7591if test "${ac_cv_header_stdint_h+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593else
7594 ac_cv_header_stdint_h=$ac_header_preproc
7595fi
7596{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
7597echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
7598
7599fi
7600if test $ac_cv_header_stdint_h = yes; then
7601 cat >>confdefs.h <<\_ACEOF
7602#define PJ_HAS_STDINT_H 1
7603_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00007604
Benny Prijono46bd0842010-02-12 14:12:41 +00007605fi
7606
Benny Prijono46bd0842010-02-12 14:12:41 +00007607
Sauw Mingbe3771a2010-08-27 06:46:29 +00007608if test "${ac_cv_header_stdlib_h+set}" = set; then
7609 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
7610echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
7611if test "${ac_cv_header_stdlib_h+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7613fi
7614{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7615echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
7616else
7617 # Is the header compilable?
7618{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5
7619echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
7620cat >conftest.$ac_ext <<_ACEOF
7621/* confdefs.h. */
7622_ACEOF
7623cat confdefs.h >>conftest.$ac_ext
7624cat >>conftest.$ac_ext <<_ACEOF
7625/* end confdefs.h. */
7626$ac_includes_default
7627#include <stdlib.h>
7628_ACEOF
7629rm -f conftest.$ac_objext
7630if { (ac_try="$ac_compile"
7631case "(($ac_try" in
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7634esac
7635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_compile") 2>conftest.er1
7637 ac_status=$?
7638 grep -v '^ *+' conftest.er1 >conftest.err
7639 rm -f conftest.er1
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } && {
7643 test -z "$ac_c_werror_flag" ||
7644 test ! -s conftest.err
7645 } && test -s conftest.$ac_objext; then
7646 ac_header_compiler=yes
7647else
7648 echo "$as_me: failed program was:" >&5
7649sed 's/^/| /' conftest.$ac_ext >&5
7650
7651 ac_header_compiler=no
7652fi
7653
7654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7656echo "${ECHO_T}$ac_header_compiler" >&6; }
7657
7658# Is the header present?
7659{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5
7660echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
7661cat >conftest.$ac_ext <<_ACEOF
7662/* confdefs.h. */
7663_ACEOF
7664cat confdefs.h >>conftest.$ac_ext
7665cat >>conftest.$ac_ext <<_ACEOF
7666/* end confdefs.h. */
7667#include <stdlib.h>
7668_ACEOF
7669if { (ac_try="$ac_cpp conftest.$ac_ext"
7670case "(($ac_try" in
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7673esac
7674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7676 ac_status=$?
7677 grep -v '^ *+' conftest.er1 >conftest.err
7678 rm -f conftest.er1
7679 cat conftest.err >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } >/dev/null && {
7682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7683 test ! -s conftest.err
7684 }; then
7685 ac_header_preproc=yes
7686else
7687 echo "$as_me: failed program was:" >&5
7688sed 's/^/| /' conftest.$ac_ext >&5
7689
7690 ac_header_preproc=no
7691fi
7692
7693rm -f conftest.err conftest.$ac_ext
7694{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7695echo "${ECHO_T}$ac_header_preproc" >&6; }
7696
7697# So? What about this header?
7698case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7699 yes:no: )
7700 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7701echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7702 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
7703echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
7704 ac_header_preproc=yes
7705 ;;
7706 no:yes:* )
7707 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
7708echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
7709 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
7710echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
7711 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
7712echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
7713 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
7714echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
7715 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
7716echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
7717 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
7718echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
7719
7720 ;;
7721esac
7722{ echo "$as_me:$LINENO: checking for stdlib.h" >&5
7723echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
7724if test "${ac_cv_header_stdlib_h+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7726else
7727 ac_cv_header_stdlib_h=$ac_header_preproc
7728fi
7729{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7730echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
7731
7732fi
7733if test $ac_cv_header_stdlib_h = yes; then
7734 cat >>confdefs.h <<\_ACEOF
7735#define PJ_HAS_STDLIB_H 1
7736_ACEOF
Benny Prijono1d61ba52009-10-24 00:00:40 +00007737
7738fi
7739
7740
Sauw Mingbe3771a2010-08-27 06:46:29 +00007741if test "${ac_cv_header_string_h+set}" = set; then
7742 { echo "$as_me:$LINENO: checking for string.h" >&5
7743echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
7744if test "${ac_cv_header_string_h+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7746fi
7747{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7748echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
7749else
7750 # Is the header compilable?
7751{ echo "$as_me:$LINENO: checking string.h usability" >&5
7752echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
7753cat >conftest.$ac_ext <<_ACEOF
7754/* confdefs.h. */
7755_ACEOF
7756cat confdefs.h >>conftest.$ac_ext
7757cat >>conftest.$ac_ext <<_ACEOF
7758/* end confdefs.h. */
7759$ac_includes_default
7760#include <string.h>
7761_ACEOF
7762rm -f conftest.$ac_objext
7763if { (ac_try="$ac_compile"
7764case "(($ac_try" in
7765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7766 *) ac_try_echo=$ac_try;;
7767esac
7768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7769 (eval "$ac_compile") 2>conftest.er1
7770 ac_status=$?
7771 grep -v '^ *+' conftest.er1 >conftest.err
7772 rm -f conftest.er1
7773 cat conftest.err >&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); } && {
7776 test -z "$ac_c_werror_flag" ||
7777 test ! -s conftest.err
7778 } && test -s conftest.$ac_objext; then
7779 ac_header_compiler=yes
7780else
7781 echo "$as_me: failed program was:" >&5
7782sed 's/^/| /' conftest.$ac_ext >&5
7783
7784 ac_header_compiler=no
7785fi
7786
7787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7788{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7789echo "${ECHO_T}$ac_header_compiler" >&6; }
7790
7791# Is the header present?
7792{ echo "$as_me:$LINENO: checking string.h presence" >&5
7793echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
7794cat >conftest.$ac_ext <<_ACEOF
7795/* confdefs.h. */
7796_ACEOF
7797cat confdefs.h >>conftest.$ac_ext
7798cat >>conftest.$ac_ext <<_ACEOF
7799/* end confdefs.h. */
7800#include <string.h>
7801_ACEOF
7802if { (ac_try="$ac_cpp conftest.$ac_ext"
7803case "(($ac_try" in
7804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7805 *) ac_try_echo=$ac_try;;
7806esac
7807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7809 ac_status=$?
7810 grep -v '^ *+' conftest.er1 >conftest.err
7811 rm -f conftest.er1
7812 cat conftest.err >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } >/dev/null && {
7815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7816 test ! -s conftest.err
7817 }; then
7818 ac_header_preproc=yes
7819else
7820 echo "$as_me: failed program was:" >&5
7821sed 's/^/| /' conftest.$ac_ext >&5
7822
7823 ac_header_preproc=no
7824fi
7825
7826rm -f conftest.err conftest.$ac_ext
7827{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7828echo "${ECHO_T}$ac_header_preproc" >&6; }
7829
7830# So? What about this header?
7831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7832 yes:no: )
7833 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7834echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7835 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
7836echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
7837 ac_header_preproc=yes
7838 ;;
7839 no:yes:* )
7840 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
7841echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
7842 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
7843echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
7844 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
7845echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
7846 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
7847echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
7848 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7849echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7850 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
7851echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
7852
7853 ;;
7854esac
7855{ echo "$as_me:$LINENO: checking for string.h" >&5
7856echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
7857if test "${ac_cv_header_string_h+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7859else
7860 ac_cv_header_string_h=$ac_header_preproc
7861fi
7862{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7863echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
7864
7865fi
7866if test $ac_cv_header_string_h = yes; then
7867 cat >>confdefs.h <<\_ACEOF
7868#define PJ_HAS_STRING_H 1
7869_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00007870
Benny Prijono46bd0842010-02-12 14:12:41 +00007871fi
7872
Benny Prijono46bd0842010-02-12 14:12:41 +00007873
Sauw Mingbe3771a2010-08-27 06:46:29 +00007874if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
7875 { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
7876echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; }
7877if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7879fi
7880{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
7881echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; }
7882else
7883 # Is the header compilable?
7884{ echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5
7885echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6; }
7886cat >conftest.$ac_ext <<_ACEOF
7887/* confdefs.h. */
7888_ACEOF
7889cat confdefs.h >>conftest.$ac_ext
7890cat >>conftest.$ac_ext <<_ACEOF
7891/* end confdefs.h. */
7892$ac_includes_default
7893#include <sys/ioctl.h>
7894_ACEOF
7895rm -f conftest.$ac_objext
7896if { (ac_try="$ac_compile"
7897case "(($ac_try" in
7898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7900esac
7901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7902 (eval "$ac_compile") 2>conftest.er1
7903 ac_status=$?
7904 grep -v '^ *+' conftest.er1 >conftest.err
7905 rm -f conftest.er1
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } && {
7909 test -z "$ac_c_werror_flag" ||
7910 test ! -s conftest.err
7911 } && test -s conftest.$ac_objext; then
7912 ac_header_compiler=yes
7913else
7914 echo "$as_me: failed program was:" >&5
7915sed 's/^/| /' conftest.$ac_ext >&5
7916
7917 ac_header_compiler=no
7918fi
7919
7920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7921{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7922echo "${ECHO_T}$ac_header_compiler" >&6; }
7923
7924# Is the header present?
7925{ echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5
7926echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6; }
7927cat >conftest.$ac_ext <<_ACEOF
7928/* confdefs.h. */
7929_ACEOF
7930cat confdefs.h >>conftest.$ac_ext
7931cat >>conftest.$ac_ext <<_ACEOF
7932/* end confdefs.h. */
7933#include <sys/ioctl.h>
7934_ACEOF
7935if { (ac_try="$ac_cpp conftest.$ac_ext"
7936case "(($ac_try" in
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7939esac
7940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7942 ac_status=$?
7943 grep -v '^ *+' conftest.er1 >conftest.err
7944 rm -f conftest.er1
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } >/dev/null && {
7948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7949 test ! -s conftest.err
7950 }; then
7951 ac_header_preproc=yes
7952else
7953 echo "$as_me: failed program was:" >&5
7954sed 's/^/| /' conftest.$ac_ext >&5
7955
7956 ac_header_preproc=no
7957fi
7958
7959rm -f conftest.err conftest.$ac_ext
7960{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7961echo "${ECHO_T}$ac_header_preproc" >&6; }
7962
7963# So? What about this header?
7964case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7965 yes:no: )
7966 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7967echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7968 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5
7969echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;}
7970 ac_header_preproc=yes
7971 ;;
7972 no:yes:* )
7973 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5
7974echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;}
7975 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5
7976echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;}
7977 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5
7978echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;}
7979 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
7980echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7981 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5
7982echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;}
7983 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5
7984echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;}
7985
7986 ;;
7987esac
7988{ echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
7989echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; }
7990if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992else
7993 ac_cv_header_sys_ioctl_h=$ac_header_preproc
7994fi
7995{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
7996echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; }
7997
7998fi
7999if test $ac_cv_header_sys_ioctl_h = yes; then
8000 cat >>confdefs.h <<\_ACEOF
8001#define PJ_HAS_SYS_IOCTL_H 1
8002_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00008003
Benny Prijono46bd0842010-02-12 14:12:41 +00008004fi
8005
Benny Prijono46bd0842010-02-12 14:12:41 +00008006
Sauw Mingbe3771a2010-08-27 06:46:29 +00008007if test "${ac_cv_header_sys_select_h+set}" = set; then
8008 { echo "$as_me:$LINENO: checking for sys/select.h" >&5
8009echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
8010if test "${ac_cv_header_sys_select_h+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8012fi
8013{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
8014echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
8015else
8016 # Is the header compilable?
8017{ echo "$as_me:$LINENO: checking sys/select.h usability" >&5
8018echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; }
8019cat >conftest.$ac_ext <<_ACEOF
8020/* confdefs.h. */
8021_ACEOF
8022cat confdefs.h >>conftest.$ac_ext
8023cat >>conftest.$ac_ext <<_ACEOF
8024/* end confdefs.h. */
8025$ac_includes_default
8026#include <sys/select.h>
8027_ACEOF
8028rm -f conftest.$ac_objext
8029if { (ac_try="$ac_compile"
8030case "(($ac_try" in
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8033esac
8034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035 (eval "$ac_compile") 2>conftest.er1
8036 ac_status=$?
8037 grep -v '^ *+' conftest.er1 >conftest.err
8038 rm -f conftest.er1
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && {
8042 test -z "$ac_c_werror_flag" ||
8043 test ! -s conftest.err
8044 } && test -s conftest.$ac_objext; then
8045 ac_header_compiler=yes
8046else
8047 echo "$as_me: failed program was:" >&5
8048sed 's/^/| /' conftest.$ac_ext >&5
8049
8050 ac_header_compiler=no
8051fi
8052
8053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8055echo "${ECHO_T}$ac_header_compiler" >&6; }
8056
8057# Is the header present?
8058{ echo "$as_me:$LINENO: checking sys/select.h presence" >&5
8059echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; }
8060cat >conftest.$ac_ext <<_ACEOF
8061/* confdefs.h. */
8062_ACEOF
8063cat confdefs.h >>conftest.$ac_ext
8064cat >>conftest.$ac_ext <<_ACEOF
8065/* end confdefs.h. */
8066#include <sys/select.h>
8067_ACEOF
8068if { (ac_try="$ac_cpp conftest.$ac_ext"
8069case "(($ac_try" in
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8072esac
8073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8075 ac_status=$?
8076 grep -v '^ *+' conftest.er1 >conftest.err
8077 rm -f conftest.er1
8078 cat conftest.err >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } >/dev/null && {
8081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8082 test ! -s conftest.err
8083 }; then
8084 ac_header_preproc=yes
8085else
8086 echo "$as_me: failed program was:" >&5
8087sed 's/^/| /' conftest.$ac_ext >&5
8088
8089 ac_header_preproc=no
8090fi
8091
8092rm -f conftest.err conftest.$ac_ext
8093{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8094echo "${ECHO_T}$ac_header_preproc" >&6; }
8095
8096# So? What about this header?
8097case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8098 yes:no: )
8099 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
8100echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8101 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
8102echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
8103 ac_header_preproc=yes
8104 ;;
8105 no:yes:* )
8106 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
8107echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
8108 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
8109echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
8110 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
8111echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
8112 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
8113echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
8114 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
8115echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
8116 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
8117echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
8118
8119 ;;
8120esac
8121{ echo "$as_me:$LINENO: checking for sys/select.h" >&5
8122echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
8123if test "${ac_cv_header_sys_select_h+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8125else
8126 ac_cv_header_sys_select_h=$ac_header_preproc
8127fi
8128{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
8129echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
8130
8131fi
8132if test $ac_cv_header_sys_select_h = yes; then
8133 cat >>confdefs.h <<\_ACEOF
8134#define PJ_HAS_SYS_SELECT_H 1
8135_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00008136
Benny Prijono46bd0842010-02-12 14:12:41 +00008137fi
Benny Prijono46bd0842010-02-12 14:12:41 +00008138
Benny Prijono1d65f702007-12-03 04:03:17 +00008139
Sauw Mingbe3771a2010-08-27 06:46:29 +00008140if test "${ac_cv_header_sys_socket_h+set}" = set; then
8141 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
8142echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
8143if test "${ac_cv_header_sys_socket_h+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8145fi
8146{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
8147echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
8148else
8149 # Is the header compilable?
8150{ echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
8151echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
8152cat >conftest.$ac_ext <<_ACEOF
8153/* confdefs.h. */
8154_ACEOF
8155cat confdefs.h >>conftest.$ac_ext
8156cat >>conftest.$ac_ext <<_ACEOF
8157/* end confdefs.h. */
8158$ac_includes_default
8159#include <sys/socket.h>
8160_ACEOF
8161rm -f conftest.$ac_objext
8162if { (ac_try="$ac_compile"
8163case "(($ac_try" in
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8166esac
8167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168 (eval "$ac_compile") 2>conftest.er1
8169 ac_status=$?
8170 grep -v '^ *+' conftest.er1 >conftest.err
8171 rm -f conftest.er1
8172 cat conftest.err >&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } && {
8175 test -z "$ac_c_werror_flag" ||
8176 test ! -s conftest.err
8177 } && test -s conftest.$ac_objext; then
8178 ac_header_compiler=yes
8179else
8180 echo "$as_me: failed program was:" >&5
8181sed 's/^/| /' conftest.$ac_ext >&5
8182
8183 ac_header_compiler=no
8184fi
8185
8186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8188echo "${ECHO_T}$ac_header_compiler" >&6; }
8189
8190# Is the header present?
8191{ echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
8192echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
8193cat >conftest.$ac_ext <<_ACEOF
8194/* confdefs.h. */
8195_ACEOF
8196cat confdefs.h >>conftest.$ac_ext
8197cat >>conftest.$ac_ext <<_ACEOF
8198/* end confdefs.h. */
8199#include <sys/socket.h>
8200_ACEOF
8201if { (ac_try="$ac_cpp conftest.$ac_ext"
8202case "(($ac_try" in
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8205esac
8206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8208 ac_status=$?
8209 grep -v '^ *+' conftest.er1 >conftest.err
8210 rm -f conftest.er1
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } >/dev/null && {
8214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8215 test ! -s conftest.err
8216 }; then
8217 ac_header_preproc=yes
8218else
8219 echo "$as_me: failed program was:" >&5
8220sed 's/^/| /' conftest.$ac_ext >&5
8221
8222 ac_header_preproc=no
8223fi
8224
8225rm -f conftest.err conftest.$ac_ext
8226{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8227echo "${ECHO_T}$ac_header_preproc" >&6; }
8228
8229# So? What about this header?
8230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8231 yes:no: )
8232 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
8233echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8234 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
8235echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
8236 ac_header_preproc=yes
8237 ;;
8238 no:yes:* )
8239 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
8240echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
8241 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
8242echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
8243 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
8244echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
8245 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
8246echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
8247 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
8248echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
8249 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
8250echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
8251
8252 ;;
8253esac
8254{ echo "$as_me:$LINENO: checking for sys/socket.h" >&5
8255echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
8256if test "${ac_cv_header_sys_socket_h+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8258else
8259 ac_cv_header_sys_socket_h=$ac_header_preproc
8260fi
8261{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
8262echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
8263
8264fi
8265if test $ac_cv_header_sys_socket_h = yes; then
8266 cat >>confdefs.h <<\_ACEOF
8267#define PJ_HAS_SYS_SOCKET_H 1
8268_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008269
Benny Prijono46bd0842010-02-12 14:12:41 +00008270fi
Benny Prijono46bd0842010-02-12 14:12:41 +00008271
Benny Prijono46bd0842010-02-12 14:12:41 +00008272
Sauw Mingbe3771a2010-08-27 06:46:29 +00008273if test "${ac_cv_header_sys_time_h+set}" = set; then
8274 { echo "$as_me:$LINENO: checking for sys/time.h" >&5
8275echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; }
8276if test "${ac_cv_header_sys_time_h+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8278fi
8279{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
8280echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; }
8281else
8282 # Is the header compilable?
8283{ echo "$as_me:$LINENO: checking sys/time.h usability" >&5
8284echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6; }
8285cat >conftest.$ac_ext <<_ACEOF
8286/* confdefs.h. */
8287_ACEOF
8288cat confdefs.h >>conftest.$ac_ext
8289cat >>conftest.$ac_ext <<_ACEOF
8290/* end confdefs.h. */
8291$ac_includes_default
8292#include <sys/time.h>
8293_ACEOF
8294rm -f conftest.$ac_objext
8295if { (ac_try="$ac_compile"
8296case "(($ac_try" in
8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8299esac
8300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301 (eval "$ac_compile") 2>conftest.er1
8302 ac_status=$?
8303 grep -v '^ *+' conftest.er1 >conftest.err
8304 rm -f conftest.er1
8305 cat conftest.err >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } && {
8308 test -z "$ac_c_werror_flag" ||
8309 test ! -s conftest.err
8310 } && test -s conftest.$ac_objext; then
8311 ac_header_compiler=yes
8312else
8313 echo "$as_me: failed program was:" >&5
8314sed 's/^/| /' conftest.$ac_ext >&5
8315
8316 ac_header_compiler=no
8317fi
8318
8319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8321echo "${ECHO_T}$ac_header_compiler" >&6; }
8322
8323# Is the header present?
8324{ echo "$as_me:$LINENO: checking sys/time.h presence" >&5
8325echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6; }
8326cat >conftest.$ac_ext <<_ACEOF
8327/* confdefs.h. */
8328_ACEOF
8329cat confdefs.h >>conftest.$ac_ext
8330cat >>conftest.$ac_ext <<_ACEOF
8331/* end confdefs.h. */
8332#include <sys/time.h>
8333_ACEOF
8334if { (ac_try="$ac_cpp conftest.$ac_ext"
8335case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8338esac
8339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8341 ac_status=$?
8342 grep -v '^ *+' conftest.er1 >conftest.err
8343 rm -f conftest.er1
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } >/dev/null && {
8347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8348 test ! -s conftest.err
8349 }; then
8350 ac_header_preproc=yes
8351else
8352 echo "$as_me: failed program was:" >&5
8353sed 's/^/| /' conftest.$ac_ext >&5
8354
8355 ac_header_preproc=no
8356fi
8357
8358rm -f conftest.err conftest.$ac_ext
8359{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8360echo "${ECHO_T}$ac_header_preproc" >&6; }
8361
8362# So? What about this header?
8363case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8364 yes:no: )
8365 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
8366echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
8368echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
8369 ac_header_preproc=yes
8370 ;;
8371 no:yes:* )
8372 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
8373echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
8374 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
8375echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
8376 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
8377echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
8378 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
8379echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
8380 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
8381echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
8382 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
8383echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
8384
8385 ;;
8386esac
8387{ echo "$as_me:$LINENO: checking for sys/time.h" >&5
8388echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; }
8389if test "${ac_cv_header_sys_time_h+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8391else
8392 ac_cv_header_sys_time_h=$ac_header_preproc
8393fi
8394{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
8395echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; }
8396
8397fi
8398if test $ac_cv_header_sys_time_h = yes; then
8399 cat >>confdefs.h <<\_ACEOF
8400#define PJ_HAS_SYS_TIME_H 1
8401_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00008402
Benny Prijono46bd0842010-02-12 14:12:41 +00008403fi
8404
Benny Prijono46bd0842010-02-12 14:12:41 +00008405
Sauw Mingbe3771a2010-08-27 06:46:29 +00008406if test "${ac_cv_header_sys_timeb_h+set}" = set; then
8407 { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
8408echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; }
8409if test "${ac_cv_header_sys_timeb_h+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8411fi
8412{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
8413echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; }
8414else
8415 # Is the header compilable?
8416{ echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5
8417echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6; }
8418cat >conftest.$ac_ext <<_ACEOF
8419/* confdefs.h. */
8420_ACEOF
8421cat confdefs.h >>conftest.$ac_ext
8422cat >>conftest.$ac_ext <<_ACEOF
8423/* end confdefs.h. */
8424$ac_includes_default
8425#include <sys/timeb.h>
8426_ACEOF
8427rm -f conftest.$ac_objext
8428if { (ac_try="$ac_compile"
8429case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8432esac
8433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_compile") 2>conftest.er1
8435 ac_status=$?
8436 grep -v '^ *+' conftest.er1 >conftest.err
8437 rm -f conftest.er1
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest.$ac_objext; then
8444 ac_header_compiler=yes
8445else
8446 echo "$as_me: failed program was:" >&5
8447sed 's/^/| /' conftest.$ac_ext >&5
8448
8449 ac_header_compiler=no
8450fi
8451
8452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8453{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8454echo "${ECHO_T}$ac_header_compiler" >&6; }
8455
8456# Is the header present?
8457{ echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5
8458echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6; }
8459cat >conftest.$ac_ext <<_ACEOF
8460/* confdefs.h. */
8461_ACEOF
8462cat confdefs.h >>conftest.$ac_ext
8463cat >>conftest.$ac_ext <<_ACEOF
8464/* end confdefs.h. */
8465#include <sys/timeb.h>
8466_ACEOF
8467if { (ac_try="$ac_cpp conftest.$ac_ext"
8468case "(($ac_try" in
8469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470 *) ac_try_echo=$ac_try;;
8471esac
8472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8474 ac_status=$?
8475 grep -v '^ *+' conftest.er1 >conftest.err
8476 rm -f conftest.er1
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } >/dev/null && {
8480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8481 test ! -s conftest.err
8482 }; then
8483 ac_header_preproc=yes
8484else
8485 echo "$as_me: failed program was:" >&5
8486sed 's/^/| /' conftest.$ac_ext >&5
8487
8488 ac_header_preproc=no
8489fi
8490
8491rm -f conftest.err conftest.$ac_ext
8492{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8493echo "${ECHO_T}$ac_header_preproc" >&6; }
8494
8495# So? What about this header?
8496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8497 yes:no: )
8498 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8499echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8500 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5
8501echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;}
8502 ac_header_preproc=yes
8503 ;;
8504 no:yes:* )
8505 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5
8506echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;}
8507 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5
8508echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;}
8509 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5
8510echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;}
8511 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5
8512echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;}
8513 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5
8514echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;}
8515 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5
8516echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;}
8517
8518 ;;
8519esac
8520{ echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
8521echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; }
8522if test "${ac_cv_header_sys_timeb_h+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8524else
8525 ac_cv_header_sys_timeb_h=$ac_header_preproc
8526fi
8527{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
8528echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; }
8529
8530fi
8531if test $ac_cv_header_sys_timeb_h = yes; then
8532 cat >>confdefs.h <<\_ACEOF
8533#define PJ_HAS_SYS_TIMEB_H 1
8534_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00008535
Benny Prijono46bd0842010-02-12 14:12:41 +00008536fi
Benny Prijono46bd0842010-02-12 14:12:41 +00008537
Benny Prijono1d65f702007-12-03 04:03:17 +00008538
Sauw Mingbe3771a2010-08-27 06:46:29 +00008539if test "${ac_cv_header_sys_types_h+set}" = set; then
8540 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
8541echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
8542if test "${ac_cv_header_sys_types_h+set}" = set; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8544fi
8545{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
8546echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
8547else
8548 # Is the header compilable?
8549{ echo "$as_me:$LINENO: checking sys/types.h usability" >&5
8550echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; }
8551cat >conftest.$ac_ext <<_ACEOF
8552/* confdefs.h. */
8553_ACEOF
8554cat confdefs.h >>conftest.$ac_ext
8555cat >>conftest.$ac_ext <<_ACEOF
8556/* end confdefs.h. */
8557$ac_includes_default
8558#include <sys/types.h>
8559_ACEOF
8560rm -f conftest.$ac_objext
8561if { (ac_try="$ac_compile"
8562case "(($ac_try" in
8563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564 *) ac_try_echo=$ac_try;;
8565esac
8566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567 (eval "$ac_compile") 2>conftest.er1
8568 ac_status=$?
8569 grep -v '^ *+' conftest.er1 >conftest.err
8570 rm -f conftest.er1
8571 cat conftest.err >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } && {
8574 test -z "$ac_c_werror_flag" ||
8575 test ! -s conftest.err
8576 } && test -s conftest.$ac_objext; then
8577 ac_header_compiler=yes
8578else
8579 echo "$as_me: failed program was:" >&5
8580sed 's/^/| /' conftest.$ac_ext >&5
8581
8582 ac_header_compiler=no
8583fi
8584
8585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8586{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8587echo "${ECHO_T}$ac_header_compiler" >&6; }
8588
8589# Is the header present?
8590{ echo "$as_me:$LINENO: checking sys/types.h presence" >&5
8591echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; }
8592cat >conftest.$ac_ext <<_ACEOF
8593/* confdefs.h. */
8594_ACEOF
8595cat confdefs.h >>conftest.$ac_ext
8596cat >>conftest.$ac_ext <<_ACEOF
8597/* end confdefs.h. */
8598#include <sys/types.h>
8599_ACEOF
8600if { (ac_try="$ac_cpp conftest.$ac_ext"
8601case "(($ac_try" in
8602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8603 *) ac_try_echo=$ac_try;;
8604esac
8605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8607 ac_status=$?
8608 grep -v '^ *+' conftest.er1 >conftest.err
8609 rm -f conftest.er1
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } >/dev/null && {
8613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8614 test ! -s conftest.err
8615 }; then
8616 ac_header_preproc=yes
8617else
8618 echo "$as_me: failed program was:" >&5
8619sed 's/^/| /' conftest.$ac_ext >&5
8620
8621 ac_header_preproc=no
8622fi
8623
8624rm -f conftest.err conftest.$ac_ext
8625{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8626echo "${ECHO_T}$ac_header_preproc" >&6; }
8627
8628# So? What about this header?
8629case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8630 yes:no: )
8631 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
8632echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8633 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
8634echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
8635 ac_header_preproc=yes
8636 ;;
8637 no:yes:* )
8638 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
8639echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
8640 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
8641echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
8642 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
8643echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
8644 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
8645echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
8646 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
8647echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
8648 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
8649echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
8650
8651 ;;
8652esac
8653{ echo "$as_me:$LINENO: checking for sys/types.h" >&5
8654echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
8655if test "${ac_cv_header_sys_types_h+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8657else
8658 ac_cv_header_sys_types_h=$ac_header_preproc
8659fi
8660{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
8661echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
8662
8663fi
8664if test $ac_cv_header_sys_types_h = yes; then
8665 cat >>confdefs.h <<\_ACEOF
8666#define PJ_HAS_SYS_TYPES_H 1
8667_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00008668
Benny Prijono46bd0842010-02-12 14:12:41 +00008669fi
8670
Benny Prijono46bd0842010-02-12 14:12:41 +00008671
Sauw Mingbe3771a2010-08-27 06:46:29 +00008672if test "${ac_cv_header_sys_filio_h+set}" = set; then
8673 { echo "$as_me:$LINENO: checking for sys/filio.h" >&5
8674echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; }
8675if test "${ac_cv_header_sys_filio_h+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677fi
8678{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
8679echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; }
8680else
8681 # Is the header compilable?
8682{ echo "$as_me:$LINENO: checking sys/filio.h usability" >&5
8683echo $ECHO_N "checking sys/filio.h usability... $ECHO_C" >&6; }
8684cat >conftest.$ac_ext <<_ACEOF
8685/* confdefs.h. */
8686_ACEOF
8687cat confdefs.h >>conftest.$ac_ext
8688cat >>conftest.$ac_ext <<_ACEOF
8689/* end confdefs.h. */
8690$ac_includes_default
8691#include <sys/filio.h>
8692_ACEOF
8693rm -f conftest.$ac_objext
8694if { (ac_try="$ac_compile"
8695case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8698esac
8699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_compile") 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest.$ac_objext; then
8710 ac_header_compiler=yes
8711else
8712 echo "$as_me: failed program was:" >&5
8713sed 's/^/| /' conftest.$ac_ext >&5
8714
8715 ac_header_compiler=no
8716fi
8717
8718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8719{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8720echo "${ECHO_T}$ac_header_compiler" >&6; }
8721
8722# Is the header present?
8723{ echo "$as_me:$LINENO: checking sys/filio.h presence" >&5
8724echo $ECHO_N "checking sys/filio.h presence... $ECHO_C" >&6; }
8725cat >conftest.$ac_ext <<_ACEOF
8726/* confdefs.h. */
8727_ACEOF
8728cat confdefs.h >>conftest.$ac_ext
8729cat >>conftest.$ac_ext <<_ACEOF
8730/* end confdefs.h. */
8731#include <sys/filio.h>
8732_ACEOF
8733if { (ac_try="$ac_cpp conftest.$ac_ext"
8734case "(($ac_try" in
8735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736 *) ac_try_echo=$ac_try;;
8737esac
8738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8740 ac_status=$?
8741 grep -v '^ *+' conftest.er1 >conftest.err
8742 rm -f conftest.er1
8743 cat conftest.err >&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); } >/dev/null && {
8746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8747 test ! -s conftest.err
8748 }; then
8749 ac_header_preproc=yes
8750else
8751 echo "$as_me: failed program was:" >&5
8752sed 's/^/| /' conftest.$ac_ext >&5
8753
8754 ac_header_preproc=no
8755fi
8756
8757rm -f conftest.err conftest.$ac_ext
8758{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8759echo "${ECHO_T}$ac_header_preproc" >&6; }
8760
8761# So? What about this header?
8762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8763 yes:no: )
8764 { echo "$as_me:$LINENO: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8765echo "$as_me: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the compiler's result" >&5
8767echo "$as_me: WARNING: sys/filio.h: proceeding with the compiler's result" >&2;}
8768 ac_header_preproc=yes
8769 ;;
8770 no:yes:* )
8771 { echo "$as_me:$LINENO: WARNING: sys/filio.h: present but cannot be compiled" >&5
8772echo "$as_me: WARNING: sys/filio.h: present but cannot be compiled" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: sys/filio.h: check for missing prerequisite headers?" >&5
8774echo "$as_me: WARNING: sys/filio.h: check for missing prerequisite headers?" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: sys/filio.h: see the Autoconf documentation" >&5
8776echo "$as_me: WARNING: sys/filio.h: see the Autoconf documentation" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&5
8778echo "$as_me: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&5
8780echo "$as_me: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&2;}
8781 { echo "$as_me:$LINENO: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&5
8782echo "$as_me: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&2;}
8783
8784 ;;
8785esac
8786{ echo "$as_me:$LINENO: checking for sys/filio.h" >&5
8787echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; }
8788if test "${ac_cv_header_sys_filio_h+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8790else
8791 ac_cv_header_sys_filio_h=$ac_header_preproc
8792fi
8793{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
8794echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; }
8795
8796fi
8797if test $ac_cv_header_sys_filio_h = yes; then
8798 cat >>confdefs.h <<\_ACEOF
8799#define PJ_HAS_SYS_FILIO_H 1
8800_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00008801
Benny Prijono46bd0842010-02-12 14:12:41 +00008802fi
8803
Benny Prijono46bd0842010-02-12 14:12:41 +00008804
Sauw Mingbe3771a2010-08-27 06:46:29 +00008805if test "${ac_cv_header_sys_sockio_h+set}" = set; then
8806 { echo "$as_me:$LINENO: checking for sys/sockio.h" >&5
8807echo $ECHO_N "checking for sys/sockio.h... $ECHO_C" >&6; }
8808if test "${ac_cv_header_sys_sockio_h+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8810fi
8811{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sockio_h" >&5
8812echo "${ECHO_T}$ac_cv_header_sys_sockio_h" >&6; }
8813else
8814 # Is the header compilable?
8815{ echo "$as_me:$LINENO: checking sys/sockio.h usability" >&5
8816echo $ECHO_N "checking sys/sockio.h usability... $ECHO_C" >&6; }
8817cat >conftest.$ac_ext <<_ACEOF
8818/* confdefs.h. */
8819_ACEOF
8820cat confdefs.h >>conftest.$ac_ext
8821cat >>conftest.$ac_ext <<_ACEOF
8822/* end confdefs.h. */
8823$ac_includes_default
8824#include <sys/sockio.h>
8825_ACEOF
8826rm -f conftest.$ac_objext
8827if { (ac_try="$ac_compile"
8828case "(($ac_try" in
8829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8830 *) ac_try_echo=$ac_try;;
8831esac
8832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8833 (eval "$ac_compile") 2>conftest.er1
8834 ac_status=$?
8835 grep -v '^ *+' conftest.er1 >conftest.err
8836 rm -f conftest.er1
8837 cat conftest.err >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } && {
8840 test -z "$ac_c_werror_flag" ||
8841 test ! -s conftest.err
8842 } && test -s conftest.$ac_objext; then
8843 ac_header_compiler=yes
8844else
8845 echo "$as_me: failed program was:" >&5
8846sed 's/^/| /' conftest.$ac_ext >&5
8847
8848 ac_header_compiler=no
8849fi
8850
8851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8852{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8853echo "${ECHO_T}$ac_header_compiler" >&6; }
8854
8855# Is the header present?
8856{ echo "$as_me:$LINENO: checking sys/sockio.h presence" >&5
8857echo $ECHO_N "checking sys/sockio.h presence... $ECHO_C" >&6; }
8858cat >conftest.$ac_ext <<_ACEOF
8859/* confdefs.h. */
8860_ACEOF
8861cat confdefs.h >>conftest.$ac_ext
8862cat >>conftest.$ac_ext <<_ACEOF
8863/* end confdefs.h. */
8864#include <sys/sockio.h>
8865_ACEOF
8866if { (ac_try="$ac_cpp conftest.$ac_ext"
8867case "(($ac_try" in
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8870esac
8871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8873 ac_status=$?
8874 grep -v '^ *+' conftest.er1 >conftest.err
8875 rm -f conftest.er1
8876 cat conftest.err >&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } >/dev/null && {
8879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8880 test ! -s conftest.err
8881 }; then
8882 ac_header_preproc=yes
8883else
8884 echo "$as_me: failed program was:" >&5
8885sed 's/^/| /' conftest.$ac_ext >&5
8886
8887 ac_header_preproc=no
8888fi
8889
8890rm -f conftest.err conftest.$ac_ext
8891{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8892echo "${ECHO_T}$ac_header_preproc" >&6; }
8893
8894# So? What about this header?
8895case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8896 yes:no: )
8897 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8898echo "$as_me: WARNING: sys/sockio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8899 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: proceeding with the compiler's result" >&5
8900echo "$as_me: WARNING: sys/sockio.h: proceeding with the compiler's result" >&2;}
8901 ac_header_preproc=yes
8902 ;;
8903 no:yes:* )
8904 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: present but cannot be compiled" >&5
8905echo "$as_me: WARNING: sys/sockio.h: present but cannot be compiled" >&2;}
8906 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: check for missing prerequisite headers?" >&5
8907echo "$as_me: WARNING: sys/sockio.h: check for missing prerequisite headers?" >&2;}
8908 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: see the Autoconf documentation" >&5
8909echo "$as_me: WARNING: sys/sockio.h: see the Autoconf documentation" >&2;}
8910 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: section \"Present But Cannot Be Compiled\"" >&5
8911echo "$as_me: WARNING: sys/sockio.h: section \"Present But Cannot Be Compiled\"" >&2;}
8912 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: proceeding with the preprocessor's result" >&5
8913echo "$as_me: WARNING: sys/sockio.h: proceeding with the preprocessor's result" >&2;}
8914 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: in the future, the compiler will take precedence" >&5
8915echo "$as_me: WARNING: sys/sockio.h: in the future, the compiler will take precedence" >&2;}
8916
8917 ;;
8918esac
8919{ echo "$as_me:$LINENO: checking for sys/sockio.h" >&5
8920echo $ECHO_N "checking for sys/sockio.h... $ECHO_C" >&6; }
8921if test "${ac_cv_header_sys_sockio_h+set}" = set; then
8922 echo $ECHO_N "(cached) $ECHO_C" >&6
8923else
8924 ac_cv_header_sys_sockio_h=$ac_header_preproc
8925fi
8926{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sockio_h" >&5
8927echo "${ECHO_T}$ac_cv_header_sys_sockio_h" >&6; }
8928
8929fi
8930if test $ac_cv_header_sys_sockio_h = yes; then
8931 cat >>confdefs.h <<\_ACEOF
8932#define PJ_HAS_SYS_SOCKIO_H 1
8933_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00008934
Benny Prijono46bd0842010-02-12 14:12:41 +00008935fi
Benny Prijono46bd0842010-02-12 14:12:41 +00008936
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008937
Sauw Mingbe3771a2010-08-27 06:46:29 +00008938if test "${ac_cv_header_time_h+set}" = set; then
8939 { echo "$as_me:$LINENO: checking for time.h" >&5
8940echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
8941if test "${ac_cv_header_time_h+set}" = set; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8943fi
8944{ echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
8945echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
8946else
8947 # Is the header compilable?
8948{ echo "$as_me:$LINENO: checking time.h usability" >&5
8949echo $ECHO_N "checking time.h usability... $ECHO_C" >&6; }
8950cat >conftest.$ac_ext <<_ACEOF
8951/* confdefs.h. */
8952_ACEOF
8953cat confdefs.h >>conftest.$ac_ext
8954cat >>conftest.$ac_ext <<_ACEOF
8955/* end confdefs.h. */
8956$ac_includes_default
8957#include <time.h>
8958_ACEOF
8959rm -f conftest.$ac_objext
8960if { (ac_try="$ac_compile"
8961case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8964esac
8965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_compile") 2>conftest.er1
8967 ac_status=$?
8968 grep -v '^ *+' conftest.er1 >conftest.err
8969 rm -f conftest.er1
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } && {
8973 test -z "$ac_c_werror_flag" ||
8974 test ! -s conftest.err
8975 } && test -s conftest.$ac_objext; then
8976 ac_header_compiler=yes
8977else
8978 echo "$as_me: failed program was:" >&5
8979sed 's/^/| /' conftest.$ac_ext >&5
8980
8981 ac_header_compiler=no
8982fi
8983
8984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8986echo "${ECHO_T}$ac_header_compiler" >&6; }
8987
8988# Is the header present?
8989{ echo "$as_me:$LINENO: checking time.h presence" >&5
8990echo $ECHO_N "checking time.h presence... $ECHO_C" >&6; }
8991cat >conftest.$ac_ext <<_ACEOF
8992/* confdefs.h. */
8993_ACEOF
8994cat confdefs.h >>conftest.$ac_ext
8995cat >>conftest.$ac_ext <<_ACEOF
8996/* end confdefs.h. */
8997#include <time.h>
8998_ACEOF
8999if { (ac_try="$ac_cpp conftest.$ac_ext"
9000case "(($ac_try" in
9001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002 *) ac_try_echo=$ac_try;;
9003esac
9004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9006 ac_status=$?
9007 grep -v '^ *+' conftest.er1 >conftest.err
9008 rm -f conftest.er1
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } >/dev/null && {
9012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9013 test ! -s conftest.err
9014 }; then
9015 ac_header_preproc=yes
9016else
9017 echo "$as_me: failed program was:" >&5
9018sed 's/^/| /' conftest.$ac_ext >&5
9019
9020 ac_header_preproc=no
9021fi
9022
9023rm -f conftest.err conftest.$ac_ext
9024{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9025echo "${ECHO_T}$ac_header_preproc" >&6; }
9026
9027# So? What about this header?
9028case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9029 yes:no: )
9030 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
9031echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9032 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
9033echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
9034 ac_header_preproc=yes
9035 ;;
9036 no:yes:* )
9037 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
9038echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
9039 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
9040echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
9041 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
9042echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
9043 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
9044echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
9045 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
9046echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
9047 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
9048echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
9049
9050 ;;
9051esac
9052{ echo "$as_me:$LINENO: checking for time.h" >&5
9053echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
9054if test "${ac_cv_header_time_h+set}" = set; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9056else
9057 ac_cv_header_time_h=$ac_header_preproc
9058fi
9059{ echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
9060echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
9061
9062fi
9063if test $ac_cv_header_time_h = yes; then
9064 cat >>confdefs.h <<\_ACEOF
9065#define PJ_HAS_TIME_H 1
9066_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00009067
Benny Prijono46bd0842010-02-12 14:12:41 +00009068fi
9069
Benny Prijono46bd0842010-02-12 14:12:41 +00009070
Sauw Mingbe3771a2010-08-27 06:46:29 +00009071if test "${ac_cv_header_unistd_h+set}" = set; then
9072 { echo "$as_me:$LINENO: checking for unistd.h" >&5
9073echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
9074if test "${ac_cv_header_unistd_h+set}" = set; then
9075 echo $ECHO_N "(cached) $ECHO_C" >&6
9076fi
9077{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
9078echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; }
9079else
9080 # Is the header compilable?
9081{ echo "$as_me:$LINENO: checking unistd.h usability" >&5
9082echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; }
9083cat >conftest.$ac_ext <<_ACEOF
9084/* confdefs.h. */
9085_ACEOF
9086cat confdefs.h >>conftest.$ac_ext
9087cat >>conftest.$ac_ext <<_ACEOF
9088/* end confdefs.h. */
9089$ac_includes_default
9090#include <unistd.h>
9091_ACEOF
9092rm -f conftest.$ac_objext
9093if { (ac_try="$ac_compile"
9094case "(($ac_try" in
9095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9096 *) ac_try_echo=$ac_try;;
9097esac
9098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9099 (eval "$ac_compile") 2>conftest.er1
9100 ac_status=$?
9101 grep -v '^ *+' conftest.er1 >conftest.err
9102 rm -f conftest.er1
9103 cat conftest.err >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); } && {
9106 test -z "$ac_c_werror_flag" ||
9107 test ! -s conftest.err
9108 } && test -s conftest.$ac_objext; then
9109 ac_header_compiler=yes
9110else
9111 echo "$as_me: failed program was:" >&5
9112sed 's/^/| /' conftest.$ac_ext >&5
9113
9114 ac_header_compiler=no
9115fi
9116
9117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9118{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9119echo "${ECHO_T}$ac_header_compiler" >&6; }
9120
9121# Is the header present?
9122{ echo "$as_me:$LINENO: checking unistd.h presence" >&5
9123echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; }
9124cat >conftest.$ac_ext <<_ACEOF
9125/* confdefs.h. */
9126_ACEOF
9127cat confdefs.h >>conftest.$ac_ext
9128cat >>conftest.$ac_ext <<_ACEOF
9129/* end confdefs.h. */
9130#include <unistd.h>
9131_ACEOF
9132if { (ac_try="$ac_cpp conftest.$ac_ext"
9133case "(($ac_try" in
9134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9135 *) ac_try_echo=$ac_try;;
9136esac
9137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9139 ac_status=$?
9140 grep -v '^ *+' conftest.er1 >conftest.err
9141 rm -f conftest.er1
9142 cat conftest.err >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } >/dev/null && {
9145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9146 test ! -s conftest.err
9147 }; then
9148 ac_header_preproc=yes
9149else
9150 echo "$as_me: failed program was:" >&5
9151sed 's/^/| /' conftest.$ac_ext >&5
9152
9153 ac_header_preproc=no
9154fi
9155
9156rm -f conftest.err conftest.$ac_ext
9157{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9158echo "${ECHO_T}$ac_header_preproc" >&6; }
9159
9160# So? What about this header?
9161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9162 yes:no: )
9163 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
9164echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9165 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
9166echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
9167 ac_header_preproc=yes
9168 ;;
9169 no:yes:* )
9170 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
9171echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
9172 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
9173echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
9174 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
9175echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
9176 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
9177echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
9178 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
9179echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
9180 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
9181echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
9182
9183 ;;
9184esac
9185{ echo "$as_me:$LINENO: checking for unistd.h" >&5
9186echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
9187if test "${ac_cv_header_unistd_h+set}" = set; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9189else
9190 ac_cv_header_unistd_h=$ac_header_preproc
9191fi
9192{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
9193echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; }
9194
9195fi
9196if test $ac_cv_header_unistd_h = yes; then
9197 cat >>confdefs.h <<\_ACEOF
9198#define PJ_HAS_UNISTD_H 1
9199_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00009200
Benny Prijono46bd0842010-02-12 14:12:41 +00009201fi
9202
Benny Prijono46bd0842010-02-12 14:12:41 +00009203
Sauw Mingbe3771a2010-08-27 06:46:29 +00009204if test "${ac_cv_header_winsock_h+set}" = set; then
9205 { echo "$as_me:$LINENO: checking for winsock.h" >&5
9206echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
9207if test "${ac_cv_header_winsock_h+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9209fi
9210{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
9211echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
9212else
9213 # Is the header compilable?
9214{ echo "$as_me:$LINENO: checking winsock.h usability" >&5
9215echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; }
9216cat >conftest.$ac_ext <<_ACEOF
9217/* confdefs.h. */
9218_ACEOF
9219cat confdefs.h >>conftest.$ac_ext
9220cat >>conftest.$ac_ext <<_ACEOF
9221/* end confdefs.h. */
9222$ac_includes_default
9223#include <winsock.h>
9224_ACEOF
9225rm -f conftest.$ac_objext
9226if { (ac_try="$ac_compile"
9227case "(($ac_try" in
9228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9229 *) ac_try_echo=$ac_try;;
9230esac
9231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9232 (eval "$ac_compile") 2>conftest.er1
9233 ac_status=$?
9234 grep -v '^ *+' conftest.er1 >conftest.err
9235 rm -f conftest.er1
9236 cat conftest.err >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); } && {
9239 test -z "$ac_c_werror_flag" ||
9240 test ! -s conftest.err
9241 } && test -s conftest.$ac_objext; then
9242 ac_header_compiler=yes
9243else
9244 echo "$as_me: failed program was:" >&5
9245sed 's/^/| /' conftest.$ac_ext >&5
9246
9247 ac_header_compiler=no
9248fi
9249
9250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9252echo "${ECHO_T}$ac_header_compiler" >&6; }
9253
9254# Is the header present?
9255{ echo "$as_me:$LINENO: checking winsock.h presence" >&5
9256echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; }
9257cat >conftest.$ac_ext <<_ACEOF
9258/* confdefs.h. */
9259_ACEOF
9260cat confdefs.h >>conftest.$ac_ext
9261cat >>conftest.$ac_ext <<_ACEOF
9262/* end confdefs.h. */
9263#include <winsock.h>
9264_ACEOF
9265if { (ac_try="$ac_cpp conftest.$ac_ext"
9266case "(($ac_try" in
9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268 *) ac_try_echo=$ac_try;;
9269esac
9270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9272 ac_status=$?
9273 grep -v '^ *+' conftest.er1 >conftest.err
9274 rm -f conftest.er1
9275 cat conftest.err >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } >/dev/null && {
9278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9279 test ! -s conftest.err
9280 }; then
9281 ac_header_preproc=yes
9282else
9283 echo "$as_me: failed program was:" >&5
9284sed 's/^/| /' conftest.$ac_ext >&5
9285
9286 ac_header_preproc=no
9287fi
9288
9289rm -f conftest.err conftest.$ac_ext
9290{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9291echo "${ECHO_T}$ac_header_preproc" >&6; }
9292
9293# So? What about this header?
9294case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9295 yes:no: )
9296 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
9297echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9298 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
9299echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
9300 ac_header_preproc=yes
9301 ;;
9302 no:yes:* )
9303 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
9304echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
9306echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
9307 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
9308echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
9309 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
9310echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
9311 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
9312echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
9313 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
9314echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
9315
9316 ;;
9317esac
9318{ echo "$as_me:$LINENO: checking for winsock.h" >&5
9319echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
9320if test "${ac_cv_header_winsock_h+set}" = set; then
9321 echo $ECHO_N "(cached) $ECHO_C" >&6
9322else
9323 ac_cv_header_winsock_h=$ac_header_preproc
9324fi
9325{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
9326echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
9327
9328fi
9329if test $ac_cv_header_winsock_h = yes; then
9330 cat >>confdefs.h <<\_ACEOF
9331#define PJ_HAS_WINSOCK_H 1
9332_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00009333
Benny Prijono46bd0842010-02-12 14:12:41 +00009334fi
Benny Prijono46bd0842010-02-12 14:12:41 +00009335
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009336
Sauw Mingbe3771a2010-08-27 06:46:29 +00009337if test "${ac_cv_header_winsock2_h+set}" = set; then
9338 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
9339echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
9340if test "${ac_cv_header_winsock2_h+set}" = set; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9342fi
9343{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
9344echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
9345else
9346 # Is the header compilable?
9347{ echo "$as_me:$LINENO: checking winsock2.h usability" >&5
9348echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; }
9349cat >conftest.$ac_ext <<_ACEOF
9350/* confdefs.h. */
9351_ACEOF
9352cat confdefs.h >>conftest.$ac_ext
9353cat >>conftest.$ac_ext <<_ACEOF
9354/* end confdefs.h. */
9355$ac_includes_default
9356#include <winsock2.h>
9357_ACEOF
9358rm -f conftest.$ac_objext
9359if { (ac_try="$ac_compile"
9360case "(($ac_try" in
9361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9362 *) ac_try_echo=$ac_try;;
9363esac
9364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9365 (eval "$ac_compile") 2>conftest.er1
9366 ac_status=$?
9367 grep -v '^ *+' conftest.er1 >conftest.err
9368 rm -f conftest.er1
9369 cat conftest.err >&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } && {
9372 test -z "$ac_c_werror_flag" ||
9373 test ! -s conftest.err
9374 } && test -s conftest.$ac_objext; then
9375 ac_header_compiler=yes
9376else
9377 echo "$as_me: failed program was:" >&5
9378sed 's/^/| /' conftest.$ac_ext >&5
9379
9380 ac_header_compiler=no
9381fi
9382
9383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9384{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9385echo "${ECHO_T}$ac_header_compiler" >&6; }
9386
9387# Is the header present?
9388{ echo "$as_me:$LINENO: checking winsock2.h presence" >&5
9389echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; }
9390cat >conftest.$ac_ext <<_ACEOF
9391/* confdefs.h. */
9392_ACEOF
9393cat confdefs.h >>conftest.$ac_ext
9394cat >>conftest.$ac_ext <<_ACEOF
9395/* end confdefs.h. */
9396#include <winsock2.h>
9397_ACEOF
9398if { (ac_try="$ac_cpp conftest.$ac_ext"
9399case "(($ac_try" in
9400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9401 *) ac_try_echo=$ac_try;;
9402esac
9403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9405 ac_status=$?
9406 grep -v '^ *+' conftest.er1 >conftest.err
9407 rm -f conftest.er1
9408 cat conftest.err >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } >/dev/null && {
9411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9412 test ! -s conftest.err
9413 }; then
9414 ac_header_preproc=yes
9415else
9416 echo "$as_me: failed program was:" >&5
9417sed 's/^/| /' conftest.$ac_ext >&5
9418
9419 ac_header_preproc=no
9420fi
9421
9422rm -f conftest.err conftest.$ac_ext
9423{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9424echo "${ECHO_T}$ac_header_preproc" >&6; }
9425
9426# So? What about this header?
9427case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9428 yes:no: )
9429 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
9430echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9431 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
9432echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
9433 ac_header_preproc=yes
9434 ;;
9435 no:yes:* )
9436 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
9437echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
9438 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
9439echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
9440 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
9441echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
9442 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
9443echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
9444 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
9445echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
9446 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
9447echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
9448
9449 ;;
9450esac
9451{ echo "$as_me:$LINENO: checking for winsock2.h" >&5
9452echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
9453if test "${ac_cv_header_winsock2_h+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9455else
9456 ac_cv_header_winsock2_h=$ac_header_preproc
9457fi
9458{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
9459echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
9460
9461fi
9462if test $ac_cv_header_winsock2_h = yes; then
9463 cat >>confdefs.h <<\_ACEOF
9464#define PJ_HAS_WINSOCK2_H 1
9465_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +00009466
Benny Prijono46bd0842010-02-12 14:12:41 +00009467fi
Benny Prijono46bd0842010-02-12 14:12:41 +00009468
Benny Prijono46bd0842010-02-12 14:12:41 +00009469
Sauw Mingbe3771a2010-08-27 06:46:29 +00009470{ echo "$as_me:$LINENO: checking for mswsock.h" >&5
9471echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6; }
9472if test "${ac_cv_header_mswsock_h+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9474else
9475 cat >conftest.$ac_ext <<_ACEOF
9476/* confdefs.h. */
9477_ACEOF
9478cat confdefs.h >>conftest.$ac_ext
9479cat >>conftest.$ac_ext <<_ACEOF
9480/* end confdefs.h. */
9481#if PJ_HAS_WINSOCK2_H
Benny Prijonoa9948e62008-03-25 14:03:01 +00009482 # include <winsock2.h>
9483 #elif PJ_HAS_WINSOCK_H
9484 # include <winsock.h>
9485 #endif
9486
Sauw Mingbe3771a2010-08-27 06:46:29 +00009487
9488#include <mswsock.h>
9489_ACEOF
9490rm -f conftest.$ac_objext
9491if { (ac_try="$ac_compile"
9492case "(($ac_try" in
9493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494 *) ac_try_echo=$ac_try;;
9495esac
9496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9497 (eval "$ac_compile") 2>conftest.er1
9498 ac_status=$?
9499 grep -v '^ *+' conftest.er1 >conftest.err
9500 rm -f conftest.er1
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } && {
9504 test -z "$ac_c_werror_flag" ||
9505 test ! -s conftest.err
9506 } && test -s conftest.$ac_objext; then
9507 ac_cv_header_mswsock_h=yes
9508else
9509 echo "$as_me: failed program was:" >&5
9510sed 's/^/| /' conftest.$ac_ext >&5
9511
9512 ac_cv_header_mswsock_h=no
9513fi
9514
9515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9516fi
9517{ echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
9518echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6; }
9519if test $ac_cv_header_mswsock_h = yes; then
9520 cat >>confdefs.h <<\_ACEOF
9521#define PJ_HAS_MSWSOCK_H 1
9522_ACEOF
Benny Prijonoa9948e62008-03-25 14:03:01 +00009523
9524fi
9525
9526
Sauw Mingbe3771a2010-08-27 06:46:29 +00009527if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
9528 { echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5
9529echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; }
9530if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9532fi
9533{ echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5
9534echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; }
9535else
9536 # Is the header compilable?
9537{ echo "$as_me:$LINENO: checking ws2tcpip.h usability" >&5
9538echo $ECHO_N "checking ws2tcpip.h usability... $ECHO_C" >&6; }
9539cat >conftest.$ac_ext <<_ACEOF
9540/* confdefs.h. */
9541_ACEOF
9542cat confdefs.h >>conftest.$ac_ext
9543cat >>conftest.$ac_ext <<_ACEOF
9544/* end confdefs.h. */
9545$ac_includes_default
9546#include <ws2tcpip.h>
9547_ACEOF
9548rm -f conftest.$ac_objext
9549if { (ac_try="$ac_compile"
9550case "(($ac_try" in
9551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552 *) ac_try_echo=$ac_try;;
9553esac
9554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555 (eval "$ac_compile") 2>conftest.er1
9556 ac_status=$?
9557 grep -v '^ *+' conftest.er1 >conftest.err
9558 rm -f conftest.er1
9559 cat conftest.err >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } && {
9562 test -z "$ac_c_werror_flag" ||
9563 test ! -s conftest.err
9564 } && test -s conftest.$ac_objext; then
9565 ac_header_compiler=yes
9566else
9567 echo "$as_me: failed program was:" >&5
9568sed 's/^/| /' conftest.$ac_ext >&5
9569
9570 ac_header_compiler=no
9571fi
9572
9573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9574{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9575echo "${ECHO_T}$ac_header_compiler" >&6; }
9576
9577# Is the header present?
9578{ echo "$as_me:$LINENO: checking ws2tcpip.h presence" >&5
9579echo $ECHO_N "checking ws2tcpip.h presence... $ECHO_C" >&6; }
9580cat >conftest.$ac_ext <<_ACEOF
9581/* confdefs.h. */
9582_ACEOF
9583cat confdefs.h >>conftest.$ac_ext
9584cat >>conftest.$ac_ext <<_ACEOF
9585/* end confdefs.h. */
9586#include <ws2tcpip.h>
9587_ACEOF
9588if { (ac_try="$ac_cpp conftest.$ac_ext"
9589case "(($ac_try" in
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9592esac
9593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9595 ac_status=$?
9596 grep -v '^ *+' conftest.er1 >conftest.err
9597 rm -f conftest.er1
9598 cat conftest.err >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } >/dev/null && {
9601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9602 test ! -s conftest.err
9603 }; then
9604 ac_header_preproc=yes
9605else
9606 echo "$as_me: failed program was:" >&5
9607sed 's/^/| /' conftest.$ac_ext >&5
9608
9609 ac_header_preproc=no
9610fi
9611
9612rm -f conftest.err conftest.$ac_ext
9613{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9614echo "${ECHO_T}$ac_header_preproc" >&6; }
9615
9616# So? What about this header?
9617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9618 yes:no: )
9619 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&5
9620echo "$as_me: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&5
9622echo "$as_me: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&2;}
9623 ac_header_preproc=yes
9624 ;;
9625 no:yes:* )
9626 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: present but cannot be compiled" >&5
9627echo "$as_me: WARNING: ws2tcpip.h: present but cannot be compiled" >&2;}
9628 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&5
9629echo "$as_me: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&2;}
9630 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: see the Autoconf documentation" >&5
9631echo "$as_me: WARNING: ws2tcpip.h: see the Autoconf documentation" >&2;}
9632 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&5
9633echo "$as_me: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&5
9635echo "$as_me: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&2;}
9636 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&5
9637echo "$as_me: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&2;}
9638
9639 ;;
9640esac
9641{ echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5
9642echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; }
9643if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9645else
9646 ac_cv_header_ws2tcpip_h=$ac_header_preproc
9647fi
9648{ echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5
9649echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; }
9650
9651fi
9652if test $ac_cv_header_ws2tcpip_h = yes; then
9653 cat >>confdefs.h <<\_ACEOF
9654#define PJ_HAS_WS2TCPIP_H 1
9655_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00009656
9657fi
9658
9659
Sauw Mingbe3771a2010-08-27 06:46:29 +00009660if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
9661 { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
9662echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; }
9663if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9665fi
9666{ echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
9667echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; }
9668else
9669 # Is the header compilable?
9670{ echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
9671echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6; }
9672cat >conftest.$ac_ext <<_ACEOF
9673/* confdefs.h. */
9674_ACEOF
9675cat confdefs.h >>conftest.$ac_ext
9676cat >>conftest.$ac_ext <<_ACEOF
9677/* end confdefs.h. */
9678$ac_includes_default
9679#include <uuid/uuid.h>
9680_ACEOF
9681rm -f conftest.$ac_objext
9682if { (ac_try="$ac_compile"
9683case "(($ac_try" in
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9686esac
9687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_compile") 2>conftest.er1
9689 ac_status=$?
9690 grep -v '^ *+' conftest.er1 >conftest.err
9691 rm -f conftest.er1
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && {
9695 test -z "$ac_c_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest.$ac_objext; then
9698 ac_header_compiler=yes
9699else
9700 echo "$as_me: failed program was:" >&5
9701sed 's/^/| /' conftest.$ac_ext >&5
9702
9703 ac_header_compiler=no
9704fi
9705
9706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9707{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9708echo "${ECHO_T}$ac_header_compiler" >&6; }
9709
9710# Is the header present?
9711{ echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
9712echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6; }
9713cat >conftest.$ac_ext <<_ACEOF
9714/* confdefs.h. */
9715_ACEOF
9716cat confdefs.h >>conftest.$ac_ext
9717cat >>conftest.$ac_ext <<_ACEOF
9718/* end confdefs.h. */
9719#include <uuid/uuid.h>
9720_ACEOF
9721if { (ac_try="$ac_cpp conftest.$ac_ext"
9722case "(($ac_try" in
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9725esac
9726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9728 ac_status=$?
9729 grep -v '^ *+' conftest.er1 >conftest.err
9730 rm -f conftest.er1
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } >/dev/null && {
9734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9735 test ! -s conftest.err
9736 }; then
9737 ac_header_preproc=yes
9738else
9739 echo "$as_me: failed program was:" >&5
9740sed 's/^/| /' conftest.$ac_ext >&5
9741
9742 ac_header_preproc=no
9743fi
9744
9745rm -f conftest.err conftest.$ac_ext
9746{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9747echo "${ECHO_T}$ac_header_preproc" >&6; }
9748
9749# So? What about this header?
9750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9751 yes:no: )
9752 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
9753echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9754 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
9755echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
9756 ac_header_preproc=yes
9757 ;;
9758 no:yes:* )
9759 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
9760echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
9761 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
9762echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
9763 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
9764echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
9765 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
9766echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
9767 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
9768echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
9769 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
9770echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
9771
9772 ;;
9773esac
9774{ echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
9775echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; }
9776if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9778else
9779 ac_cv_header_uuid_uuid_h=$ac_header_preproc
9780fi
9781{ echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
9782echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; }
9783
9784fi
9785if test $ac_cv_header_uuid_uuid_h = yes; then
Benny Prijono4e48b512007-05-16 13:41:00 +00009786 ac_has_uuid_h=1
9787fi
9788
9789
Sauw Mingbe3771a2010-08-27 06:46:29 +00009790{ echo "$as_me:$LINENO: checking for net/if.h" >&5
9791echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; }
9792if test "${ac_cv_header_net_if_h+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9794else
9795 cat >conftest.$ac_ext <<_ACEOF
9796/* confdefs.h. */
9797_ACEOF
9798cat confdefs.h >>conftest.$ac_ext
9799cat >>conftest.$ac_ext <<_ACEOF
9800/* end confdefs.h. */
9801#if PJ_HAS_SYS_TYPES_H
Benny Prijonod5233702010-01-13 13:09:45 +00009802 # include <sys/types.h>
9803 #endif
9804 #if PJ_HAS_SYS_SOCKET_H
9805
Benny Prijono188ba7e2008-03-25 13:53:16 +00009806 # include <sys/socket.h>
9807 #endif
9808
Sauw Mingbe3771a2010-08-27 06:46:29 +00009809
9810#include <net/if.h>
9811_ACEOF
9812rm -f conftest.$ac_objext
9813if { (ac_try="$ac_compile"
9814case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9817esac
9818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_compile") 2>conftest.er1
9820 ac_status=$?
9821 grep -v '^ *+' conftest.er1 >conftest.err
9822 rm -f conftest.er1
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } && {
9826 test -z "$ac_c_werror_flag" ||
9827 test ! -s conftest.err
9828 } && test -s conftest.$ac_objext; then
9829 ac_cv_header_net_if_h=yes
9830else
9831 echo "$as_me: failed program was:" >&5
9832sed 's/^/| /' conftest.$ac_ext >&5
9833
9834 ac_cv_header_net_if_h=no
9835fi
9836
9837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9838fi
9839{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
9840echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; }
9841if test $ac_cv_header_net_if_h = yes; then
9842 cat >>confdefs.h <<\_ACEOF
9843#define PJ_HAS_NET_IF_H 1
9844_ACEOF
Benny Prijono188ba7e2008-03-25 13:53:16 +00009845
9846fi
9847
Benny Prijono188ba7e2008-03-25 13:53:16 +00009848
Sauw Mingbe3771a2010-08-27 06:46:29 +00009849{ echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5
9850echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009851cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009852#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009853_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009854
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009855
Sauw Mingbe3771a2010-08-27 06:46:29 +00009856{ echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
9857echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
9858cat >>confdefs.h <<\_ACEOF
9859#define PJ_HAS_ERRNO_VAR 1
9860_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009861
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009862
Sauw Mingbe3771a2010-08-27 06:46:29 +00009863{ echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
9864echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
9865cat >>confdefs.h <<\_ACEOF
9866#define PJ_HAS_HIGH_RES_TIMER 1
9867_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00009868
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009869
Sauw Mingbe3771a2010-08-27 06:46:29 +00009870{ echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5
9871echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6; }
9872cat >>confdefs.h <<\_ACEOF
9873#define PJ_HAS_MALLOC 1
9874_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009875
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009876
Sauw Mingbe3771a2010-08-27 06:46:29 +00009877{ echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
9878echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
9879cat >>confdefs.h <<\_ACEOF
9880#define PJ_NATIVE_STRING_IS_UNICODE 0
9881_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009882
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009883
Sauw Mingbe3771a2010-08-27 06:46:29 +00009884{ echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
9885echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
9886cat >>confdefs.h <<\_ACEOF
9887#define PJ_ATOMIC_VALUE_TYPE long
9888_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009889
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009890
Sauw Mingbe3771a2010-08-27 06:46:29 +00009891{ echo "$as_me:$LINENO: checking if inet_aton() is available" >&5
9892echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6; }
9893cat >conftest.$ac_ext <<_ACEOF
9894/* confdefs.h. */
9895_ACEOF
9896cat confdefs.h >>conftest.$ac_ext
9897cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00009898/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009899#include <sys/types.h>
9900 #include <sys/socket.h>
9901 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009902int
9903main ()
9904{
9905inet_aton(0, 0);
9906 ;
9907 return 0;
9908}
9909_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00009910rm -f conftest.$ac_objext
9911if { (ac_try="$ac_compile"
9912case "(($ac_try" in
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9915esac
9916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917 (eval "$ac_compile") 2>conftest.er1
9918 ac_status=$?
9919 grep -v '^ *+' conftest.er1 >conftest.err
9920 rm -f conftest.er1
9921 cat conftest.err >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } && {
9924 test -z "$ac_c_werror_flag" ||
9925 test ! -s conftest.err
9926 } && test -s conftest.$ac_objext; then
9927 cat >>confdefs.h <<\_ACEOF
9928#define PJ_SOCK_HAS_INET_ATON 1
9929_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009930
Sauw Mingbe3771a2010-08-27 06:46:29 +00009931 { echo "$as_me:$LINENO: result: yes" >&5
9932echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009933else
Sauw Mingbe3771a2010-08-27 06:46:29 +00009934 echo "$as_me: failed program was:" >&5
9935sed 's/^/| /' conftest.$ac_ext >&5
9936
9937 { echo "$as_me:$LINENO: result: no" >&5
9938echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009939fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00009940
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9942
Sauw Mingbe3771a2010-08-27 06:46:29 +00009943{ echo "$as_me:$LINENO: checking if inet_pton() is available" >&5
9944echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6; }
9945cat >conftest.$ac_ext <<_ACEOF
9946/* confdefs.h. */
9947_ACEOF
9948cat confdefs.h >>conftest.$ac_ext
9949cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009950/* end confdefs.h. */
9951#include <sys/types.h>
9952 #include <sys/socket.h>
9953 #include <arpa/inet.h>
9954int
9955main ()
9956{
9957inet_pton(0, 0, 0);
9958 ;
9959 return 0;
9960}
9961_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00009962rm -f conftest.$ac_objext
9963if { (ac_try="$ac_compile"
9964case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9967esac
9968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_compile") 2>conftest.er1
9970 ac_status=$?
9971 grep -v '^ *+' conftest.er1 >conftest.err
9972 rm -f conftest.er1
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } && {
9976 test -z "$ac_c_werror_flag" ||
9977 test ! -s conftest.err
9978 } && test -s conftest.$ac_objext; then
9979 cat >>confdefs.h <<\_ACEOF
9980#define PJ_SOCK_HAS_INET_PTON 1
9981_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009982
Sauw Mingbe3771a2010-08-27 06:46:29 +00009983 { echo "$as_me:$LINENO: result: yes" >&5
9984echo "${ECHO_T}yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009985else
Sauw Mingbe3771a2010-08-27 06:46:29 +00009986 echo "$as_me: failed program was:" >&5
9987sed 's/^/| /' conftest.$ac_ext >&5
9988
9989 { echo "$as_me:$LINENO: result: no" >&5
9990echo "${ECHO_T}no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00009991fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00009992
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00009993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9994
Sauw Mingbe3771a2010-08-27 06:46:29 +00009995{ echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5
9996echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6; }
9997cat >conftest.$ac_ext <<_ACEOF
9998/* confdefs.h. */
9999_ACEOF
10000cat confdefs.h >>conftest.$ac_ext
10001cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010002/* end confdefs.h. */
10003#include <sys/types.h>
10004 #include <sys/socket.h>
10005 #include <arpa/inet.h>
10006int
10007main ()
10008{
10009inet_ntop(0, 0, 0, 0);
10010 ;
10011 return 0;
10012}
10013_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000010014rm -f conftest.$ac_objext
10015if { (ac_try="$ac_compile"
10016case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10019esac
10020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021 (eval "$ac_compile") 2>conftest.er1
10022 ac_status=$?
10023 grep -v '^ *+' conftest.er1 >conftest.err
10024 rm -f conftest.er1
10025 cat conftest.err >&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } && {
10028 test -z "$ac_c_werror_flag" ||
10029 test ! -s conftest.err
10030 } && test -s conftest.$ac_objext; then
10031 cat >>confdefs.h <<\_ACEOF
10032#define PJ_SOCK_HAS_INET_NTOP 1
10033_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010034
Sauw Mingbe3771a2010-08-27 06:46:29 +000010035 { echo "$as_me:$LINENO: result: yes" >&5
10036echo "${ECHO_T}yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010037else
Sauw Mingbe3771a2010-08-27 06:46:29 +000010038 echo "$as_me: failed program was:" >&5
10039sed 's/^/| /' conftest.$ac_ext >&5
10040
10041 { echo "$as_me:$LINENO: result: no" >&5
10042echo "${ECHO_T}no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010043fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000010044
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10046
Sauw Mingbe3771a2010-08-27 06:46:29 +000010047{ echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5
10048echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6; }
10049cat >conftest.$ac_ext <<_ACEOF
10050/* confdefs.h. */
10051_ACEOF
10052cat confdefs.h >>conftest.$ac_ext
10053cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010054/* end confdefs.h. */
10055#include <sys/types.h>
10056 #include <sys/socket.h>
10057 #include <netdb.h>
10058int
10059main ()
10060{
10061getaddrinfo(0, 0, 0, 0);
10062 ;
10063 return 0;
10064}
10065_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000010066rm -f conftest.$ac_objext
10067if { (ac_try="$ac_compile"
10068case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10071esac
10072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_compile") 2>conftest.er1
10074 ac_status=$?
10075 grep -v '^ *+' conftest.er1 >conftest.err
10076 rm -f conftest.er1
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } && {
10080 test -z "$ac_c_werror_flag" ||
10081 test ! -s conftest.err
10082 } && test -s conftest.$ac_objext; then
10083 cat >>confdefs.h <<\_ACEOF
10084#define PJ_SOCK_HAS_GETADDRINFO 1
10085_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010086
Sauw Mingbe3771a2010-08-27 06:46:29 +000010087 { echo "$as_me:$LINENO: result: yes" >&5
10088echo "${ECHO_T}yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010089else
Sauw Mingbe3771a2010-08-27 06:46:29 +000010090 echo "$as_me: failed program was:" >&5
10091sed 's/^/| /' conftest.$ac_ext >&5
10092
10093 { echo "$as_me:$LINENO: result: no" >&5
10094echo "${ECHO_T}no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010095fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000010096
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10098
Sauw Mingbe3771a2010-08-27 06:46:29 +000010099{ echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
10100echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6; }
10101cat >conftest.$ac_ext <<_ACEOF
10102/* confdefs.h. */
10103_ACEOF
10104cat confdefs.h >>conftest.$ac_ext
10105cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010106/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +000010107#include <sys/types.h>
10108 #include <sys/socket.h>
10109 #include <netinet/in.h>
10110 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010111int
10112main ()
10113{
10114struct sockaddr_in a; a.sin_len=0;
10115 ;
10116 return 0;
10117}
10118_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000010119rm -f conftest.$ac_objext
10120if { (ac_try="$ac_compile"
10121case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10124esac
10125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_compile") 2>conftest.er1
10127 ac_status=$?
10128 grep -v '^ *+' conftest.er1 >conftest.err
10129 rm -f conftest.er1
10130 cat conftest.err >&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); } && {
10133 test -z "$ac_c_werror_flag" ||
10134 test ! -s conftest.err
10135 } && test -s conftest.$ac_objext; then
10136 cat >>confdefs.h <<\_ACEOF
10137#define PJ_SOCKADDR_HAS_LEN 1
10138_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010139
Sauw Mingbe3771a2010-08-27 06:46:29 +000010140 { echo "$as_me:$LINENO: result: yes" >&5
10141echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010142else
Sauw Mingbe3771a2010-08-27 06:46:29 +000010143 echo "$as_me: failed program was:" >&5
10144sed 's/^/| /' conftest.$ac_ext >&5
10145
10146 { echo "$as_me:$LINENO: result: no" >&5
10147echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010148fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000010149
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10151
Sauw Mingbe3771a2010-08-27 06:46:29 +000010152{ echo "$as_me:$LINENO: checking if socklen_t is available" >&5
10153echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6; }
10154cat >conftest.$ac_ext <<_ACEOF
10155/* confdefs.h. */
10156_ACEOF
10157cat confdefs.h >>conftest.$ac_ext
10158cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010159/* end confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +000010160#include <sys/types.h>
10161 #include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +000010162int
10163main ()
10164{
10165socklen_t xxx = 0;
10166 ;
10167 return 0;
10168}
10169_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000010170rm -f conftest.$ac_objext
10171if { (ac_try="$ac_compile"
10172case "(($ac_try" in
10173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174 *) ac_try_echo=$ac_try;;
10175esac
10176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177 (eval "$ac_compile") 2>conftest.er1
10178 ac_status=$?
10179 grep -v '^ *+' conftest.er1 >conftest.err
10180 rm -f conftest.er1
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } && {
10184 test -z "$ac_c_werror_flag" ||
10185 test ! -s conftest.err
10186 } && test -s conftest.$ac_objext; then
10187 cat >>confdefs.h <<\_ACEOF
10188#define PJ_HAS_SOCKLEN_T 1
10189_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +000010190
Sauw Mingbe3771a2010-08-27 06:46:29 +000010191 { echo "$as_me:$LINENO: result: yes" >&5
10192echo "${ECHO_T}yes" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +000010193else
Sauw Mingbe3771a2010-08-27 06:46:29 +000010194 echo "$as_me: failed program was:" >&5
10195sed 's/^/| /' conftest.$ac_ext >&5
10196
10197 { echo "$as_me:$LINENO: result: no" >&5
10198echo "${ECHO_T}no" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +000010199fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000010200
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10202
Sauw Mingbe3771a2010-08-27 06:46:29 +000010203{ echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
10204echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010205case $target in
10206 *mingw* | *cygw* | *win32* | *w32* )
Sauw Mingbe3771a2010-08-27 06:46:29 +000010207 cat >>confdefs.h <<\_ACEOF
10208#define PJ_HAS_SO_ERROR 1
10209_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010210
Sauw Mingbe3771a2010-08-27 06:46:29 +000010211 { echo "$as_me:$LINENO: result: yes" >&5
10212echo "${ECHO_T}yes" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010213 ;;
10214 *)
Sauw Mingbe3771a2010-08-27 06:46:29 +000010215 cat >conftest.$ac_ext <<_ACEOF
10216/* confdefs.h. */
10217_ACEOF
10218cat confdefs.h >>conftest.$ac_ext
10219cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010220/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +000010221#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010222 #include <sys/socket.h>
10223 #include <netinet/in.h>
10224 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010225int
10226main ()
10227{
10228int i=SO_ERROR;
10229 ;
10230 return 0;
10231}
10232_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000010233rm -f conftest.$ac_objext
10234if { (ac_try="$ac_compile"
10235case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10238esac
10239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_compile") 2>conftest.er1
10241 ac_status=$?
10242 grep -v '^ *+' conftest.er1 >conftest.err
10243 rm -f conftest.er1
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } && {
10247 test -z "$ac_c_werror_flag" ||
10248 test ! -s conftest.err
10249 } && test -s conftest.$ac_objext; then
10250 cat >>confdefs.h <<\_ACEOF
10251#define PJ_HAS_SO_ERROR 1
10252_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010253
Sauw Mingbe3771a2010-08-27 06:46:29 +000010254 { echo "$as_me:$LINENO: result: yes" >&5
10255echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010256else
Sauw Mingbe3771a2010-08-27 06:46:29 +000010257 echo "$as_me: failed program was:" >&5
10258sed 's/^/| /' conftest.$ac_ext >&5
10259
10260 { echo "$as_me:$LINENO: result: no" >&5
10261echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010262fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000010263
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010265 ;;
10266esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010267
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010268
Sauw Mingbe3771a2010-08-27 06:46:29 +000010269{ echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
10270echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6; }
10271cat >conftest.$ac_ext <<_ACEOF
10272/* confdefs.h. */
10273_ACEOF
10274cat confdefs.h >>conftest.$ac_ext
10275cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010276/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010277#include <pthread.h>
10278int
10279main ()
10280{
10281pthread_rwlock_t *x;
10282 ;
10283 return 0;
10284}
10285_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000010286rm -f conftest.$ac_objext
10287if { (ac_try="$ac_compile"
10288case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10291esac
10292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10293 (eval "$ac_compile") 2>conftest.er1
10294 ac_status=$?
10295 grep -v '^ *+' conftest.er1 >conftest.err
10296 rm -f conftest.er1
10297 cat conftest.err >&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); } && {
10300 test -z "$ac_c_werror_flag" ||
10301 test ! -s conftest.err
10302 } && test -s conftest.$ac_objext; then
10303 cat >>confdefs.h <<\_ACEOF
10304#define PJ_EMULATE_RWMUTEX 0
10305_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010306
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010307 ac_rwmutex="yes"
Sauw Mingbe3771a2010-08-27 06:46:29 +000010308 { echo "$as_me:$LINENO: result: yes" >&5
10309echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010310else
Sauw Mingbe3771a2010-08-27 06:46:29 +000010311 echo "$as_me: failed program was:" >&5
10312sed 's/^/| /' conftest.$ac_ext >&5
10313
10314 cat >>confdefs.h <<\_ACEOF
10315#define PJ_EMULATE_RWMUTEX 1
10316_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010317
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010318 ac_rwmutex="no"
Sauw Mingbe3771a2010-08-27 06:46:29 +000010319 { echo "$as_me:$LINENO: result: no" >&5
10320echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010321fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000010322
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010324
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010325if test "$ac_rwmutex" = "no"; then
Sauw Mingbe3771a2010-08-27 06:46:29 +000010326 { echo "$as_me:$LINENO: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
10327echo $ECHO_N "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... $ECHO_C" >&6; }
10328 cat >conftest.$ac_ext <<_ACEOF
10329/* confdefs.h. */
10330_ACEOF
10331cat confdefs.h >>conftest.$ac_ext
10332cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010333/* end confdefs.h. */
10334#define _POSIX_READER_WRITER_LOCKS
10335 #include <pthread.h>
10336int
10337main ()
10338{
10339pthread_rwlock_t *x;
10340 ;
10341 return 0;
10342}
10343_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000010344rm -f conftest.$ac_objext
10345if { (ac_try="$ac_compile"
10346case "(($ac_try" in
10347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10348 *) ac_try_echo=$ac_try;;
10349esac
10350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10351 (eval "$ac_compile") 2>conftest.er1
10352 ac_status=$?
10353 grep -v '^ *+' conftest.er1 >conftest.err
10354 rm -f conftest.er1
10355 cat conftest.err >&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } && {
10358 test -z "$ac_c_werror_flag" ||
10359 test ! -s conftest.err
10360 } && test -s conftest.$ac_objext; then
10361 cat >>confdefs.h <<\_ACEOF
10362#define PJ_EMULATE_RWMUTEX 0
10363_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010364
10365 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Sauw Mingbe3771a2010-08-27 06:46:29 +000010366 { echo "$as_me:$LINENO: result: yes" >&5
10367echo "${ECHO_T}yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010368else
Sauw Mingbe3771a2010-08-27 06:46:29 +000010369 echo "$as_me: failed program was:" >&5
10370sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010371
Sauw Mingbe3771a2010-08-27 06:46:29 +000010372 cat >>confdefs.h <<\_ACEOF
10373#define PJ_EMULATE_RWMUTEX 1
10374_ACEOF
10375
10376 { echo "$as_me:$LINENO: result: no" >&5
10377echo "${ECHO_T}no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010378fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000010379
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10381fi
10382
Sauw Mingbe3771a2010-08-27 06:46:29 +000010383{ echo "$as_me:$LINENO: checking if pthread_mutexattr_settype() is available" >&5
10384echo $ECHO_N "checking if pthread_mutexattr_settype() is available... $ECHO_C" >&6; }
10385cat >conftest.$ac_ext <<_ACEOF
10386/* confdefs.h. */
10387_ACEOF
10388cat confdefs.h >>conftest.$ac_ext
10389cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010390/* end confdefs.h. */
10391#include <pthread.h>
10392int
10393main ()
10394{
10395pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
10396 ;
10397 return 0;
10398}
10399_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000010400rm -f conftest.$ac_objext
10401if { (ac_try="$ac_compile"
10402case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10405esac
10406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407 (eval "$ac_compile") 2>conftest.er1
10408 ac_status=$?
10409 grep -v '^ *+' conftest.er1 >conftest.err
10410 rm -f conftest.er1
10411 cat conftest.err >&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } && {
10414 test -z "$ac_c_werror_flag" ||
10415 test ! -s conftest.err
10416 } && test -s conftest.$ac_objext; then
10417 cat >>confdefs.h <<\_ACEOF
10418#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1
10419_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010420
Sauw Mingbe3771a2010-08-27 06:46:29 +000010421 { echo "$as_me:$LINENO: result: yes" >&5
10422echo "${ECHO_T}yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010423else
Sauw Mingbe3771a2010-08-27 06:46:29 +000010424 echo "$as_me: failed program was:" >&5
10425sed 's/^/| /' conftest.$ac_ext >&5
10426
10427 { echo "$as_me:$LINENO: result: no" >&5
10428echo "${ECHO_T}no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010429fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000010430
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10432
Sauw Mingbe3771a2010-08-27 06:46:29 +000010433{ echo "$as_me:$LINENO: checking if pthread_mutexattr_t has recursive member" >&5
10434echo $ECHO_N "checking if pthread_mutexattr_t has recursive member... $ECHO_C" >&6; }
10435cat >conftest.$ac_ext <<_ACEOF
10436/* confdefs.h. */
10437_ACEOF
10438cat confdefs.h >>conftest.$ac_ext
10439cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010440/* end confdefs.h. */
10441#include <pthread.h>
10442int
10443main ()
10444{
10445pthread_mutexattr_t attr;
10446 attr.recursive=1;
10447 ;
10448 return 0;
10449}
10450_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000010451rm -f conftest.$ac_objext
10452if { (ac_try="$ac_compile"
10453case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10456esac
10457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_compile") 2>conftest.er1
10459 ac_status=$?
10460 grep -v '^ *+' conftest.er1 >conftest.err
10461 rm -f conftest.er1
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } && {
10465 test -z "$ac_c_werror_flag" ||
10466 test ! -s conftest.err
10467 } && test -s conftest.$ac_objext; then
10468 cat >>confdefs.h <<\_ACEOF
10469#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1
10470_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010471
Sauw Mingbe3771a2010-08-27 06:46:29 +000010472 { echo "$as_me:$LINENO: result: yes" >&5
10473echo "${ECHO_T}yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010474else
Sauw Mingbe3771a2010-08-27 06:46:29 +000010475 echo "$as_me: failed program was:" >&5
10476sed 's/^/| /' conftest.$ac_ext >&5
10477
10478 { echo "$as_me:$LINENO: result: no" >&5
10479echo "${ECHO_T}no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010480fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000010481
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +000010483
Benny Prijono99eec382008-09-18 21:22:16 +000010484
Sauw Mingbe3771a2010-08-27 06:46:29 +000010485{ echo "$as_me:$LINENO: checking ioqueue backend" >&5
10486echo $ECHO_N "checking ioqueue backend... $ECHO_C" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010487# Check whether --enable-epoll was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000010488if test "${enable_epoll+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010489 enableval=$enable_epoll;
Benny Prijono99eec382008-09-18 21:22:16 +000010490 ac_os_objs=ioqueue_epoll.o
Sauw Mingbe3771a2010-08-27 06:46:29 +000010491 { echo "$as_me:$LINENO: result: /dev/epoll" >&5
10492echo "${ECHO_T}/dev/epoll" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +000010493
10494else
10495
10496 ac_os_objs=ioqueue_select.o
Sauw Mingbe3771a2010-08-27 06:46:29 +000010497 { echo "$as_me:$LINENO: result: select()" >&5
10498echo "${ECHO_T}select()" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +000010499
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010500fi
10501
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010502
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010503
10504case $target in
10505 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono99eec382008-09-18 21:22:16 +000010506 ac_os_objs="$ac_os_objs file_access_win32.o file_io_win32.o os_core_win32.o os_error_win32.o os_time_win32.o os_timestamp_win32.o guid_win32.o"
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010507 ;;
10508 *)
Benny Prijono99eec382008-09-18 21:22:16 +000010509 ac_os_objs="$ac_os_objs file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o"
Benny Prijono4e48b512007-05-16 13:41:00 +000010510 # UUID
10511 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
10512 ac_os_objs="$ac_os_objs guid_uuid.o"
10513 else
10514 ac_os_objs="$ac_os_objs guid_simple.o"
10515 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010516 ;;
10517esac
10518
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010519
10520
10521
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010522ac_external_speex=0
10523
10524
10525# Check whether --with-external-speex was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000010526if test "${with_external_speex+set}" = set; then
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010527 withval=$with_external_speex;
10528 if test "x$with_external_speex" != "xno"; then
10529 # Test Speex installation
Sauw Mingbe3771a2010-08-27 06:46:29 +000010530 { echo "$as_me:$LINENO: checking if external Speex devkit is installed" >&5
10531echo $ECHO_N "checking if external Speex devkit is installed... $ECHO_C" >&6; }
10532 cat >conftest.$ac_ext <<_ACEOF
10533/* confdefs.h. */
10534_ACEOF
10535cat confdefs.h >>conftest.$ac_ext
10536cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010537/* end confdefs.h. */
10538#include <speex/speex.h>
10539 #include <speex/speex_echo.h>
10540
10541int
10542main ()
10543{
10544speex_echo_state_init(0, 0); speex_encoder_init(0);
10545 ;
10546 return 0;
10547}
10548_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000010549rm -f conftest.$ac_objext
10550if { (ac_try="$ac_compile"
10551case "(($ac_try" in
10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10554esac
10555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10556 (eval "$ac_compile") 2>conftest.er1
10557 ac_status=$?
10558 grep -v '^ *+' conftest.er1 >conftest.err
10559 rm -f conftest.er1
10560 cat conftest.err >&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } && {
10563 test -z "$ac_c_werror_flag" ||
10564 test ! -s conftest.err
10565 } && test -s conftest.$ac_objext; then
10566 { echo "$as_me:$LINENO: result: yes!!" >&5
10567echo "${ECHO_T}yes!!" >&6; }
10568 cat >>confdefs.h <<\_ACEOF
10569#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1
10570_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010571
10572 ac_external_speex="1"
10573
10574else
Sauw Mingbe3771a2010-08-27 06:46:29 +000010575 echo "$as_me: failed program was:" >&5
10576sed 's/^/| /' conftest.$ac_ext >&5
10577
10578 { { echo "$as_me:$LINENO: error: Unable to use external Speex library. If Speex development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&5
10579echo "$as_me: error: Unable to use external Speex library. If Speex development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&2;}
10580 { (exit 1); exit 1; }; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010581fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000010582
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10584 fi
10585
10586
10587fi
10588
10589
10590ac_external_gsm=0
10591
10592
10593# Check whether --with-external-gsm was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000010594if test "${with_external_gsm+set}" = set; then
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010595 withval=$with_external_gsm;
10596 if test "x$with_external_gsm" != "xno"; then
Benny Prijonod4306432010-05-01 22:05:41 +000010597 # Test GSM library installation
Sauw Mingbe3771a2010-08-27 06:46:29 +000010598 { echo "$as_me:$LINENO: checking if external GSM devkit is installed as gsm/gsm.h" >&5
10599echo $ECHO_N "checking if external GSM devkit is installed as gsm/gsm.h... $ECHO_C" >&6; }
10600 cat >conftest.$ac_ext <<_ACEOF
10601/* confdefs.h. */
10602_ACEOF
10603cat confdefs.h >>conftest.$ac_ext
10604cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010605/* end confdefs.h. */
10606#include <gsm/gsm.h>
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010607int
10608main ()
10609{
10610gsm_create();
10611 ;
10612 return 0;
10613}
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010614_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000010615rm -f conftest.$ac_objext
10616if { (ac_try="$ac_compile"
10617case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10620esac
10621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_compile") 2>conftest.er1
10623 ac_status=$?
10624 grep -v '^ *+' conftest.er1 >conftest.err
10625 rm -f conftest.er1
10626 cat conftest.err >&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } && {
10629 test -z "$ac_c_werror_flag" ||
10630 test ! -s conftest.err
10631 } && test -s conftest.$ac_objext; then
10632 { echo "$as_me:$LINENO: result: yes!!" >&5
10633echo "${ECHO_T}yes!!" >&6; }
10634 cat >>confdefs.h <<\_ACEOF
10635#define PJMEDIA_EXTERNAL_GSM_CODEC 1
10636_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010637
Sauw Mingbe3771a2010-08-27 06:46:29 +000010638 cat >>confdefs.h <<\_ACEOF
10639#define PJMEDIA_EXTERNAL_GSM_GSM_H 1
10640_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +000010641
10642 ac_external_gsm="1"
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010643
10644else
Sauw Mingbe3771a2010-08-27 06:46:29 +000010645 echo "$as_me: failed program was:" >&5
10646sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijono46bd0842010-02-12 14:12:41 +000010647
Sauw Mingbe3771a2010-08-27 06:46:29 +000010648
10649 { echo "$as_me:$LINENO: result: no" >&5
10650echo "${ECHO_T}no" >&6; }
10651 { echo "$as_me:$LINENO: checking if external GSM devkit is installed as gsm.h" >&5
10652echo $ECHO_N "checking if external GSM devkit is installed as gsm.h... $ECHO_C" >&6; }
10653 cat >conftest.$ac_ext <<_ACEOF
10654/* confdefs.h. */
10655_ACEOF
10656cat confdefs.h >>conftest.$ac_ext
10657cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +000010658/* end confdefs.h. */
10659#include <gsm.h>
10660int
10661main ()
10662{
10663gsm_create();
10664 ;
10665 return 0;
10666}
10667_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000010668rm -f conftest.$ac_objext
10669if { (ac_try="$ac_compile"
10670case "(($ac_try" in
10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 *) ac_try_echo=$ac_try;;
10673esac
10674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675 (eval "$ac_compile") 2>conftest.er1
10676 ac_status=$?
10677 grep -v '^ *+' conftest.er1 >conftest.err
10678 rm -f conftest.er1
10679 cat conftest.err >&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); } && {
10682 test -z "$ac_c_werror_flag" ||
10683 test ! -s conftest.err
10684 } && test -s conftest.$ac_objext; then
10685 { echo "$as_me:$LINENO: result: yes!!" >&5
10686echo "${ECHO_T}yes!!" >&6; }
10687 cat >>confdefs.h <<\_ACEOF
10688#define PJMEDIA_EXTERNAL_GSM_CODEC 1
10689_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +000010690
Sauw Mingbe3771a2010-08-27 06:46:29 +000010691 cat >>confdefs.h <<\_ACEOF
10692#define PJMEDIA_EXTERNAL_GSM_H 1
10693_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +000010694
10695 ac_external_gsm="1"
10696
10697else
Sauw Mingbe3771a2010-08-27 06:46:29 +000010698 echo "$as_me: failed program was:" >&5
10699sed 's/^/| /' conftest.$ac_ext >&5
10700
10701 { { echo "$as_me:$LINENO: error: Unable to use external GSM library. If GSM development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&5
10702echo "$as_me: error: Unable to use external GSM library. If GSM development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&2;}
10703 { (exit 1); exit 1; }; }
Benny Prijonod4306432010-05-01 22:05:41 +000010704
10705
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010706fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000010707
Benny Prijonod4306432010-05-01 22:05:41 +000010708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono46bd0842010-02-12 14:12:41 +000010709
Benny Prijonod4306432010-05-01 22:05:41 +000010710
10711fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000010712
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10714 fi
10715
10716
10717fi
10718
10719
10720
10721
Benny Prijono4e48b512007-05-16 13:41:00 +000010722
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010723# Check whether --enable-sound was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000010724if test "${enable_sound+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010725 enableval=$enable_sound; if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +000010726 ac_pjmedia_snd=null
Sauw Mingbe3771a2010-08-27 06:46:29 +000010727 { echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5
10728echo "${ECHO_T}Checking if sound is disabled... yes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +000010729 fi
10730
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010731fi
10732
Benny Prijono1d971622006-09-10 22:27:40 +000010733
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010734ac_external_pa=0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010735
Benny Prijono27c98722007-04-09 21:28:15 +000010736
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010737# Check whether --with-external-pa was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000010738if test "${with_external_pa+set}" = set; then
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010739 withval=$with_external_pa;
10740 if test "x$with_external_pa" != "xno"; then
10741 # Test PortAudio installation
Sauw Mingbe3771a2010-08-27 06:46:29 +000010742 { echo "$as_me:$LINENO: checking if external PortAudio devkit is installed" >&5
10743echo $ECHO_N "checking if external PortAudio devkit is installed... $ECHO_C" >&6; }
10744 cat >conftest.$ac_ext <<_ACEOF
10745/* confdefs.h. */
10746_ACEOF
10747cat confdefs.h >>conftest.$ac_ext
10748cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010749/* end confdefs.h. */
10750#include <portaudio.h>
10751
10752int
10753main ()
10754{
10755Pa_Initialize();
10756 ;
10757 return 0;
10758}
10759_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000010760rm -f conftest.$ac_objext
10761if { (ac_try="$ac_compile"
10762case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10765esac
10766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_compile") 2>conftest.er1
10768 ac_status=$?
10769 grep -v '^ *+' conftest.er1 >conftest.err
10770 rm -f conftest.er1
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } && {
10774 test -z "$ac_c_werror_flag" ||
10775 test ! -s conftest.err
10776 } && test -s conftest.$ac_objext; then
10777 { echo "$as_me:$LINENO: result: yes!!" >&5
10778echo "${ECHO_T}yes!!" >&6; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010779 ac_external_pa="1"
10780
10781else
Sauw Mingbe3771a2010-08-27 06:46:29 +000010782 echo "$as_me: failed program was:" >&5
10783sed 's/^/| /' conftest.$ac_ext >&5
10784
10785 { { echo "$as_me:$LINENO: error: Unable to use PortAudio. If PortAudio development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&5
10786echo "$as_me: error: Unable to use PortAudio. If PortAudio development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" >&2;}
10787 { (exit 1); exit 1; }; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010788fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000010789
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonofe0c1272010-01-13 16:28:15 +000010791 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010792
Benny Prijono27c98722007-04-09 21:28:15 +000010793
10794fi
Benny Prijonofe0c1272010-01-13 16:28:15 +000010795
10796
10797
Sauw Mingbe3771a2010-08-27 06:46:29 +000010798if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
10799 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
10800echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
10801if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10803fi
10804{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
10805echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
10806else
10807 # Is the header compilable?
10808{ echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
10809echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
10810cat >conftest.$ac_ext <<_ACEOF
10811/* confdefs.h. */
10812_ACEOF
10813cat confdefs.h >>conftest.$ac_ext
10814cat >>conftest.$ac_ext <<_ACEOF
10815/* end confdefs.h. */
10816$ac_includes_default
10817#include <sys/soundcard.h>
10818_ACEOF
10819rm -f conftest.$ac_objext
10820if { (ac_try="$ac_compile"
10821case "(($ac_try" in
10822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823 *) ac_try_echo=$ac_try;;
10824esac
10825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826 (eval "$ac_compile") 2>conftest.er1
10827 ac_status=$?
10828 grep -v '^ *+' conftest.er1 >conftest.err
10829 rm -f conftest.er1
10830 cat conftest.err >&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } && {
10833 test -z "$ac_c_werror_flag" ||
10834 test ! -s conftest.err
10835 } && test -s conftest.$ac_objext; then
10836 ac_header_compiler=yes
10837else
10838 echo "$as_me: failed program was:" >&5
10839sed 's/^/| /' conftest.$ac_ext >&5
10840
10841 ac_header_compiler=no
10842fi
10843
10844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10845{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10846echo "${ECHO_T}$ac_header_compiler" >&6; }
10847
10848# Is the header present?
10849{ echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
10850echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
10851cat >conftest.$ac_ext <<_ACEOF
10852/* confdefs.h. */
10853_ACEOF
10854cat confdefs.h >>conftest.$ac_ext
10855cat >>conftest.$ac_ext <<_ACEOF
10856/* end confdefs.h. */
10857#include <sys/soundcard.h>
10858_ACEOF
10859if { (ac_try="$ac_cpp conftest.$ac_ext"
10860case "(($ac_try" in
10861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10862 *) ac_try_echo=$ac_try;;
10863esac
10864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10866 ac_status=$?
10867 grep -v '^ *+' conftest.er1 >conftest.err
10868 rm -f conftest.er1
10869 cat conftest.err >&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } >/dev/null && {
10872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10873 test ! -s conftest.err
10874 }; then
10875 ac_header_preproc=yes
10876else
10877 echo "$as_me: failed program was:" >&5
10878sed 's/^/| /' conftest.$ac_ext >&5
10879
10880 ac_header_preproc=no
10881fi
10882
10883rm -f conftest.err conftest.$ac_ext
10884{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10885echo "${ECHO_T}$ac_header_preproc" >&6; }
10886
10887# So? What about this header?
10888case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10889 yes:no: )
10890 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
10891echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10892 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
10893echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
10894 ac_header_preproc=yes
10895 ;;
10896 no:yes:* )
10897 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
10898echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
10899 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
10900echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
10901 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
10902echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
10903 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
10904echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
10905 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
10906echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
10907 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
10908echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
10909
10910 ;;
10911esac
10912{ echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
10913echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
10914if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
10916else
10917 ac_cv_header_sys_soundcard_h=$ac_header_preproc
10918fi
10919{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
10920echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
10921
10922fi
10923if test $ac_cv_header_sys_soundcard_h = yes; then
Benny Prijono27c98722007-04-09 21:28:15 +000010924 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
10925fi
10926
10927
Sauw Mingbe3771a2010-08-27 06:46:29 +000010928if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
10929 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
10930echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
10931if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10933fi
10934{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
10935echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
10936else
10937 # Is the header compilable?
10938{ echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
10939echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
10940cat >conftest.$ac_ext <<_ACEOF
10941/* confdefs.h. */
10942_ACEOF
10943cat confdefs.h >>conftest.$ac_ext
10944cat >>conftest.$ac_ext <<_ACEOF
10945/* end confdefs.h. */
10946$ac_includes_default
10947#include <linux/soundcard.h>
10948_ACEOF
10949rm -f conftest.$ac_objext
10950if { (ac_try="$ac_compile"
10951case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10954esac
10955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_compile") 2>conftest.er1
10957 ac_status=$?
10958 grep -v '^ *+' conftest.er1 >conftest.err
10959 rm -f conftest.er1
10960 cat conftest.err >&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } && {
10963 test -z "$ac_c_werror_flag" ||
10964 test ! -s conftest.err
10965 } && test -s conftest.$ac_objext; then
10966 ac_header_compiler=yes
10967else
10968 echo "$as_me: failed program was:" >&5
10969sed 's/^/| /' conftest.$ac_ext >&5
10970
10971 ac_header_compiler=no
10972fi
10973
10974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10975{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10976echo "${ECHO_T}$ac_header_compiler" >&6; }
10977
10978# Is the header present?
10979{ echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
10980echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
10981cat >conftest.$ac_ext <<_ACEOF
10982/* confdefs.h. */
10983_ACEOF
10984cat confdefs.h >>conftest.$ac_ext
10985cat >>conftest.$ac_ext <<_ACEOF
10986/* end confdefs.h. */
10987#include <linux/soundcard.h>
10988_ACEOF
10989if { (ac_try="$ac_cpp conftest.$ac_ext"
10990case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10993esac
10994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10996 ac_status=$?
10997 grep -v '^ *+' conftest.er1 >conftest.err
10998 rm -f conftest.er1
10999 cat conftest.err >&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } >/dev/null && {
11002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11003 test ! -s conftest.err
11004 }; then
11005 ac_header_preproc=yes
11006else
11007 echo "$as_me: failed program was:" >&5
11008sed 's/^/| /' conftest.$ac_ext >&5
11009
11010 ac_header_preproc=no
11011fi
11012
11013rm -f conftest.err conftest.$ac_ext
11014{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11015echo "${ECHO_T}$ac_header_preproc" >&6; }
11016
11017# So? What about this header?
11018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11019 yes:no: )
11020 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
11021echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11022 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
11023echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
11024 ac_header_preproc=yes
11025 ;;
11026 no:yes:* )
11027 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
11028echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
11029 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
11030echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
11031 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
11032echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
11033 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
11034echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
11035 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
11036echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
11038echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
11039
11040 ;;
11041esac
11042{ echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
11043echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
11044if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11046else
11047 ac_cv_header_linux_soundcard_h=$ac_header_preproc
11048fi
11049{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
11050echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
11051
11052fi
11053if test $ac_cv_header_linux_soundcard_h = yes; then
Benny Prijono27c98722007-04-09 21:28:15 +000011054 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
11055fi
11056
11057
Sauw Mingbe3771a2010-08-27 06:46:29 +000011058if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
11059 { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
11060echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; }
11061if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11063fi
11064{ echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
11065echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; }
11066else
11067 # Is the header compilable?
11068{ echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5
11069echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6; }
11070cat >conftest.$ac_ext <<_ACEOF
11071/* confdefs.h. */
11072_ACEOF
11073cat confdefs.h >>conftest.$ac_ext
11074cat >>conftest.$ac_ext <<_ACEOF
11075/* end confdefs.h. */
11076$ac_includes_default
11077#include <machine/soundcard.h>
11078_ACEOF
11079rm -f conftest.$ac_objext
11080if { (ac_try="$ac_compile"
11081case "(($ac_try" in
11082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083 *) ac_try_echo=$ac_try;;
11084esac
11085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11086 (eval "$ac_compile") 2>conftest.er1
11087 ac_status=$?
11088 grep -v '^ *+' conftest.er1 >conftest.err
11089 rm -f conftest.er1
11090 cat conftest.err >&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); } && {
11093 test -z "$ac_c_werror_flag" ||
11094 test ! -s conftest.err
11095 } && test -s conftest.$ac_objext; then
11096 ac_header_compiler=yes
11097else
11098 echo "$as_me: failed program was:" >&5
11099sed 's/^/| /' conftest.$ac_ext >&5
11100
11101 ac_header_compiler=no
11102fi
11103
11104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11105{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11106echo "${ECHO_T}$ac_header_compiler" >&6; }
11107
11108# Is the header present?
11109{ echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5
11110echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6; }
11111cat >conftest.$ac_ext <<_ACEOF
11112/* confdefs.h. */
11113_ACEOF
11114cat confdefs.h >>conftest.$ac_ext
11115cat >>conftest.$ac_ext <<_ACEOF
11116/* end confdefs.h. */
11117#include <machine/soundcard.h>
11118_ACEOF
11119if { (ac_try="$ac_cpp conftest.$ac_ext"
11120case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11123esac
11124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11126 ac_status=$?
11127 grep -v '^ *+' conftest.er1 >conftest.err
11128 rm -f conftest.er1
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } >/dev/null && {
11132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11133 test ! -s conftest.err
11134 }; then
11135 ac_header_preproc=yes
11136else
11137 echo "$as_me: failed program was:" >&5
11138sed 's/^/| /' conftest.$ac_ext >&5
11139
11140 ac_header_preproc=no
11141fi
11142
11143rm -f conftest.err conftest.$ac_ext
11144{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11145echo "${ECHO_T}$ac_header_preproc" >&6; }
11146
11147# So? What about this header?
11148case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11149 yes:no: )
11150 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
11151echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11152 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5
11153echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;}
11154 ac_header_preproc=yes
11155 ;;
11156 no:yes:* )
11157 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5
11158echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;}
11159 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5
11160echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;}
11161 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5
11162echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;}
11163 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
11164echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
11165 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5
11166echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;}
11167 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5
11168echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;}
11169
11170 ;;
11171esac
11172{ echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
11173echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; }
11174if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11176else
11177 ac_cv_header_machine_soundcard_h=$ac_header_preproc
11178fi
11179{ echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
11180echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; }
11181
11182fi
11183if test $ac_cv_header_machine_soundcard_h = yes; then
Benny Prijono27c98722007-04-09 21:28:15 +000011184 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
11185fi
11186
11187
11188
Benny Prijono3e091672008-01-09 15:43:02 +000011189if test "x$ac_cv_c_bigendian" = "xyes"; then
11190 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
11191else
11192 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
11193fi
11194
Benny Prijono1d971622006-09-10 22:27:40 +000011195if test "$enable_sound" = "no"; then
11196 true;
11197else
11198 case $target in
Benny Prijono8ec5eae2010-05-12 10:59:20 +000011199 arm-apple-darwin*)
Sauw Mingbe3771a2010-08-27 06:46:29 +000011200 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork"
11201 { echo "$as_me:$LINENO: result: Checking sound device backend... AudioUnit" >&5
11202echo "${ECHO_T}Checking sound device backend... AudioUnit" >&6; }
Benny Prijono8ec5eae2010-05-12 10:59:20 +000011203 ;;
Benny Prijonob466e232006-09-10 08:53:59 +000011204 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +000011205 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
11206 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +000011207 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +000011208 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
11209 ac_pjmedia_snd=pa_old_darwinos
Sauw Mingbe3771a2010-08-27 06:46:29 +000011210 { echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
11211echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +000011212 else
11213 ac_pjmedia_snd=pa_darwinos
Sauw Mingbe3771a2010-08-27 06:46:29 +000011214 { echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
11215echo "${ECHO_T}Checking sound device backend... coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +000011216 fi
Benny Prijonob466e232006-09-10 08:53:59 +000011217 ;;
11218 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011219 ac_pjmedia_snd=pa_win32
Sauw Mingbe3771a2010-08-27 06:46:29 +000011220 { echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
11221echo "${ECHO_T}Checking sound device backend... win32 sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011222 ;;
11223 *rtems*)
11224 ac_pjmedia_snd=null
Sauw Mingbe3771a2010-08-27 06:46:29 +000011225 { echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
11226echo "${ECHO_T}Checking sound device backend... null sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011227 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011228 *)
Benny Prijono0b462322008-03-12 22:44:24 +000011229 ac_pjmedia_snd=pa_unix
Sauw Mingbe3771a2010-08-27 06:46:29 +000011230 if test "${ac_cv_header_alsa_version_h+set}" = set; then
11231 { echo "$as_me:$LINENO: checking for alsa/version.h" >&5
11232echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; }
11233if test "${ac_cv_header_alsa_version_h+set}" = set; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11235fi
11236{ echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
11237echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; }
11238else
11239 # Is the header compilable?
11240{ echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
11241echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6; }
11242cat >conftest.$ac_ext <<_ACEOF
11243/* confdefs.h. */
11244_ACEOF
11245cat confdefs.h >>conftest.$ac_ext
11246cat >>conftest.$ac_ext <<_ACEOF
11247/* end confdefs.h. */
11248$ac_includes_default
11249#include <alsa/version.h>
11250_ACEOF
11251rm -f conftest.$ac_objext
11252if { (ac_try="$ac_compile"
11253case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11256esac
11257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_compile") 2>conftest.er1
11259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } && {
11265 test -z "$ac_c_werror_flag" ||
11266 test ! -s conftest.err
11267 } && test -s conftest.$ac_objext; then
11268 ac_header_compiler=yes
11269else
11270 echo "$as_me: failed program was:" >&5
11271sed 's/^/| /' conftest.$ac_ext >&5
11272
11273 ac_header_compiler=no
11274fi
11275
11276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11277{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11278echo "${ECHO_T}$ac_header_compiler" >&6; }
11279
11280# Is the header present?
11281{ echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
11282echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6; }
11283cat >conftest.$ac_ext <<_ACEOF
11284/* confdefs.h. */
11285_ACEOF
11286cat confdefs.h >>conftest.$ac_ext
11287cat >>conftest.$ac_ext <<_ACEOF
11288/* end confdefs.h. */
11289#include <alsa/version.h>
11290_ACEOF
11291if { (ac_try="$ac_cpp conftest.$ac_ext"
11292case "(($ac_try" in
11293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11295esac
11296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } >/dev/null && {
11304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11305 test ! -s conftest.err
11306 }; then
11307 ac_header_preproc=yes
11308else
11309 echo "$as_me: failed program was:" >&5
11310sed 's/^/| /' conftest.$ac_ext >&5
11311
11312 ac_header_preproc=no
11313fi
11314
11315rm -f conftest.err conftest.$ac_ext
11316{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11317echo "${ECHO_T}$ac_header_preproc" >&6; }
11318
11319# So? What about this header?
11320case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11321 yes:no: )
11322 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
11323echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11324 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
11325echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
11326 ac_header_preproc=yes
11327 ;;
11328 no:yes:* )
11329 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
11330echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
11331 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
11332echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
11333 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
11334echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
11335 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
11336echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
11337 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
11338echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
11340echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
11341
11342 ;;
11343esac
11344{ echo "$as_me:$LINENO: checking for alsa/version.h" >&5
11345echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; }
11346if test "${ac_cv_header_alsa_version_h+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11348else
11349 ac_cv_header_alsa_version_h=$ac_header_preproc
11350fi
11351{ echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
11352echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; }
11353
11354fi
11355if test $ac_cv_header_alsa_version_h = yes; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011356 ac_pa_use_alsa=1
11357
11358 LIBS="$LIBS -lasound"
11359
11360else
11361 ac_pa_use_alsa=0
11362
11363fi
11364
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011365
Sauw Mingbe3771a2010-08-27 06:46:29 +000011366 { echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
11367echo "${ECHO_T}Checking sound device backend... unix" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +000011368
11369 ac_pa_use_oss=1
11370
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011371 # Check whether --enable-oss was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000011372if test "${enable_oss+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011373 enableval=$enable_oss;
Benny Prijono0b462322008-03-12 22:44:24 +000011374 if test "$enable_oss" = "no"; then
11375 ac_pa_use_oss=0
Sauw Mingbe3771a2010-08-27 06:46:29 +000011376 { echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&5
11377echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +000011378 fi
11379
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011380fi
11381
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011382 ;;
Benny Prijono1d971622006-09-10 22:27:40 +000011383 esac
11384fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011385
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011386# Check whether --enable-ext_sound was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000011387if test "${enable_ext_sound+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011388 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
Benny Prijonoebb2c332008-07-28 23:40:58 +000011389 ac_pjmedia_snd=external
Sauw Mingbe3771a2010-08-27 06:46:29 +000011390 { echo "$as_me:$LINENO: result: Checking if external sound is set... yes" >&5
11391echo "${ECHO_T}Checking if external sound is set... yes" >&6; }
Benny Prijonoebb2c332008-07-28 23:40:58 +000011392 fi
11393
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011394fi
Benny Prijonoebb2c332008-07-28 23:40:58 +000011395
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011396
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011397
11398# Check whether --enable-small-filter was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000011399if test "${enable_small_filter+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011400 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011401 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Sauw Mingbe3771a2010-08-27 06:46:29 +000011402 { echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
11403echo "${ECHO_T}Checking if small filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011404 fi
11405else
Sauw Mingbe3771a2010-08-27 06:46:29 +000011406 { echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
11407echo "${ECHO_T}Checking if small filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011408fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011409
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011410
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011411
11412# Check whether --enable-large-filter was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000011413if test "${enable_large_filter+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011414 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011415 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Sauw Mingbe3771a2010-08-27 06:46:29 +000011416 { echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
11417echo "${ECHO_T}Checking if large filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011418 fi
11419else
Sauw Mingbe3771a2010-08-27 06:46:29 +000011420 { echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
11421echo "${ECHO_T}Checking if large filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011422fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011423
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011424
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011425
11426# Check whether --enable-speex-aec was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000011427if test "${enable_speex_aec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011428 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011429 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Sauw Mingbe3771a2010-08-27 06:46:29 +000011430 { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
11431echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011432 fi
11433else
Sauw Mingbe3771a2010-08-27 06:46:29 +000011434 { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
11435echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011436fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011437
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011438
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011439
11440# Check whether --enable-g711-codec was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000011441if test "${enable_g711_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011442 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011443 ac_no_g711_codec=1
Sauw Mingbe3771a2010-08-27 06:46:29 +000011444 cat >>confdefs.h <<\_ACEOF
11445#define PJMEDIA_HAS_G711_CODEC 0
11446_ACEOF
Benny Prijono06d1d0e2007-01-27 18:09:28 +000011447
Sauw Mingbe3771a2010-08-27 06:46:29 +000011448 { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
11449echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011450 fi
11451else
Sauw Mingbe3771a2010-08-27 06:46:29 +000011452 { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
11453echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011454fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011455
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011456
11457
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011458
11459# Check whether --enable-l16-codec was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000011460if test "${enable_l16_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011461 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011462 ac_no_l16_codec=1
Sauw Mingbe3771a2010-08-27 06:46:29 +000011463 cat >>confdefs.h <<\_ACEOF
11464#define PJMEDIA_HAS_L16_CODEC 0
11465_ACEOF
Benny Prijono06d1d0e2007-01-27 18:09:28 +000011466
Sauw Mingbe3771a2010-08-27 06:46:29 +000011467 { echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
11468echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011469 fi
11470else
Sauw Mingbe3771a2010-08-27 06:46:29 +000011471 { echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
11472echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011473fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011474
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011475
11476
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011477
11478# Check whether --enable-gsm-codec was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000011479if test "${enable_gsm_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011480 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011481 ac_no_gsm_codec=1
Sauw Mingbe3771a2010-08-27 06:46:29 +000011482 cat >>confdefs.h <<\_ACEOF
11483#define PJMEDIA_HAS_GSM_CODEC 0
11484_ACEOF
Benny Prijono06d1d0e2007-01-27 18:09:28 +000011485
Sauw Mingbe3771a2010-08-27 06:46:29 +000011486 { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
11487echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011488 fi
11489else
Sauw Mingbe3771a2010-08-27 06:46:29 +000011490 { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
11491echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011492fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011493
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011494
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011495
11496# Check whether --enable-g722-codec was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000011497if test "${enable_g722_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011498 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
Benny Prijono71f657d2008-03-17 14:24:21 +000011499 ac_no_g722_codec=1
Sauw Mingbe3771a2010-08-27 06:46:29 +000011500 cat >>confdefs.h <<\_ACEOF
11501#define PJMEDIA_HAS_G722_CODEC 0
11502_ACEOF
Benny Prijono71f657d2008-03-17 14:24:21 +000011503
Sauw Mingbe3771a2010-08-27 06:46:29 +000011504 { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...yes" >&5
11505echo "${ECHO_T}Checking if G.722 codec is disabled...yes" >&6; }
Benny Prijono71f657d2008-03-17 14:24:21 +000011506 fi
11507else
Sauw Mingbe3771a2010-08-27 06:46:29 +000011508 { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...no" >&5
11509echo "${ECHO_T}Checking if G.722 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011510fi
Benny Prijono71f657d2008-03-17 14:24:21 +000011511
11512
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011513
11514# Check whether --enable-g7221-codec was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000011515if test "${enable_g7221_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011516 enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
11517 ac_no_g7221_codec=1
Sauw Mingbe3771a2010-08-27 06:46:29 +000011518 cat >>confdefs.h <<\_ACEOF
11519#define PJMEDIA_HAS_G7221_CODEC 0
11520_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011521
Sauw Mingbe3771a2010-08-27 06:46:29 +000011522 { echo "$as_me:$LINENO: result: Checking if G.722.1 codec is disabled...yes" >&5
11523echo "${ECHO_T}Checking if G.722.1 codec is disabled...yes" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011524 fi
11525else
Sauw Mingbe3771a2010-08-27 06:46:29 +000011526 { echo "$as_me:$LINENO: result: Checking if G.722.1 codec is disabled...no" >&5
11527echo "${ECHO_T}Checking if G.722.1 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011528fi
11529
11530
11531
11532# Check whether --enable-speex-codec was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000011533if test "${enable_speex_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011534 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011535 ac_no_speex_codec=1
Sauw Mingbe3771a2010-08-27 06:46:29 +000011536 cat >>confdefs.h <<\_ACEOF
11537#define PJMEDIA_HAS_SPEEX_CODEC 0
11538_ACEOF
Benny Prijono06d1d0e2007-01-27 18:09:28 +000011539
Sauw Mingbe3771a2010-08-27 06:46:29 +000011540 { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
11541echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011542 fi
11543else
Sauw Mingbe3771a2010-08-27 06:46:29 +000011544 { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
11545echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011546fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011547
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011548
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011549
11550# Check whether --enable-ilbc-codec was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000011551if test "${enable_ilbc_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011552 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011553 ac_no_ilbc_codec=1
Sauw Mingbe3771a2010-08-27 06:46:29 +000011554 cat >>confdefs.h <<\_ACEOF
11555#define PJMEDIA_HAS_ILBC_CODEC 0
11556_ACEOF
Benny Prijono06d1d0e2007-01-27 18:09:28 +000011557
Sauw Mingbe3771a2010-08-27 06:46:29 +000011558 { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
11559echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011560 fi
11561else
Sauw Mingbe3771a2010-08-27 06:46:29 +000011562 { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
11563echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011564fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011565
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011566
11567# Check whether --enable-libsamplerate was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000011568if test "${enable_libsamplerate+set}" = set; then
11569 enableval=$enable_libsamplerate;
11570{ echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5
11571echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6; }
11572if test "${ac_cv_lib_samplerate_src_new+set}" = set; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono550a1a62007-10-16 08:54:00 +000011574else
11575 ac_check_lib_save_LIBS=$LIBS
11576LIBS="-lsamplerate $LIBS"
Sauw Mingbe3771a2010-08-27 06:46:29 +000011577cat >conftest.$ac_ext <<_ACEOF
11578/* confdefs.h. */
11579_ACEOF
11580cat confdefs.h >>conftest.$ac_ext
11581cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono550a1a62007-10-16 08:54:00 +000011582/* end confdefs.h. */
11583
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011584/* Override any GCC internal prototype to avoid an error.
11585 Use char because int might match the return type of a GCC
11586 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +000011587#ifdef __cplusplus
11588extern "C"
11589#endif
Benny Prijono550a1a62007-10-16 08:54:00 +000011590char src_new ();
11591int
11592main ()
11593{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011594return src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +000011595 ;
11596 return 0;
11597}
11598_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000011599rm -f conftest.$ac_objext conftest$ac_exeext
11600if { (ac_try="$ac_link"
11601case "(($ac_try" in
11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603 *) ac_try_echo=$ac_try;;
11604esac
11605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11606 (eval "$ac_link") 2>conftest.er1
11607 ac_status=$?
11608 grep -v '^ *+' conftest.er1 >conftest.err
11609 rm -f conftest.er1
11610 cat conftest.err >&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } && {
11613 test -z "$ac_c_werror_flag" ||
11614 test ! -s conftest.err
11615 } && test -s conftest$ac_exeext &&
11616 $as_test_x conftest$ac_exeext; then
Benny Prijono550a1a62007-10-16 08:54:00 +000011617 ac_cv_lib_samplerate_src_new=yes
11618else
Sauw Mingbe3771a2010-08-27 06:46:29 +000011619 echo "$as_me: failed program was:" >&5
11620sed 's/^/| /' conftest.$ac_ext >&5
11621
11622 ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +000011623fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000011624
11625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11626 conftest$ac_exeext conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +000011627LIBS=$ac_check_lib_save_LIBS
11628fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000011629{ echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5
11630echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6; }
11631if test $ac_cv_lib_samplerate_src_new = yes; then
Benny Prijono550a1a62007-10-16 08:54:00 +000011632 cat >>confdefs.h <<_ACEOF
11633#define HAVE_LIBSAMPLERATE 1
11634_ACEOF
11635
11636 LIBS="-lsamplerate $LIBS"
11637
11638fi
11639
11640else
Sauw Mingbe3771a2010-08-27 06:46:29 +000011641 { echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5
11642echo "${ECHO_T}Skipping libsamplerate detection" >&6; }
Benny Prijono550a1a62007-10-16 08:54:00 +000011643
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011644fi
Benny Prijono0822c192008-08-21 20:59:58 +000011645
11646
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011647
11648# Check whether --enable-ipp was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000011649if test "${enable_ipp+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011650 enableval=$enable_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +000011651else
11652 enable_ipp=no
11653
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011654fi
Benny Prijono0822c192008-08-21 20:59:58 +000011655
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011656
Benny Prijono3965f192010-02-10 18:46:05 +000011657
11658# Check whether --with-ipp was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000011659if test "${with_ipp+set}" = set; then
Benny Prijono3965f192010-02-10 18:46:05 +000011660 withval=$with_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +000011661else
11662 with_ipp=no
11663
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011664fi
Benny Prijono0822c192008-08-21 20:59:58 +000011665
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011666
Benny Prijono3965f192010-02-10 18:46:05 +000011667
11668# Check whether --with-ipp-samples was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000011669if test "${with_ipp_samples+set}" = set; then
Benny Prijono3965f192010-02-10 18:46:05 +000011670 withval=$with_ipp_samples;
Benny Prijono0822c192008-08-21 20:59:58 +000011671else
11672 with_ipp_samples=no
11673
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011674fi
11675
Benny Prijono0822c192008-08-21 20:59:58 +000011676
Benny Prijono3965f192010-02-10 18:46:05 +000011677
11678# Check whether --with-ipp-arch was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000011679if test "${with_ipp_arch+set}" = set; then
Benny Prijono3965f192010-02-10 18:46:05 +000011680 withval=$with_ipp_arch;
11681else
11682 with_ipp_arch=no
11683
11684fi
11685
11686
Benny Prijono0822c192008-08-21 20:59:58 +000011687if test "x$enable_ipp" != "xno"; then
Sauw Mingbe3771a2010-08-27 06:46:29 +000011688 { echo "$as_me:$LINENO: checking Intel IPP location" >&5
11689echo $ECHO_N "checking Intel IPP location... $ECHO_C" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000011690
11691 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
Sauw Mingbe3771a2010-08-27 06:46:29 +000011692 { echo "$as_me:$LINENO: result: $with_ipp" >&5
11693echo "${ECHO_T}$with_ipp" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000011694 IPPROOT=$with_ipp
11695 elif test "x$IPPROOT" = "x"; then
11696 if test -d /opt/intel/ipp; then
11697 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
Sauw Mingbe3771a2010-08-27 06:46:29 +000011698 { echo "$as_me:$LINENO: result: autodetected in $IPPROOT" >&5
11699echo "${ECHO_T}autodetected in $IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000011700 fi
11701 else
Sauw Mingbe3771a2010-08-27 06:46:29 +000011702 { echo "$as_me:$LINENO: result: $IPPROOT" >&5
11703echo "${ECHO_T}$IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000011704 fi
11705
Benny Prijono3965f192010-02-10 18:46:05 +000011706 if test "x$with_ipp_arch" != "xno"; then
Benny Prijono896be292010-08-17 12:16:46 +000011707 IPP_SUFFIX=$with_ipp_arch
Sauw Mingbe3771a2010-08-27 06:46:29 +000011708 { echo "$as_me:$LINENO: result: IPP arch suffix is set to $IPP_SUFFIX" >&5
11709echo "${ECHO_T}IPP arch suffix is set to $IPP_SUFFIX" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +000011710 else
11711 IPP_SUFFIX=""
Sauw Mingbe3771a2010-08-27 06:46:29 +000011712 { echo "$as_me:$LINENO: result: IPP arch suffix is set to empty" >&5
11713echo "${ECHO_T}IPP arch suffix is set to empty" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +000011714 fi
11715
Benny Prijono0822c192008-08-21 20:59:58 +000011716 if test x$IPPROOT = x; then
Sauw Mingbe3771a2010-08-27 06:46:29 +000011717 { { echo "$as_me:$LINENO: error: the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" >&5
11718echo "$as_me: error: the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" >&2;}
11719 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000011720 elif test ! -d $IPPROOT; then
Sauw Mingbe3771a2010-08-27 06:46:29 +000011721 { { echo "$as_me:$LINENO: error: not found" >&5
11722echo "$as_me: error: not found" >&2;}
11723 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000011724 elif test ! -d $IPPROOT/include; then
Sauw Mingbe3771a2010-08-27 06:46:29 +000011725 { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5
11726echo "$as_me: error: directory doesn't seem to be valid" >&2;}
11727 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000011728 else
11729 # IPP directory looks okay.
11730 # Remove trailing backslash
Benny Prijono3965f192010-02-10 18:46:05 +000011731 IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
Benny Prijono0822c192008-08-21 20:59:58 +000011732
11733 SAVED_CFLAGS="$CFLAGS"
11734 SAVED_LDFLAGS="$LDFLAGS"
11735 SAVED_LIBS="$LIBS"
11736
11737 IPP_CFLAGS="-I$IPPROOT/include"
Benny Prijono46bd0842010-02-12 14:12:41 +000011738 IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippsr${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
11739
11740 # Some differences between Mac OS X and Linux
11741 case $target in
11742 *darwin* )
11743 IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
11744 ;;
11745 *)
11746 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
11747 IPP_LIBS="$IPP_LIBS -lguide"
11748 ;;
11749 esac
11750
Benny Prijono0822c192008-08-21 20:59:58 +000011751 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
Benny Prijono46bd0842010-02-12 14:12:41 +000011752 #Static:
Benny Prijono0822c192008-08-21 20:59:58 +000011753 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
11754
11755 CFLAGS="$CFLAGS $IPP_CFLAGS"
11756 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
11757 LIBS="$IPP_LIBS $LIBS"
11758
11759
Sauw Mingbe3771a2010-08-27 06:46:29 +000011760 { echo "$as_me:$LINENO: checking Intel IPP usability" >&5
11761echo $ECHO_N "checking Intel IPP usability... $ECHO_C" >&6; }
11762 cat >conftest.$ac_ext <<_ACEOF
11763/* confdefs.h. */
11764_ACEOF
11765cat confdefs.h >>conftest.$ac_ext
11766cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +000011767/* end confdefs.h. */
11768#include <ippcore.h>
11769
11770int
11771main ()
11772{
11773ippStaticInit();
11774 ;
11775 return 0;
11776}
11777_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000011778rm -f conftest.$ac_objext conftest$ac_exeext
11779if { (ac_try="$ac_link"
11780case "(($ac_try" in
11781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782 *) ac_try_echo=$ac_try;;
11783esac
11784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785 (eval "$ac_link") 2>conftest.er1
11786 ac_status=$?
11787 grep -v '^ *+' conftest.er1 >conftest.err
11788 rm -f conftest.er1
11789 cat conftest.err >&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } && {
11792 test -z "$ac_c_werror_flag" ||
11793 test ! -s conftest.err
11794 } && test -s conftest$ac_exeext &&
11795 $as_test_x conftest$ac_exeext; then
11796 { echo "$as_me:$LINENO: result: ok" >&5
11797echo "${ECHO_T}ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000011798else
Sauw Mingbe3771a2010-08-27 06:46:29 +000011799 echo "$as_me: failed program was:" >&5
11800sed 's/^/| /' conftest.$ac_ext >&5
11801
11802 { { echo "$as_me:$LINENO: error: Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly
11803See \`config.log' for more details." >&5
11804echo "$as_me: error: Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly
11805See \`config.log' for more details." >&2;}
11806 { (exit run with --help for more info); exit run with --help for more info; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000011807fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000011808
11809rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11810 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +000011811
11812 CFLAGS="$SAVED_CFLAGS"
11813 LDFLAGS="$SAVED_LDFLAGS"
11814 LIBS="$SAVED_LIBS"
11815 fi
11816
Sauw Mingbe3771a2010-08-27 06:46:29 +000011817 { echo "$as_me:$LINENO: checking Intel IPP samples location" >&5
11818echo $ECHO_N "checking Intel IPP samples location... $ECHO_C" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000011819
11820 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
Sauw Mingbe3771a2010-08-27 06:46:29 +000011821 { echo "$as_me:$LINENO: result: $with_ipp_samples" >&5
11822echo "${ECHO_T}$with_ipp_samples" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000011823 IPPSAMPLES=$with_ipp_samples
11824 elif test "x$IPPSAMPLES" = "x"; then
11825 if test -d /opt/intel/ipp-samples; then
11826 IPPSAMPLES=/opt/intel/ipp-samples
Sauw Mingbe3771a2010-08-27 06:46:29 +000011827 { echo "$as_me:$LINENO: result: autodetected in $IPPSAMPLES" >&5
11828echo "${ECHO_T}autodetected in $IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000011829 fi
11830 else
Sauw Mingbe3771a2010-08-27 06:46:29 +000011831 { echo "$as_me:$LINENO: result: $IPPSAMPLES" >&5
11832echo "${ECHO_T}$IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000011833 fi
11834
11835 if test x$IPPSAMPLES = x; then
Sauw Mingbe3771a2010-08-27 06:46:29 +000011836 { { echo "$as_me:$LINENO: error: the location is neither specified nor can be guessed. Please specify with IPPSAMPLES env var or with --with-ipp-samples option" >&5
11837echo "$as_me: error: the location is neither specified nor can be guessed. Please specify with IPPSAMPLES env var or with --with-ipp-samples option" >&2;}
11838 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000011839 elif test ! -d $IPPSAMPLES; then
Sauw Mingbe3771a2010-08-27 06:46:29 +000011840 { { echo "$as_me:$LINENO: error: not found" >&5
11841echo "$as_me: error: not found" >&2;}
11842 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000011843 elif test ! -d $IPPSAMPLES/speech-codecs; then
Sauw Mingbe3771a2010-08-27 06:46:29 +000011844 { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5
11845echo "$as_me: error: directory doesn't seem to be valid" >&2;}
11846 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000011847 else
11848 # Remove trailing backslash
11849 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
11850
Benny Prijono3965f192010-02-10 18:46:05 +000011851 # Guess the libusc.a/libspeech.a build location
Sauw Mingbe3771a2010-08-27 06:46:29 +000011852 { echo "$as_me:$LINENO: checking Intel IPP USC build location" >&5
11853echo $ECHO_N "checking Intel IPP USC build location... $ECHO_C" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +000011854 if test -d $IPPSAMPLES/speech-codecs/bin; then
11855 IPPVER=5
11856 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
11857 elif test -d $IPPSAMPLES/speech-codecs/_bin; then
11858 IPPVER=6
Benny Prijono46bd0842010-02-12 14:12:41 +000011859 if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
11860 # gcc compiler
11861 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
11862 elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
11863 # icc compiler
11864 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
11865 else
Sauw Mingbe3771a2010-08-27 06:46:29 +000011866 { { echo "$as_me:$LINENO: error: Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
11867See \`config.log' for more details." >&5
11868echo "$as_me: error: Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
11869See \`config.log' for more details." >&2;}
11870 { (exit 1); exit 1; }; }
Benny Prijono46bd0842010-02-12 14:12:41 +000011871 fi
Benny Prijono3965f192010-02-10 18:46:05 +000011872 else
Sauw Mingbe3771a2010-08-27 06:46:29 +000011873 { { echo "$as_me:$LINENO: error: unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?
11874See \`config.log' for more details." >&5
11875echo "$as_me: error: unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?
11876See \`config.log' for more details." >&2;}
11877 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000011878 fi
Benny Prijono3965f192010-02-10 18:46:05 +000011879
11880 # Test the directory
11881 if test ! -d $IPPSAMP_DIR; then
Sauw Mingbe3771a2010-08-27 06:46:29 +000011882 { { echo "$as_me:$LINENO: error: There's something wrong with this script, directory $IPPSAMP_DIR does not exist
11883See \`config.log' for more details." >&5
11884echo "$as_me: error: There's something wrong with this script, directory $IPPSAMP_DIR does not exist
11885See \`config.log' for more details." >&2;}
11886 { (exit 1); exit 1; }; }
Benny Prijono3965f192010-02-10 18:46:05 +000011887 exit 1;
11888 fi
11889
11890 if test "x$IPPVER" = "x5"; then
11891 IPPSAMP_LIBS="libusc.a"
11892 IPPSAMP_LDLIBS="-lusc"
11893 elif test "x$IPPVER" = "x6"; then
11894 IPPSAMP_LIBS="libspeech.a"
11895 IPPSAMP_LDLIBS="-lspeech"
11896 else
Sauw Mingbe3771a2010-08-27 06:46:29 +000011897 { { echo "$as_me:$LINENO: error: bug in this script: unsupported IPP version
11898See \`config.log' for more details." >&5
11899echo "$as_me: error: bug in this script: unsupported IPP version
11900See \`config.log' for more details." >&2;}
11901 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000011902 fi
Benny Prijono3965f192010-02-10 18:46:05 +000011903
11904 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
Sauw Mingbe3771a2010-08-27 06:46:29 +000011905 { { echo "$as_me:$LINENO: error: $IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
11906See \`config.log' for more details." >&5
11907echo "$as_me: error: $IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
11908See \`config.log' for more details." >&2;}
11909 { (exit 1); exit 1; }; }
Benny Prijono3965f192010-02-10 18:46:05 +000011910 fi
11911
Sauw Mingbe3771a2010-08-27 06:46:29 +000011912 { echo "$as_me:$LINENO: result: $IPPSAMP_DIR" >&5
11913echo "${ECHO_T}$IPPSAMP_DIR" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000011914
11915 SAVED_CFLAGS="$CFLAGS"
11916 SAVED_LDFLAGS="$LDFLAGS"
11917 SAVED_LIBS="$LIBS"
11918
Benny Prijono3965f192010-02-10 18:46:05 +000011919 IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
11920 CFLAGS="$CFLAGS $IPPSAMP_INC"
11921 LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR"
11922 LIBS="$IPPSAMP_LDLIBS $LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +000011923
Sauw Mingbe3771a2010-08-27 06:46:29 +000011924 { echo "$as_me:$LINENO: checking Intel IPP USC usability" >&5
11925echo $ECHO_N "checking Intel IPP USC usability... $ECHO_C" >&6; }
11926 cat >conftest.$ac_ext <<_ACEOF
11927/* confdefs.h. */
11928_ACEOF
11929cat confdefs.h >>conftest.$ac_ext
11930cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +000011931/* end confdefs.h. */
11932#include <usc.h>
11933
11934int
11935main ()
11936{
11937extern USC_Fxns USC_G729AFP_Fxns;
11938 ;
11939 return 0;
11940}
11941_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000011942rm -f conftest.$ac_objext conftest$ac_exeext
11943if { (ac_try="$ac_link"
11944case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11947esac
11948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_link") 2>conftest.er1
11950 ac_status=$?
11951 grep -v '^ *+' conftest.er1 >conftest.err
11952 rm -f conftest.er1
11953 cat conftest.err >&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } && {
11956 test -z "$ac_c_werror_flag" ||
11957 test ! -s conftest.err
11958 } && test -s conftest$ac_exeext &&
11959 $as_test_x conftest$ac_exeext; then
11960 { echo "$as_me:$LINENO: result: ok" >&5
11961echo "${ECHO_T}ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000011962else
Sauw Mingbe3771a2010-08-27 06:46:29 +000011963 echo "$as_me: failed program was:" >&5
11964sed 's/^/| /' conftest.$ac_ext >&5
11965
11966 { { echo "$as_me:$LINENO: error: failed
11967See \`config.log' for more details." >&5
11968echo "$as_me: error: failed
11969See \`config.log' for more details." >&2;}
11970 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000011971fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000011972
11973rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11974 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +000011975
11976 CFLAGS="$SAVED_CFLAGS"
Benny Prijono3965f192010-02-10 18:46:05 +000011977 LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
11978 LIBS="$IPP_LIBS $SAVED_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +000011979
Benny Prijono3965f192010-02-10 18:46:05 +000011980 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
11981 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
11982 IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +000011983 fi
11984
Benny Prijono3965f192010-02-10 18:46:05 +000011985 CFLAGS="$CFLAGS $IPP_CFLAGS"
11986 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
11987 LIBS="$LIBS $IPP_LIBS"
11988
Benny Prijono0822c192008-08-21 20:59:58 +000011989 ac_build_mak_vars="$ac_build_mak_vars\n\
11990export IPP_CFLAGS=$IPP_CFLAGS\n\
11991export IPP_LDFLAGS=$IPP_LDFLAGS\n\
11992export IPP_LIBS=$IPP_LIBS"
11993else
Sauw Mingbe3771a2010-08-27 06:46:29 +000011994 { echo "$as_me:$LINENO: result: Skipping Intel IPP settings (not wanted)" >&5
11995echo "${ECHO_T}Skipping Intel IPP settings (not wanted)" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000011996fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011997
11998
11999
12000
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012001# Check whether --enable-ssl was given.
Sauw Mingbe3771a2010-08-27 06:46:29 +000012002if test "${enable_ssl+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012003 enableval=$enable_ssl;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012004 if test "$enable_ssl" = "no"; then
12005 ac_no_ssl=1
Sauw Mingbe3771a2010-08-27 06:46:29 +000012006 { echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
12007echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012008 fi
12009
12010else
12011
Sauw Mingbe3771a2010-08-27 06:46:29 +000012012 { echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
12013echo "${ECHO_T}checking for OpenSSL installations.." >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012014
12015
12016
Sauw Mingbe3771a2010-08-27 06:46:29 +000012017 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12018 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12019echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12020if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12022fi
12023{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12024echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12025else
12026 # Is the header compilable?
12027{ echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12028echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
12029cat >conftest.$ac_ext <<_ACEOF
12030/* confdefs.h. */
12031_ACEOF
12032cat confdefs.h >>conftest.$ac_ext
12033cat >>conftest.$ac_ext <<_ACEOF
12034/* end confdefs.h. */
12035$ac_includes_default
12036#include <openssl/ssl.h>
12037_ACEOF
12038rm -f conftest.$ac_objext
12039if { (ac_try="$ac_compile"
12040case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12043esac
12044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_compile") 2>conftest.er1
12046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } && {
12052 test -z "$ac_c_werror_flag" ||
12053 test ! -s conftest.err
12054 } && test -s conftest.$ac_objext; then
12055 ac_header_compiler=yes
12056else
12057 echo "$as_me: failed program was:" >&5
12058sed 's/^/| /' conftest.$ac_ext >&5
12059
12060 ac_header_compiler=no
12061fi
12062
12063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12064{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12065echo "${ECHO_T}$ac_header_compiler" >&6; }
12066
12067# Is the header present?
12068{ echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12069echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
12070cat >conftest.$ac_ext <<_ACEOF
12071/* confdefs.h. */
12072_ACEOF
12073cat confdefs.h >>conftest.$ac_ext
12074cat >>conftest.$ac_ext <<_ACEOF
12075/* end confdefs.h. */
12076#include <openssl/ssl.h>
12077_ACEOF
12078if { (ac_try="$ac_cpp conftest.$ac_ext"
12079case "(($ac_try" in
12080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081 *) ac_try_echo=$ac_try;;
12082esac
12083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12085 ac_status=$?
12086 grep -v '^ *+' conftest.er1 >conftest.err
12087 rm -f conftest.er1
12088 cat conftest.err >&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); } >/dev/null && {
12091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12092 test ! -s conftest.err
12093 }; then
12094 ac_header_preproc=yes
12095else
12096 echo "$as_me: failed program was:" >&5
12097sed 's/^/| /' conftest.$ac_ext >&5
12098
12099 ac_header_preproc=no
12100fi
12101
12102rm -f conftest.err conftest.$ac_ext
12103{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12104echo "${ECHO_T}$ac_header_preproc" >&6; }
12105
12106# So? What about this header?
12107case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12108 yes:no: )
12109 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12110echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12111 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12112echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12113 ac_header_preproc=yes
12114 ;;
12115 no:yes:* )
12116 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12117echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12119echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12120 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12121echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12122 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12123echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12124 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12125echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12126 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12127echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12128
12129 ;;
12130esac
12131{ echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12132echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12133if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12135else
12136 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12137fi
12138{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12139echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12140
12141fi
12142if test $ac_cv_header_openssl_ssl_h = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012143 openssl_h_present=1
12144fi
12145
12146
Sauw Mingbe3771a2010-08-27 06:46:29 +000012147 { echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
12148echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6; }
12149if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012151else
12152 ac_check_lib_save_LIBS=$LIBS
12153LIBS="-lcrypto $LIBS"
Sauw Mingbe3771a2010-08-27 06:46:29 +000012154cat >conftest.$ac_ext <<_ACEOF
12155/* confdefs.h. */
12156_ACEOF
12157cat confdefs.h >>conftest.$ac_ext
12158cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012159/* end confdefs.h. */
12160
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012161/* Override any GCC internal prototype to avoid an error.
12162 Use char because int might match the return type of a GCC
12163 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012164#ifdef __cplusplus
12165extern "C"
12166#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012167char ERR_load_BIO_strings ();
12168int
12169main ()
12170{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012171return ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012172 ;
12173 return 0;
12174}
12175_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000012176rm -f conftest.$ac_objext conftest$ac_exeext
12177if { (ac_try="$ac_link"
12178case "(($ac_try" in
12179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180 *) ac_try_echo=$ac_try;;
12181esac
12182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183 (eval "$ac_link") 2>conftest.er1
12184 ac_status=$?
12185 grep -v '^ *+' conftest.er1 >conftest.err
12186 rm -f conftest.er1
12187 cat conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } && {
12190 test -z "$ac_c_werror_flag" ||
12191 test ! -s conftest.err
12192 } && test -s conftest$ac_exeext &&
12193 $as_test_x conftest$ac_exeext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012194 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
12195else
Sauw Mingbe3771a2010-08-27 06:46:29 +000012196 echo "$as_me: failed program was:" >&5
12197sed 's/^/| /' conftest.$ac_ext >&5
12198
12199 ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012200fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000012201
12202rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12203 conftest$ac_exeext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012204LIBS=$ac_check_lib_save_LIBS
12205fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000012206{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
12207echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
12208if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012209 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
12210fi
12211
Sauw Mingbe3771a2010-08-27 06:46:29 +000012212 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
12213echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
12214if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonod5233702010-01-13 13:09:45 +000012216else
12217 ac_check_lib_save_LIBS=$LIBS
12218LIBS="-lssl $LIBS"
Sauw Mingbe3771a2010-08-27 06:46:29 +000012219cat >conftest.$ac_ext <<_ACEOF
12220/* confdefs.h. */
12221_ACEOF
12222cat confdefs.h >>conftest.$ac_ext
12223cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonod5233702010-01-13 13:09:45 +000012224/* end confdefs.h. */
12225
12226/* Override any GCC internal prototype to avoid an error.
12227 Use char because int might match the return type of a GCC
12228 builtin and then its argument prototype would still apply. */
12229#ifdef __cplusplus
12230extern "C"
12231#endif
12232char SSL_library_init ();
12233int
12234main ()
12235{
12236return SSL_library_init ();
12237 ;
12238 return 0;
12239}
12240_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000012241rm -f conftest.$ac_objext conftest$ac_exeext
12242if { (ac_try="$ac_link"
12243case "(($ac_try" in
12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245 *) ac_try_echo=$ac_try;;
12246esac
12247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248 (eval "$ac_link") 2>conftest.er1
12249 ac_status=$?
12250 grep -v '^ *+' conftest.er1 >conftest.err
12251 rm -f conftest.er1
12252 cat conftest.err >&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } && {
12255 test -z "$ac_c_werror_flag" ||
12256 test ! -s conftest.err
12257 } && test -s conftest$ac_exeext &&
12258 $as_test_x conftest$ac_exeext; then
Benny Prijonod5233702010-01-13 13:09:45 +000012259 ac_cv_lib_ssl_SSL_library_init=yes
12260else
Sauw Mingbe3771a2010-08-27 06:46:29 +000012261 echo "$as_me: failed program was:" >&5
12262sed 's/^/| /' conftest.$ac_ext >&5
12263
12264 ac_cv_lib_ssl_SSL_library_init=no
Benny Prijonod5233702010-01-13 13:09:45 +000012265fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000012266
12267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12268 conftest$ac_exeext conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +000012269LIBS=$ac_check_lib_save_LIBS
12270fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000012271{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
12272echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
12273if test $ac_cv_lib_ssl_SSL_library_init = yes; then
Benny Prijonod5233702010-01-13 13:09:45 +000012274 libssl_present=1 && LIBS="$LIBS -lssl"
12275fi
12276
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012277 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
Sauw Mingbe3771a2010-08-27 06:46:29 +000012278 { echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
12279echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6; }
Nanang Izzuddin9c7616f2009-10-28 06:09:15 +000012280 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
12281 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
Sauw Mingbe3771a2010-08-27 06:46:29 +000012282 cat >>confdefs.h <<\_ACEOF
12283#define PJ_HAS_SSL_SOCK 1
12284_ACEOF
Nanang Izzuddinea6d3c42009-10-26 15:47:52 +000012285
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012286 else
Sauw Mingbe3771a2010-08-27 06:46:29 +000012287 { echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
12288echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012289 fi
12290
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012291fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012292
12293
12294
12295
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012296
Sauw Mingbe3771a2010-08-27 06:46:29 +000012297{ echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
12298echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012299case $target in
Sauw Mingbe3771a2010-08-27 06:46:29 +000012300 *rtems*) cat >>confdefs.h <<\_ACEOF
12301#define PJ_SELECT_NEEDS_NFDS 1
12302_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012303
Sauw Mingbe3771a2010-08-27 06:46:29 +000012304 { echo "$as_me:$LINENO: result: yes" >&5
12305echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012306 ;;
Sauw Mingbe3771a2010-08-27 06:46:29 +000012307 *) cat >>confdefs.h <<\_ACEOF
12308#define PJ_SELECT_NEEDS_NFDS 0
12309_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012310
Sauw Mingbe3771a2010-08-27 06:46:29 +000012311 { echo "$as_me:$LINENO: result: no (default)" >&5
12312echo "${ECHO_T}no (default)" >&6; }
12313 { echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
12314echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012315 ;;
12316esac
12317
Sauw Mingbe3771a2010-08-27 06:46:29 +000012318{ echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
12319echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012320case $target in
Sauw Mingbe3771a2010-08-27 06:46:29 +000012321 *rtems*) cat >>confdefs.h <<\_ACEOF
12322#define PJ_THREAD_SET_STACK_SIZE 1
12323_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012324
Sauw Mingbe3771a2010-08-27 06:46:29 +000012325 { echo "$as_me:$LINENO: result: yes" >&5
12326echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012327 ;;
Sauw Mingbe3771a2010-08-27 06:46:29 +000012328 *) cat >>confdefs.h <<\_ACEOF
12329#define PJ_THREAD_SET_STACK_SIZE 0
12330_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012331
Sauw Mingbe3771a2010-08-27 06:46:29 +000012332 { echo "$as_me:$LINENO: result: no (default)" >&5
12333echo "${ECHO_T}no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012334 ;;
12335esac
12336
Sauw Mingbe3771a2010-08-27 06:46:29 +000012337{ echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
12338echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012339case $target in
Sauw Mingbe3771a2010-08-27 06:46:29 +000012340 *rtems*) cat >>confdefs.h <<\_ACEOF
12341#define PJ_THREAD_ALLOCATE_STACK 1
12342_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012343
Sauw Mingbe3771a2010-08-27 06:46:29 +000012344 { echo "$as_me:$LINENO: result: yes" >&5
12345echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012346 ;;
Sauw Mingbe3771a2010-08-27 06:46:29 +000012347 *) cat >>confdefs.h <<\_ACEOF
12348#define PJ_THREAD_ALLOCATE_STACK 0
12349_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012350
Sauw Mingbe3771a2010-08-27 06:46:29 +000012351 { echo "$as_me:$LINENO: result: no (default)" >&5
12352echo "${ECHO_T}no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012353 ;;
12354esac
12355
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012356case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000012357 *mingw* | *cygw* | *win32* | *w32* )
Sauw Mingbe3771a2010-08-27 06:46:29 +000012358 cat >>confdefs.h <<\_ACEOF
12359#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
12360_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012361
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000012362 ;;
Sauw Mingbe3771a2010-08-27 06:46:29 +000012363 *) cat >>confdefs.h <<\_ACEOF
12364#define PJ_BLOCKING_ERROR_VAL EAGAIN
12365_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000012366
Sauw Mingbe3771a2010-08-27 06:46:29 +000012367 { echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
12368echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012369 ;;
12370esac
12371
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012372case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000012373 *mingw* | *cygw* | *win32* | *w32* )
Sauw Mingbe3771a2010-08-27 06:46:29 +000012374 cat >>confdefs.h <<\_ACEOF
12375#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
12376_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012377
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000012378 ;;
Sauw Mingbe3771a2010-08-27 06:46:29 +000012379 *) cat >>confdefs.h <<\_ACEOF
12380#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
12381_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000012382
Sauw Mingbe3771a2010-08-27 06:46:29 +000012383 { echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
12384echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012385 ;;
12386esac
12387
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012388
12389
12390
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012391if test "$build" = "$host"; then
12392 ac_cross_compile=
12393else
Benny Prijono5b818b22006-09-17 22:58:51 +000012394 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012395fi
12396ac_linux_poll=select
12397
12398ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012399
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012400
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012401case $target in
12402 *rtems*)
12403 ac_main_obj=main_rtems.o
12404 ;;
12405 *)
12406 ac_main_obj=main.o
12407 ;;
12408esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012409
Benny Prijono0822c192008-08-21 20:59:58 +000012410
12411ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012412cat >confcache <<\_ACEOF
12413# This file is a shell script that caches the results of configure
12414# tests run on this system so they can be shared between configure
12415# scripts and configure runs, see configure's option --config-cache.
12416# It is not useful on other systems. If it contains results you don't
12417# want to keep, you may remove or edit it.
12418#
12419# config.status only pays attention to the cache file if you give it
12420# the --recheck option to rerun configure.
12421#
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012422# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012423# loading this file, other *unset* `ac_cv_foo' will be assigned the
12424# following values.
12425
12426_ACEOF
12427
12428# The following way of writing the cache mishandles newlines in values,
12429# but we know of no workaround that is simple, portable, and efficient.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012430# So, we kill variables containing newlines.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012431# Ultrix sh set writes to stderr and can't be redirected directly,
12432# and sets the high bit in the cache file unless we assign to the vars.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012433(
12434 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12435 eval ac_val=\$$ac_var
12436 case $ac_val in #(
12437 *${as_nl}*)
12438 case $ac_var in #(
Sauw Mingbe3771a2010-08-27 06:46:29 +000012439 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12440echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012441 esac
12442 case $ac_var in #(
12443 _ | IFS | as_nl) ;; #(
Sauw Mingbe3771a2010-08-27 06:46:29 +000012444 *) $as_unset $ac_var ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012445 esac ;;
12446 esac
12447 done
12448
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012449 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012450 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12451 *${as_nl}ac_space=\ *)
Sauw Mingbe3771a2010-08-27 06:46:29 +000012452 # `set' does not quote correctly, so add quotes (double-quote
12453 # substitution turns \\\\ into \\, and sed turns \\ into \).
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012454 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012455 "s/'/'\\\\''/g;
12456 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012457 ;; #(
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012458 *)
12459 # `set' quotes correctly as required by POSIX, so do not add quotes.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012460 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012461 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012462 esac |
12463 sort
12464) |
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012465 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012466 /^ac_cv_env_/b end
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012467 t clear
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012468 :clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012469 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12470 t end
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012471 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12472 :end' >>confcache
12473if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12474 if test -w "$cache_file"; then
12475 test "x$cache_file" != "x/dev/null" &&
Sauw Mingbe3771a2010-08-27 06:46:29 +000012476 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12477echo "$as_me: updating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012478 cat confcache >$cache_file
12479 else
Sauw Mingbe3771a2010-08-27 06:46:29 +000012480 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12481echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012482 fi
12483fi
12484rm -f confcache
12485
12486test "x$prefix" = xNONE && prefix=$ac_default_prefix
12487# Let make expand exec_prefix.
12488test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12489
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012490DEFS=-DHAVE_CONFIG_H
12491
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012492ac_libobjs=
12493ac_ltlibobjs=
12494for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12495 # 1. Remove the extension, and $U if already installed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012496 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Sauw Mingbe3771a2010-08-27 06:46:29 +000012497 ac_i=`echo "$ac_i" | sed "$ac_script"`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012498 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12499 # will be set to the directory where LIBOBJS objects are built.
Sauw Mingbe3771a2010-08-27 06:46:29 +000012500 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12501 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012502done
12503LIBOBJS=$ac_libobjs
12504
12505LTLIBOBJS=$ac_ltlibobjs
12506
12507
12508
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012509: ${CONFIG_STATUS=./config.status}
12510ac_clean_files_save=$ac_clean_files
12511ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Sauw Mingbe3771a2010-08-27 06:46:29 +000012512{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12513echo "$as_me: creating $CONFIG_STATUS" >&6;}
12514cat >$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012515#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012516# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012517# Run this file to recreate the current configuration.
12518# Compiler output produced by configure, useful for debugging
12519# configure, is in config.log if it exists.
12520
12521debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012522ac_cs_recheck=false
12523ac_cs_silent=false
Benny Prijonod4306432010-05-01 22:05:41 +000012524SHELL=\${CONFIG_SHELL-$SHELL}
Sauw Mingbe3771a2010-08-27 06:46:29 +000012525_ACEOF
12526
12527cat >>$CONFIG_STATUS <<\_ACEOF
12528## --------------------- ##
12529## M4sh Initialization. ##
12530## --------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012531
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012532# Be more Bourne compatible
12533DUALCASE=1; export DUALCASE # for MKS sh
Sauw Mingbe3771a2010-08-27 06:46:29 +000012534if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012535 emulate sh
12536 NULLCMD=:
Sauw Mingbe3771a2010-08-27 06:46:29 +000012537 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012538 # is contrary to our usage. Disable this feature.
12539 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012540 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +000012541else
Sauw Mingbe3771a2010-08-27 06:46:29 +000012542 case `(set -o) 2>/dev/null` in
12543 *posix*) set -o posix ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012544esac
Sauw Mingbe3771a2010-08-27 06:46:29 +000012545
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012546fi
12547
12548
Sauw Mingbe3771a2010-08-27 06:46:29 +000012549
12550
12551# PATH needs CR
12552# Avoid depending upon Character Ranges.
12553as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12554as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12555as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12556as_cr_digits='0123456789'
12557as_cr_alnum=$as_cr_Letters$as_cr_digits
Benny Prijonod5233702010-01-13 13:09:45 +000012558
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012559# The user is always right.
12560if test "${PATH_SEPARATOR+set}" != set; then
Sauw Mingbe3771a2010-08-27 06:46:29 +000012561 echo "#! /bin/sh" >conf$$.sh
12562 echo "exit 0" >>conf$$.sh
12563 chmod +x conf$$.sh
12564 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12565 PATH_SEPARATOR=';'
12566 else
12567 PATH_SEPARATOR=:
12568 fi
12569 rm -f conf$$.sh
12570fi
12571
12572# Support unset when possible.
12573if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12574 as_unset=unset
12575else
12576 as_unset=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012577fi
12578
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012579
12580# IFS
12581# We need space, tab and new line, in precisely that order. Quoting is
12582# there to prevent editors from complaining about space-tab.
12583# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12584# splitting by setting IFS to empty value.)
Sauw Mingbe3771a2010-08-27 06:46:29 +000012585as_nl='
12586'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012587IFS=" "" $as_nl"
12588
12589# Find who we are. Look in the path if we contain no directory separator.
Sauw Mingbe3771a2010-08-27 06:46:29 +000012590case $0 in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012591 *[\\/]* ) as_myself=$0 ;;
12592 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012593for as_dir in $PATH
12594do
12595 IFS=$as_save_IFS
12596 test -z "$as_dir" && as_dir=.
Sauw Mingbe3771a2010-08-27 06:46:29 +000012597 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12598done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012599IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012600
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012601 ;;
12602esac
12603# We did not find ourselves, most probably we were run as `sh COMMAND'
12604# in which case we are not to be found in the path.
12605if test "x$as_myself" = x; then
12606 as_myself=$0
12607fi
12608if test ! -f "$as_myself"; then
Sauw Mingbe3771a2010-08-27 06:46:29 +000012609 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12610 { (exit 1); exit 1; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012611fi
12612
Sauw Mingbe3771a2010-08-27 06:46:29 +000012613# Work around bugs in pre-3.0 UWIN ksh.
12614for as_var in ENV MAIL MAILPATH
12615do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012616done
12617PS1='$ '
12618PS2='> '
12619PS4='+ '
12620
12621# NLS nuisances.
Sauw Mingbe3771a2010-08-27 06:46:29 +000012622for as_var in \
12623 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12624 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12625 LC_TELEPHONE LC_TIME
12626do
12627 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12628 eval $as_var=C; export $as_var
12629 else
12630 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Benny Prijonod4306432010-05-01 22:05:41 +000012631 fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000012632done
Benny Prijonod4306432010-05-01 22:05:41 +000012633
Sauw Mingbe3771a2010-08-27 06:46:29 +000012634# Required to use basename.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012635if expr a : '\(a\)' >/dev/null 2>&1 &&
12636 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12637 as_expr=expr
12638else
12639 as_expr=false
12640fi
12641
12642if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12643 as_basename=basename
12644else
12645 as_basename=false
12646fi
12647
12648
Sauw Mingbe3771a2010-08-27 06:46:29 +000012649# Name of the executable.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012650as_me=`$as_basename -- "$0" ||
12651$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12652 X"$0" : 'X\(//\)$' \| \
12653 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Sauw Mingbe3771a2010-08-27 06:46:29 +000012654echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012655 sed '/^.*\/\([^/][^/]*\)\/*$/{
12656 s//\1/
12657 q
12658 }
12659 /^X\/\(\/\/\)$/{
12660 s//\1/
12661 q
12662 }
12663 /^X\/\(\/\).*/{
12664 s//\1/
12665 q
12666 }
12667 s/.*/./; q'`
12668
Sauw Mingbe3771a2010-08-27 06:46:29 +000012669# CDPATH.
12670$as_unset CDPATH
12671
12672
12673
12674 as_lineno_1=$LINENO
12675 as_lineno_2=$LINENO
12676 test "x$as_lineno_1" != "x$as_lineno_2" &&
12677 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12678
12679 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12680 # uniformly replaced by the line number. The first 'sed' inserts a
12681 # line-number line after each line using $LINENO; the second 'sed'
12682 # does the real work. The second script uses 'N' to pair each
12683 # line-number line with the line containing $LINENO, and appends
12684 # trailing '-' during substitution so that $LINENO is not a special
12685 # case at line end.
12686 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12687 # scripts with optimization help from Paolo Bonzini. Blame Lee
12688 # E. McMahon (1931-1989) for sed's syntax. :-)
12689 sed -n '
12690 p
12691 /[$]LINENO/=
12692 ' <$as_myself |
12693 sed '
12694 s/[$]LINENO.*/&-/
12695 t lineno
12696 b
12697 :lineno
12698 N
12699 :loop
12700 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12701 t loop
12702 s/-\n.*//
12703 ' >$as_me.lineno &&
12704 chmod +x "$as_me.lineno" ||
12705 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12706 { (exit 1); exit 1; }; }
12707
12708 # Don't try to exec as it changes $[0], causing all sort of problems
12709 # (the dirname of $[0] is not the place where we might find the
12710 # original and so on. Autoconf is especially sensitive to this).
12711 . "./$as_me.lineno"
12712 # Exit status is that of the last command.
12713 exit
12714}
12715
12716
12717if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12718 as_dirname=dirname
12719else
12720 as_dirname=false
12721fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012722
12723ECHO_C= ECHO_N= ECHO_T=
Sauw Mingbe3771a2010-08-27 06:46:29 +000012724case `echo -n x` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012725-n*)
Sauw Mingbe3771a2010-08-27 06:46:29 +000012726 case `echo 'x\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012727 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Sauw Mingbe3771a2010-08-27 06:46:29 +000012728 *) ECHO_C='\c';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012729 esac;;
12730*)
12731 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012732esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012733
Sauw Mingbe3771a2010-08-27 06:46:29 +000012734if expr a : '\(a\)' >/dev/null 2>&1 &&
12735 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12736 as_expr=expr
12737else
12738 as_expr=false
12739fi
12740
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012741rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012742if test -d conf$$.dir; then
12743 rm -f conf$$.dir/conf$$.file
12744else
12745 rm -f conf$$.dir
Sauw Mingbe3771a2010-08-27 06:46:29 +000012746 mkdir conf$$.dir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012747fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000012748echo >conf$$.file
12749if ln -s conf$$.file conf$$ 2>/dev/null; then
12750 as_ln_s='ln -s'
12751 # ... but there are two gotchas:
12752 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12753 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12754 # In both cases, we have to default to `cp -p'.
12755 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012756 as_ln_s='cp -p'
Sauw Mingbe3771a2010-08-27 06:46:29 +000012757elif ln conf$$.file conf$$ 2>/dev/null; then
12758 as_ln_s=ln
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012759else
12760 as_ln_s='cp -p'
12761fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012762rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12763rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012764
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012765if mkdir -p . 2>/dev/null; then
Sauw Mingbe3771a2010-08-27 06:46:29 +000012766 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +000012767else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012768 test -d ./-p && rmdir ./-p
12769 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +000012770fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000012771
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012772if test -x / >/dev/null 2>&1; then
12773 as_test_x='test -x'
12774else
12775 if ls -dL / >/dev/null 2>&1; then
12776 as_ls_L_option=L
12777 else
12778 as_ls_L_option=
12779 fi
12780 as_test_x='
12781 eval sh -c '\''
12782 if test -d "$1"; then
Sauw Mingbe3771a2010-08-27 06:46:29 +000012783 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012784 else
Sauw Mingbe3771a2010-08-27 06:46:29 +000012785 case $1 in
12786 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012787 esac;
Sauw Mingbe3771a2010-08-27 06:46:29 +000012788 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012789 ???[sx]*):;;*)false;;esac;fi
12790 '\'' sh
12791 '
12792fi
12793as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012794
12795# Sed expression to map a string onto a valid CPP name.
12796as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12797
12798# Sed expression to map a string onto a valid variable name.
12799as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12800
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012801
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012802exec 6>&1
12803
Sauw Mingbe3771a2010-08-27 06:46:29 +000012804# Save the log message, to keep $[0] and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012805# report actual input values of CONFIG_FILES etc. instead of their
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012806# values after options handling.
12807ac_log="
Benny Prijono8a9b3b22010-01-14 14:46:54 +000012808This file was extended by pjproject $as_me 1.x, which was
Sauw Mingbe3771a2010-08-27 06:46:29 +000012809generated by GNU Autoconf 2.61. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012810
12811 CONFIG_FILES = $CONFIG_FILES
12812 CONFIG_HEADERS = $CONFIG_HEADERS
12813 CONFIG_LINKS = $CONFIG_LINKS
12814 CONFIG_COMMANDS = $CONFIG_COMMANDS
12815 $ $0 $@
12816
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012817on `(hostname || uname -n) 2>/dev/null | sed 1q`
12818"
12819
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012820_ACEOF
12821
Sauw Mingbe3771a2010-08-27 06:46:29 +000012822cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012823# Files that config.status was made for.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012824config_files="$ac_config_files"
12825config_headers="$ac_config_headers"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012826
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012827_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012828
Sauw Mingbe3771a2010-08-27 06:46:29 +000012829cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012830ac_cs_usage="\
Sauw Mingbe3771a2010-08-27 06:46:29 +000012831\`$as_me' instantiates files from templates according to the
12832current configuration.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012833
Sauw Mingbe3771a2010-08-27 06:46:29 +000012834Usage: $0 [OPTIONS] [FILE]...
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012835
12836 -h, --help print this help, then exit
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012837 -V, --version print version number and configuration settings, then exit
Sauw Mingbe3771a2010-08-27 06:46:29 +000012838 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012839 -d, --debug don't remove temporary files
12840 --recheck update $as_me by reconfiguring in the same conditions
Sauw Mingbe3771a2010-08-27 06:46:29 +000012841 --file=FILE[:TEMPLATE]
12842 instantiate the configuration file FILE
12843 --header=FILE[:TEMPLATE]
12844 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012845
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012846Configuration files:
12847$config_files
12848
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012849Configuration headers:
12850$config_headers
12851
Sauw Mingbe3771a2010-08-27 06:46:29 +000012852Report bugs to <bug-autoconf@gnu.org>."
Benny Prijonoe2746132008-09-27 13:16:35 +000012853
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012854_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000012855cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012856ac_cs_version="\\
Benny Prijono8a9b3b22010-01-14 14:46:54 +000012857pjproject config.status 1.x
Sauw Mingbe3771a2010-08-27 06:46:29 +000012858configured by $0, generated by GNU Autoconf 2.61,
12859 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012860
Sauw Mingbe3771a2010-08-27 06:46:29 +000012861Copyright (C) 2006 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012862This config.status script is free software; the Free Software Foundation
12863gives unlimited permission to copy, distribute and modify it."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012864
12865ac_pwd='$ac_pwd'
12866srcdir='$srcdir'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012867_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012868
Sauw Mingbe3771a2010-08-27 06:46:29 +000012869cat >>$CONFIG_STATUS <<\_ACEOF
12870# If no file are specified by the user, then we need to provide default
12871# value. By we need to know if files were specified by the user.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012872ac_need_defaults=:
12873while test $# != 0
12874do
12875 case $1 in
12876 --*=*)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012877 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12878 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012879 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012880 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012881 *)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012882 ac_option=$1
12883 ac_optarg=$2
12884 ac_shift=shift
12885 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012886 esac
12887
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012888 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012889 # Handling of the options.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012890 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012891 ac_cs_recheck=: ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012892 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Sauw Mingbe3771a2010-08-27 06:46:29 +000012893 echo "$ac_cs_version"; exit ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012894 --debug | --debu | --deb | --de | --d | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012895 debug=: ;;
12896 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012897 $ac_shift
Sauw Mingbe3771a2010-08-27 06:46:29 +000012898 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012899 ac_need_defaults=false;;
12900 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012901 $ac_shift
Sauw Mingbe3771a2010-08-27 06:46:29 +000012902 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012903 ac_need_defaults=false;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012904 --he | --h)
12905 # Conflict between --help and --header
Sauw Mingbe3771a2010-08-27 06:46:29 +000012906 { echo "$as_me: error: ambiguous option: $1
12907Try \`$0 --help' for more information." >&2
12908 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012909 --help | --hel | -h )
Sauw Mingbe3771a2010-08-27 06:46:29 +000012910 echo "$ac_cs_usage"; exit ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012911 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12912 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12913 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012914
12915 # This is an error.
Sauw Mingbe3771a2010-08-27 06:46:29 +000012916 -*) { echo "$as_me: error: unrecognized option: $1
12917Try \`$0 --help' for more information." >&2
12918 { (exit 1); exit 1; }; } ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012919
Sauw Mingbe3771a2010-08-27 06:46:29 +000012920 *) ac_config_targets="$ac_config_targets $1"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012921 ac_need_defaults=false ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012922
12923 esac
12924 shift
12925done
12926
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012927ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012928
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012929if $ac_cs_silent; then
12930 exec 6>/dev/null
12931 ac_configure_extra_args="$ac_configure_extra_args --silent"
12932fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012933
12934_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000012935cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012936if \$ac_cs_recheck; then
Sauw Mingbe3771a2010-08-27 06:46:29 +000012937 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12938 CONFIG_SHELL=$SHELL
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012939 export CONFIG_SHELL
Sauw Mingbe3771a2010-08-27 06:46:29 +000012940 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012941fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012942
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012943_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000012944cat >>$CONFIG_STATUS <<\_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012945exec 5>>config.log
12946{
12947 echo
12948 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12949## Running $as_me. ##
12950_ASBOX
Sauw Mingbe3771a2010-08-27 06:46:29 +000012951 echo "$ac_log"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012952} >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012953
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012954_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000012955cat >>$CONFIG_STATUS <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012956_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012957
Sauw Mingbe3771a2010-08-27 06:46:29 +000012958cat >>$CONFIG_STATUS <<\_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012959
12960# Handling of arguments.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012961for ac_config_target in $ac_config_targets
12962do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012963 case $ac_config_target in
12964 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
12965 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
12966 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
12967 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
12968 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
12969 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
12970 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
Benny Prijono8ec5eae2010-05-12 10:59:20 +000012971 "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012972 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
12973 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
12974 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
12975 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012976 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijono8a9b3b22010-01-14 14:46:54 +000012977 "third_party/build/portaudio/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012978
Sauw Mingbe3771a2010-08-27 06:46:29 +000012979 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12980echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12981 { (exit 1); exit 1; }; };;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012982 esac
12983done
12984
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012985
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012986# If the user did not use the arguments to specify the items to instantiate,
12987# then the envvar interface is used. Set only those that are not.
12988# We use the long form for the default assignment because of an extremely
12989# bizarre bug on SunOS 4.1.3.
12990if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000012991 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +000012992 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12993fi
12994
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012995# Have a temporary directory for convenience. Make it in the build tree
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012996# simply because there is no reason against having it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000012997# creating and moving files from /tmp can sometimes cause problems.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012998# Hook for its removal unless debugging.
12999# Note that there is a small window in which the directory will not be cleaned:
13000# after its creation but before its name has been assigned to `$tmp'.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013001$debug ||
13002{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013003 tmp=
13004 trap 'exit_status=$?
13005 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13006' 0
Sauw Mingbe3771a2010-08-27 06:46:29 +000013007 trap '{ (exit 1); exit 1; }' 1 2 13 15
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013008}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013009# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013010
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013011{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013012 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013013 test -n "$tmp" && test -d "$tmp"
13014} ||
13015{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013016 tmp=./conf$$-$RANDOM
13017 (umask 077 && mkdir "$tmp")
Sauw Mingbe3771a2010-08-27 06:46:29 +000013018} ||
13019{
13020 echo "$me: cannot create a temporary directory in ." >&2
13021 { (exit 1); exit 1; }
13022}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013023
Sauw Mingbe3771a2010-08-27 06:46:29 +000013024#
13025# Set up the sed scripts for CONFIG_FILES section.
13026#
13027
13028# No need to generate the scripts if there are no CONFIG_FILES.
13029# This happens for instance when ./config.status config.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013030if test -n "$CONFIG_FILES"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013031
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013032_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013033
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013034
Sauw Mingbe3771a2010-08-27 06:46:29 +000013035
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013036ac_delim='%!_!# '
13037for ac_last_try in false false false false false :; do
Sauw Mingbe3771a2010-08-27 06:46:29 +000013038 cat >conf$$subs.sed <<_ACEOF
13039SHELL!$SHELL$ac_delim
13040PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13041PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13042PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13043PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13044PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13045PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13046exec_prefix!$exec_prefix$ac_delim
13047prefix!$prefix$ac_delim
13048program_transform_name!$program_transform_name$ac_delim
13049bindir!$bindir$ac_delim
13050sbindir!$sbindir$ac_delim
13051libexecdir!$libexecdir$ac_delim
13052datarootdir!$datarootdir$ac_delim
13053datadir!$datadir$ac_delim
13054sysconfdir!$sysconfdir$ac_delim
13055sharedstatedir!$sharedstatedir$ac_delim
13056localstatedir!$localstatedir$ac_delim
13057includedir!$includedir$ac_delim
13058oldincludedir!$oldincludedir$ac_delim
13059docdir!$docdir$ac_delim
13060infodir!$infodir$ac_delim
13061htmldir!$htmldir$ac_delim
13062dvidir!$dvidir$ac_delim
13063pdfdir!$pdfdir$ac_delim
13064psdir!$psdir$ac_delim
13065libdir!$libdir$ac_delim
13066localedir!$localedir$ac_delim
13067mandir!$mandir$ac_delim
13068DEFS!$DEFS$ac_delim
13069ECHO_C!$ECHO_C$ac_delim
13070ECHO_N!$ECHO_N$ac_delim
13071ECHO_T!$ECHO_T$ac_delim
13072LIBS!$LIBS$ac_delim
13073build_alias!$build_alias$ac_delim
13074host_alias!$host_alias$ac_delim
13075target_alias!$target_alias$ac_delim
13076build!$build$ac_delim
13077build_cpu!$build_cpu$ac_delim
13078build_vendor!$build_vendor$ac_delim
13079build_os!$build_os$ac_delim
13080host!$host$ac_delim
13081host_cpu!$host_cpu$ac_delim
13082host_vendor!$host_vendor$ac_delim
13083host_os!$host_os$ac_delim
13084target!$target$ac_delim
13085target_cpu!$target_cpu$ac_delim
13086target_vendor!$target_vendor$ac_delim
13087target_os!$target_os$ac_delim
13088CC!$CC$ac_delim
13089CFLAGS!$CFLAGS$ac_delim
13090LDFLAGS!$LDFLAGS$ac_delim
13091CPPFLAGS!$CPPFLAGS$ac_delim
13092ac_ct_CC!$ac_ct_CC$ac_delim
13093EXEEXT!$EXEEXT$ac_delim
13094OBJEXT!$OBJEXT$ac_delim
13095CXX!$CXX$ac_delim
13096CXXFLAGS!$CXXFLAGS$ac_delim
13097ac_ct_CXX!$ac_ct_CXX$ac_delim
13098AR!$AR$ac_delim
13099LD!$LD$ac_delim
13100LDOUT!$LDOUT$ac_delim
13101RANLIB!$RANLIB$ac_delim
13102LIBEXT!$LIBEXT$ac_delim
13103LIBEXT2!$LIBEXT2$ac_delim
13104CC_OUT!$CC_OUT$ac_delim
13105CC_INC!$CC_INC$ac_delim
13106CC_DEF!$CC_DEF$ac_delim
13107CC_OPTIMIZE!$CC_OPTIMIZE$ac_delim
13108CC_CFLAGS!$CC_CFLAGS$ac_delim
13109ac_pjdir!$ac_pjdir$ac_delim
13110ac_build_mak_vars!$ac_build_mak_vars$ac_delim
13111CPP!$CPP$ac_delim
13112GREP!$GREP$ac_delim
13113EGREP!$EGREP$ac_delim
13114ac_os_objs!$ac_os_objs$ac_delim
13115ac_external_speex!$ac_external_speex$ac_delim
13116ac_external_gsm!$ac_external_gsm$ac_delim
13117ac_pjmedia_snd!$ac_pjmedia_snd$ac_delim
13118ac_external_pa!$ac_external_pa$ac_delim
13119ac_pa_cflags!$ac_pa_cflags$ac_delim
13120ac_pa_use_alsa!$ac_pa_use_alsa$ac_delim
13121ac_pa_use_oss!$ac_pa_use_oss$ac_delim
13122ac_no_small_filter!$ac_no_small_filter$ac_delim
13123ac_no_large_filter!$ac_no_large_filter$ac_delim
13124ac_no_speex_aec!$ac_no_speex_aec$ac_delim
13125ac_no_g711_codec!$ac_no_g711_codec$ac_delim
13126ac_no_l16_codec!$ac_no_l16_codec$ac_delim
13127ac_no_gsm_codec!$ac_no_gsm_codec$ac_delim
13128ac_no_g722_codec!$ac_no_g722_codec$ac_delim
13129ac_no_g7221_codec!$ac_no_g7221_codec$ac_delim
13130ac_no_speex_codec!$ac_no_speex_codec$ac_delim
13131ac_no_ilbc_codec!$ac_no_ilbc_codec$ac_delim
13132ac_no_ssl!$ac_no_ssl$ac_delim
13133openssl_h_present!$openssl_h_present$ac_delim
13134libssl_present!$libssl_present$ac_delim
13135libcrypto_present!$libcrypto_present$ac_delim
13136_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013137
Sauw Mingbe3771a2010-08-27 06:46:29 +000013138 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013139 break
13140 elif $ac_last_try; then
Sauw Mingbe3771a2010-08-27 06:46:29 +000013141 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13142echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13143 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013144 else
13145 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013146 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013147done
13148
Sauw Mingbe3771a2010-08-27 06:46:29 +000013149ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13150if test -n "$ac_eof"; then
13151 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13152 ac_eof=`expr $ac_eof + 1`
13153fi
13154
13155cat >>$CONFIG_STATUS <<_ACEOF
13156cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13157/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013158_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000013159sed '
13160s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13161s/^/s,@/; s/!/@,|#_!!_#|/
13162:n
13163t n
13164s/'"$ac_delim"'$/,g/; t
13165s/$/\\/; p
13166N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13167' >>$CONFIG_STATUS <conf$$subs.sed
13168rm -f conf$$subs.sed
13169cat >>$CONFIG_STATUS <<_ACEOF
13170CEOF$ac_eof
Benny Prijonod4306432010-05-01 22:05:41 +000013171_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000013172
13173
13174ac_delim='%!_!# '
13175for ac_last_try in false false false false false :; do
13176 cat >conf$$subs.sed <<_ACEOF
13177ac_cross_compile!$ac_cross_compile$ac_delim
13178ac_linux_poll!$ac_linux_poll$ac_delim
13179ac_host!$ac_host$ac_delim
13180ac_main_obj!$ac_main_obj$ac_delim
13181LIBOBJS!$LIBOBJS$ac_delim
13182LTLIBOBJS!$LTLIBOBJS$ac_delim
Benny Prijonod4306432010-05-01 22:05:41 +000013183_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013184
Sauw Mingbe3771a2010-08-27 06:46:29 +000013185 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
13186 break
13187 elif $ac_last_try; then
13188 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13189echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13190 { (exit 1); exit 1; }; }
13191 else
13192 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13193 fi
13194done
13195
13196ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13197if test -n "$ac_eof"; then
13198 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13199 ac_eof=`expr $ac_eof + 1`
13200fi
13201
13202cat >>$CONFIG_STATUS <<_ACEOF
13203cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13204/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13205_ACEOF
13206sed '
13207s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13208s/^/s,@/; s/!/@,|#_!!_#|/
13209:n
13210t n
13211s/'"$ac_delim"'$/,g/; t
13212s/$/\\/; p
13213N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13214' >>$CONFIG_STATUS <conf$$subs.sed
13215rm -f conf$$subs.sed
13216cat >>$CONFIG_STATUS <<_ACEOF
13217:end
13218s/|#_!!_#|//g
13219CEOF$ac_eof
13220_ACEOF
13221
13222
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013223# VPATH may cause trouble with some makes, so we remove $(srcdir),
13224# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13225# trailing colons and then remove the whole line if VPATH becomes empty
13226# (actually we leave an empty line to preserve line numbers).
13227if test "x$srcdir" = x.; then
13228 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13229s/:*\$(srcdir):*/:/
13230s/:*\${srcdir}:*/:/
13231s/:*@srcdir@:*/:/
13232s/^\([^=]*=[ ]*\):*/\1/
13233s/:*$//
13234s/^[^=]*=[ ]*$//
13235}'
13236fi
13237
Sauw Mingbe3771a2010-08-27 06:46:29 +000013238cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013239fi # test -n "$CONFIG_FILES"
13240
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013241
Sauw Mingbe3771a2010-08-27 06:46:29 +000013242for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013243do
13244 case $ac_tag in
13245 :[FHLC]) ac_mode=$ac_tag; continue;;
13246 esac
13247 case $ac_mode$ac_tag in
13248 :[FHL]*:*);;
Sauw Mingbe3771a2010-08-27 06:46:29 +000013249 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13250echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13251 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013252 :[FH]-) ac_tag=-:-;;
13253 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13254 esac
13255 ac_save_IFS=$IFS
13256 IFS=:
13257 set x $ac_tag
13258 IFS=$ac_save_IFS
13259 shift
13260 ac_file=$1
13261 shift
13262
13263 case $ac_mode in
13264 :L) ac_source=$1;;
13265 :[FH])
13266 ac_file_inputs=
13267 for ac_f
13268 do
13269 case $ac_f in
13270 -) ac_f="$tmp/stdin";;
13271 *) # Look for the file first in the build tree, then in the source tree
13272 # (if the path is not absolute). The absolute path cannot be DOS-style,
13273 # because $ac_f cannot contain `:'.
13274 test -f "$ac_f" ||
13275 case $ac_f in
13276 [\\/$]*) false;;
13277 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13278 esac ||
Sauw Mingbe3771a2010-08-27 06:46:29 +000013279 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13280echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13281 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013282 esac
Sauw Mingbe3771a2010-08-27 06:46:29 +000013283 ac_file_inputs="$ac_file_inputs $ac_f"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013284 done
13285
13286 # Let's still pretend it is `configure' which instantiates (i.e., don't
13287 # use $as_me), people would be surprised to read:
13288 # /* config.h. Generated by config.status. */
Sauw Mingbe3771a2010-08-27 06:46:29 +000013289 configure_input="Generated from "`IFS=:
13290 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013291 if test x"$ac_file" != x-; then
13292 configure_input="$ac_file. $configure_input"
Sauw Mingbe3771a2010-08-27 06:46:29 +000013293 { echo "$as_me:$LINENO: creating $ac_file" >&5
13294echo "$as_me: creating $ac_file" >&6;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013295 fi
13296
13297 case $ac_tag in
Sauw Mingbe3771a2010-08-27 06:46:29 +000013298 *:-:* | *:-) cat >"$tmp/stdin";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013299 esac
13300 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013301 esac
13302
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013303 ac_dir=`$as_dirname -- "$ac_file" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013304$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13305 X"$ac_file" : 'X\(//\)[^/]' \| \
13306 X"$ac_file" : 'X\(//\)$' \| \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013307 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Sauw Mingbe3771a2010-08-27 06:46:29 +000013308echo X"$ac_file" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13310 s//\1/
13311 q
13312 }
13313 /^X\(\/\/\)[^/].*/{
13314 s//\1/
13315 q
13316 }
13317 /^X\(\/\/\)$/{
13318 s//\1/
13319 q
13320 }
13321 /^X\(\/\).*/{
13322 s//\1/
13323 q
13324 }
13325 s/.*/./; q'`
Sauw Mingbe3771a2010-08-27 06:46:29 +000013326 { as_dir="$ac_dir"
13327 case $as_dir in #(
13328 -*) as_dir=./$as_dir;;
13329 esac
13330 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13331 as_dirs=
13332 while :; do
13333 case $as_dir in #(
13334 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13335 *) as_qdir=$as_dir;;
13336 esac
13337 as_dirs="'$as_qdir' $as_dirs"
13338 as_dir=`$as_dirname -- "$as_dir" ||
13339$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13340 X"$as_dir" : 'X\(//\)[^/]' \| \
13341 X"$as_dir" : 'X\(//\)$' \| \
13342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13343echo X"$as_dir" |
13344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13345 s//\1/
13346 q
13347 }
13348 /^X\(\/\/\)[^/].*/{
13349 s//\1/
13350 q
13351 }
13352 /^X\(\/\/\)$/{
13353 s//\1/
13354 q
13355 }
13356 /^X\(\/\).*/{
13357 s//\1/
13358 q
13359 }
13360 s/.*/./; q'`
13361 test -d "$as_dir" && break
13362 done
13363 test -z "$as_dirs" || eval "mkdir $as_dirs"
13364 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13365echo "$as_me: error: cannot create directory $as_dir" >&2;}
13366 { (exit 1); exit 1; }; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013367 ac_builddir=.
13368
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013369case "$ac_dir" in
13370.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13371*)
Sauw Mingbe3771a2010-08-27 06:46:29 +000013372 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013373 # A ".." for each directory in $ac_dir_suffix.
Sauw Mingbe3771a2010-08-27 06:46:29 +000013374 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013375 case $ac_top_builddir_sub in
13376 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13377 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13378 esac ;;
13379esac
13380ac_abs_top_builddir=$ac_pwd
13381ac_abs_builddir=$ac_pwd$ac_dir_suffix
13382# for backward compatibility:
13383ac_top_builddir=$ac_top_build_prefix
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013384
13385case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013386 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013387 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013388 ac_top_srcdir=$ac_top_builddir_sub
13389 ac_abs_top_srcdir=$ac_pwd ;;
13390 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013391 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013392 ac_top_srcdir=$srcdir
13393 ac_abs_top_srcdir=$srcdir ;;
13394 *) # Relative name.
13395 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13396 ac_top_srcdir=$ac_top_build_prefix$srcdir
13397 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013398esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013399ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono9489e7a2008-09-19 22:18:50 +000013400
Benny Prijonoe2746132008-09-27 13:16:35 +000013401
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013402 case $ac_mode in
13403 :F)
13404 #
13405 # CONFIG_FILE
13406 #
Benny Prijonoe2746132008-09-27 13:16:35 +000013407
Benny Prijonoe2746132008-09-27 13:16:35 +000013408_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013409
Sauw Mingbe3771a2010-08-27 06:46:29 +000013410cat >>$CONFIG_STATUS <<\_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013411# If the template does not know about datarootdir, expand it.
13412# FIXME: This hack should be removed a few years after 2.60.
13413ac_datarootdir_hack=; ac_datarootdir_seen=
Sauw Mingbe3771a2010-08-27 06:46:29 +000013414
13415case `sed -n '/datarootdir/ {
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013416 p
13417 q
13418}
13419/@datadir@/p
13420/@docdir@/p
13421/@infodir@/p
13422/@localedir@/p
Sauw Mingbe3771a2010-08-27 06:46:29 +000013423/@mandir@/p
13424' $ac_file_inputs` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013425*datarootdir*) ac_datarootdir_seen=yes;;
13426*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Sauw Mingbe3771a2010-08-27 06:46:29 +000013427 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13428echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013429_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000013430cat >>$CONFIG_STATUS <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013431 ac_datarootdir_hack='
13432 s&@datadir@&$datadir&g
13433 s&@docdir@&$docdir&g
13434 s&@infodir@&$infodir&g
13435 s&@localedir@&$localedir&g
13436 s&@mandir@&$mandir&g
Sauw Mingbe3771a2010-08-27 06:46:29 +000013437 s&\\\${datarootdir}&$datarootdir&g' ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013438esac
13439_ACEOF
13440
13441# Neutralize VPATH when `$srcdir' = `.'.
13442# Shell code in configure.ac might set extrasub.
13443# FIXME: do we really want to maintain this feature?
Sauw Mingbe3771a2010-08-27 06:46:29 +000013444cat >>$CONFIG_STATUS <<_ACEOF
13445 sed "$ac_vpsub
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013446$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013447_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000013448cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013449:t
13450/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Sauw Mingbe3771a2010-08-27 06:46:29 +000013451s&@configure_input@&$configure_input&;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013452s&@top_builddir@&$ac_top_builddir_sub&;t t
13453s&@srcdir@&$ac_srcdir&;t t
13454s&@abs_srcdir@&$ac_abs_srcdir&;t t
13455s&@top_srcdir@&$ac_top_srcdir&;t t
13456s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13457s&@builddir@&$ac_builddir&;t t
13458s&@abs_builddir@&$ac_abs_builddir&;t t
13459s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13460$ac_datarootdir_hack
Sauw Mingbe3771a2010-08-27 06:46:29 +000013461" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013462
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013463test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13464 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13465 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Sauw Mingbe3771a2010-08-27 06:46:29 +000013466 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013467which seems to be undefined. Please make sure it is defined." >&5
Sauw Mingbe3771a2010-08-27 06:46:29 +000013468echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013469which seems to be undefined. Please make sure it is defined." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013470
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013471 rm -f "$tmp/stdin"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013472 case $ac_file in
Sauw Mingbe3771a2010-08-27 06:46:29 +000013473 -) cat "$tmp/out"; rm -f "$tmp/out";;
13474 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13475 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013476 ;;
13477 :H)
13478 #
13479 # CONFIG_HEADER
13480 #
Sauw Mingbe3771a2010-08-27 06:46:29 +000013481_ACEOF
13482
13483# Transform confdefs.h into a sed script `conftest.defines', that
13484# substitutes the proper values into config.h.in to produce config.h.
13485rm -f conftest.defines conftest.tail
13486# First, append a space to every undef/define line, to ease matching.
13487echo 's/$/ /' >conftest.defines
13488# Then, protect against being on the right side of a sed subst, or in
13489# an unquoted here document, in config.status. If some macros were
13490# called several times there might be several #defines for the same
13491# symbol, which is useless. But do not sort them, since the last
13492# AC_DEFINE must be honored.
13493ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13494# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13495# NAME is the cpp macro being defined, VALUE is the value it is being given.
13496# PARAMS is the parameter list in the macro definition--in most cases, it's
13497# just an empty string.
13498ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13499ac_dB='\\)[ (].*,\\1define\\2'
13500ac_dC=' '
13501ac_dD=' ,'
13502
13503uniq confdefs.h |
13504 sed -n '
13505 t rset
13506 :rset
13507 s/^[ ]*#[ ]*define[ ][ ]*//
13508 t ok
13509 d
13510 :ok
13511 s/[\\&,]/\\&/g
13512 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13513 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13514 ' >>conftest.defines
13515
13516# Remove the space that was appended to ease matching.
13517# Then replace #undef with comments. This is necessary, for
13518# example, in the case of _POSIX_SOURCE, which is predefined and required
13519# on some systems where configure will not decide to define it.
13520# (The regexp can be short, since the line contains either #define or #undef.)
13521echo 's/ $//
13522s,^[ #]*u.*,/* & */,' >>conftest.defines
13523
13524# Break up conftest.defines:
13525ac_max_sed_lines=50
13526
13527# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13528# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13529# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13530# et cetera.
13531ac_in='$ac_file_inputs'
13532ac_out='"$tmp/out1"'
13533ac_nxt='"$tmp/out2"'
13534
13535while :
13536do
13537 # Write a here document:
13538 cat >>$CONFIG_STATUS <<_ACEOF
13539 # First, check the format of the line:
13540 cat >"\$tmp/defines.sed" <<\\CEOF
13541/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13542/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13543b
13544:def
13545_ACEOF
13546 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13547 echo 'CEOF
13548 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13549 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13550 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13551 grep . conftest.tail >/dev/null || break
13552 rm -f conftest.defines
13553 mv conftest.tail conftest.defines
13554done
13555rm -f conftest.defines conftest.tail
13556
13557echo "ac_result=$ac_in" >>$CONFIG_STATUS
13558cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013559 if test x"$ac_file" != x-; then
Sauw Mingbe3771a2010-08-27 06:46:29 +000013560 echo "/* $configure_input */" >"$tmp/config.h"
13561 cat "$ac_result" >>"$tmp/config.h"
13562 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13563 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13564echo "$as_me: $ac_file is unchanged" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013565 else
Sauw Mingbe3771a2010-08-27 06:46:29 +000013566 rm -f $ac_file
13567 mv "$tmp/config.h" $ac_file
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013568 fi
13569 else
Sauw Mingbe3771a2010-08-27 06:46:29 +000013570 echo "/* $configure_input */"
13571 cat "$ac_result"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013572 fi
Sauw Mingbe3771a2010-08-27 06:46:29 +000013573 rm -f "$tmp/out12"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013574 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013575
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013576
13577 esac
13578
13579done # for ac_tag
13580
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013581
Sauw Mingbe3771a2010-08-27 06:46:29 +000013582{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013583_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +000013584chmod +x $CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013585ac_clean_files=$ac_clean_files_save
13586
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013587
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013588# configure is writing to config.log, and then calls config.status.
13589# config.status does its own redirection, appending to config.log.
13590# Unfortunately, on DOS this fails, as config.log is still kept open
13591# by configure, so config.status won't be able to write to it; its
13592# output is simply discarded. So we exec the FD to /dev/null,
13593# effectively closing config.log, so it can be properly (re)opened and
13594# appended to by config.status. When coming back to configure, we
13595# need to make the FD available again.
13596if test "$no_create" != yes; then
13597 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013598 ac_config_status_args=
13599 test "$silent" = yes &&
13600 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013601 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013602 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013603 exec 5>>config.log
13604 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13605 # would make configure fail if this is the last instruction.
Sauw Mingbe3771a2010-08-27 06:46:29 +000013606 $ac_cs_success || { (exit 1); exit 1; }
Benny Prijonod5233702010-01-13 13:09:45 +000013607fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013608
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013609
Benny Prijonod9627842007-04-18 09:24:31 +000013610
Sauw Mingbe3771a2010-08-27 06:46:29 +000013611{ echo "$as_me:$LINENO: result:
Benny Prijonod9627842007-04-18 09:24:31 +000013612
Benny Prijonoc16c6e32007-11-18 14:53:47 +000013613Configurations 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 +000013614
Benny Prijonoc16c6e32007-11-18 14:53:47 +000013615Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000013616 - 'user.mak'
13617 - 'pjlib/include/pj/config_site.h'
13618
13619The next step now is to run 'make dep' and 'make'.
13620" >&5
Sauw Mingbe3771a2010-08-27 06:46:29 +000013621echo "${ECHO_T}
Benny Prijonod9627842007-04-18 09:24:31 +000013622
Benny Prijonoc16c6e32007-11-18 14:53:47 +000013623Configurations 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 +000013624
Benny Prijonoc16c6e32007-11-18 14:53:47 +000013625Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000013626 - 'user.mak'
13627 - 'pjlib/include/pj/config_site.h'
13628
13629The next step now is to run 'make dep' and 'make'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013630" >&6; }
Benny Prijonod9627842007-04-18 09:24:31 +000013631