blob: f45b14ab159dea59abbf123bc4c4319e80592046 [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Sauw Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +000023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000025esac
Sauw Mingd8aa67c2011-08-09 04:31:41 +000026
Benny Prijono7e0d75f2006-12-25 20:34:14 +000027fi
28
29
Sauw Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +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 Prijono5b0af632011-07-20 03:16:25 +0000107do
Sauw Mingd8aa67c2011-08-09 04:31:41 +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 Prijono5b0af632011-07-20 03:16:25 +0000110 else
Sauw Mingd8aa67c2011-08-09 04:31:41 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Benny Prijono5b0af632011-07-20 03:16:25 +0000112 fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +0000113done
Benny Prijono5b0af632011-07-20 03:16:25 +0000114
Sauw Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +0000150# CDPATH.
151$as_unset CDPATH
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000152
153
Sauw Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +0000473case `echo -n x` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000474-n*)
Sauw Mingd8aa67c2011-08-09 04:31:41 +0000475 case `echo 'x\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Sauw Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +0000495 mkdir conf$$.dir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000496fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +0000532 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000533 else
Sauw Mingd8aa67c2011-08-09 04:31:41 +0000534 case $1 in
535 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000536 esac;
Sauw Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +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 Mingd8aa67c2011-08-09 04:31:41 +0000615ac_subst_vars='SHELL
Benny Prijono5b0af632011-07-20 03:16:25 +0000616PATH_SEPARATOR
Sauw Mingd8aa67c2011-08-09 04:31:41 +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_pjmedia_video
Sauw Ming24c39a32011-08-16 05:44:46 +0000699ac_pjmedia_video_has_ios
Sauw Mingd8aa67c2011-08-09 04:31:41 +0000700ac_ios_cflags
701ac_pjmedia_video_has_qt
702ac_qt_cflags
703ac_no_small_filter
704ac_no_large_filter
705ac_no_speex_aec
706ac_no_g711_codec
707ac_no_l16_codec
708ac_no_gsm_codec
709ac_no_g722_codec
710ac_no_g7221_codec
711ac_no_speex_codec
712ac_no_ilbc_codec
713ac_sdl_cflags
714ac_sdl_ldflags
715ac_has_ffmpeg
716ac_ffmpeg_cflags
717ac_ffmpeg_ldflags
718ac_v4l2_cflags
719ac_v4l2_ldflags
720ac_no_ssl
721openssl_h_present
722libssl_present
723libcrypto_present
724ac_cross_compile
725ac_linux_poll
726ac_host
727ac_main_obj
728LIBOBJS
729LTLIBOBJS'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000730ac_subst_files=''
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000731 ac_precious_vars='build_alias
732host_alias
733target_alias
734CC
735CFLAGS
736LDFLAGS
737LIBS
738CPPFLAGS
739CXX
740CXXFLAGS
741CCC
742CPP'
743
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000744
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000745# Initialize some variables set by options.
746ac_init_help=
747ac_init_version=false
748# The variables have the same names as the options, with
749# dashes changed to underlines.
750cache_file=/dev/null
751exec_prefix=NONE
752no_create=
753no_recursion=
754prefix=NONE
755program_prefix=NONE
756program_suffix=NONE
757program_transform_name=s,x,x,
758silent=
759site=
760srcdir=
761verbose=
762x_includes=NONE
763x_libraries=NONE
764
765# Installation directory options.
766# These are left unexpanded so users can "make install exec_prefix=/foo"
767# and all the variables that are supposed to be based on exec_prefix
768# by default will actually change.
769# Use braces instead of parens because sh, perl, etc. also accept them.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000770# (The list follows the same order as the GNU Coding Standards.)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000771bindir='${exec_prefix}/bin'
772sbindir='${exec_prefix}/sbin'
773libexecdir='${exec_prefix}/libexec'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000774datarootdir='${prefix}/share'
775datadir='${datarootdir}'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000776sysconfdir='${prefix}/etc'
777sharedstatedir='${prefix}/com'
778localstatedir='${prefix}/var'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000779includedir='${prefix}/include'
780oldincludedir='/usr/include'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000781docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
782infodir='${datarootdir}/info'
783htmldir='${docdir}'
784dvidir='${docdir}'
785pdfdir='${docdir}'
786psdir='${docdir}'
787libdir='${exec_prefix}/lib'
788localedir='${datarootdir}/locale'
789mandir='${datarootdir}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000790
791ac_prev=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000792ac_dashdash=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000793for ac_option
794do
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000797 eval $ac_prev=\$ac_option
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000798 ac_prev=
799 continue
800 fi
801
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000802 case $ac_option in
803 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *) ac_optarg=yes ;;
805 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000806
807 # Accept the important Cygnus configure options, so we can diagnose typos.
808
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000809 case $ac_dashdash$ac_option in
810 --)
811 ac_dashdash=yes ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000812
813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
814 ac_prev=bindir ;;
815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816 bindir=$ac_optarg ;;
817
818 -build | --build | --buil | --bui | --bu)
819 ac_prev=build_alias ;;
820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821 build_alias=$ac_optarg ;;
822
823 -cache-file | --cache-file | --cache-fil | --cache-fi \
824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825 ac_prev=cache_file ;;
826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828 cache_file=$ac_optarg ;;
829
830 --config-cache | -C)
831 cache_file=config.cache ;;
832
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000833 -datadir | --datadir | --datadi | --datad)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000834 ac_prev=datadir ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000836 datadir=$ac_optarg ;;
837
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839 | --dataroo | --dataro | --datar)
840 ac_prev=datarootdir ;;
841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843 datarootdir=$ac_optarg ;;
844
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000845 -disable-* | --disable-*)
Sauw Mingd8aa67c2011-08-09 04:31:41 +0000846 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000847 # Reject names that are not valid shell variable names.
Sauw Mingd8aa67c2011-08-09 04:31:41 +0000848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_$ac_feature=no ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000853
854 -docdir | --docdir | --docdi | --doc | --do)
855 ac_prev=docdir ;;
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 docdir=$ac_optarg ;;
858
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 ac_prev=dvidir ;;
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 dvidir=$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000863
864 -enable-* | --enable-*)
Sauw Mingd8aa67c2011-08-09 04:31:41 +0000865 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000866 # Reject names that are not valid shell variable names.
Sauw Mingd8aa67c2011-08-09 04:31:41 +0000867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_$ac_feature=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000872
873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875 | --exec | --exe | --ex)
876 ac_prev=exec_prefix ;;
877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879 | --exec=* | --exe=* | --ex=*)
880 exec_prefix=$ac_optarg ;;
881
882 -gas | --gas | --ga | --g)
883 # Obsolete; use --with-gas.
884 with_gas=yes ;;
885
886 -help | --help | --hel | --he | -h)
887 ac_init_help=long ;;
888 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889 ac_init_help=recursive ;;
890 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891 ac_init_help=short ;;
892
893 -host | --host | --hos | --ho)
894 ac_prev=host_alias ;;
895 -host=* | --host=* | --hos=* | --ho=*)
896 host_alias=$ac_optarg ;;
897
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899 ac_prev=htmldir ;;
900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901 | --ht=*)
902 htmldir=$ac_optarg ;;
903
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000904 -includedir | --includedir | --includedi | --included | --include \
905 | --includ | --inclu | --incl | --inc)
906 ac_prev=includedir ;;
907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908 | --includ=* | --inclu=* | --incl=* | --inc=*)
909 includedir=$ac_optarg ;;
910
911 -infodir | --infodir | --infodi | --infod | --info | --inf)
912 ac_prev=infodir ;;
913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914 infodir=$ac_optarg ;;
915
916 -libdir | --libdir | --libdi | --libd)
917 ac_prev=libdir ;;
918 -libdir=* | --libdir=* | --libdi=* | --libd=*)
919 libdir=$ac_optarg ;;
920
921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922 | --libexe | --libex | --libe)
923 ac_prev=libexecdir ;;
924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925 | --libexe=* | --libex=* | --libe=*)
926 libexecdir=$ac_optarg ;;
927
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000928 -localedir | --localedir | --localedi | --localed | --locale)
929 ac_prev=localedir ;;
930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931 localedir=$ac_optarg ;;
932
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000933 -localstatedir | --localstatedir | --localstatedi | --localstated \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000934 | --localstate | --localstat | --localsta | --localst | --locals)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000935 ac_prev=localstatedir ;;
936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000938 localstatedir=$ac_optarg ;;
939
940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941 ac_prev=mandir ;;
942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943 mandir=$ac_optarg ;;
944
945 -nfp | --nfp | --nf)
946 # Obsolete; use --without-fp.
947 with_fp=no ;;
948
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000950 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000951 no_create=yes ;;
952
953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955 no_recursion=yes ;;
956
957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959 | --oldin | --oldi | --old | --ol | --o)
960 ac_prev=oldincludedir ;;
961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964 oldincludedir=$ac_optarg ;;
965
966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967 ac_prev=prefix ;;
968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969 prefix=$ac_optarg ;;
970
971 -program-prefix | --program-prefix | --program-prefi | --program-pref \
972 | --program-pre | --program-pr | --program-p)
973 ac_prev=program_prefix ;;
974 -program-prefix=* | --program-prefix=* | --program-prefi=* \
975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976 program_prefix=$ac_optarg ;;
977
978 -program-suffix | --program-suffix | --program-suffi | --program-suff \
979 | --program-suf | --program-su | --program-s)
980 ac_prev=program_suffix ;;
981 -program-suffix=* | --program-suffix=* | --program-suffi=* \
982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983 program_suffix=$ac_optarg ;;
984
985 -program-transform-name | --program-transform-name \
986 | --program-transform-nam | --program-transform-na \
987 | --program-transform-n | --program-transform- \
988 | --program-transform | --program-transfor \
989 | --program-transfo | --program-transf \
990 | --program-trans | --program-tran \
991 | --progr-tra | --program-tr | --program-t)
992 ac_prev=program_transform_name ;;
993 -program-transform-name=* | --program-transform-name=* \
994 | --program-transform-nam=* | --program-transform-na=* \
995 | --program-transform-n=* | --program-transform-=* \
996 | --program-transform=* | --program-transfor=* \
997 | --program-transfo=* | --program-transf=* \
998 | --program-trans=* | --program-tran=* \
999 | --progr-tra=* | --program-tr=* | --program-t=*)
1000 program_transform_name=$ac_optarg ;;
1001
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003 ac_prev=pdfdir ;;
1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005 pdfdir=$ac_optarg ;;
1006
1007 -psdir | --psdir | --psdi | --psd | --ps)
1008 ac_prev=psdir ;;
1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010 psdir=$ac_optarg ;;
1011
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1014 silent=yes ;;
1015
1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017 ac_prev=sbindir ;;
1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019 | --sbi=* | --sb=*)
1020 sbindir=$ac_optarg ;;
1021
1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024 | --sharedst | --shareds | --shared | --share | --shar \
1025 | --sha | --sh)
1026 ac_prev=sharedstatedir ;;
1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030 | --sha=* | --sh=*)
1031 sharedstatedir=$ac_optarg ;;
1032
1033 -site | --site | --sit)
1034 ac_prev=site ;;
1035 -site=* | --site=* | --sit=*)
1036 site=$ac_optarg ;;
1037
1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039 ac_prev=srcdir ;;
1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1041 srcdir=$ac_optarg ;;
1042
1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044 | --syscon | --sysco | --sysc | --sys | --sy)
1045 ac_prev=sysconfdir ;;
1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1048 sysconfdir=$ac_optarg ;;
1049
1050 -target | --target | --targe | --targ | --tar | --ta | --t)
1051 ac_prev=target_alias ;;
1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1053 target_alias=$ac_optarg ;;
1054
1055 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056 verbose=yes ;;
1057
1058 -version | --version | --versio | --versi | --vers | -V)
1059 ac_init_version=: ;;
1060
1061 -with-* | --with-*)
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001062 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001063 # Reject names that are not valid shell variable names.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_$ac_package=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001069
1070 -without-* | --without-*)
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001071 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001072 # Reject names that are not valid shell variable names.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_$ac_package=no ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001078
1079 --x)
1080 # Obsolete; use --with-x.
1081 with_x=yes ;;
1082
1083 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1084 | --x-incl | --x-inc | --x-in | --x-i)
1085 ac_prev=x_includes ;;
1086 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1087 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1088 x_includes=$ac_optarg ;;
1089
1090 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1091 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1092 ac_prev=x_libraries ;;
1093 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1094 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1095 x_libraries=$ac_optarg ;;
1096
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001097 -*) { echo "$as_me: error: unrecognized option: $ac_option
1098Try \`$0 --help' for more information." >&2
1099 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001100 ;;
1101
1102 *=*)
1103 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001105 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1106 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1107 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001108 eval $ac_envvar=\$ac_optarg
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001109 export $ac_envvar ;;
1110
1111 *)
1112 # FIXME: should be removed in autoconf 3.0.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001113 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001115 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001116 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1117 ;;
1118
1119 esac
1120done
1121
1122if test -n "$ac_prev"; then
1123 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001124 { echo "$as_me: error: missing argument to $ac_option" >&2
1125 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001126fi
1127
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001128# Be sure to have absolute directory names.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001129for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001133do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001134 eval ac_val=\$$ac_var
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001135 case $ac_val in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001136 [\\/$]* | ?:[\\/]* ) continue;;
1137 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001138 esac
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1140 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001141done
1142
1143# There might be people who depend on the old broken behavior: `$host'
1144# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001145# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001146build=$build_alias
1147host=$host_alias
1148target=$target_alias
1149
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001150# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001151if test "x$host_alias" != x; then
1152 if test "x$build_alias" = x; then
1153 cross_compiling=maybe
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001154 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1157 cross_compiling=yes
1158 fi
1159fi
1160
1161ac_tool_prefix=
1162test -n "$host_alias" && ac_tool_prefix=$host_alias-
1163
1164test "$silent" = yes && exec 6>/dev/null
1165
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001166
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001167ac_pwd=`pwd` && test -n "$ac_pwd" &&
1168ac_ls_di=`ls -di .` &&
1169ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001170 { echo "$as_me: error: Working directory cannot be determined" >&2
1171 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001172test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001173 { echo "$as_me: error: pwd does not report name of working directory" >&2
1174 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001175
1176
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001177# Find the source files, if location was not specified.
1178if test -z "$srcdir"; then
1179 ac_srcdir_defaulted=yes
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001180 # Try the directory containing this script, then the parent directory.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001181 ac_confdir=`$as_dirname -- "$0" ||
1182$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1183 X"$0" : 'X\(//\)[^/]' \| \
1184 X"$0" : 'X\(//\)$' \| \
1185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1186echo X"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\/\)[^/].*/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\/\)$/{
1196 s//\1/
1197 q
1198 }
1199 /^X\(\/\).*/{
1200 s//\1/
1201 q
1202 }
1203 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001204 srcdir=$ac_confdir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001205 if test ! -r "$srcdir/$ac_unique_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001206 srcdir=..
1207 fi
1208else
1209 ac_srcdir_defaulted=no
1210fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001211if test ! -r "$srcdir/$ac_unique_file"; then
1212 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001213 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1214 { (exit 1); exit 1; }; }
Benny Prijono9489e7a2008-09-19 22:18:50 +00001215fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001216ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1217ac_abs_confdir=`(
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1219 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001220 pwd)`
1221# When building in place, set srcdir=.
1222if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 srcdir=.
1224fi
1225# Remove unnecessary trailing slashes from srcdir.
1226# Double slashes in file names in object file debugging info
1227# mess up M-x gdb in Emacs.
1228case $srcdir in
1229*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230esac
1231for ac_var in $ac_precious_vars; do
1232 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_${ac_var}_value=\$${ac_var}
1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1236done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001237
1238#
1239# Report the --help message.
1240#
1241if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001244 cat <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001245\`configure' configures pjproject 1.x to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001246
1247Usage: $0 [OPTION]... [VAR=VALUE]...
1248
1249To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250VAR=VALUE. See below for descriptions of some of the useful variables.
1251
1252Defaults for the options are specified in brackets.
1253
1254Configuration:
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1264
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001265Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001267 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001269 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001270
1271By default, \`make install' will install all the files in
1272\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274for instance \`--prefix=\$HOME'.
1275
1276For better control, use the options below.
1277
1278Fine tuning of the installation directories:
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001298_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001299
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001300 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001301
1302System types:
1303 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001304 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001305 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001306_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001307fi
1308
1309if test -n "$ac_init_help"; then
1310 case $ac_init_help in
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001311 short | recursive ) echo "Configuration of pjproject 1.x:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001312 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001313 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001314
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001315Optional Features:
1316 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1317 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1318 --disable-floating-point
1319 Disable floating point where possible
Benny Prijono9489e7a2008-09-19 22:18:50 +00001320 --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
Benny Prijono1d971622006-09-10 22:27:40 +00001321 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijono0b462322008-03-12 22:44:24 +00001322 --disable-oss Disable OSS audio (default: not disabled)
Benny Prijonoebb2c332008-07-28 23:40:58 +00001323 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001324 --disable-small-filter Exclude small filter in resampling
1325 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001326 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1327 --disable-g711-codec Exclude G.711 codecs from the build
1328 --disable-l16-codec Exclude Linear/L16 codec family from the build
1329 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +00001330 --disable-g722-codec Exclude G.722 codec in the build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001331 --disable-g7221-codec Exclude G.7221 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001332 --disable-speex-codec Exclude Speex codecs in the build
1333 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +00001334 --enable-libsamplerate Link with libsamplerate when available. Note that
1335 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijonoc45d9512010-12-10 11:04:30 +00001336 --disable-sdl Disable SDL (default: not disabled)
1337 --disable-ffmpeg Disable ffmpeg (default: not disabled)
1338 --disable-v4l2 Disable Video4Linux2 (default: not disabled)
Benny Prijono0822c192008-08-21 20:59:58 +00001339 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
1340 package and samples location using IPPROOT and
1341 IPPSAMPLES env var or with --with-ipp and
1342 --with-ipp-samples options
Benny Prijonoce1db762007-02-14 02:21:08 +00001343 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001344
1345
Benny Prijonofe0c1272010-01-13 16:28:15 +00001346Optional Packages:
1347 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1348 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001349 --with-external-speex Use external Speex development files, not the one in
1350 "third_party" directory. When this option is set,
1351 make sure that Speex is accessible to use (hint: use
1352 CFLAGS and LDFLAGS env var to set the include/lib
1353 paths)
1354 --with-external-gsm Use external GSM codec library, not the one in
1355 "third_party" directory. When this option is set,
1356 make sure that the GSM include/lib files are
1357 accessible to use (hint: use CFLAGS and LDFLAGS env
1358 var to set the include/lib paths)
1359 --with-external-pa Use external PortAudio development files, not the
1360 one in "third_party" directory. When this option is
1361 set, make sure that PortAudio is accessible to use
1362 (hint: use CFLAGS and LDFLAGS env var to set the
1363 include/lib paths)
Benny Prijono5b0af632011-07-20 03:16:25 +00001364 --with-sdl=DIR Specify alternate libSDL prefix
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00001365 --with-ffmpeg=DIR Specify alternate FFMPEG prefix
Benny Prijono3965f192010-02-10 18:46:05 +00001366 --with-ipp=DIR Specify the Intel IPP location
1367 --with-ipp-samples=DIR Specify the Intel IPP samples location
1368 --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or
Benny Prijono46bd0842010-02-12 14:12:41 +00001369 "em64t. Default is blank for IA32"
Benny Prijonofe0c1272010-01-13 16:28:15 +00001370
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001371Some influential environment variables:
1372 CC C compiler command
1373 CFLAGS C compiler flags
1374 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1375 nonstandard directory <lib dir>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001376 LIBS libraries to pass to the linker, e.g. -l<library>
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001377 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001378 you have headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001379 CXX C++ compiler command
1380 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001381 CPP C preprocessor
1382
1383Use these variables to override the choices made by `configure' or to help
1384it to find libraries and programs with nonstandard names/locations.
1385
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001386_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001387ac_status=$?
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001388fi
1389
1390if test "$ac_init_help" = "recursive"; then
1391 # If there are subdirs, report their specific --help.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001392 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001393 test -d "$ac_dir" || continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001394 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001395
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001396case "$ac_dir" in
1397.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398*)
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001399 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001400 # A ".." for each directory in $ac_dir_suffix.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001401 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001402 case $ac_top_builddir_sub in
1403 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1405 esac ;;
1406esac
1407ac_abs_top_builddir=$ac_pwd
1408ac_abs_builddir=$ac_pwd$ac_dir_suffix
1409# for backward compatibility:
1410ac_top_builddir=$ac_top_build_prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001411
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001412case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001413 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001414 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001415 ac_top_srcdir=$ac_top_builddir_sub
1416 ac_abs_top_srcdir=$ac_pwd ;;
1417 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001418 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001419 ac_top_srcdir=$srcdir
1420 ac_abs_top_srcdir=$srcdir ;;
1421 *) # Relative name.
1422 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1423 ac_top_srcdir=$ac_top_build_prefix$srcdir
1424 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001425esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001426ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001427
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001428 cd "$ac_dir" || { ac_status=$?; continue; }
1429 # Check for guested configure.
1430 if test -f "$ac_srcdir/configure.gnu"; then
1431 echo &&
1432 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1433 elif test -f "$ac_srcdir/configure"; then
1434 echo &&
1435 $SHELL "$ac_srcdir/configure" --help=recursive
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001436 else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001437 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001438 fi || ac_status=$?
1439 cd "$ac_pwd" || { ac_status=$?; break; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001440 done
1441fi
1442
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001443test -n "$ac_init_help" && exit $ac_status
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001444if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001445 cat <<\_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001446pjproject configure 1.x
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001447generated by GNU Autoconf 2.61
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001448
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001449Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14502002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001451This configure script is free software; the Free Software Foundation
1452gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001453_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001454 exit
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001455fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001456cat >config.log <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001457This file contains any messages produced by compilers while
1458running configure, to aid debugging if configure makes a mistake.
1459
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001460It was created by pjproject $as_me 1.x, which was
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001461generated by GNU Autoconf 2.61. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001462
1463 $ $0 $@
1464
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001465_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001466exec 5>>config.log
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001467{
1468cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001469## --------- ##
1470## Platform. ##
1471## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001472
1473hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1474uname -m = `(uname -m) 2>/dev/null || echo unknown`
1475uname -r = `(uname -r) 2>/dev/null || echo unknown`
1476uname -s = `(uname -s) 2>/dev/null || echo unknown`
1477uname -v = `(uname -v) 2>/dev/null || echo unknown`
1478
1479/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1480/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1481
1482/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1483/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1484/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001485/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001486/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1487/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1488/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1489
1490_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001491
1492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493for as_dir in $PATH
1494do
1495 IFS=$as_save_IFS
1496 test -z "$as_dir" && as_dir=.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001497 echo "PATH: $as_dir"
1498done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001499IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001500
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001501} >&5
1502
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001503cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001504
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001505
1506## ----------- ##
1507## Core tests. ##
1508## ----------- ##
1509
1510_ACEOF
1511
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001512
1513# Keep a trace of the command line.
1514# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001515# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001516# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001517# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001518ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001519ac_configure_args0=
1520ac_configure_args1=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001521ac_must_keep_next=false
1522for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001523do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001524 for ac_arg
1525 do
1526 case $ac_arg in
1527 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1528 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1529 | -silent | --silent | --silen | --sile | --sil)
1530 continue ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001531 *\'*)
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001532 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001533 esac
1534 case $ac_pass in
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001535 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001536 2)
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001537 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001538 if test $ac_must_keep_next = true; then
1539 ac_must_keep_next=false # Got value, back to normal.
1540 else
1541 case $ac_arg in
1542 *=* | --config-cache | -C | -disable-* | --disable-* \
1543 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1544 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1545 | -with-* | --with-* | -without-* | --without-* | --x)
1546 case "$ac_configure_args0 " in
1547 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1548 esac
1549 ;;
1550 -* ) ac_must_keep_next=true ;;
1551 esac
1552 fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001553 ac_configure_args="$ac_configure_args '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001554 ;;
1555 esac
1556 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001557done
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001558$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1559$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 +00001560
1561# When interrupted or exit'd, cleanup temporary files, and complete
1562# config.log. We remove comments because anyway the quotes in there
1563# would cause problems or look ugly.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001564# WARNING: Use '\'' to represent an apostrophe within the trap.
1565# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001566trap 'exit_status=$?
1567 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001568 {
1569 echo
1570
1571 cat <<\_ASBOX
1572## ---------------- ##
1573## Cache variables. ##
1574## ---------------- ##
1575_ASBOX
1576 echo
1577 # The following way of writing the cache mishandles newlines in values,
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001578(
1579 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1580 eval ac_val=\$$ac_var
1581 case $ac_val in #(
1582 *${as_nl}*)
1583 case $ac_var in #(
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001584 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1585echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001586 esac
1587 case $ac_var in #(
1588 _ | IFS | as_nl) ;; #(
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001589 *) $as_unset $ac_var ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001590 esac ;;
1591 esac
1592 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001593 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001594 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1595 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001596 sed -n \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001597 "s/'\''/'\''\\\\'\'''\''/g;
1598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1599 ;; #(
Benny Prijonoe2746132008-09-27 13:16:35 +00001600 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoe2746132008-09-27 13:16:35 +00001602 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001603 esac |
1604 sort
1605)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001606 echo
1607
1608 cat <<\_ASBOX
1609## ----------------- ##
1610## Output variables. ##
1611## ----------------- ##
1612_ASBOX
1613 echo
1614 for ac_var in $ac_subst_vars
1615 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001616 eval ac_val=\$$ac_var
1617 case $ac_val in
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001618 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001619 esac
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001620 echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001621 done | sort
1622 echo
1623
1624 if test -n "$ac_subst_files"; then
1625 cat <<\_ASBOX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001626## ------------------- ##
1627## File substitutions. ##
1628## ------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001629_ASBOX
1630 echo
1631 for ac_var in $ac_subst_files
1632 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001633 eval ac_val=\$$ac_var
1634 case $ac_val in
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001635 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001636 esac
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001637 echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001638 done | sort
1639 echo
1640 fi
1641
1642 if test -s confdefs.h; then
1643 cat <<\_ASBOX
1644## ----------- ##
1645## confdefs.h. ##
1646## ----------- ##
1647_ASBOX
1648 echo
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001649 cat confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001650 echo
1651 fi
1652 test "$ac_signal" != 0 &&
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001653 echo "$as_me: caught signal $ac_signal"
1654 echo "$as_me: exit $exit_status"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001655 } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001656 rm -f core *.core core.conftest.* &&
1657 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001658 exit $exit_status
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001659' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001660for ac_signal in 1 2 13 15; do
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001661 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001662done
1663ac_signal=0
1664
1665# confdefs.h avoids OS command line length limits that DEFS can exceed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001666rm -f -r conftest* confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001667
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001668# Predefined preprocessor variables.
1669
1670cat >>confdefs.h <<_ACEOF
1671#define PACKAGE_NAME "$PACKAGE_NAME"
1672_ACEOF
1673
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001674
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001675cat >>confdefs.h <<_ACEOF
1676#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1677_ACEOF
1678
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001679
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001680cat >>confdefs.h <<_ACEOF
1681#define PACKAGE_VERSION "$PACKAGE_VERSION"
1682_ACEOF
1683
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001684
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001685cat >>confdefs.h <<_ACEOF
1686#define PACKAGE_STRING "$PACKAGE_STRING"
1687_ACEOF
1688
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001689
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001690cat >>confdefs.h <<_ACEOF
1691#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1692_ACEOF
1693
1694
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001695# Let the site file select an alternate cache file if it wants to.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001696# Prefer explicitly selected file to automatically selected ones.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001697if test -n "$CONFIG_SITE"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001698 set x "$CONFIG_SITE"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001699elif test "x$prefix" != xNONE; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001700 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001701else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001702 set x "$ac_default_prefix/share/config.site" \
1703 "$ac_default_prefix/etc/config.site"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001704fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001705shift
1706for ac_site_file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001707do
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001708 if test -r "$ac_site_file"; then
1709 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1710echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001711 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001712 . "$ac_site_file"
1713 fi
1714done
1715
1716if test -r "$cache_file"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001717 # Some versions of bash will fail to source /dev/null (special
1718 # files actually), so we avoid doing that.
1719 if test -f "$cache_file"; then
1720 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1721echo "$as_me: loading cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001722 case $cache_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001723 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1724 *) . "./$cache_file";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001725 esac
1726 fi
1727else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001728 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1729echo "$as_me: creating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001730 >$cache_file
1731fi
1732
1733# Check that the precious variables saved in the cache have kept the same
1734# value.
1735ac_cache_corrupted=false
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001736for ac_var in $ac_precious_vars; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001737 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1738 eval ac_new_set=\$ac_env_${ac_var}_set
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001739 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1740 eval ac_new_val=\$ac_env_${ac_var}_value
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001741 case $ac_old_set,$ac_new_set in
1742 set,)
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001743 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1744echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001745 ac_cache_corrupted=: ;;
1746 ,set)
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001747 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1748echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001749 ac_cache_corrupted=: ;;
1750 ,);;
1751 *)
1752 if test "x$ac_old_val" != "x$ac_new_val"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001753 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1754echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1755 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1756echo "$as_me: former value: $ac_old_val" >&2;}
1757 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1758echo "$as_me: current value: $ac_new_val" >&2;}
1759 ac_cache_corrupted=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001760 fi;;
1761 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001762 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001763 if test "$ac_new_set" = set; then
1764 case $ac_new_val in
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001765 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001766 *) ac_arg=$ac_var=$ac_new_val ;;
1767 esac
1768 case " $ac_configure_args " in
1769 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001770 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001771 esac
1772 fi
1773done
1774if $ac_cache_corrupted; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001775 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1776echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1777 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1778echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1779 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001780fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001805
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001806ac_ext=c
1807ac_cpp='$CPP $CPPFLAGS'
1808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1810ac_compiler_gnu=$ac_cv_c_compiler_gnu
1811
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001812
1813
Benny Prijono5b818b22006-09-17 22:58:51 +00001814host_orig="$host"
1815
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001816ac_aux_dir=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001817for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001818 if test -f "$ac_dir/install-sh"; then
1819 ac_aux_dir=$ac_dir
1820 ac_install_sh="$ac_aux_dir/install-sh -c"
1821 break
1822 elif test -f "$ac_dir/install.sh"; then
1823 ac_aux_dir=$ac_dir
1824 ac_install_sh="$ac_aux_dir/install.sh -c"
1825 break
1826 elif test -f "$ac_dir/shtool"; then
1827 ac_aux_dir=$ac_dir
1828 ac_install_sh="$ac_aux_dir/shtool install -c"
1829 break
1830 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001831done
1832if test -z "$ac_aux_dir"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001833 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1834echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1835 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001836fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001837
1838# These three variables are undocumented and unsupported,
1839# and are intended to be withdrawn in a future Autoconf release.
1840# They can cause serious problems if a builder's source tree is in a directory
1841# whose full name contains unusual characters.
1842ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1843ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1844ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1845
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001846
1847# Make sure we can run config.sub.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001848$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001849 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1850echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1851 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001852
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001853{ echo "$as_me:$LINENO: checking build system type" >&5
1854echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1855if test "${ac_cv_build+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001857else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001858 ac_build_alias=$build_alias
1859test "x$ac_build_alias" = x &&
1860 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1861test "x$ac_build_alias" = x &&
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001862 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1863echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1864 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001865ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001866 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1867echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1868 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001869
1870fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001871{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1872echo "${ECHO_T}$ac_cv_build" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001873case $ac_cv_build in
1874*-*-*) ;;
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001875*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1876echo "$as_me: error: invalid value of canonical build" >&2;}
1877 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001878esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001879build=$ac_cv_build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001880ac_save_IFS=$IFS; IFS='-'
1881set x $ac_cv_build
1882shift
1883build_cpu=$1
1884build_vendor=$2
1885shift; shift
1886# Remember, the first character of IFS is used to create $*,
1887# except with old shells:
1888build_os=$*
1889IFS=$ac_save_IFS
1890case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001891
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001892
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001893{ echo "$as_me:$LINENO: checking host system type" >&5
1894echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1895if test "${ac_cv_host+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001897else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001898 if test "x$host_alias" = x; then
1899 ac_cv_host=$ac_cv_build
1900else
1901 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001902 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1903echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1904 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001905fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001906
1907fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001908{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1909echo "${ECHO_T}$ac_cv_host" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001910case $ac_cv_host in
1911*-*-*) ;;
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001912*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1913echo "$as_me: error: invalid value of canonical host" >&2;}
1914 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001915esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001916host=$ac_cv_host
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001917ac_save_IFS=$IFS; IFS='-'
1918set x $ac_cv_host
1919shift
1920host_cpu=$1
1921host_vendor=$2
1922shift; shift
1923# Remember, the first character of IFS is used to create $*,
1924# except with old shells:
1925host_os=$*
1926IFS=$ac_save_IFS
1927case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001928
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001929
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001930{ echo "$as_me:$LINENO: checking target system type" >&5
1931echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1932if test "${ac_cv_target+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001934else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001935 if test "x$target_alias" = x; then
1936 ac_cv_target=$ac_cv_host
1937else
1938 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001939 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1940echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1941 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001942fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001943
1944fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001945{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1946echo "${ECHO_T}$ac_cv_target" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001947case $ac_cv_target in
1948*-*-*) ;;
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001949*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1950echo "$as_me: error: invalid value of canonical target" >&2;}
1951 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001952esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001953target=$ac_cv_target
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001954ac_save_IFS=$IFS; IFS='-'
1955set x $ac_cv_target
1956shift
1957target_cpu=$1
1958target_vendor=$2
1959shift; shift
1960# Remember, the first character of IFS is used to create $*,
1961# except with old shells:
1962target_os=$*
1963IFS=$ac_save_IFS
1964case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001965
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001966
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001967# The aliases save the names the user supplied, while $host etc.
1968# will get canonicalized.
1969test -n "$target_alias" &&
1970 test "$program_prefix$program_suffix$program_transform_name" = \
1971 NONENONEs,x,x, &&
1972 program_prefix=${target_alias}-
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001973ac_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 +00001974
Benny Prijono8ec5eae2010-05-12 10:59:20 +00001975ac_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 +00001976
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001977
Benny Prijono12483112007-03-12 10:44:38 +00001978
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001979if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00001980 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001981else
1982 CFLAGS="$CFLAGS"
1983fi
1984
1985CXXFLAGS="$CFLAGS $CXXFLAGS"
1986
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001987ac_ext=c
1988ac_cpp='$CPP $CPPFLAGS'
1989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1991ac_compiler_gnu=$ac_cv_c_compiler_gnu
1992if test -n "$ac_tool_prefix"; then
1993 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1994set dummy ${ac_tool_prefix}gcc; ac_word=$2
Sauw Mingd8aa67c2011-08-09 04:31:41 +00001995{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1997if test "${ac_cv_prog_CC+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001999else
2000 if test -n "$CC"; then
2001 ac_cv_prog_CC="$CC" # Let the user override the test.
2002else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004for as_dir in $PATH
2005do
2006 IFS=$as_save_IFS
2007 test -z "$as_dir" && as_dir=.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002008 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002009 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 +00002010 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002012 break 2
2013 fi
2014done
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002015done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002016IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002017
2018fi
2019fi
2020CC=$ac_cv_prog_CC
2021if test -n "$CC"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002022 { echo "$as_me:$LINENO: result: $CC" >&5
2023echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002024else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002025 { echo "$as_me:$LINENO: result: no" >&5
2026echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002027fi
2028
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002029
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002030fi
2031if test -z "$ac_cv_prog_CC"; then
2032 ac_ct_CC=$CC
2033 # Extract the first word of "gcc", so it can be a program name with args.
2034set dummy gcc; ac_word=$2
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002035{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2037if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002039else
2040 if test -n "$ac_ct_CC"; then
2041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2042else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044for as_dir in $PATH
2045do
2046 IFS=$as_save_IFS
2047 test -z "$as_dir" && as_dir=.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002048 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002049 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 +00002050 ac_cv_prog_ac_ct_CC="gcc"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002052 break 2
2053 fi
2054done
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002055done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002056IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002057
2058fi
2059fi
2060ac_ct_CC=$ac_cv_prog_ac_ct_CC
2061if test -n "$ac_ct_CC"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002062 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2063echo "${ECHO_T}$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002064else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002065 { echo "$as_me:$LINENO: result: no" >&5
2066echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002067fi
2068
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002069 if test "x$ac_ct_CC" = x; then
2070 CC=""
2071 else
2072 case $cross_compiling:$ac_tool_warned in
2073yes:)
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002074{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2075whose name does not start with the host triplet. If you think this
2076configuration is useful to you, please write to autoconf@gnu.org." >&5
2077echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2078whose name does not start with the host triplet. If you think this
2079configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002080ac_tool_warned=yes ;;
2081esac
2082 CC=$ac_ct_CC
2083 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002084else
2085 CC="$ac_cv_prog_CC"
2086fi
2087
2088if test -z "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002089 if test -n "$ac_tool_prefix"; then
2090 # 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 +00002091set dummy ${ac_tool_prefix}cc; ac_word=$2
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002092{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2094if test "${ac_cv_prog_CC+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002096else
2097 if test -n "$CC"; then
2098 ac_cv_prog_CC="$CC" # Let the user override the test.
2099else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101for as_dir in $PATH
2102do
2103 IFS=$as_save_IFS
2104 test -z "$as_dir" && as_dir=.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002105 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002106 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 +00002107 ac_cv_prog_CC="${ac_tool_prefix}cc"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002109 break 2
2110 fi
2111done
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002112done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002113IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002114
2115fi
2116fi
2117CC=$ac_cv_prog_CC
2118if test -n "$CC"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002119 { echo "$as_me:$LINENO: result: $CC" >&5
2120echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002121else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002122 { echo "$as_me:$LINENO: result: no" >&5
2123echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002124fi
2125
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002126
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002127 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002128fi
2129if test -z "$CC"; then
2130 # Extract the first word of "cc", so it can be a program name with args.
2131set dummy cc; ac_word=$2
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002132{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2134if test "${ac_cv_prog_CC+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002136else
2137 if test -n "$CC"; then
2138 ac_cv_prog_CC="$CC" # Let the user override the test.
2139else
2140 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142for as_dir in $PATH
2143do
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002146 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002147 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 +00002148 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2149 ac_prog_rejected=yes
2150 continue
2151 fi
2152 ac_cv_prog_CC="cc"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002154 break 2
2155 fi
2156done
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002157done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002158IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002159
2160if test $ac_prog_rejected = yes; then
2161 # We found a bogon in the path, so make sure we never use it.
2162 set dummy $ac_cv_prog_CC
2163 shift
2164 if test $# != 0; then
2165 # We chose a different compiler from the bogus one.
2166 # However, it has the same basename, so the bogon will be chosen
2167 # first if we set CC to just the basename; use the full file name.
2168 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002169 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002170 fi
2171fi
2172fi
2173fi
2174CC=$ac_cv_prog_CC
2175if test -n "$CC"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002176 { echo "$as_me:$LINENO: result: $CC" >&5
2177echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002178else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002179 { echo "$as_me:$LINENO: result: no" >&5
2180echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002181fi
2182
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002183
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002184fi
2185if test -z "$CC"; then
2186 if test -n "$ac_tool_prefix"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002187 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002188 do
2189 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2190set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2193if test "${ac_cv_prog_CC+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002195else
2196 if test -n "$CC"; then
2197 ac_cv_prog_CC="$CC" # Let the user override the test.
2198else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200for as_dir in $PATH
2201do
2202 IFS=$as_save_IFS
2203 test -z "$as_dir" && as_dir=.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002204 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002205 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 +00002206 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002208 break 2
2209 fi
2210done
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002211done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002212IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002213
2214fi
2215fi
2216CC=$ac_cv_prog_CC
2217if test -n "$CC"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002218 { echo "$as_me:$LINENO: result: $CC" >&5
2219echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002220else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002221 { echo "$as_me:$LINENO: result: no" >&5
2222echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002223fi
2224
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002225
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002226 test -n "$CC" && break
2227 done
2228fi
2229if test -z "$CC"; then
2230 ac_ct_CC=$CC
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002231 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002232do
2233 # Extract the first word of "$ac_prog", so it can be a program name with args.
2234set dummy $ac_prog; ac_word=$2
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002235{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2237if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002239else
2240 if test -n "$ac_ct_CC"; then
2241 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2242else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244for as_dir in $PATH
2245do
2246 IFS=$as_save_IFS
2247 test -z "$as_dir" && as_dir=.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002248 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002249 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 +00002250 ac_cv_prog_ac_ct_CC="$ac_prog"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002252 break 2
2253 fi
2254done
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002255done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002256IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002257
2258fi
2259fi
2260ac_ct_CC=$ac_cv_prog_ac_ct_CC
2261if test -n "$ac_ct_CC"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002262 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2263echo "${ECHO_T}$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002264else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002265 { echo "$as_me:$LINENO: result: no" >&5
2266echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002267fi
2268
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002269
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002270 test -n "$ac_ct_CC" && break
2271done
2272
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002273 if test "x$ac_ct_CC" = x; then
2274 CC=""
2275 else
2276 case $cross_compiling:$ac_tool_warned in
2277yes:)
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002278{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2279whose name does not start with the host triplet. If you think this
2280configuration is useful to you, please write to autoconf@gnu.org." >&5
2281echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2282whose name does not start with the host triplet. If you think this
2283configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002284ac_tool_warned=yes ;;
2285esac
2286 CC=$ac_ct_CC
2287 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002288fi
2289
2290fi
2291
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002292
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002293test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2294See \`config.log' for more details." >&5
2295echo "$as_me: error: no acceptable C compiler found in \$PATH
2296See \`config.log' for more details." >&2;}
2297 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002298
2299# Provide some information about the compiler.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002300echo "$as_me:$LINENO: checking for C compiler version" >&5
2301ac_compiler=`set X $ac_compile; echo $2`
2302{ (ac_try="$ac_compiler --version >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002303case "(($ac_try" in
2304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305 *) ac_try_echo=$ac_try;;
2306esac
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2308 (eval "$ac_compiler --version >&5") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002309 ac_status=$?
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }
2312{ (ac_try="$ac_compiler -v >&5"
2313case "(($ac_try" in
2314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2315 *) ac_try_echo=$ac_try;;
2316esac
2317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2318 (eval "$ac_compiler -v >&5") 2>&5
2319 ac_status=$?
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }
2322{ (ac_try="$ac_compiler -V >&5"
2323case "(($ac_try" in
2324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325 *) ac_try_echo=$ac_try;;
2326esac
2327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2328 (eval "$ac_compiler -V >&5") 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002332
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002333cat >conftest.$ac_ext <<_ACEOF
2334/* confdefs.h. */
2335_ACEOF
2336cat confdefs.h >>conftest.$ac_ext
2337cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002338/* end confdefs.h. */
Benny Prijono5bbebc02010-06-15 05:21:43 +00002339
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002340int
2341main ()
2342{
2343
2344 ;
2345 return 0;
2346}
2347_ACEOF
2348ac_clean_files_save=$ac_clean_files
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002349ac_clean_files="$ac_clean_files a.out a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002350# Try to create an executable without -o first, disregard a.out.
2351# It will help us diagnose broken compilers, and finding out an intuition
2352# of exeext.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002353{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2354echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2355ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2356#
2357# List of possible output files, starting from the most likely.
2358# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2359# only as a last resort. b.out is created by i960 compilers.
2360ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2361#
2362# The IRIX 6 linker writes into existing files which may not be
2363# executable, retaining their permissions. Remove them first so a
2364# subsequent execution test works.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002365ac_rmfiles=
2366for ac_file in $ac_files
2367do
2368 case $ac_file in
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002370 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2371 esac
2372done
2373rm -f $ac_rmfiles
2374
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002375if { (ac_try="$ac_link_default"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002376case "(($ac_try" in
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2379esac
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002381 (eval "$ac_link_default") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002382 ac_status=$?
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002385 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2386# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2387# in a Makefile. We should not override ac_cv_exeext if it was cached,
2388# so that the user can short-circuit this test for compilers unknown to
2389# Autoconf.
2390for ac_file in $ac_files ''
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002391do
2392 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002393 case $ac_file in
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002395 ;;
2396 [ab].out )
2397 # We found the default executable, but exeext='' is most
2398 # certainly right.
2399 break;;
2400 *.* )
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002401 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002402 then :; else
2403 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2404 fi
2405 # We set ac_cv_exeext here because the later test for it is not
2406 # safe: cross compilers may not add the suffix if given an `-o'
2407 # argument, so we may need to know it at that point already.
2408 # Even if this section looks crufty: it has the advantage of
2409 # actually working.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002410 break;;
2411 * )
2412 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002413 esac
2414done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002415test "$ac_cv_exeext" = no && ac_cv_exeext=
2416
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002417else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002418 ac_file=''
2419fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002420
2421{ echo "$as_me:$LINENO: result: $ac_file" >&5
2422echo "${ECHO_T}$ac_file" >&6; }
2423if test -z "$ac_file"; then
2424 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002425sed 's/^/| /' conftest.$ac_ext >&5
2426
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002427{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2428See \`config.log' for more details." >&5
2429echo "$as_me: error: C compiler cannot create executables
2430See \`config.log' for more details." >&2;}
2431 { (exit 77); exit 77; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002432fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002433
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002434ac_exeext=$ac_cv_exeext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002435
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002436# Check that the compiler produces executables we can run. If not, either
2437# the compiler is broken, or we cross compile.
2438{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2439echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2440# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2441# If not cross compiling, check that we can run a simple program.
2442if test "$cross_compiling" != yes; then
2443 if { ac_try='./$ac_file'
2444 { (case "(($ac_try" in
2445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446 *) ac_try_echo=$ac_try;;
2447esac
2448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2449 (eval "$ac_try") 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; }; then
2453 cross_compiling=no
2454 else
2455 if test "$cross_compiling" = maybe; then
2456 cross_compiling=yes
2457 else
2458 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2459If you meant to cross compile, use \`--host'.
2460See \`config.log' for more details." >&5
2461echo "$as_me: error: cannot run C compiled programs.
2462If you meant to cross compile, use \`--host'.
2463See \`config.log' for more details." >&2;}
2464 { (exit 1); exit 1; }; }
2465 fi
2466 fi
2467fi
2468{ echo "$as_me:$LINENO: result: yes" >&5
2469echo "${ECHO_T}yes" >&6; }
2470
2471rm -f a.out a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002472ac_clean_files=$ac_clean_files_save
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002473# Check that the compiler produces executables we can run. If not, either
2474# the compiler is broken, or we cross compile.
2475{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2476echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2477{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2478echo "${ECHO_T}$cross_compiling" >&6; }
2479
2480{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2481echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2482if { (ac_try="$ac_link"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002483case "(($ac_try" in
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2486esac
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002488 (eval "$ac_link") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002489 ac_status=$?
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002492 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2493# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2494# work properly (i.e., refer to `conftest.exe'), while it won't with
2495# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002496for ac_file in conftest.exe conftest conftest.*; do
2497 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002498 case $ac_file in
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002500 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002501 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002502 * ) break;;
2503 esac
2504done
2505else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002506 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2507See \`config.log' for more details." >&5
2508echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2509See \`config.log' for more details." >&2;}
2510 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002511fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002512
2513rm -f conftest$ac_cv_exeext
2514{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2515echo "${ECHO_T}$ac_cv_exeext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002516
2517rm -f conftest.$ac_ext
2518EXEEXT=$ac_cv_exeext
2519ac_exeext=$EXEEXT
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002520{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2521echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2522if test "${ac_cv_objext+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono5b0af632011-07-20 03:16:25 +00002524else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002525 cat >conftest.$ac_ext <<_ACEOF
2526/* confdefs.h. */
2527_ACEOF
2528cat confdefs.h >>conftest.$ac_ext
2529cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002530/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002531
2532int
2533main ()
2534{
2535
2536 ;
2537 return 0;
2538}
2539_ACEOF
2540rm -f conftest.o conftest.obj
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002541if { (ac_try="$ac_compile"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002542case "(($ac_try" in
2543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544 *) ac_try_echo=$ac_try;;
2545esac
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002547 (eval "$ac_compile") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002548 ac_status=$?
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002551 for ac_file in conftest.o conftest.obj conftest.*; do
2552 test -f "$ac_file" || continue;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002553 case $ac_file in
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002555 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2556 break;;
2557 esac
2558done
2559else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002560 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002561sed 's/^/| /' conftest.$ac_ext >&5
2562
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002563{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2564See \`config.log' for more details." >&5
2565echo "$as_me: error: cannot compute suffix of object files: cannot compile
2566See \`config.log' for more details." >&2;}
2567 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002568fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002569
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002570rm -f conftest.$ac_cv_objext conftest.$ac_ext
2571fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002572{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2573echo "${ECHO_T}$ac_cv_objext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002574OBJEXT=$ac_cv_objext
2575ac_objext=$OBJEXT
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002576{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2577echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2578if test "${ac_cv_c_compiler_gnu+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002580else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002581 cat >conftest.$ac_ext <<_ACEOF
2582/* confdefs.h. */
2583_ACEOF
2584cat confdefs.h >>conftest.$ac_ext
2585cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002586/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002587
2588int
2589main ()
2590{
2591#ifndef __GNUC__
2592 choke me
2593#endif
2594
2595 ;
2596 return 0;
2597}
2598_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002599rm -f conftest.$ac_objext
2600if { (ac_try="$ac_compile"
2601case "(($ac_try" in
2602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603 *) ac_try_echo=$ac_try;;
2604esac
2605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2606 (eval "$ac_compile") 2>conftest.er1
2607 ac_status=$?
2608 grep -v '^ *+' conftest.er1 >conftest.err
2609 rm -f conftest.er1
2610 cat conftest.err >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); } && {
2613 test -z "$ac_c_werror_flag" ||
2614 test ! -s conftest.err
2615 } && test -s conftest.$ac_objext; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002616 ac_compiler_gnu=yes
2617else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002618 echo "$as_me: failed program was:" >&5
2619sed 's/^/| /' conftest.$ac_ext >&5
2620
2621 ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002622fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002623
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002625ac_cv_c_compiler_gnu=$ac_compiler_gnu
2626
2627fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002628{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2629echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2630GCC=`test $ac_compiler_gnu = yes && echo yes`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002631ac_test_CFLAGS=${CFLAGS+set}
2632ac_save_CFLAGS=$CFLAGS
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002633{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2634echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2635if test "${ac_cv_prog_cc_g+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002637else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002638 ac_save_c_werror_flag=$ac_c_werror_flag
2639 ac_c_werror_flag=yes
2640 ac_cv_prog_cc_g=no
2641 CFLAGS="-g"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002642 cat >conftest.$ac_ext <<_ACEOF
2643/* confdefs.h. */
2644_ACEOF
2645cat confdefs.h >>conftest.$ac_ext
2646cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002647/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002648
2649int
2650main ()
2651{
2652
2653 ;
2654 return 0;
2655}
2656_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002657rm -f conftest.$ac_objext
2658if { (ac_try="$ac_compile"
2659case "(($ac_try" in
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2662esac
2663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664 (eval "$ac_compile") 2>conftest.er1
2665 ac_status=$?
2666 grep -v '^ *+' conftest.er1 >conftest.err
2667 rm -f conftest.er1
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } && {
2671 test -z "$ac_c_werror_flag" ||
2672 test ! -s conftest.err
2673 } && test -s conftest.$ac_objext; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002674 ac_cv_prog_cc_g=yes
2675else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002676 echo "$as_me: failed program was:" >&5
2677sed 's/^/| /' conftest.$ac_ext >&5
2678
2679 CFLAGS=""
2680 cat >conftest.$ac_ext <<_ACEOF
2681/* confdefs.h. */
2682_ACEOF
2683cat confdefs.h >>conftest.$ac_ext
2684cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002685/* end confdefs.h. */
2686
2687int
2688main ()
2689{
2690
2691 ;
2692 return 0;
2693}
2694_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002695rm -f conftest.$ac_objext
2696if { (ac_try="$ac_compile"
2697case "(($ac_try" in
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2700esac
2701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702 (eval "$ac_compile") 2>conftest.er1
2703 ac_status=$?
2704 grep -v '^ *+' conftest.er1 >conftest.err
2705 rm -f conftest.er1
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } && {
2709 test -z "$ac_c_werror_flag" ||
2710 test ! -s conftest.err
2711 } && test -s conftest.$ac_objext; then
2712 :
Benny Prijono5b0af632011-07-20 03:16:25 +00002713else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002714 echo "$as_me: failed program was:" >&5
2715sed 's/^/| /' conftest.$ac_ext >&5
2716
2717 ac_c_werror_flag=$ac_save_c_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002718 CFLAGS="-g"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002719 cat >conftest.$ac_ext <<_ACEOF
2720/* confdefs.h. */
2721_ACEOF
2722cat confdefs.h >>conftest.$ac_ext
2723cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002724/* end confdefs.h. */
2725
2726int
2727main ()
2728{
2729
2730 ;
2731 return 0;
2732}
2733_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002734rm -f conftest.$ac_objext
2735if { (ac_try="$ac_compile"
2736case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2739esac
2740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_compile") 2>conftest.er1
2742 ac_status=$?
2743 grep -v '^ *+' conftest.er1 >conftest.err
2744 rm -f conftest.er1
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } && {
2748 test -z "$ac_c_werror_flag" ||
2749 test ! -s conftest.err
2750 } && test -s conftest.$ac_objext; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002751 ac_cv_prog_cc_g=yes
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002752else
2753 echo "$as_me: failed program was:" >&5
2754sed 's/^/| /' conftest.$ac_ext >&5
2755
2756
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002757fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002758
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002760fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002761
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2763fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002764
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2766 ac_c_werror_flag=$ac_save_c_werror_flag
2767fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002768{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2769echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002770if test "$ac_test_CFLAGS" = set; then
2771 CFLAGS=$ac_save_CFLAGS
2772elif test $ac_cv_prog_cc_g = yes; then
2773 if test "$GCC" = yes; then
2774 CFLAGS="-g -O2"
2775 else
2776 CFLAGS="-g"
2777 fi
2778else
2779 if test "$GCC" = yes; then
2780 CFLAGS="-O2"
2781 else
2782 CFLAGS=
2783 fi
2784fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002785{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2786echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2787if test "${ac_cv_prog_cc_c89+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002789else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002790 ac_cv_prog_cc_c89=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002791ac_save_CC=$CC
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002792cat >conftest.$ac_ext <<_ACEOF
2793/* confdefs.h. */
2794_ACEOF
2795cat confdefs.h >>conftest.$ac_ext
2796cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002797/* end confdefs.h. */
2798#include <stdarg.h>
2799#include <stdio.h>
2800#include <sys/types.h>
2801#include <sys/stat.h>
2802/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2803struct buf { int x; };
2804FILE * (*rcsopen) (struct buf *, struct stat *, int);
2805static char *e (p, i)
2806 char **p;
2807 int i;
2808{
2809 return p[i];
2810}
2811static char *f (char * (*g) (char **, int), char **p, ...)
2812{
2813 char *s;
2814 va_list v;
2815 va_start (v,p);
2816 s = g (p, va_arg (v,int));
2817 va_end (v);
2818 return s;
2819}
2820
2821/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2822 function prototypes and stuff, but not '\xHH' hex character constants.
2823 These don't provoke an error unfortunately, instead are silently treated
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002824 as 'x'. The following induces an error, until -std is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002825 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2826 array size at least. It's necessary to write '\x00'==0 to get something
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002827 that's true only with -std. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002828int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2829
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002830/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2831 inside strings and character constants. */
2832#define FOO(x) 'x'
2833int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2834
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002835int test (int i, double x);
2836struct s1 {int (*f) (int a);};
2837struct s2 {int (*f) (double a);};
2838int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2839int argc;
2840char **argv;
2841int
2842main ()
2843{
2844return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2845 ;
2846 return 0;
2847}
2848_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002849for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2850 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002851do
2852 CC="$ac_save_CC $ac_arg"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002853 rm -f conftest.$ac_objext
2854if { (ac_try="$ac_compile"
2855case "(($ac_try" in
2856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2857 *) ac_try_echo=$ac_try;;
2858esac
2859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2860 (eval "$ac_compile") 2>conftest.er1
2861 ac_status=$?
2862 grep -v '^ *+' conftest.er1 >conftest.err
2863 rm -f conftest.er1
2864 cat conftest.err >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); } && {
2867 test -z "$ac_c_werror_flag" ||
2868 test ! -s conftest.err
2869 } && test -s conftest.$ac_objext; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002870 ac_cv_prog_cc_c89=$ac_arg
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002871else
2872 echo "$as_me: failed program was:" >&5
2873sed 's/^/| /' conftest.$ac_ext >&5
2874
2875
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002876fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002877
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002878rm -f core conftest.err conftest.$ac_objext
2879 test "x$ac_cv_prog_cc_c89" != "xno" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002880done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002881rm -f conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002882CC=$ac_save_CC
2883
2884fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002885# AC_CACHE_VAL
2886case "x$ac_cv_prog_cc_c89" in
2887 x)
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002888 { echo "$as_me:$LINENO: result: none needed" >&5
2889echo "${ECHO_T}none needed" >&6; } ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002890 xno)
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002891 { echo "$as_me:$LINENO: result: unsupported" >&5
2892echo "${ECHO_T}unsupported" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002893 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002894 CC="$CC $ac_cv_prog_cc_c89"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002895 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2896echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002897esac
2898
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002899
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002900ac_ext=c
2901ac_cpp='$CPP $CPPFLAGS'
2902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2904ac_compiler_gnu=$ac_cv_c_compiler_gnu
2905
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002906ac_ext=cpp
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002907ac_cpp='$CXXCPP $CPPFLAGS'
2908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002911if test -z "$CXX"; then
2912 if test -n "$CCC"; then
2913 CXX=$CCC
2914 else
2915 if test -n "$ac_tool_prefix"; then
2916 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 +00002917 do
2918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2919set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002920{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2922if test "${ac_cv_prog_CXX+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002924else
2925 if test -n "$CXX"; then
2926 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2927else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929for as_dir in $PATH
2930do
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002933 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002934 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 +00002935 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002937 break 2
2938 fi
2939done
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002940done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002941IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002942
2943fi
2944fi
2945CXX=$ac_cv_prog_CXX
2946if test -n "$CXX"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002947 { echo "$as_me:$LINENO: result: $CXX" >&5
2948echo "${ECHO_T}$CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002949else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002950 { echo "$as_me:$LINENO: result: no" >&5
2951echo "${ECHO_T}no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002952fi
2953
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002954
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002955 test -n "$CXX" && break
2956 done
2957fi
2958if test -z "$CXX"; then
2959 ac_ct_CXX=$CXX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002960 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 +00002961do
2962 # Extract the first word of "$ac_prog", so it can be a program name with args.
2963set dummy $ac_prog; ac_word=$2
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2966if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002968else
2969 if test -n "$ac_ct_CXX"; then
2970 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2971else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973for as_dir in $PATH
2974do
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002977 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002978 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 +00002979 ac_cv_prog_ac_ct_CXX="$ac_prog"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002981 break 2
2982 fi
2983done
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002984done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002985IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002986
2987fi
2988fi
2989ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2990if test -n "$ac_ct_CXX"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002991 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2992echo "${ECHO_T}$ac_ct_CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002993else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00002994 { echo "$as_me:$LINENO: result: no" >&5
2995echo "${ECHO_T}no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002996fi
2997
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002998
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002999 test -n "$ac_ct_CXX" && break
3000done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003001
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003002 if test "x$ac_ct_CXX" = x; then
3003 CXX="g++"
3004 else
3005 case $cross_compiling:$ac_tool_warned in
3006yes:)
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003007{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3008whose name does not start with the host triplet. If you think this
3009configuration is useful to you, please write to autoconf@gnu.org." >&5
3010echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3011whose name does not start with the host triplet. If you think this
3012configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003013ac_tool_warned=yes ;;
3014esac
3015 CXX=$ac_ct_CXX
3016 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003017fi
3018
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003019 fi
3020fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003021# Provide some information about the compiler.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003022echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3023ac_compiler=`set X $ac_compile; echo $2`
3024{ (ac_try="$ac_compiler --version >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003025case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028esac
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_compiler --version >&5") 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003031 ac_status=$?
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }
3034{ (ac_try="$ac_compiler -v >&5"
3035case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038esac
3039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_compiler -v >&5") 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }
3044{ (ac_try="$ac_compiler -V >&5"
3045case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048esac
3049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_compiler -V >&5") 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003054
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003055{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3056echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3057if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003059else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003060 cat >conftest.$ac_ext <<_ACEOF
3061/* confdefs.h. */
3062_ACEOF
3063cat confdefs.h >>conftest.$ac_ext
3064cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003065/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003066
3067int
3068main ()
3069{
3070#ifndef __GNUC__
3071 choke me
3072#endif
3073
3074 ;
3075 return 0;
3076}
3077_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003078rm -f conftest.$ac_objext
3079if { (ac_try="$ac_compile"
3080case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083esac
3084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_compile") 2>conftest.er1
3086 ac_status=$?
3087 grep -v '^ *+' conftest.er1 >conftest.err
3088 rm -f conftest.er1
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } && {
3092 test -z "$ac_cxx_werror_flag" ||
3093 test ! -s conftest.err
3094 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003095 ac_compiler_gnu=yes
3096else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003097 echo "$as_me: failed program was:" >&5
3098sed 's/^/| /' conftest.$ac_ext >&5
3099
3100 ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003101fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003102
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003104ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3105
3106fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003107{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3108echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3109GXX=`test $ac_compiler_gnu = yes && echo yes`
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003110ac_test_CXXFLAGS=${CXXFLAGS+set}
3111ac_save_CXXFLAGS=$CXXFLAGS
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003112{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3113echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3114if test "${ac_cv_prog_cxx_g+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003116else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003117 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3118 ac_cxx_werror_flag=yes
3119 ac_cv_prog_cxx_g=no
3120 CXXFLAGS="-g"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003121 cat >conftest.$ac_ext <<_ACEOF
3122/* confdefs.h. */
3123_ACEOF
3124cat confdefs.h >>conftest.$ac_ext
3125cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003126/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003127
3128int
3129main ()
3130{
3131
3132 ;
3133 return 0;
3134}
3135_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003136rm -f conftest.$ac_objext
3137if { (ac_try="$ac_compile"
3138case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3144 ac_status=$?
3145 grep -v '^ *+' conftest.er1 >conftest.err
3146 rm -f conftest.er1
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } && {
3150 test -z "$ac_cxx_werror_flag" ||
3151 test ! -s conftest.err
3152 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003153 ac_cv_prog_cxx_g=yes
3154else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003155 echo "$as_me: failed program was:" >&5
3156sed 's/^/| /' conftest.$ac_ext >&5
3157
3158 CXXFLAGS=""
3159 cat >conftest.$ac_ext <<_ACEOF
3160/* confdefs.h. */
3161_ACEOF
3162cat confdefs.h >>conftest.$ac_ext
3163cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003164/* end confdefs.h. */
3165
3166int
3167main ()
3168{
3169
3170 ;
3171 return 0;
3172}
3173_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003174rm -f conftest.$ac_objext
3175if { (ac_try="$ac_compile"
3176case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179esac
3180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3182 ac_status=$?
3183 grep -v '^ *+' conftest.er1 >conftest.err
3184 rm -f conftest.er1
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } && {
3188 test -z "$ac_cxx_werror_flag" ||
3189 test ! -s conftest.err
3190 } && test -s conftest.$ac_objext; then
3191 :
Benny Prijono5b0af632011-07-20 03:16:25 +00003192else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003193 echo "$as_me: failed program was:" >&5
3194sed 's/^/| /' conftest.$ac_ext >&5
3195
3196 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003197 CXXFLAGS="-g"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003198 cat >conftest.$ac_ext <<_ACEOF
3199/* confdefs.h. */
3200_ACEOF
3201cat confdefs.h >>conftest.$ac_ext
3202cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003203/* end confdefs.h. */
3204
3205int
3206main ()
3207{
3208
3209 ;
3210 return 0;
3211}
3212_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003213rm -f conftest.$ac_objext
3214if { (ac_try="$ac_compile"
3215case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3218esac
3219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220 (eval "$ac_compile") 2>conftest.er1
3221 ac_status=$?
3222 grep -v '^ *+' conftest.er1 >conftest.err
3223 rm -f conftest.er1
3224 cat conftest.err >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } && {
3227 test -z "$ac_cxx_werror_flag" ||
3228 test ! -s conftest.err
3229 } && test -s conftest.$ac_objext; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003230 ac_cv_prog_cxx_g=yes
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003231else
3232 echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003236fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003237
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003239fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003240
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003243
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3246fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003247{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3248echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003249if test "$ac_test_CXXFLAGS" = set; then
3250 CXXFLAGS=$ac_save_CXXFLAGS
3251elif test $ac_cv_prog_cxx_g = yes; then
3252 if test "$GXX" = yes; then
3253 CXXFLAGS="-g -O2"
3254 else
3255 CXXFLAGS="-g"
3256 fi
3257else
3258 if test "$GXX" = yes; then
3259 CXXFLAGS="-O2"
3260 else
3261 CXXFLAGS=
3262 fi
3263fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003264ac_ext=c
3265ac_cpp='$CPP $CPPFLAGS'
3266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003270ac_ext=c
3271ac_cpp='$CPP $CPPFLAGS'
3272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003276
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003277if test -z "$CROSS_COMPILE"; then
3278 CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'`
3279fi
3280
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003281if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003282
3283if test "$LD" = ""; then LD="$CC"; fi
3284
3285if test "$LDOUT" = ""; then LDOUT="-o"; fi
3286
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003287if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003288
3289if test "$OBJEXT" = ""; then OBJEXT='o'; fi
3290
3291if test "$LIBEXT" = ""; then LIBEXT='a'; fi
3292
3293if test "$LIBEXT2" = ""; then LIBEXT2=""; fi
3294
3295if test "$CC_OUT" = ""; then CC_OUT="-o"; fi
3296
3297if test "$CC_INC" = ""; then CC_INC="-I"; fi
3298
3299if test "$CC_DEF" = ""; then CC_DEF="-D"; fi
3300
3301if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi
3302
3303if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi
3304
3305
3306
3307
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003308
Benny Prijono0822c192008-08-21 20:59:58 +00003309
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003310
3311case $host in
Benny Prijono53847a32007-09-24 16:10:13 +00003312 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003313 if pwd -W 2&> /dev/null; then
3314 ac_pjdir=`pwd -W`
3315 else
3316 # We're probably cross-compiling mingw on Linux
3317 ac_pjdir=`pwd`
3318 fi
Benny Prijono53847a32007-09-24 16:10:13 +00003319 ;;
3320 *)
3321 ac_pjdir=`pwd`
3322 ;;
3323esac
Benny Prijono12483112007-03-12 10:44:38 +00003324
3325
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003326
3327{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
3328echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
3329if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003331else
3332 ac_check_lib_save_LIBS=$LIBS
3333LIBS="-lpthread $LIBS"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003334cat >conftest.$ac_ext <<_ACEOF
3335/* confdefs.h. */
3336_ACEOF
3337cat confdefs.h >>conftest.$ac_ext
3338cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003339/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003340
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003341/* Override any GCC internal prototype to avoid an error.
3342 Use char because int might match the return type of a GCC
3343 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003344#ifdef __cplusplus
3345extern "C"
3346#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003347char pthread_create ();
3348int
3349main ()
3350{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003351return pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003352 ;
3353 return 0;
3354}
3355_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003356rm -f conftest.$ac_objext conftest$ac_exeext
3357if { (ac_try="$ac_link"
3358case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361esac
3362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_link") 2>conftest.er1
3364 ac_status=$?
3365 grep -v '^ *+' conftest.er1 >conftest.err
3366 rm -f conftest.er1
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } && {
3370 test -z "$ac_c_werror_flag" ||
3371 test ! -s conftest.err
3372 } && test -s conftest$ac_exeext &&
3373 $as_test_x conftest$ac_exeext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003374 ac_cv_lib_pthread_pthread_create=yes
3375else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003376 echo "$as_me: failed program was:" >&5
3377sed 's/^/| /' conftest.$ac_ext >&5
3378
3379 ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003380fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003381
3382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3383 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003384LIBS=$ac_check_lib_save_LIBS
3385fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003386{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
3387echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
3388if test $ac_cv_lib_pthread_pthread_create = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003389 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003390#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003391_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003392
3393 LIBS="-lpthread $LIBS"
3394
3395fi
3396
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003397
3398{ echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5
3399echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6; }
3400if test "${ac_cv_lib_wsock32_puts+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003402else
3403 ac_check_lib_save_LIBS=$LIBS
3404LIBS="-lwsock32 $LIBS"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003405cat >conftest.$ac_ext <<_ACEOF
3406/* confdefs.h. */
3407_ACEOF
3408cat confdefs.h >>conftest.$ac_ext
3409cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003410/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003411
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003412/* Override any GCC internal prototype to avoid an error.
3413 Use char because int might match the return type of a GCC
3414 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003415#ifdef __cplusplus
3416extern "C"
3417#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003418char puts ();
3419int
3420main ()
3421{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003422return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003423 ;
3424 return 0;
3425}
3426_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003427rm -f conftest.$ac_objext conftest$ac_exeext
3428if { (ac_try="$ac_link"
3429case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432esac
3433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_link") 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } && {
3441 test -z "$ac_c_werror_flag" ||
3442 test ! -s conftest.err
3443 } && test -s conftest$ac_exeext &&
3444 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003445 ac_cv_lib_wsock32_puts=yes
3446else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003447 echo "$as_me: failed program was:" >&5
3448sed 's/^/| /' conftest.$ac_ext >&5
3449
3450 ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003451fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003452
3453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3454 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003455LIBS=$ac_check_lib_save_LIBS
3456fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003457{ echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5
3458echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6; }
3459if test $ac_cv_lib_wsock32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003460 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003461#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003462_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003463
3464 LIBS="-lwsock32 $LIBS"
3465
3466fi
3467
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003468
3469{ echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5
3470echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6; }
3471if test "${ac_cv_lib_ws2_32_puts+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003473else
3474 ac_check_lib_save_LIBS=$LIBS
3475LIBS="-lws2_32 $LIBS"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003476cat >conftest.$ac_ext <<_ACEOF
3477/* confdefs.h. */
3478_ACEOF
3479cat confdefs.h >>conftest.$ac_ext
3480cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003481/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003482
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003483/* Override any GCC internal prototype to avoid an error.
3484 Use char because int might match the return type of a GCC
3485 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003486#ifdef __cplusplus
3487extern "C"
3488#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003489char puts ();
3490int
3491main ()
3492{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003493return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003494 ;
3495 return 0;
3496}
3497_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003498rm -f conftest.$ac_objext conftest$ac_exeext
3499if { (ac_try="$ac_link"
3500case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3503esac
3504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505 (eval "$ac_link") 2>conftest.er1
3506 ac_status=$?
3507 grep -v '^ *+' conftest.er1 >conftest.err
3508 rm -f conftest.er1
3509 cat conftest.err >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } && {
3512 test -z "$ac_c_werror_flag" ||
3513 test ! -s conftest.err
3514 } && test -s conftest$ac_exeext &&
3515 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003516 ac_cv_lib_ws2_32_puts=yes
3517else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003518 echo "$as_me: failed program was:" >&5
3519sed 's/^/| /' conftest.$ac_ext >&5
3520
3521 ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003522fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003523
3524rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3525 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003526LIBS=$ac_check_lib_save_LIBS
3527fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003528{ echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5
3529echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6; }
3530if test $ac_cv_lib_ws2_32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003531 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003532#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003533_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003534
3535 LIBS="-lws2_32 $LIBS"
3536
3537fi
3538
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003539
3540{ echo "$as_me:$LINENO: checking for puts in -lole32" >&5
3541echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6; }
3542if test "${ac_cv_lib_ole32_puts+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003544else
3545 ac_check_lib_save_LIBS=$LIBS
3546LIBS="-lole32 $LIBS"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003547cat >conftest.$ac_ext <<_ACEOF
3548/* confdefs.h. */
3549_ACEOF
3550cat confdefs.h >>conftest.$ac_ext
3551cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003552/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003553
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003554/* Override any GCC internal prototype to avoid an error.
3555 Use char because int might match the return type of a GCC
3556 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003557#ifdef __cplusplus
3558extern "C"
3559#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003560char puts ();
3561int
3562main ()
3563{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003564return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003565 ;
3566 return 0;
3567}
3568_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003569rm -f conftest.$ac_objext conftest$ac_exeext
3570if { (ac_try="$ac_link"
3571case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574esac
3575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_link") 2>conftest.er1
3577 ac_status=$?
3578 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } && {
3583 test -z "$ac_c_werror_flag" ||
3584 test ! -s conftest.err
3585 } && test -s conftest$ac_exeext &&
3586 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003587 ac_cv_lib_ole32_puts=yes
3588else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003589 echo "$as_me: failed program was:" >&5
3590sed 's/^/| /' conftest.$ac_ext >&5
3591
3592 ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003593fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003594
3595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3596 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003597LIBS=$ac_check_lib_save_LIBS
3598fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003599{ echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5
3600echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6; }
3601if test $ac_cv_lib_ole32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003602 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003603#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003604_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003605
3606 LIBS="-lole32 $LIBS"
3607
3608fi
3609
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003610
3611{ echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5
3612echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6; }
3613if test "${ac_cv_lib_winmm_puts+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003615else
3616 ac_check_lib_save_LIBS=$LIBS
3617LIBS="-lwinmm $LIBS"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003618cat >conftest.$ac_ext <<_ACEOF
3619/* confdefs.h. */
3620_ACEOF
3621cat confdefs.h >>conftest.$ac_ext
3622cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003623/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003624
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003625/* Override any GCC internal prototype to avoid an error.
3626 Use char because int might match the return type of a GCC
3627 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003628#ifdef __cplusplus
3629extern "C"
3630#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003631char puts ();
3632int
3633main ()
3634{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003635return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003636 ;
3637 return 0;
3638}
3639_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003640rm -f conftest.$ac_objext conftest$ac_exeext
3641if { (ac_try="$ac_link"
3642case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645esac
3646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3647 (eval "$ac_link") 2>conftest.er1
3648 ac_status=$?
3649 grep -v '^ *+' conftest.er1 >conftest.err
3650 rm -f conftest.er1
3651 cat conftest.err >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } && {
3654 test -z "$ac_c_werror_flag" ||
3655 test ! -s conftest.err
3656 } && test -s conftest$ac_exeext &&
3657 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003658 ac_cv_lib_winmm_puts=yes
3659else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003660 echo "$as_me: failed program was:" >&5
3661sed 's/^/| /' conftest.$ac_ext >&5
3662
3663 ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003664fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003665
3666rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3667 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003668LIBS=$ac_check_lib_save_LIBS
3669fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003670{ echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5
3671echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6; }
3672if test $ac_cv_lib_winmm_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003673 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003674#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003675_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003676
3677 LIBS="-lwinmm $LIBS"
3678
3679fi
3680
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003681
3682{ echo "$as_me:$LINENO: checking for puts in -lsocket" >&5
3683echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6; }
3684if test "${ac_cv_lib_socket_puts+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003686else
3687 ac_check_lib_save_LIBS=$LIBS
3688LIBS="-lsocket $LIBS"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003689cat >conftest.$ac_ext <<_ACEOF
3690/* confdefs.h. */
3691_ACEOF
3692cat confdefs.h >>conftest.$ac_ext
3693cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003694/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003695
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003696/* Override any GCC internal prototype to avoid an error.
3697 Use char because int might match the return type of a GCC
3698 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003699#ifdef __cplusplus
3700extern "C"
3701#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003702char puts ();
3703int
3704main ()
3705{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003706return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003707 ;
3708 return 0;
3709}
3710_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003711rm -f conftest.$ac_objext conftest$ac_exeext
3712if { (ac_try="$ac_link"
3713case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716esac
3717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718 (eval "$ac_link") 2>conftest.er1
3719 ac_status=$?
3720 grep -v '^ *+' conftest.er1 >conftest.err
3721 rm -f conftest.er1
3722 cat conftest.err >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } && {
3725 test -z "$ac_c_werror_flag" ||
3726 test ! -s conftest.err
3727 } && test -s conftest$ac_exeext &&
3728 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003729 ac_cv_lib_socket_puts=yes
3730else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003731 echo "$as_me: failed program was:" >&5
3732sed 's/^/| /' conftest.$ac_ext >&5
3733
3734 ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003735fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003736
3737rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3738 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003739LIBS=$ac_check_lib_save_LIBS
3740fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003741{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5
3742echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6; }
3743if test $ac_cv_lib_socket_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003744 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003745#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003746_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003747
3748 LIBS="-lsocket $LIBS"
3749
3750fi
3751
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003752
3753{ echo "$as_me:$LINENO: checking for puts in -lrt" >&5
3754echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6; }
3755if test "${ac_cv_lib_rt_puts+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003757else
3758 ac_check_lib_save_LIBS=$LIBS
3759LIBS="-lrt $LIBS"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003760cat >conftest.$ac_ext <<_ACEOF
3761/* confdefs.h. */
3762_ACEOF
3763cat confdefs.h >>conftest.$ac_ext
3764cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003765/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003766
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003767/* Override any GCC internal prototype to avoid an error.
3768 Use char because int might match the return type of a GCC
3769 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003770#ifdef __cplusplus
3771extern "C"
3772#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003773char puts ();
3774int
3775main ()
3776{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003777return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003778 ;
3779 return 0;
3780}
3781_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003782rm -f conftest.$ac_objext conftest$ac_exeext
3783if { (ac_try="$ac_link"
3784case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787esac
3788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3789 (eval "$ac_link") 2>conftest.er1
3790 ac_status=$?
3791 grep -v '^ *+' conftest.er1 >conftest.err
3792 rm -f conftest.er1
3793 cat conftest.err >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } && {
3796 test -z "$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3798 } && test -s conftest$ac_exeext &&
3799 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003800 ac_cv_lib_rt_puts=yes
3801else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003802 echo "$as_me: failed program was:" >&5
3803sed 's/^/| /' conftest.$ac_ext >&5
3804
3805 ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003806fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003807
3808rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3809 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003810LIBS=$ac_check_lib_save_LIBS
3811fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003812{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5
3813echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6; }
3814if test $ac_cv_lib_rt_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003815 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003816#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003817_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003818
3819 LIBS="-lrt $LIBS"
3820
3821fi
3822
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003823
3824{ echo "$as_me:$LINENO: checking for puts in -lnsl" >&5
3825echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6; }
3826if test "${ac_cv_lib_nsl_puts+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003828else
3829 ac_check_lib_save_LIBS=$LIBS
3830LIBS="-lnsl $LIBS"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003831cat >conftest.$ac_ext <<_ACEOF
3832/* confdefs.h. */
3833_ACEOF
3834cat confdefs.h >>conftest.$ac_ext
3835cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003836/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003837
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003838/* Override any GCC internal prototype to avoid an error.
3839 Use char because int might match the return type of a GCC
3840 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003841#ifdef __cplusplus
3842extern "C"
3843#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003844char puts ();
3845int
3846main ()
3847{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003848return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003849 ;
3850 return 0;
3851}
3852_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003853rm -f conftest.$ac_objext conftest$ac_exeext
3854if { (ac_try="$ac_link"
3855case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3858esac
3859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3860 (eval "$ac_link") 2>conftest.er1
3861 ac_status=$?
3862 grep -v '^ *+' conftest.er1 >conftest.err
3863 rm -f conftest.er1
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } && {
3867 test -z "$ac_c_werror_flag" ||
3868 test ! -s conftest.err
3869 } && test -s conftest$ac_exeext &&
3870 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003871 ac_cv_lib_nsl_puts=yes
3872else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003873 echo "$as_me: failed program was:" >&5
3874sed 's/^/| /' conftest.$ac_ext >&5
3875
3876 ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003877fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003878
3879rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3880 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003881LIBS=$ac_check_lib_save_LIBS
3882fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003883{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5
3884echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6; }
3885if test $ac_cv_lib_nsl_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003886 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003887#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003888_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003889
3890 LIBS="-lnsl $LIBS"
3891
3892fi
3893
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003894
3895{ echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3896echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; }
3897if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003899else
3900 ac_check_lib_save_LIBS=$LIBS
3901LIBS="-luuid $LIBS"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003902cat >conftest.$ac_ext <<_ACEOF
3903/* confdefs.h. */
3904_ACEOF
3905cat confdefs.h >>conftest.$ac_ext
3906cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono4e48b512007-05-16 13:41:00 +00003907/* end confdefs.h. */
3908
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003909/* Override any GCC internal prototype to avoid an error.
3910 Use char because int might match the return type of a GCC
3911 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003912#ifdef __cplusplus
3913extern "C"
3914#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003915char uuid_generate ();
3916int
3917main ()
3918{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003919return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003920 ;
3921 return 0;
3922}
3923_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003924rm -f conftest.$ac_objext conftest$ac_exeext
3925if { (ac_try="$ac_link"
3926case "(($ac_try" in
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3929esac
3930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931 (eval "$ac_link") 2>conftest.er1
3932 ac_status=$?
3933 grep -v '^ *+' conftest.er1 >conftest.err
3934 rm -f conftest.er1
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } && {
3938 test -z "$ac_c_werror_flag" ||
3939 test ! -s conftest.err
3940 } && test -s conftest$ac_exeext &&
3941 $as_test_x conftest$ac_exeext; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003942 ac_cv_lib_uuid_uuid_generate=yes
3943else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003944 echo "$as_me: failed program was:" >&5
3945sed 's/^/| /' conftest.$ac_ext >&5
3946
3947 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003948fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003949
3950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3951 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003952LIBS=$ac_check_lib_save_LIBS
3953fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003954{ echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3955echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; }
3956if test $ac_cv_lib_uuid_uuid_generate = yes; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003957 cat >>confdefs.h <<_ACEOF
3958#define HAVE_LIBUUID 1
3959_ACEOF
3960
3961 LIBS="-luuid $LIBS"
3962
3963fi
3964
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003965{ echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3966echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; }
3967if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003969else
3970 ac_check_lib_save_LIBS=$LIBS
3971LIBS="-luuid $LIBS"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003972cat >conftest.$ac_ext <<_ACEOF
3973/* confdefs.h. */
3974_ACEOF
3975cat confdefs.h >>conftest.$ac_ext
3976cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono4e48b512007-05-16 13:41:00 +00003977/* end confdefs.h. */
3978
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003979/* Override any GCC internal prototype to avoid an error.
3980 Use char because int might match the return type of a GCC
3981 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003982#ifdef __cplusplus
3983extern "C"
3984#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003985char uuid_generate ();
3986int
3987main ()
3988{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003989return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003990 ;
3991 return 0;
3992}
3993_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00003994rm -f conftest.$ac_objext conftest$ac_exeext
3995if { (ac_try="$ac_link"
3996case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999esac
4000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_link") 2>conftest.er1
4002 ac_status=$?
4003 grep -v '^ *+' conftest.er1 >conftest.err
4004 rm -f conftest.er1
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } && {
4008 test -z "$ac_c_werror_flag" ||
4009 test ! -s conftest.err
4010 } && test -s conftest$ac_exeext &&
4011 $as_test_x conftest$ac_exeext; then
Benny Prijono4e48b512007-05-16 13:41:00 +00004012 ac_cv_lib_uuid_uuid_generate=yes
4013else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004014 echo "$as_me: failed program was:" >&5
4015sed 's/^/| /' conftest.$ac_ext >&5
4016
4017 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00004018fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004019
4020rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4021 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00004022LIBS=$ac_check_lib_save_LIBS
4023fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004024{ echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
4025echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; }
4026if test $ac_cv_lib_uuid_uuid_generate = yes; then
Benny Prijono4e48b512007-05-16 13:41:00 +00004027 ac_has_uuid_lib=1
4028fi
4029
4030
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004031{ echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5
4032echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004033cat >>confdefs.h <<_ACEOF
4034#define PJ_M_NAME "$target_cpu"
4035_ACEOF
4036
4037
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004038{ echo "$as_me:$LINENO: checking memory alignment" >&5
4039echo $ECHO_N "checking memory alignment... $ECHO_C" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004040case $target in
Benny Prijonob18e9502010-05-19 05:51:38 +00004041 sparc64-* | ia64-* | x86_64-* )
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004042 cat >>confdefs.h <<\_ACEOF
4043#define PJ_POOL_ALIGNMENT 8
4044_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00004045
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004046 { echo "$as_me:$LINENO: result: 8 bytes" >&5
4047echo "${ECHO_T}8 bytes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004048 ;;
4049 * )
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004050 cat >>confdefs.h <<\_ACEOF
4051#define PJ_POOL_ALIGNMENT 4
4052_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00004053
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004054 { echo "$as_me:$LINENO: result: 4 bytes (default)" >&5
4055echo "${ECHO_T}4 bytes (default)" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004056 ;;
4057esac
4058
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004059
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004060ac_ext=c
4061ac_cpp='$CPP $CPPFLAGS'
4062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064ac_compiler_gnu=$ac_cv_c_compiler_gnu
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004065{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4066echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004067# On Suns, sometimes $CPP names a directory.
4068if test -n "$CPP" && test -d "$CPP"; then
4069 CPP=
4070fi
4071if test -z "$CPP"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004072 if test "${ac_cv_prog_CPP+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004074else
4075 # Double quotes because CPP needs to be expanded
4076 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4077 do
4078 ac_preproc_ok=false
4079for ac_c_preproc_warn_flag in '' yes
4080do
4081 # Use a header file that comes with gcc, so configuring glibc
4082 # with a fresh cross-compiler works.
4083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4084 # <limits.h> exists even on freestanding compilers.
4085 # On the NeXT, cc -E runs the code through the compiler's parser,
4086 # not just through cpp. "Syntax error" is here to catch this case.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004087 cat >conftest.$ac_ext <<_ACEOF
4088/* confdefs.h. */
4089_ACEOF
4090cat confdefs.h >>conftest.$ac_ext
4091cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004092/* end confdefs.h. */
4093#ifdef __STDC__
4094# include <limits.h>
4095#else
4096# include <assert.h>
4097#endif
4098 Syntax error
4099_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004100if { (ac_try="$ac_cpp conftest.$ac_ext"
4101case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104esac
4105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } >/dev/null && {
4113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4114 test ! -s conftest.err
4115 }; then
4116 :
Benny Prijono5b0af632011-07-20 03:16:25 +00004117else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004118 echo "$as_me: failed program was:" >&5
4119sed 's/^/| /' conftest.$ac_ext >&5
4120
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004121 # Broken: fails on valid input.
4122continue
4123fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004124
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004125rm -f conftest.err conftest.$ac_ext
4126
4127 # OK, works on sane cases. Now check whether nonexistent headers
4128 # can be detected and how.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004129 cat >conftest.$ac_ext <<_ACEOF
4130/* confdefs.h. */
4131_ACEOF
4132cat confdefs.h >>conftest.$ac_ext
4133cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004134/* end confdefs.h. */
4135#include <ac_nonexistent.h>
4136_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004137if { (ac_try="$ac_cpp conftest.$ac_ext"
4138case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141esac
4142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4144 ac_status=$?
4145 grep -v '^ *+' conftest.er1 >conftest.err
4146 rm -f conftest.er1
4147 cat conftest.err >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } >/dev/null && {
4150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4151 test ! -s conftest.err
4152 }; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004153 # Broken: success on invalid input.
4154continue
4155else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004156 echo "$as_me: failed program was:" >&5
4157sed 's/^/| /' conftest.$ac_ext >&5
4158
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004159 # Passes both tests.
4160ac_preproc_ok=:
4161break
4162fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004163
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004164rm -f conftest.err conftest.$ac_ext
4165
4166done
4167# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4168rm -f conftest.err conftest.$ac_ext
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004169if $ac_preproc_ok; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004170 break
4171fi
4172
4173 done
4174 ac_cv_prog_CPP=$CPP
4175
4176fi
4177 CPP=$ac_cv_prog_CPP
4178else
4179 ac_cv_prog_CPP=$CPP
4180fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004181{ echo "$as_me:$LINENO: result: $CPP" >&5
4182echo "${ECHO_T}$CPP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004183ac_preproc_ok=false
4184for ac_c_preproc_warn_flag in '' yes
4185do
4186 # Use a header file that comes with gcc, so configuring glibc
4187 # with a fresh cross-compiler works.
4188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4189 # <limits.h> exists even on freestanding compilers.
4190 # On the NeXT, cc -E runs the code through the compiler's parser,
4191 # not just through cpp. "Syntax error" is here to catch this case.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004192 cat >conftest.$ac_ext <<_ACEOF
4193/* confdefs.h. */
4194_ACEOF
4195cat confdefs.h >>conftest.$ac_ext
4196cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004197/* end confdefs.h. */
4198#ifdef __STDC__
4199# include <limits.h>
4200#else
4201# include <assert.h>
4202#endif
4203 Syntax error
4204_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004205if { (ac_try="$ac_cpp conftest.$ac_ext"
4206case "(($ac_try" in
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4209esac
4210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4212 ac_status=$?
4213 grep -v '^ *+' conftest.er1 >conftest.err
4214 rm -f conftest.er1
4215 cat conftest.err >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } >/dev/null && {
4218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4219 test ! -s conftest.err
4220 }; then
4221 :
Benny Prijono5b0af632011-07-20 03:16:25 +00004222else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004223 echo "$as_me: failed program was:" >&5
4224sed 's/^/| /' conftest.$ac_ext >&5
4225
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004226 # Broken: fails on valid input.
4227continue
4228fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004229
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004230rm -f conftest.err conftest.$ac_ext
4231
4232 # OK, works on sane cases. Now check whether nonexistent headers
4233 # can be detected and how.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004234 cat >conftest.$ac_ext <<_ACEOF
4235/* confdefs.h. */
4236_ACEOF
4237cat confdefs.h >>conftest.$ac_ext
4238cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004239/* end confdefs.h. */
4240#include <ac_nonexistent.h>
4241_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004242if { (ac_try="$ac_cpp conftest.$ac_ext"
4243case "(($ac_try" in
4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245 *) ac_try_echo=$ac_try;;
4246esac
4247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4249 ac_status=$?
4250 grep -v '^ *+' conftest.er1 >conftest.err
4251 rm -f conftest.er1
4252 cat conftest.err >&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); } >/dev/null && {
4255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4256 test ! -s conftest.err
4257 }; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004258 # Broken: success on invalid input.
4259continue
4260else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004261 echo "$as_me: failed program was:" >&5
4262sed 's/^/| /' conftest.$ac_ext >&5
4263
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004264 # Passes both tests.
4265ac_preproc_ok=:
4266break
4267fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004268
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004269rm -f conftest.err conftest.$ac_ext
4270
4271done
4272# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4273rm -f conftest.err conftest.$ac_ext
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004274if $ac_preproc_ok; then
4275 :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004276else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004277 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4278See \`config.log' for more details." >&5
4279echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4280See \`config.log' for more details." >&2;}
4281 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004282fi
4283
4284ac_ext=c
4285ac_cpp='$CPP $CPPFLAGS'
4286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289
4290
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004291{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4292echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4293if test "${ac_cv_path_GREP+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004295else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004296 # Extract the first word of "grep ggrep" to use in msg output
4297if test -z "$GREP"; then
4298set dummy grep ggrep; ac_prog_name=$2
4299if test "${ac_cv_path_GREP+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4301else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004302 ac_path_GREP_found=false
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004303# Loop through the user's path and test for each of PROGNAME-LIST
4304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004305for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4306do
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004309 for ac_prog in grep ggrep; do
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4312 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4313 # Check for GNU ac_path_GREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004314 # Check for GNU $ac_path_GREP
4315case `"$ac_path_GREP" --version 2>&1` in
4316*GNU*)
4317 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4318*)
4319 ac_count=0
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004320 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004321 while :
4322 do
4323 cat "conftest.in" "conftest.in" >"conftest.tmp"
4324 mv "conftest.tmp" "conftest.in"
4325 cp "conftest.in" "conftest.nl"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004326 echo 'GREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004327 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4328 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004329 ac_count=`expr $ac_count + 1`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004330 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4331 # Best one so far, save it but keep looking for a better one
4332 ac_cv_path_GREP="$ac_path_GREP"
4333 ac_path_GREP_max=$ac_count
4334 fi
4335 # 10*(2^10) chars as input seems more than enough
4336 test $ac_count -gt 10 && break
4337 done
4338 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4339esac
4340
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004341
4342 $ac_path_GREP_found && break 3
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004343 done
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004344done
4345
4346done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004347IFS=$as_save_IFS
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004348
4349
4350fi
4351
4352GREP="$ac_cv_path_GREP"
4353if test -z "$GREP"; then
4354 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4355echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4356 { (exit 1); exit 1; }; }
4357fi
4358
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004359else
4360 ac_cv_path_GREP=$GREP
4361fi
4362
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004363
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004364fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004365{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4366echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004367 GREP="$ac_cv_path_GREP"
4368
4369
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004370{ echo "$as_me:$LINENO: checking for egrep" >&5
4371echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4372if test "${ac_cv_path_EGREP+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004374else
4375 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4376 then ac_cv_path_EGREP="$GREP -E"
4377 else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004378 # Extract the first word of "egrep" to use in msg output
4379if test -z "$EGREP"; then
4380set dummy egrep; ac_prog_name=$2
4381if test "${ac_cv_path_EGREP+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004384 ac_path_EGREP_found=false
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004385# Loop through the user's path and test for each of PROGNAME-LIST
4386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004387for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4388do
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004391 for ac_prog in egrep; do
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4394 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4395 # Check for GNU ac_path_EGREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004396 # Check for GNU $ac_path_EGREP
4397case `"$ac_path_EGREP" --version 2>&1` in
4398*GNU*)
4399 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4400*)
4401 ac_count=0
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004402 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004403 while :
4404 do
4405 cat "conftest.in" "conftest.in" >"conftest.tmp"
4406 mv "conftest.tmp" "conftest.in"
4407 cp "conftest.in" "conftest.nl"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004408 echo 'EGREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004409 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004411 ac_count=`expr $ac_count + 1`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004412 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4413 # Best one so far, save it but keep looking for a better one
4414 ac_cv_path_EGREP="$ac_path_EGREP"
4415 ac_path_EGREP_max=$ac_count
4416 fi
4417 # 10*(2^10) chars as input seems more than enough
4418 test $ac_count -gt 10 && break
4419 done
4420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4421esac
4422
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004423
4424 $ac_path_EGREP_found && break 3
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004425 done
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004426done
4427
4428done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004429IFS=$as_save_IFS
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004430
4431
4432fi
4433
4434EGREP="$ac_cv_path_EGREP"
4435if test -z "$EGREP"; then
4436 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4437echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4438 { (exit 1); exit 1; }; }
4439fi
4440
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004441else
4442 ac_cv_path_EGREP=$EGREP
4443fi
4444
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004445
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004446 fi
4447fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004448{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4449echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004450 EGREP="$ac_cv_path_EGREP"
4451
4452
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004453{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4454echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4455if test "${ac_cv_header_stdc+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004457else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004458 cat >conftest.$ac_ext <<_ACEOF
4459/* confdefs.h. */
4460_ACEOF
4461cat confdefs.h >>conftest.$ac_ext
4462cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004463/* end confdefs.h. */
4464#include <stdlib.h>
4465#include <stdarg.h>
4466#include <string.h>
4467#include <float.h>
4468
4469int
4470main ()
4471{
4472
4473 ;
4474 return 0;
4475}
4476_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004477rm -f conftest.$ac_objext
4478if { (ac_try="$ac_compile"
4479case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482esac
4483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484 (eval "$ac_compile") 2>conftest.er1
4485 ac_status=$?
4486 grep -v '^ *+' conftest.er1 >conftest.err
4487 rm -f conftest.er1
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } && {
4491 test -z "$ac_c_werror_flag" ||
4492 test ! -s conftest.err
4493 } && test -s conftest.$ac_objext; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004494 ac_cv_header_stdc=yes
4495else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004496 echo "$as_me: failed program was:" >&5
4497sed 's/^/| /' conftest.$ac_ext >&5
4498
4499 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004500fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004501
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503
4504if test $ac_cv_header_stdc = yes; then
4505 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004506 cat >conftest.$ac_ext <<_ACEOF
4507/* confdefs.h. */
4508_ACEOF
4509cat confdefs.h >>conftest.$ac_ext
4510cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004511/* end confdefs.h. */
4512#include <string.h>
4513
4514_ACEOF
4515if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004516 $EGREP "memchr" >/dev/null 2>&1; then
4517 :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004518else
4519 ac_cv_header_stdc=no
4520fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004521rm -f -r conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004522
4523fi
4524
4525if test $ac_cv_header_stdc = yes; then
4526 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004527 cat >conftest.$ac_ext <<_ACEOF
4528/* confdefs.h. */
4529_ACEOF
4530cat confdefs.h >>conftest.$ac_ext
4531cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004532/* end confdefs.h. */
4533#include <stdlib.h>
4534
4535_ACEOF
4536if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004537 $EGREP "free" >/dev/null 2>&1; then
4538 :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004539else
4540 ac_cv_header_stdc=no
4541fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004542rm -f -r conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004543
4544fi
4545
4546if test $ac_cv_header_stdc = yes; then
4547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004548 if test "$cross_compiling" = yes; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004549 :
4550else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004551 cat >conftest.$ac_ext <<_ACEOF
4552/* confdefs.h. */
4553_ACEOF
4554cat confdefs.h >>conftest.$ac_ext
4555cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004556/* end confdefs.h. */
4557#include <ctype.h>
4558#include <stdlib.h>
4559#if ((' ' & 0x0FF) == 0x020)
4560# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4561# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4562#else
4563# define ISLOWER(c) \
4564 (('a' <= (c) && (c) <= 'i') \
4565 || ('j' <= (c) && (c) <= 'r') \
4566 || ('s' <= (c) && (c) <= 'z'))
4567# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4568#endif
4569
4570#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4571int
4572main ()
4573{
4574 int i;
4575 for (i = 0; i < 256; i++)
4576 if (XOR (islower (i), ISLOWER (i))
4577 || toupper (i) != TOUPPER (i))
4578 return 2;
4579 return 0;
4580}
4581_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004582rm -f conftest$ac_exeext
4583if { (ac_try="$ac_link"
4584case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4587esac
4588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589 (eval "$ac_link") 2>&5
4590 ac_status=$?
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4593 { (case "(($ac_try" in
4594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595 *) ac_try_echo=$ac_try;;
4596esac
4597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4598 (eval "$ac_try") 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004603else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004604 echo "$as_me: program exited with status $ac_status" >&5
4605echo "$as_me: failed program was:" >&5
4606sed 's/^/| /' conftest.$ac_ext >&5
4607
4608( exit $ac_status )
4609ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004610fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004611rm -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 +00004612fi
4613
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004614
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004615fi
4616fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004617{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4618echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004619if test $ac_cv_header_stdc = yes; then
4620
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004621cat >>confdefs.h <<\_ACEOF
4622#define STDC_HEADERS 1
4623_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004624
4625fi
4626
4627# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004628
4629
4630
4631
4632
4633
4634
4635
4636
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004637for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4638 inttypes.h stdint.h unistd.h
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004639do
4640as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4641{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4645else
4646 cat >conftest.$ac_ext <<_ACEOF
4647/* confdefs.h. */
4648_ACEOF
4649cat confdefs.h >>conftest.$ac_ext
4650cat >>conftest.$ac_ext <<_ACEOF
4651/* end confdefs.h. */
4652$ac_includes_default
4653
4654#include <$ac_header>
4655_ACEOF
4656rm -f conftest.$ac_objext
4657if { (ac_try="$ac_compile"
4658case "(($ac_try" in
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4661esac
4662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4663 (eval "$ac_compile") 2>conftest.er1
4664 ac_status=$?
4665 grep -v '^ *+' conftest.er1 >conftest.err
4666 rm -f conftest.er1
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } && {
4670 test -z "$ac_c_werror_flag" ||
4671 test ! -s conftest.err
4672 } && test -s conftest.$ac_objext; then
4673 eval "$as_ac_Header=yes"
4674else
4675 echo "$as_me: failed program was:" >&5
4676sed 's/^/| /' conftest.$ac_ext >&5
4677
4678 eval "$as_ac_Header=no"
4679fi
4680
4681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682fi
4683ac_res=`eval echo '${'$as_ac_Header'}'`
4684 { echo "$as_me:$LINENO: result: $ac_res" >&5
4685echo "${ECHO_T}$ac_res" >&6; }
4686if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004687 cat >>confdefs.h <<_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004688#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004689_ACEOF
4690
4691fi
4692
4693done
4694
4695
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004696{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4697echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4698if test "${ac_cv_c_bigendian+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004700else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004701 # See if sys/param.h defines the BYTE_ORDER macro.
4702cat >conftest.$ac_ext <<_ACEOF
4703/* confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +00004704_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004705cat confdefs.h >>conftest.$ac_ext
4706cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004707/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004708#include <sys/types.h>
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004709#include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004710
4711int
4712main ()
4713{
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004714#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4715 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4716 bogus endian macros
4717#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004718
4719 ;
4720 return 0;
4721}
4722_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004723rm -f conftest.$ac_objext
4724if { (ac_try="$ac_compile"
4725case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4728esac
4729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_compile") 2>conftest.er1
4731 ac_status=$?
4732 grep -v '^ *+' conftest.er1 >conftest.err
4733 rm -f conftest.er1
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } && {
4737 test -z "$ac_c_werror_flag" ||
4738 test ! -s conftest.err
4739 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004740 # It does; now see whether it defined to BIG_ENDIAN or not.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004741cat >conftest.$ac_ext <<_ACEOF
4742/* confdefs.h. */
4743_ACEOF
4744cat confdefs.h >>conftest.$ac_ext
4745cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004746/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004747#include <sys/types.h>
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004748#include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004749
4750int
4751main ()
4752{
4753#if BYTE_ORDER != BIG_ENDIAN
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004754 not big endian
4755#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004756
4757 ;
4758 return 0;
4759}
4760_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004761rm -f conftest.$ac_objext
4762if { (ac_try="$ac_compile"
4763case "(($ac_try" in
4764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4765 *) ac_try_echo=$ac_try;;
4766esac
4767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4768 (eval "$ac_compile") 2>conftest.er1
4769 ac_status=$?
4770 grep -v '^ *+' conftest.er1 >conftest.err
4771 rm -f conftest.er1
4772 cat conftest.err >&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } && {
4775 test -z "$ac_c_werror_flag" ||
4776 test ! -s conftest.err
4777 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004778 ac_cv_c_bigendian=yes
4779else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004780 echo "$as_me: failed program was:" >&5
4781sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijono5b0af632011-07-20 03:16:25 +00004782
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004783 ac_cv_c_bigendian=no
4784fi
4785
4786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787else
4788 echo "$as_me: failed program was:" >&5
4789sed 's/^/| /' conftest.$ac_ext >&5
4790
4791 # It does not; compile a test program.
4792if test "$cross_compiling" = yes; then
4793 # try to guess the endianness by grepping values into an object file
4794 ac_cv_c_bigendian=unknown
4795 cat >conftest.$ac_ext <<_ACEOF
4796/* confdefs.h. */
4797_ACEOF
4798cat confdefs.h >>conftest.$ac_ext
4799cat >>conftest.$ac_ext <<_ACEOF
4800/* end confdefs.h. */
4801short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4802short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4803void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4804short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4805short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4806void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004807int
4808main ()
4809{
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004810 _ascii (); _ebcdic ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004811 ;
4812 return 0;
4813}
4814_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004815rm -f conftest.$ac_objext
4816if { (ac_try="$ac_compile"
4817case "(($ac_try" in
4818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819 *) ac_try_echo=$ac_try;;
4820esac
4821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4822 (eval "$ac_compile") 2>conftest.er1
4823 ac_status=$?
4824 grep -v '^ *+' conftest.er1 >conftest.err
4825 rm -f conftest.er1
4826 cat conftest.err >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } && {
4829 test -z "$ac_c_werror_flag" ||
4830 test ! -s conftest.err
4831 } && test -s conftest.$ac_objext; then
4832 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004833 ac_cv_c_bigendian=yes
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004834fi
4835if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4836 if test "$ac_cv_c_bigendian" = unknown; then
4837 ac_cv_c_bigendian=no
4838 else
4839 # finding both strings is unlikely to happen, but who knows?
4840 ac_cv_c_bigendian=unknown
4841 fi
4842fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004843else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004844 echo "$as_me: failed program was:" >&5
4845sed 's/^/| /' conftest.$ac_ext >&5
Sauw Ming68c14572011-07-20 03:00:48 +00004846
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004847
Benny Prijono5b0af632011-07-20 03:16:25 +00004848fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004849
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004851else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004852 cat >conftest.$ac_ext <<_ACEOF
4853/* confdefs.h. */
4854_ACEOF
4855cat confdefs.h >>conftest.$ac_ext
4856cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004857/* end confdefs.h. */
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004858$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004859int
4860main ()
4861{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004862
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004863 /* Are we little or big endian? From Harbison&Steele. */
4864 union
4865 {
4866 long int l;
4867 char c[sizeof (long int)];
4868 } u;
4869 u.l = 1;
4870 return u.c[sizeof (long int) - 1] == 1;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004871
4872 ;
4873 return 0;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004874}
4875_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004876rm -f conftest$ac_exeext
4877if { (ac_try="$ac_link"
4878case "(($ac_try" in
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4881esac
4882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883 (eval "$ac_link") 2>&5
4884 ac_status=$?
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4887 { (case "(($ac_try" in
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4890esac
4891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892 (eval "$ac_try") 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004896 ac_cv_c_bigendian=no
4897else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004898 echo "$as_me: program exited with status $ac_status" >&5
4899echo "$as_me: failed program was:" >&5
4900sed 's/^/| /' conftest.$ac_ext >&5
4901
4902( exit $ac_status )
4903ac_cv_c_bigendian=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004904fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004905rm -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 +00004906fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004907
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004908
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004909fi
Benny Prijonod5233702010-01-13 13:09:45 +00004910
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912fi
4913{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4914echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4915case $ac_cv_c_bigendian in
4916 yes)
Benny Prijonod5233702010-01-13 13:09:45 +00004917
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004918cat >>confdefs.h <<\_ACEOF
4919#define WORDS_BIGENDIAN 1
4920_ACEOF
4921 ;;
4922 no)
4923 ;;
4924 *)
4925 { { echo "$as_me:$LINENO: error: unknown endianness
4926presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4927echo "$as_me: error: unknown endianness
4928presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4929 { (exit 1); exit 1; }; } ;;
4930esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004931
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004932
4933case $target in
4934 *mingw* | *cygw* | *win32* | *w32* )
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004935 cat >>confdefs.h <<\_ACEOF
4936#define PJ_WIN32 1
4937_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004938
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004939 cat >>confdefs.h <<\_ACEOF
4940#define PJ_WIN32_WINNT 0x0400
4941_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004942
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004943 cat >>confdefs.h <<\_ACEOF
4944#define WIN32_LEAN_AND_MEAN 1
4945_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004946
4947 ;;
4948 *darwin*)
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004949 cat >>confdefs.h <<\_ACEOF
4950#define PJ_DARWINOS 1
4951_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004952
4953 ;;
4954 *linux*)
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004955 cat >>confdefs.h <<\_ACEOF
4956#define PJ_LINUX 1
4957_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004958
4959 ;;
4960 *rtems*)
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004961 cat >>confdefs.h <<\_ACEOF
4962#define PJ_RTEMS 1
4963_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004964
4965 ;;
4966 *sunos* | *solaris* )
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004967 cat >>confdefs.h <<\_ACEOF
4968#define PJ_SUNOS 1
4969_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004970
4971 ;;
4972 *)
4973 ;;
4974esac
4975
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004976
4977
4978
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004979# Check whether --enable-floating-point was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004980if test "${enable_floating_point+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004981 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004982 cat >>confdefs.h <<\_ACEOF
4983#define PJ_HAS_FLOATING_POINT 0
4984_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004985
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004986 { echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5
4987echo "${ECHO_T}Checking if floating point is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004988 fi
4989else
4990
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004991 cat >>confdefs.h <<\_ACEOF
4992#define PJ_HAS_FLOATING_POINT 1
4993_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004994
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004995 { echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5
4996echo "${ECHO_T}Checking if floating point is disabled... no" >&6; }
4997
4998{ echo "$as_me:$LINENO: checking for fmod in -lm" >&5
4999echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6; }
5000if test "${ac_cv_lib_m_fmod+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005002else
5003 ac_check_lib_save_LIBS=$LIBS
5004LIBS="-lm $LIBS"
Sauw Mingd8aa67c2011-08-09 04:31:41 +00005005cat >conftest.$ac_ext <<_ACEOF
5006/* confdefs.h. */
5007_ACEOF
5008cat confdefs.h >>conftest.$ac_ext
5009cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005010/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005011
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005012/* Override any GCC internal prototype to avoid an error.
5013 Use char because int might match the return type of a GCC
5014 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005015#ifdef __cplusplus
5016extern "C"
5017#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005018char fmod ();
5019int
5020main ()
5021{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005022return fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005023 ;
5024 return 0;
5025}
5026_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00005027rm -f conftest.$ac_objext conftest$ac_exeext
5028if { (ac_try="$ac_link"
5029case "(($ac_try" in
5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5032esac
5033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5034 (eval "$ac_link") 2>conftest.er1
5035 ac_status=$?
5036 grep -v '^ *+' conftest.er1 >conftest.err
5037 rm -f conftest.er1
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } && {
5041 test -z "$ac_c_werror_flag" ||
5042 test ! -s conftest.err
5043 } && test -s conftest$ac_exeext &&
5044 $as_test_x conftest$ac_exeext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005045 ac_cv_lib_m_fmod=yes
5046else
Sauw Mingd8aa67c2011-08-09 04:31:41 +00005047 echo "$as_me: failed program was:" >&5
5048sed 's/^/| /' conftest.$ac_ext >&5
5049
5050 ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005051fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00005052
5053rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5054 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005055LIBS=$ac_check_lib_save_LIBS
5056fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00005057{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
5058echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6; }
5059if test $ac_cv_lib_m_fmod = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005060 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005061#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005062_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005063
5064 LIBS="-lm $LIBS"
5065
5066fi
5067
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005068
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005069fi
5070
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005071
5072
Sauw Mingd8aa67c2011-08-09 04:31:41 +00005073if test "${ac_cv_header_arpa_inet_h+set}" = set; then
5074 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
5075echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
5076if test "${ac_cv_header_arpa_inet_h+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5078fi
5079{ echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
5080echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
5081else
5082 # Is the header compilable?
5083{ echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
5084echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
5085cat >conftest.$ac_ext <<_ACEOF
5086/* confdefs.h. */
5087_ACEOF
5088cat confdefs.h >>conftest.$ac_ext
5089cat >>conftest.$ac_ext <<_ACEOF
5090/* end confdefs.h. */
5091$ac_includes_default
5092#include <arpa/inet.h>
5093_ACEOF
5094rm -f conftest.$ac_objext
5095if { (ac_try="$ac_compile"
5096case "(($ac_try" in
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5099esac
5100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5101 (eval "$ac_compile") 2>conftest.er1
5102 ac_status=$?
5103 grep -v '^ *+' conftest.er1 >conftest.err
5104 rm -f conftest.er1
5105 cat conftest.err >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } && {
5108 test -z "$ac_c_werror_flag" ||
5109 test ! -s conftest.err
5110 } && test -s conftest.$ac_objext; then
5111 ac_header_compiler=yes
5112else
5113 echo "$as_me: failed program was:" >&5
5114sed 's/^/| /' conftest.$ac_ext >&5
5115
5116 ac_header_compiler=no
5117fi
5118
5119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5121echo "${ECHO_T}$ac_header_compiler" >&6; }
5122
5123# Is the header present?
5124{ echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
5125echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
5126cat >conftest.$ac_ext <<_ACEOF
5127/* confdefs.h. */
5128_ACEOF
5129cat confdefs.h >>conftest.$ac_ext
5130cat >>conftest.$ac_ext <<_ACEOF
5131/* end confdefs.h. */
5132#include <arpa/inet.h>
5133_ACEOF
5134if { (ac_try="$ac_cpp conftest.$ac_ext"
5135case "(($ac_try" in
5136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5137 *) ac_try_echo=$ac_try;;
5138esac
5139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5141 ac_status=$?
5142 grep -v '^ *+' conftest.er1 >conftest.err
5143 rm -f conftest.er1
5144 cat conftest.err >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } >/dev/null && {
5147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5148 test ! -s conftest.err
5149 }; then
5150 ac_header_preproc=yes
5151else
5152 echo "$as_me: failed program was:" >&5
5153sed 's/^/| /' conftest.$ac_ext >&5
5154
5155 ac_header_preproc=no
5156fi
5157
5158rm -f conftest.err conftest.$ac_ext
5159{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5160echo "${ECHO_T}$ac_header_preproc" >&6; }
5161
5162# So? What about this header?
5163case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5164 yes:no: )
5165 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
5166echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5167 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
5168echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
5169 ac_header_preproc=yes
5170 ;;
5171 no:yes:* )
5172 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
5173echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
5174 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
5175echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
5176 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
5177echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
5178 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
5179echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
5180 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
5181echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
5182 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
5183echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
5184
5185 ;;
5186esac
5187{ echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
5188echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
5189if test "${ac_cv_header_arpa_inet_h+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5191else
5192 ac_cv_header_arpa_inet_h=$ac_header_preproc
5193fi
5194{ echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
5195echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
5196
5197fi
5198if test $ac_cv_header_arpa_inet_h = yes; then
5199 cat >>confdefs.h <<\_ACEOF
5200#define PJ_HAS_ARPA_INET_H 1
5201_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005202
5203fi
5204
5205
Sauw Mingd8aa67c2011-08-09 04:31:41 +00005206if test "${ac_cv_header_assert_h+set}" = set; then
5207 { echo "$as_me:$LINENO: checking for assert.h" >&5
5208echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
5209if test "${ac_cv_header_assert_h+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211fi
5212{ echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
5213echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
5214else
5215 # Is the header compilable?
5216{ echo "$as_me:$LINENO: checking assert.h usability" >&5
5217echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; }
5218cat >conftest.$ac_ext <<_ACEOF
5219/* confdefs.h. */
5220_ACEOF
5221cat confdefs.h >>conftest.$ac_ext
5222cat >>conftest.$ac_ext <<_ACEOF
5223/* end confdefs.h. */
5224$ac_includes_default
5225#include <assert.h>
5226_ACEOF
5227rm -f conftest.$ac_objext
5228if { (ac_try="$ac_compile"
5229case "(($ac_try" in
5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231 *) ac_try_echo=$ac_try;;
5232esac
5233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5234 (eval "$ac_compile") 2>conftest.er1
5235 ac_status=$?
5236 grep -v '^ *+' conftest.er1 >conftest.err
5237 rm -f conftest.er1
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } && {
5241 test -z "$ac_c_werror_flag" ||
5242 test ! -s conftest.err
5243 } && test -s conftest.$ac_objext; then
5244 ac_header_compiler=yes
5245else
5246 echo "$as_me: failed program was:" >&5
5247sed 's/^/| /' conftest.$ac_ext >&5
5248
5249 ac_header_compiler=no
5250fi
5251
5252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5253{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5254echo "${ECHO_T}$ac_header_compiler" >&6; }
5255
5256# Is the header present?
5257{ echo "$as_me:$LINENO: checking assert.h presence" >&5
5258echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; }
5259cat >conftest.$ac_ext <<_ACEOF
5260/* confdefs.h. */
5261_ACEOF
5262cat confdefs.h >>conftest.$ac_ext
5263cat >>conftest.$ac_ext <<_ACEOF
5264/* end confdefs.h. */
5265#include <assert.h>
5266_ACEOF
5267if { (ac_try="$ac_cpp conftest.$ac_ext"
5268case "(($ac_try" in
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5271esac
5272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5274 ac_status=$?
5275 grep -v '^ *+' conftest.er1 >conftest.err
5276 rm -f conftest.er1
5277 cat conftest.err >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } >/dev/null && {
5280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5281 test ! -s conftest.err
5282 }; then
5283 ac_header_preproc=yes
5284else
5285 echo "$as_me: failed program was:" >&5
5286sed 's/^/| /' conftest.$ac_ext >&5
5287
5288 ac_header_preproc=no
5289fi
5290
5291rm -f conftest.err conftest.$ac_ext
5292{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5293echo "${ECHO_T}$ac_header_preproc" >&6; }
5294
5295# So? What about this header?
5296case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5297 yes:no: )
5298 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
5299echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5300 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
5301echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
5302 ac_header_preproc=yes
5303 ;;
5304 no:yes:* )
5305 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
5306echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
5307 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
5308echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
5309 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
5310echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
5311 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
5312echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
5313 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
5314echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
5315 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
5316echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
5317
5318 ;;
5319esac
5320{ echo "$as_me:$LINENO: checking for assert.h" >&5
5321echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
5322if test "${ac_cv_header_assert_h+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5324else
5325 ac_cv_header_assert_h=$ac_header_preproc
5326fi
5327{ echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
5328echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
5329
5330fi
5331if test $ac_cv_header_assert_h = yes; then
5332 cat >>confdefs.h <<\_ACEOF
5333#define PJ_HAS_ASSERT_H 1
5334_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005335
5336fi
5337
5338
Sauw Mingd8aa67c2011-08-09 04:31:41 +00005339if test "${ac_cv_header_ctype_h+set}" = set; then
5340 { echo "$as_me:$LINENO: checking for ctype.h" >&5
5341echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; }
5342if test "${ac_cv_header_ctype_h+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344fi
5345{ echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
5346echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; }
5347else
5348 # Is the header compilable?
5349{ echo "$as_me:$LINENO: checking ctype.h usability" >&5
5350echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6; }
5351cat >conftest.$ac_ext <<_ACEOF
5352/* confdefs.h. */
5353_ACEOF
5354cat confdefs.h >>conftest.$ac_ext
5355cat >>conftest.$ac_ext <<_ACEOF
5356/* end confdefs.h. */
5357$ac_includes_default
5358#include <ctype.h>
5359_ACEOF
5360rm -f conftest.$ac_objext
5361if { (ac_try="$ac_compile"
5362case "(($ac_try" in
5363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364 *) ac_try_echo=$ac_try;;
5365esac
5366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5367 (eval "$ac_compile") 2>conftest.er1
5368 ac_status=$?
5369 grep -v '^ *+' conftest.er1 >conftest.err
5370 rm -f conftest.er1
5371 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } && {
5374 test -z "$ac_c_werror_flag" ||
5375 test ! -s conftest.err
5376 } && test -s conftest.$ac_objext; then
5377 ac_header_compiler=yes
5378else
5379 echo "$as_me: failed program was:" >&5
5380sed 's/^/| /' conftest.$ac_ext >&5
5381
5382 ac_header_compiler=no
5383fi
5384
5385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5386{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5387echo "${ECHO_T}$ac_header_compiler" >&6; }
5388
5389# Is the header present?
5390{ echo "$as_me:$LINENO: checking ctype.h presence" >&5
5391echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6; }
5392cat >conftest.$ac_ext <<_ACEOF
5393/* confdefs.h. */
5394_ACEOF
5395cat confdefs.h >>conftest.$ac_ext
5396cat >>conftest.$ac_ext <<_ACEOF
5397/* end confdefs.h. */
5398#include <ctype.h>
5399_ACEOF
5400if { (ac_try="$ac_cpp conftest.$ac_ext"
5401case "(($ac_try" in
5402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5403 *) ac_try_echo=$ac_try;;
5404esac
5405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5407 ac_status=$?
5408 grep -v '^ *+' conftest.er1 >conftest.err
5409 rm -f conftest.er1
5410 cat conftest.err >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); } >/dev/null && {
5413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5414 test ! -s conftest.err
5415 }; then
5416 ac_header_preproc=yes
5417else
5418 echo "$as_me: failed program was:" >&5
5419sed 's/^/| /' conftest.$ac_ext >&5
5420
5421 ac_header_preproc=no
5422fi
5423
5424rm -f conftest.err conftest.$ac_ext
5425{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5426echo "${ECHO_T}$ac_header_preproc" >&6; }
5427
5428# So? What about this header?
5429case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5430 yes:no: )
5431 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5
5432echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5433 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5
5434echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;}
5435 ac_header_preproc=yes
5436 ;;
5437 no:yes:* )
5438 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5
5439echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;}
5440 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5
5441echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;}
5442 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5
5443echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;}
5444 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5
5445echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;}
5446 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5
5447echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;}
5448 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5
5449echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;}
5450
5451 ;;
5452esac
5453{ echo "$as_me:$LINENO: checking for ctype.h" >&5
5454echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; }
5455if test "${ac_cv_header_ctype_h+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5457else
5458 ac_cv_header_ctype_h=$ac_header_preproc
5459fi
5460{ echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
5461echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; }
5462
5463fi
5464if test $ac_cv_header_ctype_h = yes; then
5465 cat >>confdefs.h <<\_ACEOF
5466#define PJ_HAS_CTYPE_H 1
5467_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005468
5469fi
5470
5471
5472
5473case $target in
5474 *mingw* | *cygw* | *win32* | *w32* )
Sauw Mingd8aa67c2011-08-09 04:31:41 +00005475 cat >>confdefs.h <<\_ACEOF
5476#define PJ_HAS_ERRNO_H 0
5477_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005478
5479 ;;
5480 *)
Sauw Mingd8aa67c2011-08-09 04:31:41 +00005481 if test "${ac_cv_header_errno_h+set}" = set; then
5482 { echo "$as_me:$LINENO: checking for errno.h" >&5
5483echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
5484if test "${ac_cv_header_errno_h+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5486fi
5487{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5488echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
5489else
5490 # Is the header compilable?
5491{ echo "$as_me:$LINENO: checking errno.h usability" >&5
5492echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; }
5493cat >conftest.$ac_ext <<_ACEOF
5494/* confdefs.h. */
5495_ACEOF
5496cat confdefs.h >>conftest.$ac_ext
5497cat >>conftest.$ac_ext <<_ACEOF
5498/* end confdefs.h. */
5499$ac_includes_default
5500#include <errno.h>
5501_ACEOF
5502rm -f conftest.$ac_objext
5503if { (ac_try="$ac_compile"
5504case "(($ac_try" in
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5507esac
5508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_compile") 2>conftest.er1
5510 ac_status=$?
5511 grep -v '^ *+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } && {
5516 test -z "$ac_c_werror_flag" ||
5517 test ! -s conftest.err
5518 } && test -s conftest.$ac_objext; then
5519 ac_header_compiler=yes
5520else
5521 echo "$as_me: failed program was:" >&5
5522sed 's/^/| /' conftest.$ac_ext >&5
5523
5524 ac_header_compiler=no
5525fi
5526
5527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5529echo "${ECHO_T}$ac_header_compiler" >&6; }
5530
5531# Is the header present?
5532{ echo "$as_me:$LINENO: checking errno.h presence" >&5
5533echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; }
5534cat >conftest.$ac_ext <<_ACEOF
5535/* confdefs.h. */
5536_ACEOF
5537cat confdefs.h >>conftest.$ac_ext
5538cat >>conftest.$ac_ext <<_ACEOF
5539/* end confdefs.h. */
5540#include <errno.h>
5541_ACEOF
5542if { (ac_try="$ac_cpp conftest.$ac_ext"
5543case "(($ac_try" in
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5546esac
5547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5549 ac_status=$?
5550 grep -v '^ *+' conftest.er1 >conftest.err
5551 rm -f conftest.er1
5552 cat conftest.err >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } >/dev/null && {
5555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5556 test ! -s conftest.err
5557 }; then
5558 ac_header_preproc=yes
5559else
5560 echo "$as_me: failed program was:" >&5
5561sed 's/^/| /' conftest.$ac_ext >&5
5562
5563 ac_header_preproc=no
5564fi
5565
5566rm -f conftest.err conftest.$ac_ext
5567{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5568echo "${ECHO_T}$ac_header_preproc" >&6; }
5569
5570# So? What about this header?
5571case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5572 yes:no: )
5573 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
5574echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5575 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
5576echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
5577 ac_header_preproc=yes
5578 ;;
5579 no:yes:* )
5580 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
5581echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
5582 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5
5583echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;}
5584 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
5585echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
5586 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5
5587echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
5588 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
5589echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
5590 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
5591echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
5592
5593 ;;
5594esac
5595{ echo "$as_me:$LINENO: checking for errno.h" >&5
5596echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
5597if test "${ac_cv_header_errno_h+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5599else
5600 ac_cv_header_errno_h=$ac_header_preproc
5601fi
5602{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5603echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
5604
5605fi
5606if test $ac_cv_header_errno_h = yes; then
5607 cat >>confdefs.h <<\_ACEOF
5608#define PJ_HAS_ERRNO_H 1
5609_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005610
5611fi
5612
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005613
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005614 ;;
5615esac
5616
Sauw Mingd8aa67c2011-08-09 04:31:41 +00005617if test "${ac_cv_header_fcntl_h+set}" = set; then
5618 { echo "$as_me:$LINENO: checking for fcntl.h" >&5
5619echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; }
5620if test "${ac_cv_header_fcntl_h+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5622fi
5623{ echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
5624echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; }
5625else
5626 # Is the header compilable?
5627{ echo "$as_me:$LINENO: checking fcntl.h usability" >&5
5628echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6; }
5629cat >conftest.$ac_ext <<_ACEOF
5630/* confdefs.h. */
5631_ACEOF
5632cat confdefs.h >>conftest.$ac_ext
5633cat >>conftest.$ac_ext <<_ACEOF
5634/* end confdefs.h. */
5635$ac_includes_default
5636#include <fcntl.h>
5637_ACEOF
5638rm -f conftest.$ac_objext
5639if { (ac_try="$ac_compile"
5640case "(($ac_try" in
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5643esac
5644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645 (eval "$ac_compile") 2>conftest.er1
5646 ac_status=$?
5647 grep -v '^ *+' conftest.er1 >conftest.err
5648 rm -f conftest.er1
5649 cat conftest.err >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } && {
5652 test -z "$ac_c_werror_flag" ||
5653 test ! -s conftest.err
5654 } && test -s conftest.$ac_objext; then
5655 ac_header_compiler=yes
5656else
5657 echo "$as_me: failed program was:" >&5
5658sed 's/^/| /' conftest.$ac_ext >&5
5659
5660 ac_header_compiler=no
5661fi
5662
5663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5665echo "${ECHO_T}$ac_header_compiler" >&6; }
5666
5667# Is the header present?
5668{ echo "$as_me:$LINENO: checking fcntl.h presence" >&5
5669echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6; }
5670cat >conftest.$ac_ext <<_ACEOF
5671/* confdefs.h. */
5672_ACEOF
5673cat confdefs.h >>conftest.$ac_ext
5674cat >>conftest.$ac_ext <<_ACEOF
5675/* end confdefs.h. */
5676#include <fcntl.h>
5677_ACEOF
5678if { (ac_try="$ac_cpp conftest.$ac_ext"
5679case "(($ac_try" in
5680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681 *) ac_try_echo=$ac_try;;
5682esac
5683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5685 ac_status=$?
5686 grep -v '^ *+' conftest.er1 >conftest.err
5687 rm -f conftest.er1
5688 cat conftest.err >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); } >/dev/null && {
5691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5692 test ! -s conftest.err
5693 }; then
5694 ac_header_preproc=yes
5695else
5696 echo "$as_me: failed program was:" >&5
5697sed 's/^/| /' conftest.$ac_ext >&5
5698
5699 ac_header_preproc=no
5700fi
5701
5702rm -f conftest.err conftest.$ac_ext
5703{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5704echo "${ECHO_T}$ac_header_preproc" >&6; }
5705
5706# So? What about this header?
5707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5708 yes:no: )
5709 { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5710echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5711 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5
5712echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;}
5713 ac_header_preproc=yes
5714 ;;
5715 no:yes:* )
5716 { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5
5717echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;}
5718 { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5
5719echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;}
5720 { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5
5721echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;}
5722 { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5
5723echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5724 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5
5725echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;}
5726 { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5
5727echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;}
5728
5729 ;;
5730esac
5731{ echo "$as_me:$LINENO: checking for fcntl.h" >&5
5732echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; }
5733if test "${ac_cv_header_fcntl_h+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5735else
5736 ac_cv_header_fcntl_h=$ac_header_preproc
5737fi
5738{ echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
5739echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; }
5740
5741fi
5742if test $ac_cv_header_fcntl_h = yes; then
5743 cat >>confdefs.h <<\_ACEOF
5744#define PJ_HAS_FCNTL_H 1
5745_ACEOF
Benny Prijono1d481ab2008-01-24 15:27:30 +00005746
5747fi
5748
5749
Sauw Mingd8aa67c2011-08-09 04:31:41 +00005750if test "${ac_cv_header_linux_socket_h+set}" = set; then
5751 { echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5752echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; }
5753if test "${ac_cv_header_linux_socket_h+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755fi
5756{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5757echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; }
5758else
5759 # Is the header compilable?
5760{ echo "$as_me:$LINENO: checking linux/socket.h usability" >&5
5761echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6; }
5762cat >conftest.$ac_ext <<_ACEOF
5763/* confdefs.h. */
5764_ACEOF
5765cat confdefs.h >>conftest.$ac_ext
5766cat >>conftest.$ac_ext <<_ACEOF
5767/* end confdefs.h. */
5768$ac_includes_default
5769#include <linux/socket.h>
5770_ACEOF
5771rm -f conftest.$ac_objext
5772if { (ac_try="$ac_compile"
5773case "(($ac_try" in
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5776esac
5777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_compile") 2>conftest.er1
5779 ac_status=$?
5780 grep -v '^ *+' conftest.er1 >conftest.err
5781 rm -f conftest.er1
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } && {
5785 test -z "$ac_c_werror_flag" ||
5786 test ! -s conftest.err
5787 } && test -s conftest.$ac_objext; then
5788 ac_header_compiler=yes
5789else
5790 echo "$as_me: failed program was:" >&5
5791sed 's/^/| /' conftest.$ac_ext >&5
5792
5793 ac_header_compiler=no
5794fi
5795
5796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5798echo "${ECHO_T}$ac_header_compiler" >&6; }
5799
5800# Is the header present?
5801{ echo "$as_me:$LINENO: checking linux/socket.h presence" >&5
5802echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6; }
5803cat >conftest.$ac_ext <<_ACEOF
5804/* confdefs.h. */
5805_ACEOF
5806cat confdefs.h >>conftest.$ac_ext
5807cat >>conftest.$ac_ext <<_ACEOF
5808/* end confdefs.h. */
5809#include <linux/socket.h>
5810_ACEOF
5811if { (ac_try="$ac_cpp conftest.$ac_ext"
5812case "(($ac_try" in
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5815esac
5816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5818 ac_status=$?
5819 grep -v '^ *+' conftest.er1 >conftest.err
5820 rm -f conftest.er1
5821 cat conftest.err >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } >/dev/null && {
5824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5825 test ! -s conftest.err
5826 }; then
5827 ac_header_preproc=yes
5828else
5829 echo "$as_me: failed program was:" >&5
5830sed 's/^/| /' conftest.$ac_ext >&5
5831
5832 ac_header_preproc=no
5833fi
5834
5835rm -f conftest.err conftest.$ac_ext
5836{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5837echo "${ECHO_T}$ac_header_preproc" >&6; }
5838
5839# So? What about this header?
5840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5841 yes:no: )
5842 { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
5843echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5844 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5
5845echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;}
5846 ac_header_preproc=yes
5847 ;;
5848 no:yes:* )
5849 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5
5850echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;}
5851 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5
5852echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;}
5853 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5
5854echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;}
5855 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5
5856echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
5857 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5
5858echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;}
5859 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5
5860echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;}
5861
5862 ;;
5863esac
5864{ echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5865echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; }
5866if test "${ac_cv_header_linux_socket_h+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868else
5869 ac_cv_header_linux_socket_h=$ac_header_preproc
5870fi
5871{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5872echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; }
5873
5874fi
5875if test $ac_cv_header_linux_socket_h = yes; then
5876 cat >>confdefs.h <<\_ACEOF
5877#define PJ_HAS_LINUX_SOCKET_H 1
5878_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005879
5880fi
5881
5882
Sauw Mingd8aa67c2011-08-09 04:31:41 +00005883if test "${ac_cv_header_limits_h+set}" = set; then
5884 { echo "$as_me:$LINENO: checking for limits.h" >&5
5885echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; }
5886if test "${ac_cv_header_limits_h+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888fi
5889{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
5890echo "${ECHO_T}$ac_cv_header_limits_h" >&6; }
5891else
5892 # Is the header compilable?
5893{ echo "$as_me:$LINENO: checking limits.h usability" >&5
5894echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; }
5895cat >conftest.$ac_ext <<_ACEOF
5896/* confdefs.h. */
5897_ACEOF
5898cat confdefs.h >>conftest.$ac_ext
5899cat >>conftest.$ac_ext <<_ACEOF
5900/* end confdefs.h. */
5901$ac_includes_default
5902#include <limits.h>
5903_ACEOF
5904rm -f conftest.$ac_objext
5905if { (ac_try="$ac_compile"
5906case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5909esac
5910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_compile") 2>conftest.er1
5912 ac_status=$?
5913 grep -v '^ *+' conftest.er1 >conftest.err
5914 rm -f conftest.er1
5915 cat conftest.err >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } && {
5918 test -z "$ac_c_werror_flag" ||
5919 test ! -s conftest.err
5920 } && test -s conftest.$ac_objext; then
5921 ac_header_compiler=yes
5922else
5923 echo "$as_me: failed program was:" >&5
5924sed 's/^/| /' conftest.$ac_ext >&5
5925
5926 ac_header_compiler=no
5927fi
5928
5929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5930{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5931echo "${ECHO_T}$ac_header_compiler" >&6; }
5932
5933# Is the header present?
5934{ echo "$as_me:$LINENO: checking limits.h presence" >&5
5935echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; }
5936cat >conftest.$ac_ext <<_ACEOF
5937/* confdefs.h. */
5938_ACEOF
5939cat confdefs.h >>conftest.$ac_ext
5940cat >>conftest.$ac_ext <<_ACEOF
5941/* end confdefs.h. */
5942#include <limits.h>
5943_ACEOF
5944if { (ac_try="$ac_cpp conftest.$ac_ext"
5945case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948esac
5949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } >/dev/null && {
5957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5958 test ! -s conftest.err
5959 }; then
5960 ac_header_preproc=yes
5961else
5962 echo "$as_me: failed program was:" >&5
5963sed 's/^/| /' conftest.$ac_ext >&5
5964
5965 ac_header_preproc=no
5966fi
5967
5968rm -f conftest.err conftest.$ac_ext
5969{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5970echo "${ECHO_T}$ac_header_preproc" >&6; }
5971
5972# So? What about this header?
5973case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5974 yes:no: )
5975 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5
5976echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5977 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5
5978echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;}
5979 ac_header_preproc=yes
5980 ;;
5981 no:yes:* )
5982 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5
5983echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;}
5984 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5
5985echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;}
5986 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5
5987echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;}
5988 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5
5989echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;}
5990 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5
5991echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;}
5992 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5
5993echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;}
5994
5995 ;;
5996esac
5997{ echo "$as_me:$LINENO: checking for limits.h" >&5
5998echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; }
5999if test "${ac_cv_header_limits_h+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001else
6002 ac_cv_header_limits_h=$ac_header_preproc
6003fi
6004{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
6005echo "${ECHO_T}$ac_cv_header_limits_h" >&6; }
6006
6007fi
6008if test $ac_cv_header_limits_h = yes; then
6009 cat >>confdefs.h <<\_ACEOF
6010#define PJ_HAS_LIMITS_H 1
6011_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006012
6013fi
6014
6015
Sauw Mingd8aa67c2011-08-09 04:31:41 +00006016if test "${ac_cv_header_malloc_h+set}" = set; then
6017 { echo "$as_me:$LINENO: checking for malloc.h" >&5
6018echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
6019if test "${ac_cv_header_malloc_h+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6021fi
6022{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
6023echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
6024else
6025 # Is the header compilable?
6026{ echo "$as_me:$LINENO: checking malloc.h usability" >&5
6027echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; }
6028cat >conftest.$ac_ext <<_ACEOF
6029/* confdefs.h. */
6030_ACEOF
6031cat confdefs.h >>conftest.$ac_ext
6032cat >>conftest.$ac_ext <<_ACEOF
6033/* end confdefs.h. */
6034$ac_includes_default
6035#include <malloc.h>
6036_ACEOF
6037rm -f conftest.$ac_objext
6038if { (ac_try="$ac_compile"
6039case "(($ac_try" in
6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041 *) ac_try_echo=$ac_try;;
6042esac
6043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6044 (eval "$ac_compile") 2>conftest.er1
6045 ac_status=$?
6046 grep -v '^ *+' conftest.er1 >conftest.err
6047 rm -f conftest.er1
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } && {
6051 test -z "$ac_c_werror_flag" ||
6052 test ! -s conftest.err
6053 } && test -s conftest.$ac_objext; then
6054 ac_header_compiler=yes
6055else
6056 echo "$as_me: failed program was:" >&5
6057sed 's/^/| /' conftest.$ac_ext >&5
6058
6059 ac_header_compiler=no
6060fi
6061
6062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6064echo "${ECHO_T}$ac_header_compiler" >&6; }
6065
6066# Is the header present?
6067{ echo "$as_me:$LINENO: checking malloc.h presence" >&5
6068echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; }
6069cat >conftest.$ac_ext <<_ACEOF
6070/* confdefs.h. */
6071_ACEOF
6072cat confdefs.h >>conftest.$ac_ext
6073cat >>conftest.$ac_ext <<_ACEOF
6074/* end confdefs.h. */
6075#include <malloc.h>
6076_ACEOF
6077if { (ac_try="$ac_cpp conftest.$ac_ext"
6078case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6081esac
6082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6084 ac_status=$?
6085 grep -v '^ *+' conftest.er1 >conftest.err
6086 rm -f conftest.er1
6087 cat conftest.err >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } >/dev/null && {
6090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6091 test ! -s conftest.err
6092 }; then
6093 ac_header_preproc=yes
6094else
6095 echo "$as_me: failed program was:" >&5
6096sed 's/^/| /' conftest.$ac_ext >&5
6097
6098 ac_header_preproc=no
6099fi
6100
6101rm -f conftest.err conftest.$ac_ext
6102{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6103echo "${ECHO_T}$ac_header_preproc" >&6; }
6104
6105# So? What about this header?
6106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6107 yes:no: )
6108 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
6109echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6110 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
6111echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
6112 ac_header_preproc=yes
6113 ;;
6114 no:yes:* )
6115 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
6116echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
6117 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
6118echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
6119 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
6120echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
6121 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
6122echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
6123 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
6124echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
6125 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
6126echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
6127
6128 ;;
6129esac
6130{ echo "$as_me:$LINENO: checking for malloc.h" >&5
6131echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
6132if test "${ac_cv_header_malloc_h+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6134else
6135 ac_cv_header_malloc_h=$ac_header_preproc
6136fi
6137{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
6138echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
6139
6140fi
6141if test $ac_cv_header_malloc_h = yes; then
6142 cat >>confdefs.h <<\_ACEOF
6143#define PJ_HAS_MALLOC_H 1
6144_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006145
6146fi
6147
6148
Sauw Mingd8aa67c2011-08-09 04:31:41 +00006149if test "${ac_cv_header_netdb_h+set}" = set; then
6150 { echo "$as_me:$LINENO: checking for netdb.h" >&5
6151echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; }
6152if test "${ac_cv_header_netdb_h+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6154fi
6155{ echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
6156echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; }
6157else
6158 # Is the header compilable?
6159{ echo "$as_me:$LINENO: checking netdb.h usability" >&5
6160echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6; }
6161cat >conftest.$ac_ext <<_ACEOF
6162/* confdefs.h. */
6163_ACEOF
6164cat confdefs.h >>conftest.$ac_ext
6165cat >>conftest.$ac_ext <<_ACEOF
6166/* end confdefs.h. */
6167$ac_includes_default
6168#include <netdb.h>
6169_ACEOF
6170rm -f conftest.$ac_objext
6171if { (ac_try="$ac_compile"
6172case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6175esac
6176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177 (eval "$ac_compile") 2>conftest.er1
6178 ac_status=$?
6179 grep -v '^ *+' conftest.er1 >conftest.err
6180 rm -f conftest.er1
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } && {
6184 test -z "$ac_c_werror_flag" ||
6185 test ! -s conftest.err
6186 } && test -s conftest.$ac_objext; then
6187 ac_header_compiler=yes
6188else
6189 echo "$as_me: failed program was:" >&5
6190sed 's/^/| /' conftest.$ac_ext >&5
6191
6192 ac_header_compiler=no
6193fi
6194
6195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6197echo "${ECHO_T}$ac_header_compiler" >&6; }
6198
6199# Is the header present?
6200{ echo "$as_me:$LINENO: checking netdb.h presence" >&5
6201echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6; }
6202cat >conftest.$ac_ext <<_ACEOF
6203/* confdefs.h. */
6204_ACEOF
6205cat confdefs.h >>conftest.$ac_ext
6206cat >>conftest.$ac_ext <<_ACEOF
6207/* end confdefs.h. */
6208#include <netdb.h>
6209_ACEOF
6210if { (ac_try="$ac_cpp conftest.$ac_ext"
6211case "(($ac_try" in
6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6214esac
6215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6217 ac_status=$?
6218 grep -v '^ *+' conftest.er1 >conftest.err
6219 rm -f conftest.er1
6220 cat conftest.err >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } >/dev/null && {
6223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6224 test ! -s conftest.err
6225 }; then
6226 ac_header_preproc=yes
6227else
6228 echo "$as_me: failed program was:" >&5
6229sed 's/^/| /' conftest.$ac_ext >&5
6230
6231 ac_header_preproc=no
6232fi
6233
6234rm -f conftest.err conftest.$ac_ext
6235{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6236echo "${ECHO_T}$ac_header_preproc" >&6; }
6237
6238# So? What about this header?
6239case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6240 yes:no: )
6241 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
6242echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6243 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5
6244echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;}
6245 ac_header_preproc=yes
6246 ;;
6247 no:yes:* )
6248 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5
6249echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;}
6250 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5
6251echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;}
6252 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5
6253echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;}
6254 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5
6255echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
6256 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5
6257echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;}
6258 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5
6259echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;}
6260
6261 ;;
6262esac
6263{ echo "$as_me:$LINENO: checking for netdb.h" >&5
6264echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; }
6265if test "${ac_cv_header_netdb_h+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267else
6268 ac_cv_header_netdb_h=$ac_header_preproc
6269fi
6270{ echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
6271echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; }
6272
6273fi
6274if test $ac_cv_header_netdb_h = yes; then
6275 cat >>confdefs.h <<\_ACEOF
6276#define PJ_HAS_NETDB_H 1
6277_ACEOF
Benny Prijono37fc9de2008-08-04 14:45:02 +00006278
6279fi
6280
6281
Sauw Mingd8aa67c2011-08-09 04:31:41 +00006282if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
6283 { echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5
6284echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; }
6285if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287fi
6288{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5
6289echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; }
6290else
6291 # Is the header compilable?
6292{ echo "$as_me:$LINENO: checking netinet/in_systm.h usability" >&5
6293echo $ECHO_N "checking netinet/in_systm.h usability... $ECHO_C" >&6; }
6294cat >conftest.$ac_ext <<_ACEOF
6295/* confdefs.h. */
6296_ACEOF
6297cat confdefs.h >>conftest.$ac_ext
6298cat >>conftest.$ac_ext <<_ACEOF
6299/* end confdefs.h. */
6300$ac_includes_default
6301#include <netinet/in_systm.h>
6302_ACEOF
6303rm -f conftest.$ac_objext
6304if { (ac_try="$ac_compile"
6305case "(($ac_try" in
6306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307 *) ac_try_echo=$ac_try;;
6308esac
6309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310 (eval "$ac_compile") 2>conftest.er1
6311 ac_status=$?
6312 grep -v '^ *+' conftest.er1 >conftest.err
6313 rm -f conftest.er1
6314 cat conftest.err >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } && {
6317 test -z "$ac_c_werror_flag" ||
6318 test ! -s conftest.err
6319 } && test -s conftest.$ac_objext; then
6320 ac_header_compiler=yes
6321else
6322 echo "$as_me: failed program was:" >&5
6323sed 's/^/| /' conftest.$ac_ext >&5
6324
6325 ac_header_compiler=no
6326fi
6327
6328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6330echo "${ECHO_T}$ac_header_compiler" >&6; }
6331
6332# Is the header present?
6333{ echo "$as_me:$LINENO: checking netinet/in_systm.h presence" >&5
6334echo $ECHO_N "checking netinet/in_systm.h presence... $ECHO_C" >&6; }
6335cat >conftest.$ac_ext <<_ACEOF
6336/* confdefs.h. */
6337_ACEOF
6338cat confdefs.h >>conftest.$ac_ext
6339cat >>conftest.$ac_ext <<_ACEOF
6340/* end confdefs.h. */
6341#include <netinet/in_systm.h>
6342_ACEOF
6343if { (ac_try="$ac_cpp conftest.$ac_ext"
6344case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347esac
6348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6350 ac_status=$?
6351 grep -v '^ *+' conftest.er1 >conftest.err
6352 rm -f conftest.er1
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } >/dev/null && {
6356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6357 test ! -s conftest.err
6358 }; then
6359 ac_header_preproc=yes
6360else
6361 echo "$as_me: failed program was:" >&5
6362sed 's/^/| /' conftest.$ac_ext >&5
6363
6364 ac_header_preproc=no
6365fi
6366
6367rm -f conftest.err conftest.$ac_ext
6368{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6369echo "${ECHO_T}$ac_header_preproc" >&6; }
6370
6371# So? What about this header?
6372case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6373 yes:no: )
6374 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&5
6375echo "$as_me: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6376 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&5
6377echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&2;}
6378 ac_header_preproc=yes
6379 ;;
6380 no:yes:* )
6381 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: present but cannot be compiled" >&5
6382echo "$as_me: WARNING: netinet/in_systm.h: present but cannot be compiled" >&2;}
6383 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&5
6384echo "$as_me: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&2;}
6385 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&5
6386echo "$as_me: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&2;}
6387 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&5
6388echo "$as_me: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&2;}
6389 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&5
6390echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&2;}
6391 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&5
6392echo "$as_me: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&2;}
6393
6394 ;;
6395esac
6396{ echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5
6397echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; }
6398if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400else
6401 ac_cv_header_netinet_in_systm_h=$ac_header_preproc
6402fi
6403{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5
6404echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; }
6405
6406fi
6407if test $ac_cv_header_netinet_in_systm_h = yes; then
6408 cat >>confdefs.h <<\_ACEOF
6409#define PJ_HAS_NETINET_IN_SYSTM_H 1
6410_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006411
6412fi
6413
6414
Sauw Mingd8aa67c2011-08-09 04:31:41 +00006415if test "${ac_cv_header_netinet_in_h+set}" = set; then
6416 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
6417echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
6418if test "${ac_cv_header_netinet_in_h+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6420fi
6421{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
6422echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
6423else
6424 # Is the header compilable?
6425{ echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
6426echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
6427cat >conftest.$ac_ext <<_ACEOF
6428/* confdefs.h. */
6429_ACEOF
6430cat confdefs.h >>conftest.$ac_ext
6431cat >>conftest.$ac_ext <<_ACEOF
6432/* end confdefs.h. */
6433$ac_includes_default
6434#include <netinet/in.h>
6435_ACEOF
6436rm -f conftest.$ac_objext
6437if { (ac_try="$ac_compile"
6438case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6441esac
6442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443 (eval "$ac_compile") 2>conftest.er1
6444 ac_status=$?
6445 grep -v '^ *+' conftest.er1 >conftest.err
6446 rm -f conftest.er1
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } && {
6450 test -z "$ac_c_werror_flag" ||
6451 test ! -s conftest.err
6452 } && test -s conftest.$ac_objext; then
6453 ac_header_compiler=yes
6454else
6455 echo "$as_me: failed program was:" >&5
6456sed 's/^/| /' conftest.$ac_ext >&5
6457
6458 ac_header_compiler=no
6459fi
6460
6461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6463echo "${ECHO_T}$ac_header_compiler" >&6; }
6464
6465# Is the header present?
6466{ echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
6467echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
6468cat >conftest.$ac_ext <<_ACEOF
6469/* confdefs.h. */
6470_ACEOF
6471cat confdefs.h >>conftest.$ac_ext
6472cat >>conftest.$ac_ext <<_ACEOF
6473/* end confdefs.h. */
6474#include <netinet/in.h>
6475_ACEOF
6476if { (ac_try="$ac_cpp conftest.$ac_ext"
6477case "(($ac_try" in
6478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479 *) ac_try_echo=$ac_try;;
6480esac
6481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6483 ac_status=$?
6484 grep -v '^ *+' conftest.er1 >conftest.err
6485 rm -f conftest.er1
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } >/dev/null && {
6489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6490 test ! -s conftest.err
6491 }; then
6492 ac_header_preproc=yes
6493else
6494 echo "$as_me: failed program was:" >&5
6495sed 's/^/| /' conftest.$ac_ext >&5
6496
6497 ac_header_preproc=no
6498fi
6499
6500rm -f conftest.err conftest.$ac_ext
6501{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6502echo "${ECHO_T}$ac_header_preproc" >&6; }
6503
6504# So? What about this header?
6505case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6506 yes:no: )
6507 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
6508echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
6510echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
6511 ac_header_preproc=yes
6512 ;;
6513 no:yes:* )
6514 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
6515echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
6516 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
6517echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
6518 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
6519echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
6520 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
6521echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
6522 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
6523echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
6524 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
6525echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
6526
6527 ;;
6528esac
6529{ echo "$as_me:$LINENO: checking for netinet/in.h" >&5
6530echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
6531if test "${ac_cv_header_netinet_in_h+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533else
6534 ac_cv_header_netinet_in_h=$ac_header_preproc
6535fi
6536{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
6537echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
6538
6539fi
6540if test $ac_cv_header_netinet_in_h = yes; then
6541 cat >>confdefs.h <<\_ACEOF
6542#define PJ_HAS_NETINET_IN_H 1
6543_ACEOF
Benny Prijonoe3e65802011-02-28 07:44:19 +00006544
6545fi
6546
6547
Sauw Mingd8aa67c2011-08-09 04:31:41 +00006548{ echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
6549echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6; }
6550if test "${ac_cv_header_netinet_ip_h+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6552else
6553 cat >conftest.$ac_ext <<_ACEOF
6554/* confdefs.h. */
6555_ACEOF
6556cat confdefs.h >>conftest.$ac_ext
6557cat >>conftest.$ac_ext <<_ACEOF
6558/* end confdefs.h. */
6559#if PJ_HAS_SYS_TYPES_H
Benny Prijonod5233702010-01-13 13:09:45 +00006560 # include <sys/types.h>
6561 #endif
6562 #if PJ_HAS_NETINET_IN_SYSTM_H
Benny Prijono37fc9de2008-08-04 14:45:02 +00006563 # include <netinet/in_systm.h>
6564 #endif
Benny Prijonod5233702010-01-13 13:09:45 +00006565 #if PJ_HAS_NETINET_IN_H
6566 # include <netinet/in.h>
6567 #endif
Benny Prijono37fc9de2008-08-04 14:45:02 +00006568
Sauw Mingd8aa67c2011-08-09 04:31:41 +00006569
6570#include <netinet/ip.h>
6571_ACEOF
6572rm -f conftest.$ac_objext
6573if { (ac_try="$ac_compile"
6574case "(($ac_try" in
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6577esac
6578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_compile") 2>conftest.er1
6580 ac_status=$?
6581 grep -v '^ *+' conftest.er1 >conftest.err
6582 rm -f conftest.er1
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } && {
6586 test -z "$ac_c_werror_flag" ||
6587 test ! -s conftest.err
6588 } && test -s conftest.$ac_objext; then
6589 ac_cv_header_netinet_ip_h=yes
6590else
6591 echo "$as_me: failed program was:" >&5
6592sed 's/^/| /' conftest.$ac_ext >&5
6593
6594 ac_cv_header_netinet_ip_h=no
6595fi
6596
6597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598fi
6599{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
6600echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6; }
6601if test $ac_cv_header_netinet_ip_h = yes; then
6602 cat >>confdefs.h <<\_ACEOF
6603#define PJ_HAS_NETINET_IP_H 1
6604_ACEOF
Sauw Ming68c14572011-07-20 03:00:48 +00006605
Sauw Ming68c14572011-07-20 03:00:48 +00006606fi
6607
Sauw Ming6a970a32011-03-01 05:25:27 +00006608
Sauw Mingd8aa67c2011-08-09 04:31:41 +00006609if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
6610 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
6611echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
6612if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6614fi
6615{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
6616echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
6617else
6618 # Is the header compilable?
6619{ echo "$as_me:$LINENO: checking netinet/tcp.h usability" >&5
6620echo $ECHO_N "checking netinet/tcp.h usability... $ECHO_C" >&6; }
6621cat >conftest.$ac_ext <<_ACEOF
6622/* confdefs.h. */
6623_ACEOF
6624cat confdefs.h >>conftest.$ac_ext
6625cat >>conftest.$ac_ext <<_ACEOF
6626/* end confdefs.h. */
6627$ac_includes_default
6628#include <netinet/tcp.h>
6629_ACEOF
6630rm -f conftest.$ac_objext
6631if { (ac_try="$ac_compile"
6632case "(($ac_try" in
6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6635esac
6636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637 (eval "$ac_compile") 2>conftest.er1
6638 ac_status=$?
6639 grep -v '^ *+' conftest.er1 >conftest.err
6640 rm -f conftest.er1
6641 cat conftest.err >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } && {
6644 test -z "$ac_c_werror_flag" ||
6645 test ! -s conftest.err
6646 } && test -s conftest.$ac_objext; then
6647 ac_header_compiler=yes
6648else
6649 echo "$as_me: failed program was:" >&5
6650sed 's/^/| /' conftest.$ac_ext >&5
6651
6652 ac_header_compiler=no
6653fi
6654
6655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6657echo "${ECHO_T}$ac_header_compiler" >&6; }
6658
6659# Is the header present?
6660{ echo "$as_me:$LINENO: checking netinet/tcp.h presence" >&5
6661echo $ECHO_N "checking netinet/tcp.h presence... $ECHO_C" >&6; }
6662cat >conftest.$ac_ext <<_ACEOF
6663/* confdefs.h. */
6664_ACEOF
6665cat confdefs.h >>conftest.$ac_ext
6666cat >>conftest.$ac_ext <<_ACEOF
6667/* end confdefs.h. */
6668#include <netinet/tcp.h>
6669_ACEOF
6670if { (ac_try="$ac_cpp conftest.$ac_ext"
6671case "(($ac_try" in
6672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6673 *) ac_try_echo=$ac_try;;
6674esac
6675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6677 ac_status=$?
6678 grep -v '^ *+' conftest.er1 >conftest.err
6679 rm -f conftest.er1
6680 cat conftest.err >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); } >/dev/null && {
6683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6684 test ! -s conftest.err
6685 }; then
6686 ac_header_preproc=yes
6687else
6688 echo "$as_me: failed program was:" >&5
6689sed 's/^/| /' conftest.$ac_ext >&5
6690
6691 ac_header_preproc=no
6692fi
6693
6694rm -f conftest.err conftest.$ac_ext
6695{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6696echo "${ECHO_T}$ac_header_preproc" >&6; }
6697
6698# So? What about this header?
6699case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6700 yes:no: )
6701 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&5
6702echo "$as_me: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6703 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&5
6704echo "$as_me: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&2;}
6705 ac_header_preproc=yes
6706 ;;
6707 no:yes:* )
6708 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: present but cannot be compiled" >&5
6709echo "$as_me: WARNING: netinet/tcp.h: present but cannot be compiled" >&2;}
6710 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&5
6711echo "$as_me: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&2;}
6712 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: see the Autoconf documentation" >&5
6713echo "$as_me: WARNING: netinet/tcp.h: see the Autoconf documentation" >&2;}
6714 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&5
6715echo "$as_me: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&2;}
6716 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&5
6717echo "$as_me: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&2;}
6718 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&5
6719echo "$as_me: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&2;}
6720
6721 ;;
6722esac
6723{ echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
6724echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
6725if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6727else
6728 ac_cv_header_netinet_tcp_h=$ac_header_preproc
6729fi
6730{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
6731echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
6732
6733fi
6734if test $ac_cv_header_netinet_tcp_h = yes; then
6735 cat >>confdefs.h <<\_ACEOF
6736#define PJ_HAS_NETINET_TCP_H 1
6737_ACEOF
Sauw Ming68c14572011-07-20 03:00:48 +00006738
Sauw Ming68c14572011-07-20 03:00:48 +00006739fi
6740
Sauw Ming68c14572011-07-20 03:00:48 +00006741
Sauw Mingd8aa67c2011-08-09 04:31:41 +00006742if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6743 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
6744echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
6745if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6747fi
6748{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
6749echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
6750else
6751 # Is the header compilable?
6752{ echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
6753echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
6754cat >conftest.$ac_ext <<_ACEOF
6755/* confdefs.h. */
6756_ACEOF
6757cat confdefs.h >>conftest.$ac_ext
6758cat >>conftest.$ac_ext <<_ACEOF
6759/* end confdefs.h. */
6760$ac_includes_default
6761#include <ifaddrs.h>
6762_ACEOF
6763rm -f conftest.$ac_objext
6764if { (ac_try="$ac_compile"
6765case "(($ac_try" in
6766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6767 *) ac_try_echo=$ac_try;;
6768esac
6769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6770 (eval "$ac_compile") 2>conftest.er1
6771 ac_status=$?
6772 grep -v '^ *+' conftest.er1 >conftest.err
6773 rm -f conftest.er1
6774 cat conftest.err >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } && {
6777 test -z "$ac_c_werror_flag" ||
6778 test ! -s conftest.err
6779 } && test -s conftest.$ac_objext; then
6780 ac_header_compiler=yes
6781else
6782 echo "$as_me: failed program was:" >&5
6783sed 's/^/| /' conftest.$ac_ext >&5
6784
6785 ac_header_compiler=no
6786fi
6787
6788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6790echo "${ECHO_T}$ac_header_compiler" >&6; }
6791
6792# Is the header present?
6793{ echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
6794echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
6795cat >conftest.$ac_ext <<_ACEOF
6796/* confdefs.h. */
6797_ACEOF
6798cat confdefs.h >>conftest.$ac_ext
6799cat >>conftest.$ac_ext <<_ACEOF
6800/* end confdefs.h. */
6801#include <ifaddrs.h>
6802_ACEOF
6803if { (ac_try="$ac_cpp conftest.$ac_ext"
6804case "(($ac_try" in
6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806 *) ac_try_echo=$ac_try;;
6807esac
6808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6810 ac_status=$?
6811 grep -v '^ *+' conftest.er1 >conftest.err
6812 rm -f conftest.er1
6813 cat conftest.err >&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } >/dev/null && {
6816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6817 test ! -s conftest.err
6818 }; then
6819 ac_header_preproc=yes
6820else
6821 echo "$as_me: failed program was:" >&5
6822sed 's/^/| /' conftest.$ac_ext >&5
6823
6824 ac_header_preproc=no
6825fi
6826
6827rm -f conftest.err conftest.$ac_ext
6828{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6829echo "${ECHO_T}$ac_header_preproc" >&6; }
6830
6831# So? What about this header?
6832case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6833 yes:no: )
6834 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
6835echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6836 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
6837echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
6838 ac_header_preproc=yes
6839 ;;
6840 no:yes:* )
6841 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
6842echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
6843 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
6844echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
6845 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
6846echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
6847 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
6848echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
6849 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
6850echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
6851 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
6852echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
6853
6854 ;;
6855esac
6856{ echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
6857echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
6858if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6860else
6861 ac_cv_header_ifaddrs_h=$ac_header_preproc
6862fi
6863{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
6864echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
6865
6866fi
6867if test $ac_cv_header_ifaddrs_h = yes; then
6868 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
6869echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
6870if test "${ac_cv_func_getifaddrs+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6872else
6873 cat >conftest.$ac_ext <<_ACEOF
6874/* confdefs.h. */
6875_ACEOF
6876cat confdefs.h >>conftest.$ac_ext
6877cat >>conftest.$ac_ext <<_ACEOF
6878/* end confdefs.h. */
6879/* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
6880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6881#define getifaddrs innocuous_getifaddrs
6882
6883/* System header to define __stub macros and hopefully few prototypes,
6884 which can conflict with char getifaddrs (); below.
6885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6886 <limits.h> exists even on freestanding compilers. */
6887
6888#ifdef __STDC__
6889# include <limits.h>
6890#else
6891# include <assert.h>
6892#endif
6893
6894#undef getifaddrs
6895
6896/* Override any GCC internal prototype to avoid an error.
6897 Use char because int might match the return type of a GCC
6898 builtin and then its argument prototype would still apply. */
6899#ifdef __cplusplus
6900extern "C"
6901#endif
6902char getifaddrs ();
6903/* The GNU C library defines this for functions which it implements
6904 to always fail with ENOSYS. Some functions are actually named
6905 something starting with __ and the normal name is an alias. */
6906#if defined __stub_getifaddrs || defined __stub___getifaddrs
6907choke me
6908#endif
6909
6910int
6911main ()
6912{
6913return getifaddrs ();
6914 ;
6915 return 0;
6916}
6917_ACEOF
6918rm -f conftest.$ac_objext conftest$ac_exeext
6919if { (ac_try="$ac_link"
6920case "(($ac_try" in
6921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6922 *) ac_try_echo=$ac_try;;
6923esac
6924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6925 (eval "$ac_link") 2>conftest.er1
6926 ac_status=$?
6927 grep -v '^ *+' conftest.er1 >conftest.err
6928 rm -f conftest.er1
6929 cat conftest.err >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } && {
6932 test -z "$ac_c_werror_flag" ||
6933 test ! -s conftest.err
6934 } && test -s conftest$ac_exeext &&
6935 $as_test_x conftest$ac_exeext; then
6936 ac_cv_func_getifaddrs=yes
6937else
6938 echo "$as_me: failed program was:" >&5
6939sed 's/^/| /' conftest.$ac_ext >&5
6940
6941 ac_cv_func_getifaddrs=no
6942fi
6943
6944rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6945 conftest$ac_exeext conftest.$ac_ext
6946fi
6947{ echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
6948echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
6949if test $ac_cv_func_getifaddrs = yes; then
6950 cat >>confdefs.h <<\_ACEOF
6951#define PJ_HAS_IFADDRS_H 1
6952_ACEOF
Sauw Ming68c14572011-07-20 03:00:48 +00006953
6954fi
Sauw Ming6a970a32011-03-01 05:25:27 +00006955
Sauw Ming6a970a32011-03-01 05:25:27 +00006956fi
6957
Sauw Ming6a970a32011-03-01 05:25:27 +00006958
Sauw Mingd8aa67c2011-08-09 04:31:41 +00006959if test "${ac_cv_header_semaphore_h+set}" = set; then
6960 { echo "$as_me:$LINENO: checking for semaphore.h" >&5
6961echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; }
6962if test "${ac_cv_header_semaphore_h+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6964fi
6965{ echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
6966echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; }
6967else
6968 # Is the header compilable?
6969{ echo "$as_me:$LINENO: checking semaphore.h usability" >&5
6970echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6; }
6971cat >conftest.$ac_ext <<_ACEOF
6972/* confdefs.h. */
6973_ACEOF
6974cat confdefs.h >>conftest.$ac_ext
6975cat >>conftest.$ac_ext <<_ACEOF
6976/* end confdefs.h. */
6977$ac_includes_default
6978#include <semaphore.h>
6979_ACEOF
6980rm -f conftest.$ac_objext
6981if { (ac_try="$ac_compile"
6982case "(($ac_try" in
6983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6984 *) ac_try_echo=$ac_try;;
6985esac
6986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6987 (eval "$ac_compile") 2>conftest.er1
6988 ac_status=$?
6989 grep -v '^ *+' conftest.er1 >conftest.err
6990 rm -f conftest.er1
6991 cat conftest.err >&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } && {
6994 test -z "$ac_c_werror_flag" ||
6995 test ! -s conftest.err
6996 } && test -s conftest.$ac_objext; then
6997 ac_header_compiler=yes
6998else
6999 echo "$as_me: failed program was:" >&5
7000sed 's/^/| /' conftest.$ac_ext >&5
7001
7002 ac_header_compiler=no
7003fi
7004
7005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7007echo "${ECHO_T}$ac_header_compiler" >&6; }
7008
7009# Is the header present?
7010{ echo "$as_me:$LINENO: checking semaphore.h presence" >&5
7011echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6; }
7012cat >conftest.$ac_ext <<_ACEOF
7013/* confdefs.h. */
7014_ACEOF
7015cat confdefs.h >>conftest.$ac_ext
7016cat >>conftest.$ac_ext <<_ACEOF
7017/* end confdefs.h. */
7018#include <semaphore.h>
7019_ACEOF
7020if { (ac_try="$ac_cpp conftest.$ac_ext"
7021case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7024esac
7025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7027 ac_status=$?
7028 grep -v '^ *+' conftest.er1 >conftest.err
7029 rm -f conftest.er1
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } >/dev/null && {
7033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7034 test ! -s conftest.err
7035 }; then
7036 ac_header_preproc=yes
7037else
7038 echo "$as_me: failed program was:" >&5
7039sed 's/^/| /' conftest.$ac_ext >&5
7040
7041 ac_header_preproc=no
7042fi
7043
7044rm -f conftest.err conftest.$ac_ext
7045{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7046echo "${ECHO_T}$ac_header_preproc" >&6; }
7047
7048# So? What about this header?
7049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7050 yes:no: )
7051 { echo "$as_me:$LINENO: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&5
7052echo "$as_me: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7053 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the compiler's result" >&5
7054echo "$as_me: WARNING: semaphore.h: proceeding with the compiler's result" >&2;}
7055 ac_header_preproc=yes
7056 ;;
7057 no:yes:* )
7058 { echo "$as_me:$LINENO: WARNING: semaphore.h: present but cannot be compiled" >&5
7059echo "$as_me: WARNING: semaphore.h: present but cannot be compiled" >&2;}
7060 { echo "$as_me:$LINENO: WARNING: semaphore.h: check for missing prerequisite headers?" >&5
7061echo "$as_me: WARNING: semaphore.h: check for missing prerequisite headers?" >&2;}
7062 { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5
7063echo "$as_me: WARNING: semaphore.h: see the Autoconf documentation" >&2;}
7064 { echo "$as_me:$LINENO: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&5
7065echo "$as_me: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&2;}
7066 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the preprocessor's result" >&5
7067echo "$as_me: WARNING: semaphore.h: proceeding with the preprocessor's result" >&2;}
7068 { echo "$as_me:$LINENO: WARNING: semaphore.h: in the future, the compiler will take precedence" >&5
7069echo "$as_me: WARNING: semaphore.h: in the future, the compiler will take precedence" >&2;}
7070
7071 ;;
7072esac
7073{ echo "$as_me:$LINENO: checking for semaphore.h" >&5
7074echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; }
7075if test "${ac_cv_header_semaphore_h+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7077else
7078 ac_cv_header_semaphore_h=$ac_header_preproc
7079fi
7080{ echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
7081echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; }
7082
7083fi
7084if test $ac_cv_header_semaphore_h = yes; then
7085 cat >>confdefs.h <<\_ACEOF
7086#define PJ_HAS_SEMAPHORE_H 1
7087_ACEOF
Sauw Ming68c14572011-07-20 03:00:48 +00007088
Sauw Ming68c14572011-07-20 03:00:48 +00007089fi
7090
Sauw Ming68c14572011-07-20 03:00:48 +00007091
Sauw Mingd8aa67c2011-08-09 04:31:41 +00007092if test "${ac_cv_header_setjmp_h+set}" = set; then
7093 { echo "$as_me:$LINENO: checking for setjmp.h" >&5
7094echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; }
7095if test "${ac_cv_header_setjmp_h+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7097fi
7098{ echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
7099echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; }
7100else
7101 # Is the header compilable?
7102{ echo "$as_me:$LINENO: checking setjmp.h usability" >&5
7103echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6; }
7104cat >conftest.$ac_ext <<_ACEOF
7105/* confdefs.h. */
7106_ACEOF
7107cat confdefs.h >>conftest.$ac_ext
7108cat >>conftest.$ac_ext <<_ACEOF
7109/* end confdefs.h. */
7110$ac_includes_default
7111#include <setjmp.h>
7112_ACEOF
7113rm -f conftest.$ac_objext
7114if { (ac_try="$ac_compile"
7115case "(($ac_try" in
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7118esac
7119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120 (eval "$ac_compile") 2>conftest.er1
7121 ac_status=$?
7122 grep -v '^ *+' conftest.er1 >conftest.err
7123 rm -f conftest.er1
7124 cat conftest.err >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && {
7127 test -z "$ac_c_werror_flag" ||
7128 test ! -s conftest.err
7129 } && test -s conftest.$ac_objext; then
7130 ac_header_compiler=yes
7131else
7132 echo "$as_me: failed program was:" >&5
7133sed 's/^/| /' conftest.$ac_ext >&5
7134
7135 ac_header_compiler=no
7136fi
7137
7138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7139{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7140echo "${ECHO_T}$ac_header_compiler" >&6; }
7141
7142# Is the header present?
7143{ echo "$as_me:$LINENO: checking setjmp.h presence" >&5
7144echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6; }
7145cat >conftest.$ac_ext <<_ACEOF
7146/* confdefs.h. */
7147_ACEOF
7148cat confdefs.h >>conftest.$ac_ext
7149cat >>conftest.$ac_ext <<_ACEOF
7150/* end confdefs.h. */
7151#include <setjmp.h>
7152_ACEOF
7153if { (ac_try="$ac_cpp conftest.$ac_ext"
7154case "(($ac_try" in
7155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7156 *) ac_try_echo=$ac_try;;
7157esac
7158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7160 ac_status=$?
7161 grep -v '^ *+' conftest.er1 >conftest.err
7162 rm -f conftest.er1
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } >/dev/null && {
7166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7167 test ! -s conftest.err
7168 }; then
7169 ac_header_preproc=yes
7170else
7171 echo "$as_me: failed program was:" >&5
7172sed 's/^/| /' conftest.$ac_ext >&5
7173
7174 ac_header_preproc=no
7175fi
7176
7177rm -f conftest.err conftest.$ac_ext
7178{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7179echo "${ECHO_T}$ac_header_preproc" >&6; }
7180
7181# So? What about this header?
7182case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7183 yes:no: )
7184 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
7185echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7186 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5
7187echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;}
7188 ac_header_preproc=yes
7189 ;;
7190 no:yes:* )
7191 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5
7192echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;}
7193 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5
7194echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;}
7195 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5
7196echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;}
7197 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5
7198echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
7199 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5
7200echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;}
7201 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5
7202echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;}
7203
7204 ;;
7205esac
7206{ echo "$as_me:$LINENO: checking for setjmp.h" >&5
7207echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; }
7208if test "${ac_cv_header_setjmp_h+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7210else
7211 ac_cv_header_setjmp_h=$ac_header_preproc
7212fi
7213{ echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
7214echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; }
7215
7216fi
7217if test $ac_cv_header_setjmp_h = yes; then
7218 cat >>confdefs.h <<\_ACEOF
7219#define PJ_HAS_SETJMP_H 1
7220_ACEOF
Sauw Ming68c14572011-07-20 03:00:48 +00007221
Sauw Ming68c14572011-07-20 03:00:48 +00007222fi
7223
Sauw Ming68c14572011-07-20 03:00:48 +00007224
Sauw Mingd8aa67c2011-08-09 04:31:41 +00007225if test "${ac_cv_header_stdarg_h+set}" = set; then
7226 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
7227echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7228if test "${ac_cv_header_stdarg_h+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7230fi
7231{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7232echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7233else
7234 # Is the header compilable?
7235{ echo "$as_me:$LINENO: checking stdarg.h usability" >&5
7236echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
7237cat >conftest.$ac_ext <<_ACEOF
7238/* confdefs.h. */
7239_ACEOF
7240cat confdefs.h >>conftest.$ac_ext
7241cat >>conftest.$ac_ext <<_ACEOF
7242/* end confdefs.h. */
7243$ac_includes_default
7244#include <stdarg.h>
7245_ACEOF
7246rm -f conftest.$ac_objext
7247if { (ac_try="$ac_compile"
7248case "(($ac_try" in
7249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250 *) ac_try_echo=$ac_try;;
7251esac
7252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7253 (eval "$ac_compile") 2>conftest.er1
7254 ac_status=$?
7255 grep -v '^ *+' conftest.er1 >conftest.err
7256 rm -f conftest.er1
7257 cat conftest.err >&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } && {
7260 test -z "$ac_c_werror_flag" ||
7261 test ! -s conftest.err
7262 } && test -s conftest.$ac_objext; then
7263 ac_header_compiler=yes
7264else
7265 echo "$as_me: failed program was:" >&5
7266sed 's/^/| /' conftest.$ac_ext >&5
7267
7268 ac_header_compiler=no
7269fi
7270
7271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7272{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7273echo "${ECHO_T}$ac_header_compiler" >&6; }
7274
7275# Is the header present?
7276{ echo "$as_me:$LINENO: checking stdarg.h presence" >&5
7277echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
7278cat >conftest.$ac_ext <<_ACEOF
7279/* confdefs.h. */
7280_ACEOF
7281cat confdefs.h >>conftest.$ac_ext
7282cat >>conftest.$ac_ext <<_ACEOF
7283/* end confdefs.h. */
7284#include <stdarg.h>
7285_ACEOF
7286if { (ac_try="$ac_cpp conftest.$ac_ext"
7287case "(($ac_try" in
7288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7290esac
7291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7293 ac_status=$?
7294 grep -v '^ *+' conftest.er1 >conftest.err
7295 rm -f conftest.er1
7296 cat conftest.err >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } >/dev/null && {
7299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7300 test ! -s conftest.err
7301 }; then
7302 ac_header_preproc=yes
7303else
7304 echo "$as_me: failed program was:" >&5
7305sed 's/^/| /' conftest.$ac_ext >&5
7306
7307 ac_header_preproc=no
7308fi
7309
7310rm -f conftest.err conftest.$ac_ext
7311{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7312echo "${ECHO_T}$ac_header_preproc" >&6; }
7313
7314# So? What about this header?
7315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7316 yes:no: )
7317 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
7318echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7319 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
7320echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
7321 ac_header_preproc=yes
7322 ;;
7323 no:yes:* )
7324 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
7325echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
7326 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
7327echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
7328 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
7329echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
7330 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
7331echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
7332 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
7333echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
7334 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
7335echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
7336
7337 ;;
7338esac
7339{ echo "$as_me:$LINENO: checking for stdarg.h" >&5
7340echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7341if test "${ac_cv_header_stdarg_h+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7343else
7344 ac_cv_header_stdarg_h=$ac_header_preproc
7345fi
7346{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7347echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7348
7349fi
7350if test $ac_cv_header_stdarg_h = yes; then
7351 cat >>confdefs.h <<\_ACEOF
7352#define PJ_HAS_STDARG_H 1
7353_ACEOF
Sauw Ming68c14572011-07-20 03:00:48 +00007354
7355fi
Sauw Ming68c14572011-07-20 03:00:48 +00007356
Sauw Ming68c14572011-07-20 03:00:48 +00007357
Sauw Mingd8aa67c2011-08-09 04:31:41 +00007358if test "${ac_cv_header_stddef_h+set}" = set; then
7359 { echo "$as_me:$LINENO: checking for stddef.h" >&5
7360echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
7361if test "${ac_cv_header_stddef_h+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7363fi
7364{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
7365echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
7366else
7367 # Is the header compilable?
7368{ echo "$as_me:$LINENO: checking stddef.h usability" >&5
7369echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6; }
7370cat >conftest.$ac_ext <<_ACEOF
7371/* confdefs.h. */
7372_ACEOF
7373cat confdefs.h >>conftest.$ac_ext
7374cat >>conftest.$ac_ext <<_ACEOF
7375/* end confdefs.h. */
7376$ac_includes_default
7377#include <stddef.h>
7378_ACEOF
7379rm -f conftest.$ac_objext
7380if { (ac_try="$ac_compile"
7381case "(($ac_try" in
7382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7383 *) ac_try_echo=$ac_try;;
7384esac
7385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7386 (eval "$ac_compile") 2>conftest.er1
7387 ac_status=$?
7388 grep -v '^ *+' conftest.er1 >conftest.err
7389 rm -f conftest.er1
7390 cat conftest.err >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } && {
7393 test -z "$ac_c_werror_flag" ||
7394 test ! -s conftest.err
7395 } && test -s conftest.$ac_objext; then
7396 ac_header_compiler=yes
7397else
7398 echo "$as_me: failed program was:" >&5
7399sed 's/^/| /' conftest.$ac_ext >&5
7400
7401 ac_header_compiler=no
7402fi
7403
7404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7405{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7406echo "${ECHO_T}$ac_header_compiler" >&6; }
7407
7408# Is the header present?
7409{ echo "$as_me:$LINENO: checking stddef.h presence" >&5
7410echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6; }
7411cat >conftest.$ac_ext <<_ACEOF
7412/* confdefs.h. */
7413_ACEOF
7414cat confdefs.h >>conftest.$ac_ext
7415cat >>conftest.$ac_ext <<_ACEOF
7416/* end confdefs.h. */
7417#include <stddef.h>
7418_ACEOF
7419if { (ac_try="$ac_cpp conftest.$ac_ext"
7420case "(($ac_try" in
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7423esac
7424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7426 ac_status=$?
7427 grep -v '^ *+' conftest.er1 >conftest.err
7428 rm -f conftest.er1
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } >/dev/null && {
7432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7433 test ! -s conftest.err
7434 }; then
7435 ac_header_preproc=yes
7436else
7437 echo "$as_me: failed program was:" >&5
7438sed 's/^/| /' conftest.$ac_ext >&5
7439
7440 ac_header_preproc=no
7441fi
7442
7443rm -f conftest.err conftest.$ac_ext
7444{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7445echo "${ECHO_T}$ac_header_preproc" >&6; }
7446
7447# So? What about this header?
7448case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7449 yes:no: )
7450 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
7451echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7452 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
7453echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
7454 ac_header_preproc=yes
7455 ;;
7456 no:yes:* )
7457 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
7458echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
7459 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
7460echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
7461 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
7462echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
7463 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
7464echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
7465 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
7466echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
7467 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
7468echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
7469
7470 ;;
7471esac
7472{ echo "$as_me:$LINENO: checking for stddef.h" >&5
7473echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
7474if test "${ac_cv_header_stddef_h+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7476else
7477 ac_cv_header_stddef_h=$ac_header_preproc
7478fi
7479{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
7480echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
7481
7482fi
7483if test $ac_cv_header_stddef_h = yes; then
7484 cat >>confdefs.h <<\_ACEOF
7485#define PJ_HAS_STDDEF_H 1
7486_ACEOF
Sauw Ming68c14572011-07-20 03:00:48 +00007487
Sauw Ming68c14572011-07-20 03:00:48 +00007488fi
7489
Sauw Ming6a970a32011-03-01 05:25:27 +00007490
Sauw Mingd8aa67c2011-08-09 04:31:41 +00007491if test "${ac_cv_header_stdio_h+set}" = set; then
7492 { echo "$as_me:$LINENO: checking for stdio.h" >&5
7493echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; }
7494if test "${ac_cv_header_stdio_h+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7496fi
7497{ echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
7498echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; }
7499else
7500 # Is the header compilable?
7501{ echo "$as_me:$LINENO: checking stdio.h usability" >&5
7502echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6; }
7503cat >conftest.$ac_ext <<_ACEOF
7504/* confdefs.h. */
7505_ACEOF
7506cat confdefs.h >>conftest.$ac_ext
7507cat >>conftest.$ac_ext <<_ACEOF
7508/* end confdefs.h. */
7509$ac_includes_default
7510#include <stdio.h>
7511_ACEOF
7512rm -f conftest.$ac_objext
7513if { (ac_try="$ac_compile"
7514case "(($ac_try" in
7515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516 *) ac_try_echo=$ac_try;;
7517esac
7518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519 (eval "$ac_compile") 2>conftest.er1
7520 ac_status=$?
7521 grep -v '^ *+' conftest.er1 >conftest.err
7522 rm -f conftest.er1
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } && {
7526 test -z "$ac_c_werror_flag" ||
7527 test ! -s conftest.err
7528 } && test -s conftest.$ac_objext; then
7529 ac_header_compiler=yes
7530else
7531 echo "$as_me: failed program was:" >&5
7532sed 's/^/| /' conftest.$ac_ext >&5
7533
7534 ac_header_compiler=no
7535fi
7536
7537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7539echo "${ECHO_T}$ac_header_compiler" >&6; }
7540
7541# Is the header present?
7542{ echo "$as_me:$LINENO: checking stdio.h presence" >&5
7543echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6; }
7544cat >conftest.$ac_ext <<_ACEOF
7545/* confdefs.h. */
7546_ACEOF
7547cat confdefs.h >>conftest.$ac_ext
7548cat >>conftest.$ac_ext <<_ACEOF
7549/* end confdefs.h. */
7550#include <stdio.h>
7551_ACEOF
7552if { (ac_try="$ac_cpp conftest.$ac_ext"
7553case "(($ac_try" in
7554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7555 *) ac_try_echo=$ac_try;;
7556esac
7557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7559 ac_status=$?
7560 grep -v '^ *+' conftest.er1 >conftest.err
7561 rm -f conftest.er1
7562 cat conftest.err >&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); } >/dev/null && {
7565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7566 test ! -s conftest.err
7567 }; then
7568 ac_header_preproc=yes
7569else
7570 echo "$as_me: failed program was:" >&5
7571sed 's/^/| /' conftest.$ac_ext >&5
7572
7573 ac_header_preproc=no
7574fi
7575
7576rm -f conftest.err conftest.$ac_ext
7577{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7578echo "${ECHO_T}$ac_header_preproc" >&6; }
7579
7580# So? What about this header?
7581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7582 yes:no: )
7583 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
7584echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7585 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
7586echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
7587 ac_header_preproc=yes
7588 ;;
7589 no:yes:* )
7590 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
7591echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
7592 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
7593echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
7594 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
7595echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
7596 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
7597echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
7598 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
7599echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
7600 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
7601echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
7602
7603 ;;
7604esac
7605{ echo "$as_me:$LINENO: checking for stdio.h" >&5
7606echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; }
7607if test "${ac_cv_header_stdio_h+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609else
7610 ac_cv_header_stdio_h=$ac_header_preproc
7611fi
7612{ echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
7613echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; }
7614
7615fi
7616if test $ac_cv_header_stdio_h = yes; then
7617 cat >>confdefs.h <<\_ACEOF
7618#define PJ_HAS_STDIO_H 1
7619_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00007620
Sauw Mingbe3771a2010-08-27 06:46:29 +00007621fi
7622
Sauw Mingbe3771a2010-08-27 06:46:29 +00007623
Sauw Mingd8aa67c2011-08-09 04:31:41 +00007624if test "${ac_cv_header_stdint_h+set}" = set; then
7625 { echo "$as_me:$LINENO: checking for stdint.h" >&5
7626echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
7627if test "${ac_cv_header_stdint_h+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7629fi
7630{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
7631echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
7632else
7633 # Is the header compilable?
7634{ echo "$as_me:$LINENO: checking stdint.h usability" >&5
7635echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
7636cat >conftest.$ac_ext <<_ACEOF
7637/* confdefs.h. */
7638_ACEOF
7639cat confdefs.h >>conftest.$ac_ext
7640cat >>conftest.$ac_ext <<_ACEOF
7641/* end confdefs.h. */
7642$ac_includes_default
7643#include <stdint.h>
7644_ACEOF
7645rm -f conftest.$ac_objext
7646if { (ac_try="$ac_compile"
7647case "(($ac_try" in
7648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7649 *) ac_try_echo=$ac_try;;
7650esac
7651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7652 (eval "$ac_compile") 2>conftest.er1
7653 ac_status=$?
7654 grep -v '^ *+' conftest.er1 >conftest.err
7655 rm -f conftest.er1
7656 cat conftest.err >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } && {
7659 test -z "$ac_c_werror_flag" ||
7660 test ! -s conftest.err
7661 } && test -s conftest.$ac_objext; then
7662 ac_header_compiler=yes
7663else
7664 echo "$as_me: failed program was:" >&5
7665sed 's/^/| /' conftest.$ac_ext >&5
7666
7667 ac_header_compiler=no
7668fi
7669
7670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7671{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7672echo "${ECHO_T}$ac_header_compiler" >&6; }
7673
7674# Is the header present?
7675{ echo "$as_me:$LINENO: checking stdint.h presence" >&5
7676echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
7677cat >conftest.$ac_ext <<_ACEOF
7678/* confdefs.h. */
7679_ACEOF
7680cat confdefs.h >>conftest.$ac_ext
7681cat >>conftest.$ac_ext <<_ACEOF
7682/* end confdefs.h. */
7683#include <stdint.h>
7684_ACEOF
7685if { (ac_try="$ac_cpp conftest.$ac_ext"
7686case "(($ac_try" in
7687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7688 *) ac_try_echo=$ac_try;;
7689esac
7690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7692 ac_status=$?
7693 grep -v '^ *+' conftest.er1 >conftest.err
7694 rm -f conftest.er1
7695 cat conftest.err >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } >/dev/null && {
7698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7699 test ! -s conftest.err
7700 }; then
7701 ac_header_preproc=yes
7702else
7703 echo "$as_me: failed program was:" >&5
7704sed 's/^/| /' conftest.$ac_ext >&5
7705
7706 ac_header_preproc=no
7707fi
7708
7709rm -f conftest.err conftest.$ac_ext
7710{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7711echo "${ECHO_T}$ac_header_preproc" >&6; }
7712
7713# So? What about this header?
7714case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7715 yes:no: )
7716 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
7717echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7718 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
7719echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
7720 ac_header_preproc=yes
7721 ;;
7722 no:yes:* )
7723 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
7724echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
7725 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
7726echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
7727 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
7728echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
7729 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
7730echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
7731 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
7732echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
7733 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
7734echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
7735
7736 ;;
7737esac
7738{ echo "$as_me:$LINENO: checking for stdint.h" >&5
7739echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
7740if test "${ac_cv_header_stdint_h+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7742else
7743 ac_cv_header_stdint_h=$ac_header_preproc
7744fi
7745{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
7746echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
7747
7748fi
7749if test $ac_cv_header_stdint_h = yes; then
7750 cat >>confdefs.h <<\_ACEOF
7751#define PJ_HAS_STDINT_H 1
7752_ACEOF
Sauw Ming68c14572011-07-20 03:00:48 +00007753
Sauw Ming68c14572011-07-20 03:00:48 +00007754fi
7755
Sauw Ming68c14572011-07-20 03:00:48 +00007756
Sauw Mingd8aa67c2011-08-09 04:31:41 +00007757if test "${ac_cv_header_stdlib_h+set}" = set; then
7758 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
7759echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
7760if test "${ac_cv_header_stdlib_h+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7762fi
7763{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7764echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
7765else
7766 # Is the header compilable?
7767{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5
7768echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
7769cat >conftest.$ac_ext <<_ACEOF
7770/* confdefs.h. */
7771_ACEOF
7772cat confdefs.h >>conftest.$ac_ext
7773cat >>conftest.$ac_ext <<_ACEOF
7774/* end confdefs.h. */
7775$ac_includes_default
7776#include <stdlib.h>
7777_ACEOF
7778rm -f conftest.$ac_objext
7779if { (ac_try="$ac_compile"
7780case "(($ac_try" in
7781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782 *) ac_try_echo=$ac_try;;
7783esac
7784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785 (eval "$ac_compile") 2>conftest.er1
7786 ac_status=$?
7787 grep -v '^ *+' conftest.er1 >conftest.err
7788 rm -f conftest.er1
7789 cat conftest.err >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } && {
7792 test -z "$ac_c_werror_flag" ||
7793 test ! -s conftest.err
7794 } && test -s conftest.$ac_objext; then
7795 ac_header_compiler=yes
7796else
7797 echo "$as_me: failed program was:" >&5
7798sed 's/^/| /' conftest.$ac_ext >&5
7799
7800 ac_header_compiler=no
7801fi
7802
7803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7804{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7805echo "${ECHO_T}$ac_header_compiler" >&6; }
7806
7807# Is the header present?
7808{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5
7809echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
7810cat >conftest.$ac_ext <<_ACEOF
7811/* confdefs.h. */
7812_ACEOF
7813cat confdefs.h >>conftest.$ac_ext
7814cat >>conftest.$ac_ext <<_ACEOF
7815/* end confdefs.h. */
7816#include <stdlib.h>
7817_ACEOF
7818if { (ac_try="$ac_cpp conftest.$ac_ext"
7819case "(($ac_try" in
7820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7821 *) ac_try_echo=$ac_try;;
7822esac
7823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7825 ac_status=$?
7826 grep -v '^ *+' conftest.er1 >conftest.err
7827 rm -f conftest.er1
7828 cat conftest.err >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } >/dev/null && {
7831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7832 test ! -s conftest.err
7833 }; then
7834 ac_header_preproc=yes
7835else
7836 echo "$as_me: failed program was:" >&5
7837sed 's/^/| /' conftest.$ac_ext >&5
7838
7839 ac_header_preproc=no
7840fi
7841
7842rm -f conftest.err conftest.$ac_ext
7843{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7844echo "${ECHO_T}$ac_header_preproc" >&6; }
7845
7846# So? What about this header?
7847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7848 yes:no: )
7849 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7850echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7851 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
7852echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
7853 ac_header_preproc=yes
7854 ;;
7855 no:yes:* )
7856 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
7857echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
7858 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
7859echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
7860 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
7861echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
7862 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
7863echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
7864 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
7865echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
7866 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
7867echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
7868
7869 ;;
7870esac
7871{ echo "$as_me:$LINENO: checking for stdlib.h" >&5
7872echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
7873if test "${ac_cv_header_stdlib_h+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7875else
7876 ac_cv_header_stdlib_h=$ac_header_preproc
7877fi
7878{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7879echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
7880
7881fi
7882if test $ac_cv_header_stdlib_h = yes; then
7883 cat >>confdefs.h <<\_ACEOF
7884#define PJ_HAS_STDLIB_H 1
7885_ACEOF
Sauw Ming68c14572011-07-20 03:00:48 +00007886
Sauw Ming68c14572011-07-20 03:00:48 +00007887fi
7888
Sauw Ming68c14572011-07-20 03:00:48 +00007889
Sauw Mingd8aa67c2011-08-09 04:31:41 +00007890if test "${ac_cv_header_string_h+set}" = set; then
7891 { echo "$as_me:$LINENO: checking for string.h" >&5
7892echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
7893if test "${ac_cv_header_string_h+set}" = set; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
7895fi
7896{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7897echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
7898else
7899 # Is the header compilable?
7900{ echo "$as_me:$LINENO: checking string.h usability" >&5
7901echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
7902cat >conftest.$ac_ext <<_ACEOF
7903/* confdefs.h. */
7904_ACEOF
7905cat confdefs.h >>conftest.$ac_ext
7906cat >>conftest.$ac_ext <<_ACEOF
7907/* end confdefs.h. */
7908$ac_includes_default
7909#include <string.h>
7910_ACEOF
7911rm -f conftest.$ac_objext
7912if { (ac_try="$ac_compile"
7913case "(($ac_try" in
7914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915 *) ac_try_echo=$ac_try;;
7916esac
7917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7918 (eval "$ac_compile") 2>conftest.er1
7919 ac_status=$?
7920 grep -v '^ *+' conftest.er1 >conftest.err
7921 rm -f conftest.er1
7922 cat conftest.err >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); } && {
7925 test -z "$ac_c_werror_flag" ||
7926 test ! -s conftest.err
7927 } && test -s conftest.$ac_objext; then
7928 ac_header_compiler=yes
7929else
7930 echo "$as_me: failed program was:" >&5
7931sed 's/^/| /' conftest.$ac_ext >&5
7932
7933 ac_header_compiler=no
7934fi
7935
7936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7937{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7938echo "${ECHO_T}$ac_header_compiler" >&6; }
7939
7940# Is the header present?
7941{ echo "$as_me:$LINENO: checking string.h presence" >&5
7942echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
7943cat >conftest.$ac_ext <<_ACEOF
7944/* confdefs.h. */
7945_ACEOF
7946cat confdefs.h >>conftest.$ac_ext
7947cat >>conftest.$ac_ext <<_ACEOF
7948/* end confdefs.h. */
7949#include <string.h>
7950_ACEOF
7951if { (ac_try="$ac_cpp conftest.$ac_ext"
7952case "(($ac_try" in
7953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954 *) ac_try_echo=$ac_try;;
7955esac
7956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7958 ac_status=$?
7959 grep -v '^ *+' conftest.er1 >conftest.err
7960 rm -f conftest.er1
7961 cat conftest.err >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } >/dev/null && {
7964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7965 test ! -s conftest.err
7966 }; then
7967 ac_header_preproc=yes
7968else
7969 echo "$as_me: failed program was:" >&5
7970sed 's/^/| /' conftest.$ac_ext >&5
7971
7972 ac_header_preproc=no
7973fi
7974
7975rm -f conftest.err conftest.$ac_ext
7976{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7977echo "${ECHO_T}$ac_header_preproc" >&6; }
7978
7979# So? What about this header?
7980case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7981 yes:no: )
7982 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7983echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7984 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
7985echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
7986 ac_header_preproc=yes
7987 ;;
7988 no:yes:* )
7989 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
7990echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
7991 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
7992echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
7993 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
7994echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
7995 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
7996echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
7997 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7998echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7999 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8000echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8001
8002 ;;
8003esac
8004{ echo "$as_me:$LINENO: checking for string.h" >&5
8005echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
8006if test "${ac_cv_header_string_h+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8008else
8009 ac_cv_header_string_h=$ac_header_preproc
8010fi
8011{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8012echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
8013
8014fi
8015if test $ac_cv_header_string_h = yes; then
8016 cat >>confdefs.h <<\_ACEOF
8017#define PJ_HAS_STRING_H 1
8018_ACEOF
Sauw Ming6a970a32011-03-01 05:25:27 +00008019
Sauw Ming6a970a32011-03-01 05:25:27 +00008020fi
8021
Sauw Ming6a970a32011-03-01 05:25:27 +00008022
Sauw Mingd8aa67c2011-08-09 04:31:41 +00008023if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
8024 { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
8025echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; }
8026if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8028fi
8029{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
8030echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; }
8031else
8032 # Is the header compilable?
8033{ echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5
8034echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6; }
8035cat >conftest.$ac_ext <<_ACEOF
8036/* confdefs.h. */
8037_ACEOF
8038cat confdefs.h >>conftest.$ac_ext
8039cat >>conftest.$ac_ext <<_ACEOF
8040/* end confdefs.h. */
8041$ac_includes_default
8042#include <sys/ioctl.h>
8043_ACEOF
8044rm -f conftest.$ac_objext
8045if { (ac_try="$ac_compile"
8046case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8049esac
8050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_compile") 2>conftest.er1
8052 ac_status=$?
8053 grep -v '^ *+' conftest.er1 >conftest.err
8054 rm -f conftest.er1
8055 cat conftest.err >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } && {
8058 test -z "$ac_c_werror_flag" ||
8059 test ! -s conftest.err
8060 } && test -s conftest.$ac_objext; then
8061 ac_header_compiler=yes
8062else
8063 echo "$as_me: failed program was:" >&5
8064sed 's/^/| /' conftest.$ac_ext >&5
8065
8066 ac_header_compiler=no
8067fi
8068
8069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8071echo "${ECHO_T}$ac_header_compiler" >&6; }
8072
8073# Is the header present?
8074{ echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5
8075echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6; }
8076cat >conftest.$ac_ext <<_ACEOF
8077/* confdefs.h. */
8078_ACEOF
8079cat confdefs.h >>conftest.$ac_ext
8080cat >>conftest.$ac_ext <<_ACEOF
8081/* end confdefs.h. */
8082#include <sys/ioctl.h>
8083_ACEOF
8084if { (ac_try="$ac_cpp conftest.$ac_ext"
8085case "(($ac_try" in
8086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087 *) ac_try_echo=$ac_try;;
8088esac
8089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8091 ac_status=$?
8092 grep -v '^ *+' conftest.er1 >conftest.err
8093 rm -f conftest.er1
8094 cat conftest.err >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } >/dev/null && {
8097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8098 test ! -s conftest.err
8099 }; then
8100 ac_header_preproc=yes
8101else
8102 echo "$as_me: failed program was:" >&5
8103sed 's/^/| /' conftest.$ac_ext >&5
8104
8105 ac_header_preproc=no
8106fi
8107
8108rm -f conftest.err conftest.$ac_ext
8109{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8110echo "${ECHO_T}$ac_header_preproc" >&6; }
8111
8112# So? What about this header?
8113case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8114 yes:no: )
8115 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8116echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8117 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5
8118echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;}
8119 ac_header_preproc=yes
8120 ;;
8121 no:yes:* )
8122 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5
8123echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;}
8124 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5
8125echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;}
8126 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5
8127echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;}
8128 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
8129echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8130 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5
8131echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;}
8132 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5
8133echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;}
8134
8135 ;;
8136esac
8137{ echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
8138echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; }
8139if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
8141else
8142 ac_cv_header_sys_ioctl_h=$ac_header_preproc
8143fi
8144{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
8145echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; }
8146
8147fi
8148if test $ac_cv_header_sys_ioctl_h = yes; then
8149 cat >>confdefs.h <<\_ACEOF
8150#define PJ_HAS_SYS_IOCTL_H 1
8151_ACEOF
Sauw Ming68c14572011-07-20 03:00:48 +00008152
Sauw Ming68c14572011-07-20 03:00:48 +00008153fi
8154
Sauw Ming68c14572011-07-20 03:00:48 +00008155
Sauw Mingd8aa67c2011-08-09 04:31:41 +00008156if test "${ac_cv_header_sys_select_h+set}" = set; then
8157 { echo "$as_me:$LINENO: checking for sys/select.h" >&5
8158echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
8159if test "${ac_cv_header_sys_select_h+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8161fi
8162{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
8163echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
8164else
8165 # Is the header compilable?
8166{ echo "$as_me:$LINENO: checking sys/select.h usability" >&5
8167echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; }
8168cat >conftest.$ac_ext <<_ACEOF
8169/* confdefs.h. */
8170_ACEOF
8171cat confdefs.h >>conftest.$ac_ext
8172cat >>conftest.$ac_ext <<_ACEOF
8173/* end confdefs.h. */
8174$ac_includes_default
8175#include <sys/select.h>
8176_ACEOF
8177rm -f conftest.$ac_objext
8178if { (ac_try="$ac_compile"
8179case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8182esac
8183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_compile") 2>conftest.er1
8185 ac_status=$?
8186 grep -v '^ *+' conftest.er1 >conftest.err
8187 rm -f conftest.er1
8188 cat conftest.err >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } && {
8191 test -z "$ac_c_werror_flag" ||
8192 test ! -s conftest.err
8193 } && test -s conftest.$ac_objext; then
8194 ac_header_compiler=yes
8195else
8196 echo "$as_me: failed program was:" >&5
8197sed 's/^/| /' conftest.$ac_ext >&5
8198
8199 ac_header_compiler=no
8200fi
8201
8202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8204echo "${ECHO_T}$ac_header_compiler" >&6; }
8205
8206# Is the header present?
8207{ echo "$as_me:$LINENO: checking sys/select.h presence" >&5
8208echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; }
8209cat >conftest.$ac_ext <<_ACEOF
8210/* confdefs.h. */
8211_ACEOF
8212cat confdefs.h >>conftest.$ac_ext
8213cat >>conftest.$ac_ext <<_ACEOF
8214/* end confdefs.h. */
8215#include <sys/select.h>
8216_ACEOF
8217if { (ac_try="$ac_cpp conftest.$ac_ext"
8218case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8221esac
8222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8224 ac_status=$?
8225 grep -v '^ *+' conftest.er1 >conftest.err
8226 rm -f conftest.er1
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } >/dev/null && {
8230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8231 test ! -s conftest.err
8232 }; then
8233 ac_header_preproc=yes
8234else
8235 echo "$as_me: failed program was:" >&5
8236sed 's/^/| /' conftest.$ac_ext >&5
8237
8238 ac_header_preproc=no
8239fi
8240
8241rm -f conftest.err conftest.$ac_ext
8242{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8243echo "${ECHO_T}$ac_header_preproc" >&6; }
8244
8245# So? What about this header?
8246case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8247 yes:no: )
8248 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
8249echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8250 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
8251echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
8252 ac_header_preproc=yes
8253 ;;
8254 no:yes:* )
8255 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
8256echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
8257 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
8258echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
8259 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
8260echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
8261 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
8262echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
8263 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
8264echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
8265 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
8266echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
8267
8268 ;;
8269esac
8270{ echo "$as_me:$LINENO: checking for sys/select.h" >&5
8271echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
8272if test "${ac_cv_header_sys_select_h+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8274else
8275 ac_cv_header_sys_select_h=$ac_header_preproc
8276fi
8277{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
8278echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
8279
8280fi
8281if test $ac_cv_header_sys_select_h = yes; then
8282 cat >>confdefs.h <<\_ACEOF
8283#define PJ_HAS_SYS_SELECT_H 1
8284_ACEOF
Sauw Ming68c14572011-07-20 03:00:48 +00008285
Sauw Ming68c14572011-07-20 03:00:48 +00008286fi
8287
Sauw Ming68c14572011-07-20 03:00:48 +00008288
Sauw Mingd8aa67c2011-08-09 04:31:41 +00008289if test "${ac_cv_header_sys_socket_h+set}" = set; then
8290 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
8291echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
8292if test "${ac_cv_header_sys_socket_h+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8294fi
8295{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
8296echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
8297else
8298 # Is the header compilable?
8299{ echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
8300echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
8301cat >conftest.$ac_ext <<_ACEOF
8302/* confdefs.h. */
8303_ACEOF
8304cat confdefs.h >>conftest.$ac_ext
8305cat >>conftest.$ac_ext <<_ACEOF
8306/* end confdefs.h. */
8307$ac_includes_default
8308#include <sys/socket.h>
8309_ACEOF
8310rm -f conftest.$ac_objext
8311if { (ac_try="$ac_compile"
8312case "(($ac_try" in
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8315esac
8316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_compile") 2>conftest.er1
8318 ac_status=$?
8319 grep -v '^ *+' conftest.er1 >conftest.err
8320 rm -f conftest.er1
8321 cat conftest.err >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } && {
8324 test -z "$ac_c_werror_flag" ||
8325 test ! -s conftest.err
8326 } && test -s conftest.$ac_objext; then
8327 ac_header_compiler=yes
8328else
8329 echo "$as_me: failed program was:" >&5
8330sed 's/^/| /' conftest.$ac_ext >&5
8331
8332 ac_header_compiler=no
8333fi
8334
8335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8337echo "${ECHO_T}$ac_header_compiler" >&6; }
8338
8339# Is the header present?
8340{ echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
8341echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
8342cat >conftest.$ac_ext <<_ACEOF
8343/* confdefs.h. */
8344_ACEOF
8345cat confdefs.h >>conftest.$ac_ext
8346cat >>conftest.$ac_ext <<_ACEOF
8347/* end confdefs.h. */
8348#include <sys/socket.h>
8349_ACEOF
8350if { (ac_try="$ac_cpp conftest.$ac_ext"
8351case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354esac
8355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } >/dev/null && {
8363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8364 test ! -s conftest.err
8365 }; then
8366 ac_header_preproc=yes
8367else
8368 echo "$as_me: failed program was:" >&5
8369sed 's/^/| /' conftest.$ac_ext >&5
8370
8371 ac_header_preproc=no
8372fi
8373
8374rm -f conftest.err conftest.$ac_ext
8375{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8376echo "${ECHO_T}$ac_header_preproc" >&6; }
8377
8378# So? What about this header?
8379case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8380 yes:no: )
8381 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
8382echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8383 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
8384echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
8385 ac_header_preproc=yes
8386 ;;
8387 no:yes:* )
8388 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
8389echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
8390 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
8391echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
8392 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
8393echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
8394 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
8395echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
8396 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
8397echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
8398 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
8399echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
8400
8401 ;;
8402esac
8403{ echo "$as_me:$LINENO: checking for sys/socket.h" >&5
8404echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
8405if test "${ac_cv_header_sys_socket_h+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8407else
8408 ac_cv_header_sys_socket_h=$ac_header_preproc
8409fi
8410{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
8411echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
8412
8413fi
8414if test $ac_cv_header_sys_socket_h = yes; then
8415 cat >>confdefs.h <<\_ACEOF
8416#define PJ_HAS_SYS_SOCKET_H 1
8417_ACEOF
Sauw Ming68c14572011-07-20 03:00:48 +00008418
8419fi
Sauw Ming6a970a32011-03-01 05:25:27 +00008420
Sauw Ming6a970a32011-03-01 05:25:27 +00008421
Sauw Mingd8aa67c2011-08-09 04:31:41 +00008422if test "${ac_cv_header_sys_time_h+set}" = set; then
8423 { echo "$as_me:$LINENO: checking for sys/time.h" >&5
8424echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; }
8425if test "${ac_cv_header_sys_time_h+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8427fi
8428{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
8429echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; }
8430else
8431 # Is the header compilable?
8432{ echo "$as_me:$LINENO: checking sys/time.h usability" >&5
8433echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6; }
8434cat >conftest.$ac_ext <<_ACEOF
8435/* confdefs.h. */
8436_ACEOF
8437cat confdefs.h >>conftest.$ac_ext
8438cat >>conftest.$ac_ext <<_ACEOF
8439/* end confdefs.h. */
8440$ac_includes_default
8441#include <sys/time.h>
8442_ACEOF
8443rm -f conftest.$ac_objext
8444if { (ac_try="$ac_compile"
8445case "(($ac_try" in
8446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447 *) ac_try_echo=$ac_try;;
8448esac
8449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450 (eval "$ac_compile") 2>conftest.er1
8451 ac_status=$?
8452 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -f conftest.er1
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } && {
8457 test -z "$ac_c_werror_flag" ||
8458 test ! -s conftest.err
8459 } && test -s conftest.$ac_objext; then
8460 ac_header_compiler=yes
8461else
8462 echo "$as_me: failed program was:" >&5
8463sed 's/^/| /' conftest.$ac_ext >&5
8464
8465 ac_header_compiler=no
8466fi
8467
8468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8469{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8470echo "${ECHO_T}$ac_header_compiler" >&6; }
8471
8472# Is the header present?
8473{ echo "$as_me:$LINENO: checking sys/time.h presence" >&5
8474echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6; }
8475cat >conftest.$ac_ext <<_ACEOF
8476/* confdefs.h. */
8477_ACEOF
8478cat confdefs.h >>conftest.$ac_ext
8479cat >>conftest.$ac_ext <<_ACEOF
8480/* end confdefs.h. */
8481#include <sys/time.h>
8482_ACEOF
8483if { (ac_try="$ac_cpp conftest.$ac_ext"
8484case "(($ac_try" in
8485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486 *) ac_try_echo=$ac_try;;
8487esac
8488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8490 ac_status=$?
8491 grep -v '^ *+' conftest.er1 >conftest.err
8492 rm -f conftest.er1
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } >/dev/null && {
8496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8497 test ! -s conftest.err
8498 }; then
8499 ac_header_preproc=yes
8500else
8501 echo "$as_me: failed program was:" >&5
8502sed 's/^/| /' conftest.$ac_ext >&5
8503
8504 ac_header_preproc=no
8505fi
8506
8507rm -f conftest.err conftest.$ac_ext
8508{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8509echo "${ECHO_T}$ac_header_preproc" >&6; }
8510
8511# So? What about this header?
8512case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8513 yes:no: )
8514 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
8515echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8516 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
8517echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
8518 ac_header_preproc=yes
8519 ;;
8520 no:yes:* )
8521 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
8522echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
8523 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
8524echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
8525 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
8526echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
8527 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
8528echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
8529 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
8530echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
8531 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
8532echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
8533
8534 ;;
8535esac
8536{ echo "$as_me:$LINENO: checking for sys/time.h" >&5
8537echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; }
8538if test "${ac_cv_header_sys_time_h+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8540else
8541 ac_cv_header_sys_time_h=$ac_header_preproc
8542fi
8543{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
8544echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; }
8545
8546fi
8547if test $ac_cv_header_sys_time_h = yes; then
8548 cat >>confdefs.h <<\_ACEOF
8549#define PJ_HAS_SYS_TIME_H 1
8550_ACEOF
Sauw Ming6a970a32011-03-01 05:25:27 +00008551
Sauw Ming68c14572011-07-20 03:00:48 +00008552fi
Sauw Ming68c14572011-07-20 03:00:48 +00008553
Sauw Ming68c14572011-07-20 03:00:48 +00008554
Sauw Mingd8aa67c2011-08-09 04:31:41 +00008555if test "${ac_cv_header_sys_timeb_h+set}" = set; then
8556 { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
8557echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; }
8558if test "${ac_cv_header_sys_timeb_h+set}" = set; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8560fi
8561{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
8562echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; }
8563else
8564 # Is the header compilable?
8565{ echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5
8566echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6; }
8567cat >conftest.$ac_ext <<_ACEOF
8568/* confdefs.h. */
8569_ACEOF
8570cat confdefs.h >>conftest.$ac_ext
8571cat >>conftest.$ac_ext <<_ACEOF
8572/* end confdefs.h. */
8573$ac_includes_default
8574#include <sys/timeb.h>
8575_ACEOF
8576rm -f conftest.$ac_objext
8577if { (ac_try="$ac_compile"
8578case "(($ac_try" in
8579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8580 *) ac_try_echo=$ac_try;;
8581esac
8582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8583 (eval "$ac_compile") 2>conftest.er1
8584 ac_status=$?
8585 grep -v '^ *+' conftest.er1 >conftest.err
8586 rm -f conftest.er1
8587 cat conftest.err >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } && {
8590 test -z "$ac_c_werror_flag" ||
8591 test ! -s conftest.err
8592 } && test -s conftest.$ac_objext; then
8593 ac_header_compiler=yes
8594else
8595 echo "$as_me: failed program was:" >&5
8596sed 's/^/| /' conftest.$ac_ext >&5
8597
8598 ac_header_compiler=no
8599fi
8600
8601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8602{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8603echo "${ECHO_T}$ac_header_compiler" >&6; }
8604
8605# Is the header present?
8606{ echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5
8607echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6; }
8608cat >conftest.$ac_ext <<_ACEOF
8609/* confdefs.h. */
8610_ACEOF
8611cat confdefs.h >>conftest.$ac_ext
8612cat >>conftest.$ac_ext <<_ACEOF
8613/* end confdefs.h. */
8614#include <sys/timeb.h>
8615_ACEOF
8616if { (ac_try="$ac_cpp conftest.$ac_ext"
8617case "(($ac_try" in
8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619 *) ac_try_echo=$ac_try;;
8620esac
8621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8623 ac_status=$?
8624 grep -v '^ *+' conftest.er1 >conftest.err
8625 rm -f conftest.er1
8626 cat conftest.err >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } >/dev/null && {
8629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8630 test ! -s conftest.err
8631 }; then
8632 ac_header_preproc=yes
8633else
8634 echo "$as_me: failed program was:" >&5
8635sed 's/^/| /' conftest.$ac_ext >&5
8636
8637 ac_header_preproc=no
8638fi
8639
8640rm -f conftest.err conftest.$ac_ext
8641{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8642echo "${ECHO_T}$ac_header_preproc" >&6; }
8643
8644# So? What about this header?
8645case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8646 yes:no: )
8647 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8648echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5
8650echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;}
8651 ac_header_preproc=yes
8652 ;;
8653 no:yes:* )
8654 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5
8655echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;}
8656 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5
8657echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;}
8658 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5
8659echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;}
8660 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5
8661echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;}
8662 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5
8663echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;}
8664 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5
8665echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;}
8666
8667 ;;
8668esac
8669{ echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
8670echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; }
8671if test "${ac_cv_header_sys_timeb_h+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8673else
8674 ac_cv_header_sys_timeb_h=$ac_header_preproc
8675fi
8676{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
8677echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; }
8678
8679fi
8680if test $ac_cv_header_sys_timeb_h = yes; then
8681 cat >>confdefs.h <<\_ACEOF
8682#define PJ_HAS_SYS_TIMEB_H 1
8683_ACEOF
Sauw Ming68c14572011-07-20 03:00:48 +00008684
Sauw Ming68c14572011-07-20 03:00:48 +00008685fi
8686
Sauw Ming68c14572011-07-20 03:00:48 +00008687
Sauw Mingd8aa67c2011-08-09 04:31:41 +00008688if test "${ac_cv_header_sys_types_h+set}" = set; then
8689 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
8690echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
8691if test "${ac_cv_header_sys_types_h+set}" = set; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8693fi
8694{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
8695echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
8696else
8697 # Is the header compilable?
8698{ echo "$as_me:$LINENO: checking sys/types.h usability" >&5
8699echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; }
8700cat >conftest.$ac_ext <<_ACEOF
8701/* confdefs.h. */
8702_ACEOF
8703cat confdefs.h >>conftest.$ac_ext
8704cat >>conftest.$ac_ext <<_ACEOF
8705/* end confdefs.h. */
8706$ac_includes_default
8707#include <sys/types.h>
8708_ACEOF
8709rm -f conftest.$ac_objext
8710if { (ac_try="$ac_compile"
8711case "(($ac_try" in
8712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8713 *) ac_try_echo=$ac_try;;
8714esac
8715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8716 (eval "$ac_compile") 2>conftest.er1
8717 ac_status=$?
8718 grep -v '^ *+' conftest.er1 >conftest.err
8719 rm -f conftest.er1
8720 cat conftest.err >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } && {
8723 test -z "$ac_c_werror_flag" ||
8724 test ! -s conftest.err
8725 } && test -s conftest.$ac_objext; then
8726 ac_header_compiler=yes
8727else
8728 echo "$as_me: failed program was:" >&5
8729sed 's/^/| /' conftest.$ac_ext >&5
8730
8731 ac_header_compiler=no
8732fi
8733
8734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8736echo "${ECHO_T}$ac_header_compiler" >&6; }
8737
8738# Is the header present?
8739{ echo "$as_me:$LINENO: checking sys/types.h presence" >&5
8740echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; }
8741cat >conftest.$ac_ext <<_ACEOF
8742/* confdefs.h. */
8743_ACEOF
8744cat confdefs.h >>conftest.$ac_ext
8745cat >>conftest.$ac_ext <<_ACEOF
8746/* end confdefs.h. */
8747#include <sys/types.h>
8748_ACEOF
8749if { (ac_try="$ac_cpp conftest.$ac_ext"
8750case "(($ac_try" in
8751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752 *) ac_try_echo=$ac_try;;
8753esac
8754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8756 ac_status=$?
8757 grep -v '^ *+' conftest.er1 >conftest.err
8758 rm -f conftest.er1
8759 cat conftest.err >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } >/dev/null && {
8762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8763 test ! -s conftest.err
8764 }; then
8765 ac_header_preproc=yes
8766else
8767 echo "$as_me: failed program was:" >&5
8768sed 's/^/| /' conftest.$ac_ext >&5
8769
8770 ac_header_preproc=no
8771fi
8772
8773rm -f conftest.err conftest.$ac_ext
8774{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8775echo "${ECHO_T}$ac_header_preproc" >&6; }
8776
8777# So? What about this header?
8778case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8779 yes:no: )
8780 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
8781echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8782 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
8783echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
8784 ac_header_preproc=yes
8785 ;;
8786 no:yes:* )
8787 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
8788echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
8789 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
8790echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
8791 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
8792echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
8793 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
8794echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
8795 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
8796echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
8797 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
8798echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
8799
8800 ;;
8801esac
8802{ echo "$as_me:$LINENO: checking for sys/types.h" >&5
8803echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
8804if test "${ac_cv_header_sys_types_h+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8806else
8807 ac_cv_header_sys_types_h=$ac_header_preproc
8808fi
8809{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
8810echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
8811
8812fi
8813if test $ac_cv_header_sys_types_h = yes; then
8814 cat >>confdefs.h <<\_ACEOF
8815#define PJ_HAS_SYS_TYPES_H 1
8816_ACEOF
Sauw Ming68c14572011-07-20 03:00:48 +00008817
Sauw Ming68c14572011-07-20 03:00:48 +00008818fi
Sauw Ming68c14572011-07-20 03:00:48 +00008819
Sauw Ming6a970a32011-03-01 05:25:27 +00008820
Sauw Mingd8aa67c2011-08-09 04:31:41 +00008821if test "${ac_cv_header_sys_filio_h+set}" = set; then
8822 { echo "$as_me:$LINENO: checking for sys/filio.h" >&5
8823echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; }
8824if test "${ac_cv_header_sys_filio_h+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8826fi
8827{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
8828echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; }
8829else
8830 # Is the header compilable?
8831{ echo "$as_me:$LINENO: checking sys/filio.h usability" >&5
8832echo $ECHO_N "checking sys/filio.h usability... $ECHO_C" >&6; }
8833cat >conftest.$ac_ext <<_ACEOF
8834/* confdefs.h. */
8835_ACEOF
8836cat confdefs.h >>conftest.$ac_ext
8837cat >>conftest.$ac_ext <<_ACEOF
8838/* end confdefs.h. */
8839$ac_includes_default
8840#include <sys/filio.h>
8841_ACEOF
8842rm -f conftest.$ac_objext
8843if { (ac_try="$ac_compile"
8844case "(($ac_try" in
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8847esac
8848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849 (eval "$ac_compile") 2>conftest.er1
8850 ac_status=$?
8851 grep -v '^ *+' conftest.er1 >conftest.err
8852 rm -f conftest.er1
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } && {
8856 test -z "$ac_c_werror_flag" ||
8857 test ! -s conftest.err
8858 } && test -s conftest.$ac_objext; then
8859 ac_header_compiler=yes
8860else
8861 echo "$as_me: failed program was:" >&5
8862sed 's/^/| /' conftest.$ac_ext >&5
8863
8864 ac_header_compiler=no
8865fi
8866
8867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8869echo "${ECHO_T}$ac_header_compiler" >&6; }
8870
8871# Is the header present?
8872{ echo "$as_me:$LINENO: checking sys/filio.h presence" >&5
8873echo $ECHO_N "checking sys/filio.h presence... $ECHO_C" >&6; }
8874cat >conftest.$ac_ext <<_ACEOF
8875/* confdefs.h. */
8876_ACEOF
8877cat confdefs.h >>conftest.$ac_ext
8878cat >>conftest.$ac_ext <<_ACEOF
8879/* end confdefs.h. */
8880#include <sys/filio.h>
8881_ACEOF
8882if { (ac_try="$ac_cpp conftest.$ac_ext"
8883case "(($ac_try" in
8884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885 *) ac_try_echo=$ac_try;;
8886esac
8887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8889 ac_status=$?
8890 grep -v '^ *+' conftest.er1 >conftest.err
8891 rm -f conftest.er1
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } >/dev/null && {
8895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8896 test ! -s conftest.err
8897 }; then
8898 ac_header_preproc=yes
8899else
8900 echo "$as_me: failed program was:" >&5
8901sed 's/^/| /' conftest.$ac_ext >&5
8902
8903 ac_header_preproc=no
8904fi
8905
8906rm -f conftest.err conftest.$ac_ext
8907{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8908echo "${ECHO_T}$ac_header_preproc" >&6; }
8909
8910# So? What about this header?
8911case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8912 yes:no: )
8913 { echo "$as_me:$LINENO: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8914echo "$as_me: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8915 { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the compiler's result" >&5
8916echo "$as_me: WARNING: sys/filio.h: proceeding with the compiler's result" >&2;}
8917 ac_header_preproc=yes
8918 ;;
8919 no:yes:* )
8920 { echo "$as_me:$LINENO: WARNING: sys/filio.h: present but cannot be compiled" >&5
8921echo "$as_me: WARNING: sys/filio.h: present but cannot be compiled" >&2;}
8922 { echo "$as_me:$LINENO: WARNING: sys/filio.h: check for missing prerequisite headers?" >&5
8923echo "$as_me: WARNING: sys/filio.h: check for missing prerequisite headers?" >&2;}
8924 { echo "$as_me:$LINENO: WARNING: sys/filio.h: see the Autoconf documentation" >&5
8925echo "$as_me: WARNING: sys/filio.h: see the Autoconf documentation" >&2;}
8926 { echo "$as_me:$LINENO: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&5
8927echo "$as_me: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&2;}
8928 { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&5
8929echo "$as_me: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&2;}
8930 { echo "$as_me:$LINENO: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&5
8931echo "$as_me: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&2;}
8932
8933 ;;
8934esac
8935{ echo "$as_me:$LINENO: checking for sys/filio.h" >&5
8936echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; }
8937if test "${ac_cv_header_sys_filio_h+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8939else
8940 ac_cv_header_sys_filio_h=$ac_header_preproc
8941fi
8942{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
8943echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; }
8944
8945fi
8946if test $ac_cv_header_sys_filio_h = yes; then
8947 cat >>confdefs.h <<\_ACEOF
8948#define PJ_HAS_SYS_FILIO_H 1
8949_ACEOF
Sauw Ming68c14572011-07-20 03:00:48 +00008950
Sauw Ming68c14572011-07-20 03:00:48 +00008951fi
8952
Sauw Ming68c14572011-07-20 03:00:48 +00008953
Sauw Mingd8aa67c2011-08-09 04:31:41 +00008954if test "${ac_cv_header_sys_sockio_h+set}" = set; then
8955 { echo "$as_me:$LINENO: checking for sys/sockio.h" >&5
8956echo $ECHO_N "checking for sys/sockio.h... $ECHO_C" >&6; }
8957if test "${ac_cv_header_sys_sockio_h+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8959fi
8960{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sockio_h" >&5
8961echo "${ECHO_T}$ac_cv_header_sys_sockio_h" >&6; }
8962else
8963 # Is the header compilable?
8964{ echo "$as_me:$LINENO: checking sys/sockio.h usability" >&5
8965echo $ECHO_N "checking sys/sockio.h usability... $ECHO_C" >&6; }
8966cat >conftest.$ac_ext <<_ACEOF
8967/* confdefs.h. */
8968_ACEOF
8969cat confdefs.h >>conftest.$ac_ext
8970cat >>conftest.$ac_ext <<_ACEOF
8971/* end confdefs.h. */
8972$ac_includes_default
8973#include <sys/sockio.h>
8974_ACEOF
8975rm -f conftest.$ac_objext
8976if { (ac_try="$ac_compile"
8977case "(($ac_try" in
8978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979 *) ac_try_echo=$ac_try;;
8980esac
8981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8982 (eval "$ac_compile") 2>conftest.er1
8983 ac_status=$?
8984 grep -v '^ *+' conftest.er1 >conftest.err
8985 rm -f conftest.er1
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } && {
8989 test -z "$ac_c_werror_flag" ||
8990 test ! -s conftest.err
8991 } && test -s conftest.$ac_objext; then
8992 ac_header_compiler=yes
8993else
8994 echo "$as_me: failed program was:" >&5
8995sed 's/^/| /' conftest.$ac_ext >&5
8996
8997 ac_header_compiler=no
8998fi
8999
9000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9001{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9002echo "${ECHO_T}$ac_header_compiler" >&6; }
9003
9004# Is the header present?
9005{ echo "$as_me:$LINENO: checking sys/sockio.h presence" >&5
9006echo $ECHO_N "checking sys/sockio.h presence... $ECHO_C" >&6; }
9007cat >conftest.$ac_ext <<_ACEOF
9008/* confdefs.h. */
9009_ACEOF
9010cat confdefs.h >>conftest.$ac_ext
9011cat >>conftest.$ac_ext <<_ACEOF
9012/* end confdefs.h. */
9013#include <sys/sockio.h>
9014_ACEOF
9015if { (ac_try="$ac_cpp conftest.$ac_ext"
9016case "(($ac_try" in
9017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9018 *) ac_try_echo=$ac_try;;
9019esac
9020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9022 ac_status=$?
9023 grep -v '^ *+' conftest.er1 >conftest.err
9024 rm -f conftest.er1
9025 cat conftest.err >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } >/dev/null && {
9028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9029 test ! -s conftest.err
9030 }; then
9031 ac_header_preproc=yes
9032else
9033 echo "$as_me: failed program was:" >&5
9034sed 's/^/| /' conftest.$ac_ext >&5
9035
9036 ac_header_preproc=no
9037fi
9038
9039rm -f conftest.err conftest.$ac_ext
9040{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9041echo "${ECHO_T}$ac_header_preproc" >&6; }
9042
9043# So? What about this header?
9044case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9045 yes:no: )
9046 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9047echo "$as_me: WARNING: sys/sockio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9048 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: proceeding with the compiler's result" >&5
9049echo "$as_me: WARNING: sys/sockio.h: proceeding with the compiler's result" >&2;}
9050 ac_header_preproc=yes
9051 ;;
9052 no:yes:* )
9053 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: present but cannot be compiled" >&5
9054echo "$as_me: WARNING: sys/sockio.h: present but cannot be compiled" >&2;}
9055 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: check for missing prerequisite headers?" >&5
9056echo "$as_me: WARNING: sys/sockio.h: check for missing prerequisite headers?" >&2;}
9057 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: see the Autoconf documentation" >&5
9058echo "$as_me: WARNING: sys/sockio.h: see the Autoconf documentation" >&2;}
9059 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: section \"Present But Cannot Be Compiled\"" >&5
9060echo "$as_me: WARNING: sys/sockio.h: section \"Present But Cannot Be Compiled\"" >&2;}
9061 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: proceeding with the preprocessor's result" >&5
9062echo "$as_me: WARNING: sys/sockio.h: proceeding with the preprocessor's result" >&2;}
9063 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: in the future, the compiler will take precedence" >&5
9064echo "$as_me: WARNING: sys/sockio.h: in the future, the compiler will take precedence" >&2;}
9065
9066 ;;
9067esac
9068{ echo "$as_me:$LINENO: checking for sys/sockio.h" >&5
9069echo $ECHO_N "checking for sys/sockio.h... $ECHO_C" >&6; }
9070if test "${ac_cv_header_sys_sockio_h+set}" = set; then
9071 echo $ECHO_N "(cached) $ECHO_C" >&6
9072else
9073 ac_cv_header_sys_sockio_h=$ac_header_preproc
9074fi
9075{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sockio_h" >&5
9076echo "${ECHO_T}$ac_cv_header_sys_sockio_h" >&6; }
9077
9078fi
9079if test $ac_cv_header_sys_sockio_h = yes; then
9080 cat >>confdefs.h <<\_ACEOF
9081#define PJ_HAS_SYS_SOCKIO_H 1
9082_ACEOF
Sauw Ming68c14572011-07-20 03:00:48 +00009083
Sauw Ming68c14572011-07-20 03:00:48 +00009084fi
9085
Sauw Ming68c14572011-07-20 03:00:48 +00009086
Sauw Mingd8aa67c2011-08-09 04:31:41 +00009087if test "${ac_cv_header_sys_utsname_h+set}" = set; then
9088 { echo "$as_me:$LINENO: checking for sys/utsname.h" >&5
9089echo $ECHO_N "checking for sys/utsname.h... $ECHO_C" >&6; }
9090if test "${ac_cv_header_sys_utsname_h+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9092fi
9093{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_utsname_h" >&5
9094echo "${ECHO_T}$ac_cv_header_sys_utsname_h" >&6; }
9095else
9096 # Is the header compilable?
9097{ echo "$as_me:$LINENO: checking sys/utsname.h usability" >&5
9098echo $ECHO_N "checking sys/utsname.h usability... $ECHO_C" >&6; }
9099cat >conftest.$ac_ext <<_ACEOF
9100/* confdefs.h. */
9101_ACEOF
9102cat confdefs.h >>conftest.$ac_ext
9103cat >>conftest.$ac_ext <<_ACEOF
9104/* end confdefs.h. */
9105$ac_includes_default
9106#include <sys/utsname.h>
9107_ACEOF
9108rm -f conftest.$ac_objext
9109if { (ac_try="$ac_compile"
9110case "(($ac_try" in
9111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9112 *) ac_try_echo=$ac_try;;
9113esac
9114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9115 (eval "$ac_compile") 2>conftest.er1
9116 ac_status=$?
9117 grep -v '^ *+' conftest.er1 >conftest.err
9118 rm -f conftest.er1
9119 cat conftest.err >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } && {
9122 test -z "$ac_c_werror_flag" ||
9123 test ! -s conftest.err
9124 } && test -s conftest.$ac_objext; then
9125 ac_header_compiler=yes
9126else
9127 echo "$as_me: failed program was:" >&5
9128sed 's/^/| /' conftest.$ac_ext >&5
9129
9130 ac_header_compiler=no
9131fi
9132
9133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9134{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9135echo "${ECHO_T}$ac_header_compiler" >&6; }
9136
9137# Is the header present?
9138{ echo "$as_me:$LINENO: checking sys/utsname.h presence" >&5
9139echo $ECHO_N "checking sys/utsname.h presence... $ECHO_C" >&6; }
9140cat >conftest.$ac_ext <<_ACEOF
9141/* confdefs.h. */
9142_ACEOF
9143cat confdefs.h >>conftest.$ac_ext
9144cat >>conftest.$ac_ext <<_ACEOF
9145/* end confdefs.h. */
9146#include <sys/utsname.h>
9147_ACEOF
9148if { (ac_try="$ac_cpp conftest.$ac_ext"
9149case "(($ac_try" in
9150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151 *) ac_try_echo=$ac_try;;
9152esac
9153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9155 ac_status=$?
9156 grep -v '^ *+' conftest.er1 >conftest.err
9157 rm -f conftest.er1
9158 cat conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } >/dev/null && {
9161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9162 test ! -s conftest.err
9163 }; then
9164 ac_header_preproc=yes
9165else
9166 echo "$as_me: failed program was:" >&5
9167sed 's/^/| /' conftest.$ac_ext >&5
9168
9169 ac_header_preproc=no
9170fi
9171
9172rm -f conftest.err conftest.$ac_ext
9173{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9174echo "${ECHO_T}$ac_header_preproc" >&6; }
9175
9176# So? What about this header?
9177case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9178 yes:no: )
9179 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: accepted by the compiler, rejected by the preprocessor!" >&5
9180echo "$as_me: WARNING: sys/utsname.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: proceeding with the compiler's result" >&5
9182echo "$as_me: WARNING: sys/utsname.h: proceeding with the compiler's result" >&2;}
9183 ac_header_preproc=yes
9184 ;;
9185 no:yes:* )
9186 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: present but cannot be compiled" >&5
9187echo "$as_me: WARNING: sys/utsname.h: present but cannot be compiled" >&2;}
9188 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: check for missing prerequisite headers?" >&5
9189echo "$as_me: WARNING: sys/utsname.h: check for missing prerequisite headers?" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: see the Autoconf documentation" >&5
9191echo "$as_me: WARNING: sys/utsname.h: see the Autoconf documentation" >&2;}
9192 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: section \"Present But Cannot Be Compiled\"" >&5
9193echo "$as_me: WARNING: sys/utsname.h: section \"Present But Cannot Be Compiled\"" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: proceeding with the preprocessor's result" >&5
9195echo "$as_me: WARNING: sys/utsname.h: proceeding with the preprocessor's result" >&2;}
9196 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: in the future, the compiler will take precedence" >&5
9197echo "$as_me: WARNING: sys/utsname.h: in the future, the compiler will take precedence" >&2;}
9198
9199 ;;
9200esac
9201{ echo "$as_me:$LINENO: checking for sys/utsname.h" >&5
9202echo $ECHO_N "checking for sys/utsname.h... $ECHO_C" >&6; }
9203if test "${ac_cv_header_sys_utsname_h+set}" = set; then
9204 echo $ECHO_N "(cached) $ECHO_C" >&6
9205else
9206 ac_cv_header_sys_utsname_h=$ac_header_preproc
9207fi
9208{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_utsname_h" >&5
9209echo "${ECHO_T}$ac_cv_header_sys_utsname_h" >&6; }
9210
9211fi
9212if test $ac_cv_header_sys_utsname_h = yes; then
9213 cat >>confdefs.h <<\_ACEOF
9214#define PJ_HAS_SYS_UTSNAME_H 1
9215_ACEOF
Sauw Ming68c14572011-07-20 03:00:48 +00009216
9217fi
Sauw Ming6a970a32011-03-01 05:25:27 +00009218
Sauw Ming6a970a32011-03-01 05:25:27 +00009219
Sauw Mingd8aa67c2011-08-09 04:31:41 +00009220if test "${ac_cv_header_time_h+set}" = set; then
9221 { echo "$as_me:$LINENO: checking for time.h" >&5
9222echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
9223if test "${ac_cv_header_time_h+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9225fi
9226{ echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
9227echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
9228else
9229 # Is the header compilable?
9230{ echo "$as_me:$LINENO: checking time.h usability" >&5
9231echo $ECHO_N "checking time.h usability... $ECHO_C" >&6; }
9232cat >conftest.$ac_ext <<_ACEOF
9233/* confdefs.h. */
9234_ACEOF
9235cat confdefs.h >>conftest.$ac_ext
9236cat >>conftest.$ac_ext <<_ACEOF
9237/* end confdefs.h. */
9238$ac_includes_default
9239#include <time.h>
9240_ACEOF
9241rm -f conftest.$ac_objext
9242if { (ac_try="$ac_compile"
9243case "(($ac_try" in
9244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9245 *) ac_try_echo=$ac_try;;
9246esac
9247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9248 (eval "$ac_compile") 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } && {
9255 test -z "$ac_c_werror_flag" ||
9256 test ! -s conftest.err
9257 } && test -s conftest.$ac_objext; then
9258 ac_header_compiler=yes
9259else
9260 echo "$as_me: failed program was:" >&5
9261sed 's/^/| /' conftest.$ac_ext >&5
9262
9263 ac_header_compiler=no
9264fi
9265
9266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9267{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9268echo "${ECHO_T}$ac_header_compiler" >&6; }
9269
9270# Is the header present?
9271{ echo "$as_me:$LINENO: checking time.h presence" >&5
9272echo $ECHO_N "checking time.h presence... $ECHO_C" >&6; }
9273cat >conftest.$ac_ext <<_ACEOF
9274/* confdefs.h. */
9275_ACEOF
9276cat confdefs.h >>conftest.$ac_ext
9277cat >>conftest.$ac_ext <<_ACEOF
9278/* end confdefs.h. */
9279#include <time.h>
9280_ACEOF
9281if { (ac_try="$ac_cpp conftest.$ac_ext"
9282case "(($ac_try" in
9283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9285esac
9286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9288 ac_status=$?
9289 grep -v '^ *+' conftest.er1 >conftest.err
9290 rm -f conftest.er1
9291 cat conftest.err >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } >/dev/null && {
9294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9295 test ! -s conftest.err
9296 }; then
9297 ac_header_preproc=yes
9298else
9299 echo "$as_me: failed program was:" >&5
9300sed 's/^/| /' conftest.$ac_ext >&5
9301
9302 ac_header_preproc=no
9303fi
9304
9305rm -f conftest.err conftest.$ac_ext
9306{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9307echo "${ECHO_T}$ac_header_preproc" >&6; }
9308
9309# So? What about this header?
9310case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9311 yes:no: )
9312 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
9313echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
9315echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
9316 ac_header_preproc=yes
9317 ;;
9318 no:yes:* )
9319 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
9320echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
9321 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
9322echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
9323 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
9324echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
9325 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
9326echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
9327 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
9328echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
9329 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
9330echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
9331
9332 ;;
9333esac
9334{ echo "$as_me:$LINENO: checking for time.h" >&5
9335echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
9336if test "${ac_cv_header_time_h+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9338else
9339 ac_cv_header_time_h=$ac_header_preproc
9340fi
9341{ echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
9342echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
9343
9344fi
9345if test $ac_cv_header_time_h = yes; then
9346 cat >>confdefs.h <<\_ACEOF
9347#define PJ_HAS_TIME_H 1
9348_ACEOF
Sauw Mingbe3771a2010-08-27 06:46:29 +00009349
Sauw Ming68c14572011-07-20 03:00:48 +00009350fi
Sauw Ming68c14572011-07-20 03:00:48 +00009351
Sauw Ming68c14572011-07-20 03:00:48 +00009352
Sauw Mingd8aa67c2011-08-09 04:31:41 +00009353if test "${ac_cv_header_unistd_h+set}" = set; then
9354 { echo "$as_me:$LINENO: checking for unistd.h" >&5
9355echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
9356if test "${ac_cv_header_unistd_h+set}" = set; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9358fi
9359{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
9360echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; }
9361else
9362 # Is the header compilable?
9363{ echo "$as_me:$LINENO: checking unistd.h usability" >&5
9364echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; }
9365cat >conftest.$ac_ext <<_ACEOF
9366/* confdefs.h. */
9367_ACEOF
9368cat confdefs.h >>conftest.$ac_ext
9369cat >>conftest.$ac_ext <<_ACEOF
9370/* end confdefs.h. */
9371$ac_includes_default
9372#include <unistd.h>
9373_ACEOF
9374rm -f conftest.$ac_objext
9375if { (ac_try="$ac_compile"
9376case "(($ac_try" in
9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9379esac
9380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_compile") 2>conftest.er1
9382 ac_status=$?
9383 grep -v '^ *+' conftest.er1 >conftest.err
9384 rm -f conftest.er1
9385 cat conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } && {
9388 test -z "$ac_c_werror_flag" ||
9389 test ! -s conftest.err
9390 } && test -s conftest.$ac_objext; then
9391 ac_header_compiler=yes
9392else
9393 echo "$as_me: failed program was:" >&5
9394sed 's/^/| /' conftest.$ac_ext >&5
9395
9396 ac_header_compiler=no
9397fi
9398
9399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9400{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9401echo "${ECHO_T}$ac_header_compiler" >&6; }
9402
9403# Is the header present?
9404{ echo "$as_me:$LINENO: checking unistd.h presence" >&5
9405echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; }
9406cat >conftest.$ac_ext <<_ACEOF
9407/* confdefs.h. */
9408_ACEOF
9409cat confdefs.h >>conftest.$ac_ext
9410cat >>conftest.$ac_ext <<_ACEOF
9411/* end confdefs.h. */
9412#include <unistd.h>
9413_ACEOF
9414if { (ac_try="$ac_cpp conftest.$ac_ext"
9415case "(($ac_try" in
9416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9417 *) ac_try_echo=$ac_try;;
9418esac
9419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9421 ac_status=$?
9422 grep -v '^ *+' conftest.er1 >conftest.err
9423 rm -f conftest.er1
9424 cat conftest.err >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); } >/dev/null && {
9427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9428 test ! -s conftest.err
9429 }; then
9430 ac_header_preproc=yes
9431else
9432 echo "$as_me: failed program was:" >&5
9433sed 's/^/| /' conftest.$ac_ext >&5
9434
9435 ac_header_preproc=no
9436fi
9437
9438rm -f conftest.err conftest.$ac_ext
9439{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9440echo "${ECHO_T}$ac_header_preproc" >&6; }
9441
9442# So? What about this header?
9443case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9444 yes:no: )
9445 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
9446echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9447 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
9448echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
9449 ac_header_preproc=yes
9450 ;;
9451 no:yes:* )
9452 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
9453echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
9454 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
9455echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
9456 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
9457echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
9458 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
9459echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
9461echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
9463echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
9464
9465 ;;
9466esac
9467{ echo "$as_me:$LINENO: checking for unistd.h" >&5
9468echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
9469if test "${ac_cv_header_unistd_h+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9471else
9472 ac_cv_header_unistd_h=$ac_header_preproc
9473fi
9474{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
9475echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; }
9476
9477fi
9478if test $ac_cv_header_unistd_h = yes; then
9479 cat >>confdefs.h <<\_ACEOF
9480#define PJ_HAS_UNISTD_H 1
9481_ACEOF
Sauw Ming68c14572011-07-20 03:00:48 +00009482
Sauw Ming68c14572011-07-20 03:00:48 +00009483fi
9484
Sauw Ming68c14572011-07-20 03:00:48 +00009485
Sauw Mingd8aa67c2011-08-09 04:31:41 +00009486if test "${ac_cv_header_winsock_h+set}" = set; then
9487 { echo "$as_me:$LINENO: checking for winsock.h" >&5
9488echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
9489if test "${ac_cv_header_winsock_h+set}" = set; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9491fi
9492{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
9493echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
9494else
9495 # Is the header compilable?
9496{ echo "$as_me:$LINENO: checking winsock.h usability" >&5
9497echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; }
9498cat >conftest.$ac_ext <<_ACEOF
9499/* confdefs.h. */
9500_ACEOF
9501cat confdefs.h >>conftest.$ac_ext
9502cat >>conftest.$ac_ext <<_ACEOF
9503/* end confdefs.h. */
9504$ac_includes_default
9505#include <winsock.h>
9506_ACEOF
9507rm -f conftest.$ac_objext
9508if { (ac_try="$ac_compile"
9509case "(($ac_try" in
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9512esac
9513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514 (eval "$ac_compile") 2>conftest.er1
9515 ac_status=$?
9516 grep -v '^ *+' conftest.er1 >conftest.err
9517 rm -f conftest.er1
9518 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } && {
9521 test -z "$ac_c_werror_flag" ||
9522 test ! -s conftest.err
9523 } && test -s conftest.$ac_objext; then
9524 ac_header_compiler=yes
9525else
9526 echo "$as_me: failed program was:" >&5
9527sed 's/^/| /' conftest.$ac_ext >&5
9528
9529 ac_header_compiler=no
9530fi
9531
9532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9533{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9534echo "${ECHO_T}$ac_header_compiler" >&6; }
9535
9536# Is the header present?
9537{ echo "$as_me:$LINENO: checking winsock.h presence" >&5
9538echo $ECHO_N "checking winsock.h presence... $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#include <winsock.h>
9546_ACEOF
9547if { (ac_try="$ac_cpp conftest.$ac_ext"
9548case "(($ac_try" in
9549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9550 *) ac_try_echo=$ac_try;;
9551esac
9552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9554 ac_status=$?
9555 grep -v '^ *+' conftest.er1 >conftest.err
9556 rm -f conftest.er1
9557 cat conftest.err >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); } >/dev/null && {
9560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9561 test ! -s conftest.err
9562 }; then
9563 ac_header_preproc=yes
9564else
9565 echo "$as_me: failed program was:" >&5
9566sed 's/^/| /' conftest.$ac_ext >&5
9567
9568 ac_header_preproc=no
9569fi
9570
9571rm -f conftest.err conftest.$ac_ext
9572{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9573echo "${ECHO_T}$ac_header_preproc" >&6; }
9574
9575# So? What about this header?
9576case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9577 yes:no: )
9578 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
9579echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9580 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
9581echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
9582 ac_header_preproc=yes
9583 ;;
9584 no:yes:* )
9585 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
9586echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
9587 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
9588echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
9589 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
9590echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
9591 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
9592echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
9593 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
9594echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
9595 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
9596echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
9597
9598 ;;
9599esac
9600{ echo "$as_me:$LINENO: checking for winsock.h" >&5
9601echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
9602if test "${ac_cv_header_winsock_h+set}" = set; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9604else
9605 ac_cv_header_winsock_h=$ac_header_preproc
9606fi
9607{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
9608echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
9609
9610fi
9611if test $ac_cv_header_winsock_h = yes; then
9612 cat >>confdefs.h <<\_ACEOF
9613#define PJ_HAS_WINSOCK_H 1
9614_ACEOF
Sauw Ming68c14572011-07-20 03:00:48 +00009615
Sauw Ming68c14572011-07-20 03:00:48 +00009616fi
Sauw Ming68c14572011-07-20 03:00:48 +00009617
Benny Prijono46bd0842010-02-12 14:12:41 +00009618
Sauw Mingd8aa67c2011-08-09 04:31:41 +00009619if test "${ac_cv_header_winsock2_h+set}" = set; then
9620 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
9621echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
9622if test "${ac_cv_header_winsock2_h+set}" = set; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
9624fi
9625{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
9626echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
9627else
9628 # Is the header compilable?
9629{ echo "$as_me:$LINENO: checking winsock2.h usability" >&5
9630echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; }
9631cat >conftest.$ac_ext <<_ACEOF
9632/* confdefs.h. */
9633_ACEOF
9634cat confdefs.h >>conftest.$ac_ext
9635cat >>conftest.$ac_ext <<_ACEOF
9636/* end confdefs.h. */
9637$ac_includes_default
9638#include <winsock2.h>
9639_ACEOF
9640rm -f conftest.$ac_objext
9641if { (ac_try="$ac_compile"
9642case "(($ac_try" in
9643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9644 *) ac_try_echo=$ac_try;;
9645esac
9646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9647 (eval "$ac_compile") 2>conftest.er1
9648 ac_status=$?
9649 grep -v '^ *+' conftest.er1 >conftest.err
9650 rm -f conftest.er1
9651 cat conftest.err >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } && {
9654 test -z "$ac_c_werror_flag" ||
9655 test ! -s conftest.err
9656 } && test -s conftest.$ac_objext; then
9657 ac_header_compiler=yes
9658else
9659 echo "$as_me: failed program was:" >&5
9660sed 's/^/| /' conftest.$ac_ext >&5
9661
9662 ac_header_compiler=no
9663fi
9664
9665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9666{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9667echo "${ECHO_T}$ac_header_compiler" >&6; }
9668
9669# Is the header present?
9670{ echo "$as_me:$LINENO: checking winsock2.h presence" >&5
9671echo $ECHO_N "checking winsock2.h presence... $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#include <winsock2.h>
9679_ACEOF
9680if { (ac_try="$ac_cpp conftest.$ac_ext"
9681case "(($ac_try" in
9682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9683 *) ac_try_echo=$ac_try;;
9684esac
9685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9687 ac_status=$?
9688 grep -v '^ *+' conftest.er1 >conftest.err
9689 rm -f conftest.er1
9690 cat conftest.err >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } >/dev/null && {
9693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9694 test ! -s conftest.err
9695 }; then
9696 ac_header_preproc=yes
9697else
9698 echo "$as_me: failed program was:" >&5
9699sed 's/^/| /' conftest.$ac_ext >&5
9700
9701 ac_header_preproc=no
9702fi
9703
9704rm -f conftest.err conftest.$ac_ext
9705{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9706echo "${ECHO_T}$ac_header_preproc" >&6; }
9707
9708# So? What about this header?
9709case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9710 yes:no: )
9711 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
9712echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9713 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
9714echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
9715 ac_header_preproc=yes
9716 ;;
9717 no:yes:* )
9718 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
9719echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
9720 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
9721echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
9722 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
9723echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
9724 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
9725echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
9726 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
9727echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
9728 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
9729echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
9730
9731 ;;
9732esac
9733{ echo "$as_me:$LINENO: checking for winsock2.h" >&5
9734echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
9735if test "${ac_cv_header_winsock2_h+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9737else
9738 ac_cv_header_winsock2_h=$ac_header_preproc
9739fi
9740{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
9741echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
9742
9743fi
9744if test $ac_cv_header_winsock2_h = yes; then
9745 cat >>confdefs.h <<\_ACEOF
9746#define PJ_HAS_WINSOCK2_H 1
9747_ACEOF
Benny Prijono46bd0842010-02-12 14:12:41 +00009748
Sauw Ming68c14572011-07-20 03:00:48 +00009749fi
Sauw Ming68c14572011-07-20 03:00:48 +00009750
Sauw Ming68c14572011-07-20 03:00:48 +00009751
Sauw Mingd8aa67c2011-08-09 04:31:41 +00009752{ echo "$as_me:$LINENO: checking for mswsock.h" >&5
9753echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6; }
9754if test "${ac_cv_header_mswsock_h+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9756else
9757 cat >conftest.$ac_ext <<_ACEOF
9758/* confdefs.h. */
9759_ACEOF
9760cat confdefs.h >>conftest.$ac_ext
9761cat >>conftest.$ac_ext <<_ACEOF
9762/* end confdefs.h. */
9763#if PJ_HAS_WINSOCK2_H
Benny Prijonoa9948e62008-03-25 14:03:01 +00009764 # include <winsock2.h>
9765 #elif PJ_HAS_WINSOCK_H
9766 # include <winsock.h>
9767 #endif
9768
Sauw Mingd8aa67c2011-08-09 04:31:41 +00009769
9770#include <mswsock.h>
9771_ACEOF
9772rm -f conftest.$ac_objext
9773if { (ac_try="$ac_compile"
9774case "(($ac_try" in
9775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776 *) ac_try_echo=$ac_try;;
9777esac
9778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779 (eval "$ac_compile") 2>conftest.er1
9780 ac_status=$?
9781 grep -v '^ *+' conftest.er1 >conftest.err
9782 rm -f conftest.er1
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } && {
9786 test -z "$ac_c_werror_flag" ||
9787 test ! -s conftest.err
9788 } && test -s conftest.$ac_objext; then
9789 ac_cv_header_mswsock_h=yes
9790else
9791 echo "$as_me: failed program was:" >&5
9792sed 's/^/| /' conftest.$ac_ext >&5
9793
9794 ac_cv_header_mswsock_h=no
9795fi
9796
9797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9798fi
9799{ echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
9800echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6; }
9801if test $ac_cv_header_mswsock_h = yes; then
9802 cat >>confdefs.h <<\_ACEOF
9803#define PJ_HAS_MSWSOCK_H 1
9804_ACEOF
Benny Prijonoa9948e62008-03-25 14:03:01 +00009805
9806fi
9807
9808
Sauw Mingd8aa67c2011-08-09 04:31:41 +00009809if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
9810 { echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5
9811echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; }
9812if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9814fi
9815{ echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5
9816echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; }
9817else
9818 # Is the header compilable?
9819{ echo "$as_me:$LINENO: checking ws2tcpip.h usability" >&5
9820echo $ECHO_N "checking ws2tcpip.h usability... $ECHO_C" >&6; }
9821cat >conftest.$ac_ext <<_ACEOF
9822/* confdefs.h. */
9823_ACEOF
9824cat confdefs.h >>conftest.$ac_ext
9825cat >>conftest.$ac_ext <<_ACEOF
9826/* end confdefs.h. */
9827$ac_includes_default
9828#include <ws2tcpip.h>
9829_ACEOF
9830rm -f conftest.$ac_objext
9831if { (ac_try="$ac_compile"
9832case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9835esac
9836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_compile") 2>conftest.er1
9838 ac_status=$?
9839 grep -v '^ *+' conftest.er1 >conftest.err
9840 rm -f conftest.er1
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } && {
9844 test -z "$ac_c_werror_flag" ||
9845 test ! -s conftest.err
9846 } && test -s conftest.$ac_objext; then
9847 ac_header_compiler=yes
9848else
9849 echo "$as_me: failed program was:" >&5
9850sed 's/^/| /' conftest.$ac_ext >&5
9851
9852 ac_header_compiler=no
9853fi
9854
9855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9856{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9857echo "${ECHO_T}$ac_header_compiler" >&6; }
9858
9859# Is the header present?
9860{ echo "$as_me:$LINENO: checking ws2tcpip.h presence" >&5
9861echo $ECHO_N "checking ws2tcpip.h presence... $ECHO_C" >&6; }
9862cat >conftest.$ac_ext <<_ACEOF
9863/* confdefs.h. */
9864_ACEOF
9865cat confdefs.h >>conftest.$ac_ext
9866cat >>conftest.$ac_ext <<_ACEOF
9867/* end confdefs.h. */
9868#include <ws2tcpip.h>
9869_ACEOF
9870if { (ac_try="$ac_cpp conftest.$ac_ext"
9871case "(($ac_try" in
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9874esac
9875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9877 ac_status=$?
9878 grep -v '^ *+' conftest.er1 >conftest.err
9879 rm -f conftest.er1
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } >/dev/null && {
9883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9884 test ! -s conftest.err
9885 }; then
9886 ac_header_preproc=yes
9887else
9888 echo "$as_me: failed program was:" >&5
9889sed 's/^/| /' conftest.$ac_ext >&5
9890
9891 ac_header_preproc=no
9892fi
9893
9894rm -f conftest.err conftest.$ac_ext
9895{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9896echo "${ECHO_T}$ac_header_preproc" >&6; }
9897
9898# So? What about this header?
9899case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9900 yes:no: )
9901 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&5
9902echo "$as_me: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&5
9904echo "$as_me: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&2;}
9905 ac_header_preproc=yes
9906 ;;
9907 no:yes:* )
9908 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: present but cannot be compiled" >&5
9909echo "$as_me: WARNING: ws2tcpip.h: present but cannot be compiled" >&2;}
9910 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&5
9911echo "$as_me: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&2;}
9912 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: see the Autoconf documentation" >&5
9913echo "$as_me: WARNING: ws2tcpip.h: see the Autoconf documentation" >&2;}
9914 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&5
9915echo "$as_me: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&5
9917echo "$as_me: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&5
9919echo "$as_me: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&2;}
9920
9921 ;;
9922esac
9923{ echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5
9924echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; }
9925if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9927else
9928 ac_cv_header_ws2tcpip_h=$ac_header_preproc
9929fi
9930{ echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5
9931echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; }
9932
9933fi
9934if test $ac_cv_header_ws2tcpip_h = yes; then
9935 cat >>confdefs.h <<\_ACEOF
9936#define PJ_HAS_WS2TCPIP_H 1
9937_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00009938
9939fi
9940
9941
Sauw Mingd8aa67c2011-08-09 04:31:41 +00009942if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
9943 { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
9944echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; }
9945if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9947fi
9948{ echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
9949echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; }
9950else
9951 # Is the header compilable?
9952{ echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
9953echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6; }
9954cat >conftest.$ac_ext <<_ACEOF
9955/* confdefs.h. */
9956_ACEOF
9957cat confdefs.h >>conftest.$ac_ext
9958cat >>conftest.$ac_ext <<_ACEOF
9959/* end confdefs.h. */
9960$ac_includes_default
9961#include <uuid/uuid.h>
9962_ACEOF
9963rm -f conftest.$ac_objext
9964if { (ac_try="$ac_compile"
9965case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9968esac
9969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_compile") 2>conftest.er1
9971 ac_status=$?
9972 grep -v '^ *+' conftest.er1 >conftest.err
9973 rm -f conftest.er1
9974 cat conftest.err >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } && {
9977 test -z "$ac_c_werror_flag" ||
9978 test ! -s conftest.err
9979 } && test -s conftest.$ac_objext; then
9980 ac_header_compiler=yes
9981else
9982 echo "$as_me: failed program was:" >&5
9983sed 's/^/| /' conftest.$ac_ext >&5
9984
9985 ac_header_compiler=no
9986fi
9987
9988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9989{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9990echo "${ECHO_T}$ac_header_compiler" >&6; }
9991
9992# Is the header present?
9993{ echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
9994echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6; }
9995cat >conftest.$ac_ext <<_ACEOF
9996/* confdefs.h. */
9997_ACEOF
9998cat confdefs.h >>conftest.$ac_ext
9999cat >>conftest.$ac_ext <<_ACEOF
10000/* end confdefs.h. */
10001#include <uuid/uuid.h>
10002_ACEOF
10003if { (ac_try="$ac_cpp conftest.$ac_ext"
10004case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10007esac
10008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10010 ac_status=$?
10011 grep -v '^ *+' conftest.er1 >conftest.err
10012 rm -f conftest.er1
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } >/dev/null && {
10016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10017 test ! -s conftest.err
10018 }; then
10019 ac_header_preproc=yes
10020else
10021 echo "$as_me: failed program was:" >&5
10022sed 's/^/| /' conftest.$ac_ext >&5
10023
10024 ac_header_preproc=no
10025fi
10026
10027rm -f conftest.err conftest.$ac_ext
10028{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10029echo "${ECHO_T}$ac_header_preproc" >&6; }
10030
10031# So? What about this header?
10032case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10033 yes:no: )
10034 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
10035echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10036 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
10037echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
10038 ac_header_preproc=yes
10039 ;;
10040 no:yes:* )
10041 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
10042echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
10043 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
10044echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
10045 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
10046echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
10047 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
10048echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
10049 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
10050echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
10051 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
10052echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
10053
10054 ;;
10055esac
10056{ echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
10057echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; }
10058if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10060else
10061 ac_cv_header_uuid_uuid_h=$ac_header_preproc
10062fi
10063{ echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
10064echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; }
10065
10066fi
10067if test $ac_cv_header_uuid_uuid_h = yes; then
Benny Prijono4e48b512007-05-16 13:41:00 +000010068 ac_has_uuid_h=1
10069fi
10070
10071
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010072{ echo "$as_me:$LINENO: checking for net/if.h" >&5
10073echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; }
10074if test "${ac_cv_header_net_if_h+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10076else
10077 cat >conftest.$ac_ext <<_ACEOF
10078/* confdefs.h. */
10079_ACEOF
10080cat confdefs.h >>conftest.$ac_ext
10081cat >>conftest.$ac_ext <<_ACEOF
10082/* end confdefs.h. */
10083#if PJ_HAS_SYS_TYPES_H
Benny Prijonod5233702010-01-13 13:09:45 +000010084 # include <sys/types.h>
10085 #endif
10086 #if PJ_HAS_SYS_SOCKET_H
10087
Benny Prijono188ba7e2008-03-25 13:53:16 +000010088 # include <sys/socket.h>
10089 #endif
10090
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010091
10092#include <net/if.h>
10093_ACEOF
10094rm -f conftest.$ac_objext
10095if { (ac_try="$ac_compile"
10096case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10099esac
10100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_compile") 2>conftest.er1
10102 ac_status=$?
10103 grep -v '^ *+' conftest.er1 >conftest.err
10104 rm -f conftest.er1
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } && {
10108 test -z "$ac_c_werror_flag" ||
10109 test ! -s conftest.err
10110 } && test -s conftest.$ac_objext; then
10111 ac_cv_header_net_if_h=yes
10112else
10113 echo "$as_me: failed program was:" >&5
10114sed 's/^/| /' conftest.$ac_ext >&5
10115
10116 ac_cv_header_net_if_h=no
10117fi
10118
10119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10120fi
10121{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
10122echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; }
10123if test $ac_cv_header_net_if_h = yes; then
10124 cat >>confdefs.h <<\_ACEOF
10125#define PJ_HAS_NET_IF_H 1
10126_ACEOF
Benny Prijono188ba7e2008-03-25 13:53:16 +000010127
10128fi
10129
Benny Prijono188ba7e2008-03-25 13:53:16 +000010130
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010131{ echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5
10132echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010133cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010134#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010135_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010136
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010137
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010138{ echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
10139echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
10140cat >>confdefs.h <<\_ACEOF
10141#define PJ_HAS_ERRNO_VAR 1
10142_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010143
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010144
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010145{ echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
10146echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
10147cat >>confdefs.h <<\_ACEOF
10148#define PJ_HAS_HIGH_RES_TIMER 1
10149_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010150
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010151
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010152{ echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5
10153echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6; }
10154cat >>confdefs.h <<\_ACEOF
10155#define PJ_HAS_MALLOC 1
10156_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010157
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010158
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010159{ echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
10160echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
10161cat >>confdefs.h <<\_ACEOF
10162#define PJ_NATIVE_STRING_IS_UNICODE 0
10163_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010164
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010165
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010166{ echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
10167echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
10168cat >>confdefs.h <<\_ACEOF
10169#define PJ_ATOMIC_VALUE_TYPE long
10170_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010171
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010172
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010173{ echo "$as_me:$LINENO: checking if inet_aton() is available" >&5
10174echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6; }
10175cat >conftest.$ac_ext <<_ACEOF
10176/* confdefs.h. */
10177_ACEOF
10178cat confdefs.h >>conftest.$ac_ext
10179cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010180/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010181#include <sys/types.h>
10182 #include <sys/socket.h>
10183 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010184int
10185main ()
10186{
10187inet_aton(0, 0);
10188 ;
10189 return 0;
10190}
10191_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010192rm -f conftest.$ac_objext
10193if { (ac_try="$ac_compile"
10194case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10197esac
10198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_compile") 2>conftest.er1
10200 ac_status=$?
10201 grep -v '^ *+' conftest.er1 >conftest.err
10202 rm -f conftest.er1
10203 cat conftest.err >&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); } && {
10206 test -z "$ac_c_werror_flag" ||
10207 test ! -s conftest.err
10208 } && test -s conftest.$ac_objext; then
10209 cat >>confdefs.h <<\_ACEOF
10210#define PJ_SOCK_HAS_INET_ATON 1
10211_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010212
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010213 { echo "$as_me:$LINENO: result: yes" >&5
10214echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010215else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010216 echo "$as_me: failed program was:" >&5
10217sed 's/^/| /' conftest.$ac_ext >&5
10218
10219 { echo "$as_me:$LINENO: result: no" >&5
10220echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010221fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010222
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10224
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010225{ echo "$as_me:$LINENO: checking if inet_pton() is available" >&5
10226echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6; }
10227cat >conftest.$ac_ext <<_ACEOF
10228/* confdefs.h. */
10229_ACEOF
10230cat confdefs.h >>conftest.$ac_ext
10231cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010232/* end confdefs.h. */
10233#include <sys/types.h>
10234 #include <sys/socket.h>
10235 #include <arpa/inet.h>
10236int
10237main ()
10238{
10239inet_pton(0, 0, 0);
10240 ;
10241 return 0;
10242}
10243_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010244rm -f conftest.$ac_objext
10245if { (ac_try="$ac_compile"
10246case "(($ac_try" in
10247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10249esac
10250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251 (eval "$ac_compile") 2>conftest.er1
10252 ac_status=$?
10253 grep -v '^ *+' conftest.er1 >conftest.err
10254 rm -f conftest.er1
10255 cat conftest.err >&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } && {
10258 test -z "$ac_c_werror_flag" ||
10259 test ! -s conftest.err
10260 } && test -s conftest.$ac_objext; then
10261 cat >>confdefs.h <<\_ACEOF
10262#define PJ_SOCK_HAS_INET_PTON 1
10263_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010264
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010265 { echo "$as_me:$LINENO: result: yes" >&5
10266echo "${ECHO_T}yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010267else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010268 echo "$as_me: failed program was:" >&5
10269sed 's/^/| /' conftest.$ac_ext >&5
10270
10271 { echo "$as_me:$LINENO: result: no" >&5
10272echo "${ECHO_T}no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010273fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010274
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10276
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010277{ echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5
10278echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6; }
10279cat >conftest.$ac_ext <<_ACEOF
10280/* confdefs.h. */
10281_ACEOF
10282cat confdefs.h >>conftest.$ac_ext
10283cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010284/* end confdefs.h. */
10285#include <sys/types.h>
10286 #include <sys/socket.h>
10287 #include <arpa/inet.h>
10288int
10289main ()
10290{
10291inet_ntop(0, 0, 0, 0);
10292 ;
10293 return 0;
10294}
10295_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010296rm -f conftest.$ac_objext
10297if { (ac_try="$ac_compile"
10298case "(($ac_try" in
10299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300 *) ac_try_echo=$ac_try;;
10301esac
10302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10303 (eval "$ac_compile") 2>conftest.er1
10304 ac_status=$?
10305 grep -v '^ *+' conftest.er1 >conftest.err
10306 rm -f conftest.er1
10307 cat conftest.err >&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); } && {
10310 test -z "$ac_c_werror_flag" ||
10311 test ! -s conftest.err
10312 } && test -s conftest.$ac_objext; then
10313 cat >>confdefs.h <<\_ACEOF
10314#define PJ_SOCK_HAS_INET_NTOP 1
10315_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010316
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010317 { echo "$as_me:$LINENO: result: yes" >&5
10318echo "${ECHO_T}yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010319else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010320 echo "$as_me: failed program was:" >&5
10321sed 's/^/| /' conftest.$ac_ext >&5
10322
10323 { echo "$as_me:$LINENO: result: no" >&5
10324echo "${ECHO_T}no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010325fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010326
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10328
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010329{ echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5
10330echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6; }
10331cat >conftest.$ac_ext <<_ACEOF
10332/* confdefs.h. */
10333_ACEOF
10334cat confdefs.h >>conftest.$ac_ext
10335cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010336/* end confdefs.h. */
10337#include <sys/types.h>
10338 #include <sys/socket.h>
10339 #include <netdb.h>
10340int
10341main ()
10342{
10343getaddrinfo(0, 0, 0, 0);
10344 ;
10345 return 0;
10346}
10347_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010348rm -f conftest.$ac_objext
10349if { (ac_try="$ac_compile"
10350case "(($ac_try" in
10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10353esac
10354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355 (eval "$ac_compile") 2>conftest.er1
10356 ac_status=$?
10357 grep -v '^ *+' conftest.er1 >conftest.err
10358 rm -f conftest.er1
10359 cat conftest.err >&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } && {
10362 test -z "$ac_c_werror_flag" ||
10363 test ! -s conftest.err
10364 } && test -s conftest.$ac_objext; then
10365 cat >>confdefs.h <<\_ACEOF
10366#define PJ_SOCK_HAS_GETADDRINFO 1
10367_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010368
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010369 { echo "$as_me:$LINENO: result: yes" >&5
10370echo "${ECHO_T}yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010371else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010372 echo "$as_me: failed program was:" >&5
10373sed 's/^/| /' conftest.$ac_ext >&5
10374
10375 { echo "$as_me:$LINENO: result: no" >&5
10376echo "${ECHO_T}no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010377fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010378
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10380
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010381{ echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
10382echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6; }
10383cat >conftest.$ac_ext <<_ACEOF
10384/* confdefs.h. */
10385_ACEOF
10386cat confdefs.h >>conftest.$ac_ext
10387cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010388/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +000010389#include <sys/types.h>
10390 #include <sys/socket.h>
10391 #include <netinet/in.h>
10392 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010393int
10394main ()
10395{
10396struct sockaddr_in a; a.sin_len=0;
10397 ;
10398 return 0;
10399}
10400_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010401rm -f conftest.$ac_objext
10402if { (ac_try="$ac_compile"
10403case "(($ac_try" in
10404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10405 *) ac_try_echo=$ac_try;;
10406esac
10407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10408 (eval "$ac_compile") 2>conftest.er1
10409 ac_status=$?
10410 grep -v '^ *+' conftest.er1 >conftest.err
10411 rm -f conftest.er1
10412 cat conftest.err >&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } && {
10415 test -z "$ac_c_werror_flag" ||
10416 test ! -s conftest.err
10417 } && test -s conftest.$ac_objext; then
10418 cat >>confdefs.h <<\_ACEOF
10419#define PJ_SOCKADDR_HAS_LEN 1
10420_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010421
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010422 { echo "$as_me:$LINENO: result: yes" >&5
10423echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010424else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010425 echo "$as_me: failed program was:" >&5
10426sed 's/^/| /' conftest.$ac_ext >&5
10427
10428 { echo "$as_me:$LINENO: result: no" >&5
10429echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010430fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010431
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10433
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010434{ echo "$as_me:$LINENO: checking if socklen_t is available" >&5
10435echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6; }
10436cat >conftest.$ac_ext <<_ACEOF
10437/* confdefs.h. */
10438_ACEOF
10439cat confdefs.h >>conftest.$ac_ext
10440cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010441/* end confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +000010442#include <sys/types.h>
10443 #include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +000010444int
10445main ()
10446{
10447socklen_t xxx = 0;
10448 ;
10449 return 0;
10450}
10451_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010452rm -f conftest.$ac_objext
10453if { (ac_try="$ac_compile"
10454case "(($ac_try" in
10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10457esac
10458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_compile") 2>conftest.er1
10460 ac_status=$?
10461 grep -v '^ *+' conftest.er1 >conftest.err
10462 rm -f conftest.er1
10463 cat conftest.err >&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && {
10466 test -z "$ac_c_werror_flag" ||
10467 test ! -s conftest.err
10468 } && test -s conftest.$ac_objext; then
10469 cat >>confdefs.h <<\_ACEOF
10470#define PJ_HAS_SOCKLEN_T 1
10471_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +000010472
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010473 { echo "$as_me:$LINENO: result: yes" >&5
10474echo "${ECHO_T}yes" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +000010475else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010476 echo "$as_me: failed program was:" >&5
10477sed 's/^/| /' conftest.$ac_ext >&5
10478
10479 { echo "$as_me:$LINENO: result: no" >&5
10480echo "${ECHO_T}no" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +000010481fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010482
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10484
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010485{ echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
10486echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010487case $target in
10488 *mingw* | *cygw* | *win32* | *w32* )
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010489 cat >>confdefs.h <<\_ACEOF
10490#define PJ_HAS_SO_ERROR 1
10491_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010492
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010493 { echo "$as_me:$LINENO: result: yes" >&5
10494echo "${ECHO_T}yes" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010495 ;;
10496 *)
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010497 cat >conftest.$ac_ext <<_ACEOF
10498/* confdefs.h. */
10499_ACEOF
10500cat confdefs.h >>conftest.$ac_ext
10501cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010502/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +000010503#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010504 #include <sys/socket.h>
10505 #include <netinet/in.h>
10506 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010507int
10508main ()
10509{
10510int i=SO_ERROR;
10511 ;
10512 return 0;
10513}
10514_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010515rm -f conftest.$ac_objext
10516if { (ac_try="$ac_compile"
10517case "(($ac_try" in
10518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519 *) ac_try_echo=$ac_try;;
10520esac
10521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522 (eval "$ac_compile") 2>conftest.er1
10523 ac_status=$?
10524 grep -v '^ *+' conftest.er1 >conftest.err
10525 rm -f conftest.er1
10526 cat conftest.err >&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } && {
10529 test -z "$ac_c_werror_flag" ||
10530 test ! -s conftest.err
10531 } && test -s conftest.$ac_objext; then
10532 cat >>confdefs.h <<\_ACEOF
10533#define PJ_HAS_SO_ERROR 1
10534_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010535
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010536 { echo "$as_me:$LINENO: result: yes" >&5
10537echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010538else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010539 echo "$as_me: failed program was:" >&5
10540sed 's/^/| /' conftest.$ac_ext >&5
10541
10542 { echo "$as_me:$LINENO: result: no" >&5
10543echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010544fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010545
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010547 ;;
10548esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010549
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010550
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010551{ echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
10552echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6; }
10553cat >conftest.$ac_ext <<_ACEOF
10554/* confdefs.h. */
10555_ACEOF
10556cat confdefs.h >>conftest.$ac_ext
10557cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010558/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010559#include <pthread.h>
10560int
10561main ()
10562{
10563pthread_rwlock_t *x;
10564 ;
10565 return 0;
10566}
10567_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010568rm -f conftest.$ac_objext
10569if { (ac_try="$ac_compile"
10570case "(($ac_try" in
10571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10573esac
10574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575 (eval "$ac_compile") 2>conftest.er1
10576 ac_status=$?
10577 grep -v '^ *+' conftest.er1 >conftest.err
10578 rm -f conftest.er1
10579 cat conftest.err >&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); } && {
10582 test -z "$ac_c_werror_flag" ||
10583 test ! -s conftest.err
10584 } && test -s conftest.$ac_objext; then
10585 cat >>confdefs.h <<\_ACEOF
10586#define PJ_EMULATE_RWMUTEX 0
10587_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010588
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010589 ac_rwmutex="yes"
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010590 { echo "$as_me:$LINENO: result: yes" >&5
10591echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010592else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010593 echo "$as_me: failed program was:" >&5
10594sed 's/^/| /' conftest.$ac_ext >&5
10595
10596 cat >>confdefs.h <<\_ACEOF
10597#define PJ_EMULATE_RWMUTEX 1
10598_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010599
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010600 ac_rwmutex="no"
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010601 { echo "$as_me:$LINENO: result: no" >&5
10602echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010603fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010604
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010606
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010607if test "$ac_rwmutex" = "no"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010608 { echo "$as_me:$LINENO: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
10609echo $ECHO_N "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... $ECHO_C" >&6; }
10610 cat >conftest.$ac_ext <<_ACEOF
10611/* confdefs.h. */
10612_ACEOF
10613cat confdefs.h >>conftest.$ac_ext
10614cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010615/* end confdefs.h. */
10616#define _POSIX_READER_WRITER_LOCKS
10617 #include <pthread.h>
10618int
10619main ()
10620{
10621pthread_rwlock_t *x;
10622 ;
10623 return 0;
10624}
10625_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010626rm -f conftest.$ac_objext
10627if { (ac_try="$ac_compile"
10628case "(($ac_try" in
10629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630 *) ac_try_echo=$ac_try;;
10631esac
10632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633 (eval "$ac_compile") 2>conftest.er1
10634 ac_status=$?
10635 grep -v '^ *+' conftest.er1 >conftest.err
10636 rm -f conftest.er1
10637 cat conftest.err >&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } && {
10640 test -z "$ac_c_werror_flag" ||
10641 test ! -s conftest.err
10642 } && test -s conftest.$ac_objext; then
10643 cat >>confdefs.h <<\_ACEOF
10644#define PJ_EMULATE_RWMUTEX 0
10645_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010646
10647 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010648 { echo "$as_me:$LINENO: result: yes" >&5
10649echo "${ECHO_T}yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010650else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010651 echo "$as_me: failed program was:" >&5
10652sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010653
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010654 cat >>confdefs.h <<\_ACEOF
10655#define PJ_EMULATE_RWMUTEX 1
10656_ACEOF
10657
10658 { echo "$as_me:$LINENO: result: no" >&5
10659echo "${ECHO_T}no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010660fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010661
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10663fi
10664
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010665{ echo "$as_me:$LINENO: checking if pthread_mutexattr_settype() is available" >&5
10666echo $ECHO_N "checking if pthread_mutexattr_settype() is available... $ECHO_C" >&6; }
10667cat >conftest.$ac_ext <<_ACEOF
10668/* confdefs.h. */
10669_ACEOF
10670cat confdefs.h >>conftest.$ac_ext
10671cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010672/* end confdefs.h. */
10673#include <pthread.h>
10674int
10675main ()
10676{
10677pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
10678 ;
10679 return 0;
10680}
10681_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010682rm -f conftest.$ac_objext
10683if { (ac_try="$ac_compile"
10684case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10687esac
10688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_compile") 2>conftest.er1
10690 ac_status=$?
10691 grep -v '^ *+' conftest.er1 >conftest.err
10692 rm -f conftest.er1
10693 cat conftest.err >&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } && {
10696 test -z "$ac_c_werror_flag" ||
10697 test ! -s conftest.err
10698 } && test -s conftest.$ac_objext; then
10699 cat >>confdefs.h <<\_ACEOF
10700#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1
10701_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010702
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010703 { echo "$as_me:$LINENO: result: yes" >&5
10704echo "${ECHO_T}yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010705else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010706 echo "$as_me: failed program was:" >&5
10707sed 's/^/| /' conftest.$ac_ext >&5
10708
10709 { echo "$as_me:$LINENO: result: no" >&5
10710echo "${ECHO_T}no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010711fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010712
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10714
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010715{ echo "$as_me:$LINENO: checking if pthread_mutexattr_t has recursive member" >&5
10716echo $ECHO_N "checking if pthread_mutexattr_t has recursive member... $ECHO_C" >&6; }
10717cat >conftest.$ac_ext <<_ACEOF
10718/* confdefs.h. */
10719_ACEOF
10720cat confdefs.h >>conftest.$ac_ext
10721cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010722/* end confdefs.h. */
10723#include <pthread.h>
10724int
10725main ()
10726{
10727pthread_mutexattr_t attr;
10728 attr.recursive=1;
10729 ;
10730 return 0;
10731}
10732_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010733rm -f conftest.$ac_objext
10734if { (ac_try="$ac_compile"
10735case "(($ac_try" in
10736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737 *) ac_try_echo=$ac_try;;
10738esac
10739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740 (eval "$ac_compile") 2>conftest.er1
10741 ac_status=$?
10742 grep -v '^ *+' conftest.er1 >conftest.err
10743 rm -f conftest.er1
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } && {
10747 test -z "$ac_c_werror_flag" ||
10748 test ! -s conftest.err
10749 } && test -s conftest.$ac_objext; then
10750 cat >>confdefs.h <<\_ACEOF
10751#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1
10752_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010753
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010754 { echo "$as_me:$LINENO: result: yes" >&5
10755echo "${ECHO_T}yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010756else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010757 echo "$as_me: failed program was:" >&5
10758sed 's/^/| /' conftest.$ac_ext >&5
10759
10760 { echo "$as_me:$LINENO: result: no" >&5
10761echo "${ECHO_T}no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010762fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010763
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +000010765
Benny Prijono99eec382008-09-18 21:22:16 +000010766
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010767{ echo "$as_me:$LINENO: checking ioqueue backend" >&5
10768echo $ECHO_N "checking ioqueue backend... $ECHO_C" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010769# Check whether --enable-epoll was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010770if test "${enable_epoll+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010771 enableval=$enable_epoll;
Benny Prijono99eec382008-09-18 21:22:16 +000010772 ac_os_objs=ioqueue_epoll.o
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010773 { echo "$as_me:$LINENO: result: /dev/epoll" >&5
10774echo "${ECHO_T}/dev/epoll" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +000010775
10776else
10777
10778 ac_os_objs=ioqueue_select.o
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010779 { echo "$as_me:$LINENO: result: select()" >&5
10780echo "${ECHO_T}select()" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +000010781
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010782fi
10783
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010784
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010785
10786case $target in
10787 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono99eec382008-09-18 21:22:16 +000010788 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 +000010789 ;;
10790 *)
Benny Prijono99eec382008-09-18 21:22:16 +000010791 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"
Sauw Ming6a970a32011-03-01 05:25:27 +000010792 case $target in
10793 arm-apple-darwin*)
Sauw Mingfe42f0c2011-03-01 10:42:11 +000010794 ac_os_objs="$ac_os_objs os_info_iphone.o"
Sauw Ming6a970a32011-03-01 05:25:27 +000010795 ;;
10796 esac
Benny Prijono4e48b512007-05-16 13:41:00 +000010797 # UUID
10798 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
10799 ac_os_objs="$ac_os_objs guid_uuid.o"
10800 else
10801 ac_os_objs="$ac_os_objs guid_simple.o"
10802 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010803 ;;
10804esac
10805
Sauw Ming68c14572011-07-20 03:00:48 +000010806case $target in
10807 *darwin*)
10808 ac_os_objs="$ac_os_objs os_core_darwin.o"
10809 ;;
10810esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010811
10812
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010813ac_external_speex=0
10814
10815
10816# Check whether --with-external-speex was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010817if test "${with_external_speex+set}" = set; then
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010818 withval=$with_external_speex;
10819 if test "x$with_external_speex" != "xno"; then
10820 # Test Speex installation
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010821 { echo "$as_me:$LINENO: checking if external Speex devkit is installed" >&5
10822echo $ECHO_N "checking if external Speex devkit is installed... $ECHO_C" >&6; }
10823 cat >conftest.$ac_ext <<_ACEOF
10824/* confdefs.h. */
10825_ACEOF
10826cat confdefs.h >>conftest.$ac_ext
10827cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010828/* end confdefs.h. */
10829#include <speex/speex.h>
10830 #include <speex/speex_echo.h>
10831
10832int
10833main ()
10834{
10835speex_echo_state_init(0, 0); speex_encoder_init(0);
10836 ;
10837 return 0;
10838}
10839_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010840rm -f conftest.$ac_objext
10841if { (ac_try="$ac_compile"
10842case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10845esac
10846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_compile") 2>conftest.er1
10848 ac_status=$?
10849 grep -v '^ *+' conftest.er1 >conftest.err
10850 rm -f conftest.er1
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } && {
10854 test -z "$ac_c_werror_flag" ||
10855 test ! -s conftest.err
10856 } && test -s conftest.$ac_objext; then
10857 { echo "$as_me:$LINENO: result: yes!!" >&5
10858echo "${ECHO_T}yes!!" >&6; }
10859 cat >>confdefs.h <<\_ACEOF
10860#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1
10861_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010862
10863 ac_external_speex="1"
10864
10865else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010866 echo "$as_me: failed program was:" >&5
10867sed 's/^/| /' conftest.$ac_ext >&5
10868
10869 { { 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
10870echo "$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;}
10871 { (exit 1); exit 1; }; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010872fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010873
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10875 fi
10876
10877
10878fi
10879
10880
10881ac_external_gsm=0
10882
10883
10884# Check whether --with-external-gsm was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010885if test "${with_external_gsm+set}" = set; then
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010886 withval=$with_external_gsm;
10887 if test "x$with_external_gsm" != "xno"; then
Benny Prijonod4306432010-05-01 22:05:41 +000010888 # Test GSM library installation
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010889 { echo "$as_me:$LINENO: checking if external GSM devkit is installed as gsm/gsm.h" >&5
10890echo $ECHO_N "checking if external GSM devkit is installed as gsm/gsm.h... $ECHO_C" >&6; }
10891 cat >conftest.$ac_ext <<_ACEOF
10892/* confdefs.h. */
10893_ACEOF
10894cat confdefs.h >>conftest.$ac_ext
10895cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010896/* end confdefs.h. */
10897#include <gsm/gsm.h>
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010898int
10899main ()
10900{
10901gsm_create();
10902 ;
10903 return 0;
10904}
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010905_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010906rm -f conftest.$ac_objext
10907if { (ac_try="$ac_compile"
10908case "(($ac_try" in
10909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910 *) ac_try_echo=$ac_try;;
10911esac
10912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913 (eval "$ac_compile") 2>conftest.er1
10914 ac_status=$?
10915 grep -v '^ *+' conftest.er1 >conftest.err
10916 rm -f conftest.er1
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } && {
10920 test -z "$ac_c_werror_flag" ||
10921 test ! -s conftest.err
10922 } && test -s conftest.$ac_objext; then
10923 { echo "$as_me:$LINENO: result: yes!!" >&5
10924echo "${ECHO_T}yes!!" >&6; }
10925 cat >>confdefs.h <<\_ACEOF
10926#define PJMEDIA_EXTERNAL_GSM_CODEC 1
10927_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010928
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010929 cat >>confdefs.h <<\_ACEOF
10930#define PJMEDIA_EXTERNAL_GSM_GSM_H 1
10931_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +000010932
10933 ac_external_gsm="1"
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010934
10935else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010936 echo "$as_me: failed program was:" >&5
10937sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijono46bd0842010-02-12 14:12:41 +000010938
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010939
10940 { echo "$as_me:$LINENO: result: no" >&5
10941echo "${ECHO_T}no" >&6; }
10942 { echo "$as_me:$LINENO: checking if external GSM devkit is installed as gsm.h" >&5
10943echo $ECHO_N "checking if external GSM devkit is installed as gsm.h... $ECHO_C" >&6; }
10944 cat >conftest.$ac_ext <<_ACEOF
10945/* confdefs.h. */
10946_ACEOF
10947cat confdefs.h >>conftest.$ac_ext
10948cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +000010949/* end confdefs.h. */
10950#include <gsm.h>
10951int
10952main ()
10953{
10954gsm_create();
10955 ;
10956 return 0;
10957}
10958_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010959rm -f conftest.$ac_objext
10960if { (ac_try="$ac_compile"
10961case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10964esac
10965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_compile") 2>conftest.er1
10967 ac_status=$?
10968 grep -v '^ *+' conftest.er1 >conftest.err
10969 rm -f conftest.er1
10970 cat conftest.err >&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } && {
10973 test -z "$ac_c_werror_flag" ||
10974 test ! -s conftest.err
10975 } && test -s conftest.$ac_objext; then
10976 { echo "$as_me:$LINENO: result: yes!!" >&5
10977echo "${ECHO_T}yes!!" >&6; }
10978 cat >>confdefs.h <<\_ACEOF
10979#define PJMEDIA_EXTERNAL_GSM_CODEC 1
10980_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +000010981
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010982 cat >>confdefs.h <<\_ACEOF
10983#define PJMEDIA_EXTERNAL_GSM_H 1
10984_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +000010985
10986 ac_external_gsm="1"
10987
10988else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010989 echo "$as_me: failed program was:" >&5
10990sed 's/^/| /' conftest.$ac_ext >&5
10991
10992 { { 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
10993echo "$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;}
10994 { (exit 1); exit 1; }; }
Benny Prijonod4306432010-05-01 22:05:41 +000010995
10996
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010997fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000010998
Benny Prijonod4306432010-05-01 22:05:41 +000010999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono46bd0842010-02-12 14:12:41 +000011000
Benny Prijonod4306432010-05-01 22:05:41 +000011001
11002fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011003
Benny Prijono8a9b3b22010-01-14 14:46:54 +000011004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005 fi
11006
11007
11008fi
11009
11010
11011
11012
Benny Prijono4e48b512007-05-16 13:41:00 +000011013
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011014# Check whether --enable-sound was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011015if test "${enable_sound+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011016 enableval=$enable_sound; if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +000011017 ac_pjmedia_snd=null
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011018 { echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5
11019echo "${ECHO_T}Checking if sound is disabled... yes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +000011020 fi
11021
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011022fi
11023
Benny Prijono1d971622006-09-10 22:27:40 +000011024
Benny Prijono8a9b3b22010-01-14 14:46:54 +000011025ac_external_pa=0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011026
Benny Prijono27c98722007-04-09 21:28:15 +000011027
Benny Prijono8a9b3b22010-01-14 14:46:54 +000011028# Check whether --with-external-pa was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011029if test "${with_external_pa+set}" = set; then
Benny Prijono8a9b3b22010-01-14 14:46:54 +000011030 withval=$with_external_pa;
11031 if test "x$with_external_pa" != "xno"; then
11032 # Test PortAudio installation
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011033 { echo "$as_me:$LINENO: checking if external PortAudio devkit is installed" >&5
11034echo $ECHO_N "checking if external PortAudio devkit is installed... $ECHO_C" >&6; }
11035 cat >conftest.$ac_ext <<_ACEOF
11036/* confdefs.h. */
11037_ACEOF
11038cat confdefs.h >>conftest.$ac_ext
11039cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +000011040/* end confdefs.h. */
11041#include <portaudio.h>
11042
11043int
11044main ()
11045{
11046Pa_Initialize();
11047 ;
11048 return 0;
11049}
11050_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011051rm -f conftest.$ac_objext
11052if { (ac_try="$ac_compile"
11053case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056esac
11057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_compile") 2>conftest.er1
11059 ac_status=$?
11060 grep -v '^ *+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } && {
11065 test -z "$ac_c_werror_flag" ||
11066 test ! -s conftest.err
11067 } && test -s conftest.$ac_objext; then
11068 { echo "$as_me:$LINENO: result: yes!!" >&5
11069echo "${ECHO_T}yes!!" >&6; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +000011070 ac_external_pa="1"
11071
11072else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011073 echo "$as_me: failed program was:" >&5
11074sed 's/^/| /' conftest.$ac_ext >&5
11075
11076 { { 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
11077echo "$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;}
11078 { (exit 1); exit 1; }; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +000011079fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011080
Benny Prijono8a9b3b22010-01-14 14:46:54 +000011081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonofe0c1272010-01-13 16:28:15 +000011082 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011083
Benny Prijono27c98722007-04-09 21:28:15 +000011084
11085fi
Benny Prijonofe0c1272010-01-13 16:28:15 +000011086
11087
11088
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011089if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
11090 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
11091echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
11092if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11094fi
11095{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
11096echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
11097else
11098 # Is the header compilable?
11099{ echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
11100echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
11101cat >conftest.$ac_ext <<_ACEOF
11102/* confdefs.h. */
11103_ACEOF
11104cat confdefs.h >>conftest.$ac_ext
11105cat >>conftest.$ac_ext <<_ACEOF
11106/* end confdefs.h. */
11107$ac_includes_default
11108#include <sys/soundcard.h>
11109_ACEOF
11110rm -f conftest.$ac_objext
11111if { (ac_try="$ac_compile"
11112case "(($ac_try" in
11113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114 *) ac_try_echo=$ac_try;;
11115esac
11116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 (eval "$ac_compile") 2>conftest.er1
11118 ac_status=$?
11119 grep -v '^ *+' conftest.er1 >conftest.err
11120 rm -f conftest.er1
11121 cat conftest.err >&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } && {
11124 test -z "$ac_c_werror_flag" ||
11125 test ! -s conftest.err
11126 } && test -s conftest.$ac_objext; then
11127 ac_header_compiler=yes
11128else
11129 echo "$as_me: failed program was:" >&5
11130sed 's/^/| /' conftest.$ac_ext >&5
11131
11132 ac_header_compiler=no
11133fi
11134
11135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11136{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11137echo "${ECHO_T}$ac_header_compiler" >&6; }
11138
11139# Is the header present?
11140{ echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
11141echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
11142cat >conftest.$ac_ext <<_ACEOF
11143/* confdefs.h. */
11144_ACEOF
11145cat confdefs.h >>conftest.$ac_ext
11146cat >>conftest.$ac_ext <<_ACEOF
11147/* end confdefs.h. */
11148#include <sys/soundcard.h>
11149_ACEOF
11150if { (ac_try="$ac_cpp conftest.$ac_ext"
11151case "(($ac_try" in
11152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11154esac
11155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11157 ac_status=$?
11158 grep -v '^ *+' conftest.er1 >conftest.err
11159 rm -f conftest.er1
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } >/dev/null && {
11163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11164 test ! -s conftest.err
11165 }; then
11166 ac_header_preproc=yes
11167else
11168 echo "$as_me: failed program was:" >&5
11169sed 's/^/| /' conftest.$ac_ext >&5
11170
11171 ac_header_preproc=no
11172fi
11173
11174rm -f conftest.err conftest.$ac_ext
11175{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11176echo "${ECHO_T}$ac_header_preproc" >&6; }
11177
11178# So? What about this header?
11179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11180 yes:no: )
11181 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
11182echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11183 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
11184echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
11185 ac_header_preproc=yes
11186 ;;
11187 no:yes:* )
11188 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
11189echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
11190 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
11191echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
11192 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
11193echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
11194 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
11195echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
11196 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
11197echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
11198 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
11199echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
11200
11201 ;;
11202esac
11203{ echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
11204echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
11205if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11207else
11208 ac_cv_header_sys_soundcard_h=$ac_header_preproc
11209fi
11210{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
11211echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
11212
11213fi
11214if test $ac_cv_header_sys_soundcard_h = yes; then
Benny Prijono27c98722007-04-09 21:28:15 +000011215 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
11216fi
11217
11218
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011219if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
11220 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
11221echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
11222if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224fi
11225{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
11226echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
11227else
11228 # Is the header compilable?
11229{ echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
11230echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
11231cat >conftest.$ac_ext <<_ACEOF
11232/* confdefs.h. */
11233_ACEOF
11234cat confdefs.h >>conftest.$ac_ext
11235cat >>conftest.$ac_ext <<_ACEOF
11236/* end confdefs.h. */
11237$ac_includes_default
11238#include <linux/soundcard.h>
11239_ACEOF
11240rm -f conftest.$ac_objext
11241if { (ac_try="$ac_compile"
11242case "(($ac_try" in
11243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11244 *) ac_try_echo=$ac_try;;
11245esac
11246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11247 (eval "$ac_compile") 2>conftest.er1
11248 ac_status=$?
11249 grep -v '^ *+' conftest.er1 >conftest.err
11250 rm -f conftest.er1
11251 cat conftest.err >&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } && {
11254 test -z "$ac_c_werror_flag" ||
11255 test ! -s conftest.err
11256 } && test -s conftest.$ac_objext; then
11257 ac_header_compiler=yes
11258else
11259 echo "$as_me: failed program was:" >&5
11260sed 's/^/| /' conftest.$ac_ext >&5
11261
11262 ac_header_compiler=no
11263fi
11264
11265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11266{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11267echo "${ECHO_T}$ac_header_compiler" >&6; }
11268
11269# Is the header present?
11270{ echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
11271echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
11272cat >conftest.$ac_ext <<_ACEOF
11273/* confdefs.h. */
11274_ACEOF
11275cat confdefs.h >>conftest.$ac_ext
11276cat >>conftest.$ac_ext <<_ACEOF
11277/* end confdefs.h. */
11278#include <linux/soundcard.h>
11279_ACEOF
11280if { (ac_try="$ac_cpp conftest.$ac_ext"
11281case "(($ac_try" in
11282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11284esac
11285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11287 ac_status=$?
11288 grep -v '^ *+' conftest.er1 >conftest.err
11289 rm -f conftest.er1
11290 cat conftest.err >&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } >/dev/null && {
11293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11294 test ! -s conftest.err
11295 }; then
11296 ac_header_preproc=yes
11297else
11298 echo "$as_me: failed program was:" >&5
11299sed 's/^/| /' conftest.$ac_ext >&5
11300
11301 ac_header_preproc=no
11302fi
11303
11304rm -f conftest.err conftest.$ac_ext
11305{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11306echo "${ECHO_T}$ac_header_preproc" >&6; }
11307
11308# So? What about this header?
11309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11310 yes:no: )
11311 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
11312echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11313 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
11314echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
11315 ac_header_preproc=yes
11316 ;;
11317 no:yes:* )
11318 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
11319echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
11320 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
11321echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
11322 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
11323echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
11324 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
11325echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
11326 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
11327echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
11328 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
11329echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
11330
11331 ;;
11332esac
11333{ echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
11334echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
11335if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11337else
11338 ac_cv_header_linux_soundcard_h=$ac_header_preproc
11339fi
11340{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
11341echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
11342
11343fi
11344if test $ac_cv_header_linux_soundcard_h = yes; then
Benny Prijono27c98722007-04-09 21:28:15 +000011345 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
11346fi
11347
11348
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011349if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
11350 { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
11351echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; }
11352if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11354fi
11355{ echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
11356echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; }
11357else
11358 # Is the header compilable?
11359{ echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5
11360echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6; }
11361cat >conftest.$ac_ext <<_ACEOF
11362/* confdefs.h. */
11363_ACEOF
11364cat confdefs.h >>conftest.$ac_ext
11365cat >>conftest.$ac_ext <<_ACEOF
11366/* end confdefs.h. */
11367$ac_includes_default
11368#include <machine/soundcard.h>
11369_ACEOF
11370rm -f conftest.$ac_objext
11371if { (ac_try="$ac_compile"
11372case "(($ac_try" in
11373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374 *) ac_try_echo=$ac_try;;
11375esac
11376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11377 (eval "$ac_compile") 2>conftest.er1
11378 ac_status=$?
11379 grep -v '^ *+' conftest.er1 >conftest.err
11380 rm -f conftest.er1
11381 cat conftest.err >&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } && {
11384 test -z "$ac_c_werror_flag" ||
11385 test ! -s conftest.err
11386 } && test -s conftest.$ac_objext; then
11387 ac_header_compiler=yes
11388else
11389 echo "$as_me: failed program was:" >&5
11390sed 's/^/| /' conftest.$ac_ext >&5
11391
11392 ac_header_compiler=no
11393fi
11394
11395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11396{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11397echo "${ECHO_T}$ac_header_compiler" >&6; }
11398
11399# Is the header present?
11400{ echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5
11401echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6; }
11402cat >conftest.$ac_ext <<_ACEOF
11403/* confdefs.h. */
11404_ACEOF
11405cat confdefs.h >>conftest.$ac_ext
11406cat >>conftest.$ac_ext <<_ACEOF
11407/* end confdefs.h. */
11408#include <machine/soundcard.h>
11409_ACEOF
11410if { (ac_try="$ac_cpp conftest.$ac_ext"
11411case "(($ac_try" in
11412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413 *) ac_try_echo=$ac_try;;
11414esac
11415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11417 ac_status=$?
11418 grep -v '^ *+' conftest.er1 >conftest.err
11419 rm -f conftest.er1
11420 cat conftest.err >&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } >/dev/null && {
11423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11424 test ! -s conftest.err
11425 }; then
11426 ac_header_preproc=yes
11427else
11428 echo "$as_me: failed program was:" >&5
11429sed 's/^/| /' conftest.$ac_ext >&5
11430
11431 ac_header_preproc=no
11432fi
11433
11434rm -f conftest.err conftest.$ac_ext
11435{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11436echo "${ECHO_T}$ac_header_preproc" >&6; }
11437
11438# So? What about this header?
11439case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11440 yes:no: )
11441 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
11442echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5
11444echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;}
11445 ac_header_preproc=yes
11446 ;;
11447 no:yes:* )
11448 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5
11449echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;}
11450 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5
11451echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;}
11452 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5
11453echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;}
11454 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
11455echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
11456 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5
11457echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5
11459echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;}
11460
11461 ;;
11462esac
11463{ echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
11464echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; }
11465if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
11466 echo $ECHO_N "(cached) $ECHO_C" >&6
11467else
11468 ac_cv_header_machine_soundcard_h=$ac_header_preproc
11469fi
11470{ echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
11471echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; }
11472
11473fi
11474if test $ac_cv_header_machine_soundcard_h = yes; then
Benny Prijono27c98722007-04-09 21:28:15 +000011475 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
11476fi
11477
11478
11479
Benny Prijono3e091672008-01-09 15:43:02 +000011480if test "x$ac_cv_c_bigendian" = "xyes"; then
11481 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
11482else
11483 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
11484fi
11485
Benny Prijono1d971622006-09-10 22:27:40 +000011486if test "$enable_sound" = "no"; then
11487 true;
11488else
11489 case $target in
Benny Prijono8ec5eae2010-05-12 10:59:20 +000011490 arm-apple-darwin*)
Sauw Ming6a970a32011-03-01 05:25:27 +000011491 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit"
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011492 { echo "$as_me:$LINENO: result: Checking sound device backend... AudioUnit" >&5
11493echo "${ECHO_T}Checking sound device backend... AudioUnit" >&6; }
Benny Prijono8ec5eae2010-05-12 10:59:20 +000011494 ;;
Benny Prijonob466e232006-09-10 08:53:59 +000011495 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +000011496 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
11497 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +000011498 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +000011499 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
11500 ac_pjmedia_snd=pa_old_darwinos
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011501 { echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
11502echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +000011503 else
11504 ac_pjmedia_snd=pa_darwinos
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011505 { echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
11506echo "${ECHO_T}Checking sound device backend... coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +000011507 fi
Benny Prijonob466e232006-09-10 08:53:59 +000011508 ;;
11509 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011510 ac_pjmedia_snd=pa_win32
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011511 { echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
11512echo "${ECHO_T}Checking sound device backend... win32 sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011513 ;;
11514 *rtems*)
11515 ac_pjmedia_snd=null
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011516 { echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
11517echo "${ECHO_T}Checking sound device backend... null sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011518 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011519 *)
Benny Prijono0b462322008-03-12 22:44:24 +000011520 ac_pjmedia_snd=pa_unix
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011521 if test "${ac_cv_header_alsa_version_h+set}" = set; then
11522 { echo "$as_me:$LINENO: checking for alsa/version.h" >&5
11523echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; }
11524if test "${ac_cv_header_alsa_version_h+set}" = set; then
11525 echo $ECHO_N "(cached) $ECHO_C" >&6
11526fi
11527{ echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
11528echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; }
11529else
11530 # Is the header compilable?
11531{ echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
11532echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6; }
11533cat >conftest.$ac_ext <<_ACEOF
11534/* confdefs.h. */
11535_ACEOF
11536cat confdefs.h >>conftest.$ac_ext
11537cat >>conftest.$ac_ext <<_ACEOF
11538/* end confdefs.h. */
11539$ac_includes_default
11540#include <alsa/version.h>
11541_ACEOF
11542rm -f conftest.$ac_objext
11543if { (ac_try="$ac_compile"
11544case "(($ac_try" in
11545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546 *) ac_try_echo=$ac_try;;
11547esac
11548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11549 (eval "$ac_compile") 2>conftest.er1
11550 ac_status=$?
11551 grep -v '^ *+' conftest.er1 >conftest.err
11552 rm -f conftest.er1
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } && {
11556 test -z "$ac_c_werror_flag" ||
11557 test ! -s conftest.err
11558 } && test -s conftest.$ac_objext; then
11559 ac_header_compiler=yes
11560else
11561 echo "$as_me: failed program was:" >&5
11562sed 's/^/| /' conftest.$ac_ext >&5
11563
11564 ac_header_compiler=no
11565fi
11566
11567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11568{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11569echo "${ECHO_T}$ac_header_compiler" >&6; }
11570
11571# Is the header present?
11572{ echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
11573echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6; }
11574cat >conftest.$ac_ext <<_ACEOF
11575/* confdefs.h. */
11576_ACEOF
11577cat confdefs.h >>conftest.$ac_ext
11578cat >>conftest.$ac_ext <<_ACEOF
11579/* end confdefs.h. */
11580#include <alsa/version.h>
11581_ACEOF
11582if { (ac_try="$ac_cpp conftest.$ac_ext"
11583case "(($ac_try" in
11584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11586esac
11587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11589 ac_status=$?
11590 grep -v '^ *+' conftest.er1 >conftest.err
11591 rm -f conftest.er1
11592 cat conftest.err >&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } >/dev/null && {
11595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11596 test ! -s conftest.err
11597 }; then
11598 ac_header_preproc=yes
11599else
11600 echo "$as_me: failed program was:" >&5
11601sed 's/^/| /' conftest.$ac_ext >&5
11602
11603 ac_header_preproc=no
11604fi
11605
11606rm -f conftest.err conftest.$ac_ext
11607{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11608echo "${ECHO_T}$ac_header_preproc" >&6; }
11609
11610# So? What about this header?
11611case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11612 yes:no: )
11613 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
11614echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
11616echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
11617 ac_header_preproc=yes
11618 ;;
11619 no:yes:* )
11620 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
11621echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
11623echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
11625echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
11627echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
11629echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
11631echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
11632
11633 ;;
11634esac
11635{ echo "$as_me:$LINENO: checking for alsa/version.h" >&5
11636echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; }
11637if test "${ac_cv_header_alsa_version_h+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11639else
11640 ac_cv_header_alsa_version_h=$ac_header_preproc
11641fi
11642{ echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
11643echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; }
11644
11645fi
11646if test $ac_cv_header_alsa_version_h = yes; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011647 ac_pa_use_alsa=1
11648
11649 LIBS="$LIBS -lasound"
11650
11651else
11652 ac_pa_use_alsa=0
11653
11654fi
11655
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011656
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011657 { echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
11658echo "${ECHO_T}Checking sound device backend... unix" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +000011659
11660 ac_pa_use_oss=1
11661
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011662 # Check whether --enable-oss was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011663if test "${enable_oss+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011664 enableval=$enable_oss;
Benny Prijono0b462322008-03-12 22:44:24 +000011665 if test "$enable_oss" = "no"; then
11666 ac_pa_use_oss=0
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011667 { echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&5
11668echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +000011669 fi
11670
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011671fi
11672
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011673 ;;
Benny Prijono1d971622006-09-10 22:27:40 +000011674 esac
11675fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011676
Sauw Ming6e6c2152010-12-14 13:03:10 +000011677
11678if test "$enable_video" = "no"; then
11679 true;
11680else
11681 case $target in
11682 arm-apple-darwin*)
11683 ac_pjmedia_video=iphone_os
11684
Sauw Ming24c39a32011-08-16 05:44:46 +000011685
11686 SAVED_LIBS="$LIBS"
11687 LIBS="-framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
11688 cat >conftest.$ac_ext <<_ACEOF
11689/* confdefs.h. */
11690_ACEOF
11691cat confdefs.h >>conftest.$ac_ext
11692cat >>conftest.$ac_ext <<_ACEOF
11693/* end confdefs.h. */
11694
11695int
11696main ()
11697{
11698
11699 ;
11700 return 0;
11701}
11702_ACEOF
11703rm -f conftest.$ac_objext conftest$ac_exeext
11704if { (ac_try="$ac_link"
11705case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11708esac
11709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_link") 2>conftest.er1
11711 ac_status=$?
11712 grep -v '^ *+' conftest.er1 >conftest.err
11713 rm -f conftest.er1
11714 cat conftest.err >&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } && {
11717 test -z "$ac_c_werror_flag" ||
11718 test ! -s conftest.err
11719 } && test -s conftest$ac_exeext &&
11720 $as_test_x conftest$ac_exeext; then
11721 ac_pjmedia_video_has_ios=yes
11722else
11723 echo "$as_me: failed program was:" >&5
11724sed 's/^/| /' conftest.$ac_ext >&5
11725
11726 ac_pjmedia_video_has_ios=no
11727fi
11728
11729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11730 conftest$ac_exeext conftest.$ac_ext
11731 LIBS="$SAVED_LIBS"
11732 if test "$ac_pjmedia_video_has_ios" = "yes"; then
11733 ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1"
11734 LIBS="$LIBS -framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
11735 { echo "$as_me:$LINENO: result: Checking if AVFoundation framework is available... yes" >&5
11736echo "${ECHO_T}Checking if AVFoundation framework is available... yes" >&6; }
11737 else
11738 { echo "$as_me:$LINENO: result: Checking if AVFoundation framework is available... no" >&5
11739echo "${ECHO_T}Checking if AVFoundation framework is available... no" >&6; }
11740 fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000011741 ;;
11742 *darwin*)
11743 ac_pjmedia_video=mac_os
11744
11745
11746 SAVED_LIBS="$LIBS"
11747 LIBS="-framework QTKit"
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011748 cat >conftest.$ac_ext <<_ACEOF
11749/* confdefs.h. */
11750_ACEOF
11751cat confdefs.h >>conftest.$ac_ext
11752cat >>conftest.$ac_ext <<_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000011753/* end confdefs.h. */
11754
11755int
11756main ()
11757{
11758
11759 ;
11760 return 0;
11761}
11762_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011763rm -f conftest.$ac_objext conftest$ac_exeext
11764if { (ac_try="$ac_link"
11765case "(($ac_try" in
11766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11767 *) ac_try_echo=$ac_try;;
11768esac
11769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11770 (eval "$ac_link") 2>conftest.er1
11771 ac_status=$?
11772 grep -v '^ *+' conftest.er1 >conftest.err
11773 rm -f conftest.er1
11774 cat conftest.err >&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } && {
11777 test -z "$ac_c_werror_flag" ||
11778 test ! -s conftest.err
11779 } && test -s conftest$ac_exeext &&
11780 $as_test_x conftest$ac_exeext; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000011781 ac_pjmedia_video_has_qt=yes
11782else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011783 echo "$as_me: failed program was:" >&5
11784sed 's/^/| /' conftest.$ac_ext >&5
11785
11786 ac_pjmedia_video_has_qt=no
Sauw Ming6e6c2152010-12-14 13:03:10 +000011787fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011788
11789rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11790 conftest$ac_exeext conftest.$ac_ext
Sauw Ming6e6c2152010-12-14 13:03:10 +000011791 LIBS="$SAVED_LIBS"
11792 if test "$ac_pjmedia_video_has_qt" = "yes"; then
11793 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1"
Sauw Ming21bd3fd2011-04-06 11:30:18 +000011794 LIBS="$LIBS -framework QTKit -framework Foundation -framework AppKit -framework QuartzCore -framework OpenGL"
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011795 { echo "$as_me:$LINENO: result: Checking if QTKit framework is available... yes" >&5
11796echo "${ECHO_T}Checking if QTKit framework is available... yes" >&6; }
Sauw Ming6e6c2152010-12-14 13:03:10 +000011797 else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011798 { echo "$as_me:$LINENO: result: Checking if QTKit framework is available... no" >&5
11799echo "${ECHO_T}Checking if QTKit framework is available... no" >&6; }
Sauw Ming6e6c2152010-12-14 13:03:10 +000011800 fi
11801 ;;
11802 esac
11803fi
11804
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011805# Check whether --enable-ext_sound was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011806if test "${enable_ext_sound+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011807 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
Benny Prijonoebb2c332008-07-28 23:40:58 +000011808 ac_pjmedia_snd=external
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011809 { echo "$as_me:$LINENO: result: Checking if external sound is set... yes" >&5
11810echo "${ECHO_T}Checking if external sound is set... yes" >&6; }
Benny Prijonoebb2c332008-07-28 23:40:58 +000011811 fi
11812
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011813fi
Benny Prijonoebb2c332008-07-28 23:40:58 +000011814
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011815
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011816
11817# Check whether --enable-small-filter was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011818if test "${enable_small_filter+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011819 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011820 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011821 { echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
11822echo "${ECHO_T}Checking if small filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011823 fi
11824else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011825 { echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
11826echo "${ECHO_T}Checking if small filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011827fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011828
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011829
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011830
11831# Check whether --enable-large-filter was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011832if test "${enable_large_filter+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011833 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011834 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011835 { echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
11836echo "${ECHO_T}Checking if large filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011837 fi
11838else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011839 { echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
11840echo "${ECHO_T}Checking if large filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011841fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011842
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011843
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011844
11845# Check whether --enable-speex-aec was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011846if test "${enable_speex_aec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011847 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011848 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011849 { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
11850echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011851 fi
11852else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011853 { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
11854echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011855fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011856
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011857
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011858
11859# Check whether --enable-g711-codec was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011860if test "${enable_g711_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011861 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011862 ac_no_g711_codec=1
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011863 cat >>confdefs.h <<\_ACEOF
11864#define PJMEDIA_HAS_G711_CODEC 0
11865_ACEOF
Benny Prijono06d1d0e2007-01-27 18:09:28 +000011866
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011867 { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
11868echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011869 fi
11870else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011871 { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
11872echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011873fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011874
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011875
11876
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011877
11878# Check whether --enable-l16-codec was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011879if test "${enable_l16_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011880 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011881 ac_no_l16_codec=1
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011882 cat >>confdefs.h <<\_ACEOF
11883#define PJMEDIA_HAS_L16_CODEC 0
11884_ACEOF
Benny Prijono06d1d0e2007-01-27 18:09:28 +000011885
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011886 { echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
11887echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011888 fi
11889else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011890 { echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
11891echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011892fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011893
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011894
11895
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011896
11897# Check whether --enable-gsm-codec was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011898if test "${enable_gsm_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011899 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011900 ac_no_gsm_codec=1
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011901 cat >>confdefs.h <<\_ACEOF
11902#define PJMEDIA_HAS_GSM_CODEC 0
11903_ACEOF
Benny Prijono06d1d0e2007-01-27 18:09:28 +000011904
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011905 { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
11906echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011907 fi
11908else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011909 { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
11910echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011911fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011912
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011913
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011914
11915# Check whether --enable-g722-codec was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011916if test "${enable_g722_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011917 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
Benny Prijono71f657d2008-03-17 14:24:21 +000011918 ac_no_g722_codec=1
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011919 cat >>confdefs.h <<\_ACEOF
11920#define PJMEDIA_HAS_G722_CODEC 0
11921_ACEOF
Benny Prijono71f657d2008-03-17 14:24:21 +000011922
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011923 { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...yes" >&5
11924echo "${ECHO_T}Checking if G.722 codec is disabled...yes" >&6; }
Benny Prijono71f657d2008-03-17 14:24:21 +000011925 fi
11926else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011927 { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...no" >&5
11928echo "${ECHO_T}Checking if G.722 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011929fi
Benny Prijono71f657d2008-03-17 14:24:21 +000011930
11931
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011932
11933# Check whether --enable-g7221-codec was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011934if test "${enable_g7221_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011935 enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
11936 ac_no_g7221_codec=1
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011937 cat >>confdefs.h <<\_ACEOF
11938#define PJMEDIA_HAS_G7221_CODEC 0
11939_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011940
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011941 { echo "$as_me:$LINENO: result: Checking if G.722.1 codec is disabled...yes" >&5
11942echo "${ECHO_T}Checking if G.722.1 codec is disabled...yes" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011943 fi
11944else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011945 { echo "$as_me:$LINENO: result: Checking if G.722.1 codec is disabled...no" >&5
11946echo "${ECHO_T}Checking if G.722.1 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011947fi
11948
11949
11950
11951# Check whether --enable-speex-codec was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011952if test "${enable_speex_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011953 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011954 ac_no_speex_codec=1
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011955 cat >>confdefs.h <<\_ACEOF
11956#define PJMEDIA_HAS_SPEEX_CODEC 0
11957_ACEOF
Benny Prijono06d1d0e2007-01-27 18:09:28 +000011958
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011959 { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
11960echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011961 fi
11962else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011963 { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
11964echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011965fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011966
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011967
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011968
11969# Check whether --enable-ilbc-codec was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011970if test "${enable_ilbc_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011971 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011972 ac_no_ilbc_codec=1
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011973 cat >>confdefs.h <<\_ACEOF
11974#define PJMEDIA_HAS_ILBC_CODEC 0
11975_ACEOF
Benny Prijono06d1d0e2007-01-27 18:09:28 +000011976
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011977 { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
11978echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011979 fi
11980else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011981 { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
11982echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011983fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011984
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011985
11986# Check whether --enable-libsamplerate was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011987if test "${enable_libsamplerate+set}" = set; then
11988 enableval=$enable_libsamplerate;
11989{ echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5
11990echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6; }
11991if test "${ac_cv_lib_samplerate_src_new+set}" = set; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono550a1a62007-10-16 08:54:00 +000011993else
11994 ac_check_lib_save_LIBS=$LIBS
11995LIBS="-lsamplerate $LIBS"
Sauw Mingd8aa67c2011-08-09 04:31:41 +000011996cat >conftest.$ac_ext <<_ACEOF
11997/* confdefs.h. */
11998_ACEOF
11999cat confdefs.h >>conftest.$ac_ext
12000cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono550a1a62007-10-16 08:54:00 +000012001/* end confdefs.h. */
12002
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012003/* Override any GCC internal prototype to avoid an error.
12004 Use char because int might match the return type of a GCC
12005 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +000012006#ifdef __cplusplus
12007extern "C"
12008#endif
Benny Prijono550a1a62007-10-16 08:54:00 +000012009char src_new ();
12010int
12011main ()
12012{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012013return src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +000012014 ;
12015 return 0;
12016}
12017_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012018rm -f conftest.$ac_objext conftest$ac_exeext
12019if { (ac_try="$ac_link"
12020case "(($ac_try" in
12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022 *) ac_try_echo=$ac_try;;
12023esac
12024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025 (eval "$ac_link") 2>conftest.er1
12026 ac_status=$?
12027 grep -v '^ *+' conftest.er1 >conftest.err
12028 rm -f conftest.er1
12029 cat conftest.err >&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } && {
12032 test -z "$ac_c_werror_flag" ||
12033 test ! -s conftest.err
12034 } && test -s conftest$ac_exeext &&
12035 $as_test_x conftest$ac_exeext; then
Benny Prijono550a1a62007-10-16 08:54:00 +000012036 ac_cv_lib_samplerate_src_new=yes
12037else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012038 echo "$as_me: failed program was:" >&5
12039sed 's/^/| /' conftest.$ac_ext >&5
12040
12041 ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +000012042fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012043
12044rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12045 conftest$ac_exeext conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +000012046LIBS=$ac_check_lib_save_LIBS
12047fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012048{ echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5
12049echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6; }
12050if test $ac_cv_lib_samplerate_src_new = yes; then
Benny Prijono550a1a62007-10-16 08:54:00 +000012051 cat >>confdefs.h <<_ACEOF
12052#define HAVE_LIBSAMPLERATE 1
12053_ACEOF
12054
12055 LIBS="-lsamplerate $LIBS"
12056
12057fi
12058
12059else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012060 { echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5
12061echo "${ECHO_T}Skipping libsamplerate detection" >&6; }
Benny Prijono5b0af632011-07-20 03:16:25 +000012062
12063fi
12064
12065
12066
12067# Check whether --with-sdl was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012068if test "${with_sdl+set}" = set; then
Benny Prijono5b0af632011-07-20 03:16:25 +000012069 withval=$with_sdl;
12070else
12071 with_sdl=no
Benny Prijono550a1a62007-10-16 08:54:00 +000012072
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012073fi
Benny Prijono0822c192008-08-21 20:59:58 +000012074
12075
Benny Prijonoc45d9512010-12-10 11:04:30 +000012076# Check whether --enable-sdl was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012077if test "${enable_sdl+set}" = set; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012078 enableval=$enable_sdl;
12079 if test "$enable_sdl" = "no"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012080 { echo "$as_me:$LINENO: result: Checking if SDL is disabled... yes" >&5
12081echo "${ECHO_T}Checking if SDL is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +000012082 fi
12083
12084else
12085
Benny Prijono5b0af632011-07-20 03:16:25 +000012086 SDL_CONFIG="sdl-config"
12087 if test "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then
12088 SDL_CONFIG=$with_sdl/bin/sdl-config
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012089 { echo "$as_me:$LINENO: result: Using SDL prefix... $with_sdl" >&5
12090echo "${ECHO_T}Using SDL prefix... $with_sdl" >&6; }
Benny Prijono5b0af632011-07-20 03:16:25 +000012091 fi
12092
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012093 { echo "$as_me:$LINENO: checking SDL availability.." >&5
12094echo $ECHO_N "checking SDL availability..... $ECHO_C" >&6; }
Benny Prijono5b0af632011-07-20 03:16:25 +000012095 if $SDL_CONFIG --version; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012096
12097
Benny Prijono5b0af632011-07-20 03:16:25 +000012098 ac_sdl_cflags=`$SDL_CONFIG --cflags`
Benny Prijonoc45d9512010-12-10 11:04:30 +000012099 ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags"
Benny Prijono5b0af632011-07-20 03:16:25 +000012100 ac_sdl_ldflags=`$SDL_CONFIG --libs`
Benny Prijono69b1f822010-12-10 11:33:01 +000012101 LIBS="$LIBS $ac_sdl_ldflags"
Benny Prijonoc45d9512010-12-10 11:04:30 +000012102 fi
Benny Prijono550a1a62007-10-16 08:54:00 +000012103
Benny Prijono0822c192008-08-21 20:59:58 +000012104fi
12105
12106
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012107
Benny Prijonoc45d9512010-12-10 11:04:30 +000012108# Check whether --enable-ffmpeg was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012109if test "${enable_ffmpeg+set}" = set; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012110 enableval=$enable_ffmpeg;
12111 ac_has_ffmpeg=0
12112
12113 if test "$enable_ffmpeg" = "no"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012114 { echo "$as_me:$LINENO: result: Checking if ffmpeg is disabled... yes" >&5
12115echo "${ECHO_T}Checking if ffmpeg is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +000012116 fi
12117
12118else
12119
12120
12121
12122
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +000012123 FFMPEG_PREFIX=""
12124 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then
12125 FFMPEG_PREFIX=$with_ffmpeg
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012126 { echo "$as_me:$LINENO: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5
12127echo "${ECHO_T}Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; }
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +000012128 LIBS="-L$FFMPEG_PREFIX/lib $LIBS"
Sauw Ming01095d82011-07-14 08:46:19 +000012129 LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS"
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +000012130 CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS"
12131 fi
12132
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012133 { echo "$as_me:$LINENO: checking for avdevice_version in -lavdevice" >&5
12134echo $ECHO_N "checking for avdevice_version in -lavdevice... $ECHO_C" >&6; }
12135if test "${ac_cv_lib_avdevice_avdevice_version+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +000012137else
12138 ac_check_lib_save_LIBS=$LIBS
12139LIBS="-lavdevice $LIBS"
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012140cat >conftest.$ac_ext <<_ACEOF
12141/* confdefs.h. */
12142_ACEOF
12143cat confdefs.h >>conftest.$ac_ext
12144cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc45d9512010-12-10 11:04:30 +000012145/* end confdefs.h. */
12146
12147/* Override any GCC internal prototype to avoid an error.
12148 Use char because int might match the return type of a GCC
12149 builtin and then its argument prototype would still apply. */
12150#ifdef __cplusplus
12151extern "C"
12152#endif
12153char avdevice_version ();
12154int
12155main ()
12156{
12157return avdevice_version ();
12158 ;
12159 return 0;
12160}
12161_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012162rm -f conftest.$ac_objext conftest$ac_exeext
12163if { (ac_try="$ac_link"
12164case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12167esac
12168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_link") 2>conftest.er1
12170 ac_status=$?
12171 grep -v '^ *+' conftest.er1 >conftest.err
12172 rm -f conftest.er1
12173 cat conftest.err >&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } && {
12176 test -z "$ac_c_werror_flag" ||
12177 test ! -s conftest.err
12178 } && test -s conftest$ac_exeext &&
12179 $as_test_x conftest$ac_exeext; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012180 ac_cv_lib_avdevice_avdevice_version=yes
12181else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012182 echo "$as_me: failed program was:" >&5
12183sed 's/^/| /' conftest.$ac_ext >&5
12184
12185 ac_cv_lib_avdevice_avdevice_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +000012186fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012187
12188rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12189 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +000012190LIBS=$ac_check_lib_save_LIBS
12191fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012192{ echo "$as_me:$LINENO: result: $ac_cv_lib_avdevice_avdevice_version" >&5
12193echo "${ECHO_T}$ac_cv_lib_avdevice_avdevice_version" >&6; }
12194if test $ac_cv_lib_avdevice_avdevice_version = yes; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012195 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
12196 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice"
12197
12198
12199fi
12200
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012201 { echo "$as_me:$LINENO: checking for av_register_all in -lavformat" >&5
12202echo $ECHO_N "checking for av_register_all in -lavformat... $ECHO_C" >&6; }
12203if test "${ac_cv_lib_avformat_av_register_all+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +000012205else
12206 ac_check_lib_save_LIBS=$LIBS
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012207LIBS="-lavformat -lavcodec -lavutil
12208 $LIBS"
12209cat >conftest.$ac_ext <<_ACEOF
12210/* confdefs.h. */
12211_ACEOF
12212cat confdefs.h >>conftest.$ac_ext
12213cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc45d9512010-12-10 11:04:30 +000012214/* end confdefs.h. */
12215
12216/* Override any GCC internal prototype to avoid an error.
12217 Use char because int might match the return type of a GCC
12218 builtin and then its argument prototype would still apply. */
12219#ifdef __cplusplus
12220extern "C"
12221#endif
12222char av_register_all ();
12223int
12224main ()
12225{
12226return av_register_all ();
12227 ;
12228 return 0;
12229}
12230_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012231rm -f conftest.$ac_objext conftest$ac_exeext
12232if { (ac_try="$ac_link"
12233case "(($ac_try" in
12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235 *) ac_try_echo=$ac_try;;
12236esac
12237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238 (eval "$ac_link") 2>conftest.er1
12239 ac_status=$?
12240 grep -v '^ *+' conftest.er1 >conftest.err
12241 rm -f conftest.er1
12242 cat conftest.err >&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } && {
12245 test -z "$ac_c_werror_flag" ||
12246 test ! -s conftest.err
12247 } && test -s conftest$ac_exeext &&
12248 $as_test_x conftest$ac_exeext; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012249 ac_cv_lib_avformat_av_register_all=yes
12250else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012251 echo "$as_me: failed program was:" >&5
12252sed 's/^/| /' conftest.$ac_ext >&5
12253
12254 ac_cv_lib_avformat_av_register_all=no
Benny Prijonoc45d9512010-12-10 11:04:30 +000012255fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012256
12257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12258 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +000012259LIBS=$ac_check_lib_save_LIBS
12260fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012261{ echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_av_register_all" >&5
12262echo "${ECHO_T}$ac_cv_lib_avformat_av_register_all" >&6; }
12263if test $ac_cv_lib_avformat_av_register_all = yes; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012264 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
12265 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat"
12266
Benny Prijonoc45d9512010-12-10 11:04:30 +000012267fi
12268
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012269 { echo "$as_me:$LINENO: checking for avcodec_init in -lavcodec" >&5
12270echo $ECHO_N "checking for avcodec_init in -lavcodec... $ECHO_C" >&6; }
12271if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +000012273else
12274 ac_check_lib_save_LIBS=$LIBS
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012275LIBS="-lavcodec -lavutil
12276 $LIBS"
12277cat >conftest.$ac_ext <<_ACEOF
12278/* confdefs.h. */
12279_ACEOF
12280cat confdefs.h >>conftest.$ac_ext
12281cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc45d9512010-12-10 11:04:30 +000012282/* end confdefs.h. */
12283
12284/* Override any GCC internal prototype to avoid an error.
12285 Use char because int might match the return type of a GCC
12286 builtin and then its argument prototype would still apply. */
12287#ifdef __cplusplus
12288extern "C"
12289#endif
12290char avcodec_init ();
12291int
12292main ()
12293{
12294return avcodec_init ();
12295 ;
12296 return 0;
12297}
12298_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012299rm -f conftest.$ac_objext conftest$ac_exeext
12300if { (ac_try="$ac_link"
12301case "(($ac_try" in
12302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303 *) ac_try_echo=$ac_try;;
12304esac
12305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306 (eval "$ac_link") 2>conftest.er1
12307 ac_status=$?
12308 grep -v '^ *+' conftest.er1 >conftest.err
12309 rm -f conftest.er1
12310 cat conftest.err >&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); } && {
12313 test -z "$ac_c_werror_flag" ||
12314 test ! -s conftest.err
12315 } && test -s conftest$ac_exeext &&
12316 $as_test_x conftest$ac_exeext; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012317 ac_cv_lib_avcodec_avcodec_init=yes
12318else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012319 echo "$as_me: failed program was:" >&5
12320sed 's/^/| /' conftest.$ac_ext >&5
12321
12322 ac_cv_lib_avcodec_avcodec_init=no
Benny Prijonoc45d9512010-12-10 11:04:30 +000012323fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012324
12325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12326 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +000012327LIBS=$ac_check_lib_save_LIBS
12328fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012329{ echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_init" >&5
12330echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_init" >&6; }
12331if test $ac_cv_lib_avcodec_avcodec_init = yes; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012332 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
12333 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec"
12334
Benny Prijonoc45d9512010-12-10 11:04:30 +000012335fi
12336
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012337 { echo "$as_me:$LINENO: checking for sws_scale in -lswscale" >&5
12338echo $ECHO_N "checking for sws_scale in -lswscale... $ECHO_C" >&6; }
12339if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +000012341else
12342 ac_check_lib_save_LIBS=$LIBS
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012343LIBS="-lswscale -lavutil
12344 $LIBS"
12345cat >conftest.$ac_ext <<_ACEOF
12346/* confdefs.h. */
12347_ACEOF
12348cat confdefs.h >>conftest.$ac_ext
12349cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc45d9512010-12-10 11:04:30 +000012350/* end confdefs.h. */
12351
12352/* Override any GCC internal prototype to avoid an error.
12353 Use char because int might match the return type of a GCC
12354 builtin and then its argument prototype would still apply. */
12355#ifdef __cplusplus
12356extern "C"
12357#endif
12358char sws_scale ();
12359int
12360main ()
12361{
12362return sws_scale ();
12363 ;
12364 return 0;
12365}
12366_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012367rm -f conftest.$ac_objext conftest$ac_exeext
12368if { (ac_try="$ac_link"
12369case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12372esac
12373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_link") 2>conftest.er1
12375 ac_status=$?
12376 grep -v '^ *+' conftest.er1 >conftest.err
12377 rm -f conftest.er1
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } && {
12381 test -z "$ac_c_werror_flag" ||
12382 test ! -s conftest.err
12383 } && test -s conftest$ac_exeext &&
12384 $as_test_x conftest$ac_exeext; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012385 ac_cv_lib_swscale_sws_scale=yes
12386else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012387 echo "$as_me: failed program was:" >&5
12388sed 's/^/| /' conftest.$ac_ext >&5
12389
12390 ac_cv_lib_swscale_sws_scale=no
Benny Prijonoc45d9512010-12-10 11:04:30 +000012391fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012392
12393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12394 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +000012395LIBS=$ac_check_lib_save_LIBS
12396fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012397{ echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_sws_scale" >&5
12398echo "${ECHO_T}$ac_cv_lib_swscale_sws_scale" >&6; }
12399if test $ac_cv_lib_swscale_sws_scale = yes; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012400 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
12401 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale"
12402
Benny Prijonoc45d9512010-12-10 11:04:30 +000012403fi
12404
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012405 { echo "$as_me:$LINENO: checking for av_malloc in -lavutil" >&5
12406echo $ECHO_N "checking for av_malloc in -lavutil... $ECHO_C" >&6; }
12407if test "${ac_cv_lib_avutil_av_malloc+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +000012409else
12410 ac_check_lib_save_LIBS=$LIBS
12411LIBS="-lavutil $LIBS"
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012412cat >conftest.$ac_ext <<_ACEOF
12413/* confdefs.h. */
12414_ACEOF
12415cat confdefs.h >>conftest.$ac_ext
12416cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc45d9512010-12-10 11:04:30 +000012417/* end confdefs.h. */
12418
12419/* Override any GCC internal prototype to avoid an error.
12420 Use char because int might match the return type of a GCC
12421 builtin and then its argument prototype would still apply. */
12422#ifdef __cplusplus
12423extern "C"
12424#endif
12425char av_malloc ();
12426int
12427main ()
12428{
12429return av_malloc ();
12430 ;
12431 return 0;
12432}
12433_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012434rm -f conftest.$ac_objext conftest$ac_exeext
12435if { (ac_try="$ac_link"
12436case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12439esac
12440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_link") 2>conftest.er1
12442 ac_status=$?
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } && {
12448 test -z "$ac_c_werror_flag" ||
12449 test ! -s conftest.err
12450 } && test -s conftest$ac_exeext &&
12451 $as_test_x conftest$ac_exeext; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012452 ac_cv_lib_avutil_av_malloc=yes
12453else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012454 echo "$as_me: failed program was:" >&5
12455sed 's/^/| /' conftest.$ac_ext >&5
12456
12457 ac_cv_lib_avutil_av_malloc=no
Benny Prijonoc45d9512010-12-10 11:04:30 +000012458fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012459
12460rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12461 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +000012462LIBS=$ac_check_lib_save_LIBS
12463fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012464{ echo "$as_me:$LINENO: result: $ac_cv_lib_avutil_av_malloc" >&5
12465echo "${ECHO_T}$ac_cv_lib_avutil_av_malloc" >&6; }
12466if test $ac_cv_lib_avutil_av_malloc = yes; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012467 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
12468 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil"
12469
12470
12471fi
12472
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012473 { echo "$as_me:$LINENO: checking for avcore_version in -lavcore" >&5
12474echo $ECHO_N "checking for avcore_version in -lavcore... $ECHO_C" >&6; }
12475if test "${ac_cv_lib_avcore_avcore_version+set}" = set; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +000012477else
12478 ac_check_lib_save_LIBS=$LIBS
12479LIBS="-lavcore $LIBS"
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012480cat >conftest.$ac_ext <<_ACEOF
12481/* confdefs.h. */
12482_ACEOF
12483cat confdefs.h >>conftest.$ac_ext
12484cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc45d9512010-12-10 11:04:30 +000012485/* end confdefs.h. */
12486
12487/* Override any GCC internal prototype to avoid an error.
12488 Use char because int might match the return type of a GCC
12489 builtin and then its argument prototype would still apply. */
12490#ifdef __cplusplus
12491extern "C"
12492#endif
12493char avcore_version ();
12494int
12495main ()
12496{
12497return avcore_version ();
12498 ;
12499 return 0;
12500}
12501_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012502rm -f conftest.$ac_objext conftest$ac_exeext
12503if { (ac_try="$ac_link"
12504case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12507esac
12508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509 (eval "$ac_link") 2>conftest.er1
12510 ac_status=$?
12511 grep -v '^ *+' conftest.er1 >conftest.err
12512 rm -f conftest.er1
12513 cat conftest.err >&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } && {
12516 test -z "$ac_c_werror_flag" ||
12517 test ! -s conftest.err
12518 } && test -s conftest$ac_exeext &&
12519 $as_test_x conftest$ac_exeext; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012520 ac_cv_lib_avcore_avcore_version=yes
12521else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012522 echo "$as_me: failed program was:" >&5
12523sed 's/^/| /' conftest.$ac_ext >&5
12524
12525 ac_cv_lib_avcore_avcore_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +000012526fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012527
12528rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12529 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +000012530LIBS=$ac_check_lib_save_LIBS
12531fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012532{ echo "$as_me:$LINENO: result: $ac_cv_lib_avcore_avcore_version" >&5
12533echo "${ECHO_T}$ac_cv_lib_avcore_avcore_version" >&6; }
12534if test $ac_cv_lib_avcore_avcore_version = yes; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012535 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
12536 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore"
12537
12538
12539fi
12540
Benny Prijono69b1f822010-12-10 11:33:01 +000012541 LIBS="$LIBS $ac_ffmpeg_ldflags"
Benny Prijonoc45d9512010-12-10 11:04:30 +000012542
12543
12544fi
12545
12546
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +000012547
12548# Check whether --with-ffmpeg was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012549if test "${with_ffmpeg+set}" = set; then
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +000012550 withval=$with_ffmpeg;
12551else
12552 with_ffmpeg=no
12553
12554fi
12555
12556
12557
Benny Prijonoc45d9512010-12-10 11:04:30 +000012558# Check whether --enable-v4l2 was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012559if test "${enable_v4l2+set}" = set; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012560 enableval=$enable_v4l2;
12561 if test "$enable_v4l2" = "no"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012562 { echo "$as_me:$LINENO: result: Checking if V4L2 is disabled... yes" >&5
12563echo "${ECHO_T}Checking if V4L2 is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +000012564 fi
12565
12566else
12567
12568
12569
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012570 { echo "$as_me:$LINENO: checking for v4l2_open in -lv4l2" >&5
12571echo $ECHO_N "checking for v4l2_open in -lv4l2... $ECHO_C" >&6; }
12572if test "${ac_cv_lib_v4l2_v4l2_open+set}" = set; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +000012574else
12575 ac_check_lib_save_LIBS=$LIBS
12576LIBS="-lv4l2 $LIBS"
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012577cat >conftest.$ac_ext <<_ACEOF
12578/* confdefs.h. */
12579_ACEOF
12580cat confdefs.h >>conftest.$ac_ext
12581cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc45d9512010-12-10 11:04:30 +000012582/* end confdefs.h. */
12583
12584/* Override any GCC internal prototype to avoid an error.
12585 Use char because int might match the return type of a GCC
12586 builtin and then its argument prototype would still apply. */
12587#ifdef __cplusplus
12588extern "C"
12589#endif
12590char v4l2_open ();
12591int
12592main ()
12593{
12594return v4l2_open ();
12595 ;
12596 return 0;
12597}
12598_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012599rm -f conftest.$ac_objext conftest$ac_exeext
12600if { (ac_try="$ac_link"
12601case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12604esac
12605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_link") 2>conftest.er1
12607 ac_status=$?
12608 grep -v '^ *+' conftest.er1 >conftest.err
12609 rm -f conftest.er1
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } && {
12613 test -z "$ac_c_werror_flag" ||
12614 test ! -s conftest.err
12615 } && test -s conftest$ac_exeext &&
12616 $as_test_x conftest$ac_exeext; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012617 ac_cv_lib_v4l2_v4l2_open=yes
12618else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012619 echo "$as_me: failed program was:" >&5
12620sed 's/^/| /' conftest.$ac_ext >&5
12621
12622 ac_cv_lib_v4l2_v4l2_open=no
Benny Prijonoc45d9512010-12-10 11:04:30 +000012623fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012624
12625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12626 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +000012627LIBS=$ac_check_lib_save_LIBS
12628fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012629{ echo "$as_me:$LINENO: result: $ac_cv_lib_v4l2_v4l2_open" >&5
12630echo "${ECHO_T}$ac_cv_lib_v4l2_v4l2_open" >&6; }
12631if test $ac_cv_lib_v4l2_v4l2_open = yes; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012632 ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1"
12633 ac_v4l2_ldflags="-lv4l2"
Benny Prijono69b1f822010-12-10 11:33:01 +000012634 LIBS="$LIBS -lv4l2"
Benny Prijonoc45d9512010-12-10 11:04:30 +000012635
12636
12637fi
12638
12639
12640fi
12641
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012642
12643# Check whether --enable-ipp was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012644if test "${enable_ipp+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012645 enableval=$enable_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +000012646else
12647 enable_ipp=no
12648
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012649fi
Benny Prijono0822c192008-08-21 20:59:58 +000012650
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012651
Benny Prijono3965f192010-02-10 18:46:05 +000012652
12653# Check whether --with-ipp was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012654if test "${with_ipp+set}" = set; then
Benny Prijono3965f192010-02-10 18:46:05 +000012655 withval=$with_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +000012656else
12657 with_ipp=no
12658
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012659fi
Benny Prijono0822c192008-08-21 20:59:58 +000012660
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012661
Benny Prijono3965f192010-02-10 18:46:05 +000012662
12663# Check whether --with-ipp-samples was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012664if test "${with_ipp_samples+set}" = set; then
Benny Prijono3965f192010-02-10 18:46:05 +000012665 withval=$with_ipp_samples;
Benny Prijono0822c192008-08-21 20:59:58 +000012666else
12667 with_ipp_samples=no
12668
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012669fi
12670
Benny Prijono0822c192008-08-21 20:59:58 +000012671
Benny Prijono3965f192010-02-10 18:46:05 +000012672
12673# Check whether --with-ipp-arch was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012674if test "${with_ipp_arch+set}" = set; then
Benny Prijono3965f192010-02-10 18:46:05 +000012675 withval=$with_ipp_arch;
12676else
12677 with_ipp_arch=no
12678
12679fi
12680
12681
Benny Prijono0822c192008-08-21 20:59:58 +000012682if test "x$enable_ipp" != "xno"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012683 { echo "$as_me:$LINENO: checking Intel IPP location" >&5
12684echo $ECHO_N "checking Intel IPP location... $ECHO_C" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012685
12686 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012687 { echo "$as_me:$LINENO: result: $with_ipp" >&5
12688echo "${ECHO_T}$with_ipp" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012689 IPPROOT=$with_ipp
12690 elif test "x$IPPROOT" = "x"; then
12691 if test -d /opt/intel/ipp; then
12692 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012693 { echo "$as_me:$LINENO: result: autodetected in $IPPROOT" >&5
12694echo "${ECHO_T}autodetected in $IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012695 fi
12696 else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012697 { echo "$as_me:$LINENO: result: $IPPROOT" >&5
12698echo "${ECHO_T}$IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012699 fi
12700
Benny Prijono3965f192010-02-10 18:46:05 +000012701 if test "x$with_ipp_arch" != "xno"; then
Benny Prijono896be292010-08-17 12:16:46 +000012702 IPP_SUFFIX=$with_ipp_arch
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012703 { echo "$as_me:$LINENO: result: IPP arch suffix is set to $IPP_SUFFIX" >&5
12704echo "${ECHO_T}IPP arch suffix is set to $IPP_SUFFIX" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +000012705 else
12706 IPP_SUFFIX=""
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012707 { echo "$as_me:$LINENO: result: IPP arch suffix is set to empty" >&5
12708echo "${ECHO_T}IPP arch suffix is set to empty" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +000012709 fi
12710
Benny Prijono0822c192008-08-21 20:59:58 +000012711 if test x$IPPROOT = x; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012712 { { 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
12713echo "$as_me: error: the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" >&2;}
12714 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012715 elif test ! -d $IPPROOT; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012716 { { echo "$as_me:$LINENO: error: not found" >&5
12717echo "$as_me: error: not found" >&2;}
12718 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012719 elif test ! -d $IPPROOT/include; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012720 { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5
12721echo "$as_me: error: directory doesn't seem to be valid" >&2;}
12722 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012723 else
12724 # IPP directory looks okay.
12725 # Remove trailing backslash
Benny Prijono3965f192010-02-10 18:46:05 +000012726 IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
Benny Prijono0822c192008-08-21 20:59:58 +000012727
12728 SAVED_CFLAGS="$CFLAGS"
12729 SAVED_LDFLAGS="$LDFLAGS"
12730 SAVED_LIBS="$LIBS"
12731
12732 IPP_CFLAGS="-I$IPPROOT/include"
Benny Prijonocd62c4e2011-03-18 08:33:29 +000012733 IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
Benny Prijono46bd0842010-02-12 14:12:41 +000012734
Benny Prijonocd62c4e2011-03-18 08:33:29 +000012735#
Benny Prijono46bd0842010-02-12 14:12:41 +000012736 # Some differences between Mac OS X and Linux
12737 case $target in
12738 *darwin* )
12739 IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
12740 ;;
12741 *)
Benny Prijonocd62c4e2011-03-18 08:33:29 +000012742 # Find out where the libraries live.
12743 IPP7_ARCH=""
12744 if test -d $IPPROOT/lib/intel64; then
12745 IPP7_ARCH="intel64"
12746 elif test -d $IPPROOT/lib/ia32; then
12747 IPP7_ARCH="ia32"
12748 elif test -d $IPPROOT/lib/mic; then
12749 IPP7_ARCH="mic"
12750 fi
12751
12752 if test -z "$IPP7_ARCH"; then
12753 # IPP6 (and possibly below)
12754 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
12755 IPP_LIBS="$IPP_LIBS -lippsr${IPP_SUFFIX} -lguide"
12756 else
12757 # IPP7
12758 if ! test -d $IPPROOT/../compiler; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012759 { { echo "$as_me:$LINENO: error: Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" >&5
12760echo "$as_me: error: Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" >&2;}
12761 { (exit 1); exit 1; }; }
Benny Prijonocd62c4e2011-03-18 08:33:29 +000012762 fi
12763 IPP_CFLAGS="$IPP_CFLAGS"
12764 IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH"
12765 IPP_LIBS="$IPP_LIBS -liomp5"
12766 fi
Benny Prijono46bd0842010-02-12 14:12:41 +000012767 ;;
12768 esac
12769
Benny Prijono0822c192008-08-21 20:59:58 +000012770 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
Benny Prijono46bd0842010-02-12 14:12:41 +000012771 #Static:
Benny Prijono0822c192008-08-21 20:59:58 +000012772 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
12773
12774 CFLAGS="$CFLAGS $IPP_CFLAGS"
12775 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
12776 LIBS="$IPP_LIBS $LIBS"
12777
12778
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012779 { echo "$as_me:$LINENO: checking Intel IPP usability" >&5
12780echo $ECHO_N "checking Intel IPP usability... $ECHO_C" >&6; }
12781 cat >conftest.$ac_ext <<_ACEOF
12782/* confdefs.h. */
12783_ACEOF
12784cat confdefs.h >>conftest.$ac_ext
12785cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +000012786/* end confdefs.h. */
12787#include <ippcore.h>
12788
12789int
12790main ()
12791{
12792ippStaticInit();
12793 ;
12794 return 0;
12795}
12796_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012797rm -f conftest.$ac_objext conftest$ac_exeext
12798if { (ac_try="$ac_link"
12799case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12802esac
12803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804 (eval "$ac_link") 2>conftest.er1
12805 ac_status=$?
12806 grep -v '^ *+' conftest.er1 >conftest.err
12807 rm -f conftest.er1
12808 cat conftest.err >&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } && {
12811 test -z "$ac_c_werror_flag" ||
12812 test ! -s conftest.err
12813 } && test -s conftest$ac_exeext &&
12814 $as_test_x conftest$ac_exeext; then
12815 { echo "$as_me:$LINENO: result: ok" >&5
12816echo "${ECHO_T}ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012817else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012818 echo "$as_me: failed program was:" >&5
12819sed 's/^/| /' conftest.$ac_ext >&5
12820
12821 { { echo "$as_me:$LINENO: error: Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly
12822See \`config.log' for more details." >&5
12823echo "$as_me: error: Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly
12824See \`config.log' for more details." >&2;}
12825 { (exit run with --help for more info); exit run with --help for more info; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012826fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012827
12828rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12829 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +000012830
12831 CFLAGS="$SAVED_CFLAGS"
12832 LDFLAGS="$SAVED_LDFLAGS"
12833 LIBS="$SAVED_LIBS"
12834 fi
12835
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012836 { echo "$as_me:$LINENO: checking Intel IPP samples location" >&5
12837echo $ECHO_N "checking Intel IPP samples location... $ECHO_C" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012838
12839 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012840 { echo "$as_me:$LINENO: result: $with_ipp_samples" >&5
12841echo "${ECHO_T}$with_ipp_samples" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012842 IPPSAMPLES=$with_ipp_samples
12843 elif test "x$IPPSAMPLES" = "x"; then
12844 if test -d /opt/intel/ipp-samples; then
12845 IPPSAMPLES=/opt/intel/ipp-samples
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012846 { echo "$as_me:$LINENO: result: autodetected in $IPPSAMPLES" >&5
12847echo "${ECHO_T}autodetected in $IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012848 fi
12849 else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012850 { echo "$as_me:$LINENO: result: $IPPSAMPLES" >&5
12851echo "${ECHO_T}$IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012852 fi
12853
12854 if test x$IPPSAMPLES = x; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012855 { { 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
12856echo "$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;}
12857 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012858 elif test ! -d $IPPSAMPLES; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012859 { { echo "$as_me:$LINENO: error: not found" >&5
12860echo "$as_me: error: not found" >&2;}
12861 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012862 elif test ! -d $IPPSAMPLES/speech-codecs; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012863 { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5
12864echo "$as_me: error: directory doesn't seem to be valid" >&2;}
12865 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012866 else
12867 # Remove trailing backslash
12868 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
12869
Benny Prijono3965f192010-02-10 18:46:05 +000012870 # Guess the libusc.a/libspeech.a build location
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012871 { echo "$as_me:$LINENO: checking Intel IPP USC build location" >&5
12872echo $ECHO_N "checking Intel IPP USC build location... $ECHO_C" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +000012873 if test -d $IPPSAMPLES/speech-codecs/bin; then
12874 IPPVER=5
12875 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
12876 elif test -d $IPPSAMPLES/speech-codecs/_bin; then
12877 IPPVER=6
Benny Prijono46bd0842010-02-12 14:12:41 +000012878 if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
12879 # gcc compiler
12880 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
12881 elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
12882 # icc compiler
12883 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
12884 else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012885 { { echo "$as_me:$LINENO: error: Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
12886See \`config.log' for more details." >&5
12887echo "$as_me: error: Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
12888See \`config.log' for more details." >&2;}
12889 { (exit 1); exit 1; }; }
Benny Prijono46bd0842010-02-12 14:12:41 +000012890 fi
Benny Prijono3965f192010-02-10 18:46:05 +000012891 else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012892 { { 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?
12893See \`config.log' for more details." >&5
12894echo "$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?
12895See \`config.log' for more details." >&2;}
12896 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012897 fi
Benny Prijono3965f192010-02-10 18:46:05 +000012898
12899 # Test the directory
12900 if test ! -d $IPPSAMP_DIR; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012901 { { echo "$as_me:$LINENO: error: There's something wrong with this script, directory $IPPSAMP_DIR does not exist
12902See \`config.log' for more details." >&5
12903echo "$as_me: error: There's something wrong with this script, directory $IPPSAMP_DIR does not exist
12904See \`config.log' for more details." >&2;}
12905 { (exit 1); exit 1; }; }
Benny Prijono3965f192010-02-10 18:46:05 +000012906 exit 1;
12907 fi
12908
12909 if test "x$IPPVER" = "x5"; then
12910 IPPSAMP_LIBS="libusc.a"
12911 IPPSAMP_LDLIBS="-lusc"
12912 elif test "x$IPPVER" = "x6"; then
12913 IPPSAMP_LIBS="libspeech.a"
12914 IPPSAMP_LDLIBS="-lspeech"
12915 else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012916 { { echo "$as_me:$LINENO: error: bug in this script: unsupported IPP version
12917See \`config.log' for more details." >&5
12918echo "$as_me: error: bug in this script: unsupported IPP version
12919See \`config.log' for more details." >&2;}
12920 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012921 fi
Benny Prijono3965f192010-02-10 18:46:05 +000012922
12923 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012924 { { echo "$as_me:$LINENO: error: $IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
12925See \`config.log' for more details." >&5
12926echo "$as_me: error: $IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
12927See \`config.log' for more details." >&2;}
12928 { (exit 1); exit 1; }; }
Benny Prijono3965f192010-02-10 18:46:05 +000012929 fi
12930
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012931 { echo "$as_me:$LINENO: result: $IPPSAMP_DIR" >&5
12932echo "${ECHO_T}$IPPSAMP_DIR" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012933
12934 SAVED_CFLAGS="$CFLAGS"
12935 SAVED_LDFLAGS="$LDFLAGS"
12936 SAVED_LIBS="$LIBS"
12937
Benny Prijono3965f192010-02-10 18:46:05 +000012938 IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
12939 CFLAGS="$CFLAGS $IPPSAMP_INC"
12940 LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR"
12941 LIBS="$IPPSAMP_LDLIBS $LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +000012942
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012943 { echo "$as_me:$LINENO: checking Intel IPP USC usability" >&5
12944echo $ECHO_N "checking Intel IPP USC usability... $ECHO_C" >&6; }
12945 cat >conftest.$ac_ext <<_ACEOF
12946/* confdefs.h. */
12947_ACEOF
12948cat confdefs.h >>conftest.$ac_ext
12949cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +000012950/* end confdefs.h. */
12951#include <usc.h>
12952
12953int
12954main ()
12955{
12956extern USC_Fxns USC_G729AFP_Fxns;
12957 ;
12958 return 0;
12959}
12960_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012961rm -f conftest.$ac_objext conftest$ac_exeext
12962if { (ac_try="$ac_link"
12963case "(($ac_try" in
12964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12965 *) ac_try_echo=$ac_try;;
12966esac
12967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12968 (eval "$ac_link") 2>conftest.er1
12969 ac_status=$?
12970 grep -v '^ *+' conftest.er1 >conftest.err
12971 rm -f conftest.er1
12972 cat conftest.err >&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } && {
12975 test -z "$ac_c_werror_flag" ||
12976 test ! -s conftest.err
12977 } && test -s conftest$ac_exeext &&
12978 $as_test_x conftest$ac_exeext; then
12979 { echo "$as_me:$LINENO: result: ok" >&5
12980echo "${ECHO_T}ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012981else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012982 echo "$as_me: failed program was:" >&5
12983sed 's/^/| /' conftest.$ac_ext >&5
12984
12985 { { echo "$as_me:$LINENO: error: failed
12986See \`config.log' for more details." >&5
12987echo "$as_me: error: failed
12988See \`config.log' for more details." >&2;}
12989 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012990fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012991
12992rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12993 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +000012994
12995 CFLAGS="$SAVED_CFLAGS"
Benny Prijono3965f192010-02-10 18:46:05 +000012996 LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
12997 LIBS="$IPP_LIBS $SAVED_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +000012998
Benny Prijono3965f192010-02-10 18:46:05 +000012999 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
13000 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
13001 IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +000013002 fi
13003
Benny Prijono3965f192010-02-10 18:46:05 +000013004 CFLAGS="$CFLAGS $IPP_CFLAGS"
13005 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
13006 LIBS="$LIBS $IPP_LIBS"
13007
Benny Prijono0822c192008-08-21 20:59:58 +000013008 ac_build_mak_vars="$ac_build_mak_vars\n\
13009export IPP_CFLAGS=$IPP_CFLAGS\n\
13010export IPP_LDFLAGS=$IPP_LDFLAGS\n\
13011export IPP_LIBS=$IPP_LIBS"
13012else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013013 { echo "$as_me:$LINENO: result: Skipping Intel IPP settings (not wanted)" >&5
13014echo "${ECHO_T}Skipping Intel IPP settings (not wanted)" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000013015fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013016
13017
13018
13019
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013020# Check whether --enable-ssl was given.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013021if test "${enable_ssl+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013022 enableval=$enable_ssl;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013023 if test "$enable_ssl" = "no"; then
13024 ac_no_ssl=1
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013025 { echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
13026echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013027 fi
13028
13029else
13030
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013031 { echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
13032echo "${ECHO_T}checking for OpenSSL installations.." >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013033
13034
13035
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013036 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13037 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
13038echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
13039if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13040 echo $ECHO_N "(cached) $ECHO_C" >&6
13041fi
13042{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
13043echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
13044else
13045 # Is the header compilable?
13046{ echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
13047echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
13048cat >conftest.$ac_ext <<_ACEOF
13049/* confdefs.h. */
13050_ACEOF
13051cat confdefs.h >>conftest.$ac_ext
13052cat >>conftest.$ac_ext <<_ACEOF
13053/* end confdefs.h. */
13054$ac_includes_default
13055#include <openssl/ssl.h>
13056_ACEOF
13057rm -f conftest.$ac_objext
13058if { (ac_try="$ac_compile"
13059case "(($ac_try" in
13060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061 *) ac_try_echo=$ac_try;;
13062esac
13063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13064 (eval "$ac_compile") 2>conftest.er1
13065 ac_status=$?
13066 grep -v '^ *+' conftest.er1 >conftest.err
13067 rm -f conftest.er1
13068 cat conftest.err >&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } && {
13071 test -z "$ac_c_werror_flag" ||
13072 test ! -s conftest.err
13073 } && test -s conftest.$ac_objext; then
13074 ac_header_compiler=yes
13075else
13076 echo "$as_me: failed program was:" >&5
13077sed 's/^/| /' conftest.$ac_ext >&5
13078
13079 ac_header_compiler=no
13080fi
13081
13082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13083{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13084echo "${ECHO_T}$ac_header_compiler" >&6; }
13085
13086# Is the header present?
13087{ echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
13088echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
13089cat >conftest.$ac_ext <<_ACEOF
13090/* confdefs.h. */
13091_ACEOF
13092cat confdefs.h >>conftest.$ac_ext
13093cat >>conftest.$ac_ext <<_ACEOF
13094/* end confdefs.h. */
13095#include <openssl/ssl.h>
13096_ACEOF
13097if { (ac_try="$ac_cpp conftest.$ac_ext"
13098case "(($ac_try" in
13099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100 *) ac_try_echo=$ac_try;;
13101esac
13102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13104 ac_status=$?
13105 grep -v '^ *+' conftest.er1 >conftest.err
13106 rm -f conftest.er1
13107 cat conftest.err >&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); } >/dev/null && {
13110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13111 test ! -s conftest.err
13112 }; then
13113 ac_header_preproc=yes
13114else
13115 echo "$as_me: failed program was:" >&5
13116sed 's/^/| /' conftest.$ac_ext >&5
13117
13118 ac_header_preproc=no
13119fi
13120
13121rm -f conftest.err conftest.$ac_ext
13122{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13123echo "${ECHO_T}$ac_header_preproc" >&6; }
13124
13125# So? What about this header?
13126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13127 yes:no: )
13128 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13129echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13130 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
13131echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
13132 ac_header_preproc=yes
13133 ;;
13134 no:yes:* )
13135 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
13136echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
13137 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
13138echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
13139 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
13140echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
13141 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
13142echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
13143 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
13144echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
13145 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
13146echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
13147
13148 ;;
13149esac
13150{ echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
13151echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
13152if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13154else
13155 ac_cv_header_openssl_ssl_h=$ac_header_preproc
13156fi
13157{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
13158echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
13159
13160fi
13161if test $ac_cv_header_openssl_ssl_h = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013162 openssl_h_present=1
13163fi
13164
13165
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013166 { echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
13167echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6; }
13168if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013170else
13171 ac_check_lib_save_LIBS=$LIBS
13172LIBS="-lcrypto $LIBS"
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013173cat >conftest.$ac_ext <<_ACEOF
13174/* confdefs.h. */
13175_ACEOF
13176cat confdefs.h >>conftest.$ac_ext
13177cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013178/* end confdefs.h. */
13179
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013180/* Override any GCC internal prototype to avoid an error.
13181 Use char because int might match the return type of a GCC
13182 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013183#ifdef __cplusplus
13184extern "C"
13185#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013186char ERR_load_BIO_strings ();
13187int
13188main ()
13189{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013190return ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013191 ;
13192 return 0;
13193}
13194_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013195rm -f conftest.$ac_objext conftest$ac_exeext
13196if { (ac_try="$ac_link"
13197case "(($ac_try" in
13198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13200esac
13201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202 (eval "$ac_link") 2>conftest.er1
13203 ac_status=$?
13204 grep -v '^ *+' conftest.er1 >conftest.err
13205 rm -f conftest.er1
13206 cat conftest.err >&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } && {
13209 test -z "$ac_c_werror_flag" ||
13210 test ! -s conftest.err
13211 } && test -s conftest$ac_exeext &&
13212 $as_test_x conftest$ac_exeext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013213 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
13214else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013215 echo "$as_me: failed program was:" >&5
13216sed 's/^/| /' conftest.$ac_ext >&5
13217
13218 ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013219fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013220
13221rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13222 conftest$ac_exeext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013223LIBS=$ac_check_lib_save_LIBS
13224fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013225{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
13226echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
13227if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013228 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
13229fi
13230
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013231 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
13232echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
13233if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonod5233702010-01-13 13:09:45 +000013235else
13236 ac_check_lib_save_LIBS=$LIBS
13237LIBS="-lssl $LIBS"
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013238cat >conftest.$ac_ext <<_ACEOF
13239/* confdefs.h. */
13240_ACEOF
13241cat confdefs.h >>conftest.$ac_ext
13242cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonod5233702010-01-13 13:09:45 +000013243/* end confdefs.h. */
13244
13245/* Override any GCC internal prototype to avoid an error.
13246 Use char because int might match the return type of a GCC
13247 builtin and then its argument prototype would still apply. */
13248#ifdef __cplusplus
13249extern "C"
13250#endif
13251char SSL_library_init ();
13252int
13253main ()
13254{
13255return SSL_library_init ();
13256 ;
13257 return 0;
13258}
13259_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013260rm -f conftest.$ac_objext conftest$ac_exeext
13261if { (ac_try="$ac_link"
13262case "(($ac_try" in
13263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264 *) ac_try_echo=$ac_try;;
13265esac
13266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13267 (eval "$ac_link") 2>conftest.er1
13268 ac_status=$?
13269 grep -v '^ *+' conftest.er1 >conftest.err
13270 rm -f conftest.er1
13271 cat conftest.err >&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); } && {
13274 test -z "$ac_c_werror_flag" ||
13275 test ! -s conftest.err
13276 } && test -s conftest$ac_exeext &&
13277 $as_test_x conftest$ac_exeext; then
Benny Prijonod5233702010-01-13 13:09:45 +000013278 ac_cv_lib_ssl_SSL_library_init=yes
13279else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013280 echo "$as_me: failed program was:" >&5
13281sed 's/^/| /' conftest.$ac_ext >&5
13282
13283 ac_cv_lib_ssl_SSL_library_init=no
Benny Prijonod5233702010-01-13 13:09:45 +000013284fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013285
13286rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13287 conftest$ac_exeext conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +000013288LIBS=$ac_check_lib_save_LIBS
13289fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013290{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
13291echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
13292if test $ac_cv_lib_ssl_SSL_library_init = yes; then
Benny Prijonod5233702010-01-13 13:09:45 +000013293 libssl_present=1 && LIBS="$LIBS -lssl"
13294fi
13295
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013296 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013297 { echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
13298echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6; }
Nanang Izzuddin9c7616f2009-10-28 06:09:15 +000013299 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
13300 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013301 cat >>confdefs.h <<\_ACEOF
13302#define PJ_HAS_SSL_SOCK 1
13303_ACEOF
Nanang Izzuddinea6d3c42009-10-26 15:47:52 +000013304
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013305 else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013306 { echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
13307echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013308 fi
13309
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013310fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013311
13312
13313
13314
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013315
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013316{ echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
13317echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013318case $target in
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013319 *rtems*) cat >>confdefs.h <<\_ACEOF
13320#define PJ_SELECT_NEEDS_NFDS 1
13321_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013322
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013323 { echo "$as_me:$LINENO: result: yes" >&5
13324echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013325 ;;
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013326 *) cat >>confdefs.h <<\_ACEOF
13327#define PJ_SELECT_NEEDS_NFDS 0
13328_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013329
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013330 { echo "$as_me:$LINENO: result: no (default)" >&5
13331echo "${ECHO_T}no (default)" >&6; }
13332 { echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
13333echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013334 ;;
13335esac
13336
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013337{ echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
13338echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013339case $target in
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013340 *rtems*) cat >>confdefs.h <<\_ACEOF
13341#define PJ_THREAD_SET_STACK_SIZE 1
13342_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013343
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013344 { echo "$as_me:$LINENO: result: yes" >&5
13345echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013346 ;;
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013347 *) cat >>confdefs.h <<\_ACEOF
13348#define PJ_THREAD_SET_STACK_SIZE 0
13349_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013350
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013351 { echo "$as_me:$LINENO: result: no (default)" >&5
13352echo "${ECHO_T}no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013353 ;;
13354esac
13355
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013356{ echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
13357echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013358case $target in
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013359 *rtems*) cat >>confdefs.h <<\_ACEOF
13360#define PJ_THREAD_ALLOCATE_STACK 1
13361_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013362
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013363 { echo "$as_me:$LINENO: result: yes" >&5
13364echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013365 ;;
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013366 *) cat >>confdefs.h <<\_ACEOF
13367#define PJ_THREAD_ALLOCATE_STACK 0
13368_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013369
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013370 { echo "$as_me:$LINENO: result: no (default)" >&5
13371echo "${ECHO_T}no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013372 ;;
13373esac
13374
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013375case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000013376 *mingw* | *cygw* | *win32* | *w32* )
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013377 cat >>confdefs.h <<\_ACEOF
13378#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
13379_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013380
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000013381 ;;
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013382 *) cat >>confdefs.h <<\_ACEOF
13383#define PJ_BLOCKING_ERROR_VAL EAGAIN
13384_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000013385
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013386 { echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
13387echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013388 ;;
13389esac
13390
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013391case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000013392 *mingw* | *cygw* | *win32* | *w32* )
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013393 cat >>confdefs.h <<\_ACEOF
13394#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
13395_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013396
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000013397 ;;
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013398 *) cat >>confdefs.h <<\_ACEOF
13399#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
13400_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000013401
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013402 { echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
13403echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013404 ;;
13405esac
13406
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013407
13408
13409
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013410if test "$build" = "$host"; then
13411 ac_cross_compile=
13412else
Benny Prijono5b818b22006-09-17 22:58:51 +000013413 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013414fi
13415ac_linux_poll=select
13416
13417ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013418
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013419
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013420case $target in
13421 *rtems*)
13422 ac_main_obj=main_rtems.o
13423 ;;
13424 *)
13425 ac_main_obj=main.o
13426 ;;
13427esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013428
Benny Prijono0822c192008-08-21 20:59:58 +000013429
13430ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013431cat >confcache <<\_ACEOF
13432# This file is a shell script that caches the results of configure
13433# tests run on this system so they can be shared between configure
13434# scripts and configure runs, see configure's option --config-cache.
13435# It is not useful on other systems. If it contains results you don't
13436# want to keep, you may remove or edit it.
13437#
13438# config.status only pays attention to the cache file if you give it
13439# the --recheck option to rerun configure.
13440#
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013441# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013442# loading this file, other *unset* `ac_cv_foo' will be assigned the
13443# following values.
13444
13445_ACEOF
13446
13447# The following way of writing the cache mishandles newlines in values,
13448# but we know of no workaround that is simple, portable, and efficient.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013449# So, we kill variables containing newlines.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013450# Ultrix sh set writes to stderr and can't be redirected directly,
13451# and sets the high bit in the cache file unless we assign to the vars.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013452(
13453 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13454 eval ac_val=\$$ac_var
13455 case $ac_val in #(
13456 *${as_nl}*)
13457 case $ac_var in #(
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013458 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13459echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013460 esac
13461 case $ac_var in #(
13462 _ | IFS | as_nl) ;; #(
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013463 *) $as_unset $ac_var ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013464 esac ;;
13465 esac
13466 done
13467
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013468 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013469 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13470 *${as_nl}ac_space=\ *)
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013471 # `set' does not quote correctly, so add quotes (double-quote
13472 # substitution turns \\\\ into \\, and sed turns \\ into \).
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013473 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013474 "s/'/'\\\\''/g;
13475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013476 ;; #(
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013477 *)
13478 # `set' quotes correctly as required by POSIX, so do not add quotes.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013480 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013481 esac |
13482 sort
13483) |
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013484 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013485 /^ac_cv_env_/b end
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013486 t clear
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013487 :clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013488 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13489 t end
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013490 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13491 :end' >>confcache
13492if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13493 if test -w "$cache_file"; then
13494 test "x$cache_file" != "x/dev/null" &&
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013495 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13496echo "$as_me: updating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013497 cat confcache >$cache_file
13498 else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013499 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13500echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013501 fi
13502fi
13503rm -f confcache
13504
13505test "x$prefix" = xNONE && prefix=$ac_default_prefix
13506# Let make expand exec_prefix.
13507test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13508
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013509DEFS=-DHAVE_CONFIG_H
13510
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013511ac_libobjs=
13512ac_ltlibobjs=
13513for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13514 # 1. Remove the extension, and $U if already installed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013515 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013516 ac_i=`echo "$ac_i" | sed "$ac_script"`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013517 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13518 # will be set to the directory where LIBOBJS objects are built.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013519 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13520 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013521done
13522LIBOBJS=$ac_libobjs
13523
13524LTLIBOBJS=$ac_ltlibobjs
13525
13526
13527
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013528: ${CONFIG_STATUS=./config.status}
13529ac_clean_files_save=$ac_clean_files
13530ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013531{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13532echo "$as_me: creating $CONFIG_STATUS" >&6;}
13533cat >$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013534#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013535# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013536# Run this file to recreate the current configuration.
13537# Compiler output produced by configure, useful for debugging
13538# configure, is in config.log if it exists.
13539
13540debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013541ac_cs_recheck=false
13542ac_cs_silent=false
Benny Prijono5b0af632011-07-20 03:16:25 +000013543SHELL=\${CONFIG_SHELL-$SHELL}
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013544_ACEOF
13545
13546cat >>$CONFIG_STATUS <<\_ACEOF
13547## --------------------- ##
13548## M4sh Initialization. ##
13549## --------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013550
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013551# Be more Bourne compatible
13552DUALCASE=1; export DUALCASE # for MKS sh
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013553if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013554 emulate sh
13555 NULLCMD=:
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013556 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013557 # is contrary to our usage. Disable this feature.
13558 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013559 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +000013560else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013561 case `(set -o) 2>/dev/null` in
13562 *posix*) set -o posix ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013563esac
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013564
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013565fi
13566
13567
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013568
13569
13570# PATH needs CR
13571# Avoid depending upon Character Ranges.
13572as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13573as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13574as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13575as_cr_digits='0123456789'
13576as_cr_alnum=$as_cr_Letters$as_cr_digits
Benny Prijonod5233702010-01-13 13:09:45 +000013577
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013578# The user is always right.
13579if test "${PATH_SEPARATOR+set}" != set; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013580 echo "#! /bin/sh" >conf$$.sh
13581 echo "exit 0" >>conf$$.sh
13582 chmod +x conf$$.sh
13583 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13584 PATH_SEPARATOR=';'
13585 else
13586 PATH_SEPARATOR=:
13587 fi
13588 rm -f conf$$.sh
13589fi
13590
13591# Support unset when possible.
13592if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13593 as_unset=unset
13594else
13595 as_unset=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013596fi
13597
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013598
13599# IFS
13600# We need space, tab and new line, in precisely that order. Quoting is
13601# there to prevent editors from complaining about space-tab.
13602# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13603# splitting by setting IFS to empty value.)
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013604as_nl='
13605'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013606IFS=" "" $as_nl"
13607
13608# Find who we are. Look in the path if we contain no directory separator.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013609case $0 in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013610 *[\\/]* ) as_myself=$0 ;;
13611 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013612for as_dir in $PATH
13613do
13614 IFS=$as_save_IFS
13615 test -z "$as_dir" && as_dir=.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013616 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13617done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013618IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013619
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013620 ;;
13621esac
13622# We did not find ourselves, most probably we were run as `sh COMMAND'
13623# in which case we are not to be found in the path.
13624if test "x$as_myself" = x; then
13625 as_myself=$0
13626fi
13627if test ! -f "$as_myself"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013628 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13629 { (exit 1); exit 1; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013630fi
13631
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013632# Work around bugs in pre-3.0 UWIN ksh.
13633for as_var in ENV MAIL MAILPATH
13634do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013635done
13636PS1='$ '
13637PS2='> '
13638PS4='+ '
13639
13640# NLS nuisances.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013641for as_var in \
13642 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13643 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13644 LC_TELEPHONE LC_TIME
13645do
13646 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13647 eval $as_var=C; export $as_var
13648 else
13649 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Benny Prijono5b0af632011-07-20 03:16:25 +000013650 fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013651done
Benny Prijono5b0af632011-07-20 03:16:25 +000013652
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013653# Required to use basename.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013654if expr a : '\(a\)' >/dev/null 2>&1 &&
13655 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13656 as_expr=expr
13657else
13658 as_expr=false
13659fi
13660
13661if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13662 as_basename=basename
13663else
13664 as_basename=false
13665fi
13666
13667
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013668# Name of the executable.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013669as_me=`$as_basename -- "$0" ||
13670$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13671 X"$0" : 'X\(//\)$' \| \
13672 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013673echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013674 sed '/^.*\/\([^/][^/]*\)\/*$/{
13675 s//\1/
13676 q
13677 }
13678 /^X\/\(\/\/\)$/{
13679 s//\1/
13680 q
13681 }
13682 /^X\/\(\/\).*/{
13683 s//\1/
13684 q
13685 }
13686 s/.*/./; q'`
13687
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013688# CDPATH.
13689$as_unset CDPATH
13690
13691
13692
13693 as_lineno_1=$LINENO
13694 as_lineno_2=$LINENO
13695 test "x$as_lineno_1" != "x$as_lineno_2" &&
13696 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13697
13698 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13699 # uniformly replaced by the line number. The first 'sed' inserts a
13700 # line-number line after each line using $LINENO; the second 'sed'
13701 # does the real work. The second script uses 'N' to pair each
13702 # line-number line with the line containing $LINENO, and appends
13703 # trailing '-' during substitution so that $LINENO is not a special
13704 # case at line end.
13705 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13706 # scripts with optimization help from Paolo Bonzini. Blame Lee
13707 # E. McMahon (1931-1989) for sed's syntax. :-)
13708 sed -n '
13709 p
13710 /[$]LINENO/=
13711 ' <$as_myself |
13712 sed '
13713 s/[$]LINENO.*/&-/
13714 t lineno
13715 b
13716 :lineno
13717 N
13718 :loop
13719 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13720 t loop
13721 s/-\n.*//
13722 ' >$as_me.lineno &&
13723 chmod +x "$as_me.lineno" ||
13724 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13725 { (exit 1); exit 1; }; }
13726
13727 # Don't try to exec as it changes $[0], causing all sort of problems
13728 # (the dirname of $[0] is not the place where we might find the
13729 # original and so on. Autoconf is especially sensitive to this).
13730 . "./$as_me.lineno"
13731 # Exit status is that of the last command.
13732 exit
13733}
13734
13735
13736if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13737 as_dirname=dirname
13738else
13739 as_dirname=false
13740fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013741
13742ECHO_C= ECHO_N= ECHO_T=
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013743case `echo -n x` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013744-n*)
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013745 case `echo 'x\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013746 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013747 *) ECHO_C='\c';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013748 esac;;
13749*)
13750 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013751esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013752
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013753if expr a : '\(a\)' >/dev/null 2>&1 &&
13754 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13755 as_expr=expr
13756else
13757 as_expr=false
13758fi
13759
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013760rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013761if test -d conf$$.dir; then
13762 rm -f conf$$.dir/conf$$.file
13763else
13764 rm -f conf$$.dir
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013765 mkdir conf$$.dir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013766fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013767echo >conf$$.file
13768if ln -s conf$$.file conf$$ 2>/dev/null; then
13769 as_ln_s='ln -s'
13770 # ... but there are two gotchas:
13771 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13772 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13773 # In both cases, we have to default to `cp -p'.
13774 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013775 as_ln_s='cp -p'
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013776elif ln conf$$.file conf$$ 2>/dev/null; then
13777 as_ln_s=ln
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013778else
13779 as_ln_s='cp -p'
13780fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013781rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13782rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013783
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013784if mkdir -p . 2>/dev/null; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013785 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +000013786else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013787 test -d ./-p && rmdir ./-p
13788 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +000013789fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000013790
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013791if test -x / >/dev/null 2>&1; then
13792 as_test_x='test -x'
13793else
13794 if ls -dL / >/dev/null 2>&1; then
13795 as_ls_L_option=L
13796 else
13797 as_ls_L_option=
13798 fi
13799 as_test_x='
13800 eval sh -c '\''
13801 if test -d "$1"; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013802 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013803 else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013804 case $1 in
13805 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013806 esac;
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013807 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013808 ???[sx]*):;;*)false;;esac;fi
13809 '\'' sh
13810 '
13811fi
13812as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013813
13814# Sed expression to map a string onto a valid CPP name.
13815as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13816
13817# Sed expression to map a string onto a valid variable name.
13818as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13819
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013820
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013821exec 6>&1
13822
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013823# Save the log message, to keep $[0] and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013824# report actual input values of CONFIG_FILES etc. instead of their
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013825# values after options handling.
13826ac_log="
Benny Prijono8a9b3b22010-01-14 14:46:54 +000013827This file was extended by pjproject $as_me 1.x, which was
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013828generated by GNU Autoconf 2.61. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013829
13830 CONFIG_FILES = $CONFIG_FILES
13831 CONFIG_HEADERS = $CONFIG_HEADERS
13832 CONFIG_LINKS = $CONFIG_LINKS
13833 CONFIG_COMMANDS = $CONFIG_COMMANDS
13834 $ $0 $@
13835
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013836on `(hostname || uname -n) 2>/dev/null | sed 1q`
13837"
13838
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013839_ACEOF
13840
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013841cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013842# Files that config.status was made for.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013843config_files="$ac_config_files"
13844config_headers="$ac_config_headers"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013845
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013846_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013847
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013848cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013849ac_cs_usage="\
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013850\`$as_me' instantiates files from templates according to the
13851current configuration.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013852
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013853Usage: $0 [OPTIONS] [FILE]...
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013854
13855 -h, --help print this help, then exit
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013856 -V, --version print version number and configuration settings, then exit
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013857 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013858 -d, --debug don't remove temporary files
13859 --recheck update $as_me by reconfiguring in the same conditions
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013860 --file=FILE[:TEMPLATE]
13861 instantiate the configuration file FILE
13862 --header=FILE[:TEMPLATE]
13863 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013864
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013865Configuration files:
13866$config_files
13867
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013868Configuration headers:
13869$config_headers
13870
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013871Report bugs to <bug-autoconf@gnu.org>."
Benny Prijonoe2746132008-09-27 13:16:35 +000013872
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013873_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013874cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013875ac_cs_version="\\
Benny Prijono8a9b3b22010-01-14 14:46:54 +000013876pjproject config.status 1.x
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013877configured by $0, generated by GNU Autoconf 2.61,
13878 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013879
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013880Copyright (C) 2006 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013881This config.status script is free software; the Free Software Foundation
13882gives unlimited permission to copy, distribute and modify it."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013883
13884ac_pwd='$ac_pwd'
13885srcdir='$srcdir'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013886_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013887
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013888cat >>$CONFIG_STATUS <<\_ACEOF
13889# If no file are specified by the user, then we need to provide default
13890# value. By we need to know if files were specified by the user.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013891ac_need_defaults=:
13892while test $# != 0
13893do
13894 case $1 in
13895 --*=*)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013896 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13897 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013898 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013899 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013900 *)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013901 ac_option=$1
13902 ac_optarg=$2
13903 ac_shift=shift
13904 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013905 esac
13906
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013907 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013908 # Handling of the options.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013909 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013910 ac_cs_recheck=: ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013911 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013912 echo "$ac_cs_version"; exit ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013913 --debug | --debu | --deb | --de | --d | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013914 debug=: ;;
13915 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013916 $ac_shift
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013917 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013918 ac_need_defaults=false;;
13919 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013920 $ac_shift
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013921 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013922 ac_need_defaults=false;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013923 --he | --h)
13924 # Conflict between --help and --header
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013925 { echo "$as_me: error: ambiguous option: $1
13926Try \`$0 --help' for more information." >&2
13927 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013928 --help | --hel | -h )
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013929 echo "$ac_cs_usage"; exit ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013930 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13931 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13932 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013933
13934 # This is an error.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013935 -*) { echo "$as_me: error: unrecognized option: $1
13936Try \`$0 --help' for more information." >&2
13937 { (exit 1); exit 1; }; } ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013938
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013939 *) ac_config_targets="$ac_config_targets $1"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013940 ac_need_defaults=false ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013941
13942 esac
13943 shift
13944done
13945
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013946ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013947
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013948if $ac_cs_silent; then
13949 exec 6>/dev/null
13950 ac_configure_extra_args="$ac_configure_extra_args --silent"
13951fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013952
13953_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013954cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013955if \$ac_cs_recheck; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013956 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13957 CONFIG_SHELL=$SHELL
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013958 export CONFIG_SHELL
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013959 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013960fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013961
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013962_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013963cat >>$CONFIG_STATUS <<\_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013964exec 5>>config.log
13965{
13966 echo
13967 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13968## Running $as_me. ##
13969_ASBOX
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013970 echo "$ac_log"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013971} >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013972
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013973_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013974cat >>$CONFIG_STATUS <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013975_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013976
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013977cat >>$CONFIG_STATUS <<\_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013978
13979# Handling of arguments.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013980for ac_config_target in $ac_config_targets
13981do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013982 case $ac_config_target in
13983 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
13984 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
13985 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
13986 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
13987 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
13988 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
13989 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
Benny Prijono8ec5eae2010-05-12 10:59:20 +000013990 "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013991 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
13992 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
13993 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
13994 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013995 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijono8a9b3b22010-01-14 14:46:54 +000013996 "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 +000013997
Sauw Mingd8aa67c2011-08-09 04:31:41 +000013998 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13999echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14000 { (exit 1); exit 1; }; };;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014001 esac
14002done
14003
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014004
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014005# If the user did not use the arguments to specify the items to instantiate,
14006# then the envvar interface is used. Set only those that are not.
14007# We use the long form for the default assignment because of an extremely
14008# bizarre bug on SunOS 4.1.3.
14009if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014010 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014011 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14012fi
14013
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014014# Have a temporary directory for convenience. Make it in the build tree
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014015# simply because there is no reason against having it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014016# creating and moving files from /tmp can sometimes cause problems.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014017# Hook for its removal unless debugging.
14018# Note that there is a small window in which the directory will not be cleaned:
14019# after its creation but before its name has been assigned to `$tmp'.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014020$debug ||
14021{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014022 tmp=
14023 trap 'exit_status=$?
14024 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14025' 0
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014026 trap '{ (exit 1); exit 1; }' 1 2 13 15
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014027}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014028# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014029
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014030{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014031 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014032 test -n "$tmp" && test -d "$tmp"
14033} ||
14034{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014035 tmp=./conf$$-$RANDOM
14036 (umask 077 && mkdir "$tmp")
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014037} ||
14038{
14039 echo "$me: cannot create a temporary directory in ." >&2
14040 { (exit 1); exit 1; }
14041}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014042
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014043#
14044# Set up the sed scripts for CONFIG_FILES section.
14045#
14046
14047# No need to generate the scripts if there are no CONFIG_FILES.
14048# This happens for instance when ./config.status config.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014049if test -n "$CONFIG_FILES"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014050
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014051_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014052
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014053
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014054
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014055ac_delim='%!_!# '
14056for ac_last_try in false false false false false :; do
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014057 cat >conf$$subs.sed <<_ACEOF
14058SHELL!$SHELL$ac_delim
14059PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14060PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14061PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14062PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14063PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14064PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14065exec_prefix!$exec_prefix$ac_delim
14066prefix!$prefix$ac_delim
14067program_transform_name!$program_transform_name$ac_delim
14068bindir!$bindir$ac_delim
14069sbindir!$sbindir$ac_delim
14070libexecdir!$libexecdir$ac_delim
14071datarootdir!$datarootdir$ac_delim
14072datadir!$datadir$ac_delim
14073sysconfdir!$sysconfdir$ac_delim
14074sharedstatedir!$sharedstatedir$ac_delim
14075localstatedir!$localstatedir$ac_delim
14076includedir!$includedir$ac_delim
14077oldincludedir!$oldincludedir$ac_delim
14078docdir!$docdir$ac_delim
14079infodir!$infodir$ac_delim
14080htmldir!$htmldir$ac_delim
14081dvidir!$dvidir$ac_delim
14082pdfdir!$pdfdir$ac_delim
14083psdir!$psdir$ac_delim
14084libdir!$libdir$ac_delim
14085localedir!$localedir$ac_delim
14086mandir!$mandir$ac_delim
14087DEFS!$DEFS$ac_delim
14088ECHO_C!$ECHO_C$ac_delim
14089ECHO_N!$ECHO_N$ac_delim
14090ECHO_T!$ECHO_T$ac_delim
14091LIBS!$LIBS$ac_delim
14092build_alias!$build_alias$ac_delim
14093host_alias!$host_alias$ac_delim
14094target_alias!$target_alias$ac_delim
14095build!$build$ac_delim
14096build_cpu!$build_cpu$ac_delim
14097build_vendor!$build_vendor$ac_delim
14098build_os!$build_os$ac_delim
14099host!$host$ac_delim
14100host_cpu!$host_cpu$ac_delim
14101host_vendor!$host_vendor$ac_delim
14102host_os!$host_os$ac_delim
14103target!$target$ac_delim
14104target_cpu!$target_cpu$ac_delim
14105target_vendor!$target_vendor$ac_delim
14106target_os!$target_os$ac_delim
14107CC!$CC$ac_delim
14108CFLAGS!$CFLAGS$ac_delim
14109LDFLAGS!$LDFLAGS$ac_delim
14110CPPFLAGS!$CPPFLAGS$ac_delim
14111ac_ct_CC!$ac_ct_CC$ac_delim
14112EXEEXT!$EXEEXT$ac_delim
14113OBJEXT!$OBJEXT$ac_delim
14114CXX!$CXX$ac_delim
14115CXXFLAGS!$CXXFLAGS$ac_delim
14116ac_ct_CXX!$ac_ct_CXX$ac_delim
14117AR!$AR$ac_delim
14118LD!$LD$ac_delim
14119LDOUT!$LDOUT$ac_delim
14120RANLIB!$RANLIB$ac_delim
14121LIBEXT!$LIBEXT$ac_delim
14122LIBEXT2!$LIBEXT2$ac_delim
14123CC_OUT!$CC_OUT$ac_delim
14124CC_INC!$CC_INC$ac_delim
14125CC_DEF!$CC_DEF$ac_delim
14126CC_OPTIMIZE!$CC_OPTIMIZE$ac_delim
14127CC_CFLAGS!$CC_CFLAGS$ac_delim
14128ac_pjdir!$ac_pjdir$ac_delim
14129ac_build_mak_vars!$ac_build_mak_vars$ac_delim
14130CPP!$CPP$ac_delim
14131GREP!$GREP$ac_delim
14132EGREP!$EGREP$ac_delim
14133ac_os_objs!$ac_os_objs$ac_delim
14134ac_external_speex!$ac_external_speex$ac_delim
14135ac_external_gsm!$ac_external_gsm$ac_delim
14136ac_pjmedia_snd!$ac_pjmedia_snd$ac_delim
14137ac_external_pa!$ac_external_pa$ac_delim
14138ac_pa_cflags!$ac_pa_cflags$ac_delim
14139ac_pa_use_alsa!$ac_pa_use_alsa$ac_delim
14140ac_pa_use_oss!$ac_pa_use_oss$ac_delim
14141ac_pjmedia_video!$ac_pjmedia_video$ac_delim
Sauw Ming24c39a32011-08-16 05:44:46 +000014142ac_pjmedia_video_has_ios!$ac_pjmedia_video_has_ios$ac_delim
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014143ac_ios_cflags!$ac_ios_cflags$ac_delim
14144ac_pjmedia_video_has_qt!$ac_pjmedia_video_has_qt$ac_delim
14145ac_qt_cflags!$ac_qt_cflags$ac_delim
14146ac_no_small_filter!$ac_no_small_filter$ac_delim
14147ac_no_large_filter!$ac_no_large_filter$ac_delim
14148ac_no_speex_aec!$ac_no_speex_aec$ac_delim
14149ac_no_g711_codec!$ac_no_g711_codec$ac_delim
14150ac_no_l16_codec!$ac_no_l16_codec$ac_delim
14151ac_no_gsm_codec!$ac_no_gsm_codec$ac_delim
14152ac_no_g722_codec!$ac_no_g722_codec$ac_delim
14153ac_no_g7221_codec!$ac_no_g7221_codec$ac_delim
14154ac_no_speex_codec!$ac_no_speex_codec$ac_delim
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014155_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014156
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014157 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014158 break
14159 elif $ac_last_try; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014160 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14161echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14162 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014163 else
14164 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014165 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014166done
14167
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014168ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14169if test -n "$ac_eof"; then
14170 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14171 ac_eof=`expr $ac_eof + 1`
14172fi
14173
14174cat >>$CONFIG_STATUS <<_ACEOF
14175cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14176/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014177_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014178sed '
14179s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14180s/^/s,@/; s/!/@,|#_!!_#|/
14181:n
14182t n
14183s/'"$ac_delim"'$/,g/; t
14184s/$/\\/; p
14185N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14186' >>$CONFIG_STATUS <conf$$subs.sed
14187rm -f conf$$subs.sed
14188cat >>$CONFIG_STATUS <<_ACEOF
14189CEOF$ac_eof
Benny Prijonod4306432010-05-01 22:05:41 +000014190_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014191
14192
14193ac_delim='%!_!# '
14194for ac_last_try in false false false false false :; do
14195 cat >conf$$subs.sed <<_ACEOF
Sauw Ming24c39a32011-08-16 05:44:46 +000014196ac_no_ilbc_codec!$ac_no_ilbc_codec$ac_delim
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014197ac_sdl_cflags!$ac_sdl_cflags$ac_delim
14198ac_sdl_ldflags!$ac_sdl_ldflags$ac_delim
14199ac_has_ffmpeg!$ac_has_ffmpeg$ac_delim
14200ac_ffmpeg_cflags!$ac_ffmpeg_cflags$ac_delim
14201ac_ffmpeg_ldflags!$ac_ffmpeg_ldflags$ac_delim
14202ac_v4l2_cflags!$ac_v4l2_cflags$ac_delim
14203ac_v4l2_ldflags!$ac_v4l2_ldflags$ac_delim
14204ac_no_ssl!$ac_no_ssl$ac_delim
14205openssl_h_present!$openssl_h_present$ac_delim
14206libssl_present!$libssl_present$ac_delim
14207libcrypto_present!$libcrypto_present$ac_delim
14208ac_cross_compile!$ac_cross_compile$ac_delim
14209ac_linux_poll!$ac_linux_poll$ac_delim
14210ac_host!$ac_host$ac_delim
14211ac_main_obj!$ac_main_obj$ac_delim
14212LIBOBJS!$LIBOBJS$ac_delim
14213LTLIBOBJS!$LTLIBOBJS$ac_delim
Benny Prijonod4306432010-05-01 22:05:41 +000014214_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014215
Sauw Ming24c39a32011-08-16 05:44:46 +000014216 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014217 break
14218 elif $ac_last_try; then
14219 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14220echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14221 { (exit 1); exit 1; }; }
14222 else
14223 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14224 fi
14225done
14226
14227ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14228if test -n "$ac_eof"; then
14229 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14230 ac_eof=`expr $ac_eof + 1`
14231fi
14232
14233cat >>$CONFIG_STATUS <<_ACEOF
14234cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14235/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14236_ACEOF
14237sed '
14238s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14239s/^/s,@/; s/!/@,|#_!!_#|/
14240:n
14241t n
14242s/'"$ac_delim"'$/,g/; t
14243s/$/\\/; p
14244N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14245' >>$CONFIG_STATUS <conf$$subs.sed
14246rm -f conf$$subs.sed
14247cat >>$CONFIG_STATUS <<_ACEOF
14248:end
14249s/|#_!!_#|//g
14250CEOF$ac_eof
14251_ACEOF
14252
14253
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014254# VPATH may cause trouble with some makes, so we remove $(srcdir),
14255# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14256# trailing colons and then remove the whole line if VPATH becomes empty
14257# (actually we leave an empty line to preserve line numbers).
14258if test "x$srcdir" = x.; then
14259 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14260s/:*\$(srcdir):*/:/
14261s/:*\${srcdir}:*/:/
14262s/:*@srcdir@:*/:/
14263s/^\([^=]*=[ ]*\):*/\1/
14264s/:*$//
14265s/^[^=]*=[ ]*$//
14266}'
14267fi
14268
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014269cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014270fi # test -n "$CONFIG_FILES"
14271
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014272
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014273for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014274do
14275 case $ac_tag in
14276 :[FHLC]) ac_mode=$ac_tag; continue;;
14277 esac
14278 case $ac_mode$ac_tag in
14279 :[FHL]*:*);;
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014280 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14281echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14282 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014283 :[FH]-) ac_tag=-:-;;
14284 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14285 esac
14286 ac_save_IFS=$IFS
14287 IFS=:
14288 set x $ac_tag
14289 IFS=$ac_save_IFS
14290 shift
14291 ac_file=$1
14292 shift
14293
14294 case $ac_mode in
14295 :L) ac_source=$1;;
14296 :[FH])
14297 ac_file_inputs=
14298 for ac_f
14299 do
14300 case $ac_f in
14301 -) ac_f="$tmp/stdin";;
14302 *) # Look for the file first in the build tree, then in the source tree
14303 # (if the path is not absolute). The absolute path cannot be DOS-style,
14304 # because $ac_f cannot contain `:'.
14305 test -f "$ac_f" ||
14306 case $ac_f in
14307 [\\/$]*) false;;
14308 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14309 esac ||
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014310 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14311echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14312 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014313 esac
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014314 ac_file_inputs="$ac_file_inputs $ac_f"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014315 done
14316
14317 # Let's still pretend it is `configure' which instantiates (i.e., don't
14318 # use $as_me), people would be surprised to read:
14319 # /* config.h. Generated by config.status. */
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014320 configure_input="Generated from "`IFS=:
14321 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014322 if test x"$ac_file" != x-; then
14323 configure_input="$ac_file. $configure_input"
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014324 { echo "$as_me:$LINENO: creating $ac_file" >&5
14325echo "$as_me: creating $ac_file" >&6;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014326 fi
14327
14328 case $ac_tag in
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014329 *:-:* | *:-) cat >"$tmp/stdin";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014330 esac
14331 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014332 esac
14333
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014334 ac_dir=`$as_dirname -- "$ac_file" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014335$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14336 X"$ac_file" : 'X\(//\)[^/]' \| \
14337 X"$ac_file" : 'X\(//\)$' \| \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014338 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014339echo X"$ac_file" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14341 s//\1/
14342 q
14343 }
14344 /^X\(\/\/\)[^/].*/{
14345 s//\1/
14346 q
14347 }
14348 /^X\(\/\/\)$/{
14349 s//\1/
14350 q
14351 }
14352 /^X\(\/\).*/{
14353 s//\1/
14354 q
14355 }
14356 s/.*/./; q'`
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014357 { as_dir="$ac_dir"
14358 case $as_dir in #(
14359 -*) as_dir=./$as_dir;;
14360 esac
14361 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14362 as_dirs=
14363 while :; do
14364 case $as_dir in #(
14365 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14366 *) as_qdir=$as_dir;;
14367 esac
14368 as_dirs="'$as_qdir' $as_dirs"
14369 as_dir=`$as_dirname -- "$as_dir" ||
14370$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14371 X"$as_dir" : 'X\(//\)[^/]' \| \
14372 X"$as_dir" : 'X\(//\)$' \| \
14373 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14374echo X"$as_dir" |
14375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14376 s//\1/
14377 q
14378 }
14379 /^X\(\/\/\)[^/].*/{
14380 s//\1/
14381 q
14382 }
14383 /^X\(\/\/\)$/{
14384 s//\1/
14385 q
14386 }
14387 /^X\(\/\).*/{
14388 s//\1/
14389 q
14390 }
14391 s/.*/./; q'`
14392 test -d "$as_dir" && break
14393 done
14394 test -z "$as_dirs" || eval "mkdir $as_dirs"
14395 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14396echo "$as_me: error: cannot create directory $as_dir" >&2;}
14397 { (exit 1); exit 1; }; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014398 ac_builddir=.
14399
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014400case "$ac_dir" in
14401.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14402*)
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014403 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014404 # A ".." for each directory in $ac_dir_suffix.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014405 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014406 case $ac_top_builddir_sub in
14407 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14408 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14409 esac ;;
14410esac
14411ac_abs_top_builddir=$ac_pwd
14412ac_abs_builddir=$ac_pwd$ac_dir_suffix
14413# for backward compatibility:
14414ac_top_builddir=$ac_top_build_prefix
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014415
14416case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014417 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014418 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014419 ac_top_srcdir=$ac_top_builddir_sub
14420 ac_abs_top_srcdir=$ac_pwd ;;
14421 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014422 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014423 ac_top_srcdir=$srcdir
14424 ac_abs_top_srcdir=$srcdir ;;
14425 *) # Relative name.
14426 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14427 ac_top_srcdir=$ac_top_build_prefix$srcdir
14428 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014429esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014430ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono9489e7a2008-09-19 22:18:50 +000014431
Benny Prijonoe2746132008-09-27 13:16:35 +000014432
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014433 case $ac_mode in
14434 :F)
14435 #
14436 # CONFIG_FILE
14437 #
Benny Prijonoe2746132008-09-27 13:16:35 +000014438
Benny Prijonoe2746132008-09-27 13:16:35 +000014439_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014440
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014441cat >>$CONFIG_STATUS <<\_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014442# If the template does not know about datarootdir, expand it.
14443# FIXME: This hack should be removed a few years after 2.60.
14444ac_datarootdir_hack=; ac_datarootdir_seen=
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014445
14446case `sed -n '/datarootdir/ {
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014447 p
14448 q
14449}
14450/@datadir@/p
14451/@docdir@/p
14452/@infodir@/p
14453/@localedir@/p
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014454/@mandir@/p
14455' $ac_file_inputs` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014456*datarootdir*) ac_datarootdir_seen=yes;;
14457*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014458 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14459echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014460_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014461cat >>$CONFIG_STATUS <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014462 ac_datarootdir_hack='
14463 s&@datadir@&$datadir&g
14464 s&@docdir@&$docdir&g
14465 s&@infodir@&$infodir&g
14466 s&@localedir@&$localedir&g
14467 s&@mandir@&$mandir&g
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014468 s&\\\${datarootdir}&$datarootdir&g' ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014469esac
14470_ACEOF
14471
14472# Neutralize VPATH when `$srcdir' = `.'.
14473# Shell code in configure.ac might set extrasub.
14474# FIXME: do we really want to maintain this feature?
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014475cat >>$CONFIG_STATUS <<_ACEOF
14476 sed "$ac_vpsub
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014477$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014478_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014479cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014480:t
14481/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014482s&@configure_input@&$configure_input&;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014483s&@top_builddir@&$ac_top_builddir_sub&;t t
14484s&@srcdir@&$ac_srcdir&;t t
14485s&@abs_srcdir@&$ac_abs_srcdir&;t t
14486s&@top_srcdir@&$ac_top_srcdir&;t t
14487s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14488s&@builddir@&$ac_builddir&;t t
14489s&@abs_builddir@&$ac_abs_builddir&;t t
14490s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14491$ac_datarootdir_hack
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014492" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014493
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014494test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14495 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14496 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014497 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014498which seems to be undefined. Please make sure it is defined." >&5
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014499echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014500which seems to be undefined. Please make sure it is defined." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014501
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014502 rm -f "$tmp/stdin"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014503 case $ac_file in
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014504 -) cat "$tmp/out"; rm -f "$tmp/out";;
14505 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14506 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014507 ;;
14508 :H)
14509 #
14510 # CONFIG_HEADER
14511 #
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014512_ACEOF
14513
14514# Transform confdefs.h into a sed script `conftest.defines', that
14515# substitutes the proper values into config.h.in to produce config.h.
14516rm -f conftest.defines conftest.tail
14517# First, append a space to every undef/define line, to ease matching.
14518echo 's/$/ /' >conftest.defines
14519# Then, protect against being on the right side of a sed subst, or in
14520# an unquoted here document, in config.status. If some macros were
14521# called several times there might be several #defines for the same
14522# symbol, which is useless. But do not sort them, since the last
14523# AC_DEFINE must be honored.
14524ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14525# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14526# NAME is the cpp macro being defined, VALUE is the value it is being given.
14527# PARAMS is the parameter list in the macro definition--in most cases, it's
14528# just an empty string.
14529ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14530ac_dB='\\)[ (].*,\\1define\\2'
14531ac_dC=' '
14532ac_dD=' ,'
14533
14534uniq confdefs.h |
14535 sed -n '
14536 t rset
14537 :rset
14538 s/^[ ]*#[ ]*define[ ][ ]*//
14539 t ok
14540 d
14541 :ok
14542 s/[\\&,]/\\&/g
14543 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14544 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14545 ' >>conftest.defines
14546
14547# Remove the space that was appended to ease matching.
14548# Then replace #undef with comments. This is necessary, for
14549# example, in the case of _POSIX_SOURCE, which is predefined and required
14550# on some systems where configure will not decide to define it.
14551# (The regexp can be short, since the line contains either #define or #undef.)
14552echo 's/ $//
14553s,^[ #]*u.*,/* & */,' >>conftest.defines
14554
14555# Break up conftest.defines:
14556ac_max_sed_lines=50
14557
14558# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14559# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14560# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14561# et cetera.
14562ac_in='$ac_file_inputs'
14563ac_out='"$tmp/out1"'
14564ac_nxt='"$tmp/out2"'
14565
14566while :
14567do
14568 # Write a here document:
14569 cat >>$CONFIG_STATUS <<_ACEOF
14570 # First, check the format of the line:
14571 cat >"\$tmp/defines.sed" <<\\CEOF
14572/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14573/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14574b
14575:def
14576_ACEOF
14577 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14578 echo 'CEOF
14579 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14580 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14581 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14582 grep . conftest.tail >/dev/null || break
14583 rm -f conftest.defines
14584 mv conftest.tail conftest.defines
14585done
14586rm -f conftest.defines conftest.tail
14587
14588echo "ac_result=$ac_in" >>$CONFIG_STATUS
14589cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014590 if test x"$ac_file" != x-; then
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014591 echo "/* $configure_input */" >"$tmp/config.h"
14592 cat "$ac_result" >>"$tmp/config.h"
14593 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14594 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14595echo "$as_me: $ac_file is unchanged" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014596 else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014597 rm -f $ac_file
14598 mv "$tmp/config.h" $ac_file
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014599 fi
14600 else
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014601 echo "/* $configure_input */"
14602 cat "$ac_result"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014603 fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014604 rm -f "$tmp/out12"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014605 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014606
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014607
14608 esac
14609
14610done # for ac_tag
14611
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014612
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014613{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014614_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014615chmod +x $CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014616ac_clean_files=$ac_clean_files_save
14617
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014618
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014619# configure is writing to config.log, and then calls config.status.
14620# config.status does its own redirection, appending to config.log.
14621# Unfortunately, on DOS this fails, as config.log is still kept open
14622# by configure, so config.status won't be able to write to it; its
14623# output is simply discarded. So we exec the FD to /dev/null,
14624# effectively closing config.log, so it can be properly (re)opened and
14625# appended to by config.status. When coming back to configure, we
14626# need to make the FD available again.
14627if test "$no_create" != yes; then
14628 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014629 ac_config_status_args=
14630 test "$silent" = yes &&
14631 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014632 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014633 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014634 exec 5>>config.log
14635 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14636 # would make configure fail if this is the last instruction.
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014637 $ac_cs_success || { (exit 1); exit 1; }
Benny Prijonod5233702010-01-13 13:09:45 +000014638fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014639
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014640
Benny Prijonod9627842007-04-18 09:24:31 +000014641
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014642{ echo "$as_me:$LINENO: result:
Benny Prijonod9627842007-04-18 09:24:31 +000014643
Benny Prijonoc16c6e32007-11-18 14:53:47 +000014644Configurations 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 +000014645
Benny Prijonoc16c6e32007-11-18 14:53:47 +000014646Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000014647 - 'user.mak'
14648 - 'pjlib/include/pj/config_site.h'
14649
14650The next step now is to run 'make dep' and 'make'.
14651" >&5
Sauw Mingd8aa67c2011-08-09 04:31:41 +000014652echo "${ECHO_T}
Benny Prijonod9627842007-04-18 09:24:31 +000014653
Benny Prijonoc16c6e32007-11-18 14:53:47 +000014654Configurations 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 +000014655
Benny Prijonoc16c6e32007-11-18 14:53:47 +000014656Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000014657 - 'user.mak'
14658 - 'pjlib/include/pj/config_site.h'
14659
14660The next step now is to run 'make dep' and 'make'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014661" >&6; }
Benny Prijonod9627842007-04-18 09:24:31 +000014662