blob: 87d1dbbb3cd458a68003461966668e03030e5514 [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijono36d32492011-12-28 08:42:23 +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,
Benny Prijono36d32492011-12-28 08:42:23 +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.
Benny Prijono36d32492011-12-28 08:42:23 +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
Benny Prijono36d32492011-12-28 08:42:23 +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=:
Benny Prijono36d32492011-12-28 08:42:23 +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
Benny Prijono36d32492011-12-28 08:42:23 +000023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000025esac
Benny Prijono36d32492011-12-28 08:42:23 +000026
Benny Prijono7e0d75f2006-12-25 20:34:14 +000027fi
28
29
Benny Prijono36d32492011-12-28 08:42:23 +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
Benny Prijono36d32492011-12-28 08:42:23 +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.)
Benny Prijono36d32492011-12-28 08:42:23 +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.
Benny Prijono36d32492011-12-28 08:42:23 +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=.
Benny Prijono36d32492011-12-28 08:42:23 +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
Benny Prijono36d32492011-12-28 08:42:23 +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
Benny Prijono36d32492011-12-28 08:42:23 +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.
Benny Prijono36d32492011-12-28 08:42:23 +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 Prijonoe1105232011-10-26 06:49:34 +0000107do
Benny Prijono36d32492011-12-28 08:42:23 +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 Prijonoe1105232011-10-26 06:49:34 +0000110 else
Benny Prijono36d32492011-12-28 08:42:23 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Benny Prijonoe1105232011-10-26 06:49:34 +0000112 fi
Benny Prijono36d32492011-12-28 08:42:23 +0000113done
Benny Prijonoe1105232011-10-26 06:49:34 +0000114
Benny Prijono36d32492011-12-28 08:42:23 +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
Benny Prijono36d32492011-12-28 08:42:23 +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 ||
Benny Prijono36d32492011-12-28 08:42:23 +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
Benny Prijono36d32492011-12-28 08:42:23 +0000150# CDPATH.
151$as_unset CDPATH
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000152
153
Benny Prijono36d32492011-12-28 08:42:23 +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" ||
Benny Prijono36d32492011-12-28 08:42:23 +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
Benny Prijono36d32492011-12-28 08:42:23 +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=
Benny Prijono36d32492011-12-28 08:42:23 +0000473case `echo -n x` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000474-n*)
Benny Prijono36d32492011-12-28 08:42:23 +0000475 case `echo 'x\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijono36d32492011-12-28 08:42:23 +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
Benny Prijono36d32492011-12-28 08:42:23 +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
Benny Prijono36d32492011-12-28 08:42:23 +0000495 mkdir conf$$.dir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000496fi
Benny Prijono36d32492011-12-28 08:42:23 +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'
Benny Prijono36d32492011-12-28 08:42:23 +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
Benny Prijono36d32492011-12-28 08:42:23 +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
Benny Prijono36d32492011-12-28 08:42:23 +0000532 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000533 else
Benny Prijono36d32492011-12-28 08:42:23 +0000534 case $1 in
535 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000536 esac;
Benny Prijono36d32492011-12-28 08:42:23 +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
Benny Prijono36d32492011-12-28 08:42:23 +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=
Benny Prijono36d32492011-12-28 08:42:23 +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
Benny Prijono36d32492011-12-28 08:42:23 +0000615ac_subst_vars='SHELL
Benny Prijonoe1105232011-10-26 06:49:34 +0000616PATH_SEPARATOR
Benny Prijono36d32492011-12-28 08:42:23 +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
699ac_pjmedia_video_has_ios
700ac_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_no_opencore_amrnb
725opencore_amrnb_h_present
726opencore_amrnb_present
727ac_cross_compile
728ac_linux_poll
729ac_host
730ac_main_obj
731LIBOBJS
732LTLIBOBJS'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000733ac_subst_files=''
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000734 ac_precious_vars='build_alias
735host_alias
736target_alias
737CC
738CFLAGS
739LDFLAGS
740LIBS
741CPPFLAGS
742CXX
743CXXFLAGS
744CCC
745CPP'
746
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000747
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000748# Initialize some variables set by options.
749ac_init_help=
750ac_init_version=false
751# The variables have the same names as the options, with
752# dashes changed to underlines.
753cache_file=/dev/null
754exec_prefix=NONE
755no_create=
756no_recursion=
757prefix=NONE
758program_prefix=NONE
759program_suffix=NONE
760program_transform_name=s,x,x,
761silent=
762site=
763srcdir=
764verbose=
765x_includes=NONE
766x_libraries=NONE
767
768# Installation directory options.
769# These are left unexpanded so users can "make install exec_prefix=/foo"
770# and all the variables that are supposed to be based on exec_prefix
771# by default will actually change.
772# Use braces instead of parens because sh, perl, etc. also accept them.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000773# (The list follows the same order as the GNU Coding Standards.)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000774bindir='${exec_prefix}/bin'
775sbindir='${exec_prefix}/sbin'
776libexecdir='${exec_prefix}/libexec'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000777datarootdir='${prefix}/share'
778datadir='${datarootdir}'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000779sysconfdir='${prefix}/etc'
780sharedstatedir='${prefix}/com'
781localstatedir='${prefix}/var'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000782includedir='${prefix}/include'
783oldincludedir='/usr/include'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000784docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
785infodir='${datarootdir}/info'
786htmldir='${docdir}'
787dvidir='${docdir}'
788pdfdir='${docdir}'
789psdir='${docdir}'
790libdir='${exec_prefix}/lib'
791localedir='${datarootdir}/locale'
792mandir='${datarootdir}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000793
794ac_prev=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000795ac_dashdash=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000796for ac_option
797do
798 # If the previous option needs an argument, assign it.
799 if test -n "$ac_prev"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000800 eval $ac_prev=\$ac_option
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000801 ac_prev=
802 continue
803 fi
804
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000805 case $ac_option in
806 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 *) ac_optarg=yes ;;
808 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000809
810 # Accept the important Cygnus configure options, so we can diagnose typos.
811
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000812 case $ac_dashdash$ac_option in
813 --)
814 ac_dashdash=yes ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000815
816 -bindir | --bindir | --bindi | --bind | --bin | --bi)
817 ac_prev=bindir ;;
818 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
819 bindir=$ac_optarg ;;
820
821 -build | --build | --buil | --bui | --bu)
822 ac_prev=build_alias ;;
823 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
824 build_alias=$ac_optarg ;;
825
826 -cache-file | --cache-file | --cache-fil | --cache-fi \
827 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
828 ac_prev=cache_file ;;
829 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
830 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
831 cache_file=$ac_optarg ;;
832
833 --config-cache | -C)
834 cache_file=config.cache ;;
835
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000836 -datadir | --datadir | --datadi | --datad)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000837 ac_prev=datadir ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000838 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000839 datadir=$ac_optarg ;;
840
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000841 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842 | --dataroo | --dataro | --datar)
843 ac_prev=datarootdir ;;
844 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846 datarootdir=$ac_optarg ;;
847
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000848 -disable-* | --disable-*)
Benny Prijono36d32492011-12-28 08:42:23 +0000849 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000850 # Reject names that are not valid shell variable names.
Benny Prijono36d32492011-12-28 08:42:23 +0000851 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
852 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
853 { (exit 1); exit 1; }; }
854 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
855 eval enable_$ac_feature=no ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000856
857 -docdir | --docdir | --docdi | --doc | --do)
858 ac_prev=docdir ;;
859 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
860 docdir=$ac_optarg ;;
861
862 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
863 ac_prev=dvidir ;;
864 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
865 dvidir=$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000866
867 -enable-* | --enable-*)
Benny Prijono36d32492011-12-28 08:42:23 +0000868 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000869 # Reject names that are not valid shell variable names.
Benny Prijono36d32492011-12-28 08:42:23 +0000870 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
871 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
872 { (exit 1); exit 1; }; }
873 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
874 eval enable_$ac_feature=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000875
876 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
877 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
878 | --exec | --exe | --ex)
879 ac_prev=exec_prefix ;;
880 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
881 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
882 | --exec=* | --exe=* | --ex=*)
883 exec_prefix=$ac_optarg ;;
884
885 -gas | --gas | --ga | --g)
886 # Obsolete; use --with-gas.
887 with_gas=yes ;;
888
889 -help | --help | --hel | --he | -h)
890 ac_init_help=long ;;
891 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
892 ac_init_help=recursive ;;
893 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
894 ac_init_help=short ;;
895
896 -host | --host | --hos | --ho)
897 ac_prev=host_alias ;;
898 -host=* | --host=* | --hos=* | --ho=*)
899 host_alias=$ac_optarg ;;
900
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000901 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
902 ac_prev=htmldir ;;
903 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
904 | --ht=*)
905 htmldir=$ac_optarg ;;
906
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000907 -includedir | --includedir | --includedi | --included | --include \
908 | --includ | --inclu | --incl | --inc)
909 ac_prev=includedir ;;
910 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
911 | --includ=* | --inclu=* | --incl=* | --inc=*)
912 includedir=$ac_optarg ;;
913
914 -infodir | --infodir | --infodi | --infod | --info | --inf)
915 ac_prev=infodir ;;
916 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
917 infodir=$ac_optarg ;;
918
919 -libdir | --libdir | --libdi | --libd)
920 ac_prev=libdir ;;
921 -libdir=* | --libdir=* | --libdi=* | --libd=*)
922 libdir=$ac_optarg ;;
923
924 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
925 | --libexe | --libex | --libe)
926 ac_prev=libexecdir ;;
927 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
928 | --libexe=* | --libex=* | --libe=*)
929 libexecdir=$ac_optarg ;;
930
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000931 -localedir | --localedir | --localedi | --localed | --locale)
932 ac_prev=localedir ;;
933 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
934 localedir=$ac_optarg ;;
935
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000936 -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 ac_prev=localstatedir ;;
939 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000940 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000941 localstatedir=$ac_optarg ;;
942
943 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
944 ac_prev=mandir ;;
945 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
946 mandir=$ac_optarg ;;
947
948 -nfp | --nfp | --nf)
949 # Obsolete; use --without-fp.
950 with_fp=no ;;
951
952 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000953 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000954 no_create=yes ;;
955
956 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
957 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
958 no_recursion=yes ;;
959
960 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
961 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
962 | --oldin | --oldi | --old | --ol | --o)
963 ac_prev=oldincludedir ;;
964 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
965 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
966 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
967 oldincludedir=$ac_optarg ;;
968
969 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
970 ac_prev=prefix ;;
971 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
972 prefix=$ac_optarg ;;
973
974 -program-prefix | --program-prefix | --program-prefi | --program-pref \
975 | --program-pre | --program-pr | --program-p)
976 ac_prev=program_prefix ;;
977 -program-prefix=* | --program-prefix=* | --program-prefi=* \
978 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
979 program_prefix=$ac_optarg ;;
980
981 -program-suffix | --program-suffix | --program-suffi | --program-suff \
982 | --program-suf | --program-su | --program-s)
983 ac_prev=program_suffix ;;
984 -program-suffix=* | --program-suffix=* | --program-suffi=* \
985 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
986 program_suffix=$ac_optarg ;;
987
988 -program-transform-name | --program-transform-name \
989 | --program-transform-nam | --program-transform-na \
990 | --program-transform-n | --program-transform- \
991 | --program-transform | --program-transfor \
992 | --program-transfo | --program-transf \
993 | --program-trans | --program-tran \
994 | --progr-tra | --program-tr | --program-t)
995 ac_prev=program_transform_name ;;
996 -program-transform-name=* | --program-transform-name=* \
997 | --program-transform-nam=* | --program-transform-na=* \
998 | --program-transform-n=* | --program-transform-=* \
999 | --program-transform=* | --program-transfor=* \
1000 | --program-transfo=* | --program-transf=* \
1001 | --program-trans=* | --program-tran=* \
1002 | --progr-tra=* | --program-tr=* | --program-t=*)
1003 program_transform_name=$ac_optarg ;;
1004
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001005 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1006 ac_prev=pdfdir ;;
1007 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1008 pdfdir=$ac_optarg ;;
1009
1010 -psdir | --psdir | --psdi | --psd | --ps)
1011 ac_prev=psdir ;;
1012 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1013 psdir=$ac_optarg ;;
1014
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1016 | -silent | --silent | --silen | --sile | --sil)
1017 silent=yes ;;
1018
1019 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1020 ac_prev=sbindir ;;
1021 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1022 | --sbi=* | --sb=*)
1023 sbindir=$ac_optarg ;;
1024
1025 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1026 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1027 | --sharedst | --shareds | --shared | --share | --shar \
1028 | --sha | --sh)
1029 ac_prev=sharedstatedir ;;
1030 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1031 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1032 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1033 | --sha=* | --sh=*)
1034 sharedstatedir=$ac_optarg ;;
1035
1036 -site | --site | --sit)
1037 ac_prev=site ;;
1038 -site=* | --site=* | --sit=*)
1039 site=$ac_optarg ;;
1040
1041 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1042 ac_prev=srcdir ;;
1043 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1044 srcdir=$ac_optarg ;;
1045
1046 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1047 | --syscon | --sysco | --sysc | --sys | --sy)
1048 ac_prev=sysconfdir ;;
1049 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1050 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1051 sysconfdir=$ac_optarg ;;
1052
1053 -target | --target | --targe | --targ | --tar | --ta | --t)
1054 ac_prev=target_alias ;;
1055 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1056 target_alias=$ac_optarg ;;
1057
1058 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1059 verbose=yes ;;
1060
1061 -version | --version | --versio | --versi | --vers | -V)
1062 ac_init_version=: ;;
1063
1064 -with-* | --with-*)
Benny Prijono36d32492011-12-28 08:42:23 +00001065 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001066 # Reject names that are not valid shell variable names.
Benny Prijono36d32492011-12-28 08:42:23 +00001067 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068 { echo "$as_me: error: invalid package name: $ac_package" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1071 eval with_$ac_package=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001072
1073 -without-* | --without-*)
Benny Prijono36d32492011-12-28 08:42:23 +00001074 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001075 # Reject names that are not valid shell variable names.
Benny Prijono36d32492011-12-28 08:42:23 +00001076 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077 { echo "$as_me: error: invalid package name: $ac_package" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1080 eval with_$ac_package=no ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001081
1082 --x)
1083 # Obsolete; use --with-x.
1084 with_x=yes ;;
1085
1086 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1087 | --x-incl | --x-inc | --x-in | --x-i)
1088 ac_prev=x_includes ;;
1089 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1090 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1091 x_includes=$ac_optarg ;;
1092
1093 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1094 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1095 ac_prev=x_libraries ;;
1096 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1097 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1098 x_libraries=$ac_optarg ;;
1099
Benny Prijono36d32492011-12-28 08:42:23 +00001100 -*) { echo "$as_me: error: unrecognized option: $ac_option
1101Try \`$0 --help' for more information." >&2
1102 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001103 ;;
1104
1105 *=*)
1106 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1107 # Reject names that are not valid shell variable names.
Benny Prijono36d32492011-12-28 08:42:23 +00001108 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1109 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1110 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001111 eval $ac_envvar=\$ac_optarg
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001112 export $ac_envvar ;;
1113
1114 *)
1115 # FIXME: should be removed in autoconf 3.0.
Benny Prijono36d32492011-12-28 08:42:23 +00001116 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001117 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijono36d32492011-12-28 08:42:23 +00001118 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001119 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1120 ;;
1121
1122 esac
1123done
1124
1125if test -n "$ac_prev"; then
1126 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Benny Prijono36d32492011-12-28 08:42:23 +00001127 { echo "$as_me: error: missing argument to $ac_option" >&2
1128 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001129fi
1130
Benny Prijono36d32492011-12-28 08:42:23 +00001131# Be sure to have absolute directory names.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001132for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1133 datadir sysconfdir sharedstatedir localstatedir includedir \
1134 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1135 libdir localedir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001136do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001137 eval ac_val=\$$ac_var
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001138 case $ac_val in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001139 [\\/$]* | ?:[\\/]* ) continue;;
1140 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001141 esac
Benny Prijono36d32492011-12-28 08:42:23 +00001142 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1143 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001144done
1145
1146# There might be people who depend on the old broken behavior: `$host'
1147# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001148# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001149build=$build_alias
1150host=$host_alias
1151target=$target_alias
1152
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001153# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001154if test "x$host_alias" != x; then
1155 if test "x$build_alias" = x; then
1156 cross_compiling=maybe
Benny Prijono36d32492011-12-28 08:42:23 +00001157 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001158 If a cross compiler is detected then cross compile mode will be used." >&2
1159 elif test "x$build_alias" != "x$host_alias"; then
1160 cross_compiling=yes
1161 fi
1162fi
1163
1164ac_tool_prefix=
1165test -n "$host_alias" && ac_tool_prefix=$host_alias-
1166
1167test "$silent" = yes && exec 6>/dev/null
1168
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001169
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001170ac_pwd=`pwd` && test -n "$ac_pwd" &&
1171ac_ls_di=`ls -di .` &&
1172ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Benny Prijono36d32492011-12-28 08:42:23 +00001173 { echo "$as_me: error: Working directory cannot be determined" >&2
1174 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001175test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Benny Prijono36d32492011-12-28 08:42:23 +00001176 { echo "$as_me: error: pwd does not report name of working directory" >&2
1177 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001178
1179
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001180# Find the source files, if location was not specified.
1181if test -z "$srcdir"; then
1182 ac_srcdir_defaulted=yes
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001183 # Try the directory containing this script, then the parent directory.
Benny Prijono36d32492011-12-28 08:42:23 +00001184 ac_confdir=`$as_dirname -- "$0" ||
1185$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1186 X"$0" : 'X\(//\)[^/]' \| \
1187 X"$0" : 'X\(//\)$' \| \
1188 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1189echo X"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1191 s//\1/
1192 q
1193 }
1194 /^X\(\/\/\)[^/].*/{
1195 s//\1/
1196 q
1197 }
1198 /^X\(\/\/\)$/{
1199 s//\1/
1200 q
1201 }
1202 /^X\(\/\).*/{
1203 s//\1/
1204 q
1205 }
1206 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001207 srcdir=$ac_confdir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001208 if test ! -r "$srcdir/$ac_unique_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001209 srcdir=..
1210 fi
1211else
1212 ac_srcdir_defaulted=no
1213fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001214if test ! -r "$srcdir/$ac_unique_file"; then
1215 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Benny Prijono36d32492011-12-28 08:42:23 +00001216 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1217 { (exit 1); exit 1; }; }
Benny Prijono9489e7a2008-09-19 22:18:50 +00001218fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001219ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1220ac_abs_confdir=`(
Benny Prijono36d32492011-12-28 08:42:23 +00001221 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1222 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001223 pwd)`
1224# When building in place, set srcdir=.
1225if test "$ac_abs_confdir" = "$ac_pwd"; then
1226 srcdir=.
1227fi
1228# Remove unnecessary trailing slashes from srcdir.
1229# Double slashes in file names in object file debugging info
1230# mess up M-x gdb in Emacs.
1231case $srcdir in
1232*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1233esac
1234for ac_var in $ac_precious_vars; do
1235 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1236 eval ac_env_${ac_var}_value=\$${ac_var}
1237 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1239done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001240
1241#
1242# Report the --help message.
1243#
1244if test "$ac_init_help" = "long"; then
1245 # Omit some internal or obsolete options to make the list less imposing.
1246 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001247 cat <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001248\`configure' configures pjproject 1.x to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001249
1250Usage: $0 [OPTION]... [VAR=VALUE]...
1251
1252To assign environment variables (e.g., CC, CFLAGS...), specify them as
1253VAR=VALUE. See below for descriptions of some of the useful variables.
1254
1255Defaults for the options are specified in brackets.
1256
1257Configuration:
1258 -h, --help display this help and exit
1259 --help=short display options specific to this package
1260 --help=recursive display the short help of all the included packages
1261 -V, --version display version information and exit
1262 -q, --quiet, --silent do not print \`checking...' messages
1263 --cache-file=FILE cache test results in FILE [disabled]
1264 -C, --config-cache alias for \`--cache-file=config.cache'
1265 -n, --no-create do not create output files
1266 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1267
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001268Installation directories:
1269 --prefix=PREFIX install architecture-independent files in PREFIX
Benny Prijono36d32492011-12-28 08:42:23 +00001270 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001271 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Benny Prijono36d32492011-12-28 08:42:23 +00001272 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001273
1274By default, \`make install' will install all the files in
1275\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1276an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1277for instance \`--prefix=\$HOME'.
1278
1279For better control, use the options below.
1280
1281Fine tuning of the installation directories:
Benny Prijono36d32492011-12-28 08:42:23 +00001282 --bindir=DIR user executables [EPREFIX/bin]
1283 --sbindir=DIR system admin executables [EPREFIX/sbin]
1284 --libexecdir=DIR program executables [EPREFIX/libexec]
1285 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1286 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1287 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1288 --libdir=DIR object code libraries [EPREFIX/lib]
1289 --includedir=DIR C header files [PREFIX/include]
1290 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1291 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1292 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1293 --infodir=DIR info documentation [DATAROOTDIR/info]
1294 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1295 --mandir=DIR man documentation [DATAROOTDIR/man]
1296 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1297 --htmldir=DIR html documentation [DOCDIR]
1298 --dvidir=DIR dvi documentation [DOCDIR]
1299 --pdfdir=DIR pdf documentation [DOCDIR]
1300 --psdir=DIR ps documentation [DOCDIR]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001301_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001302
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001303 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001304
1305System types:
1306 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001307 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001308 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001309_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001310fi
1311
1312if test -n "$ac_init_help"; then
1313 case $ac_init_help in
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001314 short | recursive ) echo "Configuration of pjproject 1.x:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001315 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001316 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001317
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001318Optional Features:
1319 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1320 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1321 --disable-floating-point
1322 Disable floating point where possible
Benny Prijono9489e7a2008-09-19 22:18:50 +00001323 --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
Benny Prijono1d971622006-09-10 22:27:40 +00001324 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijono0b462322008-03-12 22:44:24 +00001325 --disable-oss Disable OSS audio (default: not disabled)
Benny Prijonoebb2c332008-07-28 23:40:58 +00001326 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001327 --disable-small-filter Exclude small filter in resampling
1328 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001329 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1330 --disable-g711-codec Exclude G.711 codecs from the build
1331 --disable-l16-codec Exclude Linear/L16 codec family from the build
1332 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +00001333 --disable-g722-codec Exclude G.722 codec in the build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001334 --disable-g7221-codec Exclude G.7221 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001335 --disable-speex-codec Exclude Speex codecs in the build
1336 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +00001337 --enable-libsamplerate Link with libsamplerate when available. Note that
1338 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijonoc45d9512010-12-10 11:04:30 +00001339 --disable-sdl Disable SDL (default: not disabled)
1340 --disable-ffmpeg Disable ffmpeg (default: not disabled)
1341 --disable-v4l2 Disable Video4Linux2 (default: not disabled)
Benny Prijono0822c192008-08-21 20:59:58 +00001342 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
1343 package and samples location using IPPROOT and
1344 IPPSAMPLES env var or with --with-ipp and
1345 --with-ipp-samples options
Benny Prijonoce1db762007-02-14 02:21:08 +00001346 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001347
Sauw Minge7dbbc82011-10-24 09:28:13 +00001348 --disable-opencore-amrnb
1349 Exclude OpenCORE AMR-NB support from the build
1350 (default: autodetect)
1351
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001352
Benny Prijonofe0c1272010-01-13 16:28:15 +00001353Optional Packages:
1354 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1355 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001356 --with-external-speex Use external Speex development files, not the one in
1357 "third_party" directory. When this option is set,
1358 make sure that Speex is accessible to use (hint: use
1359 CFLAGS and LDFLAGS env var to set the include/lib
1360 paths)
1361 --with-external-gsm Use external GSM codec library, not the one in
1362 "third_party" directory. When this option is set,
1363 make sure that the GSM include/lib files are
1364 accessible to use (hint: use CFLAGS and LDFLAGS env
1365 var to set the include/lib paths)
1366 --with-external-pa Use external PortAudio development files, not the
1367 one in "third_party" directory. When this option is
1368 set, make sure that PortAudio is accessible to use
1369 (hint: use CFLAGS and LDFLAGS env var to set the
1370 include/lib paths)
Benny Prijono5b0af632011-07-20 03:16:25 +00001371 --with-sdl=DIR Specify alternate libSDL prefix
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00001372 --with-ffmpeg=DIR Specify alternate FFMPEG prefix
Benny Prijono3965f192010-02-10 18:46:05 +00001373 --with-ipp=DIR Specify the Intel IPP location
1374 --with-ipp-samples=DIR Specify the Intel IPP samples location
1375 --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or
Benny Prijono46bd0842010-02-12 14:12:41 +00001376 "em64t. Default is blank for IA32"
Benny Prijonofe0c1272010-01-13 16:28:15 +00001377
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001378Some influential environment variables:
1379 CC C compiler command
1380 CFLAGS C compiler flags
1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1382 nonstandard directory <lib dir>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001383 LIBS libraries to pass to the linker, e.g. -l<library>
Benny Prijono36d32492011-12-28 08:42:23 +00001384 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001385 you have headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001386 CXX C++ compiler command
1387 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001388 CPP C preprocessor
1389
1390Use these variables to override the choices made by `configure' or to help
1391it to find libraries and programs with nonstandard names/locations.
1392
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001393_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001394ac_status=$?
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001395fi
1396
1397if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Benny Prijono36d32492011-12-28 08:42:23 +00001400 test -d "$ac_dir" || continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001401 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001402
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001403case "$ac_dir" in
1404.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405*)
Benny Prijono36d32492011-12-28 08:42:23 +00001406 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001407 # A ".." for each directory in $ac_dir_suffix.
Benny Prijono36d32492011-12-28 08:42:23 +00001408 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412 esac ;;
1413esac
1414ac_abs_top_builddir=$ac_pwd
1415ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416# for backward compatibility:
1417ac_top_builddir=$ac_top_build_prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001418
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001419case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001420 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001421 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001425 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1428 *) # Relative name.
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001432esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001433ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001434
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure" --help=recursive
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001443 else
Benny Prijono36d32492011-12-28 08:42:23 +00001444 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001445 fi || ac_status=$?
1446 cd "$ac_pwd" || { ac_status=$?; break; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001447 done
1448fi
1449
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001450test -n "$ac_init_help" && exit $ac_status
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001451if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001452 cat <<\_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001453pjproject configure 1.x
Benny Prijono36d32492011-12-28 08:42:23 +00001454generated by GNU Autoconf 2.61
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001455
Benny Prijono36d32492011-12-28 08:42:23 +00001456Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14572002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001458This configure script is free software; the Free Software Foundation
1459gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001460_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001461 exit
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001462fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001463cat >config.log <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001464This file contains any messages produced by compilers while
1465running configure, to aid debugging if configure makes a mistake.
1466
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001467It was created by pjproject $as_me 1.x, which was
Benny Prijono36d32492011-12-28 08:42:23 +00001468generated by GNU Autoconf 2.61. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001469
1470 $ $0 $@
1471
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001472_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001473exec 5>>config.log
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001474{
1475cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001476## --------- ##
1477## Platform. ##
1478## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001479
1480hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1481uname -m = `(uname -m) 2>/dev/null || echo unknown`
1482uname -r = `(uname -r) 2>/dev/null || echo unknown`
1483uname -s = `(uname -s) 2>/dev/null || echo unknown`
1484uname -v = `(uname -v) 2>/dev/null || echo unknown`
1485
1486/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1487/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1488
1489/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1490/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1491/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001492/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001493/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1494/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1495/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1496
1497_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001498
1499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500for as_dir in $PATH
1501do
1502 IFS=$as_save_IFS
1503 test -z "$as_dir" && as_dir=.
Benny Prijono36d32492011-12-28 08:42:23 +00001504 echo "PATH: $as_dir"
1505done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001506IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001507
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001508} >&5
1509
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001510cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001511
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001512
1513## ----------- ##
1514## Core tests. ##
1515## ----------- ##
1516
1517_ACEOF
1518
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001519
1520# Keep a trace of the command line.
1521# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001522# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001523# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001524# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001525ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001526ac_configure_args0=
1527ac_configure_args1=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001528ac_must_keep_next=false
1529for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001530do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001531 for ac_arg
1532 do
1533 case $ac_arg in
1534 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1536 | -silent | --silent | --silen | --sile | --sil)
1537 continue ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001538 *\'*)
Benny Prijono36d32492011-12-28 08:42:23 +00001539 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001540 esac
1541 case $ac_pass in
Benny Prijono36d32492011-12-28 08:42:23 +00001542 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001543 2)
Benny Prijono36d32492011-12-28 08:42:23 +00001544 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001545 if test $ac_must_keep_next = true; then
1546 ac_must_keep_next=false # Got value, back to normal.
1547 else
1548 case $ac_arg in
1549 *=* | --config-cache | -C | -disable-* | --disable-* \
1550 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1551 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1552 | -with-* | --with-* | -without-* | --without-* | --x)
1553 case "$ac_configure_args0 " in
1554 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1555 esac
1556 ;;
1557 -* ) ac_must_keep_next=true ;;
1558 esac
1559 fi
Benny Prijono36d32492011-12-28 08:42:23 +00001560 ac_configure_args="$ac_configure_args '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001561 ;;
1562 esac
1563 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001564done
Benny Prijono36d32492011-12-28 08:42:23 +00001565$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1566$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 +00001567
1568# When interrupted or exit'd, cleanup temporary files, and complete
1569# config.log. We remove comments because anyway the quotes in there
1570# would cause problems or look ugly.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001571# WARNING: Use '\'' to represent an apostrophe within the trap.
1572# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001573trap 'exit_status=$?
1574 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001575 {
1576 echo
1577
1578 cat <<\_ASBOX
1579## ---------------- ##
1580## Cache variables. ##
1581## ---------------- ##
1582_ASBOX
1583 echo
1584 # The following way of writing the cache mishandles newlines in values,
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001585(
1586 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1587 eval ac_val=\$$ac_var
1588 case $ac_val in #(
1589 *${as_nl}*)
1590 case $ac_var in #(
Benny Prijono36d32492011-12-28 08:42:23 +00001591 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1592echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001593 esac
1594 case $ac_var in #(
1595 _ | IFS | as_nl) ;; #(
Benny Prijono36d32492011-12-28 08:42:23 +00001596 *) $as_unset $ac_var ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001597 esac ;;
1598 esac
1599 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001600 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001601 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1602 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001603 sed -n \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001604 "s/'\''/'\''\\\\'\'''\''/g;
1605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1606 ;; #(
Benny Prijonoe2746132008-09-27 13:16:35 +00001607 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoe2746132008-09-27 13:16:35 +00001609 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001610 esac |
1611 sort
1612)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001613 echo
1614
1615 cat <<\_ASBOX
1616## ----------------- ##
1617## Output variables. ##
1618## ----------------- ##
1619_ASBOX
1620 echo
1621 for ac_var in $ac_subst_vars
1622 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001623 eval ac_val=\$$ac_var
1624 case $ac_val in
Benny Prijono36d32492011-12-28 08:42:23 +00001625 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001626 esac
Benny Prijono36d32492011-12-28 08:42:23 +00001627 echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001628 done | sort
1629 echo
1630
1631 if test -n "$ac_subst_files"; then
1632 cat <<\_ASBOX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001633## ------------------- ##
1634## File substitutions. ##
1635## ------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001636_ASBOX
1637 echo
1638 for ac_var in $ac_subst_files
1639 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001640 eval ac_val=\$$ac_var
1641 case $ac_val in
Benny Prijono36d32492011-12-28 08:42:23 +00001642 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001643 esac
Benny Prijono36d32492011-12-28 08:42:23 +00001644 echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001645 done | sort
1646 echo
1647 fi
1648
1649 if test -s confdefs.h; then
1650 cat <<\_ASBOX
1651## ----------- ##
1652## confdefs.h. ##
1653## ----------- ##
1654_ASBOX
1655 echo
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001656 cat confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001657 echo
1658 fi
1659 test "$ac_signal" != 0 &&
Benny Prijono36d32492011-12-28 08:42:23 +00001660 echo "$as_me: caught signal $ac_signal"
1661 echo "$as_me: exit $exit_status"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001662 } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001663 rm -f core *.core core.conftest.* &&
1664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001665 exit $exit_status
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001666' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001667for ac_signal in 1 2 13 15; do
Benny Prijono36d32492011-12-28 08:42:23 +00001668 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001669done
1670ac_signal=0
1671
1672# confdefs.h avoids OS command line length limits that DEFS can exceed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001673rm -f -r conftest* confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001674
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001675# Predefined preprocessor variables.
1676
1677cat >>confdefs.h <<_ACEOF
1678#define PACKAGE_NAME "$PACKAGE_NAME"
1679_ACEOF
1680
Benny Prijono36d32492011-12-28 08:42:23 +00001681
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001682cat >>confdefs.h <<_ACEOF
1683#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1684_ACEOF
1685
Benny Prijono36d32492011-12-28 08:42:23 +00001686
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001687cat >>confdefs.h <<_ACEOF
1688#define PACKAGE_VERSION "$PACKAGE_VERSION"
1689_ACEOF
1690
Benny Prijono36d32492011-12-28 08:42:23 +00001691
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001692cat >>confdefs.h <<_ACEOF
1693#define PACKAGE_STRING "$PACKAGE_STRING"
1694_ACEOF
1695
Benny Prijono36d32492011-12-28 08:42:23 +00001696
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001697cat >>confdefs.h <<_ACEOF
1698#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1699_ACEOF
1700
1701
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001702# Let the site file select an alternate cache file if it wants to.
Benny Prijono36d32492011-12-28 08:42:23 +00001703# Prefer explicitly selected file to automatically selected ones.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001704if test -n "$CONFIG_SITE"; then
Benny Prijono36d32492011-12-28 08:42:23 +00001705 set x "$CONFIG_SITE"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001706elif test "x$prefix" != xNONE; then
Benny Prijono36d32492011-12-28 08:42:23 +00001707 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001708else
Benny Prijono36d32492011-12-28 08:42:23 +00001709 set x "$ac_default_prefix/share/config.site" \
1710 "$ac_default_prefix/etc/config.site"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001711fi
Benny Prijono36d32492011-12-28 08:42:23 +00001712shift
1713for ac_site_file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001714do
Benny Prijono36d32492011-12-28 08:42:23 +00001715 if test -r "$ac_site_file"; then
1716 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1717echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001718 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001719 . "$ac_site_file"
1720 fi
1721done
1722
1723if test -r "$cache_file"; then
Benny Prijono36d32492011-12-28 08:42:23 +00001724 # Some versions of bash will fail to source /dev/null (special
1725 # files actually), so we avoid doing that.
1726 if test -f "$cache_file"; then
1727 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1728echo "$as_me: loading cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001729 case $cache_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001730 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1731 *) . "./$cache_file";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001732 esac
1733 fi
1734else
Benny Prijono36d32492011-12-28 08:42:23 +00001735 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1736echo "$as_me: creating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001737 >$cache_file
1738fi
1739
1740# Check that the precious variables saved in the cache have kept the same
1741# value.
1742ac_cache_corrupted=false
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001743for ac_var in $ac_precious_vars; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001744 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1745 eval ac_new_set=\$ac_env_${ac_var}_set
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001746 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1747 eval ac_new_val=\$ac_env_${ac_var}_value
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001748 case $ac_old_set,$ac_new_set in
1749 set,)
Benny Prijono36d32492011-12-28 08:42:23 +00001750 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1751echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001752 ac_cache_corrupted=: ;;
1753 ,set)
Benny Prijono36d32492011-12-28 08:42:23 +00001754 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1755echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001756 ac_cache_corrupted=: ;;
1757 ,);;
1758 *)
1759 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijono36d32492011-12-28 08:42:23 +00001760 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1761echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1762 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1763echo "$as_me: former value: $ac_old_val" >&2;}
1764 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1765echo "$as_me: current value: $ac_new_val" >&2;}
1766 ac_cache_corrupted=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001767 fi;;
1768 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001769 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001770 if test "$ac_new_set" = set; then
1771 case $ac_new_val in
Benny Prijono36d32492011-12-28 08:42:23 +00001772 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001773 *) ac_arg=$ac_var=$ac_new_val ;;
1774 esac
1775 case " $ac_configure_args " in
1776 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Benny Prijono36d32492011-12-28 08:42:23 +00001777 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001778 esac
1779 fi
1780done
1781if $ac_cache_corrupted; then
Benny Prijono36d32492011-12-28 08:42:23 +00001782 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1783echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1784 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1785echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1786 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001787fi
Benny Prijono36d32492011-12-28 08:42:23 +00001788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001812
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001813ac_ext=c
1814ac_cpp='$CPP $CPPFLAGS'
1815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1817ac_compiler_gnu=$ac_cv_c_compiler_gnu
1818
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001819
1820
Benny Prijono5b818b22006-09-17 22:58:51 +00001821host_orig="$host"
1822
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001823ac_aux_dir=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001824for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Benny Prijono36d32492011-12-28 08:42:23 +00001825 if test -f "$ac_dir/install-sh"; then
1826 ac_aux_dir=$ac_dir
1827 ac_install_sh="$ac_aux_dir/install-sh -c"
1828 break
1829 elif test -f "$ac_dir/install.sh"; then
1830 ac_aux_dir=$ac_dir
1831 ac_install_sh="$ac_aux_dir/install.sh -c"
1832 break
1833 elif test -f "$ac_dir/shtool"; then
1834 ac_aux_dir=$ac_dir
1835 ac_install_sh="$ac_aux_dir/shtool install -c"
1836 break
1837 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001838done
1839if test -z "$ac_aux_dir"; then
Benny Prijono36d32492011-12-28 08:42:23 +00001840 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1841echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1842 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001843fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001844
1845# These three variables are undocumented and unsupported,
1846# and are intended to be withdrawn in a future Autoconf release.
1847# They can cause serious problems if a builder's source tree is in a directory
1848# whose full name contains unusual characters.
1849ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1850ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1851ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1852
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001853
1854# Make sure we can run config.sub.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001855$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Benny Prijono36d32492011-12-28 08:42:23 +00001856 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1857echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1858 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001859
Benny Prijono36d32492011-12-28 08:42:23 +00001860{ echo "$as_me:$LINENO: checking build system type" >&5
1861echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1862if test "${ac_cv_build+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001864else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001865 ac_build_alias=$build_alias
1866test "x$ac_build_alias" = x &&
1867 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1868test "x$ac_build_alias" = x &&
Benny Prijono36d32492011-12-28 08:42:23 +00001869 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1870echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1871 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001872ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Benny Prijono36d32492011-12-28 08:42:23 +00001873 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1874echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1875 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001876
1877fi
Benny Prijono36d32492011-12-28 08:42:23 +00001878{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1879echo "${ECHO_T}$ac_cv_build" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001880case $ac_cv_build in
1881*-*-*) ;;
Benny Prijono36d32492011-12-28 08:42:23 +00001882*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1883echo "$as_me: error: invalid value of canonical build" >&2;}
1884 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001885esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001886build=$ac_cv_build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001887ac_save_IFS=$IFS; IFS='-'
1888set x $ac_cv_build
1889shift
1890build_cpu=$1
1891build_vendor=$2
1892shift; shift
1893# Remember, the first character of IFS is used to create $*,
1894# except with old shells:
1895build_os=$*
1896IFS=$ac_save_IFS
1897case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001898
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001899
Benny Prijono36d32492011-12-28 08:42:23 +00001900{ echo "$as_me:$LINENO: checking host system type" >&5
1901echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1902if test "${ac_cv_host+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001904else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001905 if test "x$host_alias" = x; then
1906 ac_cv_host=$ac_cv_build
1907else
1908 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Benny Prijono36d32492011-12-28 08:42:23 +00001909 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1910echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1911 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001912fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001913
1914fi
Benny Prijono36d32492011-12-28 08:42:23 +00001915{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1916echo "${ECHO_T}$ac_cv_host" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001917case $ac_cv_host in
1918*-*-*) ;;
Benny Prijono36d32492011-12-28 08:42:23 +00001919*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1920echo "$as_me: error: invalid value of canonical host" >&2;}
1921 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001922esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001923host=$ac_cv_host
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001924ac_save_IFS=$IFS; IFS='-'
1925set x $ac_cv_host
1926shift
1927host_cpu=$1
1928host_vendor=$2
1929shift; shift
1930# Remember, the first character of IFS is used to create $*,
1931# except with old shells:
1932host_os=$*
1933IFS=$ac_save_IFS
1934case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001935
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001936
Benny Prijono36d32492011-12-28 08:42:23 +00001937{ echo "$as_me:$LINENO: checking target system type" >&5
1938echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1939if test "${ac_cv_target+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001941else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001942 if test "x$target_alias" = x; then
1943 ac_cv_target=$ac_cv_host
1944else
1945 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Benny Prijono36d32492011-12-28 08:42:23 +00001946 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1947echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1948 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001949fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001950
1951fi
Benny Prijono36d32492011-12-28 08:42:23 +00001952{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1953echo "${ECHO_T}$ac_cv_target" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001954case $ac_cv_target in
1955*-*-*) ;;
Benny Prijono36d32492011-12-28 08:42:23 +00001956*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1957echo "$as_me: error: invalid value of canonical target" >&2;}
1958 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001959esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001960target=$ac_cv_target
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001961ac_save_IFS=$IFS; IFS='-'
1962set x $ac_cv_target
1963shift
1964target_cpu=$1
1965target_vendor=$2
1966shift; shift
1967# Remember, the first character of IFS is used to create $*,
1968# except with old shells:
1969target_os=$*
1970IFS=$ac_save_IFS
1971case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001972
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001973
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001974# The aliases save the names the user supplied, while $host etc.
1975# will get canonicalized.
1976test -n "$target_alias" &&
1977 test "$program_prefix$program_suffix$program_transform_name" = \
1978 NONENONEs,x,x, &&
1979 program_prefix=${target_alias}-
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001980ac_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 +00001981
Benny Prijono8ec5eae2010-05-12 10:59:20 +00001982ac_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 +00001983
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001984
Benny Prijono12483112007-03-12 10:44:38 +00001985
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001986if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00001987 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00001988else
1989 CFLAGS="$CFLAGS"
1990fi
1991
1992CXXFLAGS="$CFLAGS $CXXFLAGS"
1993
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001994ac_ext=c
1995ac_cpp='$CPP $CPPFLAGS'
1996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998ac_compiler_gnu=$ac_cv_c_compiler_gnu
1999if test -n "$ac_tool_prefix"; then
2000 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2001set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijono36d32492011-12-28 08:42:23 +00002002{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2004if test "${ac_cv_prog_CC+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002006else
2007 if test -n "$CC"; then
2008 ac_cv_prog_CC="$CC" # Let the user override the test.
2009else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011for as_dir in $PATH
2012do
2013 IFS=$as_save_IFS
2014 test -z "$as_dir" && as_dir=.
Benny Prijono36d32492011-12-28 08:42:23 +00002015 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002016 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 +00002017 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Benny Prijono36d32492011-12-28 08:42:23 +00002018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002019 break 2
2020 fi
2021done
Benny Prijono36d32492011-12-28 08:42:23 +00002022done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002023IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002024
2025fi
2026fi
2027CC=$ac_cv_prog_CC
2028if test -n "$CC"; then
Benny Prijono36d32492011-12-28 08:42:23 +00002029 { echo "$as_me:$LINENO: result: $CC" >&5
2030echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002031else
Benny Prijono36d32492011-12-28 08:42:23 +00002032 { echo "$as_me:$LINENO: result: no" >&5
2033echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002034fi
2035
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002036
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002037fi
2038if test -z "$ac_cv_prog_CC"; then
2039 ac_ct_CC=$CC
2040 # Extract the first word of "gcc", so it can be a program name with args.
2041set dummy gcc; ac_word=$2
Benny Prijono36d32492011-12-28 08:42:23 +00002042{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2044if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002046else
2047 if test -n "$ac_ct_CC"; then
2048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2049else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051for as_dir in $PATH
2052do
2053 IFS=$as_save_IFS
2054 test -z "$as_dir" && as_dir=.
Benny Prijono36d32492011-12-28 08:42:23 +00002055 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002056 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 +00002057 ac_cv_prog_ac_ct_CC="gcc"
Benny Prijono36d32492011-12-28 08:42:23 +00002058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002059 break 2
2060 fi
2061done
Benny Prijono36d32492011-12-28 08:42:23 +00002062done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002063IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002064
2065fi
2066fi
2067ac_ct_CC=$ac_cv_prog_ac_ct_CC
2068if test -n "$ac_ct_CC"; then
Benny Prijono36d32492011-12-28 08:42:23 +00002069 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2070echo "${ECHO_T}$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002071else
Benny Prijono36d32492011-12-28 08:42:23 +00002072 { echo "$as_me:$LINENO: result: no" >&5
2073echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002074fi
2075
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002076 if test "x$ac_ct_CC" = x; then
2077 CC=""
2078 else
2079 case $cross_compiling:$ac_tool_warned in
2080yes:)
Benny Prijono36d32492011-12-28 08:42:23 +00002081{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2082whose name does not start with the host triplet. If you think this
2083configuration is useful to you, please write to autoconf@gnu.org." >&5
2084echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2085whose name does not start with the host triplet. If you think this
2086configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002087ac_tool_warned=yes ;;
2088esac
2089 CC=$ac_ct_CC
2090 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002091else
2092 CC="$ac_cv_prog_CC"
2093fi
2094
2095if test -z "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002096 if test -n "$ac_tool_prefix"; then
2097 # 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 +00002098set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijono36d32492011-12-28 08:42:23 +00002099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2101if test "${ac_cv_prog_CC+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002103else
2104 if test -n "$CC"; then
2105 ac_cv_prog_CC="$CC" # Let the user override the test.
2106else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108for as_dir in $PATH
2109do
2110 IFS=$as_save_IFS
2111 test -z "$as_dir" && as_dir=.
Benny Prijono36d32492011-12-28 08:42:23 +00002112 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002113 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 +00002114 ac_cv_prog_CC="${ac_tool_prefix}cc"
Benny Prijono36d32492011-12-28 08:42:23 +00002115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002116 break 2
2117 fi
2118done
Benny Prijono36d32492011-12-28 08:42:23 +00002119done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002120IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002121
2122fi
2123fi
2124CC=$ac_cv_prog_CC
2125if test -n "$CC"; then
Benny Prijono36d32492011-12-28 08:42:23 +00002126 { echo "$as_me:$LINENO: result: $CC" >&5
2127echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002128else
Benny Prijono36d32492011-12-28 08:42:23 +00002129 { echo "$as_me:$LINENO: result: no" >&5
2130echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002131fi
2132
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002133
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002134 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002135fi
2136if test -z "$CC"; then
2137 # Extract the first word of "cc", so it can be a program name with args.
2138set dummy cc; ac_word=$2
Benny Prijono36d32492011-12-28 08:42:23 +00002139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2141if test "${ac_cv_prog_CC+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002143else
2144 if test -n "$CC"; then
2145 ac_cv_prog_CC="$CC" # Let the user override the test.
2146else
2147 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149for as_dir in $PATH
2150do
2151 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=.
Benny Prijono36d32492011-12-28 08:42:23 +00002153 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002154 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 +00002155 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2156 ac_prog_rejected=yes
2157 continue
2158 fi
2159 ac_cv_prog_CC="cc"
Benny Prijono36d32492011-12-28 08:42:23 +00002160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002161 break 2
2162 fi
2163done
Benny Prijono36d32492011-12-28 08:42:23 +00002164done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002165IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002166
2167if test $ac_prog_rejected = yes; then
2168 # We found a bogon in the path, so make sure we never use it.
2169 set dummy $ac_cv_prog_CC
2170 shift
2171 if test $# != 0; then
2172 # We chose a different compiler from the bogus one.
2173 # However, it has the same basename, so the bogon will be chosen
2174 # first if we set CC to just the basename; use the full file name.
2175 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002176 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002177 fi
2178fi
2179fi
2180fi
2181CC=$ac_cv_prog_CC
2182if test -n "$CC"; then
Benny Prijono36d32492011-12-28 08:42:23 +00002183 { echo "$as_me:$LINENO: result: $CC" >&5
2184echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002185else
Benny Prijono36d32492011-12-28 08:42:23 +00002186 { echo "$as_me:$LINENO: result: no" >&5
2187echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002188fi
2189
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002190
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002191fi
2192if test -z "$CC"; then
2193 if test -n "$ac_tool_prefix"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002194 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002195 do
2196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2197set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono36d32492011-12-28 08:42:23 +00002198{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2200if test "${ac_cv_prog_CC+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002202else
2203 if test -n "$CC"; then
2204 ac_cv_prog_CC="$CC" # Let the user override the test.
2205else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207for as_dir in $PATH
2208do
2209 IFS=$as_save_IFS
2210 test -z "$as_dir" && as_dir=.
Benny Prijono36d32492011-12-28 08:42:23 +00002211 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002212 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 +00002213 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Benny Prijono36d32492011-12-28 08:42:23 +00002214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002215 break 2
2216 fi
2217done
Benny Prijono36d32492011-12-28 08:42:23 +00002218done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002219IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002220
2221fi
2222fi
2223CC=$ac_cv_prog_CC
2224if test -n "$CC"; then
Benny Prijono36d32492011-12-28 08:42:23 +00002225 { echo "$as_me:$LINENO: result: $CC" >&5
2226echo "${ECHO_T}$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002227else
Benny Prijono36d32492011-12-28 08:42:23 +00002228 { echo "$as_me:$LINENO: result: no" >&5
2229echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002230fi
2231
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002232
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002233 test -n "$CC" && break
2234 done
2235fi
2236if test -z "$CC"; then
2237 ac_ct_CC=$CC
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002238 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002239do
2240 # Extract the first word of "$ac_prog", so it can be a program name with args.
2241set dummy $ac_prog; ac_word=$2
Benny Prijono36d32492011-12-28 08:42:23 +00002242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2244if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002246else
2247 if test -n "$ac_ct_CC"; then
2248 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2249else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251for as_dir in $PATH
2252do
2253 IFS=$as_save_IFS
2254 test -z "$as_dir" && as_dir=.
Benny Prijono36d32492011-12-28 08:42:23 +00002255 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002256 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 +00002257 ac_cv_prog_ac_ct_CC="$ac_prog"
Benny Prijono36d32492011-12-28 08:42:23 +00002258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002259 break 2
2260 fi
2261done
Benny Prijono36d32492011-12-28 08:42:23 +00002262done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002263IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002264
2265fi
2266fi
2267ac_ct_CC=$ac_cv_prog_ac_ct_CC
2268if test -n "$ac_ct_CC"; then
Benny Prijono36d32492011-12-28 08:42:23 +00002269 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2270echo "${ECHO_T}$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002271else
Benny Prijono36d32492011-12-28 08:42:23 +00002272 { echo "$as_me:$LINENO: result: no" >&5
2273echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002274fi
2275
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002276
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002277 test -n "$ac_ct_CC" && break
2278done
2279
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002280 if test "x$ac_ct_CC" = x; then
2281 CC=""
2282 else
2283 case $cross_compiling:$ac_tool_warned in
2284yes:)
Benny Prijono36d32492011-12-28 08:42:23 +00002285{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2286whose name does not start with the host triplet. If you think this
2287configuration is useful to you, please write to autoconf@gnu.org." >&5
2288echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2289whose name does not start with the host triplet. If you think this
2290configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002291ac_tool_warned=yes ;;
2292esac
2293 CC=$ac_ct_CC
2294 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002295fi
2296
2297fi
2298
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002299
Benny Prijono36d32492011-12-28 08:42:23 +00002300test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2301See \`config.log' for more details." >&5
2302echo "$as_me: error: no acceptable C compiler found in \$PATH
2303See \`config.log' for more details." >&2;}
2304 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002305
2306# Provide some information about the compiler.
Benny Prijono36d32492011-12-28 08:42:23 +00002307echo "$as_me:$LINENO: checking for C compiler version" >&5
2308ac_compiler=`set X $ac_compile; echo $2`
2309{ (ac_try="$ac_compiler --version >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002310case "(($ac_try" in
2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312 *) ac_try_echo=$ac_try;;
2313esac
Benny Prijono36d32492011-12-28 08:42:23 +00002314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2315 (eval "$ac_compiler --version >&5") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002316 ac_status=$?
Benny Prijono36d32492011-12-28 08:42:23 +00002317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }
2319{ (ac_try="$ac_compiler -v >&5"
2320case "(($ac_try" in
2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322 *) ac_try_echo=$ac_try;;
2323esac
2324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2325 (eval "$ac_compiler -v >&5") 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }
2329{ (ac_try="$ac_compiler -V >&5"
2330case "(($ac_try" in
2331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2332 *) ac_try_echo=$ac_try;;
2333esac
2334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2335 (eval "$ac_compiler -V >&5") 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002339
Benny Prijono36d32492011-12-28 08:42:23 +00002340cat >conftest.$ac_ext <<_ACEOF
2341/* confdefs.h. */
2342_ACEOF
2343cat confdefs.h >>conftest.$ac_ext
2344cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002345/* end confdefs.h. */
Benny Prijono5bbebc02010-06-15 05:21:43 +00002346
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002347int
2348main ()
2349{
2350
2351 ;
2352 return 0;
2353}
2354_ACEOF
2355ac_clean_files_save=$ac_clean_files
Benny Prijono36d32492011-12-28 08:42:23 +00002356ac_clean_files="$ac_clean_files a.out a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002357# Try to create an executable without -o first, disregard a.out.
2358# It will help us diagnose broken compilers, and finding out an intuition
2359# of exeext.
Benny Prijono36d32492011-12-28 08:42:23 +00002360{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2361echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2362ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2363#
2364# List of possible output files, starting from the most likely.
2365# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2366# only as a last resort. b.out is created by i960 compilers.
2367ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2368#
2369# The IRIX 6 linker writes into existing files which may not be
2370# executable, retaining their permissions. Remove them first so a
2371# subsequent execution test works.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002372ac_rmfiles=
2373for ac_file in $ac_files
2374do
2375 case $ac_file in
Benny Prijono36d32492011-12-28 08:42:23 +00002376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002377 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2378 esac
2379done
2380rm -f $ac_rmfiles
2381
Benny Prijono36d32492011-12-28 08:42:23 +00002382if { (ac_try="$ac_link_default"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002383case "(($ac_try" in
2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2386esac
Benny Prijono36d32492011-12-28 08:42:23 +00002387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002388 (eval "$ac_link_default") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002389 ac_status=$?
Benny Prijono36d32492011-12-28 08:42:23 +00002390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002392 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2393# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2394# in a Makefile. We should not override ac_cv_exeext if it was cached,
2395# so that the user can short-circuit this test for compilers unknown to
2396# Autoconf.
2397for ac_file in $ac_files ''
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002398do
2399 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002400 case $ac_file in
Benny Prijono36d32492011-12-28 08:42:23 +00002401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002402 ;;
2403 [ab].out )
2404 # We found the default executable, but exeext='' is most
2405 # certainly right.
2406 break;;
2407 *.* )
Benny Prijono36d32492011-12-28 08:42:23 +00002408 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002409 then :; else
2410 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2411 fi
2412 # We set ac_cv_exeext here because the later test for it is not
2413 # safe: cross compilers may not add the suffix if given an `-o'
2414 # argument, so we may need to know it at that point already.
2415 # Even if this section looks crufty: it has the advantage of
2416 # actually working.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002417 break;;
2418 * )
2419 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002420 esac
2421done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002422test "$ac_cv_exeext" = no && ac_cv_exeext=
2423
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002424else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002425 ac_file=''
2426fi
Benny Prijono36d32492011-12-28 08:42:23 +00002427
2428{ echo "$as_me:$LINENO: result: $ac_file" >&5
2429echo "${ECHO_T}$ac_file" >&6; }
2430if test -z "$ac_file"; then
2431 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002432sed 's/^/| /' conftest.$ac_ext >&5
2433
Benny Prijono36d32492011-12-28 08:42:23 +00002434{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2435See \`config.log' for more details." >&5
2436echo "$as_me: error: C compiler cannot create executables
2437See \`config.log' for more details." >&2;}
2438 { (exit 77); exit 77; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002439fi
Benny Prijono36d32492011-12-28 08:42:23 +00002440
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002441ac_exeext=$ac_cv_exeext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002442
Benny Prijono36d32492011-12-28 08:42:23 +00002443# Check that the compiler produces executables we can run. If not, either
2444# the compiler is broken, or we cross compile.
2445{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2446echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2447# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2448# If not cross compiling, check that we can run a simple program.
2449if test "$cross_compiling" != yes; then
2450 if { ac_try='./$ac_file'
2451 { (case "(($ac_try" in
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2454esac
2455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456 (eval "$ac_try") 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; }; then
2460 cross_compiling=no
2461 else
2462 if test "$cross_compiling" = maybe; then
2463 cross_compiling=yes
2464 else
2465 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2466If you meant to cross compile, use \`--host'.
2467See \`config.log' for more details." >&5
2468echo "$as_me: error: cannot run C compiled programs.
2469If you meant to cross compile, use \`--host'.
2470See \`config.log' for more details." >&2;}
2471 { (exit 1); exit 1; }; }
2472 fi
2473 fi
2474fi
2475{ echo "$as_me:$LINENO: result: yes" >&5
2476echo "${ECHO_T}yes" >&6; }
2477
2478rm -f a.out a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002479ac_clean_files=$ac_clean_files_save
Benny Prijono36d32492011-12-28 08:42:23 +00002480# Check that the compiler produces executables we can run. If not, either
2481# the compiler is broken, or we cross compile.
2482{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2483echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2484{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2485echo "${ECHO_T}$cross_compiling" >&6; }
2486
2487{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2488echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2489if { (ac_try="$ac_link"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002490case "(($ac_try" in
2491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2492 *) ac_try_echo=$ac_try;;
2493esac
Benny Prijono36d32492011-12-28 08:42:23 +00002494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002495 (eval "$ac_link") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002496 ac_status=$?
Benny Prijono36d32492011-12-28 08:42:23 +00002497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002499 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2500# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2501# work properly (i.e., refer to `conftest.exe'), while it won't with
2502# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002503for ac_file in conftest.exe conftest conftest.*; do
2504 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002505 case $ac_file in
Benny Prijono36d32492011-12-28 08:42:23 +00002506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002507 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002508 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002509 * ) break;;
2510 esac
2511done
2512else
Benny Prijono36d32492011-12-28 08:42:23 +00002513 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2514See \`config.log' for more details." >&5
2515echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2516See \`config.log' for more details." >&2;}
2517 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002518fi
Benny Prijono36d32492011-12-28 08:42:23 +00002519
2520rm -f conftest$ac_cv_exeext
2521{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2522echo "${ECHO_T}$ac_cv_exeext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002523
2524rm -f conftest.$ac_ext
2525EXEEXT=$ac_cv_exeext
2526ac_exeext=$EXEEXT
Benny Prijono36d32492011-12-28 08:42:23 +00002527{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2528echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2529if test "${ac_cv_objext+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoe1105232011-10-26 06:49:34 +00002531else
Benny Prijono36d32492011-12-28 08:42:23 +00002532 cat >conftest.$ac_ext <<_ACEOF
2533/* confdefs.h. */
2534_ACEOF
2535cat confdefs.h >>conftest.$ac_ext
2536cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002537/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002538
2539int
2540main ()
2541{
2542
2543 ;
2544 return 0;
2545}
2546_ACEOF
2547rm -f conftest.o conftest.obj
Benny Prijono36d32492011-12-28 08:42:23 +00002548if { (ac_try="$ac_compile"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002549case "(($ac_try" in
2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 *) ac_try_echo=$ac_try;;
2552esac
Benny Prijono36d32492011-12-28 08:42:23 +00002553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002554 (eval "$ac_compile") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002555 ac_status=$?
Benny Prijono36d32492011-12-28 08:42:23 +00002556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002558 for ac_file in conftest.o conftest.obj conftest.*; do
2559 test -f "$ac_file" || continue;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002560 case $ac_file in
Benny Prijono36d32492011-12-28 08:42:23 +00002561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002562 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2563 break;;
2564 esac
2565done
2566else
Benny Prijono36d32492011-12-28 08:42:23 +00002567 echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002568sed 's/^/| /' conftest.$ac_ext >&5
2569
Benny Prijono36d32492011-12-28 08:42:23 +00002570{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2571See \`config.log' for more details." >&5
2572echo "$as_me: error: cannot compute suffix of object files: cannot compile
2573See \`config.log' for more details." >&2;}
2574 { (exit 1); exit 1; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002575fi
Benny Prijono36d32492011-12-28 08:42:23 +00002576
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002577rm -f conftest.$ac_cv_objext conftest.$ac_ext
2578fi
Benny Prijono36d32492011-12-28 08:42:23 +00002579{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2580echo "${ECHO_T}$ac_cv_objext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002581OBJEXT=$ac_cv_objext
2582ac_objext=$OBJEXT
Benny Prijono36d32492011-12-28 08:42:23 +00002583{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2584echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2585if test "${ac_cv_c_compiler_gnu+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002587else
Benny Prijono36d32492011-12-28 08:42:23 +00002588 cat >conftest.$ac_ext <<_ACEOF
2589/* confdefs.h. */
2590_ACEOF
2591cat confdefs.h >>conftest.$ac_ext
2592cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002593/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002594
2595int
2596main ()
2597{
2598#ifndef __GNUC__
2599 choke me
2600#endif
2601
2602 ;
2603 return 0;
2604}
2605_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00002606rm -f conftest.$ac_objext
2607if { (ac_try="$ac_compile"
2608case "(($ac_try" in
2609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610 *) ac_try_echo=$ac_try;;
2611esac
2612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2613 (eval "$ac_compile") 2>conftest.er1
2614 ac_status=$?
2615 grep -v '^ *+' conftest.er1 >conftest.err
2616 rm -f conftest.er1
2617 cat conftest.err >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } && {
2620 test -z "$ac_c_werror_flag" ||
2621 test ! -s conftest.err
2622 } && test -s conftest.$ac_objext; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002623 ac_compiler_gnu=yes
2624else
Benny Prijono36d32492011-12-28 08:42:23 +00002625 echo "$as_me: failed program was:" >&5
2626sed 's/^/| /' conftest.$ac_ext >&5
2627
2628 ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002629fi
Benny Prijono36d32492011-12-28 08:42:23 +00002630
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002632ac_cv_c_compiler_gnu=$ac_compiler_gnu
2633
2634fi
Benny Prijono36d32492011-12-28 08:42:23 +00002635{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2636echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2637GCC=`test $ac_compiler_gnu = yes && echo yes`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002638ac_test_CFLAGS=${CFLAGS+set}
2639ac_save_CFLAGS=$CFLAGS
Benny Prijono36d32492011-12-28 08:42:23 +00002640{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2641echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2642if test "${ac_cv_prog_cc_g+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002644else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002645 ac_save_c_werror_flag=$ac_c_werror_flag
2646 ac_c_werror_flag=yes
2647 ac_cv_prog_cc_g=no
2648 CFLAGS="-g"
Benny Prijono36d32492011-12-28 08:42:23 +00002649 cat >conftest.$ac_ext <<_ACEOF
2650/* confdefs.h. */
2651_ACEOF
2652cat confdefs.h >>conftest.$ac_ext
2653cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002654/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002655
2656int
2657main ()
2658{
2659
2660 ;
2661 return 0;
2662}
2663_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00002664rm -f conftest.$ac_objext
2665if { (ac_try="$ac_compile"
2666case "(($ac_try" in
2667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668 *) ac_try_echo=$ac_try;;
2669esac
2670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2671 (eval "$ac_compile") 2>conftest.er1
2672 ac_status=$?
2673 grep -v '^ *+' conftest.er1 >conftest.err
2674 rm -f conftest.er1
2675 cat conftest.err >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } && {
2678 test -z "$ac_c_werror_flag" ||
2679 test ! -s conftest.err
2680 } && test -s conftest.$ac_objext; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002681 ac_cv_prog_cc_g=yes
2682else
Benny Prijono36d32492011-12-28 08:42:23 +00002683 echo "$as_me: failed program was:" >&5
2684sed 's/^/| /' conftest.$ac_ext >&5
2685
2686 CFLAGS=""
2687 cat >conftest.$ac_ext <<_ACEOF
2688/* confdefs.h. */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002692/* end confdefs.h. */
2693
2694int
2695main ()
2696{
2697
2698 ;
2699 return 0;
2700}
2701_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00002702rm -f conftest.$ac_objext
2703if { (ac_try="$ac_compile"
2704case "(($ac_try" in
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2707esac
2708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709 (eval "$ac_compile") 2>conftest.er1
2710 ac_status=$?
2711 grep -v '^ *+' conftest.er1 >conftest.err
2712 rm -f conftest.er1
2713 cat conftest.err >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } && {
2716 test -z "$ac_c_werror_flag" ||
2717 test ! -s conftest.err
2718 } && test -s conftest.$ac_objext; then
2719 :
Benny Prijonoe1105232011-10-26 06:49:34 +00002720else
Benny Prijono36d32492011-12-28 08:42:23 +00002721 echo "$as_me: failed program was:" >&5
2722sed 's/^/| /' conftest.$ac_ext >&5
2723
2724 ac_c_werror_flag=$ac_save_c_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002725 CFLAGS="-g"
Benny Prijono36d32492011-12-28 08:42:23 +00002726 cat >conftest.$ac_ext <<_ACEOF
2727/* confdefs.h. */
2728_ACEOF
2729cat confdefs.h >>conftest.$ac_ext
2730cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002731/* end confdefs.h. */
2732
2733int
2734main ()
2735{
2736
2737 ;
2738 return 0;
2739}
2740_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00002741rm -f conftest.$ac_objext
2742if { (ac_try="$ac_compile"
2743case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746esac
2747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compile") 2>conftest.er1
2749 ac_status=$?
2750 grep -v '^ *+' conftest.er1 >conftest.err
2751 rm -f conftest.er1
2752 cat conftest.err >&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); } && {
2755 test -z "$ac_c_werror_flag" ||
2756 test ! -s conftest.err
2757 } && test -s conftest.$ac_objext; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002758 ac_cv_prog_cc_g=yes
Benny Prijono36d32492011-12-28 08:42:23 +00002759else
2760 echo "$as_me: failed program was:" >&5
2761sed 's/^/| /' conftest.$ac_ext >&5
2762
2763
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002764fi
Benny Prijono36d32492011-12-28 08:42:23 +00002765
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002767fi
Benny Prijono36d32492011-12-28 08:42:23 +00002768
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770fi
Benny Prijono36d32492011-12-28 08:42:23 +00002771
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2773 ac_c_werror_flag=$ac_save_c_werror_flag
2774fi
Benny Prijono36d32492011-12-28 08:42:23 +00002775{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2776echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002777if test "$ac_test_CFLAGS" = set; then
2778 CFLAGS=$ac_save_CFLAGS
2779elif test $ac_cv_prog_cc_g = yes; then
2780 if test "$GCC" = yes; then
2781 CFLAGS="-g -O2"
2782 else
2783 CFLAGS="-g"
2784 fi
2785else
2786 if test "$GCC" = yes; then
2787 CFLAGS="-O2"
2788 else
2789 CFLAGS=
2790 fi
2791fi
Benny Prijono36d32492011-12-28 08:42:23 +00002792{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2793echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2794if test "${ac_cv_prog_cc_c89+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002796else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002797 ac_cv_prog_cc_c89=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002798ac_save_CC=$CC
Benny Prijono36d32492011-12-28 08:42:23 +00002799cat >conftest.$ac_ext <<_ACEOF
2800/* confdefs.h. */
2801_ACEOF
2802cat confdefs.h >>conftest.$ac_ext
2803cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002804/* end confdefs.h. */
2805#include <stdarg.h>
2806#include <stdio.h>
2807#include <sys/types.h>
2808#include <sys/stat.h>
2809/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2810struct buf { int x; };
2811FILE * (*rcsopen) (struct buf *, struct stat *, int);
2812static char *e (p, i)
2813 char **p;
2814 int i;
2815{
2816 return p[i];
2817}
2818static char *f (char * (*g) (char **, int), char **p, ...)
2819{
2820 char *s;
2821 va_list v;
2822 va_start (v,p);
2823 s = g (p, va_arg (v,int));
2824 va_end (v);
2825 return s;
2826}
2827
2828/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2829 function prototypes and stuff, but not '\xHH' hex character constants.
2830 These don't provoke an error unfortunately, instead are silently treated
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002831 as 'x'. The following induces an error, until -std is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002832 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2833 array size at least. It's necessary to write '\x00'==0 to get something
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002834 that's true only with -std. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002835int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2836
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002837/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2838 inside strings and character constants. */
2839#define FOO(x) 'x'
2840int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2841
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002842int test (int i, double x);
2843struct s1 {int (*f) (int a);};
2844struct s2 {int (*f) (double a);};
2845int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2846int argc;
2847char **argv;
2848int
2849main ()
2850{
2851return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2852 ;
2853 return 0;
2854}
2855_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002856for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2857 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002858do
2859 CC="$ac_save_CC $ac_arg"
Benny Prijono36d32492011-12-28 08:42:23 +00002860 rm -f conftest.$ac_objext
2861if { (ac_try="$ac_compile"
2862case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2865esac
2866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867 (eval "$ac_compile") 2>conftest.er1
2868 ac_status=$?
2869 grep -v '^ *+' conftest.er1 >conftest.err
2870 rm -f conftest.er1
2871 cat conftest.err >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } && {
2874 test -z "$ac_c_werror_flag" ||
2875 test ! -s conftest.err
2876 } && test -s conftest.$ac_objext; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002877 ac_cv_prog_cc_c89=$ac_arg
Benny Prijono36d32492011-12-28 08:42:23 +00002878else
2879 echo "$as_me: failed program was:" >&5
2880sed 's/^/| /' conftest.$ac_ext >&5
2881
2882
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002883fi
Benny Prijono36d32492011-12-28 08:42:23 +00002884
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002885rm -f core conftest.err conftest.$ac_objext
2886 test "x$ac_cv_prog_cc_c89" != "xno" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002887done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002888rm -f conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002889CC=$ac_save_CC
2890
2891fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002892# AC_CACHE_VAL
2893case "x$ac_cv_prog_cc_c89" in
2894 x)
Benny Prijono36d32492011-12-28 08:42:23 +00002895 { echo "$as_me:$LINENO: result: none needed" >&5
2896echo "${ECHO_T}none needed" >&6; } ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002897 xno)
Benny Prijono36d32492011-12-28 08:42:23 +00002898 { echo "$as_me:$LINENO: result: unsupported" >&5
2899echo "${ECHO_T}unsupported" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002900 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002901 CC="$CC $ac_cv_prog_cc_c89"
Benny Prijono36d32492011-12-28 08:42:23 +00002902 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2903echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002904esac
2905
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002906
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002907ac_ext=c
2908ac_cpp='$CPP $CPPFLAGS'
2909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2911ac_compiler_gnu=$ac_cv_c_compiler_gnu
2912
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002913ac_ext=cpp
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002914ac_cpp='$CXXCPP $CPPFLAGS'
2915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002918if test -z "$CXX"; then
2919 if test -n "$CCC"; then
2920 CXX=$CCC
2921 else
2922 if test -n "$ac_tool_prefix"; then
2923 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 +00002924 do
2925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2926set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono36d32492011-12-28 08:42:23 +00002927{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2929if test "${ac_cv_prog_CXX+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002931else
2932 if test -n "$CXX"; then
2933 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2934else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936for as_dir in $PATH
2937do
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
Benny Prijono36d32492011-12-28 08:42:23 +00002940 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002941 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 +00002942 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Benny Prijono36d32492011-12-28 08:42:23 +00002943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002944 break 2
2945 fi
2946done
Benny Prijono36d32492011-12-28 08:42:23 +00002947done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002948IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002949
2950fi
2951fi
2952CXX=$ac_cv_prog_CXX
2953if test -n "$CXX"; then
Benny Prijono36d32492011-12-28 08:42:23 +00002954 { echo "$as_me:$LINENO: result: $CXX" >&5
2955echo "${ECHO_T}$CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002956else
Benny Prijono36d32492011-12-28 08:42:23 +00002957 { echo "$as_me:$LINENO: result: no" >&5
2958echo "${ECHO_T}no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002959fi
2960
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002961
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002962 test -n "$CXX" && break
2963 done
2964fi
2965if test -z "$CXX"; then
2966 ac_ct_CXX=$CXX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002967 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 +00002968do
2969 # Extract the first word of "$ac_prog", so it can be a program name with args.
2970set dummy $ac_prog; ac_word=$2
Benny Prijono36d32492011-12-28 08:42:23 +00002971{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2973if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002975else
2976 if test -n "$ac_ct_CXX"; then
2977 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2978else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH
2981do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
Benny Prijono36d32492011-12-28 08:42:23 +00002984 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002985 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 +00002986 ac_cv_prog_ac_ct_CXX="$ac_prog"
Benny Prijono36d32492011-12-28 08:42:23 +00002987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002988 break 2
2989 fi
2990done
Benny Prijono36d32492011-12-28 08:42:23 +00002991done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002992IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00002993
2994fi
2995fi
2996ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2997if test -n "$ac_ct_CXX"; then
Benny Prijono36d32492011-12-28 08:42:23 +00002998 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2999echo "${ECHO_T}$ac_ct_CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003000else
Benny Prijono36d32492011-12-28 08:42:23 +00003001 { echo "$as_me:$LINENO: result: no" >&5
3002echo "${ECHO_T}no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003003fi
3004
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003005
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003006 test -n "$ac_ct_CXX" && break
3007done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003008
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003009 if test "x$ac_ct_CXX" = x; then
3010 CXX="g++"
3011 else
3012 case $cross_compiling:$ac_tool_warned in
3013yes:)
Benny Prijono36d32492011-12-28 08:42:23 +00003014{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3015whose name does not start with the host triplet. If you think this
3016configuration is useful to you, please write to autoconf@gnu.org." >&5
3017echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3018whose name does not start with the host triplet. If you think this
3019configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003020ac_tool_warned=yes ;;
3021esac
3022 CXX=$ac_ct_CXX
3023 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003024fi
3025
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003026 fi
3027fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003028# Provide some information about the compiler.
Benny Prijono36d32492011-12-28 08:42:23 +00003029echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3030ac_compiler=`set X $ac_compile; echo $2`
3031{ (ac_try="$ac_compiler --version >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003032case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
Benny Prijono36d32492011-12-28 08:42:23 +00003036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_compiler --version >&5") 2>&5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003038 ac_status=$?
Benny Prijono36d32492011-12-28 08:42:23 +00003039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }
3041{ (ac_try="$ac_compiler -v >&5"
3042case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compiler -v >&5") 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }
3051{ (ac_try="$ac_compiler -V >&5"
3052case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055esac
3056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_compiler -V >&5") 2>&5
3058 ac_status=$?
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003061
Benny Prijono36d32492011-12-28 08:42:23 +00003062{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3063echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3064if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003066else
Benny Prijono36d32492011-12-28 08:42:23 +00003067 cat >conftest.$ac_ext <<_ACEOF
3068/* confdefs.h. */
3069_ACEOF
3070cat confdefs.h >>conftest.$ac_ext
3071cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003072/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003073
3074int
3075main ()
3076{
3077#ifndef __GNUC__
3078 choke me
3079#endif
3080
3081 ;
3082 return 0;
3083}
3084_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00003085rm -f conftest.$ac_objext
3086if { (ac_try="$ac_compile"
3087case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090esac
3091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_compile") 2>conftest.er1
3093 ac_status=$?
3094 grep -v '^ *+' conftest.er1 >conftest.err
3095 rm -f conftest.er1
3096 cat conftest.err >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } && {
3099 test -z "$ac_cxx_werror_flag" ||
3100 test ! -s conftest.err
3101 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003102 ac_compiler_gnu=yes
3103else
Benny Prijono36d32492011-12-28 08:42:23 +00003104 echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003108fi
Benny Prijono36d32492011-12-28 08:42:23 +00003109
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003111ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3112
3113fi
Benny Prijono36d32492011-12-28 08:42:23 +00003114{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3115echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3116GXX=`test $ac_compiler_gnu = yes && echo yes`
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003117ac_test_CXXFLAGS=${CXXFLAGS+set}
3118ac_save_CXXFLAGS=$CXXFLAGS
Benny Prijono36d32492011-12-28 08:42:23 +00003119{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3120echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3121if test "${ac_cv_prog_cxx_g+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003123else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003124 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3125 ac_cxx_werror_flag=yes
3126 ac_cv_prog_cxx_g=no
3127 CXXFLAGS="-g"
Benny Prijono36d32492011-12-28 08:42:23 +00003128 cat >conftest.$ac_ext <<_ACEOF
3129/* confdefs.h. */
3130_ACEOF
3131cat confdefs.h >>conftest.$ac_ext
3132cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003133/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003134
3135int
3136main ()
3137{
3138
3139 ;
3140 return 0;
3141}
3142_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00003143rm -f conftest.$ac_objext
3144if { (ac_try="$ac_compile"
3145case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148esac
3149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_compile") 2>conftest.er1
3151 ac_status=$?
3152 grep -v '^ *+' conftest.er1 >conftest.err
3153 rm -f conftest.er1
3154 cat conftest.err >&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } && {
3157 test -z "$ac_cxx_werror_flag" ||
3158 test ! -s conftest.err
3159 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003160 ac_cv_prog_cxx_g=yes
3161else
Benny Prijono36d32492011-12-28 08:42:23 +00003162 echo "$as_me: failed program was:" >&5
3163sed 's/^/| /' conftest.$ac_ext >&5
3164
3165 CXXFLAGS=""
3166 cat >conftest.$ac_ext <<_ACEOF
3167/* confdefs.h. */
3168_ACEOF
3169cat confdefs.h >>conftest.$ac_ext
3170cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003171/* end confdefs.h. */
3172
3173int
3174main ()
3175{
3176
3177 ;
3178 return 0;
3179}
3180_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00003181rm -f conftest.$ac_objext
3182if { (ac_try="$ac_compile"
3183case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186esac
3187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_compile") 2>conftest.er1
3189 ac_status=$?
3190 grep -v '^ *+' conftest.er1 >conftest.err
3191 rm -f conftest.er1
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } && {
3195 test -z "$ac_cxx_werror_flag" ||
3196 test ! -s conftest.err
3197 } && test -s conftest.$ac_objext; then
3198 :
Benny Prijonoe1105232011-10-26 06:49:34 +00003199else
Benny Prijono36d32492011-12-28 08:42:23 +00003200 echo "$as_me: failed program was:" >&5
3201sed 's/^/| /' conftest.$ac_ext >&5
3202
3203 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003204 CXXFLAGS="-g"
Benny Prijono36d32492011-12-28 08:42:23 +00003205 cat >conftest.$ac_ext <<_ACEOF
3206/* confdefs.h. */
3207_ACEOF
3208cat confdefs.h >>conftest.$ac_ext
3209cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003210/* end confdefs.h. */
3211
3212int
3213main ()
3214{
3215
3216 ;
3217 return 0;
3218}
3219_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00003220rm -f conftest.$ac_objext
3221if { (ac_try="$ac_compile"
3222case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225esac
3226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_compile") 2>conftest.er1
3228 ac_status=$?
3229 grep -v '^ *+' conftest.er1 >conftest.err
3230 rm -f conftest.er1
3231 cat conftest.err >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } && {
3234 test -z "$ac_cxx_werror_flag" ||
3235 test ! -s conftest.err
3236 } && test -s conftest.$ac_objext; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003237 ac_cv_prog_cxx_g=yes
Benny Prijono36d32492011-12-28 08:42:23 +00003238else
3239 echo "$as_me: failed program was:" >&5
3240sed 's/^/| /' conftest.$ac_ext >&5
3241
3242
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003243fi
Benny Prijono36d32492011-12-28 08:42:23 +00003244
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003246fi
Benny Prijono36d32492011-12-28 08:42:23 +00003247
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249fi
Benny Prijono36d32492011-12-28 08:42:23 +00003250
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3253fi
Benny Prijono36d32492011-12-28 08:42:23 +00003254{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3255echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003256if test "$ac_test_CXXFLAGS" = set; then
3257 CXXFLAGS=$ac_save_CXXFLAGS
3258elif test $ac_cv_prog_cxx_g = yes; then
3259 if test "$GXX" = yes; then
3260 CXXFLAGS="-g -O2"
3261 else
3262 CXXFLAGS="-g"
3263 fi
3264else
3265 if test "$GXX" = yes; then
3266 CXXFLAGS="-O2"
3267 else
3268 CXXFLAGS=
3269 fi
3270fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003271ac_ext=c
3272ac_cpp='$CPP $CPPFLAGS'
3273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003277ac_ext=c
3278ac_cpp='$CPP $CPPFLAGS'
3279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281ac_compiler_gnu=$ac_cv_c_compiler_gnu
3282
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003283
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003284if test -z "$CROSS_COMPILE"; then
3285 CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'`
3286fi
3287
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003288if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003289
3290if test "$LD" = ""; then LD="$CC"; fi
3291
Sauw Minge7dbbc82011-10-24 09:28:13 +00003292if test "$LDOUT" = ""; then LDOUT="-o "; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003293
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003294if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003295
3296if test "$OBJEXT" = ""; then OBJEXT='o'; fi
3297
3298if test "$LIBEXT" = ""; then LIBEXT='a'; fi
3299
3300if test "$LIBEXT2" = ""; then LIBEXT2=""; fi
3301
Sauw Minge7dbbc82011-10-24 09:28:13 +00003302if test "$CC_OUT" = ""; then CC_OUT="-o "; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003303
3304if test "$CC_INC" = ""; then CC_INC="-I"; fi
3305
3306if test "$CC_DEF" = ""; then CC_DEF="-D"; fi
3307
3308if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi
3309
3310if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi
3311
3312
3313
3314
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003315
Benny Prijono0822c192008-08-21 20:59:58 +00003316
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003317
3318case $host in
Benny Prijono53847a32007-09-24 16:10:13 +00003319 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003320 if pwd -W 2&> /dev/null; then
3321 ac_pjdir=`pwd -W`
3322 else
3323 # We're probably cross-compiling mingw on Linux
3324 ac_pjdir=`pwd`
3325 fi
Benny Prijono53847a32007-09-24 16:10:13 +00003326 ;;
3327 *)
3328 ac_pjdir=`pwd`
3329 ;;
3330esac
Benny Prijono12483112007-03-12 10:44:38 +00003331
3332
Benny Prijono36d32492011-12-28 08:42:23 +00003333
3334{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
3335echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
3336if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003338else
3339 ac_check_lib_save_LIBS=$LIBS
3340LIBS="-lpthread $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +00003341cat >conftest.$ac_ext <<_ACEOF
3342/* confdefs.h. */
3343_ACEOF
3344cat confdefs.h >>conftest.$ac_ext
3345cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003346/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003347
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003348/* Override any GCC internal prototype to avoid an error.
3349 Use char because int might match the return type of a GCC
3350 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003351#ifdef __cplusplus
3352extern "C"
3353#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003354char pthread_create ();
3355int
3356main ()
3357{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003358return pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003359 ;
3360 return 0;
3361}
3362_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00003363rm -f conftest.$ac_objext conftest$ac_exeext
3364if { (ac_try="$ac_link"
3365case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368esac
3369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370 (eval "$ac_link") 2>conftest.er1
3371 ac_status=$?
3372 grep -v '^ *+' conftest.er1 >conftest.err
3373 rm -f conftest.er1
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } && {
3377 test -z "$ac_c_werror_flag" ||
3378 test ! -s conftest.err
3379 } && test -s conftest$ac_exeext &&
3380 $as_test_x conftest$ac_exeext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003381 ac_cv_lib_pthread_pthread_create=yes
3382else
Benny Prijono36d32492011-12-28 08:42:23 +00003383 echo "$as_me: failed program was:" >&5
3384sed 's/^/| /' conftest.$ac_ext >&5
3385
3386 ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003387fi
Benny Prijono36d32492011-12-28 08:42:23 +00003388
3389rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3390 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003391LIBS=$ac_check_lib_save_LIBS
3392fi
Benny Prijono36d32492011-12-28 08:42:23 +00003393{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
3394echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
3395if test $ac_cv_lib_pthread_pthread_create = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003396 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003397#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003398_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003399
3400 LIBS="-lpthread $LIBS"
3401
3402fi
3403
Benny Prijono36d32492011-12-28 08:42:23 +00003404
3405{ echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5
3406echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6; }
3407if test "${ac_cv_lib_wsock32_puts+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003409else
3410 ac_check_lib_save_LIBS=$LIBS
3411LIBS="-lwsock32 $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +00003412cat >conftest.$ac_ext <<_ACEOF
3413/* confdefs.h. */
3414_ACEOF
3415cat confdefs.h >>conftest.$ac_ext
3416cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003417/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003418
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003419/* Override any GCC internal prototype to avoid an error.
3420 Use char because int might match the return type of a GCC
3421 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003422#ifdef __cplusplus
3423extern "C"
3424#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003425char puts ();
3426int
3427main ()
3428{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003429return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003430 ;
3431 return 0;
3432}
3433_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00003434rm -f conftest.$ac_objext conftest$ac_exeext
3435if { (ac_try="$ac_link"
3436case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439esac
3440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3441 (eval "$ac_link") 2>conftest.er1
3442 ac_status=$?
3443 grep -v '^ *+' conftest.er1 >conftest.err
3444 rm -f conftest.er1
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } && {
3448 test -z "$ac_c_werror_flag" ||
3449 test ! -s conftest.err
3450 } && test -s conftest$ac_exeext &&
3451 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003452 ac_cv_lib_wsock32_puts=yes
3453else
Benny Prijono36d32492011-12-28 08:42:23 +00003454 echo "$as_me: failed program was:" >&5
3455sed 's/^/| /' conftest.$ac_ext >&5
3456
3457 ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003458fi
Benny Prijono36d32492011-12-28 08:42:23 +00003459
3460rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3461 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003462LIBS=$ac_check_lib_save_LIBS
3463fi
Benny Prijono36d32492011-12-28 08:42:23 +00003464{ echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5
3465echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6; }
3466if test $ac_cv_lib_wsock32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003467 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003468#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003469_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003470
3471 LIBS="-lwsock32 $LIBS"
3472
3473fi
3474
Benny Prijono36d32492011-12-28 08:42:23 +00003475
3476{ echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5
3477echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6; }
3478if test "${ac_cv_lib_ws2_32_puts+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003480else
3481 ac_check_lib_save_LIBS=$LIBS
3482LIBS="-lws2_32 $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +00003483cat >conftest.$ac_ext <<_ACEOF
3484/* confdefs.h. */
3485_ACEOF
3486cat confdefs.h >>conftest.$ac_ext
3487cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003488/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003489
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003490/* Override any GCC internal prototype to avoid an error.
3491 Use char because int might match the return type of a GCC
3492 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003493#ifdef __cplusplus
3494extern "C"
3495#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003496char puts ();
3497int
3498main ()
3499{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003500return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003501 ;
3502 return 0;
3503}
3504_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00003505rm -f conftest.$ac_objext conftest$ac_exeext
3506if { (ac_try="$ac_link"
3507case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510esac
3511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3512 (eval "$ac_link") 2>conftest.er1
3513 ac_status=$?
3514 grep -v '^ *+' conftest.er1 >conftest.err
3515 rm -f conftest.er1
3516 cat conftest.err >&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); } && {
3519 test -z "$ac_c_werror_flag" ||
3520 test ! -s conftest.err
3521 } && test -s conftest$ac_exeext &&
3522 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003523 ac_cv_lib_ws2_32_puts=yes
3524else
Benny Prijono36d32492011-12-28 08:42:23 +00003525 echo "$as_me: failed program was:" >&5
3526sed 's/^/| /' conftest.$ac_ext >&5
3527
3528 ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003529fi
Benny Prijono36d32492011-12-28 08:42:23 +00003530
3531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3532 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003533LIBS=$ac_check_lib_save_LIBS
3534fi
Benny Prijono36d32492011-12-28 08:42:23 +00003535{ echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5
3536echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6; }
3537if test $ac_cv_lib_ws2_32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003538 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003539#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003540_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003541
3542 LIBS="-lws2_32 $LIBS"
3543
3544fi
3545
Benny Prijono36d32492011-12-28 08:42:23 +00003546
3547{ echo "$as_me:$LINENO: checking for puts in -lole32" >&5
3548echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6; }
3549if test "${ac_cv_lib_ole32_puts+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003551else
3552 ac_check_lib_save_LIBS=$LIBS
3553LIBS="-lole32 $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +00003554cat >conftest.$ac_ext <<_ACEOF
3555/* confdefs.h. */
3556_ACEOF
3557cat confdefs.h >>conftest.$ac_ext
3558cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003559/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003560
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003561/* Override any GCC internal prototype to avoid an error.
3562 Use char because int might match the return type of a GCC
3563 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003564#ifdef __cplusplus
3565extern "C"
3566#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003567char puts ();
3568int
3569main ()
3570{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003571return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003572 ;
3573 return 0;
3574}
3575_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00003576rm -f conftest.$ac_objext conftest$ac_exeext
3577if { (ac_try="$ac_link"
3578case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581esac
3582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_link") 2>conftest.er1
3584 ac_status=$?
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest$ac_exeext &&
3593 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003594 ac_cv_lib_ole32_puts=yes
3595else
Benny Prijono36d32492011-12-28 08:42:23 +00003596 echo "$as_me: failed program was:" >&5
3597sed 's/^/| /' conftest.$ac_ext >&5
3598
3599 ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003600fi
Benny Prijono36d32492011-12-28 08:42:23 +00003601
3602rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3603 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003604LIBS=$ac_check_lib_save_LIBS
3605fi
Benny Prijono36d32492011-12-28 08:42:23 +00003606{ echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5
3607echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6; }
3608if test $ac_cv_lib_ole32_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003609 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003610#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003611_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003612
3613 LIBS="-lole32 $LIBS"
3614
3615fi
3616
Benny Prijono36d32492011-12-28 08:42:23 +00003617
3618{ echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5
3619echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6; }
3620if test "${ac_cv_lib_winmm_puts+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003622else
3623 ac_check_lib_save_LIBS=$LIBS
3624LIBS="-lwinmm $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +00003625cat >conftest.$ac_ext <<_ACEOF
3626/* confdefs.h. */
3627_ACEOF
3628cat confdefs.h >>conftest.$ac_ext
3629cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003630/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003631
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003632/* Override any GCC internal prototype to avoid an error.
3633 Use char because int might match the return type of a GCC
3634 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003635#ifdef __cplusplus
3636extern "C"
3637#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003638char puts ();
3639int
3640main ()
3641{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003642return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003643 ;
3644 return 0;
3645}
3646_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00003647rm -f conftest.$ac_objext conftest$ac_exeext
3648if { (ac_try="$ac_link"
3649case "(($ac_try" in
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3652esac
3653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3654 (eval "$ac_link") 2>conftest.er1
3655 ac_status=$?
3656 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } && {
3661 test -z "$ac_c_werror_flag" ||
3662 test ! -s conftest.err
3663 } && test -s conftest$ac_exeext &&
3664 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003665 ac_cv_lib_winmm_puts=yes
3666else
Benny Prijono36d32492011-12-28 08:42:23 +00003667 echo "$as_me: failed program was:" >&5
3668sed 's/^/| /' conftest.$ac_ext >&5
3669
3670 ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003671fi
Benny Prijono36d32492011-12-28 08:42:23 +00003672
3673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3674 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003675LIBS=$ac_check_lib_save_LIBS
3676fi
Benny Prijono36d32492011-12-28 08:42:23 +00003677{ echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5
3678echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6; }
3679if test $ac_cv_lib_winmm_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003680 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003681#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003682_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003683
3684 LIBS="-lwinmm $LIBS"
3685
3686fi
3687
Benny Prijono36d32492011-12-28 08:42:23 +00003688
3689{ echo "$as_me:$LINENO: checking for puts in -lsocket" >&5
3690echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6; }
3691if test "${ac_cv_lib_socket_puts+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003693else
3694 ac_check_lib_save_LIBS=$LIBS
3695LIBS="-lsocket $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +00003696cat >conftest.$ac_ext <<_ACEOF
3697/* confdefs.h. */
3698_ACEOF
3699cat confdefs.h >>conftest.$ac_ext
3700cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003701/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003702
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003703/* Override any GCC internal prototype to avoid an error.
3704 Use char because int might match the return type of a GCC
3705 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003706#ifdef __cplusplus
3707extern "C"
3708#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003709char puts ();
3710int
3711main ()
3712{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003713return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003714 ;
3715 return 0;
3716}
3717_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00003718rm -f conftest.$ac_objext conftest$ac_exeext
3719if { (ac_try="$ac_link"
3720case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723esac
3724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725 (eval "$ac_link") 2>conftest.er1
3726 ac_status=$?
3727 grep -v '^ *+' conftest.er1 >conftest.err
3728 rm -f conftest.er1
3729 cat conftest.err >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } && {
3732 test -z "$ac_c_werror_flag" ||
3733 test ! -s conftest.err
3734 } && test -s conftest$ac_exeext &&
3735 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003736 ac_cv_lib_socket_puts=yes
3737else
Benny Prijono36d32492011-12-28 08:42:23 +00003738 echo "$as_me: failed program was:" >&5
3739sed 's/^/| /' conftest.$ac_ext >&5
3740
3741 ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003742fi
Benny Prijono36d32492011-12-28 08:42:23 +00003743
3744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3745 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003746LIBS=$ac_check_lib_save_LIBS
3747fi
Benny Prijono36d32492011-12-28 08:42:23 +00003748{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5
3749echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6; }
3750if test $ac_cv_lib_socket_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003751 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003752#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003753_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003754
3755 LIBS="-lsocket $LIBS"
3756
3757fi
3758
Benny Prijono36d32492011-12-28 08:42:23 +00003759
3760{ echo "$as_me:$LINENO: checking for puts in -lrt" >&5
3761echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6; }
3762if test "${ac_cv_lib_rt_puts+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003764else
3765 ac_check_lib_save_LIBS=$LIBS
3766LIBS="-lrt $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +00003767cat >conftest.$ac_ext <<_ACEOF
3768/* confdefs.h. */
3769_ACEOF
3770cat confdefs.h >>conftest.$ac_ext
3771cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003772/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003773
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003774/* Override any GCC internal prototype to avoid an error.
3775 Use char because int might match the return type of a GCC
3776 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003777#ifdef __cplusplus
3778extern "C"
3779#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003780char puts ();
3781int
3782main ()
3783{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003784return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003785 ;
3786 return 0;
3787}
3788_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00003789rm -f conftest.$ac_objext conftest$ac_exeext
3790if { (ac_try="$ac_link"
3791case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794esac
3795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_link") 2>conftest.er1
3797 ac_status=$?
3798 grep -v '^ *+' conftest.er1 >conftest.err
3799 rm -f conftest.er1
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } && {
3803 test -z "$ac_c_werror_flag" ||
3804 test ! -s conftest.err
3805 } && test -s conftest$ac_exeext &&
3806 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003807 ac_cv_lib_rt_puts=yes
3808else
Benny Prijono36d32492011-12-28 08:42:23 +00003809 echo "$as_me: failed program was:" >&5
3810sed 's/^/| /' conftest.$ac_ext >&5
3811
3812 ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003813fi
Benny Prijono36d32492011-12-28 08:42:23 +00003814
3815rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3816 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003817LIBS=$ac_check_lib_save_LIBS
3818fi
Benny Prijono36d32492011-12-28 08:42:23 +00003819{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5
3820echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6; }
3821if test $ac_cv_lib_rt_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003822 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003823#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003824_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003825
3826 LIBS="-lrt $LIBS"
3827
3828fi
3829
Benny Prijono36d32492011-12-28 08:42:23 +00003830
3831{ echo "$as_me:$LINENO: checking for puts in -lnsl" >&5
3832echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6; }
3833if test "${ac_cv_lib_nsl_puts+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003835else
3836 ac_check_lib_save_LIBS=$LIBS
3837LIBS="-lnsl $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +00003838cat >conftest.$ac_ext <<_ACEOF
3839/* confdefs.h. */
3840_ACEOF
3841cat confdefs.h >>conftest.$ac_ext
3842cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003843/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003844
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003845/* Override any GCC internal prototype to avoid an error.
3846 Use char because int might match the return type of a GCC
3847 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003848#ifdef __cplusplus
3849extern "C"
3850#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003851char puts ();
3852int
3853main ()
3854{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003855return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003856 ;
3857 return 0;
3858}
3859_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00003860rm -f conftest.$ac_objext conftest$ac_exeext
3861if { (ac_try="$ac_link"
3862case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865esac
3866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_link") 2>conftest.er1
3868 ac_status=$?
3869 grep -v '^ *+' conftest.er1 >conftest.err
3870 rm -f conftest.er1
3871 cat conftest.err >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } && {
3874 test -z "$ac_c_werror_flag" ||
3875 test ! -s conftest.err
3876 } && test -s conftest$ac_exeext &&
3877 $as_test_x conftest$ac_exeext; then
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003878 ac_cv_lib_nsl_puts=yes
3879else
Benny Prijono36d32492011-12-28 08:42:23 +00003880 echo "$as_me: failed program was:" >&5
3881sed 's/^/| /' conftest.$ac_ext >&5
3882
3883 ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003884fi
Benny Prijono36d32492011-12-28 08:42:23 +00003885
3886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3887 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003888LIBS=$ac_check_lib_save_LIBS
3889fi
Benny Prijono36d32492011-12-28 08:42:23 +00003890{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5
3891echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6; }
3892if test $ac_cv_lib_nsl_puts = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003893 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003894#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003895_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003896
3897 LIBS="-lnsl $LIBS"
3898
3899fi
3900
Benny Prijono36d32492011-12-28 08:42:23 +00003901
3902{ echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3903echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; }
3904if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003906else
3907 ac_check_lib_save_LIBS=$LIBS
3908LIBS="-luuid $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +00003909cat >conftest.$ac_ext <<_ACEOF
3910/* confdefs.h. */
3911_ACEOF
3912cat confdefs.h >>conftest.$ac_ext
3913cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono4e48b512007-05-16 13:41:00 +00003914/* end confdefs.h. */
3915
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003916/* Override any GCC internal prototype to avoid an error.
3917 Use char because int might match the return type of a GCC
3918 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003919#ifdef __cplusplus
3920extern "C"
3921#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003922char uuid_generate ();
3923int
3924main ()
3925{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003926return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003927 ;
3928 return 0;
3929}
3930_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00003931rm -f conftest.$ac_objext conftest$ac_exeext
3932if { (ac_try="$ac_link"
3933case "(($ac_try" in
3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3936esac
3937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3938 (eval "$ac_link") 2>conftest.er1
3939 ac_status=$?
3940 grep -v '^ *+' conftest.er1 >conftest.err
3941 rm -f conftest.er1
3942 cat conftest.err >&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); } && {
3945 test -z "$ac_c_werror_flag" ||
3946 test ! -s conftest.err
3947 } && test -s conftest$ac_exeext &&
3948 $as_test_x conftest$ac_exeext; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003949 ac_cv_lib_uuid_uuid_generate=yes
3950else
Benny Prijono36d32492011-12-28 08:42:23 +00003951 echo "$as_me: failed program was:" >&5
3952sed 's/^/| /' conftest.$ac_ext >&5
3953
3954 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003955fi
Benny Prijono36d32492011-12-28 08:42:23 +00003956
3957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3958 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003959LIBS=$ac_check_lib_save_LIBS
3960fi
Benny Prijono36d32492011-12-28 08:42:23 +00003961{ echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
3962echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; }
3963if test $ac_cv_lib_uuid_uuid_generate = yes; then
Benny Prijono4e48b512007-05-16 13:41:00 +00003964 cat >>confdefs.h <<_ACEOF
3965#define HAVE_LIBUUID 1
3966_ACEOF
3967
3968 LIBS="-luuid $LIBS"
3969
3970fi
3971
Benny Prijono36d32492011-12-28 08:42:23 +00003972{ echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
3973echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; }
3974if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003976else
3977 ac_check_lib_save_LIBS=$LIBS
3978LIBS="-luuid $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +00003979cat >conftest.$ac_ext <<_ACEOF
3980/* confdefs.h. */
3981_ACEOF
3982cat confdefs.h >>conftest.$ac_ext
3983cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono4e48b512007-05-16 13:41:00 +00003984/* end confdefs.h. */
3985
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003986/* Override any GCC internal prototype to avoid an error.
3987 Use char because int might match the return type of a GCC
3988 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003989#ifdef __cplusplus
3990extern "C"
3991#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003992char uuid_generate ();
3993int
3994main ()
3995{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003996return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003997 ;
3998 return 0;
3999}
4000_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00004001rm -f conftest.$ac_objext conftest$ac_exeext
4002if { (ac_try="$ac_link"
4003case "(($ac_try" in
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4006esac
4007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4008 (eval "$ac_link") 2>conftest.er1
4009 ac_status=$?
4010 grep -v '^ *+' conftest.er1 >conftest.err
4011 rm -f conftest.er1
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } && {
4015 test -z "$ac_c_werror_flag" ||
4016 test ! -s conftest.err
4017 } && test -s conftest$ac_exeext &&
4018 $as_test_x conftest$ac_exeext; then
Benny Prijono4e48b512007-05-16 13:41:00 +00004019 ac_cv_lib_uuid_uuid_generate=yes
4020else
Benny Prijono36d32492011-12-28 08:42:23 +00004021 echo "$as_me: failed program was:" >&5
4022sed 's/^/| /' conftest.$ac_ext >&5
4023
4024 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00004025fi
Benny Prijono36d32492011-12-28 08:42:23 +00004026
4027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4028 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00004029LIBS=$ac_check_lib_save_LIBS
4030fi
Benny Prijono36d32492011-12-28 08:42:23 +00004031{ echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
4032echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6; }
4033if test $ac_cv_lib_uuid_uuid_generate = yes; then
Benny Prijono4e48b512007-05-16 13:41:00 +00004034 ac_has_uuid_lib=1
4035fi
4036
4037
Benny Prijono36d32492011-12-28 08:42:23 +00004038{ echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5
4039echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004040cat >>confdefs.h <<_ACEOF
4041#define PJ_M_NAME "$target_cpu"
4042_ACEOF
4043
4044
Benny Prijono36d32492011-12-28 08:42:23 +00004045{ echo "$as_me:$LINENO: checking memory alignment" >&5
4046echo $ECHO_N "checking memory alignment... $ECHO_C" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004047case $target in
Benny Prijonob18e9502010-05-19 05:51:38 +00004048 sparc64-* | ia64-* | x86_64-* )
Benny Prijono36d32492011-12-28 08:42:23 +00004049 cat >>confdefs.h <<\_ACEOF
4050#define PJ_POOL_ALIGNMENT 8
4051_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00004052
Benny Prijono36d32492011-12-28 08:42:23 +00004053 { echo "$as_me:$LINENO: result: 8 bytes" >&5
4054echo "${ECHO_T}8 bytes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004055 ;;
4056 * )
Benny Prijono36d32492011-12-28 08:42:23 +00004057 cat >>confdefs.h <<\_ACEOF
4058#define PJ_POOL_ALIGNMENT 4
4059_ACEOF
Benny Prijono1d971622006-09-10 22:27:40 +00004060
Benny Prijono36d32492011-12-28 08:42:23 +00004061 { echo "$as_me:$LINENO: result: 4 bytes (default)" >&5
4062echo "${ECHO_T}4 bytes (default)" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004063 ;;
4064esac
4065
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004066
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004067ac_ext=c
4068ac_cpp='$CPP $CPPFLAGS'
4069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijono36d32492011-12-28 08:42:23 +00004072{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4073echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004074# On Suns, sometimes $CPP names a directory.
4075if test -n "$CPP" && test -d "$CPP"; then
4076 CPP=
4077fi
4078if test -z "$CPP"; then
Benny Prijono36d32492011-12-28 08:42:23 +00004079 if test "${ac_cv_prog_CPP+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004081else
4082 # Double quotes because CPP needs to be expanded
4083 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4084 do
4085 ac_preproc_ok=false
4086for ac_c_preproc_warn_flag in '' yes
4087do
4088 # Use a header file that comes with gcc, so configuring glibc
4089 # with a fresh cross-compiler works.
4090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4091 # <limits.h> exists even on freestanding compilers.
4092 # On the NeXT, cc -E runs the code through the compiler's parser,
4093 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijono36d32492011-12-28 08:42:23 +00004094 cat >conftest.$ac_ext <<_ACEOF
4095/* confdefs.h. */
4096_ACEOF
4097cat confdefs.h >>conftest.$ac_ext
4098cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004099/* end confdefs.h. */
4100#ifdef __STDC__
4101# include <limits.h>
4102#else
4103# include <assert.h>
4104#endif
4105 Syntax error
4106_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00004107if { (ac_try="$ac_cpp conftest.$ac_ext"
4108case "(($ac_try" in
4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110 *) ac_try_echo=$ac_try;;
4111esac
4112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4114 ac_status=$?
4115 grep -v '^ *+' conftest.er1 >conftest.err
4116 rm -f conftest.er1
4117 cat conftest.err >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } >/dev/null && {
4120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4121 test ! -s conftest.err
4122 }; then
4123 :
Benny Prijonoe1105232011-10-26 06:49:34 +00004124else
Benny Prijono36d32492011-12-28 08:42:23 +00004125 echo "$as_me: failed program was:" >&5
4126sed 's/^/| /' conftest.$ac_ext >&5
4127
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004128 # Broken: fails on valid input.
4129continue
4130fi
Benny Prijono36d32492011-12-28 08:42:23 +00004131
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004132rm -f conftest.err conftest.$ac_ext
4133
4134 # OK, works on sane cases. Now check whether nonexistent headers
4135 # can be detected and how.
Benny Prijono36d32492011-12-28 08:42:23 +00004136 cat >conftest.$ac_ext <<_ACEOF
4137/* confdefs.h. */
4138_ACEOF
4139cat confdefs.h >>conftest.$ac_ext
4140cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004141/* end confdefs.h. */
4142#include <ac_nonexistent.h>
4143_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00004144if { (ac_try="$ac_cpp conftest.$ac_ext"
4145case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4148esac
4149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4151 ac_status=$?
4152 grep -v '^ *+' conftest.er1 >conftest.err
4153 rm -f conftest.er1
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } >/dev/null && {
4157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4158 test ! -s conftest.err
4159 }; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004160 # Broken: success on invalid input.
4161continue
4162else
Benny Prijono36d32492011-12-28 08:42:23 +00004163 echo "$as_me: failed program was:" >&5
4164sed 's/^/| /' conftest.$ac_ext >&5
4165
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004166 # Passes both tests.
4167ac_preproc_ok=:
4168break
4169fi
Benny Prijono36d32492011-12-28 08:42:23 +00004170
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004171rm -f conftest.err conftest.$ac_ext
4172
4173done
4174# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4175rm -f conftest.err conftest.$ac_ext
Benny Prijono36d32492011-12-28 08:42:23 +00004176if $ac_preproc_ok; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004177 break
4178fi
4179
4180 done
4181 ac_cv_prog_CPP=$CPP
4182
4183fi
4184 CPP=$ac_cv_prog_CPP
4185else
4186 ac_cv_prog_CPP=$CPP
4187fi
Benny Prijono36d32492011-12-28 08:42:23 +00004188{ echo "$as_me:$LINENO: result: $CPP" >&5
4189echo "${ECHO_T}$CPP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004190ac_preproc_ok=false
4191for ac_c_preproc_warn_flag in '' yes
4192do
4193 # Use a header file that comes with gcc, so configuring glibc
4194 # with a fresh cross-compiler works.
4195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4196 # <limits.h> exists even on freestanding compilers.
4197 # On the NeXT, cc -E runs the code through the compiler's parser,
4198 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijono36d32492011-12-28 08:42:23 +00004199 cat >conftest.$ac_ext <<_ACEOF
4200/* confdefs.h. */
4201_ACEOF
4202cat confdefs.h >>conftest.$ac_ext
4203cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004204/* end confdefs.h. */
4205#ifdef __STDC__
4206# include <limits.h>
4207#else
4208# include <assert.h>
4209#endif
4210 Syntax error
4211_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00004212if { (ac_try="$ac_cpp conftest.$ac_ext"
4213case "(($ac_try" in
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4216esac
4217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4219 ac_status=$?
4220 grep -v '^ *+' conftest.er1 >conftest.err
4221 rm -f conftest.er1
4222 cat conftest.err >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } >/dev/null && {
4225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4226 test ! -s conftest.err
4227 }; then
4228 :
Benny Prijonoe1105232011-10-26 06:49:34 +00004229else
Benny Prijono36d32492011-12-28 08:42:23 +00004230 echo "$as_me: failed program was:" >&5
4231sed 's/^/| /' conftest.$ac_ext >&5
4232
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004233 # Broken: fails on valid input.
4234continue
4235fi
Benny Prijono36d32492011-12-28 08:42:23 +00004236
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004237rm -f conftest.err conftest.$ac_ext
4238
4239 # OK, works on sane cases. Now check whether nonexistent headers
4240 # can be detected and how.
Benny Prijono36d32492011-12-28 08:42:23 +00004241 cat >conftest.$ac_ext <<_ACEOF
4242/* confdefs.h. */
4243_ACEOF
4244cat confdefs.h >>conftest.$ac_ext
4245cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004246/* end confdefs.h. */
4247#include <ac_nonexistent.h>
4248_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00004249if { (ac_try="$ac_cpp conftest.$ac_ext"
4250case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253esac
4254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4256 ac_status=$?
4257 grep -v '^ *+' conftest.er1 >conftest.err
4258 rm -f conftest.er1
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } >/dev/null && {
4262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4263 test ! -s conftest.err
4264 }; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004265 # Broken: success on invalid input.
4266continue
4267else
Benny Prijono36d32492011-12-28 08:42:23 +00004268 echo "$as_me: failed program was:" >&5
4269sed 's/^/| /' conftest.$ac_ext >&5
4270
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004271 # Passes both tests.
4272ac_preproc_ok=:
4273break
4274fi
Benny Prijono36d32492011-12-28 08:42:23 +00004275
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004276rm -f conftest.err conftest.$ac_ext
4277
4278done
4279# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4280rm -f conftest.err conftest.$ac_ext
Benny Prijono36d32492011-12-28 08:42:23 +00004281if $ac_preproc_ok; then
4282 :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004283else
Benny Prijono36d32492011-12-28 08:42:23 +00004284 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4285See \`config.log' for more details." >&5
4286echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4287See \`config.log' for more details." >&2;}
4288 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004289fi
4290
4291ac_ext=c
4292ac_cpp='$CPP $CPPFLAGS'
4293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295ac_compiler_gnu=$ac_cv_c_compiler_gnu
4296
4297
Benny Prijono36d32492011-12-28 08:42:23 +00004298{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4299echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4300if test "${ac_cv_path_GREP+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004302else
Benny Prijono36d32492011-12-28 08:42:23 +00004303 # Extract the first word of "grep ggrep" to use in msg output
4304if test -z "$GREP"; then
4305set dummy grep ggrep; ac_prog_name=$2
4306if test "${ac_cv_path_GREP+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4308else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004309 ac_path_GREP_found=false
Benny Prijono36d32492011-12-28 08:42:23 +00004310# Loop through the user's path and test for each of PROGNAME-LIST
4311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004312for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4313do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
Benny Prijono36d32492011-12-28 08:42:23 +00004316 for ac_prog in grep ggrep; do
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4319 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4320 # Check for GNU ac_path_GREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004321 # Check for GNU $ac_path_GREP
4322case `"$ac_path_GREP" --version 2>&1` in
4323*GNU*)
4324 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4325*)
4326 ac_count=0
Benny Prijono36d32492011-12-28 08:42:23 +00004327 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004328 while :
4329 do
4330 cat "conftest.in" "conftest.in" >"conftest.tmp"
4331 mv "conftest.tmp" "conftest.in"
4332 cp "conftest.in" "conftest.nl"
Benny Prijono36d32492011-12-28 08:42:23 +00004333 echo 'GREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004334 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijono36d32492011-12-28 08:42:23 +00004336 ac_count=`expr $ac_count + 1`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004337 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4338 # Best one so far, save it but keep looking for a better one
4339 ac_cv_path_GREP="$ac_path_GREP"
4340 ac_path_GREP_max=$ac_count
4341 fi
4342 # 10*(2^10) chars as input seems more than enough
4343 test $ac_count -gt 10 && break
4344 done
4345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4346esac
4347
Benny Prijono36d32492011-12-28 08:42:23 +00004348
4349 $ac_path_GREP_found && break 3
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004350 done
Benny Prijono36d32492011-12-28 08:42:23 +00004351done
4352
4353done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004354IFS=$as_save_IFS
Benny Prijono36d32492011-12-28 08:42:23 +00004355
4356
4357fi
4358
4359GREP="$ac_cv_path_GREP"
4360if test -z "$GREP"; then
4361 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4362echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4363 { (exit 1); exit 1; }; }
4364fi
4365
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004366else
4367 ac_cv_path_GREP=$GREP
4368fi
4369
Benny Prijono36d32492011-12-28 08:42:23 +00004370
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004371fi
Benny Prijono36d32492011-12-28 08:42:23 +00004372{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4373echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004374 GREP="$ac_cv_path_GREP"
4375
4376
Benny Prijono36d32492011-12-28 08:42:23 +00004377{ echo "$as_me:$LINENO: checking for egrep" >&5
4378echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4379if test "${ac_cv_path_EGREP+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004381else
4382 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4383 then ac_cv_path_EGREP="$GREP -E"
4384 else
Benny Prijono36d32492011-12-28 08:42:23 +00004385 # Extract the first word of "egrep" to use in msg output
4386if test -z "$EGREP"; then
4387set dummy egrep; ac_prog_name=$2
4388if test "${ac_cv_path_EGREP+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004391 ac_path_EGREP_found=false
Benny Prijono36d32492011-12-28 08:42:23 +00004392# Loop through the user's path and test for each of PROGNAME-LIST
4393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004394for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4395do
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
Benny Prijono36d32492011-12-28 08:42:23 +00004398 for ac_prog in egrep; do
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4401 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4402 # Check for GNU ac_path_EGREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004403 # Check for GNU $ac_path_EGREP
4404case `"$ac_path_EGREP" --version 2>&1` in
4405*GNU*)
4406 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4407*)
4408 ac_count=0
Benny Prijono36d32492011-12-28 08:42:23 +00004409 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004410 while :
4411 do
4412 cat "conftest.in" "conftest.in" >"conftest.tmp"
4413 mv "conftest.tmp" "conftest.in"
4414 cp "conftest.in" "conftest.nl"
Benny Prijono36d32492011-12-28 08:42:23 +00004415 echo 'EGREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004416 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijono36d32492011-12-28 08:42:23 +00004418 ac_count=`expr $ac_count + 1`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004419 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4420 # Best one so far, save it but keep looking for a better one
4421 ac_cv_path_EGREP="$ac_path_EGREP"
4422 ac_path_EGREP_max=$ac_count
4423 fi
4424 # 10*(2^10) chars as input seems more than enough
4425 test $ac_count -gt 10 && break
4426 done
4427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4428esac
4429
Benny Prijono36d32492011-12-28 08:42:23 +00004430
4431 $ac_path_EGREP_found && break 3
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004432 done
Benny Prijono36d32492011-12-28 08:42:23 +00004433done
4434
4435done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004436IFS=$as_save_IFS
Benny Prijono36d32492011-12-28 08:42:23 +00004437
4438
4439fi
4440
4441EGREP="$ac_cv_path_EGREP"
4442if test -z "$EGREP"; then
4443 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4444echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4445 { (exit 1); exit 1; }; }
4446fi
4447
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004448else
4449 ac_cv_path_EGREP=$EGREP
4450fi
4451
Benny Prijono36d32492011-12-28 08:42:23 +00004452
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004453 fi
4454fi
Benny Prijono36d32492011-12-28 08:42:23 +00004455{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4456echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004457 EGREP="$ac_cv_path_EGREP"
4458
4459
Benny Prijono36d32492011-12-28 08:42:23 +00004460{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4461echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4462if test "${ac_cv_header_stdc+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004464else
Benny Prijono36d32492011-12-28 08:42:23 +00004465 cat >conftest.$ac_ext <<_ACEOF
4466/* confdefs.h. */
4467_ACEOF
4468cat confdefs.h >>conftest.$ac_ext
4469cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004470/* end confdefs.h. */
4471#include <stdlib.h>
4472#include <stdarg.h>
4473#include <string.h>
4474#include <float.h>
4475
4476int
4477main ()
4478{
4479
4480 ;
4481 return 0;
4482}
4483_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00004484rm -f conftest.$ac_objext
4485if { (ac_try="$ac_compile"
4486case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4489esac
4490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491 (eval "$ac_compile") 2>conftest.er1
4492 ac_status=$?
4493 grep -v '^ *+' conftest.er1 >conftest.err
4494 rm -f conftest.er1
4495 cat conftest.err >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } && {
4498 test -z "$ac_c_werror_flag" ||
4499 test ! -s conftest.err
4500 } && test -s conftest.$ac_objext; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004501 ac_cv_header_stdc=yes
4502else
Benny Prijono36d32492011-12-28 08:42:23 +00004503 echo "$as_me: failed program was:" >&5
4504sed 's/^/| /' conftest.$ac_ext >&5
4505
4506 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004507fi
Benny Prijono36d32492011-12-28 08:42:23 +00004508
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510
4511if test $ac_cv_header_stdc = yes; then
4512 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Benny Prijono36d32492011-12-28 08:42:23 +00004513 cat >conftest.$ac_ext <<_ACEOF
4514/* confdefs.h. */
4515_ACEOF
4516cat confdefs.h >>conftest.$ac_ext
4517cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004518/* end confdefs.h. */
4519#include <string.h>
4520
4521_ACEOF
4522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijono36d32492011-12-28 08:42:23 +00004523 $EGREP "memchr" >/dev/null 2>&1; then
4524 :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004525else
4526 ac_cv_header_stdc=no
4527fi
Benny Prijono36d32492011-12-28 08:42:23 +00004528rm -f -r conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004529
4530fi
4531
4532if test $ac_cv_header_stdc = yes; then
4533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Benny Prijono36d32492011-12-28 08:42:23 +00004534 cat >conftest.$ac_ext <<_ACEOF
4535/* confdefs.h. */
4536_ACEOF
4537cat confdefs.h >>conftest.$ac_ext
4538cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004539/* end confdefs.h. */
4540#include <stdlib.h>
4541
4542_ACEOF
4543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijono36d32492011-12-28 08:42:23 +00004544 $EGREP "free" >/dev/null 2>&1; then
4545 :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004546else
4547 ac_cv_header_stdc=no
4548fi
Benny Prijono36d32492011-12-28 08:42:23 +00004549rm -f -r conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004550
4551fi
4552
4553if test $ac_cv_header_stdc = yes; then
4554 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Benny Prijono36d32492011-12-28 08:42:23 +00004555 if test "$cross_compiling" = yes; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004556 :
4557else
Benny Prijono36d32492011-12-28 08:42:23 +00004558 cat >conftest.$ac_ext <<_ACEOF
4559/* confdefs.h. */
4560_ACEOF
4561cat confdefs.h >>conftest.$ac_ext
4562cat >>conftest.$ac_ext <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004563/* end confdefs.h. */
4564#include <ctype.h>
4565#include <stdlib.h>
4566#if ((' ' & 0x0FF) == 0x020)
4567# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4568# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4569#else
4570# define ISLOWER(c) \
4571 (('a' <= (c) && (c) <= 'i') \
4572 || ('j' <= (c) && (c) <= 'r') \
4573 || ('s' <= (c) && (c) <= 'z'))
4574# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4575#endif
4576
4577#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4578int
4579main ()
4580{
4581 int i;
4582 for (i = 0; i < 256; i++)
4583 if (XOR (islower (i), ISLOWER (i))
4584 || toupper (i) != TOUPPER (i))
4585 return 2;
4586 return 0;
4587}
4588_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00004589rm -f conftest$ac_exeext
4590if { (ac_try="$ac_link"
4591case "(($ac_try" in
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4594esac
4595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4596 (eval "$ac_link") 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4600 { (case "(($ac_try" in
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4603esac
4604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_try") 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; }; then
4609 :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004610else
Benny Prijono36d32492011-12-28 08:42:23 +00004611 echo "$as_me: program exited with status $ac_status" >&5
4612echo "$as_me: failed program was:" >&5
4613sed 's/^/| /' conftest.$ac_ext >&5
4614
4615( exit $ac_status )
4616ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004617fi
Benny Prijono36d32492011-12-28 08:42:23 +00004618rm -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 +00004619fi
4620
Benny Prijono36d32492011-12-28 08:42:23 +00004621
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004622fi
4623fi
Benny Prijono36d32492011-12-28 08:42:23 +00004624{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4625echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004626if test $ac_cv_header_stdc = yes; then
4627
Benny Prijono36d32492011-12-28 08:42:23 +00004628cat >>confdefs.h <<\_ACEOF
4629#define STDC_HEADERS 1
4630_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004631
4632fi
4633
4634# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Benny Prijono36d32492011-12-28 08:42:23 +00004635
4636
4637
4638
4639
4640
4641
4642
4643
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004644for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4645 inttypes.h stdint.h unistd.h
Benny Prijono36d32492011-12-28 08:42:23 +00004646do
4647as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4648{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652else
4653 cat >conftest.$ac_ext <<_ACEOF
4654/* confdefs.h. */
4655_ACEOF
4656cat confdefs.h >>conftest.$ac_ext
4657cat >>conftest.$ac_ext <<_ACEOF
4658/* end confdefs.h. */
4659$ac_includes_default
4660
4661#include <$ac_header>
4662_ACEOF
4663rm -f conftest.$ac_objext
4664if { (ac_try="$ac_compile"
4665case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4668esac
4669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670 (eval "$ac_compile") 2>conftest.er1
4671 ac_status=$?
4672 grep -v '^ *+' conftest.er1 >conftest.err
4673 rm -f conftest.er1
4674 cat conftest.err >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } && {
4677 test -z "$ac_c_werror_flag" ||
4678 test ! -s conftest.err
4679 } && test -s conftest.$ac_objext; then
4680 eval "$as_ac_Header=yes"
4681else
4682 echo "$as_me: failed program was:" >&5
4683sed 's/^/| /' conftest.$ac_ext >&5
4684
4685 eval "$as_ac_Header=no"
4686fi
4687
4688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689fi
4690ac_res=`eval echo '${'$as_ac_Header'}'`
4691 { echo "$as_me:$LINENO: result: $ac_res" >&5
4692echo "${ECHO_T}$ac_res" >&6; }
4693if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004694 cat >>confdefs.h <<_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00004695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004696_ACEOF
4697
4698fi
4699
4700done
4701
4702
Benny Prijono36d32492011-12-28 08:42:23 +00004703{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4704echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4705if test "${ac_cv_c_bigendian+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004707else
Benny Prijono36d32492011-12-28 08:42:23 +00004708 # See if sys/param.h defines the BYTE_ORDER macro.
4709cat >conftest.$ac_ext <<_ACEOF
4710/* confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +00004711_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00004712cat confdefs.h >>conftest.$ac_ext
4713cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004714/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004715#include <sys/types.h>
Benny Prijono36d32492011-12-28 08:42:23 +00004716#include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004717
4718int
4719main ()
4720{
Benny Prijono36d32492011-12-28 08:42:23 +00004721#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4722 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4723 bogus endian macros
4724#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004725
4726 ;
4727 return 0;
4728}
4729_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00004730rm -f conftest.$ac_objext
4731if { (ac_try="$ac_compile"
4732case "(($ac_try" in
4733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734 *) ac_try_echo=$ac_try;;
4735esac
4736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4737 (eval "$ac_compile") 2>conftest.er1
4738 ac_status=$?
4739 grep -v '^ *+' conftest.er1 >conftest.err
4740 rm -f conftest.er1
4741 cat conftest.err >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } && {
4744 test -z "$ac_c_werror_flag" ||
4745 test ! -s conftest.err
4746 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004747 # It does; now see whether it defined to BIG_ENDIAN or not.
Benny Prijono36d32492011-12-28 08:42:23 +00004748cat >conftest.$ac_ext <<_ACEOF
4749/* confdefs.h. */
4750_ACEOF
4751cat confdefs.h >>conftest.$ac_ext
4752cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004753/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004754#include <sys/types.h>
Benny Prijono36d32492011-12-28 08:42:23 +00004755#include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004756
4757int
4758main ()
4759{
4760#if BYTE_ORDER != BIG_ENDIAN
Benny Prijono36d32492011-12-28 08:42:23 +00004761 not big endian
4762#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004763
4764 ;
4765 return 0;
4766}
4767_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00004768rm -f conftest.$ac_objext
4769if { (ac_try="$ac_compile"
4770case "(($ac_try" in
4771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772 *) ac_try_echo=$ac_try;;
4773esac
4774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775 (eval "$ac_compile") 2>conftest.er1
4776 ac_status=$?
4777 grep -v '^ *+' conftest.er1 >conftest.err
4778 rm -f conftest.er1
4779 cat conftest.err >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } && {
4782 test -z "$ac_c_werror_flag" ||
4783 test ! -s conftest.err
4784 } && test -s conftest.$ac_objext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004785 ac_cv_c_bigendian=yes
4786else
Benny Prijono36d32492011-12-28 08:42:23 +00004787 echo "$as_me: failed program was:" >&5
4788sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijonoe1105232011-10-26 06:49:34 +00004789
Benny Prijono36d32492011-12-28 08:42:23 +00004790 ac_cv_c_bigendian=no
4791fi
4792
4793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794else
4795 echo "$as_me: failed program was:" >&5
4796sed 's/^/| /' conftest.$ac_ext >&5
4797
4798 # It does not; compile a test program.
4799if test "$cross_compiling" = yes; then
4800 # try to guess the endianness by grepping values into an object file
4801 ac_cv_c_bigendian=unknown
4802 cat >conftest.$ac_ext <<_ACEOF
4803/* confdefs.h. */
4804_ACEOF
4805cat confdefs.h >>conftest.$ac_ext
4806cat >>conftest.$ac_ext <<_ACEOF
4807/* end confdefs.h. */
4808short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4809short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4810void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4811short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4812short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4813void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004814int
4815main ()
4816{
Benny Prijono36d32492011-12-28 08:42:23 +00004817 _ascii (); _ebcdic ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004818 ;
4819 return 0;
4820}
4821_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00004822rm -f conftest.$ac_objext
4823if { (ac_try="$ac_compile"
4824case "(($ac_try" in
4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826 *) ac_try_echo=$ac_try;;
4827esac
4828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4829 (eval "$ac_compile") 2>conftest.er1
4830 ac_status=$?
4831 grep -v '^ *+' conftest.er1 >conftest.err
4832 rm -f conftest.er1
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } && {
4836 test -z "$ac_c_werror_flag" ||
4837 test ! -s conftest.err
4838 } && test -s conftest.$ac_objext; then
4839 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004840 ac_cv_c_bigendian=yes
Benny Prijono36d32492011-12-28 08:42:23 +00004841fi
4842if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4843 if test "$ac_cv_c_bigendian" = unknown; then
4844 ac_cv_c_bigendian=no
4845 else
4846 # finding both strings is unlikely to happen, but who knows?
4847 ac_cv_c_bigendian=unknown
4848 fi
4849fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004850else
Benny Prijono36d32492011-12-28 08:42:23 +00004851 echo "$as_me: failed program was:" >&5
4852sed 's/^/| /' conftest.$ac_ext >&5
Sauw Minge7dbbc82011-10-24 09:28:13 +00004853
Benny Prijono36d32492011-12-28 08:42:23 +00004854
Benny Prijonoe1105232011-10-26 06:49:34 +00004855fi
Benny Prijono36d32492011-12-28 08:42:23 +00004856
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004858else
Benny Prijono36d32492011-12-28 08:42:23 +00004859 cat >conftest.$ac_ext <<_ACEOF
4860/* confdefs.h. */
4861_ACEOF
4862cat confdefs.h >>conftest.$ac_ext
4863cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004864/* end confdefs.h. */
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004865$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004866int
4867main ()
4868{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004869
Benny Prijono36d32492011-12-28 08:42:23 +00004870 /* Are we little or big endian? From Harbison&Steele. */
4871 union
4872 {
4873 long int l;
4874 char c[sizeof (long int)];
4875 } u;
4876 u.l = 1;
4877 return u.c[sizeof (long int) - 1] == 1;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004878
4879 ;
4880 return 0;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004881}
4882_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00004883rm -f conftest$ac_exeext
4884if { (ac_try="$ac_link"
4885case "(($ac_try" in
4886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887 *) ac_try_echo=$ac_try;;
4888esac
4889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4890 (eval "$ac_link") 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4894 { (case "(($ac_try" in
4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896 *) ac_try_echo=$ac_try;;
4897esac
4898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4899 (eval "$ac_try") 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004903 ac_cv_c_bigendian=no
4904else
Benny Prijono36d32492011-12-28 08:42:23 +00004905 echo "$as_me: program exited with status $ac_status" >&5
4906echo "$as_me: failed program was:" >&5
4907sed 's/^/| /' conftest.$ac_ext >&5
4908
4909( exit $ac_status )
4910ac_cv_c_bigendian=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004911fi
Benny Prijono36d32492011-12-28 08:42:23 +00004912rm -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 +00004913fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004914
Benny Prijono36d32492011-12-28 08:42:23 +00004915
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004916fi
Benny Prijonod5233702010-01-13 13:09:45 +00004917
Benny Prijono36d32492011-12-28 08:42:23 +00004918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4919fi
4920{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4921echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4922case $ac_cv_c_bigendian in
4923 yes)
Benny Prijonod5233702010-01-13 13:09:45 +00004924
Benny Prijono36d32492011-12-28 08:42:23 +00004925cat >>confdefs.h <<\_ACEOF
4926#define WORDS_BIGENDIAN 1
4927_ACEOF
4928 ;;
4929 no)
4930 ;;
4931 *)
4932 { { echo "$as_me:$LINENO: error: unknown endianness
4933presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4934echo "$as_me: error: unknown endianness
4935presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4936 { (exit 1); exit 1; }; } ;;
4937esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004938
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004939
Sauw Minge7dbbc82011-10-24 09:28:13 +00004940if test "x$ac_cv_c_bigendian" = "xyes"; then
4941 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0"
4942else
4943 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1"
4944fi
4945
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004946case $target in
4947 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono36d32492011-12-28 08:42:23 +00004948 cat >>confdefs.h <<\_ACEOF
4949#define PJ_WIN32 1
4950_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004951
Benny Prijono36d32492011-12-28 08:42:23 +00004952 cat >>confdefs.h <<\_ACEOF
4953#define PJ_WIN32_WINNT 0x0400
4954_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004955
Benny Prijono36d32492011-12-28 08:42:23 +00004956 cat >>confdefs.h <<\_ACEOF
4957#define WIN32_LEAN_AND_MEAN 1
4958_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004959
4960 ;;
4961 *darwin*)
Benny Prijono36d32492011-12-28 08:42:23 +00004962 cat >>confdefs.h <<\_ACEOF
4963#define PJ_DARWINOS 1
4964_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004965
4966 ;;
4967 *linux*)
Benny Prijono36d32492011-12-28 08:42:23 +00004968 cat >>confdefs.h <<\_ACEOF
4969#define PJ_LINUX 1
4970_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004971
4972 ;;
4973 *rtems*)
Benny Prijono36d32492011-12-28 08:42:23 +00004974 cat >>confdefs.h <<\_ACEOF
4975#define PJ_RTEMS 1
4976_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004977
4978 ;;
4979 *sunos* | *solaris* )
Benny Prijono36d32492011-12-28 08:42:23 +00004980 cat >>confdefs.h <<\_ACEOF
4981#define PJ_SUNOS 1
4982_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004983
4984 ;;
4985 *)
4986 ;;
4987esac
4988
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004989
4990
4991
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004992# Check whether --enable-floating-point was given.
Benny Prijono36d32492011-12-28 08:42:23 +00004993if test "${enable_floating_point+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004994 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
Benny Prijono36d32492011-12-28 08:42:23 +00004995 cat >>confdefs.h <<\_ACEOF
4996#define PJ_HAS_FLOATING_POINT 0
4997_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004998
Benny Prijono36d32492011-12-28 08:42:23 +00004999 { echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5
5000echo "${ECHO_T}Checking if floating point is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005001 fi
5002else
5003
Benny Prijono36d32492011-12-28 08:42:23 +00005004 cat >>confdefs.h <<\_ACEOF
5005#define PJ_HAS_FLOATING_POINT 1
5006_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005007
Benny Prijono36d32492011-12-28 08:42:23 +00005008 { echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5
5009echo "${ECHO_T}Checking if floating point is disabled... no" >&6; }
5010
5011{ echo "$as_me:$LINENO: checking for fmod in -lm" >&5
5012echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6; }
5013if test "${ac_cv_lib_m_fmod+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005015else
5016 ac_check_lib_save_LIBS=$LIBS
5017LIBS="-lm $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +00005018cat >conftest.$ac_ext <<_ACEOF
5019/* confdefs.h. */
5020_ACEOF
5021cat confdefs.h >>conftest.$ac_ext
5022cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005023/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005024
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005025/* Override any GCC internal prototype to avoid an error.
5026 Use char because int might match the return type of a GCC
5027 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005028#ifdef __cplusplus
5029extern "C"
5030#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005031char fmod ();
5032int
5033main ()
5034{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005035return fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005036 ;
5037 return 0;
5038}
5039_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +00005040rm -f conftest.$ac_objext conftest$ac_exeext
5041if { (ac_try="$ac_link"
5042case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5045esac
5046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_link") 2>conftest.er1
5048 ac_status=$?
5049 grep -v '^ *+' conftest.er1 >conftest.err
5050 rm -f conftest.er1
5051 cat conftest.err >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } && {
5054 test -z "$ac_c_werror_flag" ||
5055 test ! -s conftest.err
5056 } && test -s conftest$ac_exeext &&
5057 $as_test_x conftest$ac_exeext; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005058 ac_cv_lib_m_fmod=yes
5059else
Benny Prijono36d32492011-12-28 08:42:23 +00005060 echo "$as_me: failed program was:" >&5
5061sed 's/^/| /' conftest.$ac_ext >&5
5062
5063 ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005064fi
Benny Prijono36d32492011-12-28 08:42:23 +00005065
5066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5067 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005068LIBS=$ac_check_lib_save_LIBS
5069fi
Benny Prijono36d32492011-12-28 08:42:23 +00005070{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
5071echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6; }
5072if test $ac_cv_lib_m_fmod = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005073 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005074#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005075_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005076
5077 LIBS="-lm $LIBS"
5078
5079fi
5080
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005081
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005082fi
5083
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005084
5085
Benny Prijono36d32492011-12-28 08:42:23 +00005086if test "${ac_cv_header_arpa_inet_h+set}" = set; then
5087 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
5088echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
5089if test "${ac_cv_header_arpa_inet_h+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5091fi
5092{ echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
5093echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
5094else
5095 # Is the header compilable?
5096{ echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
5097echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
5098cat >conftest.$ac_ext <<_ACEOF
5099/* confdefs.h. */
5100_ACEOF
5101cat confdefs.h >>conftest.$ac_ext
5102cat >>conftest.$ac_ext <<_ACEOF
5103/* end confdefs.h. */
5104$ac_includes_default
5105#include <arpa/inet.h>
5106_ACEOF
5107rm -f conftest.$ac_objext
5108if { (ac_try="$ac_compile"
5109case "(($ac_try" in
5110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111 *) ac_try_echo=$ac_try;;
5112esac
5113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5114 (eval "$ac_compile") 2>conftest.er1
5115 ac_status=$?
5116 grep -v '^ *+' conftest.er1 >conftest.err
5117 rm -f conftest.er1
5118 cat conftest.err >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } && {
5121 test -z "$ac_c_werror_flag" ||
5122 test ! -s conftest.err
5123 } && test -s conftest.$ac_objext; then
5124 ac_header_compiler=yes
5125else
5126 echo "$as_me: failed program was:" >&5
5127sed 's/^/| /' conftest.$ac_ext >&5
5128
5129 ac_header_compiler=no
5130fi
5131
5132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5133{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5134echo "${ECHO_T}$ac_header_compiler" >&6; }
5135
5136# Is the header present?
5137{ echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
5138echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
5139cat >conftest.$ac_ext <<_ACEOF
5140/* confdefs.h. */
5141_ACEOF
5142cat confdefs.h >>conftest.$ac_ext
5143cat >>conftest.$ac_ext <<_ACEOF
5144/* end confdefs.h. */
5145#include <arpa/inet.h>
5146_ACEOF
5147if { (ac_try="$ac_cpp conftest.$ac_ext"
5148case "(($ac_try" in
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5151esac
5152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5154 ac_status=$?
5155 grep -v '^ *+' conftest.er1 >conftest.err
5156 rm -f conftest.er1
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } >/dev/null && {
5160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5161 test ! -s conftest.err
5162 }; then
5163 ac_header_preproc=yes
5164else
5165 echo "$as_me: failed program was:" >&5
5166sed 's/^/| /' conftest.$ac_ext >&5
5167
5168 ac_header_preproc=no
5169fi
5170
5171rm -f conftest.err conftest.$ac_ext
5172{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5173echo "${ECHO_T}$ac_header_preproc" >&6; }
5174
5175# So? What about this header?
5176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5177 yes:no: )
5178 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
5179echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5180 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
5181echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
5182 ac_header_preproc=yes
5183 ;;
5184 no:yes:* )
5185 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
5186echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
5187 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
5188echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
5189 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
5190echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
5191 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
5192echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
5193 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
5194echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
5195 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
5196echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
5197
5198 ;;
5199esac
5200{ echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
5201echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
5202if test "${ac_cv_header_arpa_inet_h+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204else
5205 ac_cv_header_arpa_inet_h=$ac_header_preproc
5206fi
5207{ echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
5208echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
5209
5210fi
5211if test $ac_cv_header_arpa_inet_h = yes; then
5212 cat >>confdefs.h <<\_ACEOF
5213#define PJ_HAS_ARPA_INET_H 1
5214_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005215
5216fi
5217
5218
Benny Prijono36d32492011-12-28 08:42:23 +00005219if test "${ac_cv_header_assert_h+set}" = set; then
5220 { echo "$as_me:$LINENO: checking for assert.h" >&5
5221echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
5222if test "${ac_cv_header_assert_h+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224fi
5225{ echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
5226echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
5227else
5228 # Is the header compilable?
5229{ echo "$as_me:$LINENO: checking assert.h usability" >&5
5230echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; }
5231cat >conftest.$ac_ext <<_ACEOF
5232/* confdefs.h. */
5233_ACEOF
5234cat confdefs.h >>conftest.$ac_ext
5235cat >>conftest.$ac_ext <<_ACEOF
5236/* end confdefs.h. */
5237$ac_includes_default
5238#include <assert.h>
5239_ACEOF
5240rm -f conftest.$ac_objext
5241if { (ac_try="$ac_compile"
5242case "(($ac_try" in
5243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244 *) ac_try_echo=$ac_try;;
5245esac
5246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5247 (eval "$ac_compile") 2>conftest.er1
5248 ac_status=$?
5249 grep -v '^ *+' conftest.er1 >conftest.err
5250 rm -f conftest.er1
5251 cat conftest.err >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } && {
5254 test -z "$ac_c_werror_flag" ||
5255 test ! -s conftest.err
5256 } && test -s conftest.$ac_objext; then
5257 ac_header_compiler=yes
5258else
5259 echo "$as_me: failed program was:" >&5
5260sed 's/^/| /' conftest.$ac_ext >&5
5261
5262 ac_header_compiler=no
5263fi
5264
5265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5267echo "${ECHO_T}$ac_header_compiler" >&6; }
5268
5269# Is the header present?
5270{ echo "$as_me:$LINENO: checking assert.h presence" >&5
5271echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; }
5272cat >conftest.$ac_ext <<_ACEOF
5273/* confdefs.h. */
5274_ACEOF
5275cat confdefs.h >>conftest.$ac_ext
5276cat >>conftest.$ac_ext <<_ACEOF
5277/* end confdefs.h. */
5278#include <assert.h>
5279_ACEOF
5280if { (ac_try="$ac_cpp conftest.$ac_ext"
5281case "(($ac_try" in
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5284esac
5285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5287 ac_status=$?
5288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } >/dev/null && {
5293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5294 test ! -s conftest.err
5295 }; then
5296 ac_header_preproc=yes
5297else
5298 echo "$as_me: failed program was:" >&5
5299sed 's/^/| /' conftest.$ac_ext >&5
5300
5301 ac_header_preproc=no
5302fi
5303
5304rm -f conftest.err conftest.$ac_ext
5305{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5306echo "${ECHO_T}$ac_header_preproc" >&6; }
5307
5308# So? What about this header?
5309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5310 yes:no: )
5311 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
5312echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5313 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
5314echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
5315 ac_header_preproc=yes
5316 ;;
5317 no:yes:* )
5318 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
5319echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
5320 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
5321echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
5322 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
5323echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
5324 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
5325echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
5326 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
5327echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
5328 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
5329echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
5330
5331 ;;
5332esac
5333{ echo "$as_me:$LINENO: checking for assert.h" >&5
5334echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
5335if test "${ac_cv_header_assert_h+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5337else
5338 ac_cv_header_assert_h=$ac_header_preproc
5339fi
5340{ echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
5341echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
5342
5343fi
5344if test $ac_cv_header_assert_h = yes; then
5345 cat >>confdefs.h <<\_ACEOF
5346#define PJ_HAS_ASSERT_H 1
5347_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005348
5349fi
5350
5351
Benny Prijono36d32492011-12-28 08:42:23 +00005352if test "${ac_cv_header_ctype_h+set}" = set; then
5353 { echo "$as_me:$LINENO: checking for ctype.h" >&5
5354echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; }
5355if test "${ac_cv_header_ctype_h+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357fi
5358{ echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
5359echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; }
5360else
5361 # Is the header compilable?
5362{ echo "$as_me:$LINENO: checking ctype.h usability" >&5
5363echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6; }
5364cat >conftest.$ac_ext <<_ACEOF
5365/* confdefs.h. */
5366_ACEOF
5367cat confdefs.h >>conftest.$ac_ext
5368cat >>conftest.$ac_ext <<_ACEOF
5369/* end confdefs.h. */
5370$ac_includes_default
5371#include <ctype.h>
5372_ACEOF
5373rm -f conftest.$ac_objext
5374if { (ac_try="$ac_compile"
5375case "(($ac_try" in
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5378esac
5379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380 (eval "$ac_compile") 2>conftest.er1
5381 ac_status=$?
5382 grep -v '^ *+' conftest.er1 >conftest.err
5383 rm -f conftest.er1
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } && {
5387 test -z "$ac_c_werror_flag" ||
5388 test ! -s conftest.err
5389 } && test -s conftest.$ac_objext; then
5390 ac_header_compiler=yes
5391else
5392 echo "$as_me: failed program was:" >&5
5393sed 's/^/| /' conftest.$ac_ext >&5
5394
5395 ac_header_compiler=no
5396fi
5397
5398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5400echo "${ECHO_T}$ac_header_compiler" >&6; }
5401
5402# Is the header present?
5403{ echo "$as_me:$LINENO: checking ctype.h presence" >&5
5404echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6; }
5405cat >conftest.$ac_ext <<_ACEOF
5406/* confdefs.h. */
5407_ACEOF
5408cat confdefs.h >>conftest.$ac_ext
5409cat >>conftest.$ac_ext <<_ACEOF
5410/* end confdefs.h. */
5411#include <ctype.h>
5412_ACEOF
5413if { (ac_try="$ac_cpp conftest.$ac_ext"
5414case "(($ac_try" in
5415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416 *) ac_try_echo=$ac_try;;
5417esac
5418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5420 ac_status=$?
5421 grep -v '^ *+' conftest.er1 >conftest.err
5422 rm -f conftest.er1
5423 cat conftest.err >&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } >/dev/null && {
5426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5427 test ! -s conftest.err
5428 }; then
5429 ac_header_preproc=yes
5430else
5431 echo "$as_me: failed program was:" >&5
5432sed 's/^/| /' conftest.$ac_ext >&5
5433
5434 ac_header_preproc=no
5435fi
5436
5437rm -f conftest.err conftest.$ac_ext
5438{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5439echo "${ECHO_T}$ac_header_preproc" >&6; }
5440
5441# So? What about this header?
5442case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5443 yes:no: )
5444 { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5
5445echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5446 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5
5447echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;}
5448 ac_header_preproc=yes
5449 ;;
5450 no:yes:* )
5451 { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5
5452echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;}
5453 { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5
5454echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;}
5455 { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5
5456echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;}
5457 { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5
5458echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;}
5459 { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5
5460echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;}
5461 { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5
5462echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;}
5463
5464 ;;
5465esac
5466{ echo "$as_me:$LINENO: checking for ctype.h" >&5
5467echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6; }
5468if test "${ac_cv_header_ctype_h+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5470else
5471 ac_cv_header_ctype_h=$ac_header_preproc
5472fi
5473{ echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5
5474echo "${ECHO_T}$ac_cv_header_ctype_h" >&6; }
5475
5476fi
5477if test $ac_cv_header_ctype_h = yes; then
5478 cat >>confdefs.h <<\_ACEOF
5479#define PJ_HAS_CTYPE_H 1
5480_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005481
5482fi
5483
5484
5485
5486case $target in
5487 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono36d32492011-12-28 08:42:23 +00005488 cat >>confdefs.h <<\_ACEOF
5489#define PJ_HAS_ERRNO_H 0
5490_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005491
5492 ;;
5493 *)
Benny Prijono36d32492011-12-28 08:42:23 +00005494 if test "${ac_cv_header_errno_h+set}" = set; then
5495 { echo "$as_me:$LINENO: checking for errno.h" >&5
5496echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
5497if test "${ac_cv_header_errno_h+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5499fi
5500{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5501echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
5502else
5503 # Is the header compilable?
5504{ echo "$as_me:$LINENO: checking errno.h usability" >&5
5505echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; }
5506cat >conftest.$ac_ext <<_ACEOF
5507/* confdefs.h. */
5508_ACEOF
5509cat confdefs.h >>conftest.$ac_ext
5510cat >>conftest.$ac_ext <<_ACEOF
5511/* end confdefs.h. */
5512$ac_includes_default
5513#include <errno.h>
5514_ACEOF
5515rm -f conftest.$ac_objext
5516if { (ac_try="$ac_compile"
5517case "(($ac_try" in
5518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519 *) ac_try_echo=$ac_try;;
5520esac
5521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522 (eval "$ac_compile") 2>conftest.er1
5523 ac_status=$?
5524 grep -v '^ *+' conftest.er1 >conftest.err
5525 rm -f conftest.er1
5526 cat conftest.err >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); } && {
5529 test -z "$ac_c_werror_flag" ||
5530 test ! -s conftest.err
5531 } && test -s conftest.$ac_objext; then
5532 ac_header_compiler=yes
5533else
5534 echo "$as_me: failed program was:" >&5
5535sed 's/^/| /' conftest.$ac_ext >&5
5536
5537 ac_header_compiler=no
5538fi
5539
5540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5541{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5542echo "${ECHO_T}$ac_header_compiler" >&6; }
5543
5544# Is the header present?
5545{ echo "$as_me:$LINENO: checking errno.h presence" >&5
5546echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; }
5547cat >conftest.$ac_ext <<_ACEOF
5548/* confdefs.h. */
5549_ACEOF
5550cat confdefs.h >>conftest.$ac_ext
5551cat >>conftest.$ac_ext <<_ACEOF
5552/* end confdefs.h. */
5553#include <errno.h>
5554_ACEOF
5555if { (ac_try="$ac_cpp conftest.$ac_ext"
5556case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559esac
5560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5562 ac_status=$?
5563 grep -v '^ *+' conftest.er1 >conftest.err
5564 rm -f conftest.er1
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } >/dev/null && {
5568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5569 test ! -s conftest.err
5570 }; then
5571 ac_header_preproc=yes
5572else
5573 echo "$as_me: failed program was:" >&5
5574sed 's/^/| /' conftest.$ac_ext >&5
5575
5576 ac_header_preproc=no
5577fi
5578
5579rm -f conftest.err conftest.$ac_ext
5580{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5581echo "${ECHO_T}$ac_header_preproc" >&6; }
5582
5583# So? What about this header?
5584case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5585 yes:no: )
5586 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
5587echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5588 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
5589echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
5590 ac_header_preproc=yes
5591 ;;
5592 no:yes:* )
5593 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
5594echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
5595 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5
5596echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;}
5597 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
5598echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
5599 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5
5600echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
5601 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
5602echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
5603 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
5604echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
5605
5606 ;;
5607esac
5608{ echo "$as_me:$LINENO: checking for errno.h" >&5
5609echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
5610if test "${ac_cv_header_errno_h+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5612else
5613 ac_cv_header_errno_h=$ac_header_preproc
5614fi
5615{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5616echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
5617
5618fi
5619if test $ac_cv_header_errno_h = yes; then
5620 cat >>confdefs.h <<\_ACEOF
5621#define PJ_HAS_ERRNO_H 1
5622_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005623
5624fi
5625
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005626
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005627 ;;
5628esac
5629
Benny Prijono36d32492011-12-28 08:42:23 +00005630if test "${ac_cv_header_fcntl_h+set}" = set; then
5631 { echo "$as_me:$LINENO: checking for fcntl.h" >&5
5632echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; }
5633if test "${ac_cv_header_fcntl_h+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635fi
5636{ echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
5637echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; }
5638else
5639 # Is the header compilable?
5640{ echo "$as_me:$LINENO: checking fcntl.h usability" >&5
5641echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6; }
5642cat >conftest.$ac_ext <<_ACEOF
5643/* confdefs.h. */
5644_ACEOF
5645cat confdefs.h >>conftest.$ac_ext
5646cat >>conftest.$ac_ext <<_ACEOF
5647/* end confdefs.h. */
5648$ac_includes_default
5649#include <fcntl.h>
5650_ACEOF
5651rm -f conftest.$ac_objext
5652if { (ac_try="$ac_compile"
5653case "(($ac_try" in
5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655 *) ac_try_echo=$ac_try;;
5656esac
5657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658 (eval "$ac_compile") 2>conftest.er1
5659 ac_status=$?
5660 grep -v '^ *+' conftest.er1 >conftest.err
5661 rm -f conftest.er1
5662 cat conftest.err >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } && {
5665 test -z "$ac_c_werror_flag" ||
5666 test ! -s conftest.err
5667 } && test -s conftest.$ac_objext; then
5668 ac_header_compiler=yes
5669else
5670 echo "$as_me: failed program was:" >&5
5671sed 's/^/| /' conftest.$ac_ext >&5
5672
5673 ac_header_compiler=no
5674fi
5675
5676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5678echo "${ECHO_T}$ac_header_compiler" >&6; }
5679
5680# Is the header present?
5681{ echo "$as_me:$LINENO: checking fcntl.h presence" >&5
5682echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6; }
5683cat >conftest.$ac_ext <<_ACEOF
5684/* confdefs.h. */
5685_ACEOF
5686cat confdefs.h >>conftest.$ac_ext
5687cat >>conftest.$ac_ext <<_ACEOF
5688/* end confdefs.h. */
5689#include <fcntl.h>
5690_ACEOF
5691if { (ac_try="$ac_cpp conftest.$ac_ext"
5692case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695esac
5696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5698 ac_status=$?
5699 grep -v '^ *+' conftest.er1 >conftest.err
5700 rm -f conftest.er1
5701 cat conftest.err >&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } >/dev/null && {
5704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5705 test ! -s conftest.err
5706 }; then
5707 ac_header_preproc=yes
5708else
5709 echo "$as_me: failed program was:" >&5
5710sed 's/^/| /' conftest.$ac_ext >&5
5711
5712 ac_header_preproc=no
5713fi
5714
5715rm -f conftest.err conftest.$ac_ext
5716{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5717echo "${ECHO_T}$ac_header_preproc" >&6; }
5718
5719# So? What about this header?
5720case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5721 yes:no: )
5722 { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5723echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5724 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5
5725echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;}
5726 ac_header_preproc=yes
5727 ;;
5728 no:yes:* )
5729 { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5
5730echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;}
5731 { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5
5732echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;}
5733 { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5
5734echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;}
5735 { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5
5736echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5737 { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5
5738echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;}
5739 { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5
5740echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;}
5741
5742 ;;
5743esac
5744{ echo "$as_me:$LINENO: checking for fcntl.h" >&5
5745echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6; }
5746if test "${ac_cv_header_fcntl_h+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5748else
5749 ac_cv_header_fcntl_h=$ac_header_preproc
5750fi
5751{ echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5
5752echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6; }
5753
5754fi
5755if test $ac_cv_header_fcntl_h = yes; then
5756 cat >>confdefs.h <<\_ACEOF
5757#define PJ_HAS_FCNTL_H 1
5758_ACEOF
Benny Prijono1d481ab2008-01-24 15:27:30 +00005759
5760fi
5761
5762
Benny Prijono36d32492011-12-28 08:42:23 +00005763if test "${ac_cv_header_linux_socket_h+set}" = set; then
5764 { echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5765echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; }
5766if test "${ac_cv_header_linux_socket_h+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5768fi
5769{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5770echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; }
5771else
5772 # Is the header compilable?
5773{ echo "$as_me:$LINENO: checking linux/socket.h usability" >&5
5774echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6; }
5775cat >conftest.$ac_ext <<_ACEOF
5776/* confdefs.h. */
5777_ACEOF
5778cat confdefs.h >>conftest.$ac_ext
5779cat >>conftest.$ac_ext <<_ACEOF
5780/* end confdefs.h. */
5781$ac_includes_default
5782#include <linux/socket.h>
5783_ACEOF
5784rm -f conftest.$ac_objext
5785if { (ac_try="$ac_compile"
5786case "(($ac_try" in
5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788 *) ac_try_echo=$ac_try;;
5789esac
5790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791 (eval "$ac_compile") 2>conftest.er1
5792 ac_status=$?
5793 grep -v '^ *+' conftest.er1 >conftest.err
5794 rm -f conftest.er1
5795 cat conftest.err >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } && {
5798 test -z "$ac_c_werror_flag" ||
5799 test ! -s conftest.err
5800 } && test -s conftest.$ac_objext; then
5801 ac_header_compiler=yes
5802else
5803 echo "$as_me: failed program was:" >&5
5804sed 's/^/| /' conftest.$ac_ext >&5
5805
5806 ac_header_compiler=no
5807fi
5808
5809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5811echo "${ECHO_T}$ac_header_compiler" >&6; }
5812
5813# Is the header present?
5814{ echo "$as_me:$LINENO: checking linux/socket.h presence" >&5
5815echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6; }
5816cat >conftest.$ac_ext <<_ACEOF
5817/* confdefs.h. */
5818_ACEOF
5819cat confdefs.h >>conftest.$ac_ext
5820cat >>conftest.$ac_ext <<_ACEOF
5821/* end confdefs.h. */
5822#include <linux/socket.h>
5823_ACEOF
5824if { (ac_try="$ac_cpp conftest.$ac_ext"
5825case "(($ac_try" in
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5828esac
5829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5831 ac_status=$?
5832 grep -v '^ *+' conftest.er1 >conftest.err
5833 rm -f conftest.er1
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } >/dev/null && {
5837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5838 test ! -s conftest.err
5839 }; then
5840 ac_header_preproc=yes
5841else
5842 echo "$as_me: failed program was:" >&5
5843sed 's/^/| /' conftest.$ac_ext >&5
5844
5845 ac_header_preproc=no
5846fi
5847
5848rm -f conftest.err conftest.$ac_ext
5849{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5850echo "${ECHO_T}$ac_header_preproc" >&6; }
5851
5852# So? What about this header?
5853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5854 yes:no: )
5855 { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
5856echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5857 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5
5858echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;}
5859 ac_header_preproc=yes
5860 ;;
5861 no:yes:* )
5862 { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5
5863echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;}
5864 { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5
5865echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;}
5866 { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5
5867echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;}
5868 { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5
5869echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
5870 { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5
5871echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;}
5872 { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5
5873echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;}
5874
5875 ;;
5876esac
5877{ echo "$as_me:$LINENO: checking for linux/socket.h" >&5
5878echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6; }
5879if test "${ac_cv_header_linux_socket_h+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881else
5882 ac_cv_header_linux_socket_h=$ac_header_preproc
5883fi
5884{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5
5885echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6; }
5886
5887fi
5888if test $ac_cv_header_linux_socket_h = yes; then
5889 cat >>confdefs.h <<\_ACEOF
5890#define PJ_HAS_LINUX_SOCKET_H 1
5891_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005892
5893fi
5894
5895
Benny Prijono36d32492011-12-28 08:42:23 +00005896if test "${ac_cv_header_limits_h+set}" = set; then
5897 { echo "$as_me:$LINENO: checking for limits.h" >&5
5898echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; }
5899if test "${ac_cv_header_limits_h+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5901fi
5902{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
5903echo "${ECHO_T}$ac_cv_header_limits_h" >&6; }
5904else
5905 # Is the header compilable?
5906{ echo "$as_me:$LINENO: checking limits.h usability" >&5
5907echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; }
5908cat >conftest.$ac_ext <<_ACEOF
5909/* confdefs.h. */
5910_ACEOF
5911cat confdefs.h >>conftest.$ac_ext
5912cat >>conftest.$ac_ext <<_ACEOF
5913/* end confdefs.h. */
5914$ac_includes_default
5915#include <limits.h>
5916_ACEOF
5917rm -f conftest.$ac_objext
5918if { (ac_try="$ac_compile"
5919case "(($ac_try" in
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5922esac
5923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_compile") 2>conftest.er1
5925 ac_status=$?
5926 grep -v '^ *+' conftest.er1 >conftest.err
5927 rm -f conftest.er1
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } && {
5931 test -z "$ac_c_werror_flag" ||
5932 test ! -s conftest.err
5933 } && test -s conftest.$ac_objext; then
5934 ac_header_compiler=yes
5935else
5936 echo "$as_me: failed program was:" >&5
5937sed 's/^/| /' conftest.$ac_ext >&5
5938
5939 ac_header_compiler=no
5940fi
5941
5942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5944echo "${ECHO_T}$ac_header_compiler" >&6; }
5945
5946# Is the header present?
5947{ echo "$as_me:$LINENO: checking limits.h presence" >&5
5948echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; }
5949cat >conftest.$ac_ext <<_ACEOF
5950/* confdefs.h. */
5951_ACEOF
5952cat confdefs.h >>conftest.$ac_ext
5953cat >>conftest.$ac_ext <<_ACEOF
5954/* end confdefs.h. */
5955#include <limits.h>
5956_ACEOF
5957if { (ac_try="$ac_cpp conftest.$ac_ext"
5958case "(($ac_try" in
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5961esac
5962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5964 ac_status=$?
5965 grep -v '^ *+' conftest.er1 >conftest.err
5966 rm -f conftest.er1
5967 cat conftest.err >&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } >/dev/null && {
5970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5971 test ! -s conftest.err
5972 }; then
5973 ac_header_preproc=yes
5974else
5975 echo "$as_me: failed program was:" >&5
5976sed 's/^/| /' conftest.$ac_ext >&5
5977
5978 ac_header_preproc=no
5979fi
5980
5981rm -f conftest.err conftest.$ac_ext
5982{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5983echo "${ECHO_T}$ac_header_preproc" >&6; }
5984
5985# So? What about this header?
5986case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5987 yes:no: )
5988 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5
5989echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5990 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5
5991echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;}
5992 ac_header_preproc=yes
5993 ;;
5994 no:yes:* )
5995 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5
5996echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;}
5997 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5
5998echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;}
5999 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5
6000echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;}
6001 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5
6002echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;}
6003 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5
6004echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;}
6005 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5
6006echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;}
6007
6008 ;;
6009esac
6010{ echo "$as_me:$LINENO: checking for limits.h" >&5
6011echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; }
6012if test "${ac_cv_header_limits_h+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6014else
6015 ac_cv_header_limits_h=$ac_header_preproc
6016fi
6017{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
6018echo "${ECHO_T}$ac_cv_header_limits_h" >&6; }
6019
6020fi
6021if test $ac_cv_header_limits_h = yes; then
6022 cat >>confdefs.h <<\_ACEOF
6023#define PJ_HAS_LIMITS_H 1
6024_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006025
6026fi
6027
6028
Benny Prijono36d32492011-12-28 08:42:23 +00006029if test "${ac_cv_header_malloc_h+set}" = set; then
6030 { echo "$as_me:$LINENO: checking for malloc.h" >&5
6031echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
6032if test "${ac_cv_header_malloc_h+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6034fi
6035{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
6036echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
6037else
6038 # Is the header compilable?
6039{ echo "$as_me:$LINENO: checking malloc.h usability" >&5
6040echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; }
6041cat >conftest.$ac_ext <<_ACEOF
6042/* confdefs.h. */
6043_ACEOF
6044cat confdefs.h >>conftest.$ac_ext
6045cat >>conftest.$ac_ext <<_ACEOF
6046/* end confdefs.h. */
6047$ac_includes_default
6048#include <malloc.h>
6049_ACEOF
6050rm -f conftest.$ac_objext
6051if { (ac_try="$ac_compile"
6052case "(($ac_try" in
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6055esac
6056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057 (eval "$ac_compile") 2>conftest.er1
6058 ac_status=$?
6059 grep -v '^ *+' conftest.er1 >conftest.err
6060 rm -f conftest.er1
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } && {
6064 test -z "$ac_c_werror_flag" ||
6065 test ! -s conftest.err
6066 } && test -s conftest.$ac_objext; then
6067 ac_header_compiler=yes
6068else
6069 echo "$as_me: failed program was:" >&5
6070sed 's/^/| /' conftest.$ac_ext >&5
6071
6072 ac_header_compiler=no
6073fi
6074
6075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6077echo "${ECHO_T}$ac_header_compiler" >&6; }
6078
6079# Is the header present?
6080{ echo "$as_me:$LINENO: checking malloc.h presence" >&5
6081echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; }
6082cat >conftest.$ac_ext <<_ACEOF
6083/* confdefs.h. */
6084_ACEOF
6085cat confdefs.h >>conftest.$ac_ext
6086cat >>conftest.$ac_ext <<_ACEOF
6087/* end confdefs.h. */
6088#include <malloc.h>
6089_ACEOF
6090if { (ac_try="$ac_cpp conftest.$ac_ext"
6091case "(($ac_try" in
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6094esac
6095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6097 ac_status=$?
6098 grep -v '^ *+' conftest.er1 >conftest.err
6099 rm -f conftest.er1
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } >/dev/null && {
6103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6104 test ! -s conftest.err
6105 }; then
6106 ac_header_preproc=yes
6107else
6108 echo "$as_me: failed program was:" >&5
6109sed 's/^/| /' conftest.$ac_ext >&5
6110
6111 ac_header_preproc=no
6112fi
6113
6114rm -f conftest.err conftest.$ac_ext
6115{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6116echo "${ECHO_T}$ac_header_preproc" >&6; }
6117
6118# So? What about this header?
6119case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6120 yes:no: )
6121 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
6122echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6123 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
6124echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
6125 ac_header_preproc=yes
6126 ;;
6127 no:yes:* )
6128 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
6129echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
6130 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
6131echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
6132 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
6133echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
6134 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
6135echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
6136 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
6137echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
6138 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
6139echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
6140
6141 ;;
6142esac
6143{ echo "$as_me:$LINENO: checking for malloc.h" >&5
6144echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
6145if test "${ac_cv_header_malloc_h+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6147else
6148 ac_cv_header_malloc_h=$ac_header_preproc
6149fi
6150{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
6151echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
6152
6153fi
6154if test $ac_cv_header_malloc_h = yes; then
6155 cat >>confdefs.h <<\_ACEOF
6156#define PJ_HAS_MALLOC_H 1
6157_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006158
6159fi
6160
6161
Benny Prijono36d32492011-12-28 08:42:23 +00006162if test "${ac_cv_header_netdb_h+set}" = set; then
6163 { echo "$as_me:$LINENO: checking for netdb.h" >&5
6164echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; }
6165if test "${ac_cv_header_netdb_h+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6167fi
6168{ echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
6169echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; }
6170else
6171 # Is the header compilable?
6172{ echo "$as_me:$LINENO: checking netdb.h usability" >&5
6173echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6; }
6174cat >conftest.$ac_ext <<_ACEOF
6175/* confdefs.h. */
6176_ACEOF
6177cat confdefs.h >>conftest.$ac_ext
6178cat >>conftest.$ac_ext <<_ACEOF
6179/* end confdefs.h. */
6180$ac_includes_default
6181#include <netdb.h>
6182_ACEOF
6183rm -f conftest.$ac_objext
6184if { (ac_try="$ac_compile"
6185case "(($ac_try" in
6186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6187 *) ac_try_echo=$ac_try;;
6188esac
6189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6190 (eval "$ac_compile") 2>conftest.er1
6191 ac_status=$?
6192 grep -v '^ *+' conftest.er1 >conftest.err
6193 rm -f conftest.er1
6194 cat conftest.err >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } && {
6197 test -z "$ac_c_werror_flag" ||
6198 test ! -s conftest.err
6199 } && test -s conftest.$ac_objext; then
6200 ac_header_compiler=yes
6201else
6202 echo "$as_me: failed program was:" >&5
6203sed 's/^/| /' conftest.$ac_ext >&5
6204
6205 ac_header_compiler=no
6206fi
6207
6208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6210echo "${ECHO_T}$ac_header_compiler" >&6; }
6211
6212# Is the header present?
6213{ echo "$as_me:$LINENO: checking netdb.h presence" >&5
6214echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6; }
6215cat >conftest.$ac_ext <<_ACEOF
6216/* confdefs.h. */
6217_ACEOF
6218cat confdefs.h >>conftest.$ac_ext
6219cat >>conftest.$ac_ext <<_ACEOF
6220/* end confdefs.h. */
6221#include <netdb.h>
6222_ACEOF
6223if { (ac_try="$ac_cpp conftest.$ac_ext"
6224case "(($ac_try" in
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6227esac
6228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6230 ac_status=$?
6231 grep -v '^ *+' conftest.er1 >conftest.err
6232 rm -f conftest.er1
6233 cat conftest.err >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } >/dev/null && {
6236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6237 test ! -s conftest.err
6238 }; then
6239 ac_header_preproc=yes
6240else
6241 echo "$as_me: failed program was:" >&5
6242sed 's/^/| /' conftest.$ac_ext >&5
6243
6244 ac_header_preproc=no
6245fi
6246
6247rm -f conftest.err conftest.$ac_ext
6248{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6249echo "${ECHO_T}$ac_header_preproc" >&6; }
6250
6251# So? What about this header?
6252case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6253 yes:no: )
6254 { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
6255echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6256 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5
6257echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;}
6258 ac_header_preproc=yes
6259 ;;
6260 no:yes:* )
6261 { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5
6262echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;}
6263 { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5
6264echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;}
6265 { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5
6266echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;}
6267 { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5
6268echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
6269 { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5
6270echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;}
6271 { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5
6272echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;}
6273
6274 ;;
6275esac
6276{ echo "$as_me:$LINENO: checking for netdb.h" >&5
6277echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6; }
6278if test "${ac_cv_header_netdb_h+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6280else
6281 ac_cv_header_netdb_h=$ac_header_preproc
6282fi
6283{ echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5
6284echo "${ECHO_T}$ac_cv_header_netdb_h" >&6; }
6285
6286fi
6287if test $ac_cv_header_netdb_h = yes; then
6288 cat >>confdefs.h <<\_ACEOF
6289#define PJ_HAS_NETDB_H 1
6290_ACEOF
Benny Prijono37fc9de2008-08-04 14:45:02 +00006291
6292fi
6293
6294
Benny Prijono36d32492011-12-28 08:42:23 +00006295if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
6296 { echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5
6297echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; }
6298if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6300fi
6301{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5
6302echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; }
6303else
6304 # Is the header compilable?
6305{ echo "$as_me:$LINENO: checking netinet/in_systm.h usability" >&5
6306echo $ECHO_N "checking netinet/in_systm.h usability... $ECHO_C" >&6; }
6307cat >conftest.$ac_ext <<_ACEOF
6308/* confdefs.h. */
6309_ACEOF
6310cat confdefs.h >>conftest.$ac_ext
6311cat >>conftest.$ac_ext <<_ACEOF
6312/* end confdefs.h. */
6313$ac_includes_default
6314#include <netinet/in_systm.h>
6315_ACEOF
6316rm -f conftest.$ac_objext
6317if { (ac_try="$ac_compile"
6318case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6321esac
6322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_compile") 2>conftest.er1
6324 ac_status=$?
6325 grep -v '^ *+' conftest.er1 >conftest.err
6326 rm -f conftest.er1
6327 cat conftest.err >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } && {
6330 test -z "$ac_c_werror_flag" ||
6331 test ! -s conftest.err
6332 } && test -s conftest.$ac_objext; then
6333 ac_header_compiler=yes
6334else
6335 echo "$as_me: failed program was:" >&5
6336sed 's/^/| /' conftest.$ac_ext >&5
6337
6338 ac_header_compiler=no
6339fi
6340
6341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6342{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6343echo "${ECHO_T}$ac_header_compiler" >&6; }
6344
6345# Is the header present?
6346{ echo "$as_me:$LINENO: checking netinet/in_systm.h presence" >&5
6347echo $ECHO_N "checking netinet/in_systm.h presence... $ECHO_C" >&6; }
6348cat >conftest.$ac_ext <<_ACEOF
6349/* confdefs.h. */
6350_ACEOF
6351cat confdefs.h >>conftest.$ac_ext
6352cat >>conftest.$ac_ext <<_ACEOF
6353/* end confdefs.h. */
6354#include <netinet/in_systm.h>
6355_ACEOF
6356if { (ac_try="$ac_cpp conftest.$ac_ext"
6357case "(($ac_try" in
6358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6359 *) ac_try_echo=$ac_try;;
6360esac
6361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6363 ac_status=$?
6364 grep -v '^ *+' conftest.er1 >conftest.err
6365 rm -f conftest.er1
6366 cat conftest.err >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } >/dev/null && {
6369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6370 test ! -s conftest.err
6371 }; then
6372 ac_header_preproc=yes
6373else
6374 echo "$as_me: failed program was:" >&5
6375sed 's/^/| /' conftest.$ac_ext >&5
6376
6377 ac_header_preproc=no
6378fi
6379
6380rm -f conftest.err conftest.$ac_ext
6381{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6382echo "${ECHO_T}$ac_header_preproc" >&6; }
6383
6384# So? What about this header?
6385case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6386 yes:no: )
6387 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&5
6388echo "$as_me: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6389 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&5
6390echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&2;}
6391 ac_header_preproc=yes
6392 ;;
6393 no:yes:* )
6394 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: present but cannot be compiled" >&5
6395echo "$as_me: WARNING: netinet/in_systm.h: present but cannot be compiled" >&2;}
6396 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&5
6397echo "$as_me: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&2;}
6398 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&5
6399echo "$as_me: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&2;}
6400 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&5
6401echo "$as_me: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&2;}
6402 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&5
6403echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&2;}
6404 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&5
6405echo "$as_me: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&2;}
6406
6407 ;;
6408esac
6409{ echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5
6410echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6; }
6411if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6413else
6414 ac_cv_header_netinet_in_systm_h=$ac_header_preproc
6415fi
6416{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5
6417echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6; }
6418
6419fi
6420if test $ac_cv_header_netinet_in_systm_h = yes; then
6421 cat >>confdefs.h <<\_ACEOF
6422#define PJ_HAS_NETINET_IN_SYSTM_H 1
6423_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006424
6425fi
6426
6427
Benny Prijono36d32492011-12-28 08:42:23 +00006428if test "${ac_cv_header_netinet_in_h+set}" = set; then
6429 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
6430echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
6431if test "${ac_cv_header_netinet_in_h+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433fi
6434{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
6435echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
6436else
6437 # Is the header compilable?
6438{ echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
6439echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
6440cat >conftest.$ac_ext <<_ACEOF
6441/* confdefs.h. */
6442_ACEOF
6443cat confdefs.h >>conftest.$ac_ext
6444cat >>conftest.$ac_ext <<_ACEOF
6445/* end confdefs.h. */
6446$ac_includes_default
6447#include <netinet/in.h>
6448_ACEOF
6449rm -f conftest.$ac_objext
6450if { (ac_try="$ac_compile"
6451case "(($ac_try" in
6452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6453 *) ac_try_echo=$ac_try;;
6454esac
6455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6456 (eval "$ac_compile") 2>conftest.er1
6457 ac_status=$?
6458 grep -v '^ *+' conftest.er1 >conftest.err
6459 rm -f conftest.er1
6460 cat conftest.err >&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); } && {
6463 test -z "$ac_c_werror_flag" ||
6464 test ! -s conftest.err
6465 } && test -s conftest.$ac_objext; then
6466 ac_header_compiler=yes
6467else
6468 echo "$as_me: failed program was:" >&5
6469sed 's/^/| /' conftest.$ac_ext >&5
6470
6471 ac_header_compiler=no
6472fi
6473
6474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6476echo "${ECHO_T}$ac_header_compiler" >&6; }
6477
6478# Is the header present?
6479{ echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
6480echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
6481cat >conftest.$ac_ext <<_ACEOF
6482/* confdefs.h. */
6483_ACEOF
6484cat confdefs.h >>conftest.$ac_ext
6485cat >>conftest.$ac_ext <<_ACEOF
6486/* end confdefs.h. */
6487#include <netinet/in.h>
6488_ACEOF
6489if { (ac_try="$ac_cpp conftest.$ac_ext"
6490case "(($ac_try" in
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6493esac
6494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6496 ac_status=$?
6497 grep -v '^ *+' conftest.er1 >conftest.err
6498 rm -f conftest.er1
6499 cat conftest.err >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } >/dev/null && {
6502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6503 test ! -s conftest.err
6504 }; then
6505 ac_header_preproc=yes
6506else
6507 echo "$as_me: failed program was:" >&5
6508sed 's/^/| /' conftest.$ac_ext >&5
6509
6510 ac_header_preproc=no
6511fi
6512
6513rm -f conftest.err conftest.$ac_ext
6514{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6515echo "${ECHO_T}$ac_header_preproc" >&6; }
6516
6517# So? What about this header?
6518case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6519 yes:no: )
6520 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
6521echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6522 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
6523echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
6524 ac_header_preproc=yes
6525 ;;
6526 no:yes:* )
6527 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
6528echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
6529 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
6530echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
6531 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
6532echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
6533 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
6534echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
6535 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
6536echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
6537 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
6538echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
6539
6540 ;;
6541esac
6542{ echo "$as_me:$LINENO: checking for netinet/in.h" >&5
6543echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
6544if test "${ac_cv_header_netinet_in_h+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547 ac_cv_header_netinet_in_h=$ac_header_preproc
6548fi
6549{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
6550echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
6551
6552fi
6553if test $ac_cv_header_netinet_in_h = yes; then
6554 cat >>confdefs.h <<\_ACEOF
6555#define PJ_HAS_NETINET_IN_H 1
6556_ACEOF
Benny Prijonoe3e65802011-02-28 07:44:19 +00006557
6558fi
6559
6560
Benny Prijono36d32492011-12-28 08:42:23 +00006561{ echo "$as_me:$LINENO: checking for netinet/ip.h" >&5
6562echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6; }
6563if test "${ac_cv_header_netinet_ip_h+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565else
6566 cat >conftest.$ac_ext <<_ACEOF
6567/* confdefs.h. */
6568_ACEOF
6569cat confdefs.h >>conftest.$ac_ext
6570cat >>conftest.$ac_ext <<_ACEOF
6571/* end confdefs.h. */
6572#if PJ_HAS_SYS_TYPES_H
Benny Prijonod5233702010-01-13 13:09:45 +00006573 # include <sys/types.h>
6574 #endif
6575 #if PJ_HAS_NETINET_IN_SYSTM_H
Benny Prijono37fc9de2008-08-04 14:45:02 +00006576 # include <netinet/in_systm.h>
6577 #endif
Benny Prijonod5233702010-01-13 13:09:45 +00006578 #if PJ_HAS_NETINET_IN_H
6579 # include <netinet/in.h>
6580 #endif
Benny Prijono37fc9de2008-08-04 14:45:02 +00006581
Benny Prijono36d32492011-12-28 08:42:23 +00006582
6583#include <netinet/ip.h>
6584_ACEOF
6585rm -f conftest.$ac_objext
6586if { (ac_try="$ac_compile"
6587case "(($ac_try" in
6588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589 *) ac_try_echo=$ac_try;;
6590esac
6591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6592 (eval "$ac_compile") 2>conftest.er1
6593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } && {
6599 test -z "$ac_c_werror_flag" ||
6600 test ! -s conftest.err
6601 } && test -s conftest.$ac_objext; then
6602 ac_cv_header_netinet_ip_h=yes
6603else
6604 echo "$as_me: failed program was:" >&5
6605sed 's/^/| /' conftest.$ac_ext >&5
6606
6607 ac_cv_header_netinet_ip_h=no
6608fi
6609
6610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611fi
6612{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5
6613echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6; }
6614if test $ac_cv_header_netinet_ip_h = yes; then
6615 cat >>confdefs.h <<\_ACEOF
6616#define PJ_HAS_NETINET_IP_H 1
6617_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +00006618
Sauw Minge7dbbc82011-10-24 09:28:13 +00006619fi
6620
Sauw Mingd8aa67c2011-08-09 04:31:41 +00006621
Benny Prijono36d32492011-12-28 08:42:23 +00006622if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
6623 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
6624echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
6625if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627fi
6628{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
6629echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
6630else
6631 # Is the header compilable?
6632{ echo "$as_me:$LINENO: checking netinet/tcp.h usability" >&5
6633echo $ECHO_N "checking netinet/tcp.h usability... $ECHO_C" >&6; }
6634cat >conftest.$ac_ext <<_ACEOF
6635/* confdefs.h. */
6636_ACEOF
6637cat confdefs.h >>conftest.$ac_ext
6638cat >>conftest.$ac_ext <<_ACEOF
6639/* end confdefs.h. */
6640$ac_includes_default
6641#include <netinet/tcp.h>
6642_ACEOF
6643rm -f conftest.$ac_objext
6644if { (ac_try="$ac_compile"
6645case "(($ac_try" in
6646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6647 *) ac_try_echo=$ac_try;;
6648esac
6649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6650 (eval "$ac_compile") 2>conftest.er1
6651 ac_status=$?
6652 grep -v '^ *+' conftest.er1 >conftest.err
6653 rm -f conftest.er1
6654 cat conftest.err >&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } && {
6657 test -z "$ac_c_werror_flag" ||
6658 test ! -s conftest.err
6659 } && test -s conftest.$ac_objext; then
6660 ac_header_compiler=yes
6661else
6662 echo "$as_me: failed program was:" >&5
6663sed 's/^/| /' conftest.$ac_ext >&5
6664
6665 ac_header_compiler=no
6666fi
6667
6668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6670echo "${ECHO_T}$ac_header_compiler" >&6; }
6671
6672# Is the header present?
6673{ echo "$as_me:$LINENO: checking netinet/tcp.h presence" >&5
6674echo $ECHO_N "checking netinet/tcp.h presence... $ECHO_C" >&6; }
6675cat >conftest.$ac_ext <<_ACEOF
6676/* confdefs.h. */
6677_ACEOF
6678cat confdefs.h >>conftest.$ac_ext
6679cat >>conftest.$ac_ext <<_ACEOF
6680/* end confdefs.h. */
6681#include <netinet/tcp.h>
6682_ACEOF
6683if { (ac_try="$ac_cpp conftest.$ac_ext"
6684case "(($ac_try" in
6685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686 *) ac_try_echo=$ac_try;;
6687esac
6688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6690 ac_status=$?
6691 grep -v '^ *+' conftest.er1 >conftest.err
6692 rm -f conftest.er1
6693 cat conftest.err >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } >/dev/null && {
6696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6697 test ! -s conftest.err
6698 }; then
6699 ac_header_preproc=yes
6700else
6701 echo "$as_me: failed program was:" >&5
6702sed 's/^/| /' conftest.$ac_ext >&5
6703
6704 ac_header_preproc=no
6705fi
6706
6707rm -f conftest.err conftest.$ac_ext
6708{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6709echo "${ECHO_T}$ac_header_preproc" >&6; }
6710
6711# So? What about this header?
6712case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6713 yes:no: )
6714 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&5
6715echo "$as_me: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6716 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&5
6717echo "$as_me: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&2;}
6718 ac_header_preproc=yes
6719 ;;
6720 no:yes:* )
6721 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: present but cannot be compiled" >&5
6722echo "$as_me: WARNING: netinet/tcp.h: present but cannot be compiled" >&2;}
6723 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&5
6724echo "$as_me: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&2;}
6725 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: see the Autoconf documentation" >&5
6726echo "$as_me: WARNING: netinet/tcp.h: see the Autoconf documentation" >&2;}
6727 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&5
6728echo "$as_me: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&2;}
6729 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&5
6730echo "$as_me: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&2;}
6731 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&5
6732echo "$as_me: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&2;}
6733
6734 ;;
6735esac
6736{ echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
6737echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
6738if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6740else
6741 ac_cv_header_netinet_tcp_h=$ac_header_preproc
6742fi
6743{ echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
6744echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
6745
6746fi
6747if test $ac_cv_header_netinet_tcp_h = yes; then
6748 cat >>confdefs.h <<\_ACEOF
6749#define PJ_HAS_NETINET_TCP_H 1
6750_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +00006751
Sauw Minge7dbbc82011-10-24 09:28:13 +00006752fi
6753
Sauw Minge7dbbc82011-10-24 09:28:13 +00006754
Benny Prijono36d32492011-12-28 08:42:23 +00006755if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6756 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
6757echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
6758if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6760fi
6761{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
6762echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
6763else
6764 # Is the header compilable?
6765{ echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
6766echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
6767cat >conftest.$ac_ext <<_ACEOF
6768/* confdefs.h. */
6769_ACEOF
6770cat confdefs.h >>conftest.$ac_ext
6771cat >>conftest.$ac_ext <<_ACEOF
6772/* end confdefs.h. */
6773$ac_includes_default
6774#include <ifaddrs.h>
6775_ACEOF
6776rm -f conftest.$ac_objext
6777if { (ac_try="$ac_compile"
6778case "(($ac_try" in
6779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6780 *) ac_try_echo=$ac_try;;
6781esac
6782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6783 (eval "$ac_compile") 2>conftest.er1
6784 ac_status=$?
6785 grep -v '^ *+' conftest.er1 >conftest.err
6786 rm -f conftest.er1
6787 cat conftest.err >&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } && {
6790 test -z "$ac_c_werror_flag" ||
6791 test ! -s conftest.err
6792 } && test -s conftest.$ac_objext; then
6793 ac_header_compiler=yes
6794else
6795 echo "$as_me: failed program was:" >&5
6796sed 's/^/| /' conftest.$ac_ext >&5
6797
6798 ac_header_compiler=no
6799fi
6800
6801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6803echo "${ECHO_T}$ac_header_compiler" >&6; }
6804
6805# Is the header present?
6806{ echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
6807echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
6808cat >conftest.$ac_ext <<_ACEOF
6809/* confdefs.h. */
6810_ACEOF
6811cat confdefs.h >>conftest.$ac_ext
6812cat >>conftest.$ac_ext <<_ACEOF
6813/* end confdefs.h. */
6814#include <ifaddrs.h>
6815_ACEOF
6816if { (ac_try="$ac_cpp conftest.$ac_ext"
6817case "(($ac_try" in
6818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6819 *) ac_try_echo=$ac_try;;
6820esac
6821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6823 ac_status=$?
6824 grep -v '^ *+' conftest.er1 >conftest.err
6825 rm -f conftest.er1
6826 cat conftest.err >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); } >/dev/null && {
6829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6830 test ! -s conftest.err
6831 }; then
6832 ac_header_preproc=yes
6833else
6834 echo "$as_me: failed program was:" >&5
6835sed 's/^/| /' conftest.$ac_ext >&5
6836
6837 ac_header_preproc=no
6838fi
6839
6840rm -f conftest.err conftest.$ac_ext
6841{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6842echo "${ECHO_T}$ac_header_preproc" >&6; }
6843
6844# So? What about this header?
6845case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6846 yes:no: )
6847 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
6848echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6849 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
6850echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
6851 ac_header_preproc=yes
6852 ;;
6853 no:yes:* )
6854 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
6855echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
6856 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
6857echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
6858 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
6859echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
6860 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
6861echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
6862 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
6863echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
6864 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
6865echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
6866
6867 ;;
6868esac
6869{ echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
6870echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
6871if test "${ac_cv_header_ifaddrs_h+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
6873else
6874 ac_cv_header_ifaddrs_h=$ac_header_preproc
6875fi
6876{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
6877echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
6878
6879fi
6880if test $ac_cv_header_ifaddrs_h = yes; then
6881 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
6882echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
6883if test "${ac_cv_func_getifaddrs+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6885else
6886 cat >conftest.$ac_ext <<_ACEOF
6887/* confdefs.h. */
6888_ACEOF
6889cat confdefs.h >>conftest.$ac_ext
6890cat >>conftest.$ac_ext <<_ACEOF
6891/* end confdefs.h. */
6892/* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
6893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6894#define getifaddrs innocuous_getifaddrs
6895
6896/* System header to define __stub macros and hopefully few prototypes,
6897 which can conflict with char getifaddrs (); below.
6898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6899 <limits.h> exists even on freestanding compilers. */
6900
6901#ifdef __STDC__
6902# include <limits.h>
6903#else
6904# include <assert.h>
6905#endif
6906
6907#undef getifaddrs
6908
6909/* Override any GCC internal prototype to avoid an error.
6910 Use char because int might match the return type of a GCC
6911 builtin and then its argument prototype would still apply. */
6912#ifdef __cplusplus
6913extern "C"
6914#endif
6915char getifaddrs ();
6916/* The GNU C library defines this for functions which it implements
6917 to always fail with ENOSYS. Some functions are actually named
6918 something starting with __ and the normal name is an alias. */
6919#if defined __stub_getifaddrs || defined __stub___getifaddrs
6920choke me
6921#endif
6922
6923int
6924main ()
6925{
6926return getifaddrs ();
6927 ;
6928 return 0;
6929}
6930_ACEOF
6931rm -f conftest.$ac_objext conftest$ac_exeext
6932if { (ac_try="$ac_link"
6933case "(($ac_try" in
6934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6935 *) ac_try_echo=$ac_try;;
6936esac
6937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6938 (eval "$ac_link") 2>conftest.er1
6939 ac_status=$?
6940 grep -v '^ *+' conftest.er1 >conftest.err
6941 rm -f conftest.er1
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } && {
6945 test -z "$ac_c_werror_flag" ||
6946 test ! -s conftest.err
6947 } && test -s conftest$ac_exeext &&
6948 $as_test_x conftest$ac_exeext; then
6949 ac_cv_func_getifaddrs=yes
6950else
6951 echo "$as_me: failed program was:" >&5
6952sed 's/^/| /' conftest.$ac_ext >&5
6953
6954 ac_cv_func_getifaddrs=no
6955fi
6956
6957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6958 conftest$ac_exeext conftest.$ac_ext
6959fi
6960{ echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
6961echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
6962if test $ac_cv_func_getifaddrs = yes; then
6963 cat >>confdefs.h <<\_ACEOF
6964#define PJ_HAS_IFADDRS_H 1
6965_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +00006966
6967fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00006968
Sauw Mingd8aa67c2011-08-09 04:31:41 +00006969fi
6970
Sauw Mingd8aa67c2011-08-09 04:31:41 +00006971
Benny Prijono36d32492011-12-28 08:42:23 +00006972if test "${ac_cv_header_semaphore_h+set}" = set; then
6973 { echo "$as_me:$LINENO: checking for semaphore.h" >&5
6974echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; }
6975if test "${ac_cv_header_semaphore_h+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6977fi
6978{ echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
6979echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; }
6980else
6981 # Is the header compilable?
6982{ echo "$as_me:$LINENO: checking semaphore.h usability" >&5
6983echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6; }
6984cat >conftest.$ac_ext <<_ACEOF
6985/* confdefs.h. */
6986_ACEOF
6987cat confdefs.h >>conftest.$ac_ext
6988cat >>conftest.$ac_ext <<_ACEOF
6989/* end confdefs.h. */
6990$ac_includes_default
6991#include <semaphore.h>
6992_ACEOF
6993rm -f conftest.$ac_objext
6994if { (ac_try="$ac_compile"
6995case "(($ac_try" in
6996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6997 *) ac_try_echo=$ac_try;;
6998esac
6999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7000 (eval "$ac_compile") 2>conftest.er1
7001 ac_status=$?
7002 grep -v '^ *+' conftest.er1 >conftest.err
7003 rm -f conftest.er1
7004 cat conftest.err >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } && {
7007 test -z "$ac_c_werror_flag" ||
7008 test ! -s conftest.err
7009 } && test -s conftest.$ac_objext; then
7010 ac_header_compiler=yes
7011else
7012 echo "$as_me: failed program was:" >&5
7013sed 's/^/| /' conftest.$ac_ext >&5
7014
7015 ac_header_compiler=no
7016fi
7017
7018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7019{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7020echo "${ECHO_T}$ac_header_compiler" >&6; }
7021
7022# Is the header present?
7023{ echo "$as_me:$LINENO: checking semaphore.h presence" >&5
7024echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6; }
7025cat >conftest.$ac_ext <<_ACEOF
7026/* confdefs.h. */
7027_ACEOF
7028cat confdefs.h >>conftest.$ac_ext
7029cat >>conftest.$ac_ext <<_ACEOF
7030/* end confdefs.h. */
7031#include <semaphore.h>
7032_ACEOF
7033if { (ac_try="$ac_cpp conftest.$ac_ext"
7034case "(($ac_try" in
7035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7036 *) ac_try_echo=$ac_try;;
7037esac
7038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7040 ac_status=$?
7041 grep -v '^ *+' conftest.er1 >conftest.err
7042 rm -f conftest.er1
7043 cat conftest.err >&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } >/dev/null && {
7046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7047 test ! -s conftest.err
7048 }; then
7049 ac_header_preproc=yes
7050else
7051 echo "$as_me: failed program was:" >&5
7052sed 's/^/| /' conftest.$ac_ext >&5
7053
7054 ac_header_preproc=no
7055fi
7056
7057rm -f conftest.err conftest.$ac_ext
7058{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7059echo "${ECHO_T}$ac_header_preproc" >&6; }
7060
7061# So? What about this header?
7062case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7063 yes:no: )
7064 { echo "$as_me:$LINENO: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&5
7065echo "$as_me: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7066 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the compiler's result" >&5
7067echo "$as_me: WARNING: semaphore.h: proceeding with the compiler's result" >&2;}
7068 ac_header_preproc=yes
7069 ;;
7070 no:yes:* )
7071 { echo "$as_me:$LINENO: WARNING: semaphore.h: present but cannot be compiled" >&5
7072echo "$as_me: WARNING: semaphore.h: present but cannot be compiled" >&2;}
7073 { echo "$as_me:$LINENO: WARNING: semaphore.h: check for missing prerequisite headers?" >&5
7074echo "$as_me: WARNING: semaphore.h: check for missing prerequisite headers?" >&2;}
7075 { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5
7076echo "$as_me: WARNING: semaphore.h: see the Autoconf documentation" >&2;}
7077 { echo "$as_me:$LINENO: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&5
7078echo "$as_me: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&2;}
7079 { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the preprocessor's result" >&5
7080echo "$as_me: WARNING: semaphore.h: proceeding with the preprocessor's result" >&2;}
7081 { echo "$as_me:$LINENO: WARNING: semaphore.h: in the future, the compiler will take precedence" >&5
7082echo "$as_me: WARNING: semaphore.h: in the future, the compiler will take precedence" >&2;}
7083
7084 ;;
7085esac
7086{ echo "$as_me:$LINENO: checking for semaphore.h" >&5
7087echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6; }
7088if test "${ac_cv_header_semaphore_h+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7090else
7091 ac_cv_header_semaphore_h=$ac_header_preproc
7092fi
7093{ echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5
7094echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6; }
7095
7096fi
7097if test $ac_cv_header_semaphore_h = yes; then
7098 cat >>confdefs.h <<\_ACEOF
7099#define PJ_HAS_SEMAPHORE_H 1
7100_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +00007101
Sauw Minge7dbbc82011-10-24 09:28:13 +00007102fi
7103
Sauw Minge7dbbc82011-10-24 09:28:13 +00007104
Benny Prijono36d32492011-12-28 08:42:23 +00007105if test "${ac_cv_header_setjmp_h+set}" = set; then
7106 { echo "$as_me:$LINENO: checking for setjmp.h" >&5
7107echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; }
7108if test "${ac_cv_header_setjmp_h+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7110fi
7111{ echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
7112echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; }
7113else
7114 # Is the header compilable?
7115{ echo "$as_me:$LINENO: checking setjmp.h usability" >&5
7116echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6; }
7117cat >conftest.$ac_ext <<_ACEOF
7118/* confdefs.h. */
7119_ACEOF
7120cat confdefs.h >>conftest.$ac_ext
7121cat >>conftest.$ac_ext <<_ACEOF
7122/* end confdefs.h. */
7123$ac_includes_default
7124#include <setjmp.h>
7125_ACEOF
7126rm -f conftest.$ac_objext
7127if { (ac_try="$ac_compile"
7128case "(($ac_try" in
7129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7130 *) ac_try_echo=$ac_try;;
7131esac
7132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7133 (eval "$ac_compile") 2>conftest.er1
7134 ac_status=$?
7135 grep -v '^ *+' conftest.er1 >conftest.err
7136 rm -f conftest.er1
7137 cat conftest.err >&5
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); } && {
7140 test -z "$ac_c_werror_flag" ||
7141 test ! -s conftest.err
7142 } && test -s conftest.$ac_objext; then
7143 ac_header_compiler=yes
7144else
7145 echo "$as_me: failed program was:" >&5
7146sed 's/^/| /' conftest.$ac_ext >&5
7147
7148 ac_header_compiler=no
7149fi
7150
7151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7153echo "${ECHO_T}$ac_header_compiler" >&6; }
7154
7155# Is the header present?
7156{ echo "$as_me:$LINENO: checking setjmp.h presence" >&5
7157echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6; }
7158cat >conftest.$ac_ext <<_ACEOF
7159/* confdefs.h. */
7160_ACEOF
7161cat confdefs.h >>conftest.$ac_ext
7162cat >>conftest.$ac_ext <<_ACEOF
7163/* end confdefs.h. */
7164#include <setjmp.h>
7165_ACEOF
7166if { (ac_try="$ac_cpp conftest.$ac_ext"
7167case "(($ac_try" in
7168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7169 *) ac_try_echo=$ac_try;;
7170esac
7171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } >/dev/null && {
7179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7180 test ! -s conftest.err
7181 }; then
7182 ac_header_preproc=yes
7183else
7184 echo "$as_me: failed program was:" >&5
7185sed 's/^/| /' conftest.$ac_ext >&5
7186
7187 ac_header_preproc=no
7188fi
7189
7190rm -f conftest.err conftest.$ac_ext
7191{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7192echo "${ECHO_T}$ac_header_preproc" >&6; }
7193
7194# So? What about this header?
7195case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7196 yes:no: )
7197 { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
7198echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7199 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5
7200echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;}
7201 ac_header_preproc=yes
7202 ;;
7203 no:yes:* )
7204 { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5
7205echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;}
7206 { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5
7207echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;}
7208 { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5
7209echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;}
7210 { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5
7211echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
7212 { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5
7213echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;}
7214 { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5
7215echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;}
7216
7217 ;;
7218esac
7219{ echo "$as_me:$LINENO: checking for setjmp.h" >&5
7220echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6; }
7221if test "${ac_cv_header_setjmp_h+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7223else
7224 ac_cv_header_setjmp_h=$ac_header_preproc
7225fi
7226{ echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5
7227echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6; }
7228
7229fi
7230if test $ac_cv_header_setjmp_h = yes; then
7231 cat >>confdefs.h <<\_ACEOF
7232#define PJ_HAS_SETJMP_H 1
7233_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +00007234
Sauw Minge7dbbc82011-10-24 09:28:13 +00007235fi
7236
Sauw Minge7dbbc82011-10-24 09:28:13 +00007237
Benny Prijono36d32492011-12-28 08:42:23 +00007238if test "${ac_cv_header_stdarg_h+set}" = set; then
7239 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
7240echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7241if test "${ac_cv_header_stdarg_h+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243fi
7244{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7245echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7246else
7247 # Is the header compilable?
7248{ echo "$as_me:$LINENO: checking stdarg.h usability" >&5
7249echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
7250cat >conftest.$ac_ext <<_ACEOF
7251/* confdefs.h. */
7252_ACEOF
7253cat confdefs.h >>conftest.$ac_ext
7254cat >>conftest.$ac_ext <<_ACEOF
7255/* end confdefs.h. */
7256$ac_includes_default
7257#include <stdarg.h>
7258_ACEOF
7259rm -f conftest.$ac_objext
7260if { (ac_try="$ac_compile"
7261case "(($ac_try" in
7262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7264esac
7265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_compile") 2>conftest.er1
7267 ac_status=$?
7268 grep -v '^ *+' conftest.er1 >conftest.err
7269 rm -f conftest.er1
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_c_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest.$ac_objext; then
7276 ac_header_compiler=yes
7277else
7278 echo "$as_me: failed program was:" >&5
7279sed 's/^/| /' conftest.$ac_ext >&5
7280
7281 ac_header_compiler=no
7282fi
7283
7284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7286echo "${ECHO_T}$ac_header_compiler" >&6; }
7287
7288# Is the header present?
7289{ echo "$as_me:$LINENO: checking stdarg.h presence" >&5
7290echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
7291cat >conftest.$ac_ext <<_ACEOF
7292/* confdefs.h. */
7293_ACEOF
7294cat confdefs.h >>conftest.$ac_ext
7295cat >>conftest.$ac_ext <<_ACEOF
7296/* end confdefs.h. */
7297#include <stdarg.h>
7298_ACEOF
7299if { (ac_try="$ac_cpp conftest.$ac_ext"
7300case "(($ac_try" in
7301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7302 *) ac_try_echo=$ac_try;;
7303esac
7304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7306 ac_status=$?
7307 grep -v '^ *+' conftest.er1 >conftest.err
7308 rm -f conftest.er1
7309 cat conftest.err >&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } >/dev/null && {
7312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7313 test ! -s conftest.err
7314 }; then
7315 ac_header_preproc=yes
7316else
7317 echo "$as_me: failed program was:" >&5
7318sed 's/^/| /' conftest.$ac_ext >&5
7319
7320 ac_header_preproc=no
7321fi
7322
7323rm -f conftest.err conftest.$ac_ext
7324{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7325echo "${ECHO_T}$ac_header_preproc" >&6; }
7326
7327# So? What about this header?
7328case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7329 yes:no: )
7330 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
7331echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7332 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
7333echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
7334 ac_header_preproc=yes
7335 ;;
7336 no:yes:* )
7337 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
7338echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
7339 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
7340echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
7341 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
7342echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
7343 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
7344echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
7345 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
7346echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
7347 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
7348echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
7349
7350 ;;
7351esac
7352{ echo "$as_me:$LINENO: checking for stdarg.h" >&5
7353echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7354if test "${ac_cv_header_stdarg_h+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7356else
7357 ac_cv_header_stdarg_h=$ac_header_preproc
7358fi
7359{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7360echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7361
7362fi
7363if test $ac_cv_header_stdarg_h = yes; then
7364 cat >>confdefs.h <<\_ACEOF
7365#define PJ_HAS_STDARG_H 1
7366_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +00007367
7368fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00007369
Sauw Minge7dbbc82011-10-24 09:28:13 +00007370
Benny Prijono36d32492011-12-28 08:42:23 +00007371if test "${ac_cv_header_stddef_h+set}" = set; then
7372 { echo "$as_me:$LINENO: checking for stddef.h" >&5
7373echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
7374if test "${ac_cv_header_stddef_h+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7376fi
7377{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
7378echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
7379else
7380 # Is the header compilable?
7381{ echo "$as_me:$LINENO: checking stddef.h usability" >&5
7382echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6; }
7383cat >conftest.$ac_ext <<_ACEOF
7384/* confdefs.h. */
7385_ACEOF
7386cat confdefs.h >>conftest.$ac_ext
7387cat >>conftest.$ac_ext <<_ACEOF
7388/* end confdefs.h. */
7389$ac_includes_default
7390#include <stddef.h>
7391_ACEOF
7392rm -f conftest.$ac_objext
7393if { (ac_try="$ac_compile"
7394case "(($ac_try" in
7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7397esac
7398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399 (eval "$ac_compile") 2>conftest.er1
7400 ac_status=$?
7401 grep -v '^ *+' conftest.er1 >conftest.err
7402 rm -f conftest.er1
7403 cat conftest.err >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } && {
7406 test -z "$ac_c_werror_flag" ||
7407 test ! -s conftest.err
7408 } && test -s conftest.$ac_objext; then
7409 ac_header_compiler=yes
7410else
7411 echo "$as_me: failed program was:" >&5
7412sed 's/^/| /' conftest.$ac_ext >&5
7413
7414 ac_header_compiler=no
7415fi
7416
7417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7419echo "${ECHO_T}$ac_header_compiler" >&6; }
7420
7421# Is the header present?
7422{ echo "$as_me:$LINENO: checking stddef.h presence" >&5
7423echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6; }
7424cat >conftest.$ac_ext <<_ACEOF
7425/* confdefs.h. */
7426_ACEOF
7427cat confdefs.h >>conftest.$ac_ext
7428cat >>conftest.$ac_ext <<_ACEOF
7429/* end confdefs.h. */
7430#include <stddef.h>
7431_ACEOF
7432if { (ac_try="$ac_cpp conftest.$ac_ext"
7433case "(($ac_try" in
7434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435 *) ac_try_echo=$ac_try;;
7436esac
7437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7439 ac_status=$?
7440 grep -v '^ *+' conftest.er1 >conftest.err
7441 rm -f conftest.er1
7442 cat conftest.err >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } >/dev/null && {
7445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7446 test ! -s conftest.err
7447 }; then
7448 ac_header_preproc=yes
7449else
7450 echo "$as_me: failed program was:" >&5
7451sed 's/^/| /' conftest.$ac_ext >&5
7452
7453 ac_header_preproc=no
7454fi
7455
7456rm -f conftest.err conftest.$ac_ext
7457{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7458echo "${ECHO_T}$ac_header_preproc" >&6; }
7459
7460# So? What about this header?
7461case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7462 yes:no: )
7463 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
7464echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7465 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
7466echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
7467 ac_header_preproc=yes
7468 ;;
7469 no:yes:* )
7470 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
7471echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
7472 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
7473echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
7474 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
7475echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
7476 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
7477echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
7478 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
7479echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
7480 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
7481echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
7482
7483 ;;
7484esac
7485{ echo "$as_me:$LINENO: checking for stddef.h" >&5
7486echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
7487if test "${ac_cv_header_stddef_h+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7489else
7490 ac_cv_header_stddef_h=$ac_header_preproc
7491fi
7492{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
7493echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
7494
7495fi
7496if test $ac_cv_header_stddef_h = yes; then
7497 cat >>confdefs.h <<\_ACEOF
7498#define PJ_HAS_STDDEF_H 1
7499_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +00007500
Sauw Minge7dbbc82011-10-24 09:28:13 +00007501fi
7502
Sauw Mingd8aa67c2011-08-09 04:31:41 +00007503
Benny Prijono36d32492011-12-28 08:42:23 +00007504if test "${ac_cv_header_stdio_h+set}" = set; then
7505 { echo "$as_me:$LINENO: checking for stdio.h" >&5
7506echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; }
7507if test "${ac_cv_header_stdio_h+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509fi
7510{ echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
7511echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; }
7512else
7513 # Is the header compilable?
7514{ echo "$as_me:$LINENO: checking stdio.h usability" >&5
7515echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6; }
7516cat >conftest.$ac_ext <<_ACEOF
7517/* confdefs.h. */
7518_ACEOF
7519cat confdefs.h >>conftest.$ac_ext
7520cat >>conftest.$ac_ext <<_ACEOF
7521/* end confdefs.h. */
7522$ac_includes_default
7523#include <stdio.h>
7524_ACEOF
7525rm -f conftest.$ac_objext
7526if { (ac_try="$ac_compile"
7527case "(($ac_try" in
7528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529 *) ac_try_echo=$ac_try;;
7530esac
7531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7532 (eval "$ac_compile") 2>conftest.er1
7533 ac_status=$?
7534 grep -v '^ *+' conftest.er1 >conftest.err
7535 rm -f conftest.er1
7536 cat conftest.err >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } && {
7539 test -z "$ac_c_werror_flag" ||
7540 test ! -s conftest.err
7541 } && test -s conftest.$ac_objext; then
7542 ac_header_compiler=yes
7543else
7544 echo "$as_me: failed program was:" >&5
7545sed 's/^/| /' conftest.$ac_ext >&5
7546
7547 ac_header_compiler=no
7548fi
7549
7550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7551{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7552echo "${ECHO_T}$ac_header_compiler" >&6; }
7553
7554# Is the header present?
7555{ echo "$as_me:$LINENO: checking stdio.h presence" >&5
7556echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6; }
7557cat >conftest.$ac_ext <<_ACEOF
7558/* confdefs.h. */
7559_ACEOF
7560cat confdefs.h >>conftest.$ac_ext
7561cat >>conftest.$ac_ext <<_ACEOF
7562/* end confdefs.h. */
7563#include <stdio.h>
7564_ACEOF
7565if { (ac_try="$ac_cpp conftest.$ac_ext"
7566case "(($ac_try" in
7567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7569esac
7570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7572 ac_status=$?
7573 grep -v '^ *+' conftest.er1 >conftest.err
7574 rm -f conftest.er1
7575 cat conftest.err >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } >/dev/null && {
7578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7579 test ! -s conftest.err
7580 }; then
7581 ac_header_preproc=yes
7582else
7583 echo "$as_me: failed program was:" >&5
7584sed 's/^/| /' conftest.$ac_ext >&5
7585
7586 ac_header_preproc=no
7587fi
7588
7589rm -f conftest.err conftest.$ac_ext
7590{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7591echo "${ECHO_T}$ac_header_preproc" >&6; }
7592
7593# So? What about this header?
7594case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7595 yes:no: )
7596 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
7597echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7598 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
7599echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
7600 ac_header_preproc=yes
7601 ;;
7602 no:yes:* )
7603 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
7604echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
7605 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
7606echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
7607 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
7608echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
7609 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
7610echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
7611 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
7612echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
7613 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
7614echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
7615
7616 ;;
7617esac
7618{ echo "$as_me:$LINENO: checking for stdio.h" >&5
7619echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; }
7620if test "${ac_cv_header_stdio_h+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7622else
7623 ac_cv_header_stdio_h=$ac_header_preproc
7624fi
7625{ echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
7626echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; }
7627
7628fi
7629if test $ac_cv_header_stdio_h = yes; then
7630 cat >>confdefs.h <<\_ACEOF
7631#define PJ_HAS_STDIO_H 1
7632_ACEOF
Sauw Ming68c14572011-07-20 03:00:48 +00007633
Sauw Ming68c14572011-07-20 03:00:48 +00007634fi
7635
Sauw Ming68c14572011-07-20 03:00:48 +00007636
Benny Prijono36d32492011-12-28 08:42:23 +00007637if test "${ac_cv_header_stdint_h+set}" = set; then
7638 { echo "$as_me:$LINENO: checking for stdint.h" >&5
7639echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
7640if test "${ac_cv_header_stdint_h+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7642fi
7643{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
7644echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
7645else
7646 # Is the header compilable?
7647{ echo "$as_me:$LINENO: checking stdint.h usability" >&5
7648echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
7649cat >conftest.$ac_ext <<_ACEOF
7650/* confdefs.h. */
7651_ACEOF
7652cat confdefs.h >>conftest.$ac_ext
7653cat >>conftest.$ac_ext <<_ACEOF
7654/* end confdefs.h. */
7655$ac_includes_default
7656#include <stdint.h>
7657_ACEOF
7658rm -f conftest.$ac_objext
7659if { (ac_try="$ac_compile"
7660case "(($ac_try" in
7661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7662 *) ac_try_echo=$ac_try;;
7663esac
7664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7665 (eval "$ac_compile") 2>conftest.er1
7666 ac_status=$?
7667 grep -v '^ *+' conftest.er1 >conftest.err
7668 rm -f conftest.er1
7669 cat conftest.err >&5
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); } && {
7672 test -z "$ac_c_werror_flag" ||
7673 test ! -s conftest.err
7674 } && test -s conftest.$ac_objext; then
7675 ac_header_compiler=yes
7676else
7677 echo "$as_me: failed program was:" >&5
7678sed 's/^/| /' conftest.$ac_ext >&5
7679
7680 ac_header_compiler=no
7681fi
7682
7683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7684{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7685echo "${ECHO_T}$ac_header_compiler" >&6; }
7686
7687# Is the header present?
7688{ echo "$as_me:$LINENO: checking stdint.h presence" >&5
7689echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
7690cat >conftest.$ac_ext <<_ACEOF
7691/* confdefs.h. */
7692_ACEOF
7693cat confdefs.h >>conftest.$ac_ext
7694cat >>conftest.$ac_ext <<_ACEOF
7695/* end confdefs.h. */
7696#include <stdint.h>
7697_ACEOF
7698if { (ac_try="$ac_cpp conftest.$ac_ext"
7699case "(($ac_try" in
7700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7701 *) ac_try_echo=$ac_try;;
7702esac
7703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7705 ac_status=$?
7706 grep -v '^ *+' conftest.er1 >conftest.err
7707 rm -f conftest.er1
7708 cat conftest.err >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } >/dev/null && {
7711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7712 test ! -s conftest.err
7713 }; then
7714 ac_header_preproc=yes
7715else
7716 echo "$as_me: failed program was:" >&5
7717sed 's/^/| /' conftest.$ac_ext >&5
7718
7719 ac_header_preproc=no
7720fi
7721
7722rm -f conftest.err conftest.$ac_ext
7723{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7724echo "${ECHO_T}$ac_header_preproc" >&6; }
7725
7726# So? What about this header?
7727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7728 yes:no: )
7729 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
7730echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7731 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
7732echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
7733 ac_header_preproc=yes
7734 ;;
7735 no:yes:* )
7736 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
7737echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
7738 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
7739echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
7740 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
7741echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
7742 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
7743echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
7744 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
7745echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
7746 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
7747echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
7748
7749 ;;
7750esac
7751{ echo "$as_me:$LINENO: checking for stdint.h" >&5
7752echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
7753if test "${ac_cv_header_stdint_h+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7755else
7756 ac_cv_header_stdint_h=$ac_header_preproc
7757fi
7758{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
7759echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
7760
7761fi
7762if test $ac_cv_header_stdint_h = yes; then
7763 cat >>confdefs.h <<\_ACEOF
7764#define PJ_HAS_STDINT_H 1
7765_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +00007766
Sauw Minge7dbbc82011-10-24 09:28:13 +00007767fi
7768
Sauw Minge7dbbc82011-10-24 09:28:13 +00007769
Benny Prijono36d32492011-12-28 08:42:23 +00007770if test "${ac_cv_header_stdlib_h+set}" = set; then
7771 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
7772echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
7773if test "${ac_cv_header_stdlib_h+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7775fi
7776{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7777echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
7778else
7779 # Is the header compilable?
7780{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5
7781echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
7782cat >conftest.$ac_ext <<_ACEOF
7783/* confdefs.h. */
7784_ACEOF
7785cat confdefs.h >>conftest.$ac_ext
7786cat >>conftest.$ac_ext <<_ACEOF
7787/* end confdefs.h. */
7788$ac_includes_default
7789#include <stdlib.h>
7790_ACEOF
7791rm -f conftest.$ac_objext
7792if { (ac_try="$ac_compile"
7793case "(($ac_try" in
7794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7795 *) ac_try_echo=$ac_try;;
7796esac
7797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7798 (eval "$ac_compile") 2>conftest.er1
7799 ac_status=$?
7800 grep -v '^ *+' conftest.er1 >conftest.err
7801 rm -f conftest.er1
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } && {
7805 test -z "$ac_c_werror_flag" ||
7806 test ! -s conftest.err
7807 } && test -s conftest.$ac_objext; then
7808 ac_header_compiler=yes
7809else
7810 echo "$as_me: failed program was:" >&5
7811sed 's/^/| /' conftest.$ac_ext >&5
7812
7813 ac_header_compiler=no
7814fi
7815
7816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7818echo "${ECHO_T}$ac_header_compiler" >&6; }
7819
7820# Is the header present?
7821{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5
7822echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
7823cat >conftest.$ac_ext <<_ACEOF
7824/* confdefs.h. */
7825_ACEOF
7826cat confdefs.h >>conftest.$ac_ext
7827cat >>conftest.$ac_ext <<_ACEOF
7828/* end confdefs.h. */
7829#include <stdlib.h>
7830_ACEOF
7831if { (ac_try="$ac_cpp conftest.$ac_ext"
7832case "(($ac_try" in
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7835esac
7836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7838 ac_status=$?
7839 grep -v '^ *+' conftest.er1 >conftest.err
7840 rm -f conftest.er1
7841 cat conftest.err >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } >/dev/null && {
7844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7845 test ! -s conftest.err
7846 }; then
7847 ac_header_preproc=yes
7848else
7849 echo "$as_me: failed program was:" >&5
7850sed 's/^/| /' conftest.$ac_ext >&5
7851
7852 ac_header_preproc=no
7853fi
7854
7855rm -f conftest.err conftest.$ac_ext
7856{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7857echo "${ECHO_T}$ac_header_preproc" >&6; }
7858
7859# So? What about this header?
7860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7861 yes:no: )
7862 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7863echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7864 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
7865echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
7866 ac_header_preproc=yes
7867 ;;
7868 no:yes:* )
7869 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
7870echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
7871 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
7872echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
7873 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
7874echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
7875 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
7876echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
7877 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
7878echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
7879 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
7880echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
7881
7882 ;;
7883esac
7884{ echo "$as_me:$LINENO: checking for stdlib.h" >&5
7885echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
7886if test "${ac_cv_header_stdlib_h+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888else
7889 ac_cv_header_stdlib_h=$ac_header_preproc
7890fi
7891{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7892echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
7893
7894fi
7895if test $ac_cv_header_stdlib_h = yes; then
7896 cat >>confdefs.h <<\_ACEOF
7897#define PJ_HAS_STDLIB_H 1
7898_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +00007899
Sauw Minge7dbbc82011-10-24 09:28:13 +00007900fi
7901
Sauw Minge7dbbc82011-10-24 09:28:13 +00007902
Benny Prijono36d32492011-12-28 08:42:23 +00007903if test "${ac_cv_header_string_h+set}" = set; then
7904 { echo "$as_me:$LINENO: checking for string.h" >&5
7905echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
7906if test "${ac_cv_header_string_h+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908fi
7909{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7910echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
7911else
7912 # Is the header compilable?
7913{ echo "$as_me:$LINENO: checking string.h usability" >&5
7914echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
7915cat >conftest.$ac_ext <<_ACEOF
7916/* confdefs.h. */
7917_ACEOF
7918cat confdefs.h >>conftest.$ac_ext
7919cat >>conftest.$ac_ext <<_ACEOF
7920/* end confdefs.h. */
7921$ac_includes_default
7922#include <string.h>
7923_ACEOF
7924rm -f conftest.$ac_objext
7925if { (ac_try="$ac_compile"
7926case "(($ac_try" in
7927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928 *) ac_try_echo=$ac_try;;
7929esac
7930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7931 (eval "$ac_compile") 2>conftest.er1
7932 ac_status=$?
7933 grep -v '^ *+' conftest.er1 >conftest.err
7934 rm -f conftest.er1
7935 cat conftest.err >&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } && {
7938 test -z "$ac_c_werror_flag" ||
7939 test ! -s conftest.err
7940 } && test -s conftest.$ac_objext; then
7941 ac_header_compiler=yes
7942else
7943 echo "$as_me: failed program was:" >&5
7944sed 's/^/| /' conftest.$ac_ext >&5
7945
7946 ac_header_compiler=no
7947fi
7948
7949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7951echo "${ECHO_T}$ac_header_compiler" >&6; }
7952
7953# Is the header present?
7954{ echo "$as_me:$LINENO: checking string.h presence" >&5
7955echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
7956cat >conftest.$ac_ext <<_ACEOF
7957/* confdefs.h. */
7958_ACEOF
7959cat confdefs.h >>conftest.$ac_ext
7960cat >>conftest.$ac_ext <<_ACEOF
7961/* end confdefs.h. */
7962#include <string.h>
7963_ACEOF
7964if { (ac_try="$ac_cpp conftest.$ac_ext"
7965case "(($ac_try" in
7966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967 *) ac_try_echo=$ac_try;;
7968esac
7969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7971 ac_status=$?
7972 grep -v '^ *+' conftest.er1 >conftest.err
7973 rm -f conftest.er1
7974 cat conftest.err >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } >/dev/null && {
7977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7978 test ! -s conftest.err
7979 }; then
7980 ac_header_preproc=yes
7981else
7982 echo "$as_me: failed program was:" >&5
7983sed 's/^/| /' conftest.$ac_ext >&5
7984
7985 ac_header_preproc=no
7986fi
7987
7988rm -f conftest.err conftest.$ac_ext
7989{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7990echo "${ECHO_T}$ac_header_preproc" >&6; }
7991
7992# So? What about this header?
7993case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7994 yes:no: )
7995 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7996echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7997 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
7998echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
7999 ac_header_preproc=yes
8000 ;;
8001 no:yes:* )
8002 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
8003echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
8004 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
8005echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
8006 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
8007echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
8008 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
8009echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
8010 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
8011echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
8012 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8013echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8014
8015 ;;
8016esac
8017{ echo "$as_me:$LINENO: checking for string.h" >&5
8018echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
8019if test "${ac_cv_header_string_h+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8021else
8022 ac_cv_header_string_h=$ac_header_preproc
8023fi
8024{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8025echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
8026
8027fi
8028if test $ac_cv_header_string_h = yes; then
8029 cat >>confdefs.h <<\_ACEOF
8030#define PJ_HAS_STRING_H 1
8031_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00008032
Sauw Mingd8aa67c2011-08-09 04:31:41 +00008033fi
8034
Sauw Mingd8aa67c2011-08-09 04:31:41 +00008035
Benny Prijono36d32492011-12-28 08:42:23 +00008036if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
8037 { echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
8038echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; }
8039if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8041fi
8042{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
8043echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; }
8044else
8045 # Is the header compilable?
8046{ echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5
8047echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6; }
8048cat >conftest.$ac_ext <<_ACEOF
8049/* confdefs.h. */
8050_ACEOF
8051cat confdefs.h >>conftest.$ac_ext
8052cat >>conftest.$ac_ext <<_ACEOF
8053/* end confdefs.h. */
8054$ac_includes_default
8055#include <sys/ioctl.h>
8056_ACEOF
8057rm -f conftest.$ac_objext
8058if { (ac_try="$ac_compile"
8059case "(($ac_try" in
8060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061 *) ac_try_echo=$ac_try;;
8062esac
8063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8064 (eval "$ac_compile") 2>conftest.er1
8065 ac_status=$?
8066 grep -v '^ *+' conftest.er1 >conftest.err
8067 rm -f conftest.er1
8068 cat conftest.err >&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } && {
8071 test -z "$ac_c_werror_flag" ||
8072 test ! -s conftest.err
8073 } && test -s conftest.$ac_objext; then
8074 ac_header_compiler=yes
8075else
8076 echo "$as_me: failed program was:" >&5
8077sed 's/^/| /' conftest.$ac_ext >&5
8078
8079 ac_header_compiler=no
8080fi
8081
8082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8084echo "${ECHO_T}$ac_header_compiler" >&6; }
8085
8086# Is the header present?
8087{ echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5
8088echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6; }
8089cat >conftest.$ac_ext <<_ACEOF
8090/* confdefs.h. */
8091_ACEOF
8092cat confdefs.h >>conftest.$ac_ext
8093cat >>conftest.$ac_ext <<_ACEOF
8094/* end confdefs.h. */
8095#include <sys/ioctl.h>
8096_ACEOF
8097if { (ac_try="$ac_cpp conftest.$ac_ext"
8098case "(($ac_try" in
8099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100 *) ac_try_echo=$ac_try;;
8101esac
8102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8104 ac_status=$?
8105 grep -v '^ *+' conftest.er1 >conftest.err
8106 rm -f conftest.er1
8107 cat conftest.err >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } >/dev/null && {
8110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8111 test ! -s conftest.err
8112 }; then
8113 ac_header_preproc=yes
8114else
8115 echo "$as_me: failed program was:" >&5
8116sed 's/^/| /' conftest.$ac_ext >&5
8117
8118 ac_header_preproc=no
8119fi
8120
8121rm -f conftest.err conftest.$ac_ext
8122{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8123echo "${ECHO_T}$ac_header_preproc" >&6; }
8124
8125# So? What about this header?
8126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8127 yes:no: )
8128 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8129echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8130 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5
8131echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;}
8132 ac_header_preproc=yes
8133 ;;
8134 no:yes:* )
8135 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5
8136echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;}
8137 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5
8138echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;}
8139 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5
8140echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;}
8141 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
8142echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8143 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5
8144echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;}
8145 { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5
8146echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;}
8147
8148 ;;
8149esac
8150{ echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5
8151echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6; }
8152if test "${ac_cv_header_sys_ioctl_h+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
8154else
8155 ac_cv_header_sys_ioctl_h=$ac_header_preproc
8156fi
8157{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5
8158echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6; }
8159
8160fi
8161if test $ac_cv_header_sys_ioctl_h = yes; then
8162 cat >>confdefs.h <<\_ACEOF
8163#define PJ_HAS_SYS_IOCTL_H 1
8164_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +00008165
Sauw Minge7dbbc82011-10-24 09:28:13 +00008166fi
8167
Sauw Minge7dbbc82011-10-24 09:28:13 +00008168
Benny Prijono36d32492011-12-28 08:42:23 +00008169if test "${ac_cv_header_sys_select_h+set}" = set; then
8170 { echo "$as_me:$LINENO: checking for sys/select.h" >&5
8171echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
8172if test "${ac_cv_header_sys_select_h+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8174fi
8175{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
8176echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
8177else
8178 # Is the header compilable?
8179{ echo "$as_me:$LINENO: checking sys/select.h usability" >&5
8180echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; }
8181cat >conftest.$ac_ext <<_ACEOF
8182/* confdefs.h. */
8183_ACEOF
8184cat confdefs.h >>conftest.$ac_ext
8185cat >>conftest.$ac_ext <<_ACEOF
8186/* end confdefs.h. */
8187$ac_includes_default
8188#include <sys/select.h>
8189_ACEOF
8190rm -f conftest.$ac_objext
8191if { (ac_try="$ac_compile"
8192case "(($ac_try" in
8193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8195esac
8196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197 (eval "$ac_compile") 2>conftest.er1
8198 ac_status=$?
8199 grep -v '^ *+' conftest.er1 >conftest.err
8200 rm -f conftest.er1
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } && {
8204 test -z "$ac_c_werror_flag" ||
8205 test ! -s conftest.err
8206 } && test -s conftest.$ac_objext; then
8207 ac_header_compiler=yes
8208else
8209 echo "$as_me: failed program was:" >&5
8210sed 's/^/| /' conftest.$ac_ext >&5
8211
8212 ac_header_compiler=no
8213fi
8214
8215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8217echo "${ECHO_T}$ac_header_compiler" >&6; }
8218
8219# Is the header present?
8220{ echo "$as_me:$LINENO: checking sys/select.h presence" >&5
8221echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; }
8222cat >conftest.$ac_ext <<_ACEOF
8223/* confdefs.h. */
8224_ACEOF
8225cat confdefs.h >>conftest.$ac_ext
8226cat >>conftest.$ac_ext <<_ACEOF
8227/* end confdefs.h. */
8228#include <sys/select.h>
8229_ACEOF
8230if { (ac_try="$ac_cpp conftest.$ac_ext"
8231case "(($ac_try" in
8232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233 *) ac_try_echo=$ac_try;;
8234esac
8235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8237 ac_status=$?
8238 grep -v '^ *+' conftest.er1 >conftest.err
8239 rm -f conftest.er1
8240 cat conftest.err >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } >/dev/null && {
8243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8244 test ! -s conftest.err
8245 }; then
8246 ac_header_preproc=yes
8247else
8248 echo "$as_me: failed program was:" >&5
8249sed 's/^/| /' conftest.$ac_ext >&5
8250
8251 ac_header_preproc=no
8252fi
8253
8254rm -f conftest.err conftest.$ac_ext
8255{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8256echo "${ECHO_T}$ac_header_preproc" >&6; }
8257
8258# So? What about this header?
8259case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8260 yes:no: )
8261 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
8262echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8263 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
8264echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
8265 ac_header_preproc=yes
8266 ;;
8267 no:yes:* )
8268 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
8269echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
8270 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
8271echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
8272 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
8273echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
8274 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
8275echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
8276 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
8277echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
8278 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
8279echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
8280
8281 ;;
8282esac
8283{ echo "$as_me:$LINENO: checking for sys/select.h" >&5
8284echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
8285if test "${ac_cv_header_sys_select_h+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287else
8288 ac_cv_header_sys_select_h=$ac_header_preproc
8289fi
8290{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
8291echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
8292
8293fi
8294if test $ac_cv_header_sys_select_h = yes; then
8295 cat >>confdefs.h <<\_ACEOF
8296#define PJ_HAS_SYS_SELECT_H 1
8297_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +00008298
Sauw Minge7dbbc82011-10-24 09:28:13 +00008299fi
8300
Sauw Minge7dbbc82011-10-24 09:28:13 +00008301
Benny Prijono36d32492011-12-28 08:42:23 +00008302if test "${ac_cv_header_sys_socket_h+set}" = set; then
8303 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
8304echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
8305if test "${ac_cv_header_sys_socket_h+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8307fi
8308{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
8309echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
8310else
8311 # Is the header compilable?
8312{ echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
8313echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
8314cat >conftest.$ac_ext <<_ACEOF
8315/* confdefs.h. */
8316_ACEOF
8317cat confdefs.h >>conftest.$ac_ext
8318cat >>conftest.$ac_ext <<_ACEOF
8319/* end confdefs.h. */
8320$ac_includes_default
8321#include <sys/socket.h>
8322_ACEOF
8323rm -f conftest.$ac_objext
8324if { (ac_try="$ac_compile"
8325case "(($ac_try" in
8326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327 *) ac_try_echo=$ac_try;;
8328esac
8329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330 (eval "$ac_compile") 2>conftest.er1
8331 ac_status=$?
8332 grep -v '^ *+' conftest.er1 >conftest.err
8333 rm -f conftest.er1
8334 cat conftest.err >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } && {
8337 test -z "$ac_c_werror_flag" ||
8338 test ! -s conftest.err
8339 } && test -s conftest.$ac_objext; then
8340 ac_header_compiler=yes
8341else
8342 echo "$as_me: failed program was:" >&5
8343sed 's/^/| /' conftest.$ac_ext >&5
8344
8345 ac_header_compiler=no
8346fi
8347
8348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8350echo "${ECHO_T}$ac_header_compiler" >&6; }
8351
8352# Is the header present?
8353{ echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
8354echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
8355cat >conftest.$ac_ext <<_ACEOF
8356/* confdefs.h. */
8357_ACEOF
8358cat confdefs.h >>conftest.$ac_ext
8359cat >>conftest.$ac_ext <<_ACEOF
8360/* end confdefs.h. */
8361#include <sys/socket.h>
8362_ACEOF
8363if { (ac_try="$ac_cpp conftest.$ac_ext"
8364case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8367esac
8368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8370 ac_status=$?
8371 grep -v '^ *+' conftest.er1 >conftest.err
8372 rm -f conftest.er1
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } >/dev/null && {
8376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8377 test ! -s conftest.err
8378 }; then
8379 ac_header_preproc=yes
8380else
8381 echo "$as_me: failed program was:" >&5
8382sed 's/^/| /' conftest.$ac_ext >&5
8383
8384 ac_header_preproc=no
8385fi
8386
8387rm -f conftest.err conftest.$ac_ext
8388{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8389echo "${ECHO_T}$ac_header_preproc" >&6; }
8390
8391# So? What about this header?
8392case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8393 yes:no: )
8394 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
8395echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8396 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
8397echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
8398 ac_header_preproc=yes
8399 ;;
8400 no:yes:* )
8401 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
8402echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
8403 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
8404echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
8405 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
8406echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
8407 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
8408echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
8409 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
8410echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
8411 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
8412echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
8413
8414 ;;
8415esac
8416{ echo "$as_me:$LINENO: checking for sys/socket.h" >&5
8417echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
8418if test "${ac_cv_header_sys_socket_h+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8420else
8421 ac_cv_header_sys_socket_h=$ac_header_preproc
8422fi
8423{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
8424echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
8425
8426fi
8427if test $ac_cv_header_sys_socket_h = yes; then
8428 cat >>confdefs.h <<\_ACEOF
8429#define PJ_HAS_SYS_SOCKET_H 1
8430_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +00008431
8432fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00008433
Sauw Mingd8aa67c2011-08-09 04:31:41 +00008434
Benny Prijono36d32492011-12-28 08:42:23 +00008435if test "${ac_cv_header_sys_time_h+set}" = set; then
8436 { echo "$as_me:$LINENO: checking for sys/time.h" >&5
8437echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; }
8438if test "${ac_cv_header_sys_time_h+set}" = set; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8440fi
8441{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
8442echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; }
8443else
8444 # Is the header compilable?
8445{ echo "$as_me:$LINENO: checking sys/time.h usability" >&5
8446echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6; }
8447cat >conftest.$ac_ext <<_ACEOF
8448/* confdefs.h. */
8449_ACEOF
8450cat confdefs.h >>conftest.$ac_ext
8451cat >>conftest.$ac_ext <<_ACEOF
8452/* end confdefs.h. */
8453$ac_includes_default
8454#include <sys/time.h>
8455_ACEOF
8456rm -f conftest.$ac_objext
8457if { (ac_try="$ac_compile"
8458case "(($ac_try" in
8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8461esac
8462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463 (eval "$ac_compile") 2>conftest.er1
8464 ac_status=$?
8465 grep -v '^ *+' conftest.er1 >conftest.err
8466 rm -f conftest.er1
8467 cat conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } && {
8470 test -z "$ac_c_werror_flag" ||
8471 test ! -s conftest.err
8472 } && test -s conftest.$ac_objext; then
8473 ac_header_compiler=yes
8474else
8475 echo "$as_me: failed program was:" >&5
8476sed 's/^/| /' conftest.$ac_ext >&5
8477
8478 ac_header_compiler=no
8479fi
8480
8481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8482{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8483echo "${ECHO_T}$ac_header_compiler" >&6; }
8484
8485# Is the header present?
8486{ echo "$as_me:$LINENO: checking sys/time.h presence" >&5
8487echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6; }
8488cat >conftest.$ac_ext <<_ACEOF
8489/* confdefs.h. */
8490_ACEOF
8491cat confdefs.h >>conftest.$ac_ext
8492cat >>conftest.$ac_ext <<_ACEOF
8493/* end confdefs.h. */
8494#include <sys/time.h>
8495_ACEOF
8496if { (ac_try="$ac_cpp conftest.$ac_ext"
8497case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8500esac
8501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8503 ac_status=$?
8504 grep -v '^ *+' conftest.er1 >conftest.err
8505 rm -f conftest.er1
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } >/dev/null && {
8509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8510 test ! -s conftest.err
8511 }; then
8512 ac_header_preproc=yes
8513else
8514 echo "$as_me: failed program was:" >&5
8515sed 's/^/| /' conftest.$ac_ext >&5
8516
8517 ac_header_preproc=no
8518fi
8519
8520rm -f conftest.err conftest.$ac_ext
8521{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8522echo "${ECHO_T}$ac_header_preproc" >&6; }
8523
8524# So? What about this header?
8525case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8526 yes:no: )
8527 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
8528echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8529 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
8530echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
8531 ac_header_preproc=yes
8532 ;;
8533 no:yes:* )
8534 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
8535echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
8536 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
8537echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
8538 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
8539echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
8540 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
8541echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
8542 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
8543echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
8544 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
8545echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
8546
8547 ;;
8548esac
8549{ echo "$as_me:$LINENO: checking for sys/time.h" >&5
8550echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6; }
8551if test "${ac_cv_header_sys_time_h+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8553else
8554 ac_cv_header_sys_time_h=$ac_header_preproc
8555fi
8556{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
8557echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6; }
8558
8559fi
8560if test $ac_cv_header_sys_time_h = yes; then
8561 cat >>confdefs.h <<\_ACEOF
8562#define PJ_HAS_SYS_TIME_H 1
8563_ACEOF
Sauw Mingd8aa67c2011-08-09 04:31:41 +00008564
Sauw Minge7dbbc82011-10-24 09:28:13 +00008565fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00008566
Sauw Minge7dbbc82011-10-24 09:28:13 +00008567
Benny Prijono36d32492011-12-28 08:42:23 +00008568if test "${ac_cv_header_sys_timeb_h+set}" = set; then
8569 { echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
8570echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; }
8571if test "${ac_cv_header_sys_timeb_h+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8573fi
8574{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
8575echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; }
8576else
8577 # Is the header compilable?
8578{ echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5
8579echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6; }
8580cat >conftest.$ac_ext <<_ACEOF
8581/* confdefs.h. */
8582_ACEOF
8583cat confdefs.h >>conftest.$ac_ext
8584cat >>conftest.$ac_ext <<_ACEOF
8585/* end confdefs.h. */
8586$ac_includes_default
8587#include <sys/timeb.h>
8588_ACEOF
8589rm -f conftest.$ac_objext
8590if { (ac_try="$ac_compile"
8591case "(($ac_try" in
8592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593 *) ac_try_echo=$ac_try;;
8594esac
8595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596 (eval "$ac_compile") 2>conftest.er1
8597 ac_status=$?
8598 grep -v '^ *+' conftest.er1 >conftest.err
8599 rm -f conftest.er1
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } && {
8603 test -z "$ac_c_werror_flag" ||
8604 test ! -s conftest.err
8605 } && test -s conftest.$ac_objext; then
8606 ac_header_compiler=yes
8607else
8608 echo "$as_me: failed program was:" >&5
8609sed 's/^/| /' conftest.$ac_ext >&5
8610
8611 ac_header_compiler=no
8612fi
8613
8614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8615{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8616echo "${ECHO_T}$ac_header_compiler" >&6; }
8617
8618# Is the header present?
8619{ echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5
8620echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6; }
8621cat >conftest.$ac_ext <<_ACEOF
8622/* confdefs.h. */
8623_ACEOF
8624cat confdefs.h >>conftest.$ac_ext
8625cat >>conftest.$ac_ext <<_ACEOF
8626/* end confdefs.h. */
8627#include <sys/timeb.h>
8628_ACEOF
8629if { (ac_try="$ac_cpp conftest.$ac_ext"
8630case "(($ac_try" in
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8633esac
8634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8636 ac_status=$?
8637 grep -v '^ *+' conftest.er1 >conftest.err
8638 rm -f conftest.er1
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } >/dev/null && {
8642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8643 test ! -s conftest.err
8644 }; then
8645 ac_header_preproc=yes
8646else
8647 echo "$as_me: failed program was:" >&5
8648sed 's/^/| /' conftest.$ac_ext >&5
8649
8650 ac_header_preproc=no
8651fi
8652
8653rm -f conftest.err conftest.$ac_ext
8654{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8655echo "${ECHO_T}$ac_header_preproc" >&6; }
8656
8657# So? What about this header?
8658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8659 yes:no: )
8660 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8661echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8662 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5
8663echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;}
8664 ac_header_preproc=yes
8665 ;;
8666 no:yes:* )
8667 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5
8668echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;}
8669 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5
8670echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;}
8671 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5
8672echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;}
8673 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5
8674echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;}
8675 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5
8676echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;}
8677 { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5
8678echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;}
8679
8680 ;;
8681esac
8682{ echo "$as_me:$LINENO: checking for sys/timeb.h" >&5
8683echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6; }
8684if test "${ac_cv_header_sys_timeb_h+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8686else
8687 ac_cv_header_sys_timeb_h=$ac_header_preproc
8688fi
8689{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5
8690echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6; }
8691
8692fi
8693if test $ac_cv_header_sys_timeb_h = yes; then
8694 cat >>confdefs.h <<\_ACEOF
8695#define PJ_HAS_SYS_TIMEB_H 1
8696_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +00008697
Sauw Minge7dbbc82011-10-24 09:28:13 +00008698fi
8699
Sauw Minge7dbbc82011-10-24 09:28:13 +00008700
Benny Prijono36d32492011-12-28 08:42:23 +00008701if test "${ac_cv_header_sys_types_h+set}" = set; then
8702 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
8703echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
8704if test "${ac_cv_header_sys_types_h+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8706fi
8707{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
8708echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
8709else
8710 # Is the header compilable?
8711{ echo "$as_me:$LINENO: checking sys/types.h usability" >&5
8712echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; }
8713cat >conftest.$ac_ext <<_ACEOF
8714/* confdefs.h. */
8715_ACEOF
8716cat confdefs.h >>conftest.$ac_ext
8717cat >>conftest.$ac_ext <<_ACEOF
8718/* end confdefs.h. */
8719$ac_includes_default
8720#include <sys/types.h>
8721_ACEOF
8722rm -f conftest.$ac_objext
8723if { (ac_try="$ac_compile"
8724case "(($ac_try" in
8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8727esac
8728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8729 (eval "$ac_compile") 2>conftest.er1
8730 ac_status=$?
8731 grep -v '^ *+' conftest.er1 >conftest.err
8732 rm -f conftest.er1
8733 cat conftest.err >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } && {
8736 test -z "$ac_c_werror_flag" ||
8737 test ! -s conftest.err
8738 } && test -s conftest.$ac_objext; then
8739 ac_header_compiler=yes
8740else
8741 echo "$as_me: failed program was:" >&5
8742sed 's/^/| /' conftest.$ac_ext >&5
8743
8744 ac_header_compiler=no
8745fi
8746
8747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8748{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8749echo "${ECHO_T}$ac_header_compiler" >&6; }
8750
8751# Is the header present?
8752{ echo "$as_me:$LINENO: checking sys/types.h presence" >&5
8753echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; }
8754cat >conftest.$ac_ext <<_ACEOF
8755/* confdefs.h. */
8756_ACEOF
8757cat confdefs.h >>conftest.$ac_ext
8758cat >>conftest.$ac_ext <<_ACEOF
8759/* end confdefs.h. */
8760#include <sys/types.h>
8761_ACEOF
8762if { (ac_try="$ac_cpp conftest.$ac_ext"
8763case "(($ac_try" in
8764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765 *) ac_try_echo=$ac_try;;
8766esac
8767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8769 ac_status=$?
8770 grep -v '^ *+' conftest.er1 >conftest.err
8771 rm -f conftest.er1
8772 cat conftest.err >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } >/dev/null && {
8775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8776 test ! -s conftest.err
8777 }; then
8778 ac_header_preproc=yes
8779else
8780 echo "$as_me: failed program was:" >&5
8781sed 's/^/| /' conftest.$ac_ext >&5
8782
8783 ac_header_preproc=no
8784fi
8785
8786rm -f conftest.err conftest.$ac_ext
8787{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8788echo "${ECHO_T}$ac_header_preproc" >&6; }
8789
8790# So? What about this header?
8791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8792 yes:no: )
8793 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
8794echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8795 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
8796echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
8797 ac_header_preproc=yes
8798 ;;
8799 no:yes:* )
8800 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
8801echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
8802 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
8803echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
8804 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
8805echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
8806 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
8807echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
8808 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
8809echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
8810 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
8811echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
8812
8813 ;;
8814esac
8815{ echo "$as_me:$LINENO: checking for sys/types.h" >&5
8816echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
8817if test "${ac_cv_header_sys_types_h+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8819else
8820 ac_cv_header_sys_types_h=$ac_header_preproc
8821fi
8822{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
8823echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
8824
8825fi
8826if test $ac_cv_header_sys_types_h = yes; then
8827 cat >>confdefs.h <<\_ACEOF
8828#define PJ_HAS_SYS_TYPES_H 1
8829_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +00008830
Sauw Minge7dbbc82011-10-24 09:28:13 +00008831fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00008832
Sauw Mingd8aa67c2011-08-09 04:31:41 +00008833
Benny Prijono36d32492011-12-28 08:42:23 +00008834if test "${ac_cv_header_sys_filio_h+set}" = set; then
8835 { echo "$as_me:$LINENO: checking for sys/filio.h" >&5
8836echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; }
8837if test "${ac_cv_header_sys_filio_h+set}" = set; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8839fi
8840{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
8841echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; }
8842else
8843 # Is the header compilable?
8844{ echo "$as_me:$LINENO: checking sys/filio.h usability" >&5
8845echo $ECHO_N "checking sys/filio.h usability... $ECHO_C" >&6; }
8846cat >conftest.$ac_ext <<_ACEOF
8847/* confdefs.h. */
8848_ACEOF
8849cat confdefs.h >>conftest.$ac_ext
8850cat >>conftest.$ac_ext <<_ACEOF
8851/* end confdefs.h. */
8852$ac_includes_default
8853#include <sys/filio.h>
8854_ACEOF
8855rm -f conftest.$ac_objext
8856if { (ac_try="$ac_compile"
8857case "(($ac_try" in
8858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859 *) ac_try_echo=$ac_try;;
8860esac
8861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862 (eval "$ac_compile") 2>conftest.er1
8863 ac_status=$?
8864 grep -v '^ *+' conftest.er1 >conftest.err
8865 rm -f conftest.er1
8866 cat conftest.err >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } && {
8869 test -z "$ac_c_werror_flag" ||
8870 test ! -s conftest.err
8871 } && test -s conftest.$ac_objext; then
8872 ac_header_compiler=yes
8873else
8874 echo "$as_me: failed program was:" >&5
8875sed 's/^/| /' conftest.$ac_ext >&5
8876
8877 ac_header_compiler=no
8878fi
8879
8880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8882echo "${ECHO_T}$ac_header_compiler" >&6; }
8883
8884# Is the header present?
8885{ echo "$as_me:$LINENO: checking sys/filio.h presence" >&5
8886echo $ECHO_N "checking sys/filio.h presence... $ECHO_C" >&6; }
8887cat >conftest.$ac_ext <<_ACEOF
8888/* confdefs.h. */
8889_ACEOF
8890cat confdefs.h >>conftest.$ac_ext
8891cat >>conftest.$ac_ext <<_ACEOF
8892/* end confdefs.h. */
8893#include <sys/filio.h>
8894_ACEOF
8895if { (ac_try="$ac_cpp conftest.$ac_ext"
8896case "(($ac_try" in
8897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8898 *) ac_try_echo=$ac_try;;
8899esac
8900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8902 ac_status=$?
8903 grep -v '^ *+' conftest.er1 >conftest.err
8904 rm -f conftest.er1
8905 cat conftest.err >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } >/dev/null && {
8908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8909 test ! -s conftest.err
8910 }; then
8911 ac_header_preproc=yes
8912else
8913 echo "$as_me: failed program was:" >&5
8914sed 's/^/| /' conftest.$ac_ext >&5
8915
8916 ac_header_preproc=no
8917fi
8918
8919rm -f conftest.err conftest.$ac_ext
8920{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8921echo "${ECHO_T}$ac_header_preproc" >&6; }
8922
8923# So? What about this header?
8924case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8925 yes:no: )
8926 { echo "$as_me:$LINENO: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8927echo "$as_me: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8928 { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the compiler's result" >&5
8929echo "$as_me: WARNING: sys/filio.h: proceeding with the compiler's result" >&2;}
8930 ac_header_preproc=yes
8931 ;;
8932 no:yes:* )
8933 { echo "$as_me:$LINENO: WARNING: sys/filio.h: present but cannot be compiled" >&5
8934echo "$as_me: WARNING: sys/filio.h: present but cannot be compiled" >&2;}
8935 { echo "$as_me:$LINENO: WARNING: sys/filio.h: check for missing prerequisite headers?" >&5
8936echo "$as_me: WARNING: sys/filio.h: check for missing prerequisite headers?" >&2;}
8937 { echo "$as_me:$LINENO: WARNING: sys/filio.h: see the Autoconf documentation" >&5
8938echo "$as_me: WARNING: sys/filio.h: see the Autoconf documentation" >&2;}
8939 { echo "$as_me:$LINENO: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&5
8940echo "$as_me: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&2;}
8941 { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&5
8942echo "$as_me: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&2;}
8943 { echo "$as_me:$LINENO: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&5
8944echo "$as_me: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&2;}
8945
8946 ;;
8947esac
8948{ echo "$as_me:$LINENO: checking for sys/filio.h" >&5
8949echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; }
8950if test "${ac_cv_header_sys_filio_h+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8952else
8953 ac_cv_header_sys_filio_h=$ac_header_preproc
8954fi
8955{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
8956echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; }
8957
8958fi
8959if test $ac_cv_header_sys_filio_h = yes; then
8960 cat >>confdefs.h <<\_ACEOF
8961#define PJ_HAS_SYS_FILIO_H 1
8962_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +00008963
Sauw Minge7dbbc82011-10-24 09:28:13 +00008964fi
8965
Sauw Minge7dbbc82011-10-24 09:28:13 +00008966
Benny Prijono36d32492011-12-28 08:42:23 +00008967if test "${ac_cv_header_sys_sockio_h+set}" = set; then
8968 { echo "$as_me:$LINENO: checking for sys/sockio.h" >&5
8969echo $ECHO_N "checking for sys/sockio.h... $ECHO_C" >&6; }
8970if test "${ac_cv_header_sys_sockio_h+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8972fi
8973{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sockio_h" >&5
8974echo "${ECHO_T}$ac_cv_header_sys_sockio_h" >&6; }
8975else
8976 # Is the header compilable?
8977{ echo "$as_me:$LINENO: checking sys/sockio.h usability" >&5
8978echo $ECHO_N "checking sys/sockio.h usability... $ECHO_C" >&6; }
8979cat >conftest.$ac_ext <<_ACEOF
8980/* confdefs.h. */
8981_ACEOF
8982cat confdefs.h >>conftest.$ac_ext
8983cat >>conftest.$ac_ext <<_ACEOF
8984/* end confdefs.h. */
8985$ac_includes_default
8986#include <sys/sockio.h>
8987_ACEOF
8988rm -f conftest.$ac_objext
8989if { (ac_try="$ac_compile"
8990case "(($ac_try" in
8991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992 *) ac_try_echo=$ac_try;;
8993esac
8994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995 (eval "$ac_compile") 2>conftest.er1
8996 ac_status=$?
8997 grep -v '^ *+' conftest.er1 >conftest.err
8998 rm -f conftest.er1
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } && {
9002 test -z "$ac_c_werror_flag" ||
9003 test ! -s conftest.err
9004 } && test -s conftest.$ac_objext; then
9005 ac_header_compiler=yes
9006else
9007 echo "$as_me: failed program was:" >&5
9008sed 's/^/| /' conftest.$ac_ext >&5
9009
9010 ac_header_compiler=no
9011fi
9012
9013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9014{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9015echo "${ECHO_T}$ac_header_compiler" >&6; }
9016
9017# Is the header present?
9018{ echo "$as_me:$LINENO: checking sys/sockio.h presence" >&5
9019echo $ECHO_N "checking sys/sockio.h presence... $ECHO_C" >&6; }
9020cat >conftest.$ac_ext <<_ACEOF
9021/* confdefs.h. */
9022_ACEOF
9023cat confdefs.h >>conftest.$ac_ext
9024cat >>conftest.$ac_ext <<_ACEOF
9025/* end confdefs.h. */
9026#include <sys/sockio.h>
9027_ACEOF
9028if { (ac_try="$ac_cpp conftest.$ac_ext"
9029case "(($ac_try" in
9030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9031 *) ac_try_echo=$ac_try;;
9032esac
9033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9035 ac_status=$?
9036 grep -v '^ *+' conftest.er1 >conftest.err
9037 rm -f conftest.er1
9038 cat conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } >/dev/null && {
9041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9042 test ! -s conftest.err
9043 }; then
9044 ac_header_preproc=yes
9045else
9046 echo "$as_me: failed program was:" >&5
9047sed 's/^/| /' conftest.$ac_ext >&5
9048
9049 ac_header_preproc=no
9050fi
9051
9052rm -f conftest.err conftest.$ac_ext
9053{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9054echo "${ECHO_T}$ac_header_preproc" >&6; }
9055
9056# So? What about this header?
9057case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9058 yes:no: )
9059 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9060echo "$as_me: WARNING: sys/sockio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9061 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: proceeding with the compiler's result" >&5
9062echo "$as_me: WARNING: sys/sockio.h: proceeding with the compiler's result" >&2;}
9063 ac_header_preproc=yes
9064 ;;
9065 no:yes:* )
9066 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: present but cannot be compiled" >&5
9067echo "$as_me: WARNING: sys/sockio.h: present but cannot be compiled" >&2;}
9068 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: check for missing prerequisite headers?" >&5
9069echo "$as_me: WARNING: sys/sockio.h: check for missing prerequisite headers?" >&2;}
9070 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: see the Autoconf documentation" >&5
9071echo "$as_me: WARNING: sys/sockio.h: see the Autoconf documentation" >&2;}
9072 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: section \"Present But Cannot Be Compiled\"" >&5
9073echo "$as_me: WARNING: sys/sockio.h: section \"Present But Cannot Be Compiled\"" >&2;}
9074 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: proceeding with the preprocessor's result" >&5
9075echo "$as_me: WARNING: sys/sockio.h: proceeding with the preprocessor's result" >&2;}
9076 { echo "$as_me:$LINENO: WARNING: sys/sockio.h: in the future, the compiler will take precedence" >&5
9077echo "$as_me: WARNING: sys/sockio.h: in the future, the compiler will take precedence" >&2;}
9078
9079 ;;
9080esac
9081{ echo "$as_me:$LINENO: checking for sys/sockio.h" >&5
9082echo $ECHO_N "checking for sys/sockio.h... $ECHO_C" >&6; }
9083if test "${ac_cv_header_sys_sockio_h+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9085else
9086 ac_cv_header_sys_sockio_h=$ac_header_preproc
9087fi
9088{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sockio_h" >&5
9089echo "${ECHO_T}$ac_cv_header_sys_sockio_h" >&6; }
9090
9091fi
9092if test $ac_cv_header_sys_sockio_h = yes; then
9093 cat >>confdefs.h <<\_ACEOF
9094#define PJ_HAS_SYS_SOCKIO_H 1
9095_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +00009096
Sauw Minge7dbbc82011-10-24 09:28:13 +00009097fi
9098
Sauw Minge7dbbc82011-10-24 09:28:13 +00009099
Benny Prijono36d32492011-12-28 08:42:23 +00009100if test "${ac_cv_header_sys_utsname_h+set}" = set; then
9101 { echo "$as_me:$LINENO: checking for sys/utsname.h" >&5
9102echo $ECHO_N "checking for sys/utsname.h... $ECHO_C" >&6; }
9103if test "${ac_cv_header_sys_utsname_h+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9105fi
9106{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_utsname_h" >&5
9107echo "${ECHO_T}$ac_cv_header_sys_utsname_h" >&6; }
9108else
9109 # Is the header compilable?
9110{ echo "$as_me:$LINENO: checking sys/utsname.h usability" >&5
9111echo $ECHO_N "checking sys/utsname.h usability... $ECHO_C" >&6; }
9112cat >conftest.$ac_ext <<_ACEOF
9113/* confdefs.h. */
9114_ACEOF
9115cat confdefs.h >>conftest.$ac_ext
9116cat >>conftest.$ac_ext <<_ACEOF
9117/* end confdefs.h. */
9118$ac_includes_default
9119#include <sys/utsname.h>
9120_ACEOF
9121rm -f conftest.$ac_objext
9122if { (ac_try="$ac_compile"
9123case "(($ac_try" in
9124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9125 *) ac_try_echo=$ac_try;;
9126esac
9127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128 (eval "$ac_compile") 2>conftest.er1
9129 ac_status=$?
9130 grep -v '^ *+' conftest.er1 >conftest.err
9131 rm -f conftest.er1
9132 cat conftest.err >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } && {
9135 test -z "$ac_c_werror_flag" ||
9136 test ! -s conftest.err
9137 } && test -s conftest.$ac_objext; then
9138 ac_header_compiler=yes
9139else
9140 echo "$as_me: failed program was:" >&5
9141sed 's/^/| /' conftest.$ac_ext >&5
9142
9143 ac_header_compiler=no
9144fi
9145
9146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9147{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9148echo "${ECHO_T}$ac_header_compiler" >&6; }
9149
9150# Is the header present?
9151{ echo "$as_me:$LINENO: checking sys/utsname.h presence" >&5
9152echo $ECHO_N "checking sys/utsname.h presence... $ECHO_C" >&6; }
9153cat >conftest.$ac_ext <<_ACEOF
9154/* confdefs.h. */
9155_ACEOF
9156cat confdefs.h >>conftest.$ac_ext
9157cat >>conftest.$ac_ext <<_ACEOF
9158/* end confdefs.h. */
9159#include <sys/utsname.h>
9160_ACEOF
9161if { (ac_try="$ac_cpp conftest.$ac_ext"
9162case "(($ac_try" in
9163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9164 *) ac_try_echo=$ac_try;;
9165esac
9166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9168 ac_status=$?
9169 grep -v '^ *+' conftest.er1 >conftest.err
9170 rm -f conftest.er1
9171 cat conftest.err >&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); } >/dev/null && {
9174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9175 test ! -s conftest.err
9176 }; then
9177 ac_header_preproc=yes
9178else
9179 echo "$as_me: failed program was:" >&5
9180sed 's/^/| /' conftest.$ac_ext >&5
9181
9182 ac_header_preproc=no
9183fi
9184
9185rm -f conftest.err conftest.$ac_ext
9186{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9187echo "${ECHO_T}$ac_header_preproc" >&6; }
9188
9189# So? What about this header?
9190case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9191 yes:no: )
9192 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: accepted by the compiler, rejected by the preprocessor!" >&5
9193echo "$as_me: WARNING: sys/utsname.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: proceeding with the compiler's result" >&5
9195echo "$as_me: WARNING: sys/utsname.h: proceeding with the compiler's result" >&2;}
9196 ac_header_preproc=yes
9197 ;;
9198 no:yes:* )
9199 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: present but cannot be compiled" >&5
9200echo "$as_me: WARNING: sys/utsname.h: present but cannot be compiled" >&2;}
9201 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: check for missing prerequisite headers?" >&5
9202echo "$as_me: WARNING: sys/utsname.h: check for missing prerequisite headers?" >&2;}
9203 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: see the Autoconf documentation" >&5
9204echo "$as_me: WARNING: sys/utsname.h: see the Autoconf documentation" >&2;}
9205 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: section \"Present But Cannot Be Compiled\"" >&5
9206echo "$as_me: WARNING: sys/utsname.h: section \"Present But Cannot Be Compiled\"" >&2;}
9207 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: proceeding with the preprocessor's result" >&5
9208echo "$as_me: WARNING: sys/utsname.h: proceeding with the preprocessor's result" >&2;}
9209 { echo "$as_me:$LINENO: WARNING: sys/utsname.h: in the future, the compiler will take precedence" >&5
9210echo "$as_me: WARNING: sys/utsname.h: in the future, the compiler will take precedence" >&2;}
9211
9212 ;;
9213esac
9214{ echo "$as_me:$LINENO: checking for sys/utsname.h" >&5
9215echo $ECHO_N "checking for sys/utsname.h... $ECHO_C" >&6; }
9216if test "${ac_cv_header_sys_utsname_h+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9218else
9219 ac_cv_header_sys_utsname_h=$ac_header_preproc
9220fi
9221{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_utsname_h" >&5
9222echo "${ECHO_T}$ac_cv_header_sys_utsname_h" >&6; }
9223
9224fi
9225if test $ac_cv_header_sys_utsname_h = yes; then
9226 cat >>confdefs.h <<\_ACEOF
9227#define PJ_HAS_SYS_UTSNAME_H 1
9228_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +00009229
9230fi
Sauw Mingd8aa67c2011-08-09 04:31:41 +00009231
Sauw Mingd8aa67c2011-08-09 04:31:41 +00009232
Benny Prijono36d32492011-12-28 08:42:23 +00009233if test "${ac_cv_header_time_h+set}" = set; then
9234 { echo "$as_me:$LINENO: checking for time.h" >&5
9235echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
9236if test "${ac_cv_header_time_h+set}" = set; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9238fi
9239{ echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
9240echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
9241else
9242 # Is the header compilable?
9243{ echo "$as_me:$LINENO: checking time.h usability" >&5
9244echo $ECHO_N "checking time.h usability... $ECHO_C" >&6; }
9245cat >conftest.$ac_ext <<_ACEOF
9246/* confdefs.h. */
9247_ACEOF
9248cat confdefs.h >>conftest.$ac_ext
9249cat >>conftest.$ac_ext <<_ACEOF
9250/* end confdefs.h. */
9251$ac_includes_default
9252#include <time.h>
9253_ACEOF
9254rm -f conftest.$ac_objext
9255if { (ac_try="$ac_compile"
9256case "(($ac_try" in
9257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258 *) ac_try_echo=$ac_try;;
9259esac
9260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9261 (eval "$ac_compile") 2>conftest.er1
9262 ac_status=$?
9263 grep -v '^ *+' conftest.er1 >conftest.err
9264 rm -f conftest.er1
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } && {
9268 test -z "$ac_c_werror_flag" ||
9269 test ! -s conftest.err
9270 } && test -s conftest.$ac_objext; then
9271 ac_header_compiler=yes
9272else
9273 echo "$as_me: failed program was:" >&5
9274sed 's/^/| /' conftest.$ac_ext >&5
9275
9276 ac_header_compiler=no
9277fi
9278
9279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9280{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9281echo "${ECHO_T}$ac_header_compiler" >&6; }
9282
9283# Is the header present?
9284{ echo "$as_me:$LINENO: checking time.h presence" >&5
9285echo $ECHO_N "checking time.h presence... $ECHO_C" >&6; }
9286cat >conftest.$ac_ext <<_ACEOF
9287/* confdefs.h. */
9288_ACEOF
9289cat confdefs.h >>conftest.$ac_ext
9290cat >>conftest.$ac_ext <<_ACEOF
9291/* end confdefs.h. */
9292#include <time.h>
9293_ACEOF
9294if { (ac_try="$ac_cpp conftest.$ac_ext"
9295case "(($ac_try" in
9296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9297 *) ac_try_echo=$ac_try;;
9298esac
9299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9301 ac_status=$?
9302 grep -v '^ *+' conftest.er1 >conftest.err
9303 rm -f conftest.er1
9304 cat conftest.err >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } >/dev/null && {
9307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9308 test ! -s conftest.err
9309 }; then
9310 ac_header_preproc=yes
9311else
9312 echo "$as_me: failed program was:" >&5
9313sed 's/^/| /' conftest.$ac_ext >&5
9314
9315 ac_header_preproc=no
9316fi
9317
9318rm -f conftest.err conftest.$ac_ext
9319{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9320echo "${ECHO_T}$ac_header_preproc" >&6; }
9321
9322# So? What about this header?
9323case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9324 yes:no: )
9325 { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5
9326echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9327 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5
9328echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;}
9329 ac_header_preproc=yes
9330 ;;
9331 no:yes:* )
9332 { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5
9333echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;}
9334 { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5
9335echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;}
9336 { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5
9337echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;}
9338 { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5
9339echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;}
9340 { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5
9341echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;}
9342 { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5
9343echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;}
9344
9345 ;;
9346esac
9347{ echo "$as_me:$LINENO: checking for time.h" >&5
9348echo $ECHO_N "checking for time.h... $ECHO_C" >&6; }
9349if test "${ac_cv_header_time_h+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9351else
9352 ac_cv_header_time_h=$ac_header_preproc
9353fi
9354{ echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5
9355echo "${ECHO_T}$ac_cv_header_time_h" >&6; }
9356
9357fi
9358if test $ac_cv_header_time_h = yes; then
9359 cat >>confdefs.h <<\_ACEOF
9360#define PJ_HAS_TIME_H 1
9361_ACEOF
Sauw Ming68c14572011-07-20 03:00:48 +00009362
Sauw Minge7dbbc82011-10-24 09:28:13 +00009363fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00009364
Sauw Minge7dbbc82011-10-24 09:28:13 +00009365
Benny Prijono36d32492011-12-28 08:42:23 +00009366if test "${ac_cv_header_unistd_h+set}" = set; then
9367 { echo "$as_me:$LINENO: checking for unistd.h" >&5
9368echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
9369if test "${ac_cv_header_unistd_h+set}" = set; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9371fi
9372{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
9373echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; }
9374else
9375 # Is the header compilable?
9376{ echo "$as_me:$LINENO: checking unistd.h usability" >&5
9377echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; }
9378cat >conftest.$ac_ext <<_ACEOF
9379/* confdefs.h. */
9380_ACEOF
9381cat confdefs.h >>conftest.$ac_ext
9382cat >>conftest.$ac_ext <<_ACEOF
9383/* end confdefs.h. */
9384$ac_includes_default
9385#include <unistd.h>
9386_ACEOF
9387rm -f conftest.$ac_objext
9388if { (ac_try="$ac_compile"
9389case "(($ac_try" in
9390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9391 *) ac_try_echo=$ac_try;;
9392esac
9393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9394 (eval "$ac_compile") 2>conftest.er1
9395 ac_status=$?
9396 grep -v '^ *+' conftest.er1 >conftest.err
9397 rm -f conftest.er1
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } && {
9401 test -z "$ac_c_werror_flag" ||
9402 test ! -s conftest.err
9403 } && test -s conftest.$ac_objext; then
9404 ac_header_compiler=yes
9405else
9406 echo "$as_me: failed program was:" >&5
9407sed 's/^/| /' conftest.$ac_ext >&5
9408
9409 ac_header_compiler=no
9410fi
9411
9412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9413{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9414echo "${ECHO_T}$ac_header_compiler" >&6; }
9415
9416# Is the header present?
9417{ echo "$as_me:$LINENO: checking unistd.h presence" >&5
9418echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; }
9419cat >conftest.$ac_ext <<_ACEOF
9420/* confdefs.h. */
9421_ACEOF
9422cat confdefs.h >>conftest.$ac_ext
9423cat >>conftest.$ac_ext <<_ACEOF
9424/* end confdefs.h. */
9425#include <unistd.h>
9426_ACEOF
9427if { (ac_try="$ac_cpp conftest.$ac_ext"
9428case "(($ac_try" in
9429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9430 *) ac_try_echo=$ac_try;;
9431esac
9432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9434 ac_status=$?
9435 grep -v '^ *+' conftest.er1 >conftest.err
9436 rm -f conftest.er1
9437 cat conftest.err >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } >/dev/null && {
9440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9441 test ! -s conftest.err
9442 }; then
9443 ac_header_preproc=yes
9444else
9445 echo "$as_me: failed program was:" >&5
9446sed 's/^/| /' conftest.$ac_ext >&5
9447
9448 ac_header_preproc=no
9449fi
9450
9451rm -f conftest.err conftest.$ac_ext
9452{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9453echo "${ECHO_T}$ac_header_preproc" >&6; }
9454
9455# So? What about this header?
9456case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9457 yes:no: )
9458 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
9459echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
9461echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
9462 ac_header_preproc=yes
9463 ;;
9464 no:yes:* )
9465 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
9466echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
9467 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
9468echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
9469 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
9470echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
9471 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
9472echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
9473 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
9474echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
9475 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
9476echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
9477
9478 ;;
9479esac
9480{ echo "$as_me:$LINENO: checking for unistd.h" >&5
9481echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
9482if test "${ac_cv_header_unistd_h+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9484else
9485 ac_cv_header_unistd_h=$ac_header_preproc
9486fi
9487{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
9488echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; }
9489
9490fi
9491if test $ac_cv_header_unistd_h = yes; then
9492 cat >>confdefs.h <<\_ACEOF
9493#define PJ_HAS_UNISTD_H 1
9494_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +00009495
Sauw Minge7dbbc82011-10-24 09:28:13 +00009496fi
9497
Sauw Minge7dbbc82011-10-24 09:28:13 +00009498
Benny Prijono36d32492011-12-28 08:42:23 +00009499if test "${ac_cv_header_winsock_h+set}" = set; then
9500 { echo "$as_me:$LINENO: checking for winsock.h" >&5
9501echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
9502if test "${ac_cv_header_winsock_h+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9504fi
9505{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
9506echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
9507else
9508 # Is the header compilable?
9509{ echo "$as_me:$LINENO: checking winsock.h usability" >&5
9510echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; }
9511cat >conftest.$ac_ext <<_ACEOF
9512/* confdefs.h. */
9513_ACEOF
9514cat confdefs.h >>conftest.$ac_ext
9515cat >>conftest.$ac_ext <<_ACEOF
9516/* end confdefs.h. */
9517$ac_includes_default
9518#include <winsock.h>
9519_ACEOF
9520rm -f conftest.$ac_objext
9521if { (ac_try="$ac_compile"
9522case "(($ac_try" in
9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9525esac
9526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527 (eval "$ac_compile") 2>conftest.er1
9528 ac_status=$?
9529 grep -v '^ *+' conftest.er1 >conftest.err
9530 rm -f conftest.er1
9531 cat conftest.err >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } && {
9534 test -z "$ac_c_werror_flag" ||
9535 test ! -s conftest.err
9536 } && test -s conftest.$ac_objext; then
9537 ac_header_compiler=yes
9538else
9539 echo "$as_me: failed program was:" >&5
9540sed 's/^/| /' conftest.$ac_ext >&5
9541
9542 ac_header_compiler=no
9543fi
9544
9545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9546{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9547echo "${ECHO_T}$ac_header_compiler" >&6; }
9548
9549# Is the header present?
9550{ echo "$as_me:$LINENO: checking winsock.h presence" >&5
9551echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; }
9552cat >conftest.$ac_ext <<_ACEOF
9553/* confdefs.h. */
9554_ACEOF
9555cat confdefs.h >>conftest.$ac_ext
9556cat >>conftest.$ac_ext <<_ACEOF
9557/* end confdefs.h. */
9558#include <winsock.h>
9559_ACEOF
9560if { (ac_try="$ac_cpp conftest.$ac_ext"
9561case "(($ac_try" in
9562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9563 *) ac_try_echo=$ac_try;;
9564esac
9565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9567 ac_status=$?
9568 grep -v '^ *+' conftest.er1 >conftest.err
9569 rm -f conftest.er1
9570 cat conftest.err >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } >/dev/null && {
9573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9574 test ! -s conftest.err
9575 }; then
9576 ac_header_preproc=yes
9577else
9578 echo "$as_me: failed program was:" >&5
9579sed 's/^/| /' conftest.$ac_ext >&5
9580
9581 ac_header_preproc=no
9582fi
9583
9584rm -f conftest.err conftest.$ac_ext
9585{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9586echo "${ECHO_T}$ac_header_preproc" >&6; }
9587
9588# So? What about this header?
9589case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9590 yes:no: )
9591 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
9592echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9593 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
9594echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
9595 ac_header_preproc=yes
9596 ;;
9597 no:yes:* )
9598 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
9599echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
9600 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
9601echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
9602 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
9603echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
9604 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
9605echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
9606 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
9607echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
9608 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
9609echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
9610
9611 ;;
9612esac
9613{ echo "$as_me:$LINENO: checking for winsock.h" >&5
9614echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
9615if test "${ac_cv_header_winsock_h+set}" = set; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9617else
9618 ac_cv_header_winsock_h=$ac_header_preproc
9619fi
9620{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
9621echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
9622
9623fi
9624if test $ac_cv_header_winsock_h = yes; then
9625 cat >>confdefs.h <<\_ACEOF
9626#define PJ_HAS_WINSOCK_H 1
9627_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +00009628
Sauw Minge7dbbc82011-10-24 09:28:13 +00009629fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00009630
Sauw Ming6a970a32011-03-01 05:25:27 +00009631
Benny Prijono36d32492011-12-28 08:42:23 +00009632if test "${ac_cv_header_winsock2_h+set}" = set; then
9633 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
9634echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
9635if test "${ac_cv_header_winsock2_h+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9637fi
9638{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
9639echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
9640else
9641 # Is the header compilable?
9642{ echo "$as_me:$LINENO: checking winsock2.h usability" >&5
9643echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; }
9644cat >conftest.$ac_ext <<_ACEOF
9645/* confdefs.h. */
9646_ACEOF
9647cat confdefs.h >>conftest.$ac_ext
9648cat >>conftest.$ac_ext <<_ACEOF
9649/* end confdefs.h. */
9650$ac_includes_default
9651#include <winsock2.h>
9652_ACEOF
9653rm -f conftest.$ac_objext
9654if { (ac_try="$ac_compile"
9655case "(($ac_try" in
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9658esac
9659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_compile") 2>conftest.er1
9661 ac_status=$?
9662 grep -v '^ *+' conftest.er1 >conftest.err
9663 rm -f conftest.er1
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } && {
9667 test -z "$ac_c_werror_flag" ||
9668 test ! -s conftest.err
9669 } && test -s conftest.$ac_objext; then
9670 ac_header_compiler=yes
9671else
9672 echo "$as_me: failed program was:" >&5
9673sed 's/^/| /' conftest.$ac_ext >&5
9674
9675 ac_header_compiler=no
9676fi
9677
9678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9679{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9680echo "${ECHO_T}$ac_header_compiler" >&6; }
9681
9682# Is the header present?
9683{ echo "$as_me:$LINENO: checking winsock2.h presence" >&5
9684echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; }
9685cat >conftest.$ac_ext <<_ACEOF
9686/* confdefs.h. */
9687_ACEOF
9688cat confdefs.h >>conftest.$ac_ext
9689cat >>conftest.$ac_ext <<_ACEOF
9690/* end confdefs.h. */
9691#include <winsock2.h>
9692_ACEOF
9693if { (ac_try="$ac_cpp conftest.$ac_ext"
9694case "(($ac_try" in
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9697esac
9698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9700 ac_status=$?
9701 grep -v '^ *+' conftest.er1 >conftest.err
9702 rm -f conftest.er1
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } >/dev/null && {
9706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9707 test ! -s conftest.err
9708 }; then
9709 ac_header_preproc=yes
9710else
9711 echo "$as_me: failed program was:" >&5
9712sed 's/^/| /' conftest.$ac_ext >&5
9713
9714 ac_header_preproc=no
9715fi
9716
9717rm -f conftest.err conftest.$ac_ext
9718{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9719echo "${ECHO_T}$ac_header_preproc" >&6; }
9720
9721# So? What about this header?
9722case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9723 yes:no: )
9724 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
9725echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9726 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
9727echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
9728 ac_header_preproc=yes
9729 ;;
9730 no:yes:* )
9731 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
9732echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
9733 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
9734echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
9735 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
9736echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
9737 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
9738echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
9740echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
9741 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
9742echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
9743
9744 ;;
9745esac
9746{ echo "$as_me:$LINENO: checking for winsock2.h" >&5
9747echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
9748if test "${ac_cv_header_winsock2_h+set}" = set; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9750else
9751 ac_cv_header_winsock2_h=$ac_header_preproc
9752fi
9753{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
9754echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
9755
9756fi
9757if test $ac_cv_header_winsock2_h = yes; then
9758 cat >>confdefs.h <<\_ACEOF
9759#define PJ_HAS_WINSOCK2_H 1
9760_ACEOF
Sauw Ming6a970a32011-03-01 05:25:27 +00009761
Sauw Minge7dbbc82011-10-24 09:28:13 +00009762fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00009763
Sauw Minge7dbbc82011-10-24 09:28:13 +00009764
Benny Prijono36d32492011-12-28 08:42:23 +00009765{ echo "$as_me:$LINENO: checking for mswsock.h" >&5
9766echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6; }
9767if test "${ac_cv_header_mswsock_h+set}" = set; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9769else
9770 cat >conftest.$ac_ext <<_ACEOF
9771/* confdefs.h. */
9772_ACEOF
9773cat confdefs.h >>conftest.$ac_ext
9774cat >>conftest.$ac_ext <<_ACEOF
9775/* end confdefs.h. */
9776#if PJ_HAS_WINSOCK2_H
Benny Prijonoa9948e62008-03-25 14:03:01 +00009777 # include <winsock2.h>
9778 #elif PJ_HAS_WINSOCK_H
9779 # include <winsock.h>
9780 #endif
9781
Benny Prijono36d32492011-12-28 08:42:23 +00009782
9783#include <mswsock.h>
9784_ACEOF
9785rm -f conftest.$ac_objext
9786if { (ac_try="$ac_compile"
9787case "(($ac_try" in
9788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789 *) ac_try_echo=$ac_try;;
9790esac
9791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792 (eval "$ac_compile") 2>conftest.er1
9793 ac_status=$?
9794 grep -v '^ *+' conftest.er1 >conftest.err
9795 rm -f conftest.er1
9796 cat conftest.err >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } && {
9799 test -z "$ac_c_werror_flag" ||
9800 test ! -s conftest.err
9801 } && test -s conftest.$ac_objext; then
9802 ac_cv_header_mswsock_h=yes
9803else
9804 echo "$as_me: failed program was:" >&5
9805sed 's/^/| /' conftest.$ac_ext >&5
9806
9807 ac_cv_header_mswsock_h=no
9808fi
9809
9810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9811fi
9812{ echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5
9813echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6; }
9814if test $ac_cv_header_mswsock_h = yes; then
9815 cat >>confdefs.h <<\_ACEOF
9816#define PJ_HAS_MSWSOCK_H 1
9817_ACEOF
Benny Prijonoa9948e62008-03-25 14:03:01 +00009818
9819fi
9820
9821
Benny Prijono36d32492011-12-28 08:42:23 +00009822if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
9823 { echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5
9824echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; }
9825if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9827fi
9828{ echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5
9829echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; }
9830else
9831 # Is the header compilable?
9832{ echo "$as_me:$LINENO: checking ws2tcpip.h usability" >&5
9833echo $ECHO_N "checking ws2tcpip.h usability... $ECHO_C" >&6; }
9834cat >conftest.$ac_ext <<_ACEOF
9835/* confdefs.h. */
9836_ACEOF
9837cat confdefs.h >>conftest.$ac_ext
9838cat >>conftest.$ac_ext <<_ACEOF
9839/* end confdefs.h. */
9840$ac_includes_default
9841#include <ws2tcpip.h>
9842_ACEOF
9843rm -f conftest.$ac_objext
9844if { (ac_try="$ac_compile"
9845case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848esac
9849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_compile") 2>conftest.er1
9851 ac_status=$?
9852 grep -v '^ *+' conftest.er1 >conftest.err
9853 rm -f conftest.er1
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } && {
9857 test -z "$ac_c_werror_flag" ||
9858 test ! -s conftest.err
9859 } && test -s conftest.$ac_objext; then
9860 ac_header_compiler=yes
9861else
9862 echo "$as_me: failed program was:" >&5
9863sed 's/^/| /' conftest.$ac_ext >&5
9864
9865 ac_header_compiler=no
9866fi
9867
9868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9869{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9870echo "${ECHO_T}$ac_header_compiler" >&6; }
9871
9872# Is the header present?
9873{ echo "$as_me:$LINENO: checking ws2tcpip.h presence" >&5
9874echo $ECHO_N "checking ws2tcpip.h presence... $ECHO_C" >&6; }
9875cat >conftest.$ac_ext <<_ACEOF
9876/* confdefs.h. */
9877_ACEOF
9878cat confdefs.h >>conftest.$ac_ext
9879cat >>conftest.$ac_ext <<_ACEOF
9880/* end confdefs.h. */
9881#include <ws2tcpip.h>
9882_ACEOF
9883if { (ac_try="$ac_cpp conftest.$ac_ext"
9884case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9887esac
9888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } >/dev/null && {
9896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9897 test ! -s conftest.err
9898 }; then
9899 ac_header_preproc=yes
9900else
9901 echo "$as_me: failed program was:" >&5
9902sed 's/^/| /' conftest.$ac_ext >&5
9903
9904 ac_header_preproc=no
9905fi
9906
9907rm -f conftest.err conftest.$ac_ext
9908{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9909echo "${ECHO_T}$ac_header_preproc" >&6; }
9910
9911# So? What about this header?
9912case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9913 yes:no: )
9914 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&5
9915echo "$as_me: WARNING: ws2tcpip.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&5
9917echo "$as_me: WARNING: ws2tcpip.h: proceeding with the compiler's result" >&2;}
9918 ac_header_preproc=yes
9919 ;;
9920 no:yes:* )
9921 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: present but cannot be compiled" >&5
9922echo "$as_me: WARNING: ws2tcpip.h: present but cannot be compiled" >&2;}
9923 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&5
9924echo "$as_me: WARNING: ws2tcpip.h: check for missing prerequisite headers?" >&2;}
9925 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: see the Autoconf documentation" >&5
9926echo "$as_me: WARNING: ws2tcpip.h: see the Autoconf documentation" >&2;}
9927 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&5
9928echo "$as_me: WARNING: ws2tcpip.h: section \"Present But Cannot Be Compiled\"" >&2;}
9929 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&5
9930echo "$as_me: WARNING: ws2tcpip.h: proceeding with the preprocessor's result" >&2;}
9931 { echo "$as_me:$LINENO: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&5
9932echo "$as_me: WARNING: ws2tcpip.h: in the future, the compiler will take precedence" >&2;}
9933
9934 ;;
9935esac
9936{ echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5
9937echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; }
9938if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
9940else
9941 ac_cv_header_ws2tcpip_h=$ac_header_preproc
9942fi
9943{ echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5
9944echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; }
9945
9946fi
9947if test $ac_cv_header_ws2tcpip_h = yes; then
9948 cat >>confdefs.h <<\_ACEOF
9949#define PJ_HAS_WS2TCPIP_H 1
9950_ACEOF
Benny Prijonoe2746132008-09-27 13:16:35 +00009951
9952fi
9953
9954
Benny Prijono36d32492011-12-28 08:42:23 +00009955if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
9956 { echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
9957echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; }
9958if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9960fi
9961{ echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
9962echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; }
9963else
9964 # Is the header compilable?
9965{ echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
9966echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6; }
9967cat >conftest.$ac_ext <<_ACEOF
9968/* confdefs.h. */
9969_ACEOF
9970cat confdefs.h >>conftest.$ac_ext
9971cat >>conftest.$ac_ext <<_ACEOF
9972/* end confdefs.h. */
9973$ac_includes_default
9974#include <uuid/uuid.h>
9975_ACEOF
9976rm -f conftest.$ac_objext
9977if { (ac_try="$ac_compile"
9978case "(($ac_try" in
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9981esac
9982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_compile") 2>conftest.er1
9984 ac_status=$?
9985 grep -v '^ *+' conftest.er1 >conftest.err
9986 rm -f conftest.er1
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } && {
9990 test -z "$ac_c_werror_flag" ||
9991 test ! -s conftest.err
9992 } && test -s conftest.$ac_objext; then
9993 ac_header_compiler=yes
9994else
9995 echo "$as_me: failed program was:" >&5
9996sed 's/^/| /' conftest.$ac_ext >&5
9997
9998 ac_header_compiler=no
9999fi
10000
10001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10002{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10003echo "${ECHO_T}$ac_header_compiler" >&6; }
10004
10005# Is the header present?
10006{ echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
10007echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6; }
10008cat >conftest.$ac_ext <<_ACEOF
10009/* confdefs.h. */
10010_ACEOF
10011cat confdefs.h >>conftest.$ac_ext
10012cat >>conftest.$ac_ext <<_ACEOF
10013/* end confdefs.h. */
10014#include <uuid/uuid.h>
10015_ACEOF
10016if { (ac_try="$ac_cpp conftest.$ac_ext"
10017case "(($ac_try" in
10018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019 *) ac_try_echo=$ac_try;;
10020esac
10021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10023 ac_status=$?
10024 grep -v '^ *+' conftest.er1 >conftest.err
10025 rm -f conftest.er1
10026 cat conftest.err >&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } >/dev/null && {
10029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10030 test ! -s conftest.err
10031 }; then
10032 ac_header_preproc=yes
10033else
10034 echo "$as_me: failed program was:" >&5
10035sed 's/^/| /' conftest.$ac_ext >&5
10036
10037 ac_header_preproc=no
10038fi
10039
10040rm -f conftest.err conftest.$ac_ext
10041{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10042echo "${ECHO_T}$ac_header_preproc" >&6; }
10043
10044# So? What about this header?
10045case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10046 yes:no: )
10047 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
10048echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10049 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
10050echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
10051 ac_header_preproc=yes
10052 ;;
10053 no:yes:* )
10054 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
10055echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
10056 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
10057echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
10059echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
10060 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
10061echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
10062 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
10063echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
10064 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
10065echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
10066
10067 ;;
10068esac
10069{ echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
10070echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6; }
10071if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10073else
10074 ac_cv_header_uuid_uuid_h=$ac_header_preproc
10075fi
10076{ echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
10077echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6; }
10078
10079fi
10080if test $ac_cv_header_uuid_uuid_h = yes; then
Benny Prijono4e48b512007-05-16 13:41:00 +000010081 ac_has_uuid_h=1
10082fi
10083
10084
Benny Prijono36d32492011-12-28 08:42:23 +000010085{ echo "$as_me:$LINENO: checking for net/if.h" >&5
10086echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; }
10087if test "${ac_cv_header_net_if_h+set}" = set; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10089else
10090 cat >conftest.$ac_ext <<_ACEOF
10091/* confdefs.h. */
10092_ACEOF
10093cat confdefs.h >>conftest.$ac_ext
10094cat >>conftest.$ac_ext <<_ACEOF
10095/* end confdefs.h. */
10096#if PJ_HAS_SYS_TYPES_H
Benny Prijonod5233702010-01-13 13:09:45 +000010097 # include <sys/types.h>
10098 #endif
10099 #if PJ_HAS_SYS_SOCKET_H
10100
Benny Prijono188ba7e2008-03-25 13:53:16 +000010101 # include <sys/socket.h>
10102 #endif
10103
Benny Prijono36d32492011-12-28 08:42:23 +000010104
10105#include <net/if.h>
10106_ACEOF
10107rm -f conftest.$ac_objext
10108if { (ac_try="$ac_compile"
10109case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10112esac
10113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_compile") 2>conftest.er1
10115 ac_status=$?
10116 grep -v '^ *+' conftest.er1 >conftest.err
10117 rm -f conftest.er1
10118 cat conftest.err >&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } && {
10121 test -z "$ac_c_werror_flag" ||
10122 test ! -s conftest.err
10123 } && test -s conftest.$ac_objext; then
10124 ac_cv_header_net_if_h=yes
10125else
10126 echo "$as_me: failed program was:" >&5
10127sed 's/^/| /' conftest.$ac_ext >&5
10128
10129 ac_cv_header_net_if_h=no
10130fi
10131
10132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10133fi
10134{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
10135echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; }
10136if test $ac_cv_header_net_if_h = yes; then
10137 cat >>confdefs.h <<\_ACEOF
10138#define PJ_HAS_NET_IF_H 1
10139_ACEOF
Benny Prijono188ba7e2008-03-25 13:53:16 +000010140
10141fi
10142
Benny Prijono188ba7e2008-03-25 13:53:16 +000010143
Benny Prijono36d32492011-12-28 08:42:23 +000010144{ echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5
10145echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010146cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010147#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010148_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010149
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010150
Benny Prijono36d32492011-12-28 08:42:23 +000010151{ echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
10152echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
10153cat >>confdefs.h <<\_ACEOF
10154#define PJ_HAS_ERRNO_VAR 1
10155_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010156
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010157
Benny Prijono36d32492011-12-28 08:42:23 +000010158{ echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
10159echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
10160cat >>confdefs.h <<\_ACEOF
10161#define PJ_HAS_HIGH_RES_TIMER 1
10162_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000010163
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010164
Benny Prijono36d32492011-12-28 08:42:23 +000010165{ echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5
10166echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6; }
10167cat >>confdefs.h <<\_ACEOF
10168#define PJ_HAS_MALLOC 1
10169_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010170
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010171
Benny Prijono36d32492011-12-28 08:42:23 +000010172{ echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
10173echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
10174cat >>confdefs.h <<\_ACEOF
10175#define PJ_NATIVE_STRING_IS_UNICODE 0
10176_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010177
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010178
Benny Prijono36d32492011-12-28 08:42:23 +000010179{ echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
10180echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
10181cat >>confdefs.h <<\_ACEOF
10182#define PJ_ATOMIC_VALUE_TYPE long
10183_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010184
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010185
Benny Prijono36d32492011-12-28 08:42:23 +000010186{ echo "$as_me:$LINENO: checking if inet_aton() is available" >&5
10187echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6; }
10188cat >conftest.$ac_ext <<_ACEOF
10189/* confdefs.h. */
10190_ACEOF
10191cat confdefs.h >>conftest.$ac_ext
10192cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010193/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010194#include <sys/types.h>
10195 #include <sys/socket.h>
10196 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010197int
10198main ()
10199{
10200inet_aton(0, 0);
10201 ;
10202 return 0;
10203}
10204_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000010205rm -f conftest.$ac_objext
10206if { (ac_try="$ac_compile"
10207case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10210esac
10211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_compile") 2>conftest.er1
10213 ac_status=$?
10214 grep -v '^ *+' conftest.er1 >conftest.err
10215 rm -f conftest.er1
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } && {
10219 test -z "$ac_c_werror_flag" ||
10220 test ! -s conftest.err
10221 } && test -s conftest.$ac_objext; then
10222 cat >>confdefs.h <<\_ACEOF
10223#define PJ_SOCK_HAS_INET_ATON 1
10224_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010225
Benny Prijono36d32492011-12-28 08:42:23 +000010226 { echo "$as_me:$LINENO: result: yes" >&5
10227echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010228else
Benny Prijono36d32492011-12-28 08:42:23 +000010229 echo "$as_me: failed program was:" >&5
10230sed 's/^/| /' conftest.$ac_ext >&5
10231
10232 { echo "$as_me:$LINENO: result: no" >&5
10233echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010234fi
Benny Prijono36d32492011-12-28 08:42:23 +000010235
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10237
Benny Prijono36d32492011-12-28 08:42:23 +000010238{ echo "$as_me:$LINENO: checking if inet_pton() is available" >&5
10239echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6; }
10240cat >conftest.$ac_ext <<_ACEOF
10241/* confdefs.h. */
10242_ACEOF
10243cat confdefs.h >>conftest.$ac_ext
10244cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010245/* end confdefs.h. */
10246#include <sys/types.h>
10247 #include <sys/socket.h>
10248 #include <arpa/inet.h>
10249int
10250main ()
10251{
10252inet_pton(0, 0, 0);
10253 ;
10254 return 0;
10255}
10256_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000010257rm -f conftest.$ac_objext
10258if { (ac_try="$ac_compile"
10259case "(($ac_try" in
10260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10261 *) ac_try_echo=$ac_try;;
10262esac
10263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10264 (eval "$ac_compile") 2>conftest.er1
10265 ac_status=$?
10266 grep -v '^ *+' conftest.er1 >conftest.err
10267 rm -f conftest.er1
10268 cat conftest.err >&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); } && {
10271 test -z "$ac_c_werror_flag" ||
10272 test ! -s conftest.err
10273 } && test -s conftest.$ac_objext; then
10274 cat >>confdefs.h <<\_ACEOF
10275#define PJ_SOCK_HAS_INET_PTON 1
10276_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010277
Benny Prijono36d32492011-12-28 08:42:23 +000010278 { echo "$as_me:$LINENO: result: yes" >&5
10279echo "${ECHO_T}yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010280else
Benny Prijono36d32492011-12-28 08:42:23 +000010281 echo "$as_me: failed program was:" >&5
10282sed 's/^/| /' conftest.$ac_ext >&5
10283
10284 { echo "$as_me:$LINENO: result: no" >&5
10285echo "${ECHO_T}no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010286fi
Benny Prijono36d32492011-12-28 08:42:23 +000010287
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10289
Benny Prijono36d32492011-12-28 08:42:23 +000010290{ echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5
10291echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6; }
10292cat >conftest.$ac_ext <<_ACEOF
10293/* confdefs.h. */
10294_ACEOF
10295cat confdefs.h >>conftest.$ac_ext
10296cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010297/* end confdefs.h. */
10298#include <sys/types.h>
10299 #include <sys/socket.h>
10300 #include <arpa/inet.h>
10301int
10302main ()
10303{
10304inet_ntop(0, 0, 0, 0);
10305 ;
10306 return 0;
10307}
10308_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000010309rm -f conftest.$ac_objext
10310if { (ac_try="$ac_compile"
10311case "(($ac_try" in
10312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313 *) ac_try_echo=$ac_try;;
10314esac
10315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10316 (eval "$ac_compile") 2>conftest.er1
10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } && {
10323 test -z "$ac_c_werror_flag" ||
10324 test ! -s conftest.err
10325 } && test -s conftest.$ac_objext; then
10326 cat >>confdefs.h <<\_ACEOF
10327#define PJ_SOCK_HAS_INET_NTOP 1
10328_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010329
Benny Prijono36d32492011-12-28 08:42:23 +000010330 { echo "$as_me:$LINENO: result: yes" >&5
10331echo "${ECHO_T}yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010332else
Benny Prijono36d32492011-12-28 08:42:23 +000010333 echo "$as_me: failed program was:" >&5
10334sed 's/^/| /' conftest.$ac_ext >&5
10335
10336 { echo "$as_me:$LINENO: result: no" >&5
10337echo "${ECHO_T}no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010338fi
Benny Prijono36d32492011-12-28 08:42:23 +000010339
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10341
Benny Prijono36d32492011-12-28 08:42:23 +000010342{ echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5
10343echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6; }
10344cat >conftest.$ac_ext <<_ACEOF
10345/* confdefs.h. */
10346_ACEOF
10347cat confdefs.h >>conftest.$ac_ext
10348cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010349/* end confdefs.h. */
10350#include <sys/types.h>
10351 #include <sys/socket.h>
10352 #include <netdb.h>
10353int
10354main ()
10355{
10356getaddrinfo(0, 0, 0, 0);
10357 ;
10358 return 0;
10359}
10360_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000010361rm -f conftest.$ac_objext
10362if { (ac_try="$ac_compile"
10363case "(($ac_try" in
10364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365 *) ac_try_echo=$ac_try;;
10366esac
10367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10368 (eval "$ac_compile") 2>conftest.er1
10369 ac_status=$?
10370 grep -v '^ *+' conftest.er1 >conftest.err
10371 rm -f conftest.er1
10372 cat conftest.err >&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); } && {
10375 test -z "$ac_c_werror_flag" ||
10376 test ! -s conftest.err
10377 } && test -s conftest.$ac_objext; then
10378 cat >>confdefs.h <<\_ACEOF
10379#define PJ_SOCK_HAS_GETADDRINFO 1
10380_ACEOF
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010381
Benny Prijono36d32492011-12-28 08:42:23 +000010382 { echo "$as_me:$LINENO: result: yes" >&5
10383echo "${ECHO_T}yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010384else
Benny Prijono36d32492011-12-28 08:42:23 +000010385 echo "$as_me: failed program was:" >&5
10386sed 's/^/| /' conftest.$ac_ext >&5
10387
10388 { echo "$as_me:$LINENO: result: no" >&5
10389echo "${ECHO_T}no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +000010390fi
Benny Prijono36d32492011-12-28 08:42:23 +000010391
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10393
Benny Prijono36d32492011-12-28 08:42:23 +000010394{ echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5
10395echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6; }
10396cat >conftest.$ac_ext <<_ACEOF
10397/* confdefs.h. */
10398_ACEOF
10399cat confdefs.h >>conftest.$ac_ext
10400cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010401/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +000010402#include <sys/types.h>
10403 #include <sys/socket.h>
10404 #include <netinet/in.h>
10405 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010406int
10407main ()
10408{
10409struct sockaddr_in a; a.sin_len=0;
10410 ;
10411 return 0;
10412}
10413_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000010414rm -f conftest.$ac_objext
10415if { (ac_try="$ac_compile"
10416case "(($ac_try" in
10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10419esac
10420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10421 (eval "$ac_compile") 2>conftest.er1
10422 ac_status=$?
10423 grep -v '^ *+' conftest.er1 >conftest.err
10424 rm -f conftest.er1
10425 cat conftest.err >&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } && {
10428 test -z "$ac_c_werror_flag" ||
10429 test ! -s conftest.err
10430 } && test -s conftest.$ac_objext; then
10431 cat >>confdefs.h <<\_ACEOF
10432#define PJ_SOCKADDR_HAS_LEN 1
10433_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010434
Benny Prijono36d32492011-12-28 08:42:23 +000010435 { echo "$as_me:$LINENO: result: yes" >&5
10436echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010437else
Benny Prijono36d32492011-12-28 08:42:23 +000010438 echo "$as_me: failed program was:" >&5
10439sed 's/^/| /' conftest.$ac_ext >&5
10440
10441 { echo "$as_me:$LINENO: result: no" >&5
10442echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010443fi
Benny Prijono36d32492011-12-28 08:42:23 +000010444
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10446
Benny Prijono36d32492011-12-28 08:42:23 +000010447{ echo "$as_me:$LINENO: checking if socklen_t is available" >&5
10448echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6; }
10449cat >conftest.$ac_ext <<_ACEOF
10450/* confdefs.h. */
10451_ACEOF
10452cat confdefs.h >>conftest.$ac_ext
10453cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010454/* end confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +000010455#include <sys/types.h>
10456 #include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +000010457int
10458main ()
10459{
10460socklen_t xxx = 0;
10461 ;
10462 return 0;
10463}
10464_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000010465rm -f conftest.$ac_objext
10466if { (ac_try="$ac_compile"
10467case "(($ac_try" in
10468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10469 *) ac_try_echo=$ac_try;;
10470esac
10471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10472 (eval "$ac_compile") 2>conftest.er1
10473 ac_status=$?
10474 grep -v '^ *+' conftest.er1 >conftest.err
10475 rm -f conftest.er1
10476 cat conftest.err >&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } && {
10479 test -z "$ac_c_werror_flag" ||
10480 test ! -s conftest.err
10481 } && test -s conftest.$ac_objext; then
10482 cat >>confdefs.h <<\_ACEOF
10483#define PJ_HAS_SOCKLEN_T 1
10484_ACEOF
Benny Prijono30f85c62006-09-09 20:05:33 +000010485
Benny Prijono36d32492011-12-28 08:42:23 +000010486 { echo "$as_me:$LINENO: result: yes" >&5
10487echo "${ECHO_T}yes" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +000010488else
Benny Prijono36d32492011-12-28 08:42:23 +000010489 echo "$as_me: failed program was:" >&5
10490sed 's/^/| /' conftest.$ac_ext >&5
10491
10492 { echo "$as_me:$LINENO: result: no" >&5
10493echo "${ECHO_T}no" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +000010494fi
Benny Prijono36d32492011-12-28 08:42:23 +000010495
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10497
Benny Prijono36d32492011-12-28 08:42:23 +000010498{ echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5
10499echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010500case $target in
10501 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono36d32492011-12-28 08:42:23 +000010502 cat >>confdefs.h <<\_ACEOF
10503#define PJ_HAS_SO_ERROR 1
10504_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010505
Benny Prijono36d32492011-12-28 08:42:23 +000010506 { echo "$as_me:$LINENO: result: yes" >&5
10507echo "${ECHO_T}yes" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010508 ;;
10509 *)
Benny Prijono36d32492011-12-28 08:42:23 +000010510 cat >conftest.$ac_ext <<_ACEOF
10511/* confdefs.h. */
10512_ACEOF
10513cat confdefs.h >>conftest.$ac_ext
10514cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010515/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +000010516#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010517 #include <sys/socket.h>
10518 #include <netinet/in.h>
10519 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010520int
10521main ()
10522{
10523int i=SO_ERROR;
10524 ;
10525 return 0;
10526}
10527_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000010528rm -f conftest.$ac_objext
10529if { (ac_try="$ac_compile"
10530case "(($ac_try" in
10531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10532 *) ac_try_echo=$ac_try;;
10533esac
10534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10535 (eval "$ac_compile") 2>conftest.er1
10536 ac_status=$?
10537 grep -v '^ *+' conftest.er1 >conftest.err
10538 rm -f conftest.er1
10539 cat conftest.err >&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } && {
10542 test -z "$ac_c_werror_flag" ||
10543 test ! -s conftest.err
10544 } && test -s conftest.$ac_objext; then
10545 cat >>confdefs.h <<\_ACEOF
10546#define PJ_HAS_SO_ERROR 1
10547_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010548
Benny Prijono36d32492011-12-28 08:42:23 +000010549 { echo "$as_me:$LINENO: result: yes" >&5
10550echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010551else
Benny Prijono36d32492011-12-28 08:42:23 +000010552 echo "$as_me: failed program was:" >&5
10553sed 's/^/| /' conftest.$ac_ext >&5
10554
10555 { echo "$as_me:$LINENO: result: no" >&5
10556echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010557fi
Benny Prijono36d32492011-12-28 08:42:23 +000010558
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010560 ;;
10561esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010562
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010563
Benny Prijono36d32492011-12-28 08:42:23 +000010564{ echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5
10565echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6; }
10566cat >conftest.$ac_ext <<_ACEOF
10567/* confdefs.h. */
10568_ACEOF
10569cat confdefs.h >>conftest.$ac_ext
10570cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010571/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010572#include <pthread.h>
10573int
10574main ()
10575{
10576pthread_rwlock_t *x;
10577 ;
10578 return 0;
10579}
10580_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000010581rm -f conftest.$ac_objext
10582if { (ac_try="$ac_compile"
10583case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10586esac
10587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_compile") 2>conftest.er1
10589 ac_status=$?
10590 grep -v '^ *+' conftest.er1 >conftest.err
10591 rm -f conftest.er1
10592 cat conftest.err >&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } && {
10595 test -z "$ac_c_werror_flag" ||
10596 test ! -s conftest.err
10597 } && test -s conftest.$ac_objext; then
10598 cat >>confdefs.h <<\_ACEOF
10599#define PJ_EMULATE_RWMUTEX 0
10600_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010601
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010602 ac_rwmutex="yes"
Benny Prijono36d32492011-12-28 08:42:23 +000010603 { echo "$as_me:$LINENO: result: yes" >&5
10604echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010605else
Benny Prijono36d32492011-12-28 08:42:23 +000010606 echo "$as_me: failed program was:" >&5
10607sed 's/^/| /' conftest.$ac_ext >&5
10608
10609 cat >>confdefs.h <<\_ACEOF
10610#define PJ_EMULATE_RWMUTEX 1
10611_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010612
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010613 ac_rwmutex="no"
Benny Prijono36d32492011-12-28 08:42:23 +000010614 { echo "$as_me:$LINENO: result: no" >&5
10615echo "${ECHO_T}no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000010616fi
Benny Prijono36d32492011-12-28 08:42:23 +000010617
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010619
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010620if test "$ac_rwmutex" = "no"; then
Benny Prijono36d32492011-12-28 08:42:23 +000010621 { echo "$as_me:$LINENO: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
10622echo $ECHO_N "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... $ECHO_C" >&6; }
10623 cat >conftest.$ac_ext <<_ACEOF
10624/* confdefs.h. */
10625_ACEOF
10626cat confdefs.h >>conftest.$ac_ext
10627cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010628/* end confdefs.h. */
10629#define _POSIX_READER_WRITER_LOCKS
10630 #include <pthread.h>
10631int
10632main ()
10633{
10634pthread_rwlock_t *x;
10635 ;
10636 return 0;
10637}
10638_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000010639rm -f conftest.$ac_objext
10640if { (ac_try="$ac_compile"
10641case "(($ac_try" in
10642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643 *) ac_try_echo=$ac_try;;
10644esac
10645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646 (eval "$ac_compile") 2>conftest.er1
10647 ac_status=$?
10648 grep -v '^ *+' conftest.er1 >conftest.err
10649 rm -f conftest.er1
10650 cat conftest.err >&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } && {
10653 test -z "$ac_c_werror_flag" ||
10654 test ! -s conftest.err
10655 } && test -s conftest.$ac_objext; then
10656 cat >>confdefs.h <<\_ACEOF
10657#define PJ_EMULATE_RWMUTEX 0
10658_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010659
10660 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Benny Prijono36d32492011-12-28 08:42:23 +000010661 { echo "$as_me:$LINENO: result: yes" >&5
10662echo "${ECHO_T}yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010663else
Benny Prijono36d32492011-12-28 08:42:23 +000010664 echo "$as_me: failed program was:" >&5
10665sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010666
Benny Prijono36d32492011-12-28 08:42:23 +000010667 cat >>confdefs.h <<\_ACEOF
10668#define PJ_EMULATE_RWMUTEX 1
10669_ACEOF
10670
10671 { echo "$as_me:$LINENO: result: no" >&5
10672echo "${ECHO_T}no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010673fi
Benny Prijono36d32492011-12-28 08:42:23 +000010674
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10676fi
10677
Benny Prijono36d32492011-12-28 08:42:23 +000010678{ echo "$as_me:$LINENO: checking if pthread_mutexattr_settype() is available" >&5
10679echo $ECHO_N "checking if pthread_mutexattr_settype() is available... $ECHO_C" >&6; }
10680cat >conftest.$ac_ext <<_ACEOF
10681/* confdefs.h. */
10682_ACEOF
10683cat confdefs.h >>conftest.$ac_ext
10684cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010685/* end confdefs.h. */
10686#include <pthread.h>
10687int
10688main ()
10689{
10690pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
10691 ;
10692 return 0;
10693}
10694_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000010695rm -f conftest.$ac_objext
10696if { (ac_try="$ac_compile"
10697case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700esac
10701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_compile") 2>conftest.er1
10703 ac_status=$?
10704 grep -v '^ *+' conftest.er1 >conftest.err
10705 rm -f conftest.er1
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } && {
10709 test -z "$ac_c_werror_flag" ||
10710 test ! -s conftest.err
10711 } && test -s conftest.$ac_objext; then
10712 cat >>confdefs.h <<\_ACEOF
10713#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1
10714_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010715
Benny Prijono36d32492011-12-28 08:42:23 +000010716 { echo "$as_me:$LINENO: result: yes" >&5
10717echo "${ECHO_T}yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010718else
Benny Prijono36d32492011-12-28 08:42:23 +000010719 echo "$as_me: failed program was:" >&5
10720sed 's/^/| /' conftest.$ac_ext >&5
10721
10722 { echo "$as_me:$LINENO: result: no" >&5
10723echo "${ECHO_T}no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010724fi
Benny Prijono36d32492011-12-28 08:42:23 +000010725
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10727
Benny Prijono36d32492011-12-28 08:42:23 +000010728{ echo "$as_me:$LINENO: checking if pthread_mutexattr_t has recursive member" >&5
10729echo $ECHO_N "checking if pthread_mutexattr_t has recursive member... $ECHO_C" >&6; }
10730cat >conftest.$ac_ext <<_ACEOF
10731/* confdefs.h. */
10732_ACEOF
10733cat confdefs.h >>conftest.$ac_ext
10734cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010735/* end confdefs.h. */
10736#include <pthread.h>
10737int
10738main ()
10739{
10740pthread_mutexattr_t attr;
10741 attr.recursive=1;
10742 ;
10743 return 0;
10744}
10745_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000010746rm -f conftest.$ac_objext
10747if { (ac_try="$ac_compile"
10748case "(($ac_try" in
10749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750 *) ac_try_echo=$ac_try;;
10751esac
10752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10753 (eval "$ac_compile") 2>conftest.er1
10754 ac_status=$?
10755 grep -v '^ *+' conftest.er1 >conftest.err
10756 rm -f conftest.er1
10757 cat conftest.err >&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } && {
10760 test -z "$ac_c_werror_flag" ||
10761 test ! -s conftest.err
10762 } && test -s conftest.$ac_objext; then
10763 cat >>confdefs.h <<\_ACEOF
10764#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1
10765_ACEOF
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010766
Benny Prijono36d32492011-12-28 08:42:23 +000010767 { echo "$as_me:$LINENO: result: yes" >&5
10768echo "${ECHO_T}yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010769else
Benny Prijono36d32492011-12-28 08:42:23 +000010770 echo "$as_me: failed program was:" >&5
10771sed 's/^/| /' conftest.$ac_ext >&5
10772
10773 { echo "$as_me:$LINENO: result: no" >&5
10774echo "${ECHO_T}no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010775fi
Benny Prijono36d32492011-12-28 08:42:23 +000010776
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +000010778
Benny Prijono99eec382008-09-18 21:22:16 +000010779
Benny Prijono36d32492011-12-28 08:42:23 +000010780{ echo "$as_me:$LINENO: checking ioqueue backend" >&5
10781echo $ECHO_N "checking ioqueue backend... $ECHO_C" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010782# Check whether --enable-epoll was given.
Benny Prijono36d32492011-12-28 08:42:23 +000010783if test "${enable_epoll+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010784 enableval=$enable_epoll;
Benny Prijono99eec382008-09-18 21:22:16 +000010785 ac_os_objs=ioqueue_epoll.o
Benny Prijono36d32492011-12-28 08:42:23 +000010786 { echo "$as_me:$LINENO: result: /dev/epoll" >&5
10787echo "${ECHO_T}/dev/epoll" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +000010788
10789else
10790
10791 ac_os_objs=ioqueue_select.o
Benny Prijono36d32492011-12-28 08:42:23 +000010792 { echo "$as_me:$LINENO: result: select()" >&5
10793echo "${ECHO_T}select()" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +000010794
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000010795fi
10796
Benny Prijono1c5f4e42008-02-07 13:11:39 +000010797
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010798
10799case $target in
10800 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono99eec382008-09-18 21:22:16 +000010801 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 +000010802 ;;
10803 *)
Benny Prijono99eec382008-09-18 21:22:16 +000010804 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 +000010805 case $target in
10806 arm-apple-darwin*)
Sauw Mingfe42f0c2011-03-01 10:42:11 +000010807 ac_os_objs="$ac_os_objs os_info_iphone.o"
Sauw Ming6a970a32011-03-01 05:25:27 +000010808 ;;
10809 esac
Benny Prijono4e48b512007-05-16 13:41:00 +000010810 # UUID
10811 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
10812 ac_os_objs="$ac_os_objs guid_uuid.o"
10813 else
10814 ac_os_objs="$ac_os_objs guid_simple.o"
10815 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000010816 ;;
10817esac
10818
Sauw Ming68c14572011-07-20 03:00:48 +000010819case $target in
10820 *darwin*)
10821 ac_os_objs="$ac_os_objs os_core_darwin.o"
10822 ;;
10823esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +000010824
10825
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010826ac_external_speex=0
10827
10828
10829# Check whether --with-external-speex was given.
Benny Prijono36d32492011-12-28 08:42:23 +000010830if test "${with_external_speex+set}" = set; then
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010831 withval=$with_external_speex;
10832 if test "x$with_external_speex" != "xno"; then
10833 # Test Speex installation
Benny Prijono36d32492011-12-28 08:42:23 +000010834 { echo "$as_me:$LINENO: checking if external Speex devkit is installed" >&5
10835echo $ECHO_N "checking if external Speex devkit is installed... $ECHO_C" >&6; }
10836 cat >conftest.$ac_ext <<_ACEOF
10837/* confdefs.h. */
10838_ACEOF
10839cat confdefs.h >>conftest.$ac_ext
10840cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010841/* end confdefs.h. */
10842#include <speex/speex.h>
10843 #include <speex/speex_echo.h>
10844
10845int
10846main ()
10847{
10848speex_echo_state_init(0, 0); speex_encoder_init(0);
10849 ;
10850 return 0;
10851}
10852_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000010853rm -f conftest.$ac_objext
10854if { (ac_try="$ac_compile"
10855case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10858esac
10859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_compile") 2>conftest.er1
10861 ac_status=$?
10862 grep -v '^ *+' conftest.er1 >conftest.err
10863 rm -f conftest.er1
10864 cat conftest.err >&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } && {
10867 test -z "$ac_c_werror_flag" ||
10868 test ! -s conftest.err
10869 } && test -s conftest.$ac_objext; then
10870 { echo "$as_me:$LINENO: result: yes!!" >&5
10871echo "${ECHO_T}yes!!" >&6; }
10872 cat >>confdefs.h <<\_ACEOF
10873#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1
10874_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010875
10876 ac_external_speex="1"
10877
10878else
Benny Prijono36d32492011-12-28 08:42:23 +000010879 echo "$as_me: failed program was:" >&5
10880sed 's/^/| /' conftest.$ac_ext >&5
10881
10882 { { 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
10883echo "$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;}
10884 { (exit 1); exit 1; }; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010885fi
Benny Prijono36d32492011-12-28 08:42:23 +000010886
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10888 fi
10889
10890
10891fi
10892
10893
10894ac_external_gsm=0
10895
10896
10897# Check whether --with-external-gsm was given.
Benny Prijono36d32492011-12-28 08:42:23 +000010898if test "${with_external_gsm+set}" = set; then
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010899 withval=$with_external_gsm;
10900 if test "x$with_external_gsm" != "xno"; then
Benny Prijonod4306432010-05-01 22:05:41 +000010901 # Test GSM library installation
Benny Prijono36d32492011-12-28 08:42:23 +000010902 { echo "$as_me:$LINENO: checking if external GSM devkit is installed as gsm/gsm.h" >&5
10903echo $ECHO_N "checking if external GSM devkit is installed as gsm/gsm.h... $ECHO_C" >&6; }
10904 cat >conftest.$ac_ext <<_ACEOF
10905/* confdefs.h. */
10906_ACEOF
10907cat confdefs.h >>conftest.$ac_ext
10908cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010909/* end confdefs.h. */
10910#include <gsm/gsm.h>
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010911int
10912main ()
10913{
10914gsm_create();
10915 ;
10916 return 0;
10917}
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010918_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000010919rm -f conftest.$ac_objext
10920if { (ac_try="$ac_compile"
10921case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10924esac
10925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_compile") 2>conftest.er1
10927 ac_status=$?
10928 grep -v '^ *+' conftest.er1 >conftest.err
10929 rm -f conftest.er1
10930 cat conftest.err >&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } && {
10933 test -z "$ac_c_werror_flag" ||
10934 test ! -s conftest.err
10935 } && test -s conftest.$ac_objext; then
10936 { echo "$as_me:$LINENO: result: yes!!" >&5
10937echo "${ECHO_T}yes!!" >&6; }
10938 cat >>confdefs.h <<\_ACEOF
10939#define PJMEDIA_EXTERNAL_GSM_CODEC 1
10940_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010941
Benny Prijono36d32492011-12-28 08:42:23 +000010942 cat >>confdefs.h <<\_ACEOF
10943#define PJMEDIA_EXTERNAL_GSM_GSM_H 1
10944_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +000010945
10946 ac_external_gsm="1"
Benny Prijono8a9b3b22010-01-14 14:46:54 +000010947
10948else
Benny Prijono36d32492011-12-28 08:42:23 +000010949 echo "$as_me: failed program was:" >&5
10950sed 's/^/| /' conftest.$ac_ext >&5
Benny Prijono46bd0842010-02-12 14:12:41 +000010951
Benny Prijono36d32492011-12-28 08:42:23 +000010952
10953 { echo "$as_me:$LINENO: result: no" >&5
10954echo "${ECHO_T}no" >&6; }
10955 { echo "$as_me:$LINENO: checking if external GSM devkit is installed as gsm.h" >&5
10956echo $ECHO_N "checking if external GSM devkit is installed as gsm.h... $ECHO_C" >&6; }
10957 cat >conftest.$ac_ext <<_ACEOF
10958/* confdefs.h. */
10959_ACEOF
10960cat confdefs.h >>conftest.$ac_ext
10961cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +000010962/* end confdefs.h. */
10963#include <gsm.h>
10964int
10965main ()
10966{
10967gsm_create();
10968 ;
10969 return 0;
10970}
10971_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000010972rm -f conftest.$ac_objext
10973if { (ac_try="$ac_compile"
10974case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10977esac
10978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979 (eval "$ac_compile") 2>conftest.er1
10980 ac_status=$?
10981 grep -v '^ *+' conftest.er1 >conftest.err
10982 rm -f conftest.er1
10983 cat conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } && {
10986 test -z "$ac_c_werror_flag" ||
10987 test ! -s conftest.err
10988 } && test -s conftest.$ac_objext; then
10989 { echo "$as_me:$LINENO: result: yes!!" >&5
10990echo "${ECHO_T}yes!!" >&6; }
10991 cat >>confdefs.h <<\_ACEOF
10992#define PJMEDIA_EXTERNAL_GSM_CODEC 1
10993_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +000010994
Benny Prijono36d32492011-12-28 08:42:23 +000010995 cat >>confdefs.h <<\_ACEOF
10996#define PJMEDIA_EXTERNAL_GSM_H 1
10997_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +000010998
10999 ac_external_gsm="1"
11000
11001else
Benny Prijono36d32492011-12-28 08:42:23 +000011002 echo "$as_me: failed program was:" >&5
11003sed 's/^/| /' conftest.$ac_ext >&5
11004
11005 { { 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
11006echo "$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;}
11007 { (exit 1); exit 1; }; }
Benny Prijonod4306432010-05-01 22:05:41 +000011008
11009
Benny Prijono8a9b3b22010-01-14 14:46:54 +000011010fi
Benny Prijono36d32492011-12-28 08:42:23 +000011011
Benny Prijonod4306432010-05-01 22:05:41 +000011012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono46bd0842010-02-12 14:12:41 +000011013
Benny Prijonod4306432010-05-01 22:05:41 +000011014
11015fi
Benny Prijono36d32492011-12-28 08:42:23 +000011016
Benny Prijono8a9b3b22010-01-14 14:46:54 +000011017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11018 fi
11019
11020
11021fi
11022
11023
11024
11025
Benny Prijono4e48b512007-05-16 13:41:00 +000011026
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011027# Check whether --enable-sound was given.
Benny Prijono36d32492011-12-28 08:42:23 +000011028if test "${enable_sound+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011029 enableval=$enable_sound; if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +000011030 ac_pjmedia_snd=null
Benny Prijono36d32492011-12-28 08:42:23 +000011031 { echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5
11032echo "${ECHO_T}Checking if sound is disabled... yes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +000011033 fi
11034
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011035fi
11036
Benny Prijono1d971622006-09-10 22:27:40 +000011037
Benny Prijono8a9b3b22010-01-14 14:46:54 +000011038ac_external_pa=0
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011039
Benny Prijono27c98722007-04-09 21:28:15 +000011040
Benny Prijono8a9b3b22010-01-14 14:46:54 +000011041# Check whether --with-external-pa was given.
Benny Prijono36d32492011-12-28 08:42:23 +000011042if test "${with_external_pa+set}" = set; then
Benny Prijono8a9b3b22010-01-14 14:46:54 +000011043 withval=$with_external_pa;
11044 if test "x$with_external_pa" != "xno"; then
11045 # Test PortAudio installation
Benny Prijono36d32492011-12-28 08:42:23 +000011046 { echo "$as_me:$LINENO: checking if external PortAudio devkit is installed" >&5
11047echo $ECHO_N "checking if external PortAudio devkit is installed... $ECHO_C" >&6; }
11048 cat >conftest.$ac_ext <<_ACEOF
11049/* confdefs.h. */
11050_ACEOF
11051cat confdefs.h >>conftest.$ac_ext
11052cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +000011053/* end confdefs.h. */
11054#include <portaudio.h>
11055
11056int
11057main ()
11058{
11059Pa_Initialize();
11060 ;
11061 return 0;
11062}
11063_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000011064rm -f conftest.$ac_objext
11065if { (ac_try="$ac_compile"
11066case "(($ac_try" in
11067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11068 *) ac_try_echo=$ac_try;;
11069esac
11070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11071 (eval "$ac_compile") 2>conftest.er1
11072 ac_status=$?
11073 grep -v '^ *+' conftest.er1 >conftest.err
11074 rm -f conftest.er1
11075 cat conftest.err >&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } && {
11078 test -z "$ac_c_werror_flag" ||
11079 test ! -s conftest.err
11080 } && test -s conftest.$ac_objext; then
11081 { echo "$as_me:$LINENO: result: yes!!" >&5
11082echo "${ECHO_T}yes!!" >&6; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +000011083 ac_external_pa="1"
11084
11085else
Benny Prijono36d32492011-12-28 08:42:23 +000011086 echo "$as_me: failed program was:" >&5
11087sed 's/^/| /' conftest.$ac_ext >&5
11088
11089 { { 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
11090echo "$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;}
11091 { (exit 1); exit 1; }; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +000011092fi
Benny Prijono36d32492011-12-28 08:42:23 +000011093
Benny Prijono8a9b3b22010-01-14 14:46:54 +000011094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonofe0c1272010-01-13 16:28:15 +000011095 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011096
Benny Prijono27c98722007-04-09 21:28:15 +000011097
11098fi
Benny Prijonofe0c1272010-01-13 16:28:15 +000011099
11100
11101
Benny Prijono36d32492011-12-28 08:42:23 +000011102if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
11103 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
11104echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
11105if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11107fi
11108{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
11109echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
11110else
11111 # Is the header compilable?
11112{ echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
11113echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
11114cat >conftest.$ac_ext <<_ACEOF
11115/* confdefs.h. */
11116_ACEOF
11117cat confdefs.h >>conftest.$ac_ext
11118cat >>conftest.$ac_ext <<_ACEOF
11119/* end confdefs.h. */
11120$ac_includes_default
11121#include <sys/soundcard.h>
11122_ACEOF
11123rm -f conftest.$ac_objext
11124if { (ac_try="$ac_compile"
11125case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11128esac
11129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_compile") 2>conftest.er1
11131 ac_status=$?
11132 grep -v '^ *+' conftest.er1 >conftest.err
11133 rm -f conftest.er1
11134 cat conftest.err >&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } && {
11137 test -z "$ac_c_werror_flag" ||
11138 test ! -s conftest.err
11139 } && test -s conftest.$ac_objext; then
11140 ac_header_compiler=yes
11141else
11142 echo "$as_me: failed program was:" >&5
11143sed 's/^/| /' conftest.$ac_ext >&5
11144
11145 ac_header_compiler=no
11146fi
11147
11148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11149{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11150echo "${ECHO_T}$ac_header_compiler" >&6; }
11151
11152# Is the header present?
11153{ echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
11154echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
11155cat >conftest.$ac_ext <<_ACEOF
11156/* confdefs.h. */
11157_ACEOF
11158cat confdefs.h >>conftest.$ac_ext
11159cat >>conftest.$ac_ext <<_ACEOF
11160/* end confdefs.h. */
11161#include <sys/soundcard.h>
11162_ACEOF
11163if { (ac_try="$ac_cpp conftest.$ac_ext"
11164case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11167esac
11168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11170 ac_status=$?
11171 grep -v '^ *+' conftest.er1 >conftest.err
11172 rm -f conftest.er1
11173 cat conftest.err >&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } >/dev/null && {
11176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11177 test ! -s conftest.err
11178 }; then
11179 ac_header_preproc=yes
11180else
11181 echo "$as_me: failed program was:" >&5
11182sed 's/^/| /' conftest.$ac_ext >&5
11183
11184 ac_header_preproc=no
11185fi
11186
11187rm -f conftest.err conftest.$ac_ext
11188{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11189echo "${ECHO_T}$ac_header_preproc" >&6; }
11190
11191# So? What about this header?
11192case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11193 yes:no: )
11194 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
11195echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11196 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
11197echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
11198 ac_header_preproc=yes
11199 ;;
11200 no:yes:* )
11201 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
11202echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
11203 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
11204echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
11205 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
11206echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
11207 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
11208echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
11209 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
11210echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
11211 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
11212echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
11213
11214 ;;
11215esac
11216{ echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
11217echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
11218if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11220else
11221 ac_cv_header_sys_soundcard_h=$ac_header_preproc
11222fi
11223{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
11224echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
11225
11226fi
11227if test $ac_cv_header_sys_soundcard_h = yes; then
Benny Prijono27c98722007-04-09 21:28:15 +000011228 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
11229fi
11230
11231
Benny Prijono36d32492011-12-28 08:42:23 +000011232if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
11233 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
11234echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
11235if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11237fi
11238{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
11239echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
11240else
11241 # Is the header compilable?
11242{ echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
11243echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
11244cat >conftest.$ac_ext <<_ACEOF
11245/* confdefs.h. */
11246_ACEOF
11247cat confdefs.h >>conftest.$ac_ext
11248cat >>conftest.$ac_ext <<_ACEOF
11249/* end confdefs.h. */
11250$ac_includes_default
11251#include <linux/soundcard.h>
11252_ACEOF
11253rm -f conftest.$ac_objext
11254if { (ac_try="$ac_compile"
11255case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11258esac
11259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260 (eval "$ac_compile") 2>conftest.er1
11261 ac_status=$?
11262 grep -v '^ *+' conftest.er1 >conftest.err
11263 rm -f conftest.er1
11264 cat conftest.err >&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } && {
11267 test -z "$ac_c_werror_flag" ||
11268 test ! -s conftest.err
11269 } && test -s conftest.$ac_objext; then
11270 ac_header_compiler=yes
11271else
11272 echo "$as_me: failed program was:" >&5
11273sed 's/^/| /' conftest.$ac_ext >&5
11274
11275 ac_header_compiler=no
11276fi
11277
11278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11279{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11280echo "${ECHO_T}$ac_header_compiler" >&6; }
11281
11282# Is the header present?
11283{ echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
11284echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
11285cat >conftest.$ac_ext <<_ACEOF
11286/* confdefs.h. */
11287_ACEOF
11288cat confdefs.h >>conftest.$ac_ext
11289cat >>conftest.$ac_ext <<_ACEOF
11290/* end confdefs.h. */
11291#include <linux/soundcard.h>
11292_ACEOF
11293if { (ac_try="$ac_cpp conftest.$ac_ext"
11294case "(($ac_try" in
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296 *) ac_try_echo=$ac_try;;
11297esac
11298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11300 ac_status=$?
11301 grep -v '^ *+' conftest.er1 >conftest.err
11302 rm -f conftest.er1
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } >/dev/null && {
11306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11307 test ! -s conftest.err
11308 }; then
11309 ac_header_preproc=yes
11310else
11311 echo "$as_me: failed program was:" >&5
11312sed 's/^/| /' conftest.$ac_ext >&5
11313
11314 ac_header_preproc=no
11315fi
11316
11317rm -f conftest.err conftest.$ac_ext
11318{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11319echo "${ECHO_T}$ac_header_preproc" >&6; }
11320
11321# So? What about this header?
11322case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11323 yes:no: )
11324 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
11325echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11326 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
11327echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
11328 ac_header_preproc=yes
11329 ;;
11330 no:yes:* )
11331 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
11332echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
11333 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
11334echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
11335 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
11336echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
11337 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
11338echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
11340echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
11341 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
11342echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
11343
11344 ;;
11345esac
11346{ echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
11347echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
11348if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11350else
11351 ac_cv_header_linux_soundcard_h=$ac_header_preproc
11352fi
11353{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
11354echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
11355
11356fi
11357if test $ac_cv_header_linux_soundcard_h = yes; then
Benny Prijono27c98722007-04-09 21:28:15 +000011358 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
11359fi
11360
11361
Benny Prijono36d32492011-12-28 08:42:23 +000011362if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
11363 { echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
11364echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; }
11365if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
11366 echo $ECHO_N "(cached) $ECHO_C" >&6
11367fi
11368{ echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
11369echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; }
11370else
11371 # Is the header compilable?
11372{ echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5
11373echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6; }
11374cat >conftest.$ac_ext <<_ACEOF
11375/* confdefs.h. */
11376_ACEOF
11377cat confdefs.h >>conftest.$ac_ext
11378cat >>conftest.$ac_ext <<_ACEOF
11379/* end confdefs.h. */
11380$ac_includes_default
11381#include <machine/soundcard.h>
11382_ACEOF
11383rm -f conftest.$ac_objext
11384if { (ac_try="$ac_compile"
11385case "(($ac_try" in
11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387 *) ac_try_echo=$ac_try;;
11388esac
11389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390 (eval "$ac_compile") 2>conftest.er1
11391 ac_status=$?
11392 grep -v '^ *+' conftest.er1 >conftest.err
11393 rm -f conftest.er1
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } && {
11397 test -z "$ac_c_werror_flag" ||
11398 test ! -s conftest.err
11399 } && test -s conftest.$ac_objext; then
11400 ac_header_compiler=yes
11401else
11402 echo "$as_me: failed program was:" >&5
11403sed 's/^/| /' conftest.$ac_ext >&5
11404
11405 ac_header_compiler=no
11406fi
11407
11408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11409{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11410echo "${ECHO_T}$ac_header_compiler" >&6; }
11411
11412# Is the header present?
11413{ echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5
11414echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6; }
11415cat >conftest.$ac_ext <<_ACEOF
11416/* confdefs.h. */
11417_ACEOF
11418cat confdefs.h >>conftest.$ac_ext
11419cat >>conftest.$ac_ext <<_ACEOF
11420/* end confdefs.h. */
11421#include <machine/soundcard.h>
11422_ACEOF
11423if { (ac_try="$ac_cpp conftest.$ac_ext"
11424case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11427esac
11428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11430 ac_status=$?
11431 grep -v '^ *+' conftest.er1 >conftest.err
11432 rm -f conftest.er1
11433 cat conftest.err >&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } >/dev/null && {
11436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11437 test ! -s conftest.err
11438 }; then
11439 ac_header_preproc=yes
11440else
11441 echo "$as_me: failed program was:" >&5
11442sed 's/^/| /' conftest.$ac_ext >&5
11443
11444 ac_header_preproc=no
11445fi
11446
11447rm -f conftest.err conftest.$ac_ext
11448{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11449echo "${ECHO_T}$ac_header_preproc" >&6; }
11450
11451# So? What about this header?
11452case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11453 yes:no: )
11454 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
11455echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11456 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5
11457echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;}
11458 ac_header_preproc=yes
11459 ;;
11460 no:yes:* )
11461 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5
11462echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5
11464echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5
11466echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
11468echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
11469 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5
11470echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;}
11471 { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5
11472echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;}
11473
11474 ;;
11475esac
11476{ echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5
11477echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6; }
11478if test "${ac_cv_header_machine_soundcard_h+set}" = set; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11480else
11481 ac_cv_header_machine_soundcard_h=$ac_header_preproc
11482fi
11483{ echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5
11484echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6; }
11485
11486fi
11487if test $ac_cv_header_machine_soundcard_h = yes; then
Benny Prijono27c98722007-04-09 21:28:15 +000011488 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
11489fi
11490
11491
11492
Benny Prijono3e091672008-01-09 15:43:02 +000011493if test "x$ac_cv_c_bigendian" = "xyes"; then
11494 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
11495else
11496 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
11497fi
11498
Benny Prijono1d971622006-09-10 22:27:40 +000011499if test "$enable_sound" = "no"; then
11500 true;
11501else
11502 case $target in
Benny Prijono8ec5eae2010-05-12 10:59:20 +000011503 arm-apple-darwin*)
Sauw Ming6a970a32011-03-01 05:25:27 +000011504 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit"
Benny Prijono36d32492011-12-28 08:42:23 +000011505 { echo "$as_me:$LINENO: result: Checking sound device backend... AudioUnit" >&5
11506echo "${ECHO_T}Checking sound device backend... AudioUnit" >&6; }
Benny Prijono8ec5eae2010-05-12 10:59:20 +000011507 ;;
Benny Prijonob466e232006-09-10 08:53:59 +000011508 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +000011509 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
11510 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +000011511 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +000011512 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
11513 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono36d32492011-12-28 08:42:23 +000011514 { echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5
11515echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +000011516 else
11517 ac_pjmedia_snd=pa_darwinos
Benny Prijono36d32492011-12-28 08:42:23 +000011518 { echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5
11519echo "${ECHO_T}Checking sound device backend... coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +000011520 fi
Benny Prijonob466e232006-09-10 08:53:59 +000011521 ;;
11522 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011523 ac_pjmedia_snd=pa_win32
Benny Prijono36d32492011-12-28 08:42:23 +000011524 { echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5
11525echo "${ECHO_T}Checking sound device backend... win32 sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011526 ;;
11527 *rtems*)
11528 ac_pjmedia_snd=null
Benny Prijono36d32492011-12-28 08:42:23 +000011529 { echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5
11530echo "${ECHO_T}Checking sound device backend... null sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011531 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011532 *)
Benny Prijono0b462322008-03-12 22:44:24 +000011533 ac_pjmedia_snd=pa_unix
Benny Prijono36d32492011-12-28 08:42:23 +000011534 if test "${ac_cv_header_alsa_version_h+set}" = set; then
11535 { echo "$as_me:$LINENO: checking for alsa/version.h" >&5
11536echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; }
11537if test "${ac_cv_header_alsa_version_h+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11539fi
11540{ echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
11541echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; }
11542else
11543 # Is the header compilable?
11544{ echo "$as_me:$LINENO: checking alsa/version.h usability" >&5
11545echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6; }
11546cat >conftest.$ac_ext <<_ACEOF
11547/* confdefs.h. */
11548_ACEOF
11549cat confdefs.h >>conftest.$ac_ext
11550cat >>conftest.$ac_ext <<_ACEOF
11551/* end confdefs.h. */
11552$ac_includes_default
11553#include <alsa/version.h>
11554_ACEOF
11555rm -f conftest.$ac_objext
11556if { (ac_try="$ac_compile"
11557case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11560esac
11561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_compile") 2>conftest.er1
11563 ac_status=$?
11564 grep -v '^ *+' conftest.er1 >conftest.err
11565 rm -f conftest.er1
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } && {
11569 test -z "$ac_c_werror_flag" ||
11570 test ! -s conftest.err
11571 } && test -s conftest.$ac_objext; then
11572 ac_header_compiler=yes
11573else
11574 echo "$as_me: failed program was:" >&5
11575sed 's/^/| /' conftest.$ac_ext >&5
11576
11577 ac_header_compiler=no
11578fi
11579
11580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11581{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11582echo "${ECHO_T}$ac_header_compiler" >&6; }
11583
11584# Is the header present?
11585{ echo "$as_me:$LINENO: checking alsa/version.h presence" >&5
11586echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6; }
11587cat >conftest.$ac_ext <<_ACEOF
11588/* confdefs.h. */
11589_ACEOF
11590cat confdefs.h >>conftest.$ac_ext
11591cat >>conftest.$ac_ext <<_ACEOF
11592/* end confdefs.h. */
11593#include <alsa/version.h>
11594_ACEOF
11595if { (ac_try="$ac_cpp conftest.$ac_ext"
11596case "(($ac_try" in
11597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598 *) ac_try_echo=$ac_try;;
11599esac
11600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11602 ac_status=$?
11603 grep -v '^ *+' conftest.er1 >conftest.err
11604 rm -f conftest.er1
11605 cat conftest.err >&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } >/dev/null && {
11608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11609 test ! -s conftest.err
11610 }; then
11611 ac_header_preproc=yes
11612else
11613 echo "$as_me: failed program was:" >&5
11614sed 's/^/| /' conftest.$ac_ext >&5
11615
11616 ac_header_preproc=no
11617fi
11618
11619rm -f conftest.err conftest.$ac_ext
11620{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11621echo "${ECHO_T}$ac_header_preproc" >&6; }
11622
11623# So? What about this header?
11624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11625 yes:no: )
11626 { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
11627echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5
11629echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;}
11630 ac_header_preproc=yes
11631 ;;
11632 no:yes:* )
11633 { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5
11634echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;}
11635 { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5
11636echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;}
11637 { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5
11638echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5
11640echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
11641 { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5
11642echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;}
11643 { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5
11644echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;}
11645
11646 ;;
11647esac
11648{ echo "$as_me:$LINENO: checking for alsa/version.h" >&5
11649echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6; }
11650if test "${ac_cv_header_alsa_version_h+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11652else
11653 ac_cv_header_alsa_version_h=$ac_header_preproc
11654fi
11655{ echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5
11656echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6; }
11657
11658fi
11659if test $ac_cv_header_alsa_version_h = yes; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011660 ac_pa_use_alsa=1
11661
11662 LIBS="$LIBS -lasound"
11663
11664else
11665 ac_pa_use_alsa=0
11666
11667fi
11668
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011669
Benny Prijono36d32492011-12-28 08:42:23 +000011670 { echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5
11671echo "${ECHO_T}Checking sound device backend... unix" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +000011672
11673 ac_pa_use_oss=1
11674
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011675 # Check whether --enable-oss was given.
Benny Prijono36d32492011-12-28 08:42:23 +000011676if test "${enable_oss+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011677 enableval=$enable_oss;
Benny Prijono0b462322008-03-12 22:44:24 +000011678 if test "$enable_oss" = "no"; then
11679 ac_pa_use_oss=0
Benny Prijono36d32492011-12-28 08:42:23 +000011680 { echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&5
11681echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +000011682 fi
11683
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011684fi
11685
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011686 ;;
Benny Prijono1d971622006-09-10 22:27:40 +000011687 esac
11688fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011689
Sauw Ming6e6c2152010-12-14 13:03:10 +000011690
11691if test "$enable_video" = "no"; then
11692 true;
11693else
11694 case $target in
11695 arm-apple-darwin*)
11696 ac_pjmedia_video=iphone_os
11697
Sauw Ming24c39a32011-08-16 05:44:46 +000011698
11699 SAVED_LIBS="$LIBS"
11700 LIBS="-framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
Benny Prijono36d32492011-12-28 08:42:23 +000011701 cat >conftest.$ac_ext <<_ACEOF
11702/* confdefs.h. */
11703_ACEOF
11704cat confdefs.h >>conftest.$ac_ext
11705cat >>conftest.$ac_ext <<_ACEOF
Sauw Ming24c39a32011-08-16 05:44:46 +000011706/* end confdefs.h. */
11707
11708int
11709main ()
11710{
11711
11712 ;
11713 return 0;
11714}
11715_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000011716rm -f conftest.$ac_objext conftest$ac_exeext
11717if { (ac_try="$ac_link"
11718case "(($ac_try" in
11719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720 *) ac_try_echo=$ac_try;;
11721esac
11722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723 (eval "$ac_link") 2>conftest.er1
11724 ac_status=$?
11725 grep -v '^ *+' conftest.er1 >conftest.err
11726 rm -f conftest.er1
11727 cat conftest.err >&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } && {
11730 test -z "$ac_c_werror_flag" ||
11731 test ! -s conftest.err
11732 } && test -s conftest$ac_exeext &&
11733 $as_test_x conftest$ac_exeext; then
Sauw Ming24c39a32011-08-16 05:44:46 +000011734 ac_pjmedia_video_has_ios=yes
11735else
Benny Prijono36d32492011-12-28 08:42:23 +000011736 echo "$as_me: failed program was:" >&5
11737sed 's/^/| /' conftest.$ac_ext >&5
11738
11739 ac_pjmedia_video_has_ios=no
Sauw Ming24c39a32011-08-16 05:44:46 +000011740fi
Benny Prijono36d32492011-12-28 08:42:23 +000011741
11742rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11743 conftest$ac_exeext conftest.$ac_ext
Sauw Ming24c39a32011-08-16 05:44:46 +000011744 LIBS="$SAVED_LIBS"
11745 if test "$ac_pjmedia_video_has_ios" = "yes"; then
11746 ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1"
11747 LIBS="$LIBS -framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
Benny Prijono36d32492011-12-28 08:42:23 +000011748 { echo "$as_me:$LINENO: result: Checking if AVFoundation framework is available... yes" >&5
11749echo "${ECHO_T}Checking if AVFoundation framework is available... yes" >&6; }
Sauw Ming24c39a32011-08-16 05:44:46 +000011750 else
Benny Prijono36d32492011-12-28 08:42:23 +000011751 { echo "$as_me:$LINENO: result: Checking if AVFoundation framework is available... no" >&5
11752echo "${ECHO_T}Checking if AVFoundation framework is available... no" >&6; }
Sauw Ming24c39a32011-08-16 05:44:46 +000011753 fi
Sauw Ming6e6c2152010-12-14 13:03:10 +000011754 ;;
11755 *darwin*)
11756 ac_pjmedia_video=mac_os
11757
11758
11759 SAVED_LIBS="$LIBS"
11760 LIBS="-framework QTKit"
Benny Prijono36d32492011-12-28 08:42:23 +000011761 cat >conftest.$ac_ext <<_ACEOF
11762/* confdefs.h. */
11763_ACEOF
11764cat confdefs.h >>conftest.$ac_ext
11765cat >>conftest.$ac_ext <<_ACEOF
Sauw Ming6e6c2152010-12-14 13:03:10 +000011766/* end confdefs.h. */
11767
11768int
11769main ()
11770{
11771
11772 ;
11773 return 0;
11774}
11775_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000011776rm -f conftest.$ac_objext conftest$ac_exeext
11777if { (ac_try="$ac_link"
11778case "(($ac_try" in
11779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780 *) ac_try_echo=$ac_try;;
11781esac
11782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11783 (eval "$ac_link") 2>conftest.er1
11784 ac_status=$?
11785 grep -v '^ *+' conftest.er1 >conftest.err
11786 rm -f conftest.er1
11787 cat conftest.err >&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } && {
11790 test -z "$ac_c_werror_flag" ||
11791 test ! -s conftest.err
11792 } && test -s conftest$ac_exeext &&
11793 $as_test_x conftest$ac_exeext; then
Sauw Ming6e6c2152010-12-14 13:03:10 +000011794 ac_pjmedia_video_has_qt=yes
11795else
Benny Prijono36d32492011-12-28 08:42:23 +000011796 echo "$as_me: failed program was:" >&5
11797sed 's/^/| /' conftest.$ac_ext >&5
11798
11799 ac_pjmedia_video_has_qt=no
Sauw Ming6e6c2152010-12-14 13:03:10 +000011800fi
Benny Prijono36d32492011-12-28 08:42:23 +000011801
11802rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11803 conftest$ac_exeext conftest.$ac_ext
Sauw Ming6e6c2152010-12-14 13:03:10 +000011804 LIBS="$SAVED_LIBS"
11805 if test "$ac_pjmedia_video_has_qt" = "yes"; then
11806 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1"
Sauw Ming21bd3fd2011-04-06 11:30:18 +000011807 LIBS="$LIBS -framework QTKit -framework Foundation -framework AppKit -framework QuartzCore -framework OpenGL"
Benny Prijono36d32492011-12-28 08:42:23 +000011808 { echo "$as_me:$LINENO: result: Checking if QTKit framework is available... yes" >&5
11809echo "${ECHO_T}Checking if QTKit framework is available... yes" >&6; }
Sauw Ming6e6c2152010-12-14 13:03:10 +000011810 else
Benny Prijono36d32492011-12-28 08:42:23 +000011811 { echo "$as_me:$LINENO: result: Checking if QTKit framework is available... no" >&5
11812echo "${ECHO_T}Checking if QTKit framework is available... no" >&6; }
Sauw Ming6e6c2152010-12-14 13:03:10 +000011813 fi
11814 ;;
11815 esac
11816fi
11817
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011818# Check whether --enable-ext_sound was given.
Benny Prijono36d32492011-12-28 08:42:23 +000011819if test "${enable_ext_sound+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011820 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
Benny Prijonoebb2c332008-07-28 23:40:58 +000011821 ac_pjmedia_snd=external
Benny Prijono36d32492011-12-28 08:42:23 +000011822 { echo "$as_me:$LINENO: result: Checking if external sound is set... yes" >&5
11823echo "${ECHO_T}Checking if external sound is set... yes" >&6; }
Benny Prijonoebb2c332008-07-28 23:40:58 +000011824 fi
11825
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011826fi
Benny Prijonoebb2c332008-07-28 23:40:58 +000011827
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011828
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011829
11830# Check whether --enable-small-filter was given.
Benny Prijono36d32492011-12-28 08:42:23 +000011831if test "${enable_small_filter+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011832 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011833 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono36d32492011-12-28 08:42:23 +000011834 { echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5
11835echo "${ECHO_T}Checking if small filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011836 fi
11837else
Benny Prijono36d32492011-12-28 08:42:23 +000011838 { echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5
11839echo "${ECHO_T}Checking if small filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011840fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011841
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011842
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011843
11844# Check whether --enable-large-filter was given.
Benny Prijono36d32492011-12-28 08:42:23 +000011845if test "${enable_large_filter+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011846 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011847 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono36d32492011-12-28 08:42:23 +000011848 { echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5
11849echo "${ECHO_T}Checking if large filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011850 fi
11851else
Benny Prijono36d32492011-12-28 08:42:23 +000011852 { echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5
11853echo "${ECHO_T}Checking if large filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011854fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011855
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011856
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011857
11858# Check whether --enable-speex-aec was given.
Benny Prijono36d32492011-12-28 08:42:23 +000011859if test "${enable_speex_aec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011860 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011861 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono36d32492011-12-28 08:42:23 +000011862 { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5
11863echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011864 fi
11865else
Benny Prijono36d32492011-12-28 08:42:23 +000011866 { echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5
11867echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011868fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011869
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011870
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011871
11872# Check whether --enable-g711-codec was given.
Benny Prijono36d32492011-12-28 08:42:23 +000011873if test "${enable_g711_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011874 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011875 ac_no_g711_codec=1
Benny Prijono36d32492011-12-28 08:42:23 +000011876 cat >>confdefs.h <<\_ACEOF
11877#define PJMEDIA_HAS_G711_CODEC 0
11878_ACEOF
Benny Prijono06d1d0e2007-01-27 18:09:28 +000011879
Benny Prijono36d32492011-12-28 08:42:23 +000011880 { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5
11881echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011882 fi
11883else
Benny Prijono36d32492011-12-28 08:42:23 +000011884 { echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5
11885echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011886fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011887
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011888
11889
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011890
11891# Check whether --enable-l16-codec was given.
Benny Prijono36d32492011-12-28 08:42:23 +000011892if test "${enable_l16_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011893 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011894 ac_no_l16_codec=1
Benny Prijono36d32492011-12-28 08:42:23 +000011895 cat >>confdefs.h <<\_ACEOF
11896#define PJMEDIA_HAS_L16_CODEC 0
11897_ACEOF
Benny Prijono06d1d0e2007-01-27 18:09:28 +000011898
Benny Prijono36d32492011-12-28 08:42:23 +000011899 { echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5
11900echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011901 fi
11902else
Benny Prijono36d32492011-12-28 08:42:23 +000011903 { echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5
11904echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011905fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011906
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011907
11908
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011909
11910# Check whether --enable-gsm-codec was given.
Benny Prijono36d32492011-12-28 08:42:23 +000011911if test "${enable_gsm_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011912 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011913 ac_no_gsm_codec=1
Benny Prijono36d32492011-12-28 08:42:23 +000011914 cat >>confdefs.h <<\_ACEOF
11915#define PJMEDIA_HAS_GSM_CODEC 0
11916_ACEOF
Benny Prijono06d1d0e2007-01-27 18:09:28 +000011917
Benny Prijono36d32492011-12-28 08:42:23 +000011918 { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5
11919echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011920 fi
11921else
Benny Prijono36d32492011-12-28 08:42:23 +000011922 { echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5
11923echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011924fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011925
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011926
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011927
11928# Check whether --enable-g722-codec was given.
Benny Prijono36d32492011-12-28 08:42:23 +000011929if test "${enable_g722_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011930 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
Benny Prijono71f657d2008-03-17 14:24:21 +000011931 ac_no_g722_codec=1
Benny Prijono36d32492011-12-28 08:42:23 +000011932 cat >>confdefs.h <<\_ACEOF
11933#define PJMEDIA_HAS_G722_CODEC 0
11934_ACEOF
Benny Prijono71f657d2008-03-17 14:24:21 +000011935
Benny Prijono36d32492011-12-28 08:42:23 +000011936 { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...yes" >&5
11937echo "${ECHO_T}Checking if G.722 codec is disabled...yes" >&6; }
Benny Prijono71f657d2008-03-17 14:24:21 +000011938 fi
11939else
Benny Prijono36d32492011-12-28 08:42:23 +000011940 { echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...no" >&5
11941echo "${ECHO_T}Checking if G.722 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011942fi
Benny Prijono71f657d2008-03-17 14:24:21 +000011943
11944
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011945
11946# Check whether --enable-g7221-codec was given.
Benny Prijono36d32492011-12-28 08:42:23 +000011947if test "${enable_g7221_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011948 enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
11949 ac_no_g7221_codec=1
Benny Prijono36d32492011-12-28 08:42:23 +000011950 cat >>confdefs.h <<\_ACEOF
11951#define PJMEDIA_HAS_G7221_CODEC 0
11952_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011953
Benny Prijono36d32492011-12-28 08:42:23 +000011954 { echo "$as_me:$LINENO: result: Checking if G.722.1 codec is disabled...yes" >&5
11955echo "${ECHO_T}Checking if G.722.1 codec is disabled...yes" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011956 fi
11957else
Benny Prijono36d32492011-12-28 08:42:23 +000011958 { echo "$as_me:$LINENO: result: Checking if G.722.1 codec is disabled...no" >&5
11959echo "${ECHO_T}Checking if G.722.1 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011960fi
11961
11962
11963
11964# Check whether --enable-speex-codec was given.
Benny Prijono36d32492011-12-28 08:42:23 +000011965if test "${enable_speex_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011966 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011967 ac_no_speex_codec=1
Benny Prijono36d32492011-12-28 08:42:23 +000011968 cat >>confdefs.h <<\_ACEOF
11969#define PJMEDIA_HAS_SPEEX_CODEC 0
11970_ACEOF
Benny Prijono06d1d0e2007-01-27 18:09:28 +000011971
Benny Prijono36d32492011-12-28 08:42:23 +000011972 { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5
11973echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011974 fi
11975else
Benny Prijono36d32492011-12-28 08:42:23 +000011976 { echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5
11977echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011978fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011979
Benny Prijono7e0d75f2006-12-25 20:34:14 +000011980
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011981
11982# Check whether --enable-ilbc-codec was given.
Benny Prijono36d32492011-12-28 08:42:23 +000011983if test "${enable_ilbc_codec+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011984 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011985 ac_no_ilbc_codec=1
Benny Prijono36d32492011-12-28 08:42:23 +000011986 cat >>confdefs.h <<\_ACEOF
11987#define PJMEDIA_HAS_ILBC_CODEC 0
11988_ACEOF
Benny Prijono06d1d0e2007-01-27 18:09:28 +000011989
Benny Prijono36d32492011-12-28 08:42:23 +000011990 { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5
11991echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011992 fi
11993else
Benny Prijono36d32492011-12-28 08:42:23 +000011994 { echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5
11995echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011996fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +000011997
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000011998
11999# Check whether --enable-libsamplerate was given.
Benny Prijono36d32492011-12-28 08:42:23 +000012000if test "${enable_libsamplerate+set}" = set; then
12001 enableval=$enable_libsamplerate;
12002{ echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5
12003echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6; }
12004if test "${ac_cv_lib_samplerate_src_new+set}" = set; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono550a1a62007-10-16 08:54:00 +000012006else
12007 ac_check_lib_save_LIBS=$LIBS
12008LIBS="-lsamplerate $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +000012009cat >conftest.$ac_ext <<_ACEOF
12010/* confdefs.h. */
12011_ACEOF
12012cat confdefs.h >>conftest.$ac_ext
12013cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono550a1a62007-10-16 08:54:00 +000012014/* end confdefs.h. */
12015
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012016/* Override any GCC internal prototype to avoid an error.
12017 Use char because int might match the return type of a GCC
12018 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +000012019#ifdef __cplusplus
12020extern "C"
12021#endif
Benny Prijono550a1a62007-10-16 08:54:00 +000012022char src_new ();
12023int
12024main ()
12025{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012026return src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +000012027 ;
12028 return 0;
12029}
12030_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000012031rm -f conftest.$ac_objext conftest$ac_exeext
12032if { (ac_try="$ac_link"
12033case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12036esac
12037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 (eval "$ac_link") 2>conftest.er1
12039 ac_status=$?
12040 grep -v '^ *+' conftest.er1 >conftest.err
12041 rm -f conftest.er1
12042 cat conftest.err >&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); } && {
12045 test -z "$ac_c_werror_flag" ||
12046 test ! -s conftest.err
12047 } && test -s conftest$ac_exeext &&
12048 $as_test_x conftest$ac_exeext; then
Benny Prijono550a1a62007-10-16 08:54:00 +000012049 ac_cv_lib_samplerate_src_new=yes
12050else
Benny Prijono36d32492011-12-28 08:42:23 +000012051 echo "$as_me: failed program was:" >&5
12052sed 's/^/| /' conftest.$ac_ext >&5
12053
12054 ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +000012055fi
Benny Prijono36d32492011-12-28 08:42:23 +000012056
12057rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12058 conftest$ac_exeext conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +000012059LIBS=$ac_check_lib_save_LIBS
12060fi
Benny Prijono36d32492011-12-28 08:42:23 +000012061{ echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5
12062echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6; }
12063if test $ac_cv_lib_samplerate_src_new = yes; then
Benny Prijono550a1a62007-10-16 08:54:00 +000012064 cat >>confdefs.h <<_ACEOF
12065#define HAVE_LIBSAMPLERATE 1
12066_ACEOF
12067
12068 LIBS="-lsamplerate $LIBS"
12069
12070fi
12071
12072else
Benny Prijono36d32492011-12-28 08:42:23 +000012073 { echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5
12074echo "${ECHO_T}Skipping libsamplerate detection" >&6; }
Benny Prijono5b0af632011-07-20 03:16:25 +000012075
12076fi
12077
12078
12079
12080# Check whether --with-sdl was given.
Benny Prijono36d32492011-12-28 08:42:23 +000012081if test "${with_sdl+set}" = set; then
Benny Prijono5b0af632011-07-20 03:16:25 +000012082 withval=$with_sdl;
12083else
12084 with_sdl=no
Benny Prijono550a1a62007-10-16 08:54:00 +000012085
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012086fi
Benny Prijono0822c192008-08-21 20:59:58 +000012087
12088
Benny Prijonoc45d9512010-12-10 11:04:30 +000012089# Check whether --enable-sdl was given.
Benny Prijono36d32492011-12-28 08:42:23 +000012090if test "${enable_sdl+set}" = set; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012091 enableval=$enable_sdl;
12092 if test "$enable_sdl" = "no"; then
Benny Prijono36d32492011-12-28 08:42:23 +000012093 { echo "$as_me:$LINENO: result: Checking if SDL is disabled... yes" >&5
12094echo "${ECHO_T}Checking if SDL is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +000012095 fi
12096
12097else
12098
Benny Prijono5b0af632011-07-20 03:16:25 +000012099 SDL_CONFIG="sdl-config"
12100 if test "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then
12101 SDL_CONFIG=$with_sdl/bin/sdl-config
Benny Prijono36d32492011-12-28 08:42:23 +000012102 { echo "$as_me:$LINENO: result: Using SDL prefix... $with_sdl" >&5
12103echo "${ECHO_T}Using SDL prefix... $with_sdl" >&6; }
Benny Prijono5b0af632011-07-20 03:16:25 +000012104 fi
12105
Benny Prijono36d32492011-12-28 08:42:23 +000012106 { echo "$as_me:$LINENO: checking SDL availability.." >&5
12107echo $ECHO_N "checking SDL availability..... $ECHO_C" >&6; }
Sauw Ming1d8ceb12011-08-24 05:54:25 +000012108 if (sh -c "$SDL_CONFIG --version" | grep 1.3) then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012109
12110
Benny Prijono5b0af632011-07-20 03:16:25 +000012111 ac_sdl_cflags=`$SDL_CONFIG --cflags`
Benny Prijonoc45d9512010-12-10 11:04:30 +000012112 ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags"
Benny Prijono5b0af632011-07-20 03:16:25 +000012113 ac_sdl_ldflags=`$SDL_CONFIG --libs`
Benny Prijono69b1f822010-12-10 11:33:01 +000012114 LIBS="$LIBS $ac_sdl_ldflags"
Sauw Ming1d8ceb12011-08-24 05:54:25 +000012115 else
Benny Prijono36d32492011-12-28 08:42:23 +000012116 { echo "$as_me:$LINENO: result: Unsupported SDL version" >&5
12117echo "${ECHO_T}Unsupported SDL version" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +000012118 fi
Benny Prijono550a1a62007-10-16 08:54:00 +000012119
Benny Prijono0822c192008-08-21 20:59:58 +000012120fi
12121
12122
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012123
Benny Prijonoc45d9512010-12-10 11:04:30 +000012124# Check whether --enable-ffmpeg was given.
Benny Prijono36d32492011-12-28 08:42:23 +000012125if test "${enable_ffmpeg+set}" = set; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012126 enableval=$enable_ffmpeg;
12127 ac_has_ffmpeg=0
12128
12129 if test "$enable_ffmpeg" = "no"; then
Benny Prijono36d32492011-12-28 08:42:23 +000012130 { echo "$as_me:$LINENO: result: Checking if ffmpeg is disabled... yes" >&5
12131echo "${ECHO_T}Checking if ffmpeg is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +000012132 fi
12133
12134else
12135
12136
12137
12138
Benny Prijono36d32492011-12-28 08:42:23 +000012139
12140{ echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12141echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
12142if test "${ac_cv_lib_z_deflate+set}" = set; then
12143 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono6a0a49a2011-10-18 11:17:23 +000012144else
12145 ac_check_lib_save_LIBS=$LIBS
12146LIBS="-lz $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +000012147cat >conftest.$ac_ext <<_ACEOF
12148/* confdefs.h. */
12149_ACEOF
12150cat confdefs.h >>conftest.$ac_ext
12151cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono6a0a49a2011-10-18 11:17:23 +000012152/* end confdefs.h. */
12153
12154/* Override any GCC internal prototype to avoid an error.
12155 Use char because int might match the return type of a GCC
12156 builtin and then its argument prototype would still apply. */
12157#ifdef __cplusplus
12158extern "C"
12159#endif
12160char deflate ();
12161int
12162main ()
12163{
12164return deflate ();
12165 ;
12166 return 0;
12167}
12168_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000012169rm -f conftest.$ac_objext conftest$ac_exeext
12170if { (ac_try="$ac_link"
12171case "(($ac_try" in
12172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173 *) ac_try_echo=$ac_try;;
12174esac
12175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176 (eval "$ac_link") 2>conftest.er1
12177 ac_status=$?
12178 grep -v '^ *+' conftest.er1 >conftest.err
12179 rm -f conftest.er1
12180 cat conftest.err >&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } && {
12183 test -z "$ac_c_werror_flag" ||
12184 test ! -s conftest.err
12185 } && test -s conftest$ac_exeext &&
12186 $as_test_x conftest$ac_exeext; then
Benny Prijono6a0a49a2011-10-18 11:17:23 +000012187 ac_cv_lib_z_deflate=yes
12188else
Benny Prijono36d32492011-12-28 08:42:23 +000012189 echo "$as_me: failed program was:" >&5
12190sed 's/^/| /' conftest.$ac_ext >&5
12191
12192 ac_cv_lib_z_deflate=no
Benny Prijono6a0a49a2011-10-18 11:17:23 +000012193fi
Benny Prijono36d32492011-12-28 08:42:23 +000012194
12195rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12196 conftest$ac_exeext conftest.$ac_ext
Benny Prijono6a0a49a2011-10-18 11:17:23 +000012197LIBS=$ac_check_lib_save_LIBS
12198fi
Benny Prijono36d32492011-12-28 08:42:23 +000012199{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12200echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
12201if test $ac_cv_lib_z_deflate = yes; then
Benny Prijono6a0a49a2011-10-18 11:17:23 +000012202 cat >>confdefs.h <<_ACEOF
12203#define HAVE_LIBZ 1
12204_ACEOF
12205
12206 LIBS="-lz $LIBS"
12207
12208fi
12209
Benny Prijono36d32492011-12-28 08:42:23 +000012210
12211{ echo "$as_me:$LINENO: checking for x264_free in -lx264" >&5
12212echo $ECHO_N "checking for x264_free in -lx264... $ECHO_C" >&6; }
12213if test "${ac_cv_lib_x264_x264_free+set}" = set; then
12214 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoe1105232011-10-26 06:49:34 +000012215else
12216 ac_check_lib_save_LIBS=$LIBS
12217LIBS="-lx264 $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +000012218cat >conftest.$ac_ext <<_ACEOF
12219/* confdefs.h. */
12220_ACEOF
12221cat confdefs.h >>conftest.$ac_ext
12222cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoe1105232011-10-26 06:49:34 +000012223/* end confdefs.h. */
12224
12225/* Override any GCC internal prototype to avoid an error.
12226 Use char because int might match the return type of a GCC
12227 builtin and then its argument prototype would still apply. */
12228#ifdef __cplusplus
12229extern "C"
12230#endif
12231char x264_free ();
12232int
12233main ()
12234{
12235return x264_free ();
12236 ;
12237 return 0;
12238}
12239_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000012240rm -f conftest.$ac_objext conftest$ac_exeext
12241if { (ac_try="$ac_link"
12242case "(($ac_try" in
12243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12244 *) ac_try_echo=$ac_try;;
12245esac
12246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12247 (eval "$ac_link") 2>conftest.er1
12248 ac_status=$?
12249 grep -v '^ *+' conftest.er1 >conftest.err
12250 rm -f conftest.er1
12251 cat conftest.err >&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } && {
12254 test -z "$ac_c_werror_flag" ||
12255 test ! -s conftest.err
12256 } && test -s conftest$ac_exeext &&
12257 $as_test_x conftest$ac_exeext; then
Benny Prijonoe1105232011-10-26 06:49:34 +000012258 ac_cv_lib_x264_x264_free=yes
12259else
Benny Prijono36d32492011-12-28 08:42:23 +000012260 echo "$as_me: failed program was:" >&5
12261sed 's/^/| /' conftest.$ac_ext >&5
12262
12263 ac_cv_lib_x264_x264_free=no
Benny Prijonoe1105232011-10-26 06:49:34 +000012264fi
Benny Prijono36d32492011-12-28 08:42:23 +000012265
12266rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12267 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoe1105232011-10-26 06:49:34 +000012268LIBS=$ac_check_lib_save_LIBS
12269fi
Benny Prijono36d32492011-12-28 08:42:23 +000012270{ echo "$as_me:$LINENO: result: $ac_cv_lib_x264_x264_free" >&5
12271echo "${ECHO_T}$ac_cv_lib_x264_x264_free" >&6; }
12272if test $ac_cv_lib_x264_x264_free = yes; then
Benny Prijonoe1105232011-10-26 06:49:34 +000012273 cat >>confdefs.h <<_ACEOF
12274#define HAVE_LIBX264 1
12275_ACEOF
12276
12277 LIBS="-lx264 $LIBS"
12278
12279fi
12280
Benny Prijono6a0a49a2011-10-18 11:17:23 +000012281
Benny Prijono36d32492011-12-28 08:42:23 +000012282
12283{ echo "$as_me:$LINENO: checking for BZ2_bzDecompressInit in -lbz2" >&5
12284echo $ECHO_N "checking for BZ2_bzDecompressInit in -lbz2... $ECHO_C" >&6; }
12285if test "${ac_cv_lib_bz2_BZ2_bzDecompressInit+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12287else
12288 ac_check_lib_save_LIBS=$LIBS
12289LIBS="-lbz2 $LIBS"
12290cat >conftest.$ac_ext <<_ACEOF
12291/* confdefs.h. */
12292_ACEOF
12293cat confdefs.h >>conftest.$ac_ext
12294cat >>conftest.$ac_ext <<_ACEOF
12295/* end confdefs.h. */
12296
12297/* Override any GCC internal prototype to avoid an error.
12298 Use char because int might match the return type of a GCC
12299 builtin and then its argument prototype would still apply. */
12300#ifdef __cplusplus
12301extern "C"
12302#endif
12303char BZ2_bzDecompressInit ();
12304int
12305main ()
12306{
12307return BZ2_bzDecompressInit ();
12308 ;
12309 return 0;
12310}
12311_ACEOF
12312rm -f conftest.$ac_objext conftest$ac_exeext
12313if { (ac_try="$ac_link"
12314case "(($ac_try" in
12315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12316 *) ac_try_echo=$ac_try;;
12317esac
12318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12319 (eval "$ac_link") 2>conftest.er1
12320 ac_status=$?
12321 grep -v '^ *+' conftest.er1 >conftest.err
12322 rm -f conftest.er1
12323 cat conftest.err >&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } && {
12326 test -z "$ac_c_werror_flag" ||
12327 test ! -s conftest.err
12328 } && test -s conftest$ac_exeext &&
12329 $as_test_x conftest$ac_exeext; then
12330 ac_cv_lib_bz2_BZ2_bzDecompressInit=yes
12331else
12332 echo "$as_me: failed program was:" >&5
12333sed 's/^/| /' conftest.$ac_ext >&5
12334
12335 ac_cv_lib_bz2_BZ2_bzDecompressInit=no
12336fi
12337
12338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12339 conftest$ac_exeext conftest.$ac_ext
12340LIBS=$ac_check_lib_save_LIBS
12341fi
12342{ echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5
12343echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; }
12344if test $ac_cv_lib_bz2_BZ2_bzDecompressInit = yes; then
12345 cat >>confdefs.h <<_ACEOF
12346#define HAVE_LIBBZ2 1
12347_ACEOF
12348
12349 LIBS="-lbz2 $LIBS"
12350
12351fi
12352
12353
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +000012354 FFMPEG_PREFIX=""
12355 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then
12356 FFMPEG_PREFIX=$with_ffmpeg
Benny Prijono36d32492011-12-28 08:42:23 +000012357 { echo "$as_me:$LINENO: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5
12358echo "${ECHO_T}Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; }
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +000012359 LIBS="-L$FFMPEG_PREFIX/lib $LIBS"
Sauw Ming01095d82011-07-14 08:46:19 +000012360 LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS"
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +000012361 CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS"
12362 fi
12363
Benny Prijono36d32492011-12-28 08:42:23 +000012364 { echo "$as_me:$LINENO: checking for avdevice_version in -lavdevice" >&5
12365echo $ECHO_N "checking for avdevice_version in -lavdevice... $ECHO_C" >&6; }
12366if test "${ac_cv_lib_avdevice_avdevice_version+set}" = set; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +000012368else
12369 ac_check_lib_save_LIBS=$LIBS
12370LIBS="-lavdevice $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +000012371cat >conftest.$ac_ext <<_ACEOF
12372/* confdefs.h. */
12373_ACEOF
12374cat confdefs.h >>conftest.$ac_ext
12375cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc45d9512010-12-10 11:04:30 +000012376/* end confdefs.h. */
12377
12378/* Override any GCC internal prototype to avoid an error.
12379 Use char because int might match the return type of a GCC
12380 builtin and then its argument prototype would still apply. */
12381#ifdef __cplusplus
12382extern "C"
12383#endif
12384char avdevice_version ();
12385int
12386main ()
12387{
12388return avdevice_version ();
12389 ;
12390 return 0;
12391}
12392_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000012393rm -f conftest.$ac_objext conftest$ac_exeext
12394if { (ac_try="$ac_link"
12395case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12398esac
12399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400 (eval "$ac_link") 2>conftest.er1
12401 ac_status=$?
12402 grep -v '^ *+' conftest.er1 >conftest.err
12403 rm -f conftest.er1
12404 cat conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } && {
12407 test -z "$ac_c_werror_flag" ||
12408 test ! -s conftest.err
12409 } && test -s conftest$ac_exeext &&
12410 $as_test_x conftest$ac_exeext; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012411 ac_cv_lib_avdevice_avdevice_version=yes
12412else
Benny Prijono36d32492011-12-28 08:42:23 +000012413 echo "$as_me: failed program was:" >&5
12414sed 's/^/| /' conftest.$ac_ext >&5
12415
12416 ac_cv_lib_avdevice_avdevice_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +000012417fi
Benny Prijono36d32492011-12-28 08:42:23 +000012418
12419rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12420 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +000012421LIBS=$ac_check_lib_save_LIBS
12422fi
Benny Prijono36d32492011-12-28 08:42:23 +000012423{ echo "$as_me:$LINENO: result: $ac_cv_lib_avdevice_avdevice_version" >&5
12424echo "${ECHO_T}$ac_cv_lib_avdevice_avdevice_version" >&6; }
12425if test $ac_cv_lib_avdevice_avdevice_version = yes; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012426 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
12427 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice"
12428
12429
12430fi
12431
Benny Prijono36d32492011-12-28 08:42:23 +000012432 { echo "$as_me:$LINENO: checking for av_register_all in -lavformat" >&5
12433echo $ECHO_N "checking for av_register_all in -lavformat... $ECHO_C" >&6; }
12434if test "${ac_cv_lib_avformat_av_register_all+set}" = set; then
12435 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +000012436else
12437 ac_check_lib_save_LIBS=$LIBS
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012438LIBS="-lavformat -lavcodec -lavutil
12439 $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +000012440cat >conftest.$ac_ext <<_ACEOF
12441/* confdefs.h. */
12442_ACEOF
12443cat confdefs.h >>conftest.$ac_ext
12444cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc45d9512010-12-10 11:04:30 +000012445/* end confdefs.h. */
12446
12447/* Override any GCC internal prototype to avoid an error.
12448 Use char because int might match the return type of a GCC
12449 builtin and then its argument prototype would still apply. */
12450#ifdef __cplusplus
12451extern "C"
12452#endif
12453char av_register_all ();
12454int
12455main ()
12456{
12457return av_register_all ();
12458 ;
12459 return 0;
12460}
12461_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000012462rm -f conftest.$ac_objext conftest$ac_exeext
12463if { (ac_try="$ac_link"
12464case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12467esac
12468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_link") 2>conftest.er1
12470 ac_status=$?
12471 grep -v '^ *+' conftest.er1 >conftest.err
12472 rm -f conftest.er1
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } && {
12476 test -z "$ac_c_werror_flag" ||
12477 test ! -s conftest.err
12478 } && test -s conftest$ac_exeext &&
12479 $as_test_x conftest$ac_exeext; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012480 ac_cv_lib_avformat_av_register_all=yes
12481else
Benny Prijono36d32492011-12-28 08:42:23 +000012482 echo "$as_me: failed program was:" >&5
12483sed 's/^/| /' conftest.$ac_ext >&5
12484
12485 ac_cv_lib_avformat_av_register_all=no
Benny Prijonoc45d9512010-12-10 11:04:30 +000012486fi
Benny Prijono36d32492011-12-28 08:42:23 +000012487
12488rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12489 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +000012490LIBS=$ac_check_lib_save_LIBS
12491fi
Benny Prijono36d32492011-12-28 08:42:23 +000012492{ echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_av_register_all" >&5
12493echo "${ECHO_T}$ac_cv_lib_avformat_av_register_all" >&6; }
12494if test $ac_cv_lib_avformat_av_register_all = yes; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012495 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
12496 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat"
12497
Benny Prijonoc45d9512010-12-10 11:04:30 +000012498fi
12499
Benny Prijono36d32492011-12-28 08:42:23 +000012500 { echo "$as_me:$LINENO: checking for avcodec_init in -lavcodec" >&5
12501echo $ECHO_N "checking for avcodec_init in -lavcodec... $ECHO_C" >&6; }
12502if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +000012504else
12505 ac_check_lib_save_LIBS=$LIBS
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012506LIBS="-lavcodec -lavutil
12507 $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +000012508cat >conftest.$ac_ext <<_ACEOF
12509/* confdefs.h. */
12510_ACEOF
12511cat confdefs.h >>conftest.$ac_ext
12512cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc45d9512010-12-10 11:04:30 +000012513/* end confdefs.h. */
12514
12515/* Override any GCC internal prototype to avoid an error.
12516 Use char because int might match the return type of a GCC
12517 builtin and then its argument prototype would still apply. */
12518#ifdef __cplusplus
12519extern "C"
12520#endif
12521char avcodec_init ();
12522int
12523main ()
12524{
12525return avcodec_init ();
12526 ;
12527 return 0;
12528}
12529_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000012530rm -f conftest.$ac_objext conftest$ac_exeext
12531if { (ac_try="$ac_link"
12532case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12535esac
12536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_link") 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } && {
12544 test -z "$ac_c_werror_flag" ||
12545 test ! -s conftest.err
12546 } && test -s conftest$ac_exeext &&
12547 $as_test_x conftest$ac_exeext; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012548 ac_cv_lib_avcodec_avcodec_init=yes
12549else
Benny Prijono36d32492011-12-28 08:42:23 +000012550 echo "$as_me: failed program was:" >&5
12551sed 's/^/| /' conftest.$ac_ext >&5
12552
12553 ac_cv_lib_avcodec_avcodec_init=no
Benny Prijonoc45d9512010-12-10 11:04:30 +000012554fi
Benny Prijono36d32492011-12-28 08:42:23 +000012555
12556rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12557 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +000012558LIBS=$ac_check_lib_save_LIBS
12559fi
Benny Prijono36d32492011-12-28 08:42:23 +000012560{ echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_init" >&5
12561echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_init" >&6; }
12562if test $ac_cv_lib_avcodec_avcodec_init = yes; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012563 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
12564 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec"
12565
Benny Prijonoc45d9512010-12-10 11:04:30 +000012566fi
12567
Benny Prijono36d32492011-12-28 08:42:23 +000012568 { echo "$as_me:$LINENO: checking for sws_scale in -lswscale" >&5
12569echo $ECHO_N "checking for sws_scale in -lswscale... $ECHO_C" >&6; }
12570if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +000012572else
12573 ac_check_lib_save_LIBS=$LIBS
Sauw Mingd8aa67c2011-08-09 04:31:41 +000012574LIBS="-lswscale -lavutil
12575 $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +000012576cat >conftest.$ac_ext <<_ACEOF
12577/* confdefs.h. */
12578_ACEOF
12579cat confdefs.h >>conftest.$ac_ext
12580cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc45d9512010-12-10 11:04:30 +000012581/* end confdefs.h. */
12582
12583/* Override any GCC internal prototype to avoid an error.
12584 Use char because int might match the return type of a GCC
12585 builtin and then its argument prototype would still apply. */
12586#ifdef __cplusplus
12587extern "C"
12588#endif
12589char sws_scale ();
12590int
12591main ()
12592{
12593return sws_scale ();
12594 ;
12595 return 0;
12596}
12597_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000012598rm -f conftest.$ac_objext conftest$ac_exeext
12599if { (ac_try="$ac_link"
12600case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12603esac
12604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_link") 2>conftest.er1
12606 ac_status=$?
12607 grep -v '^ *+' conftest.er1 >conftest.err
12608 rm -f conftest.er1
12609 cat conftest.err >&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } && {
12612 test -z "$ac_c_werror_flag" ||
12613 test ! -s conftest.err
12614 } && test -s conftest$ac_exeext &&
12615 $as_test_x conftest$ac_exeext; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012616 ac_cv_lib_swscale_sws_scale=yes
12617else
Benny Prijono36d32492011-12-28 08:42:23 +000012618 echo "$as_me: failed program was:" >&5
12619sed 's/^/| /' conftest.$ac_ext >&5
12620
12621 ac_cv_lib_swscale_sws_scale=no
Benny Prijonoc45d9512010-12-10 11:04:30 +000012622fi
Benny Prijono36d32492011-12-28 08:42:23 +000012623
12624rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12625 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +000012626LIBS=$ac_check_lib_save_LIBS
12627fi
Benny Prijono36d32492011-12-28 08:42:23 +000012628{ echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_sws_scale" >&5
12629echo "${ECHO_T}$ac_cv_lib_swscale_sws_scale" >&6; }
12630if test $ac_cv_lib_swscale_sws_scale = yes; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012631 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
12632 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale"
12633
Benny Prijonoc45d9512010-12-10 11:04:30 +000012634fi
12635
Benny Prijono36d32492011-12-28 08:42:23 +000012636 { echo "$as_me:$LINENO: checking for av_malloc in -lavutil" >&5
12637echo $ECHO_N "checking for av_malloc in -lavutil... $ECHO_C" >&6; }
12638if test "${ac_cv_lib_avutil_av_malloc+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +000012640else
12641 ac_check_lib_save_LIBS=$LIBS
12642LIBS="-lavutil $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +000012643cat >conftest.$ac_ext <<_ACEOF
12644/* confdefs.h. */
12645_ACEOF
12646cat confdefs.h >>conftest.$ac_ext
12647cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc45d9512010-12-10 11:04:30 +000012648/* end confdefs.h. */
12649
12650/* Override any GCC internal prototype to avoid an error.
12651 Use char because int might match the return type of a GCC
12652 builtin and then its argument prototype would still apply. */
12653#ifdef __cplusplus
12654extern "C"
12655#endif
12656char av_malloc ();
12657int
12658main ()
12659{
12660return av_malloc ();
12661 ;
12662 return 0;
12663}
12664_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000012665rm -f conftest.$ac_objext conftest$ac_exeext
12666if { (ac_try="$ac_link"
12667case "(($ac_try" in
12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669 *) ac_try_echo=$ac_try;;
12670esac
12671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672 (eval "$ac_link") 2>conftest.er1
12673 ac_status=$?
12674 grep -v '^ *+' conftest.er1 >conftest.err
12675 rm -f conftest.er1
12676 cat conftest.err >&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } && {
12679 test -z "$ac_c_werror_flag" ||
12680 test ! -s conftest.err
12681 } && test -s conftest$ac_exeext &&
12682 $as_test_x conftest$ac_exeext; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012683 ac_cv_lib_avutil_av_malloc=yes
12684else
Benny Prijono36d32492011-12-28 08:42:23 +000012685 echo "$as_me: failed program was:" >&5
12686sed 's/^/| /' conftest.$ac_ext >&5
12687
12688 ac_cv_lib_avutil_av_malloc=no
Benny Prijonoc45d9512010-12-10 11:04:30 +000012689fi
Benny Prijono36d32492011-12-28 08:42:23 +000012690
12691rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12692 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +000012693LIBS=$ac_check_lib_save_LIBS
12694fi
Benny Prijono36d32492011-12-28 08:42:23 +000012695{ echo "$as_me:$LINENO: result: $ac_cv_lib_avutil_av_malloc" >&5
12696echo "${ECHO_T}$ac_cv_lib_avutil_av_malloc" >&6; }
12697if test $ac_cv_lib_avutil_av_malloc = yes; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012698 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
12699 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil"
12700
12701
12702fi
12703
Benny Prijono36d32492011-12-28 08:42:23 +000012704 { echo "$as_me:$LINENO: checking for avcore_version in -lavcore" >&5
12705echo $ECHO_N "checking for avcore_version in -lavcore... $ECHO_C" >&6; }
12706if test "${ac_cv_lib_avcore_avcore_version+set}" = set; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +000012708else
12709 ac_check_lib_save_LIBS=$LIBS
12710LIBS="-lavcore $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +000012711cat >conftest.$ac_ext <<_ACEOF
12712/* confdefs.h. */
12713_ACEOF
12714cat confdefs.h >>conftest.$ac_ext
12715cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc45d9512010-12-10 11:04:30 +000012716/* end confdefs.h. */
12717
12718/* Override any GCC internal prototype to avoid an error.
12719 Use char because int might match the return type of a GCC
12720 builtin and then its argument prototype would still apply. */
12721#ifdef __cplusplus
12722extern "C"
12723#endif
12724char avcore_version ();
12725int
12726main ()
12727{
12728return avcore_version ();
12729 ;
12730 return 0;
12731}
12732_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000012733rm -f conftest.$ac_objext conftest$ac_exeext
12734if { (ac_try="$ac_link"
12735case "(($ac_try" in
12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12738esac
12739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_link") 2>conftest.er1
12741 ac_status=$?
12742 grep -v '^ *+' conftest.er1 >conftest.err
12743 rm -f conftest.er1
12744 cat conftest.err >&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } && {
12747 test -z "$ac_c_werror_flag" ||
12748 test ! -s conftest.err
12749 } && test -s conftest$ac_exeext &&
12750 $as_test_x conftest$ac_exeext; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012751 ac_cv_lib_avcore_avcore_version=yes
12752else
Benny Prijono36d32492011-12-28 08:42:23 +000012753 echo "$as_me: failed program was:" >&5
12754sed 's/^/| /' conftest.$ac_ext >&5
12755
12756 ac_cv_lib_avcore_avcore_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +000012757fi
Benny Prijono36d32492011-12-28 08:42:23 +000012758
12759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12760 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +000012761LIBS=$ac_check_lib_save_LIBS
12762fi
Benny Prijono36d32492011-12-28 08:42:23 +000012763{ echo "$as_me:$LINENO: result: $ac_cv_lib_avcore_avcore_version" >&5
12764echo "${ECHO_T}$ac_cv_lib_avcore_avcore_version" >&6; }
12765if test $ac_cv_lib_avcore_avcore_version = yes; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012766 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
12767 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore"
12768
12769
12770fi
12771
Benny Prijono69b1f822010-12-10 11:33:01 +000012772 LIBS="$LIBS $ac_ffmpeg_ldflags"
Benny Prijonoc45d9512010-12-10 11:04:30 +000012773
12774
12775fi
12776
12777
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +000012778
12779# Check whether --with-ffmpeg was given.
Benny Prijono36d32492011-12-28 08:42:23 +000012780if test "${with_ffmpeg+set}" = set; then
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +000012781 withval=$with_ffmpeg;
12782else
12783 with_ffmpeg=no
12784
12785fi
12786
12787
12788
Benny Prijonoc45d9512010-12-10 11:04:30 +000012789# Check whether --enable-v4l2 was given.
Benny Prijono36d32492011-12-28 08:42:23 +000012790if test "${enable_v4l2+set}" = set; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012791 enableval=$enable_v4l2;
12792 if test "$enable_v4l2" = "no"; then
Benny Prijono36d32492011-12-28 08:42:23 +000012793 { echo "$as_me:$LINENO: result: Checking if V4L2 is disabled... yes" >&5
12794echo "${ECHO_T}Checking if V4L2 is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +000012795 fi
12796
12797else
12798
12799
12800
Benny Prijono36d32492011-12-28 08:42:23 +000012801 { echo "$as_me:$LINENO: checking for v4l2_open in -lv4l2" >&5
12802echo $ECHO_N "checking for v4l2_open in -lv4l2... $ECHO_C" >&6; }
12803if test "${ac_cv_lib_v4l2_v4l2_open+set}" = set; then
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +000012805else
12806 ac_check_lib_save_LIBS=$LIBS
12807LIBS="-lv4l2 $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +000012808cat >conftest.$ac_ext <<_ACEOF
12809/* confdefs.h. */
12810_ACEOF
12811cat confdefs.h >>conftest.$ac_ext
12812cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonoc45d9512010-12-10 11:04:30 +000012813/* end confdefs.h. */
12814
12815/* Override any GCC internal prototype to avoid an error.
12816 Use char because int might match the return type of a GCC
12817 builtin and then its argument prototype would still apply. */
12818#ifdef __cplusplus
12819extern "C"
12820#endif
12821char v4l2_open ();
12822int
12823main ()
12824{
12825return v4l2_open ();
12826 ;
12827 return 0;
12828}
12829_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000012830rm -f conftest.$ac_objext conftest$ac_exeext
12831if { (ac_try="$ac_link"
12832case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12835esac
12836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837 (eval "$ac_link") 2>conftest.er1
12838 ac_status=$?
12839 grep -v '^ *+' conftest.er1 >conftest.err
12840 rm -f conftest.er1
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } && {
12844 test -z "$ac_c_werror_flag" ||
12845 test ! -s conftest.err
12846 } && test -s conftest$ac_exeext &&
12847 $as_test_x conftest$ac_exeext; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012848 ac_cv_lib_v4l2_v4l2_open=yes
12849else
Benny Prijono36d32492011-12-28 08:42:23 +000012850 echo "$as_me: failed program was:" >&5
12851sed 's/^/| /' conftest.$ac_ext >&5
12852
12853 ac_cv_lib_v4l2_v4l2_open=no
Benny Prijonoc45d9512010-12-10 11:04:30 +000012854fi
Benny Prijono36d32492011-12-28 08:42:23 +000012855
12856rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12857 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +000012858LIBS=$ac_check_lib_save_LIBS
12859fi
Benny Prijono36d32492011-12-28 08:42:23 +000012860{ echo "$as_me:$LINENO: result: $ac_cv_lib_v4l2_v4l2_open" >&5
12861echo "${ECHO_T}$ac_cv_lib_v4l2_v4l2_open" >&6; }
12862if test $ac_cv_lib_v4l2_v4l2_open = yes; then
Benny Prijonoc45d9512010-12-10 11:04:30 +000012863 ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1"
12864 ac_v4l2_ldflags="-lv4l2"
Benny Prijono69b1f822010-12-10 11:33:01 +000012865 LIBS="$LIBS -lv4l2"
Benny Prijonoc45d9512010-12-10 11:04:30 +000012866
12867
12868fi
12869
12870
12871fi
12872
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012873
12874# Check whether --enable-ipp was given.
Benny Prijono36d32492011-12-28 08:42:23 +000012875if test "${enable_ipp+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012876 enableval=$enable_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +000012877else
12878 enable_ipp=no
12879
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012880fi
Benny Prijono0822c192008-08-21 20:59:58 +000012881
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012882
Benny Prijono3965f192010-02-10 18:46:05 +000012883
12884# Check whether --with-ipp was given.
Benny Prijono36d32492011-12-28 08:42:23 +000012885if test "${with_ipp+set}" = set; then
Benny Prijono3965f192010-02-10 18:46:05 +000012886 withval=$with_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +000012887else
12888 with_ipp=no
12889
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012890fi
Benny Prijono0822c192008-08-21 20:59:58 +000012891
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012892
Benny Prijono3965f192010-02-10 18:46:05 +000012893
12894# Check whether --with-ipp-samples was given.
Benny Prijono36d32492011-12-28 08:42:23 +000012895if test "${with_ipp_samples+set}" = set; then
Benny Prijono3965f192010-02-10 18:46:05 +000012896 withval=$with_ipp_samples;
Benny Prijono0822c192008-08-21 20:59:58 +000012897else
12898 with_ipp_samples=no
12899
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000012900fi
12901
Benny Prijono0822c192008-08-21 20:59:58 +000012902
Benny Prijono3965f192010-02-10 18:46:05 +000012903
12904# Check whether --with-ipp-arch was given.
Benny Prijono36d32492011-12-28 08:42:23 +000012905if test "${with_ipp_arch+set}" = set; then
Benny Prijono3965f192010-02-10 18:46:05 +000012906 withval=$with_ipp_arch;
12907else
12908 with_ipp_arch=no
12909
12910fi
12911
12912
Benny Prijono0822c192008-08-21 20:59:58 +000012913if test "x$enable_ipp" != "xno"; then
Benny Prijono36d32492011-12-28 08:42:23 +000012914 { echo "$as_me:$LINENO: checking Intel IPP location" >&5
12915echo $ECHO_N "checking Intel IPP location... $ECHO_C" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012916
12917 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
Benny Prijono36d32492011-12-28 08:42:23 +000012918 { echo "$as_me:$LINENO: result: $with_ipp" >&5
12919echo "${ECHO_T}$with_ipp" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012920 IPPROOT=$with_ipp
12921 elif test "x$IPPROOT" = "x"; then
12922 if test -d /opt/intel/ipp; then
12923 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
Benny Prijono36d32492011-12-28 08:42:23 +000012924 { echo "$as_me:$LINENO: result: autodetected in $IPPROOT" >&5
12925echo "${ECHO_T}autodetected in $IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012926 fi
12927 else
Benny Prijono36d32492011-12-28 08:42:23 +000012928 { echo "$as_me:$LINENO: result: $IPPROOT" >&5
12929echo "${ECHO_T}$IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000012930 fi
12931
Benny Prijono3965f192010-02-10 18:46:05 +000012932 if test "x$with_ipp_arch" != "xno"; then
Benny Prijono896be292010-08-17 12:16:46 +000012933 IPP_SUFFIX=$with_ipp_arch
Benny Prijono36d32492011-12-28 08:42:23 +000012934 { echo "$as_me:$LINENO: result: IPP arch suffix is set to $IPP_SUFFIX" >&5
12935echo "${ECHO_T}IPP arch suffix is set to $IPP_SUFFIX" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +000012936 else
12937 IPP_SUFFIX=""
Benny Prijono36d32492011-12-28 08:42:23 +000012938 { echo "$as_me:$LINENO: result: IPP arch suffix is set to empty" >&5
12939echo "${ECHO_T}IPP arch suffix is set to empty" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +000012940 fi
12941
Benny Prijono0822c192008-08-21 20:59:58 +000012942 if test x$IPPROOT = x; then
Benny Prijono36d32492011-12-28 08:42:23 +000012943 { { 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
12944echo "$as_me: error: the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" >&2;}
12945 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012946 elif test ! -d $IPPROOT; then
Benny Prijono36d32492011-12-28 08:42:23 +000012947 { { echo "$as_me:$LINENO: error: not found" >&5
12948echo "$as_me: error: not found" >&2;}
12949 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012950 elif test ! -d $IPPROOT/include; then
Benny Prijono36d32492011-12-28 08:42:23 +000012951 { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5
12952echo "$as_me: error: directory doesn't seem to be valid" >&2;}
12953 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000012954 else
12955 # IPP directory looks okay.
12956 # Remove trailing backslash
Benny Prijono3965f192010-02-10 18:46:05 +000012957 IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
Benny Prijono0822c192008-08-21 20:59:58 +000012958
12959 SAVED_CFLAGS="$CFLAGS"
12960 SAVED_LDFLAGS="$LDFLAGS"
12961 SAVED_LIBS="$LIBS"
12962
12963 IPP_CFLAGS="-I$IPPROOT/include"
Benny Prijonocd62c4e2011-03-18 08:33:29 +000012964 IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
Benny Prijono46bd0842010-02-12 14:12:41 +000012965
Benny Prijonocd62c4e2011-03-18 08:33:29 +000012966#
Benny Prijono46bd0842010-02-12 14:12:41 +000012967 # Some differences between Mac OS X and Linux
12968 case $target in
12969 *darwin* )
12970 IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
12971 ;;
12972 *)
Benny Prijonocd62c4e2011-03-18 08:33:29 +000012973 # Find out where the libraries live.
12974 IPP7_ARCH=""
12975 if test -d $IPPROOT/lib/intel64; then
12976 IPP7_ARCH="intel64"
12977 elif test -d $IPPROOT/lib/ia32; then
12978 IPP7_ARCH="ia32"
12979 elif test -d $IPPROOT/lib/mic; then
12980 IPP7_ARCH="mic"
12981 fi
12982
12983 if test -z "$IPP7_ARCH"; then
12984 # IPP6 (and possibly below)
12985 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
12986 IPP_LIBS="$IPP_LIBS -lippsr${IPP_SUFFIX} -lguide"
12987 else
12988 # IPP7
12989 if ! test -d $IPPROOT/../compiler; then
Benny Prijono36d32492011-12-28 08:42:23 +000012990 { { echo "$as_me:$LINENO: error: Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" >&5
12991echo "$as_me: error: Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" >&2;}
12992 { (exit 1); exit 1; }; }
Benny Prijonocd62c4e2011-03-18 08:33:29 +000012993 fi
12994 IPP_CFLAGS="$IPP_CFLAGS"
12995 IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH"
12996 IPP_LIBS="$IPP_LIBS -liomp5"
12997 fi
Benny Prijono46bd0842010-02-12 14:12:41 +000012998 ;;
12999 esac
13000
Benny Prijono0822c192008-08-21 20:59:58 +000013001 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
Benny Prijono46bd0842010-02-12 14:12:41 +000013002 #Static:
Benny Prijono0822c192008-08-21 20:59:58 +000013003 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
13004
13005 CFLAGS="$CFLAGS $IPP_CFLAGS"
13006 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
13007 LIBS="$IPP_LIBS $LIBS"
13008
13009
Benny Prijono36d32492011-12-28 08:42:23 +000013010 { echo "$as_me:$LINENO: checking Intel IPP usability" >&5
13011echo $ECHO_N "checking Intel IPP usability... $ECHO_C" >&6; }
13012 cat >conftest.$ac_ext <<_ACEOF
13013/* confdefs.h. */
13014_ACEOF
13015cat confdefs.h >>conftest.$ac_ext
13016cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +000013017/* end confdefs.h. */
13018#include <ippcore.h>
13019
13020int
13021main ()
13022{
13023ippStaticInit();
13024 ;
13025 return 0;
13026}
13027_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000013028rm -f conftest.$ac_objext conftest$ac_exeext
13029if { (ac_try="$ac_link"
13030case "(($ac_try" in
13031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032 *) ac_try_echo=$ac_try;;
13033esac
13034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13035 (eval "$ac_link") 2>conftest.er1
13036 ac_status=$?
13037 grep -v '^ *+' conftest.er1 >conftest.err
13038 rm -f conftest.er1
13039 cat conftest.err >&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); } && {
13042 test -z "$ac_c_werror_flag" ||
13043 test ! -s conftest.err
13044 } && test -s conftest$ac_exeext &&
13045 $as_test_x conftest$ac_exeext; then
13046 { echo "$as_me:$LINENO: result: ok" >&5
13047echo "${ECHO_T}ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000013048else
Benny Prijono36d32492011-12-28 08:42:23 +000013049 echo "$as_me: failed program was:" >&5
13050sed 's/^/| /' conftest.$ac_ext >&5
13051
13052 { { echo "$as_me:$LINENO: error: Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly
13053See \`config.log' for more details." >&5
13054echo "$as_me: error: Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly
13055See \`config.log' for more details." >&2;}
13056 { (exit run with --help for more info); exit run with --help for more info; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000013057fi
Benny Prijono36d32492011-12-28 08:42:23 +000013058
13059rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13060 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +000013061
13062 CFLAGS="$SAVED_CFLAGS"
13063 LDFLAGS="$SAVED_LDFLAGS"
13064 LIBS="$SAVED_LIBS"
13065 fi
13066
Benny Prijono36d32492011-12-28 08:42:23 +000013067 { echo "$as_me:$LINENO: checking Intel IPP samples location" >&5
13068echo $ECHO_N "checking Intel IPP samples location... $ECHO_C" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000013069
13070 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
Benny Prijono36d32492011-12-28 08:42:23 +000013071 { echo "$as_me:$LINENO: result: $with_ipp_samples" >&5
13072echo "${ECHO_T}$with_ipp_samples" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000013073 IPPSAMPLES=$with_ipp_samples
13074 elif test "x$IPPSAMPLES" = "x"; then
13075 if test -d /opt/intel/ipp-samples; then
13076 IPPSAMPLES=/opt/intel/ipp-samples
Benny Prijono36d32492011-12-28 08:42:23 +000013077 { echo "$as_me:$LINENO: result: autodetected in $IPPSAMPLES" >&5
13078echo "${ECHO_T}autodetected in $IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000013079 fi
13080 else
Benny Prijono36d32492011-12-28 08:42:23 +000013081 { echo "$as_me:$LINENO: result: $IPPSAMPLES" >&5
13082echo "${ECHO_T}$IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000013083 fi
13084
13085 if test x$IPPSAMPLES = x; then
Benny Prijono36d32492011-12-28 08:42:23 +000013086 { { 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
13087echo "$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;}
13088 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000013089 elif test ! -d $IPPSAMPLES; then
Benny Prijono36d32492011-12-28 08:42:23 +000013090 { { echo "$as_me:$LINENO: error: not found" >&5
13091echo "$as_me: error: not found" >&2;}
13092 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000013093 elif test ! -d $IPPSAMPLES/speech-codecs; then
Benny Prijono36d32492011-12-28 08:42:23 +000013094 { { echo "$as_me:$LINENO: error: directory doesn't seem to be valid" >&5
13095echo "$as_me: error: directory doesn't seem to be valid" >&2;}
13096 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000013097 else
13098 # Remove trailing backslash
13099 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
13100
Benny Prijono3965f192010-02-10 18:46:05 +000013101 # Guess the libusc.a/libspeech.a build location
Benny Prijono36d32492011-12-28 08:42:23 +000013102 { echo "$as_me:$LINENO: checking Intel IPP USC build location" >&5
13103echo $ECHO_N "checking Intel IPP USC build location... $ECHO_C" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +000013104 if test -d $IPPSAMPLES/speech-codecs/bin; then
13105 IPPVER=5
13106 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
13107 elif test -d $IPPSAMPLES/speech-codecs/_bin; then
13108 IPPVER=6
Benny Prijono46bd0842010-02-12 14:12:41 +000013109 if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
13110 # gcc compiler
13111 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
13112 elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
13113 # icc compiler
13114 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
13115 else
Benny Prijono36d32492011-12-28 08:42:23 +000013116 { { echo "$as_me:$LINENO: error: Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
13117See \`config.log' for more details." >&5
13118echo "$as_me: error: Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
13119See \`config.log' for more details." >&2;}
13120 { (exit 1); exit 1; }; }
Benny Prijono46bd0842010-02-12 14:12:41 +000013121 fi
Benny Prijono3965f192010-02-10 18:46:05 +000013122 else
Benny Prijono36d32492011-12-28 08:42:23 +000013123 { { 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?
13124See \`config.log' for more details." >&5
13125echo "$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?
13126See \`config.log' for more details." >&2;}
13127 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000013128 fi
Benny Prijono3965f192010-02-10 18:46:05 +000013129
13130 # Test the directory
13131 if test ! -d $IPPSAMP_DIR; then
Benny Prijono36d32492011-12-28 08:42:23 +000013132 { { echo "$as_me:$LINENO: error: There's something wrong with this script, directory $IPPSAMP_DIR does not exist
13133See \`config.log' for more details." >&5
13134echo "$as_me: error: There's something wrong with this script, directory $IPPSAMP_DIR does not exist
13135See \`config.log' for more details." >&2;}
13136 { (exit 1); exit 1; }; }
Benny Prijono3965f192010-02-10 18:46:05 +000013137 exit 1;
13138 fi
13139
13140 if test "x$IPPVER" = "x5"; then
13141 IPPSAMP_LIBS="libusc.a"
13142 IPPSAMP_LDLIBS="-lusc"
13143 elif test "x$IPPVER" = "x6"; then
13144 IPPSAMP_LIBS="libspeech.a"
13145 IPPSAMP_LDLIBS="-lspeech"
13146 else
Benny Prijono36d32492011-12-28 08:42:23 +000013147 { { echo "$as_me:$LINENO: error: bug in this script: unsupported IPP version
13148See \`config.log' for more details." >&5
13149echo "$as_me: error: bug in this script: unsupported IPP version
13150See \`config.log' for more details." >&2;}
13151 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000013152 fi
Benny Prijono3965f192010-02-10 18:46:05 +000013153
13154 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
Benny Prijono36d32492011-12-28 08:42:23 +000013155 { { echo "$as_me:$LINENO: error: $IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
13156See \`config.log' for more details." >&5
13157echo "$as_me: error: $IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
13158See \`config.log' for more details." >&2;}
13159 { (exit 1); exit 1; }; }
Benny Prijono3965f192010-02-10 18:46:05 +000013160 fi
13161
Benny Prijono36d32492011-12-28 08:42:23 +000013162 { echo "$as_me:$LINENO: result: $IPPSAMP_DIR" >&5
13163echo "${ECHO_T}$IPPSAMP_DIR" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000013164
13165 SAVED_CFLAGS="$CFLAGS"
13166 SAVED_LDFLAGS="$LDFLAGS"
13167 SAVED_LIBS="$LIBS"
13168
Benny Prijono3965f192010-02-10 18:46:05 +000013169 IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
13170 CFLAGS="$CFLAGS $IPPSAMP_INC"
13171 LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR"
13172 LIBS="$IPPSAMP_LDLIBS $LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +000013173
Benny Prijono36d32492011-12-28 08:42:23 +000013174 { echo "$as_me:$LINENO: checking Intel IPP USC usability" >&5
13175echo $ECHO_N "checking Intel IPP USC usability... $ECHO_C" >&6; }
13176 cat >conftest.$ac_ext <<_ACEOF
13177/* confdefs.h. */
13178_ACEOF
13179cat confdefs.h >>conftest.$ac_ext
13180cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono0822c192008-08-21 20:59:58 +000013181/* end confdefs.h. */
13182#include <usc.h>
13183
13184int
13185main ()
13186{
13187extern USC_Fxns USC_G729AFP_Fxns;
13188 ;
13189 return 0;
13190}
13191_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000013192rm -f conftest.$ac_objext conftest$ac_exeext
13193if { (ac_try="$ac_link"
13194case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13197esac
13198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13199 (eval "$ac_link") 2>conftest.er1
13200 ac_status=$?
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } && {
13206 test -z "$ac_c_werror_flag" ||
13207 test ! -s conftest.err
13208 } && test -s conftest$ac_exeext &&
13209 $as_test_x conftest$ac_exeext; then
13210 { echo "$as_me:$LINENO: result: ok" >&5
13211echo "${ECHO_T}ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000013212else
Benny Prijono36d32492011-12-28 08:42:23 +000013213 echo "$as_me: failed program was:" >&5
13214sed 's/^/| /' conftest.$ac_ext >&5
13215
13216 { { echo "$as_me:$LINENO: error: failed
13217See \`config.log' for more details." >&5
13218echo "$as_me: error: failed
13219See \`config.log' for more details." >&2;}
13220 { (exit 1); exit 1; }; }
Benny Prijono0822c192008-08-21 20:59:58 +000013221fi
Benny Prijono36d32492011-12-28 08:42:23 +000013222
13223rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13224 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +000013225
13226 CFLAGS="$SAVED_CFLAGS"
Benny Prijono3965f192010-02-10 18:46:05 +000013227 LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
13228 LIBS="$IPP_LIBS $SAVED_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +000013229
Benny Prijono3965f192010-02-10 18:46:05 +000013230 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
13231 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
13232 IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +000013233 fi
13234
Benny Prijono3965f192010-02-10 18:46:05 +000013235 CFLAGS="$CFLAGS $IPP_CFLAGS"
13236 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
13237 LIBS="$LIBS $IPP_LIBS"
13238
Benny Prijono0822c192008-08-21 20:59:58 +000013239 ac_build_mak_vars="$ac_build_mak_vars\n\
13240export IPP_CFLAGS=$IPP_CFLAGS\n\
13241export IPP_LDFLAGS=$IPP_LDFLAGS\n\
13242export IPP_LIBS=$IPP_LIBS"
13243else
Benny Prijono36d32492011-12-28 08:42:23 +000013244 { echo "$as_me:$LINENO: result: Skipping Intel IPP settings (not wanted)" >&5
13245echo "${ECHO_T}Skipping Intel IPP settings (not wanted)" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +000013246fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013247
13248
13249
13250
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013251# Check whether --enable-ssl was given.
Benny Prijono36d32492011-12-28 08:42:23 +000013252if test "${enable_ssl+set}" = set; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013253 enableval=$enable_ssl;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013254 if test "$enable_ssl" = "no"; then
13255 ac_no_ssl=1
Benny Prijono36d32492011-12-28 08:42:23 +000013256 { echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5
13257echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013258 fi
13259
13260else
13261
Benny Prijono36d32492011-12-28 08:42:23 +000013262 { echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5
13263echo "${ECHO_T}checking for OpenSSL installations.." >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013264
13265
13266
Benny Prijono36d32492011-12-28 08:42:23 +000013267 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13268 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
13269echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
13270if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13272fi
13273{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
13274echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
13275else
13276 # Is the header compilable?
13277{ echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
13278echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
13279cat >conftest.$ac_ext <<_ACEOF
13280/* confdefs.h. */
13281_ACEOF
13282cat confdefs.h >>conftest.$ac_ext
13283cat >>conftest.$ac_ext <<_ACEOF
13284/* end confdefs.h. */
13285$ac_includes_default
13286#include <openssl/ssl.h>
13287_ACEOF
13288rm -f conftest.$ac_objext
13289if { (ac_try="$ac_compile"
13290case "(($ac_try" in
13291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292 *) ac_try_echo=$ac_try;;
13293esac
13294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295 (eval "$ac_compile") 2>conftest.er1
13296 ac_status=$?
13297 grep -v '^ *+' conftest.er1 >conftest.err
13298 rm -f conftest.er1
13299 cat conftest.err >&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); } && {
13302 test -z "$ac_c_werror_flag" ||
13303 test ! -s conftest.err
13304 } && test -s conftest.$ac_objext; then
13305 ac_header_compiler=yes
13306else
13307 echo "$as_me: failed program was:" >&5
13308sed 's/^/| /' conftest.$ac_ext >&5
13309
13310 ac_header_compiler=no
13311fi
13312
13313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13314{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13315echo "${ECHO_T}$ac_header_compiler" >&6; }
13316
13317# Is the header present?
13318{ echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
13319echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
13320cat >conftest.$ac_ext <<_ACEOF
13321/* confdefs.h. */
13322_ACEOF
13323cat confdefs.h >>conftest.$ac_ext
13324cat >>conftest.$ac_ext <<_ACEOF
13325/* end confdefs.h. */
13326#include <openssl/ssl.h>
13327_ACEOF
13328if { (ac_try="$ac_cpp conftest.$ac_ext"
13329case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13332esac
13333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13335 ac_status=$?
13336 grep -v '^ *+' conftest.er1 >conftest.err
13337 rm -f conftest.er1
13338 cat conftest.err >&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); } >/dev/null && {
13341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13342 test ! -s conftest.err
13343 }; then
13344 ac_header_preproc=yes
13345else
13346 echo "$as_me: failed program was:" >&5
13347sed 's/^/| /' conftest.$ac_ext >&5
13348
13349 ac_header_preproc=no
13350fi
13351
13352rm -f conftest.err conftest.$ac_ext
13353{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13354echo "${ECHO_T}$ac_header_preproc" >&6; }
13355
13356# So? What about this header?
13357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13358 yes:no: )
13359 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13360echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13361 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
13362echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
13363 ac_header_preproc=yes
13364 ;;
13365 no:yes:* )
13366 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
13367echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
13368 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
13369echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
13370 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
13371echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
13372 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
13373echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
13374 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
13375echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
13376 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
13377echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
13378
13379 ;;
13380esac
13381{ echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
13382echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
13383if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13384 echo $ECHO_N "(cached) $ECHO_C" >&6
13385else
13386 ac_cv_header_openssl_ssl_h=$ac_header_preproc
13387fi
13388{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
13389echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
13390
13391fi
13392if test $ac_cv_header_openssl_ssl_h = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013393 openssl_h_present=1
13394fi
13395
13396
Benny Prijono36d32492011-12-28 08:42:23 +000013397 { echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5
13398echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6; }
13399if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013401else
13402 ac_check_lib_save_LIBS=$LIBS
13403LIBS="-lcrypto $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +000013404cat >conftest.$ac_ext <<_ACEOF
13405/* confdefs.h. */
13406_ACEOF
13407cat confdefs.h >>conftest.$ac_ext
13408cat >>conftest.$ac_ext <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013409/* end confdefs.h. */
13410
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013411/* Override any GCC internal prototype to avoid an error.
13412 Use char because int might match the return type of a GCC
13413 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013414#ifdef __cplusplus
13415extern "C"
13416#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013417char ERR_load_BIO_strings ();
13418int
13419main ()
13420{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013421return ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013422 ;
13423 return 0;
13424}
13425_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000013426rm -f conftest.$ac_objext conftest$ac_exeext
13427if { (ac_try="$ac_link"
13428case "(($ac_try" in
13429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13431esac
13432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_link") 2>conftest.er1
13434 ac_status=$?
13435 grep -v '^ *+' conftest.er1 >conftest.err
13436 rm -f conftest.er1
13437 cat conftest.err >&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } && {
13440 test -z "$ac_c_werror_flag" ||
13441 test ! -s conftest.err
13442 } && test -s conftest$ac_exeext &&
13443 $as_test_x conftest$ac_exeext; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013444 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
13445else
Benny Prijono36d32492011-12-28 08:42:23 +000013446 echo "$as_me: failed program was:" >&5
13447sed 's/^/| /' conftest.$ac_ext >&5
13448
13449 ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013450fi
Benny Prijono36d32492011-12-28 08:42:23 +000013451
13452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13453 conftest$ac_exeext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013454LIBS=$ac_check_lib_save_LIBS
13455fi
Benny Prijono36d32492011-12-28 08:42:23 +000013456{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
13457echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
13458if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013459 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
13460fi
13461
Benny Prijono36d32492011-12-28 08:42:23 +000013462 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
13463echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
13464if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
Benny Prijonod5233702010-01-13 13:09:45 +000013466else
13467 ac_check_lib_save_LIBS=$LIBS
13468LIBS="-lssl $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +000013469cat >conftest.$ac_ext <<_ACEOF
13470/* confdefs.h. */
13471_ACEOF
13472cat confdefs.h >>conftest.$ac_ext
13473cat >>conftest.$ac_ext <<_ACEOF
Benny Prijonod5233702010-01-13 13:09:45 +000013474/* end confdefs.h. */
13475
13476/* Override any GCC internal prototype to avoid an error.
13477 Use char because int might match the return type of a GCC
13478 builtin and then its argument prototype would still apply. */
13479#ifdef __cplusplus
13480extern "C"
13481#endif
13482char SSL_library_init ();
13483int
13484main ()
13485{
13486return SSL_library_init ();
13487 ;
13488 return 0;
13489}
13490_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000013491rm -f conftest.$ac_objext conftest$ac_exeext
13492if { (ac_try="$ac_link"
13493case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13496esac
13497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498 (eval "$ac_link") 2>conftest.er1
13499 ac_status=$?
13500 grep -v '^ *+' conftest.er1 >conftest.err
13501 rm -f conftest.er1
13502 cat conftest.err >&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } && {
13505 test -z "$ac_c_werror_flag" ||
13506 test ! -s conftest.err
13507 } && test -s conftest$ac_exeext &&
13508 $as_test_x conftest$ac_exeext; then
Benny Prijonod5233702010-01-13 13:09:45 +000013509 ac_cv_lib_ssl_SSL_library_init=yes
13510else
Benny Prijono36d32492011-12-28 08:42:23 +000013511 echo "$as_me: failed program was:" >&5
13512sed 's/^/| /' conftest.$ac_ext >&5
13513
13514 ac_cv_lib_ssl_SSL_library_init=no
Benny Prijonod5233702010-01-13 13:09:45 +000013515fi
Benny Prijono36d32492011-12-28 08:42:23 +000013516
13517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13518 conftest$ac_exeext conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +000013519LIBS=$ac_check_lib_save_LIBS
13520fi
Benny Prijono36d32492011-12-28 08:42:23 +000013521{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
13522echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
13523if test $ac_cv_lib_ssl_SSL_library_init = yes; then
Benny Prijonod5233702010-01-13 13:09:45 +000013524 libssl_present=1 && LIBS="$LIBS -lssl"
13525fi
13526
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013527 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
Benny Prijono36d32492011-12-28 08:42:23 +000013528 { echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5
13529echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6; }
Nanang Izzuddin9c7616f2009-10-28 06:09:15 +000013530 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
13531 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
Benny Prijono36d32492011-12-28 08:42:23 +000013532 cat >>confdefs.h <<\_ACEOF
13533#define PJ_HAS_SSL_SOCK 1
13534_ACEOF
Nanang Izzuddinea6d3c42009-10-26 15:47:52 +000013535
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013536 else
Benny Prijono36d32492011-12-28 08:42:23 +000013537 { echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
13538echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6; }
Sauw Minge7dbbc82011-10-24 09:28:13 +000013539 fi
13540
13541fi
13542
13543
13544
13545# Check whether --enable-opencore_amrnb was given.
Benny Prijono36d32492011-12-28 08:42:23 +000013546if test "${enable_opencore_amrnb+set}" = set; then
Sauw Minge7dbbc82011-10-24 09:28:13 +000013547 enableval=$enable_opencore_amrnb;
13548 if test "$enable_opencore_amrnb" = "no"; then
13549 ac_no_opencore_amrnb=1
Benny Prijono36d32492011-12-28 08:42:23 +000013550 cat >>confdefs.h <<\_ACEOF
13551#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0
13552_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +000013553
Benny Prijono36d32492011-12-28 08:42:23 +000013554 { echo "$as_me:$LINENO: result: Checking if OpenCORE AMR-NB support is disabled... yes" >&5
13555echo "${ECHO_T}Checking if OpenCORE AMR-NB support is disabled... yes" >&6; }
Sauw Minge7dbbc82011-10-24 09:28:13 +000013556 fi
13557
13558else
13559
Benny Prijono36d32492011-12-28 08:42:23 +000013560 { echo "$as_me:$LINENO: result: checking for OpenCORE AMR-NB installations.." >&5
13561echo "${ECHO_T}checking for OpenCORE AMR-NB installations.." >&6; }
Sauw Minge7dbbc82011-10-24 09:28:13 +000013562
13563
Benny Prijono36d32492011-12-28 08:42:23 +000013564 if test "${ac_cv_header_opencore_amrnb_interf_enc_h+set}" = set; then
13565 { echo "$as_me:$LINENO: checking for opencore-amrnb/interf_enc.h" >&5
13566echo $ECHO_N "checking for opencore-amrnb/interf_enc.h... $ECHO_C" >&6; }
13567if test "${ac_cv_header_opencore_amrnb_interf_enc_h+set}" = set; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13569fi
13570{ echo "$as_me:$LINENO: result: $ac_cv_header_opencore_amrnb_interf_enc_h" >&5
13571echo "${ECHO_T}$ac_cv_header_opencore_amrnb_interf_enc_h" >&6; }
13572else
13573 # Is the header compilable?
13574{ echo "$as_me:$LINENO: checking opencore-amrnb/interf_enc.h usability" >&5
13575echo $ECHO_N "checking opencore-amrnb/interf_enc.h usability... $ECHO_C" >&6; }
13576cat >conftest.$ac_ext <<_ACEOF
13577/* confdefs.h. */
13578_ACEOF
13579cat confdefs.h >>conftest.$ac_ext
13580cat >>conftest.$ac_ext <<_ACEOF
13581/* end confdefs.h. */
13582$ac_includes_default
13583#include <opencore-amrnb/interf_enc.h>
13584_ACEOF
13585rm -f conftest.$ac_objext
13586if { (ac_try="$ac_compile"
13587case "(($ac_try" in
13588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13589 *) ac_try_echo=$ac_try;;
13590esac
13591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13592 (eval "$ac_compile") 2>conftest.er1
13593 ac_status=$?
13594 grep -v '^ *+' conftest.er1 >conftest.err
13595 rm -f conftest.er1
13596 cat conftest.err >&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } && {
13599 test -z "$ac_c_werror_flag" ||
13600 test ! -s conftest.err
13601 } && test -s conftest.$ac_objext; then
13602 ac_header_compiler=yes
13603else
13604 echo "$as_me: failed program was:" >&5
13605sed 's/^/| /' conftest.$ac_ext >&5
13606
13607 ac_header_compiler=no
13608fi
13609
13610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13611{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13612echo "${ECHO_T}$ac_header_compiler" >&6; }
13613
13614# Is the header present?
13615{ echo "$as_me:$LINENO: checking opencore-amrnb/interf_enc.h presence" >&5
13616echo $ECHO_N "checking opencore-amrnb/interf_enc.h presence... $ECHO_C" >&6; }
13617cat >conftest.$ac_ext <<_ACEOF
13618/* confdefs.h. */
13619_ACEOF
13620cat confdefs.h >>conftest.$ac_ext
13621cat >>conftest.$ac_ext <<_ACEOF
13622/* end confdefs.h. */
13623#include <opencore-amrnb/interf_enc.h>
13624_ACEOF
13625if { (ac_try="$ac_cpp conftest.$ac_ext"
13626case "(($ac_try" in
13627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13628 *) ac_try_echo=$ac_try;;
13629esac
13630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13632 ac_status=$?
13633 grep -v '^ *+' conftest.er1 >conftest.err
13634 rm -f conftest.er1
13635 cat conftest.err >&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } >/dev/null && {
13638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13639 test ! -s conftest.err
13640 }; then
13641 ac_header_preproc=yes
13642else
13643 echo "$as_me: failed program was:" >&5
13644sed 's/^/| /' conftest.$ac_ext >&5
13645
13646 ac_header_preproc=no
13647fi
13648
13649rm -f conftest.err conftest.$ac_ext
13650{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13651echo "${ECHO_T}$ac_header_preproc" >&6; }
13652
13653# So? What about this header?
13654case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13655 yes:no: )
13656 { echo "$as_me:$LINENO: WARNING: opencore-amrnb/interf_enc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13657echo "$as_me: WARNING: opencore-amrnb/interf_enc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13658 { echo "$as_me:$LINENO: WARNING: opencore-amrnb/interf_enc.h: proceeding with the compiler's result" >&5
13659echo "$as_me: WARNING: opencore-amrnb/interf_enc.h: proceeding with the compiler's result" >&2;}
13660 ac_header_preproc=yes
13661 ;;
13662 no:yes:* )
13663 { echo "$as_me:$LINENO: WARNING: opencore-amrnb/interf_enc.h: present but cannot be compiled" >&5
13664echo "$as_me: WARNING: opencore-amrnb/interf_enc.h: present but cannot be compiled" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: opencore-amrnb/interf_enc.h: check for missing prerequisite headers?" >&5
13666echo "$as_me: WARNING: opencore-amrnb/interf_enc.h: check for missing prerequisite headers?" >&2;}
13667 { echo "$as_me:$LINENO: WARNING: opencore-amrnb/interf_enc.h: see the Autoconf documentation" >&5
13668echo "$as_me: WARNING: opencore-amrnb/interf_enc.h: see the Autoconf documentation" >&2;}
13669 { echo "$as_me:$LINENO: WARNING: opencore-amrnb/interf_enc.h: section \"Present But Cannot Be Compiled\"" >&5
13670echo "$as_me: WARNING: opencore-amrnb/interf_enc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13671 { echo "$as_me:$LINENO: WARNING: opencore-amrnb/interf_enc.h: proceeding with the preprocessor's result" >&5
13672echo "$as_me: WARNING: opencore-amrnb/interf_enc.h: proceeding with the preprocessor's result" >&2;}
13673 { echo "$as_me:$LINENO: WARNING: opencore-amrnb/interf_enc.h: in the future, the compiler will take precedence" >&5
13674echo "$as_me: WARNING: opencore-amrnb/interf_enc.h: in the future, the compiler will take precedence" >&2;}
13675
13676 ;;
13677esac
13678{ echo "$as_me:$LINENO: checking for opencore-amrnb/interf_enc.h" >&5
13679echo $ECHO_N "checking for opencore-amrnb/interf_enc.h... $ECHO_C" >&6; }
13680if test "${ac_cv_header_opencore_amrnb_interf_enc_h+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
13682else
13683 ac_cv_header_opencore_amrnb_interf_enc_h=$ac_header_preproc
13684fi
13685{ echo "$as_me:$LINENO: result: $ac_cv_header_opencore_amrnb_interf_enc_h" >&5
13686echo "${ECHO_T}$ac_cv_header_opencore_amrnb_interf_enc_h" >&6; }
13687
13688fi
13689if test $ac_cv_header_opencore_amrnb_interf_enc_h = yes; then
Sauw Minge7dbbc82011-10-24 09:28:13 +000013690 opencore_amrnb_h_present=1
13691fi
13692
13693
Benny Prijono36d32492011-12-28 08:42:23 +000013694 { echo "$as_me:$LINENO: checking for Encoder_Interface_init in -lopencore-amrnb" >&5
13695echo $ECHO_N "checking for Encoder_Interface_init in -lopencore-amrnb... $ECHO_C" >&6; }
13696if test "${ac_cv_lib_opencore_amrnb_Encoder_Interface_init+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
Sauw Minge7dbbc82011-10-24 09:28:13 +000013698else
13699 ac_check_lib_save_LIBS=$LIBS
13700LIBS="-lopencore-amrnb $LIBS"
Benny Prijono36d32492011-12-28 08:42:23 +000013701cat >conftest.$ac_ext <<_ACEOF
13702/* confdefs.h. */
13703_ACEOF
13704cat confdefs.h >>conftest.$ac_ext
13705cat >>conftest.$ac_ext <<_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +000013706/* end confdefs.h. */
13707
13708/* Override any GCC internal prototype to avoid an error.
13709 Use char because int might match the return type of a GCC
13710 builtin and then its argument prototype would still apply. */
13711#ifdef __cplusplus
13712extern "C"
13713#endif
13714char Encoder_Interface_init ();
13715int
13716main ()
13717{
13718return Encoder_Interface_init ();
13719 ;
13720 return 0;
13721}
13722_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000013723rm -f conftest.$ac_objext conftest$ac_exeext
13724if { (ac_try="$ac_link"
13725case "(($ac_try" in
13726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727 *) ac_try_echo=$ac_try;;
13728esac
13729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730 (eval "$ac_link") 2>conftest.er1
13731 ac_status=$?
13732 grep -v '^ *+' conftest.er1 >conftest.err
13733 rm -f conftest.er1
13734 cat conftest.err >&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } && {
13737 test -z "$ac_c_werror_flag" ||
13738 test ! -s conftest.err
13739 } && test -s conftest$ac_exeext &&
13740 $as_test_x conftest$ac_exeext; then
Sauw Minge7dbbc82011-10-24 09:28:13 +000013741 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=yes
13742else
Benny Prijono36d32492011-12-28 08:42:23 +000013743 echo "$as_me: failed program was:" >&5
13744sed 's/^/| /' conftest.$ac_ext >&5
13745
13746 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=no
Sauw Minge7dbbc82011-10-24 09:28:13 +000013747fi
Benny Prijono36d32492011-12-28 08:42:23 +000013748
13749rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13750 conftest$ac_exeext conftest.$ac_ext
Sauw Minge7dbbc82011-10-24 09:28:13 +000013751LIBS=$ac_check_lib_save_LIBS
13752fi
Benny Prijono36d32492011-12-28 08:42:23 +000013753{ echo "$as_me:$LINENO: result: $ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&5
13754echo "${ECHO_T}$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&6; }
13755if test $ac_cv_lib_opencore_amrnb_Encoder_Interface_init = yes; then
Sauw Minge7dbbc82011-10-24 09:28:13 +000013756 opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb"
13757fi
13758
13759 if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then
Benny Prijono36d32492011-12-28 08:42:23 +000013760 { echo "$as_me:$LINENO: result: OpenCORE AMR-NB library found, AMR-NB support enabled" >&5
13761echo "${ECHO_T}OpenCORE AMR-NB library found, AMR-NB support enabled" >&6; }
13762 cat >>confdefs.h <<\_ACEOF
13763#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1
13764_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +000013765
13766 else
13767 ac_no_opencore_amrnb=1
Benny Prijono36d32492011-12-28 08:42:23 +000013768 cat >>confdefs.h <<\_ACEOF
13769#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0
13770_ACEOF
Sauw Minge7dbbc82011-10-24 09:28:13 +000013771
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013772 fi
13773
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013774fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013775
13776
13777
13778
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013779
Benny Prijono36d32492011-12-28 08:42:23 +000013780{ echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5
13781echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013782case $target in
Benny Prijono36d32492011-12-28 08:42:23 +000013783 *rtems*) cat >>confdefs.h <<\_ACEOF
13784#define PJ_SELECT_NEEDS_NFDS 1
13785_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013786
Benny Prijono36d32492011-12-28 08:42:23 +000013787 { echo "$as_me:$LINENO: result: yes" >&5
13788echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013789 ;;
Benny Prijono36d32492011-12-28 08:42:23 +000013790 *) cat >>confdefs.h <<\_ACEOF
13791#define PJ_SELECT_NEEDS_NFDS 0
13792_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013793
Benny Prijono36d32492011-12-28 08:42:23 +000013794 { echo "$as_me:$LINENO: result: no (default)" >&5
13795echo "${ECHO_T}no (default)" >&6; }
13796 { echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
13797echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013798 ;;
13799esac
13800
Benny Prijono36d32492011-12-28 08:42:23 +000013801{ echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5
13802echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013803case $target in
Benny Prijono36d32492011-12-28 08:42:23 +000013804 *rtems*) cat >>confdefs.h <<\_ACEOF
13805#define PJ_THREAD_SET_STACK_SIZE 1
13806_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013807
Benny Prijono36d32492011-12-28 08:42:23 +000013808 { echo "$as_me:$LINENO: result: yes" >&5
13809echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013810 ;;
Benny Prijono36d32492011-12-28 08:42:23 +000013811 *) cat >>confdefs.h <<\_ACEOF
13812#define PJ_THREAD_SET_STACK_SIZE 0
13813_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013814
Benny Prijono36d32492011-12-28 08:42:23 +000013815 { echo "$as_me:$LINENO: result: no (default)" >&5
13816echo "${ECHO_T}no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013817 ;;
13818esac
13819
Benny Prijono36d32492011-12-28 08:42:23 +000013820{ echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5
13821echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013822case $target in
Benny Prijono36d32492011-12-28 08:42:23 +000013823 *rtems*) cat >>confdefs.h <<\_ACEOF
13824#define PJ_THREAD_ALLOCATE_STACK 1
13825_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013826
Benny Prijono36d32492011-12-28 08:42:23 +000013827 { echo "$as_me:$LINENO: result: yes" >&5
13828echo "${ECHO_T}yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013829 ;;
Benny Prijono36d32492011-12-28 08:42:23 +000013830 *) cat >>confdefs.h <<\_ACEOF
13831#define PJ_THREAD_ALLOCATE_STACK 0
13832_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013833
Benny Prijono36d32492011-12-28 08:42:23 +000013834 { echo "$as_me:$LINENO: result: no (default)" >&5
13835echo "${ECHO_T}no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013836 ;;
13837esac
13838
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013839case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000013840 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono36d32492011-12-28 08:42:23 +000013841 cat >>confdefs.h <<\_ACEOF
13842#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK
13843_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013844
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000013845 ;;
Benny Prijono36d32492011-12-28 08:42:23 +000013846 *) cat >>confdefs.h <<\_ACEOF
13847#define PJ_BLOCKING_ERROR_VAL EAGAIN
13848_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000013849
Benny Prijono36d32492011-12-28 08:42:23 +000013850 { echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
13851echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013852 ;;
13853esac
13854
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013855case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000013856 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono36d32492011-12-28 08:42:23 +000013857 cat >>confdefs.h <<\_ACEOF
13858#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK
13859_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013860
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000013861 ;;
Benny Prijono36d32492011-12-28 08:42:23 +000013862 *) cat >>confdefs.h <<\_ACEOF
13863#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS
13864_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000013865
Benny Prijono36d32492011-12-28 08:42:23 +000013866 { echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
13867echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013868 ;;
13869esac
13870
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013871
13872
13873
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013874if test "$build" = "$host"; then
13875 ac_cross_compile=
13876else
Benny Prijono5b818b22006-09-17 22:58:51 +000013877 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013878fi
13879ac_linux_poll=select
13880
13881ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013882
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013883
Benny Prijonoc4c61d02006-08-20 20:47:34 +000013884case $target in
13885 *rtems*)
13886 ac_main_obj=main_rtems.o
13887 ;;
13888 *)
13889 ac_main_obj=main.o
13890 ;;
13891esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013892
Benny Prijono0822c192008-08-21 20:59:58 +000013893
13894ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013895cat >confcache <<\_ACEOF
13896# This file is a shell script that caches the results of configure
13897# tests run on this system so they can be shared between configure
13898# scripts and configure runs, see configure's option --config-cache.
13899# It is not useful on other systems. If it contains results you don't
13900# want to keep, you may remove or edit it.
13901#
13902# config.status only pays attention to the cache file if you give it
13903# the --recheck option to rerun configure.
13904#
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013905# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013906# loading this file, other *unset* `ac_cv_foo' will be assigned the
13907# following values.
13908
13909_ACEOF
13910
13911# The following way of writing the cache mishandles newlines in values,
13912# but we know of no workaround that is simple, portable, and efficient.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013913# So, we kill variables containing newlines.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013914# Ultrix sh set writes to stderr and can't be redirected directly,
13915# and sets the high bit in the cache file unless we assign to the vars.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013916(
13917 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13918 eval ac_val=\$$ac_var
13919 case $ac_val in #(
13920 *${as_nl}*)
13921 case $ac_var in #(
Benny Prijono36d32492011-12-28 08:42:23 +000013922 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13923echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013924 esac
13925 case $ac_var in #(
13926 _ | IFS | as_nl) ;; #(
Benny Prijono36d32492011-12-28 08:42:23 +000013927 *) $as_unset $ac_var ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013928 esac ;;
13929 esac
13930 done
13931
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013932 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013933 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13934 *${as_nl}ac_space=\ *)
Benny Prijono36d32492011-12-28 08:42:23 +000013935 # `set' does not quote correctly, so add quotes (double-quote
13936 # substitution turns \\\\ into \\, and sed turns \\ into \).
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013937 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013938 "s/'/'\\\\''/g;
13939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013940 ;; #(
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013941 *)
13942 # `set' quotes correctly as required by POSIX, so do not add quotes.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013943 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013944 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013945 esac |
13946 sort
13947) |
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013948 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013949 /^ac_cv_env_/b end
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013950 t clear
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013951 :clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013952 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13953 t end
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013954 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13955 :end' >>confcache
13956if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13957 if test -w "$cache_file"; then
13958 test "x$cache_file" != "x/dev/null" &&
Benny Prijono36d32492011-12-28 08:42:23 +000013959 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13960echo "$as_me: updating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013961 cat confcache >$cache_file
13962 else
Benny Prijono36d32492011-12-28 08:42:23 +000013963 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13964echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013965 fi
13966fi
13967rm -f confcache
13968
13969test "x$prefix" = xNONE && prefix=$ac_default_prefix
13970# Let make expand exec_prefix.
13971test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13972
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013973DEFS=-DHAVE_CONFIG_H
13974
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013975ac_libobjs=
13976ac_ltlibobjs=
13977for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13978 # 1. Remove the extension, and $U if already installed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013979 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Benny Prijono36d32492011-12-28 08:42:23 +000013980 ac_i=`echo "$ac_i" | sed "$ac_script"`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000013981 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13982 # will be set to the directory where LIBOBJS objects are built.
Benny Prijono36d32492011-12-28 08:42:23 +000013983 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13984 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013985done
13986LIBOBJS=$ac_libobjs
13987
13988LTLIBOBJS=$ac_ltlibobjs
13989
13990
13991
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013992: ${CONFIG_STATUS=./config.status}
13993ac_clean_files_save=$ac_clean_files
13994ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono36d32492011-12-28 08:42:23 +000013995{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13996echo "$as_me: creating $CONFIG_STATUS" >&6;}
13997cat >$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000013998#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +000013999# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014000# Run this file to recreate the current configuration.
14001# Compiler output produced by configure, useful for debugging
14002# configure, is in config.log if it exists.
14003
14004debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014005ac_cs_recheck=false
14006ac_cs_silent=false
Benny Prijonoe1105232011-10-26 06:49:34 +000014007SHELL=\${CONFIG_SHELL-$SHELL}
Benny Prijono36d32492011-12-28 08:42:23 +000014008_ACEOF
14009
14010cat >>$CONFIG_STATUS <<\_ACEOF
14011## --------------------- ##
14012## M4sh Initialization. ##
14013## --------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014014
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014015# Be more Bourne compatible
14016DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijono36d32492011-12-28 08:42:23 +000014017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014018 emulate sh
14019 NULLCMD=:
Benny Prijono36d32492011-12-28 08:42:23 +000014020 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014021 # is contrary to our usage. Disable this feature.
14022 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014023 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +000014024else
Benny Prijono36d32492011-12-28 08:42:23 +000014025 case `(set -o) 2>/dev/null` in
14026 *posix*) set -o posix ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014027esac
Benny Prijono36d32492011-12-28 08:42:23 +000014028
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014029fi
14030
14031
Benny Prijono36d32492011-12-28 08:42:23 +000014032
14033
14034# PATH needs CR
14035# Avoid depending upon Character Ranges.
14036as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14037as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14038as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14039as_cr_digits='0123456789'
14040as_cr_alnum=$as_cr_Letters$as_cr_digits
Benny Prijonod5233702010-01-13 13:09:45 +000014041
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014042# The user is always right.
14043if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijono36d32492011-12-28 08:42:23 +000014044 echo "#! /bin/sh" >conf$$.sh
14045 echo "exit 0" >>conf$$.sh
14046 chmod +x conf$$.sh
14047 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14048 PATH_SEPARATOR=';'
14049 else
14050 PATH_SEPARATOR=:
14051 fi
14052 rm -f conf$$.sh
14053fi
14054
14055# Support unset when possible.
14056if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14057 as_unset=unset
14058else
14059 as_unset=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014060fi
14061
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014062
14063# IFS
14064# We need space, tab and new line, in precisely that order. Quoting is
14065# there to prevent editors from complaining about space-tab.
14066# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14067# splitting by setting IFS to empty value.)
Benny Prijono36d32492011-12-28 08:42:23 +000014068as_nl='
14069'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014070IFS=" "" $as_nl"
14071
14072# Find who we are. Look in the path if we contain no directory separator.
Benny Prijono36d32492011-12-28 08:42:23 +000014073case $0 in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014074 *[\\/]* ) as_myself=$0 ;;
14075 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014076for as_dir in $PATH
14077do
14078 IFS=$as_save_IFS
14079 test -z "$as_dir" && as_dir=.
Benny Prijono36d32492011-12-28 08:42:23 +000014080 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14081done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014082IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014083
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014084 ;;
14085esac
14086# We did not find ourselves, most probably we were run as `sh COMMAND'
14087# in which case we are not to be found in the path.
14088if test "x$as_myself" = x; then
14089 as_myself=$0
14090fi
14091if test ! -f "$as_myself"; then
Benny Prijono36d32492011-12-28 08:42:23 +000014092 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14093 { (exit 1); exit 1; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014094fi
14095
Benny Prijono36d32492011-12-28 08:42:23 +000014096# Work around bugs in pre-3.0 UWIN ksh.
14097for as_var in ENV MAIL MAILPATH
14098do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014099done
14100PS1='$ '
14101PS2='> '
14102PS4='+ '
14103
14104# NLS nuisances.
Benny Prijono36d32492011-12-28 08:42:23 +000014105for as_var in \
14106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14108 LC_TELEPHONE LC_TIME
14109do
14110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14111 eval $as_var=C; export $as_var
14112 else
14113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Benny Prijonoe1105232011-10-26 06:49:34 +000014114 fi
Benny Prijono36d32492011-12-28 08:42:23 +000014115done
Benny Prijonoe1105232011-10-26 06:49:34 +000014116
Benny Prijono36d32492011-12-28 08:42:23 +000014117# Required to use basename.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014118if expr a : '\(a\)' >/dev/null 2>&1 &&
14119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14120 as_expr=expr
14121else
14122 as_expr=false
14123fi
14124
14125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14126 as_basename=basename
14127else
14128 as_basename=false
14129fi
14130
14131
Benny Prijono36d32492011-12-28 08:42:23 +000014132# Name of the executable.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014133as_me=`$as_basename -- "$0" ||
14134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14135 X"$0" : 'X\(//\)$' \| \
14136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono36d32492011-12-28 08:42:23 +000014137echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014138 sed '/^.*\/\([^/][^/]*\)\/*$/{
14139 s//\1/
14140 q
14141 }
14142 /^X\/\(\/\/\)$/{
14143 s//\1/
14144 q
14145 }
14146 /^X\/\(\/\).*/{
14147 s//\1/
14148 q
14149 }
14150 s/.*/./; q'`
14151
Benny Prijono36d32492011-12-28 08:42:23 +000014152# CDPATH.
14153$as_unset CDPATH
14154
14155
14156
14157 as_lineno_1=$LINENO
14158 as_lineno_2=$LINENO
14159 test "x$as_lineno_1" != "x$as_lineno_2" &&
14160 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14161
14162 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14163 # uniformly replaced by the line number. The first 'sed' inserts a
14164 # line-number line after each line using $LINENO; the second 'sed'
14165 # does the real work. The second script uses 'N' to pair each
14166 # line-number line with the line containing $LINENO, and appends
14167 # trailing '-' during substitution so that $LINENO is not a special
14168 # case at line end.
14169 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14170 # scripts with optimization help from Paolo Bonzini. Blame Lee
14171 # E. McMahon (1931-1989) for sed's syntax. :-)
14172 sed -n '
14173 p
14174 /[$]LINENO/=
14175 ' <$as_myself |
14176 sed '
14177 s/[$]LINENO.*/&-/
14178 t lineno
14179 b
14180 :lineno
14181 N
14182 :loop
14183 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14184 t loop
14185 s/-\n.*//
14186 ' >$as_me.lineno &&
14187 chmod +x "$as_me.lineno" ||
14188 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14189 { (exit 1); exit 1; }; }
14190
14191 # Don't try to exec as it changes $[0], causing all sort of problems
14192 # (the dirname of $[0] is not the place where we might find the
14193 # original and so on. Autoconf is especially sensitive to this).
14194 . "./$as_me.lineno"
14195 # Exit status is that of the last command.
14196 exit
14197}
14198
14199
14200if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14201 as_dirname=dirname
14202else
14203 as_dirname=false
14204fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014205
14206ECHO_C= ECHO_N= ECHO_T=
Benny Prijono36d32492011-12-28 08:42:23 +000014207case `echo -n x` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014208-n*)
Benny Prijono36d32492011-12-28 08:42:23 +000014209 case `echo 'x\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014210 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijono36d32492011-12-28 08:42:23 +000014211 *) ECHO_C='\c';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014212 esac;;
14213*)
14214 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014215esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014216
Benny Prijono36d32492011-12-28 08:42:23 +000014217if expr a : '\(a\)' >/dev/null 2>&1 &&
14218 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14219 as_expr=expr
14220else
14221 as_expr=false
14222fi
14223
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014224rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014225if test -d conf$$.dir; then
14226 rm -f conf$$.dir/conf$$.file
14227else
14228 rm -f conf$$.dir
Benny Prijono36d32492011-12-28 08:42:23 +000014229 mkdir conf$$.dir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014230fi
Benny Prijono36d32492011-12-28 08:42:23 +000014231echo >conf$$.file
14232if ln -s conf$$.file conf$$ 2>/dev/null; then
14233 as_ln_s='ln -s'
14234 # ... but there are two gotchas:
14235 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14236 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14237 # In both cases, we have to default to `cp -p'.
14238 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014239 as_ln_s='cp -p'
Benny Prijono36d32492011-12-28 08:42:23 +000014240elif ln conf$$.file conf$$ 2>/dev/null; then
14241 as_ln_s=ln
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014242else
14243 as_ln_s='cp -p'
14244fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014245rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14246rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014247
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014248if mkdir -p . 2>/dev/null; then
Benny Prijono36d32492011-12-28 08:42:23 +000014249 as_mkdir_p=:
Benny Prijono39ae2da2006-10-13 17:57:42 +000014250else
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014251 test -d ./-p && rmdir ./-p
14252 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +000014253fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +000014254
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014255if test -x / >/dev/null 2>&1; then
14256 as_test_x='test -x'
14257else
14258 if ls -dL / >/dev/null 2>&1; then
14259 as_ls_L_option=L
14260 else
14261 as_ls_L_option=
14262 fi
14263 as_test_x='
14264 eval sh -c '\''
14265 if test -d "$1"; then
Benny Prijono36d32492011-12-28 08:42:23 +000014266 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014267 else
Benny Prijono36d32492011-12-28 08:42:23 +000014268 case $1 in
14269 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014270 esac;
Benny Prijono36d32492011-12-28 08:42:23 +000014271 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014272 ???[sx]*):;;*)false;;esac;fi
14273 '\'' sh
14274 '
14275fi
14276as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014277
14278# Sed expression to map a string onto a valid CPP name.
14279as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14280
14281# Sed expression to map a string onto a valid variable name.
14282as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14283
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014284
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014285exec 6>&1
14286
Benny Prijono36d32492011-12-28 08:42:23 +000014287# Save the log message, to keep $[0] and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014288# report actual input values of CONFIG_FILES etc. instead of their
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014289# values after options handling.
14290ac_log="
Benny Prijono8a9b3b22010-01-14 14:46:54 +000014291This file was extended by pjproject $as_me 1.x, which was
Benny Prijono36d32492011-12-28 08:42:23 +000014292generated by GNU Autoconf 2.61. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014293
14294 CONFIG_FILES = $CONFIG_FILES
14295 CONFIG_HEADERS = $CONFIG_HEADERS
14296 CONFIG_LINKS = $CONFIG_LINKS
14297 CONFIG_COMMANDS = $CONFIG_COMMANDS
14298 $ $0 $@
14299
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014300on `(hostname || uname -n) 2>/dev/null | sed 1q`
14301"
14302
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014303_ACEOF
14304
Benny Prijono36d32492011-12-28 08:42:23 +000014305cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014306# Files that config.status was made for.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014307config_files="$ac_config_files"
14308config_headers="$ac_config_headers"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014309
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014310_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014311
Benny Prijono36d32492011-12-28 08:42:23 +000014312cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014313ac_cs_usage="\
Benny Prijono36d32492011-12-28 08:42:23 +000014314\`$as_me' instantiates files from templates according to the
14315current configuration.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014316
Benny Prijono36d32492011-12-28 08:42:23 +000014317Usage: $0 [OPTIONS] [FILE]...
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014318
14319 -h, --help print this help, then exit
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014320 -V, --version print version number and configuration settings, then exit
Benny Prijono36d32492011-12-28 08:42:23 +000014321 -q, --quiet do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014322 -d, --debug don't remove temporary files
14323 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijono36d32492011-12-28 08:42:23 +000014324 --file=FILE[:TEMPLATE]
14325 instantiate the configuration file FILE
14326 --header=FILE[:TEMPLATE]
14327 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014328
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014329Configuration files:
14330$config_files
14331
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014332Configuration headers:
14333$config_headers
14334
Benny Prijono36d32492011-12-28 08:42:23 +000014335Report bugs to <bug-autoconf@gnu.org>."
Benny Prijonoe2746132008-09-27 13:16:35 +000014336
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014337_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000014338cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014339ac_cs_version="\\
Benny Prijono8a9b3b22010-01-14 14:46:54 +000014340pjproject config.status 1.x
Benny Prijono36d32492011-12-28 08:42:23 +000014341configured by $0, generated by GNU Autoconf 2.61,
14342 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014343
Benny Prijono36d32492011-12-28 08:42:23 +000014344Copyright (C) 2006 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014345This config.status script is free software; the Free Software Foundation
14346gives unlimited permission to copy, distribute and modify it."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014347
14348ac_pwd='$ac_pwd'
14349srcdir='$srcdir'
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014350_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014351
Benny Prijono36d32492011-12-28 08:42:23 +000014352cat >>$CONFIG_STATUS <<\_ACEOF
14353# If no file are specified by the user, then we need to provide default
14354# value. By we need to know if files were specified by the user.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014355ac_need_defaults=:
14356while test $# != 0
14357do
14358 case $1 in
14359 --*=*)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014360 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14361 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014362 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014363 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014364 *)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014365 ac_option=$1
14366 ac_optarg=$2
14367 ac_shift=shift
14368 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014369 esac
14370
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014371 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014372 # Handling of the options.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014373 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014374 ac_cs_recheck=: ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014375 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Benny Prijono36d32492011-12-28 08:42:23 +000014376 echo "$ac_cs_version"; exit ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014377 --debug | --debu | --deb | --de | --d | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014378 debug=: ;;
14379 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014380 $ac_shift
Benny Prijono36d32492011-12-28 08:42:23 +000014381 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014382 ac_need_defaults=false;;
14383 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014384 $ac_shift
Benny Prijono36d32492011-12-28 08:42:23 +000014385 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014386 ac_need_defaults=false;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014387 --he | --h)
14388 # Conflict between --help and --header
Benny Prijono36d32492011-12-28 08:42:23 +000014389 { echo "$as_me: error: ambiguous option: $1
14390Try \`$0 --help' for more information." >&2
14391 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014392 --help | --hel | -h )
Benny Prijono36d32492011-12-28 08:42:23 +000014393 echo "$ac_cs_usage"; exit ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14395 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14396 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014397
14398 # This is an error.
Benny Prijono36d32492011-12-28 08:42:23 +000014399 -*) { echo "$as_me: error: unrecognized option: $1
14400Try \`$0 --help' for more information." >&2
14401 { (exit 1); exit 1; }; } ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014402
Benny Prijono36d32492011-12-28 08:42:23 +000014403 *) ac_config_targets="$ac_config_targets $1"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014404 ac_need_defaults=false ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014405
14406 esac
14407 shift
14408done
14409
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014410ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014411
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014412if $ac_cs_silent; then
14413 exec 6>/dev/null
14414 ac_configure_extra_args="$ac_configure_extra_args --silent"
14415fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014416
14417_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000014418cat >>$CONFIG_STATUS <<_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014419if \$ac_cs_recheck; then
Benny Prijono36d32492011-12-28 08:42:23 +000014420 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14421 CONFIG_SHELL=$SHELL
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014422 export CONFIG_SHELL
Benny Prijono36d32492011-12-28 08:42:23 +000014423 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014424fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014425
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014426_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000014427cat >>$CONFIG_STATUS <<\_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014428exec 5>>config.log
14429{
14430 echo
14431 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14432## Running $as_me. ##
14433_ASBOX
Benny Prijono36d32492011-12-28 08:42:23 +000014434 echo "$ac_log"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014435} >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014436
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014437_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000014438cat >>$CONFIG_STATUS <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014439_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014440
Benny Prijono36d32492011-12-28 08:42:23 +000014441cat >>$CONFIG_STATUS <<\_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014442
14443# Handling of arguments.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014444for ac_config_target in $ac_config_targets
14445do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014446 case $ac_config_target in
14447 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
14448 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
14449 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
14450 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
14451 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
14452 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
14453 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
Benny Prijono8ec5eae2010-05-12 10:59:20 +000014454 "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014455 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
14456 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
14457 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
14458 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014459 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijono8a9b3b22010-01-14 14:46:54 +000014460 "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 +000014461
Benny Prijono36d32492011-12-28 08:42:23 +000014462 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14463echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14464 { (exit 1); exit 1; }; };;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014465 esac
14466done
14467
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014468
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014469# If the user did not use the arguments to specify the items to instantiate,
14470# then the envvar interface is used. Set only those that are not.
14471# We use the long form for the default assignment because of an extremely
14472# bizarre bug on SunOS 4.1.3.
14473if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014474 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014475 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14476fi
14477
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014478# Have a temporary directory for convenience. Make it in the build tree
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014479# simply because there is no reason against having it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014480# creating and moving files from /tmp can sometimes cause problems.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014481# Hook for its removal unless debugging.
14482# Note that there is a small window in which the directory will not be cleaned:
14483# after its creation but before its name has been assigned to `$tmp'.
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014484$debug ||
14485{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014486 tmp=
14487 trap 'exit_status=$?
14488 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14489' 0
Benny Prijono36d32492011-12-28 08:42:23 +000014490 trap '{ (exit 1); exit 1; }' 1 2 13 15
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014491}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014492# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014493
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014494{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014495 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014496 test -n "$tmp" && test -d "$tmp"
14497} ||
14498{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014499 tmp=./conf$$-$RANDOM
14500 (umask 077 && mkdir "$tmp")
Benny Prijono36d32492011-12-28 08:42:23 +000014501} ||
14502{
14503 echo "$me: cannot create a temporary directory in ." >&2
14504 { (exit 1); exit 1; }
14505}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014506
Benny Prijono36d32492011-12-28 08:42:23 +000014507#
14508# Set up the sed scripts for CONFIG_FILES section.
14509#
14510
14511# No need to generate the scripts if there are no CONFIG_FILES.
14512# This happens for instance when ./config.status config.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014513if test -n "$CONFIG_FILES"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014514
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014515_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014516
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014517
Benny Prijono36d32492011-12-28 08:42:23 +000014518
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014519ac_delim='%!_!# '
14520for ac_last_try in false false false false false :; do
Benny Prijono36d32492011-12-28 08:42:23 +000014521 cat >conf$$subs.sed <<_ACEOF
14522SHELL!$SHELL$ac_delim
14523PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14524PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14525PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14526PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14527PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14528PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14529exec_prefix!$exec_prefix$ac_delim
14530prefix!$prefix$ac_delim
14531program_transform_name!$program_transform_name$ac_delim
14532bindir!$bindir$ac_delim
14533sbindir!$sbindir$ac_delim
14534libexecdir!$libexecdir$ac_delim
14535datarootdir!$datarootdir$ac_delim
14536datadir!$datadir$ac_delim
14537sysconfdir!$sysconfdir$ac_delim
14538sharedstatedir!$sharedstatedir$ac_delim
14539localstatedir!$localstatedir$ac_delim
14540includedir!$includedir$ac_delim
14541oldincludedir!$oldincludedir$ac_delim
14542docdir!$docdir$ac_delim
14543infodir!$infodir$ac_delim
14544htmldir!$htmldir$ac_delim
14545dvidir!$dvidir$ac_delim
14546pdfdir!$pdfdir$ac_delim
14547psdir!$psdir$ac_delim
14548libdir!$libdir$ac_delim
14549localedir!$localedir$ac_delim
14550mandir!$mandir$ac_delim
14551DEFS!$DEFS$ac_delim
14552ECHO_C!$ECHO_C$ac_delim
14553ECHO_N!$ECHO_N$ac_delim
14554ECHO_T!$ECHO_T$ac_delim
14555LIBS!$LIBS$ac_delim
14556build_alias!$build_alias$ac_delim
14557host_alias!$host_alias$ac_delim
14558target_alias!$target_alias$ac_delim
14559build!$build$ac_delim
14560build_cpu!$build_cpu$ac_delim
14561build_vendor!$build_vendor$ac_delim
14562build_os!$build_os$ac_delim
14563host!$host$ac_delim
14564host_cpu!$host_cpu$ac_delim
14565host_vendor!$host_vendor$ac_delim
14566host_os!$host_os$ac_delim
14567target!$target$ac_delim
14568target_cpu!$target_cpu$ac_delim
14569target_vendor!$target_vendor$ac_delim
14570target_os!$target_os$ac_delim
14571CC!$CC$ac_delim
14572CFLAGS!$CFLAGS$ac_delim
14573LDFLAGS!$LDFLAGS$ac_delim
14574CPPFLAGS!$CPPFLAGS$ac_delim
14575ac_ct_CC!$ac_ct_CC$ac_delim
14576EXEEXT!$EXEEXT$ac_delim
14577OBJEXT!$OBJEXT$ac_delim
14578CXX!$CXX$ac_delim
14579CXXFLAGS!$CXXFLAGS$ac_delim
14580ac_ct_CXX!$ac_ct_CXX$ac_delim
14581AR!$AR$ac_delim
14582LD!$LD$ac_delim
14583LDOUT!$LDOUT$ac_delim
14584RANLIB!$RANLIB$ac_delim
14585LIBEXT!$LIBEXT$ac_delim
14586LIBEXT2!$LIBEXT2$ac_delim
14587CC_OUT!$CC_OUT$ac_delim
14588CC_INC!$CC_INC$ac_delim
14589CC_DEF!$CC_DEF$ac_delim
14590CC_OPTIMIZE!$CC_OPTIMIZE$ac_delim
14591CC_CFLAGS!$CC_CFLAGS$ac_delim
14592ac_pjdir!$ac_pjdir$ac_delim
14593ac_build_mak_vars!$ac_build_mak_vars$ac_delim
14594CPP!$CPP$ac_delim
14595GREP!$GREP$ac_delim
14596EGREP!$EGREP$ac_delim
14597ac_os_objs!$ac_os_objs$ac_delim
14598ac_external_speex!$ac_external_speex$ac_delim
14599ac_external_gsm!$ac_external_gsm$ac_delim
14600ac_pjmedia_snd!$ac_pjmedia_snd$ac_delim
14601ac_external_pa!$ac_external_pa$ac_delim
14602ac_pa_cflags!$ac_pa_cflags$ac_delim
14603ac_pa_use_alsa!$ac_pa_use_alsa$ac_delim
14604ac_pa_use_oss!$ac_pa_use_oss$ac_delim
14605ac_pjmedia_video!$ac_pjmedia_video$ac_delim
14606ac_pjmedia_video_has_ios!$ac_pjmedia_video_has_ios$ac_delim
14607ac_ios_cflags!$ac_ios_cflags$ac_delim
14608ac_pjmedia_video_has_qt!$ac_pjmedia_video_has_qt$ac_delim
14609ac_qt_cflags!$ac_qt_cflags$ac_delim
14610ac_no_small_filter!$ac_no_small_filter$ac_delim
14611ac_no_large_filter!$ac_no_large_filter$ac_delim
14612ac_no_speex_aec!$ac_no_speex_aec$ac_delim
14613ac_no_g711_codec!$ac_no_g711_codec$ac_delim
14614ac_no_l16_codec!$ac_no_l16_codec$ac_delim
14615ac_no_gsm_codec!$ac_no_gsm_codec$ac_delim
14616ac_no_g722_codec!$ac_no_g722_codec$ac_delim
14617ac_no_g7221_codec!$ac_no_g7221_codec$ac_delim
14618ac_no_speex_codec!$ac_no_speex_codec$ac_delim
14619_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014620
Benny Prijono36d32492011-12-28 08:42:23 +000014621 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014622 break
14623 elif $ac_last_try; then
Benny Prijono36d32492011-12-28 08:42:23 +000014624 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14625echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14626 { (exit 1); exit 1; }; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014627 else
14628 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014629 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014630done
14631
Benny Prijono36d32492011-12-28 08:42:23 +000014632ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14633if test -n "$ac_eof"; then
14634 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14635 ac_eof=`expr $ac_eof + 1`
14636fi
14637
14638cat >>$CONFIG_STATUS <<_ACEOF
14639cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14640/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014641_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000014642sed '
14643s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14644s/^/s,@/; s/!/@,|#_!!_#|/
14645:n
14646t n
14647s/'"$ac_delim"'$/,g/; t
14648s/$/\\/; p
14649N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14650' >>$CONFIG_STATUS <conf$$subs.sed
14651rm -f conf$$subs.sed
14652cat >>$CONFIG_STATUS <<_ACEOF
14653CEOF$ac_eof
Benny Prijonod4306432010-05-01 22:05:41 +000014654_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000014655
14656
14657ac_delim='%!_!# '
14658for ac_last_try in false false false false false :; do
14659 cat >conf$$subs.sed <<_ACEOF
14660ac_no_ilbc_codec!$ac_no_ilbc_codec$ac_delim
14661ac_sdl_cflags!$ac_sdl_cflags$ac_delim
14662ac_sdl_ldflags!$ac_sdl_ldflags$ac_delim
14663ac_has_ffmpeg!$ac_has_ffmpeg$ac_delim
14664ac_ffmpeg_cflags!$ac_ffmpeg_cflags$ac_delim
14665ac_ffmpeg_ldflags!$ac_ffmpeg_ldflags$ac_delim
14666ac_v4l2_cflags!$ac_v4l2_cflags$ac_delim
14667ac_v4l2_ldflags!$ac_v4l2_ldflags$ac_delim
14668ac_no_ssl!$ac_no_ssl$ac_delim
14669openssl_h_present!$openssl_h_present$ac_delim
14670libssl_present!$libssl_present$ac_delim
14671libcrypto_present!$libcrypto_present$ac_delim
14672ac_no_opencore_amrnb!$ac_no_opencore_amrnb$ac_delim
14673opencore_amrnb_h_present!$opencore_amrnb_h_present$ac_delim
14674opencore_amrnb_present!$opencore_amrnb_present$ac_delim
14675ac_cross_compile!$ac_cross_compile$ac_delim
14676ac_linux_poll!$ac_linux_poll$ac_delim
14677ac_host!$ac_host$ac_delim
14678ac_main_obj!$ac_main_obj$ac_delim
14679LIBOBJS!$LIBOBJS$ac_delim
14680LTLIBOBJS!$LTLIBOBJS$ac_delim
Benny Prijonod4306432010-05-01 22:05:41 +000014681_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014682
Benny Prijono36d32492011-12-28 08:42:23 +000014683 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
14684 break
14685 elif $ac_last_try; then
14686 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14687echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14688 { (exit 1); exit 1; }; }
14689 else
14690 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14691 fi
14692done
14693
14694ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14695if test -n "$ac_eof"; then
14696 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14697 ac_eof=`expr $ac_eof + 1`
14698fi
14699
14700cat >>$CONFIG_STATUS <<_ACEOF
14701cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14702/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14703_ACEOF
14704sed '
14705s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14706s/^/s,@/; s/!/@,|#_!!_#|/
14707:n
14708t n
14709s/'"$ac_delim"'$/,g/; t
14710s/$/\\/; p
14711N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14712' >>$CONFIG_STATUS <conf$$subs.sed
14713rm -f conf$$subs.sed
14714cat >>$CONFIG_STATUS <<_ACEOF
14715:end
14716s/|#_!!_#|//g
14717CEOF$ac_eof
14718_ACEOF
14719
14720
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014721# VPATH may cause trouble with some makes, so we remove $(srcdir),
14722# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14723# trailing colons and then remove the whole line if VPATH becomes empty
14724# (actually we leave an empty line to preserve line numbers).
14725if test "x$srcdir" = x.; then
14726 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14727s/:*\$(srcdir):*/:/
14728s/:*\${srcdir}:*/:/
14729s/:*@srcdir@:*/:/
14730s/^\([^=]*=[ ]*\):*/\1/
14731s/:*$//
14732s/^[^=]*=[ ]*$//
14733}'
14734fi
14735
Benny Prijono36d32492011-12-28 08:42:23 +000014736cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014737fi # test -n "$CONFIG_FILES"
14738
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014739
Benny Prijono36d32492011-12-28 08:42:23 +000014740for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014741do
14742 case $ac_tag in
14743 :[FHLC]) ac_mode=$ac_tag; continue;;
14744 esac
14745 case $ac_mode$ac_tag in
14746 :[FHL]*:*);;
Benny Prijono36d32492011-12-28 08:42:23 +000014747 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14748echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14749 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014750 :[FH]-) ac_tag=-:-;;
14751 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14752 esac
14753 ac_save_IFS=$IFS
14754 IFS=:
14755 set x $ac_tag
14756 IFS=$ac_save_IFS
14757 shift
14758 ac_file=$1
14759 shift
14760
14761 case $ac_mode in
14762 :L) ac_source=$1;;
14763 :[FH])
14764 ac_file_inputs=
14765 for ac_f
14766 do
14767 case $ac_f in
14768 -) ac_f="$tmp/stdin";;
14769 *) # Look for the file first in the build tree, then in the source tree
14770 # (if the path is not absolute). The absolute path cannot be DOS-style,
14771 # because $ac_f cannot contain `:'.
14772 test -f "$ac_f" ||
14773 case $ac_f in
14774 [\\/$]*) false;;
14775 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14776 esac ||
Benny Prijono36d32492011-12-28 08:42:23 +000014777 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14778echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14779 { (exit 1); exit 1; }; };;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014780 esac
Benny Prijono36d32492011-12-28 08:42:23 +000014781 ac_file_inputs="$ac_file_inputs $ac_f"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014782 done
14783
14784 # Let's still pretend it is `configure' which instantiates (i.e., don't
14785 # use $as_me), people would be surprised to read:
14786 # /* config.h. Generated by config.status. */
Benny Prijono36d32492011-12-28 08:42:23 +000014787 configure_input="Generated from "`IFS=:
14788 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014789 if test x"$ac_file" != x-; then
14790 configure_input="$ac_file. $configure_input"
Benny Prijono36d32492011-12-28 08:42:23 +000014791 { echo "$as_me:$LINENO: creating $ac_file" >&5
14792echo "$as_me: creating $ac_file" >&6;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014793 fi
14794
14795 case $ac_tag in
Benny Prijono36d32492011-12-28 08:42:23 +000014796 *:-:* | *:-) cat >"$tmp/stdin";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014797 esac
14798 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014799 esac
14800
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014801 ac_dir=`$as_dirname -- "$ac_file" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014802$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14803 X"$ac_file" : 'X\(//\)[^/]' \| \
14804 X"$ac_file" : 'X\(//\)$' \| \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014805 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono36d32492011-12-28 08:42:23 +000014806echo X"$ac_file" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14808 s//\1/
14809 q
14810 }
14811 /^X\(\/\/\)[^/].*/{
14812 s//\1/
14813 q
14814 }
14815 /^X\(\/\/\)$/{
14816 s//\1/
14817 q
14818 }
14819 /^X\(\/\).*/{
14820 s//\1/
14821 q
14822 }
14823 s/.*/./; q'`
Benny Prijono36d32492011-12-28 08:42:23 +000014824 { as_dir="$ac_dir"
14825 case $as_dir in #(
14826 -*) as_dir=./$as_dir;;
14827 esac
14828 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14829 as_dirs=
14830 while :; do
14831 case $as_dir in #(
14832 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14833 *) as_qdir=$as_dir;;
14834 esac
14835 as_dirs="'$as_qdir' $as_dirs"
14836 as_dir=`$as_dirname -- "$as_dir" ||
14837$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14838 X"$as_dir" : 'X\(//\)[^/]' \| \
14839 X"$as_dir" : 'X\(//\)$' \| \
14840 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14841echo X"$as_dir" |
14842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14843 s//\1/
14844 q
14845 }
14846 /^X\(\/\/\)[^/].*/{
14847 s//\1/
14848 q
14849 }
14850 /^X\(\/\/\)$/{
14851 s//\1/
14852 q
14853 }
14854 /^X\(\/\).*/{
14855 s//\1/
14856 q
14857 }
14858 s/.*/./; q'`
14859 test -d "$as_dir" && break
14860 done
14861 test -z "$as_dirs" || eval "mkdir $as_dirs"
14862 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14863echo "$as_me: error: cannot create directory $as_dir" >&2;}
14864 { (exit 1); exit 1; }; }; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014865 ac_builddir=.
14866
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014867case "$ac_dir" in
14868.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14869*)
Benny Prijono36d32492011-12-28 08:42:23 +000014870 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014871 # A ".." for each directory in $ac_dir_suffix.
Benny Prijono36d32492011-12-28 08:42:23 +000014872 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014873 case $ac_top_builddir_sub in
14874 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14875 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14876 esac ;;
14877esac
14878ac_abs_top_builddir=$ac_pwd
14879ac_abs_builddir=$ac_pwd$ac_dir_suffix
14880# for backward compatibility:
14881ac_top_builddir=$ac_top_build_prefix
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014882
14883case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014884 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014885 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014886 ac_top_srcdir=$ac_top_builddir_sub
14887 ac_abs_top_srcdir=$ac_pwd ;;
14888 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014889 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014890 ac_top_srcdir=$srcdir
14891 ac_abs_top_srcdir=$srcdir ;;
14892 *) # Relative name.
14893 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14894 ac_top_srcdir=$ac_top_build_prefix$srcdir
14895 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014896esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014897ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono9489e7a2008-09-19 22:18:50 +000014898
Benny Prijonoe2746132008-09-27 13:16:35 +000014899
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014900 case $ac_mode in
14901 :F)
14902 #
14903 # CONFIG_FILE
14904 #
Benny Prijonoe2746132008-09-27 13:16:35 +000014905
Benny Prijonoe2746132008-09-27 13:16:35 +000014906_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014907
Benny Prijono36d32492011-12-28 08:42:23 +000014908cat >>$CONFIG_STATUS <<\_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014909# If the template does not know about datarootdir, expand it.
14910# FIXME: This hack should be removed a few years after 2.60.
14911ac_datarootdir_hack=; ac_datarootdir_seen=
Benny Prijono36d32492011-12-28 08:42:23 +000014912
14913case `sed -n '/datarootdir/ {
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014914 p
14915 q
14916}
14917/@datadir@/p
14918/@docdir@/p
14919/@infodir@/p
14920/@localedir@/p
Benny Prijono36d32492011-12-28 08:42:23 +000014921/@mandir@/p
14922' $ac_file_inputs` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014923*datarootdir*) ac_datarootdir_seen=yes;;
14924*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Benny Prijono36d32492011-12-28 08:42:23 +000014925 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14926echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014927_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000014928cat >>$CONFIG_STATUS <<_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014929 ac_datarootdir_hack='
14930 s&@datadir@&$datadir&g
14931 s&@docdir@&$docdir&g
14932 s&@infodir@&$infodir&g
14933 s&@localedir@&$localedir&g
14934 s&@mandir@&$mandir&g
Benny Prijono36d32492011-12-28 08:42:23 +000014935 s&\\\${datarootdir}&$datarootdir&g' ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014936esac
14937_ACEOF
14938
14939# Neutralize VPATH when `$srcdir' = `.'.
14940# Shell code in configure.ac might set extrasub.
14941# FIXME: do we really want to maintain this feature?
Benny Prijono36d32492011-12-28 08:42:23 +000014942cat >>$CONFIG_STATUS <<_ACEOF
14943 sed "$ac_vpsub
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014944$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +000014945_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000014946cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014947:t
14948/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Benny Prijono36d32492011-12-28 08:42:23 +000014949s&@configure_input@&$configure_input&;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014950s&@top_builddir@&$ac_top_builddir_sub&;t t
14951s&@srcdir@&$ac_srcdir&;t t
14952s&@abs_srcdir@&$ac_abs_srcdir&;t t
14953s&@top_srcdir@&$ac_top_srcdir&;t t
14954s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14955s&@builddir@&$ac_builddir&;t t
14956s&@abs_builddir@&$ac_abs_builddir&;t t
14957s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14958$ac_datarootdir_hack
Benny Prijono36d32492011-12-28 08:42:23 +000014959" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Benny Prijonoc4c61d02006-08-20 20:47:34 +000014960
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014961test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14962 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14963 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Benny Prijono36d32492011-12-28 08:42:23 +000014964 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014965which seems to be undefined. Please make sure it is defined." >&5
Benny Prijono36d32492011-12-28 08:42:23 +000014966echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014967which seems to be undefined. Please make sure it is defined." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014968
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014969 rm -f "$tmp/stdin"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014970 case $ac_file in
Benny Prijono36d32492011-12-28 08:42:23 +000014971 -) cat "$tmp/out"; rm -f "$tmp/out";;
14972 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14973 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000014974 ;;
14975 :H)
14976 #
14977 # CONFIG_HEADER
14978 #
Benny Prijono36d32492011-12-28 08:42:23 +000014979_ACEOF
14980
14981# Transform confdefs.h into a sed script `conftest.defines', that
14982# substitutes the proper values into config.h.in to produce config.h.
14983rm -f conftest.defines conftest.tail
14984# First, append a space to every undef/define line, to ease matching.
14985echo 's/$/ /' >conftest.defines
14986# Then, protect against being on the right side of a sed subst, or in
14987# an unquoted here document, in config.status. If some macros were
14988# called several times there might be several #defines for the same
14989# symbol, which is useless. But do not sort them, since the last
14990# AC_DEFINE must be honored.
14991ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14992# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14993# NAME is the cpp macro being defined, VALUE is the value it is being given.
14994# PARAMS is the parameter list in the macro definition--in most cases, it's
14995# just an empty string.
14996ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14997ac_dB='\\)[ (].*,\\1define\\2'
14998ac_dC=' '
14999ac_dD=' ,'
15000
15001uniq confdefs.h |
15002 sed -n '
15003 t rset
15004 :rset
15005 s/^[ ]*#[ ]*define[ ][ ]*//
15006 t ok
15007 d
15008 :ok
15009 s/[\\&,]/\\&/g
15010 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15011 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15012 ' >>conftest.defines
15013
15014# Remove the space that was appended to ease matching.
15015# Then replace #undef with comments. This is necessary, for
15016# example, in the case of _POSIX_SOURCE, which is predefined and required
15017# on some systems where configure will not decide to define it.
15018# (The regexp can be short, since the line contains either #define or #undef.)
15019echo 's/ $//
15020s,^[ #]*u.*,/* & */,' >>conftest.defines
15021
15022# Break up conftest.defines:
15023ac_max_sed_lines=50
15024
15025# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15026# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15027# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15028# et cetera.
15029ac_in='$ac_file_inputs'
15030ac_out='"$tmp/out1"'
15031ac_nxt='"$tmp/out2"'
15032
15033while :
15034do
15035 # Write a here document:
15036 cat >>$CONFIG_STATUS <<_ACEOF
15037 # First, check the format of the line:
15038 cat >"\$tmp/defines.sed" <<\\CEOF
15039/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15040/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15041b
15042:def
15043_ACEOF
15044 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15045 echo 'CEOF
15046 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15047 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15048 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15049 grep . conftest.tail >/dev/null || break
15050 rm -f conftest.defines
15051 mv conftest.tail conftest.defines
15052done
15053rm -f conftest.defines conftest.tail
15054
15055echo "ac_result=$ac_in" >>$CONFIG_STATUS
15056cat >>$CONFIG_STATUS <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +000015057 if test x"$ac_file" != x-; then
Benny Prijono36d32492011-12-28 08:42:23 +000015058 echo "/* $configure_input */" >"$tmp/config.h"
15059 cat "$ac_result" >>"$tmp/config.h"
15060 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15061 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15062echo "$as_me: $ac_file is unchanged" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +000015063 else
Benny Prijono36d32492011-12-28 08:42:23 +000015064 rm -f $ac_file
15065 mv "$tmp/config.h" $ac_file
Benny Prijonoa9b372a2006-07-24 02:07:11 +000015066 fi
15067 else
Benny Prijono36d32492011-12-28 08:42:23 +000015068 echo "/* $configure_input */"
15069 cat "$ac_result"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000015070 fi
Benny Prijono36d32492011-12-28 08:42:23 +000015071 rm -f "$tmp/out12"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000015072 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +000015073
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000015074
15075 esac
15076
15077done # for ac_tag
15078
Benny Prijonoa9b372a2006-07-24 02:07:11 +000015079
Benny Prijono36d32492011-12-28 08:42:23 +000015080{ (exit 0); exit 0; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +000015081_ACEOF
Benny Prijono36d32492011-12-28 08:42:23 +000015082chmod +x $CONFIG_STATUS
Benny Prijonoa9b372a2006-07-24 02:07:11 +000015083ac_clean_files=$ac_clean_files_save
15084
Benny Prijono7e0d75f2006-12-25 20:34:14 +000015085
Benny Prijonoa9b372a2006-07-24 02:07:11 +000015086# configure is writing to config.log, and then calls config.status.
15087# config.status does its own redirection, appending to config.log.
15088# Unfortunately, on DOS this fails, as config.log is still kept open
15089# by configure, so config.status won't be able to write to it; its
15090# output is simply discarded. So we exec the FD to /dev/null,
15091# effectively closing config.log, so it can be properly (re)opened and
15092# appended to by config.status. When coming back to configure, we
15093# need to make the FD available again.
15094if test "$no_create" != yes; then
15095 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +000015096 ac_config_status_args=
15097 test "$silent" = yes &&
15098 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +000015099 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +000015100 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +000015101 exec 5>>config.log
15102 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15103 # would make configure fail if this is the last instruction.
Benny Prijono36d32492011-12-28 08:42:23 +000015104 $ac_cs_success || { (exit 1); exit 1; }
Benny Prijonod5233702010-01-13 13:09:45 +000015105fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +000015106
Benny Prijono7e0d75f2006-12-25 20:34:14 +000015107
Benny Prijonod9627842007-04-18 09:24:31 +000015108
Benny Prijono36d32492011-12-28 08:42:23 +000015109{ echo "$as_me:$LINENO: result:
Benny Prijonod9627842007-04-18 09:24:31 +000015110
Benny Prijonoc16c6e32007-11-18 14:53:47 +000015111Configurations 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 +000015112
Benny Prijonoc16c6e32007-11-18 14:53:47 +000015113Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000015114 - 'user.mak'
15115 - 'pjlib/include/pj/config_site.h'
15116
15117The next step now is to run 'make dep' and 'make'.
15118" >&5
Benny Prijono36d32492011-12-28 08:42:23 +000015119echo "${ECHO_T}
Benny Prijonod9627842007-04-18 09:24:31 +000015120
Benny Prijonoc16c6e32007-11-18 14:53:47 +000015121Configurations 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 +000015122
Benny Prijonoc16c6e32007-11-18 14:53:47 +000015123Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +000015124 - 'user.mak'
15125 - 'pjlib/include/pj/config_site.h'
15126
15127The next step now is to run 'make dep' and 'make'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000015128" >&6; }
Benny Prijonod9627842007-04-18 09:24:31 +000015129