blob: 19ded4796d2eba04a031ed72c3b770541922de7b [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijonof8957782011-04-11 02:43:04 +00003# Generated by GNU Autoconf 2.65 for pjproject 1.x.
4#
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005#
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Benny Prijonof8957782011-04-11 02:43:04 +00007# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# Inc.
9#
10#
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
Benny Prijonof8957782011-04-11 02:43:04 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +000016
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijonof8957782011-04-11 02:43:04 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +000020 emulate sh
21 NULLCMD=:
Benny Prijonof8957782011-04-11 02:43:04 +000022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000025 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +000026else
Benny Prijonof8957782011-04-11 02:43:04 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000032esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +000033fi
34
35
Benny Prijonof8957782011-04-11 02:43:04 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
Benny Prijonod5233702010-01-13 13:09:45 +000073
Benny Prijono7e0d75f2006-12-25 20:34:14 +000074# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijonof8957782011-04-11 02:43:04 +000076 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000081fi
82
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000089IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
Benny Prijonof8957782011-04-11 02:43:04 +000092case $0 in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000093 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000095for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
Benny Prijonof8957782011-04-11 02:43:04 +000099 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000101IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000102
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
Benny Prijonof8957782011-04-11 02:43:04 +0000111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000113fi
114
Benny Prijonof8957782011-04-11 02:43:04 +0000115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
Benny Prijonof8957782011-04-11 02:43:04 +0000128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
Benny Prijonoc45d9512010-12-10 11:04:30 +0000132
Benny Prijonof8957782011-04-11 02:43:04 +0000133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378else
379 as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384else
385 as_basename=false
386fi
387
Benny Prijonof8957782011-04-11 02:43:04 +0000388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000393
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonof8957782011-04-11 02:43:04 +0000398$as_echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
Benny Prijonof8957782011-04-11 02:43:04 +0000413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000419
420
Benny Prijonof8957782011-04-11 02:43:04 +0000421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000430 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000435 N
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000438 t loop
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000439 s/-\n.*//
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000440 ' >$as_me.lineno &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000441 chmod +x "$as_me.lineno" ||
Benny Prijonof8957782011-04-11 02:43:04 +0000442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000448 # Exit status is that of the last command.
449 exit
450}
451
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000452ECHO_C= ECHO_N= ECHO_T=
Benny Prijonof8957782011-04-11 02:43:04 +0000453case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000454-n*)
Benny Prijonof8957782011-04-11 02:43:04 +0000455 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijonof8957782011-04-11 02:43:04 +0000457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000460 esac;;
461*)
462 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000463esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000464
465rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
Benny Prijonof8957782011-04-11 02:43:04 +0000470 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000471fi
Benny Prijonof8957782011-04-11 02:43:04 +0000472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000484 as_ln_s='cp -p'
Benny Prijonof8957782011-04-11 02:43:04 +0000485 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000486else
487 as_ln_s='cp -p'
488fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000491
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000492if mkdir -p . 2>/dev/null; then
Benny Prijonof8957782011-04-11 02:43:04 +0000493 as_mkdir_p='mkdir -p "$as_dir"'
Benny Prijono39ae2da2006-10-13 17:57:42 +0000494else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +0000497fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +0000498
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
Benny Prijonof8957782011-04-11 02:43:04 +0000510 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000511 else
Benny Prijonof8957782011-04-11 02:43:04 +0000512 case $1 in #(
513 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000514 esac;
Benny Prijonof8957782011-04-11 02:43:04 +0000515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519fi
520as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000528
Benny Prijonof8957782011-04-11 02:43:04 +0000529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000531
532# Name of the host.
533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000541ac_clean_files=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000542ac_config_libobj_dir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000543LIBOBJS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000544cross_compiling=no
545subdirs=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000546MFLAGS=
547MAKEFLAGS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000548
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000549# Identity of this package.
550PACKAGE_NAME='pjproject'
551PACKAGE_TARNAME='pjproject'
Benny Prijono8a9b3b22010-01-14 14:46:54 +0000552PACKAGE_VERSION='1.x'
553PACKAGE_STRING='pjproject 1.x'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000554PACKAGE_BUGREPORT=''
Benny Prijonof8957782011-04-11 02:43:04 +0000555PACKAGE_URL=''
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000556
557# Factoring default headers for most tests.
558ac_includes_default="\
559#include <stdio.h>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000560#ifdef HAVE_SYS_TYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000561# include <sys/types.h>
562#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000563#ifdef HAVE_SYS_STAT_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000564# include <sys/stat.h>
565#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000566#ifdef STDC_HEADERS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000567# include <stdlib.h>
568# include <stddef.h>
569#else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000570# ifdef HAVE_STDLIB_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000571# include <stdlib.h>
572# endif
573#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000574#ifdef HAVE_STRING_H
575# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000576# include <memory.h>
577# endif
578# include <string.h>
579#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000580#ifdef HAVE_STRINGS_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000581# include <strings.h>
582#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000583#ifdef HAVE_INTTYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000584# include <inttypes.h>
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000585#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000586#ifdef HAVE_STDINT_H
587# include <stdint.h>
588#endif
589#ifdef HAVE_UNISTD_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000590# include <unistd.h>
591#endif"
592
Benny Prijonof8957782011-04-11 02:43:04 +0000593ac_subst_vars='LTLIBOBJS
Sauw Ming6e6c2152010-12-14 13:03:10 +0000594LIBOBJS
Benny Prijonof8957782011-04-11 02:43:04 +0000595ac_main_obj
596ac_host
597ac_linux_poll
598ac_cross_compile
599libcrypto_present
600libssl_present
601openssl_h_present
602ac_no_ssl
603ac_v4l2_ldflags
604ac_v4l2_cflags
605ac_ffmpeg_ldflags
606ac_ffmpeg_cflags
607ac_has_ffmpeg
608ac_sdl_ldflags
609ac_sdl_cflags
610ac_no_ilbc_codec
611ac_no_speex_codec
612ac_no_g7221_codec
613ac_no_g722_codec
614ac_no_gsm_codec
615ac_no_l16_codec
616ac_no_g711_codec
617ac_no_speex_aec
618ac_no_large_filter
619ac_no_small_filter
620ac_qt_cflags
621ac_pjmedia_video_has_qt
622ac_ios_cflags
623ac_pjmedia_video
624ac_pa_use_oss
625ac_pa_use_alsa
626ac_pa_cflags
627ac_external_pa
628ac_pjmedia_snd
629ac_external_gsm
630ac_external_speex
631ac_os_objs
632EGREP
633GREP
634CPP
635ac_build_mak_vars
636ac_pjdir
637CC_CFLAGS
638CC_OPTIMIZE
639CC_DEF
640CC_INC
641CC_OUT
642LIBEXT2
643LIBEXT
644RANLIB
645LDOUT
646LD
647AR
648ac_ct_CXX
649CXXFLAGS
650CXX
651OBJEXT
652EXEEXT
653ac_ct_CC
654CPPFLAGS
655LDFLAGS
656CFLAGS
657CC
658target_os
659target_vendor
660target_cpu
661target
662host_os
663host_vendor
664host_cpu
665host
666build_os
667build_vendor
668build_cpu
669build
670target_alias
671host_alias
672build_alias
673LIBS
674ECHO_T
675ECHO_N
676ECHO_C
677DEFS
678mandir
679localedir
680libdir
681psdir
682pdfdir
683dvidir
684htmldir
685infodir
686docdir
687oldincludedir
688includedir
689localstatedir
690sharedstatedir
691sysconfdir
692datadir
693datarootdir
694libexecdir
695sbindir
696bindir
697program_transform_name
698prefix
699exec_prefix
700PACKAGE_URL
701PACKAGE_BUGREPORT
702PACKAGE_STRING
703PACKAGE_VERSION
704PACKAGE_TARNAME
705PACKAGE_NAME
706PATH_SEPARATOR
707SHELL'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000708ac_subst_files=''
Benny Prijonof8957782011-04-11 02:43:04 +0000709ac_user_opts='
710enable_option_checking
711enable_floating_point
712enable_epoll
713with_external_speex
714with_external_gsm
715enable_sound
716with_external_pa
717enable_oss
718enable_ext_sound
719enable_small_filter
720enable_large_filter
721enable_speex_aec
722enable_g711_codec
723enable_l16_codec
724enable_gsm_codec
725enable_g722_codec
726enable_g7221_codec
727enable_speex_codec
728enable_ilbc_codec
729enable_libsamplerate
730enable_sdl
731enable_ffmpeg
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +0000732with_ffmpeg
Benny Prijonof8957782011-04-11 02:43:04 +0000733enable_v4l2
734enable_ipp
735with_ipp
736with_ipp_samples
737with_ipp_arch
738enable_ssl
739'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000740 ac_precious_vars='build_alias
741host_alias
742target_alias
743CC
744CFLAGS
745LDFLAGS
746LIBS
747CPPFLAGS
748CXX
749CXXFLAGS
750CCC
751CPP'
752
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000753
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000754# Initialize some variables set by options.
755ac_init_help=
756ac_init_version=false
Benny Prijonof8957782011-04-11 02:43:04 +0000757ac_unrecognized_opts=
758ac_unrecognized_sep=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000759# The variables have the same names as the options, with
760# dashes changed to underlines.
761cache_file=/dev/null
762exec_prefix=NONE
763no_create=
764no_recursion=
765prefix=NONE
766program_prefix=NONE
767program_suffix=NONE
768program_transform_name=s,x,x,
769silent=
770site=
771srcdir=
772verbose=
773x_includes=NONE
774x_libraries=NONE
775
776# Installation directory options.
777# These are left unexpanded so users can "make install exec_prefix=/foo"
778# and all the variables that are supposed to be based on exec_prefix
779# by default will actually change.
780# Use braces instead of parens because sh, perl, etc. also accept them.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000781# (The list follows the same order as the GNU Coding Standards.)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000782bindir='${exec_prefix}/bin'
783sbindir='${exec_prefix}/sbin'
784libexecdir='${exec_prefix}/libexec'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000785datarootdir='${prefix}/share'
786datadir='${datarootdir}'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000787sysconfdir='${prefix}/etc'
788sharedstatedir='${prefix}/com'
789localstatedir='${prefix}/var'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000790includedir='${prefix}/include'
791oldincludedir='/usr/include'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000792docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
793infodir='${datarootdir}/info'
794htmldir='${docdir}'
795dvidir='${docdir}'
796pdfdir='${docdir}'
797psdir='${docdir}'
798libdir='${exec_prefix}/lib'
799localedir='${datarootdir}/locale'
800mandir='${datarootdir}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000801
802ac_prev=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000803ac_dashdash=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000804for ac_option
805do
806 # If the previous option needs an argument, assign it.
807 if test -n "$ac_prev"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000808 eval $ac_prev=\$ac_option
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000809 ac_prev=
810 continue
811 fi
812
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000813 case $ac_option in
814 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
815 *) ac_optarg=yes ;;
816 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000817
818 # Accept the important Cygnus configure options, so we can diagnose typos.
819
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000820 case $ac_dashdash$ac_option in
821 --)
822 ac_dashdash=yes ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000823
824 -bindir | --bindir | --bindi | --bind | --bin | --bi)
825 ac_prev=bindir ;;
826 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
827 bindir=$ac_optarg ;;
828
829 -build | --build | --buil | --bui | --bu)
830 ac_prev=build_alias ;;
831 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
832 build_alias=$ac_optarg ;;
833
834 -cache-file | --cache-file | --cache-fil | --cache-fi \
835 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
836 ac_prev=cache_file ;;
837 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
838 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
839 cache_file=$ac_optarg ;;
840
841 --config-cache | -C)
842 cache_file=config.cache ;;
843
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000844 -datadir | --datadir | --datadi | --datad)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000845 ac_prev=datadir ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000846 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000847 datadir=$ac_optarg ;;
848
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000849 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
850 | --dataroo | --dataro | --datar)
851 ac_prev=datarootdir ;;
852 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
853 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
854 datarootdir=$ac_optarg ;;
855
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000856 -disable-* | --disable-*)
Benny Prijonof8957782011-04-11 02:43:04 +0000857 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000858 # Reject names that are not valid shell variable names.
Benny Prijonof8957782011-04-11 02:43:04 +0000859 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
860 as_fn_error "invalid feature name: $ac_useropt"
861 ac_useropt_orig=$ac_useropt
862 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863 case $ac_user_opts in
864 *"
865"enable_$ac_useropt"
866"*) ;;
867 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
868 ac_unrecognized_sep=', ';;
869 esac
870 eval enable_$ac_useropt=no ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000871
872 -docdir | --docdir | --docdi | --doc | --do)
873 ac_prev=docdir ;;
874 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
875 docdir=$ac_optarg ;;
876
877 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
878 ac_prev=dvidir ;;
879 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
880 dvidir=$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000881
882 -enable-* | --enable-*)
Benny Prijonof8957782011-04-11 02:43:04 +0000883 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000884 # Reject names that are not valid shell variable names.
Benny Prijonof8957782011-04-11 02:43:04 +0000885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886 as_fn_error "invalid feature name: $ac_useropt"
887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
890 *"
891"enable_$ac_useropt"
892"*) ;;
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
895 esac
896 eval enable_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000897
898 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
899 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
900 | --exec | --exe | --ex)
901 ac_prev=exec_prefix ;;
902 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
903 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
904 | --exec=* | --exe=* | --ex=*)
905 exec_prefix=$ac_optarg ;;
906
907 -gas | --gas | --ga | --g)
908 # Obsolete; use --with-gas.
909 with_gas=yes ;;
910
911 -help | --help | --hel | --he | -h)
912 ac_init_help=long ;;
913 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
914 ac_init_help=recursive ;;
915 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
916 ac_init_help=short ;;
917
918 -host | --host | --hos | --ho)
919 ac_prev=host_alias ;;
920 -host=* | --host=* | --hos=* | --ho=*)
921 host_alias=$ac_optarg ;;
922
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000923 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
924 ac_prev=htmldir ;;
925 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
926 | --ht=*)
927 htmldir=$ac_optarg ;;
928
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000929 -includedir | --includedir | --includedi | --included | --include \
930 | --includ | --inclu | --incl | --inc)
931 ac_prev=includedir ;;
932 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
933 | --includ=* | --inclu=* | --incl=* | --inc=*)
934 includedir=$ac_optarg ;;
935
936 -infodir | --infodir | --infodi | --infod | --info | --inf)
937 ac_prev=infodir ;;
938 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
939 infodir=$ac_optarg ;;
940
941 -libdir | --libdir | --libdi | --libd)
942 ac_prev=libdir ;;
943 -libdir=* | --libdir=* | --libdi=* | --libd=*)
944 libdir=$ac_optarg ;;
945
946 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
947 | --libexe | --libex | --libe)
948 ac_prev=libexecdir ;;
949 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
950 | --libexe=* | --libex=* | --libe=*)
951 libexecdir=$ac_optarg ;;
952
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000953 -localedir | --localedir | --localedi | --localed | --locale)
954 ac_prev=localedir ;;
955 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
956 localedir=$ac_optarg ;;
957
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000958 -localstatedir | --localstatedir | --localstatedi | --localstated \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000959 | --localstate | --localstat | --localsta | --localst | --locals)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000960 ac_prev=localstatedir ;;
961 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000962 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000963 localstatedir=$ac_optarg ;;
964
965 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
966 ac_prev=mandir ;;
967 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
968 mandir=$ac_optarg ;;
969
970 -nfp | --nfp | --nf)
971 # Obsolete; use --without-fp.
972 with_fp=no ;;
973
974 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000975 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000976 no_create=yes ;;
977
978 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
979 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
980 no_recursion=yes ;;
981
982 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
983 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
984 | --oldin | --oldi | --old | --ol | --o)
985 ac_prev=oldincludedir ;;
986 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
987 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
988 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
989 oldincludedir=$ac_optarg ;;
990
991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
992 ac_prev=prefix ;;
993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
994 prefix=$ac_optarg ;;
995
996 -program-prefix | --program-prefix | --program-prefi | --program-pref \
997 | --program-pre | --program-pr | --program-p)
998 ac_prev=program_prefix ;;
999 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1000 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1001 program_prefix=$ac_optarg ;;
1002
1003 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1004 | --program-suf | --program-su | --program-s)
1005 ac_prev=program_suffix ;;
1006 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1007 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1008 program_suffix=$ac_optarg ;;
1009
1010 -program-transform-name | --program-transform-name \
1011 | --program-transform-nam | --program-transform-na \
1012 | --program-transform-n | --program-transform- \
1013 | --program-transform | --program-transfor \
1014 | --program-transfo | --program-transf \
1015 | --program-trans | --program-tran \
1016 | --progr-tra | --program-tr | --program-t)
1017 ac_prev=program_transform_name ;;
1018 -program-transform-name=* | --program-transform-name=* \
1019 | --program-transform-nam=* | --program-transform-na=* \
1020 | --program-transform-n=* | --program-transform-=* \
1021 | --program-transform=* | --program-transfor=* \
1022 | --program-transfo=* | --program-transf=* \
1023 | --program-trans=* | --program-tran=* \
1024 | --progr-tra=* | --program-tr=* | --program-t=*)
1025 program_transform_name=$ac_optarg ;;
1026
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001027 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1028 ac_prev=pdfdir ;;
1029 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1030 pdfdir=$ac_optarg ;;
1031
1032 -psdir | --psdir | --psdi | --psd | --ps)
1033 ac_prev=psdir ;;
1034 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1035 psdir=$ac_optarg ;;
1036
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038 | -silent | --silent | --silen | --sile | --sil)
1039 silent=yes ;;
1040
1041 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1042 ac_prev=sbindir ;;
1043 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1044 | --sbi=* | --sb=*)
1045 sbindir=$ac_optarg ;;
1046
1047 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1048 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1049 | --sharedst | --shareds | --shared | --share | --shar \
1050 | --sha | --sh)
1051 ac_prev=sharedstatedir ;;
1052 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1053 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1054 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1055 | --sha=* | --sh=*)
1056 sharedstatedir=$ac_optarg ;;
1057
1058 -site | --site | --sit)
1059 ac_prev=site ;;
1060 -site=* | --site=* | --sit=*)
1061 site=$ac_optarg ;;
1062
1063 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1064 ac_prev=srcdir ;;
1065 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1066 srcdir=$ac_optarg ;;
1067
1068 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1069 | --syscon | --sysco | --sysc | --sys | --sy)
1070 ac_prev=sysconfdir ;;
1071 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1072 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1073 sysconfdir=$ac_optarg ;;
1074
1075 -target | --target | --targe | --targ | --tar | --ta | --t)
1076 ac_prev=target_alias ;;
1077 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1078 target_alias=$ac_optarg ;;
1079
1080 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1081 verbose=yes ;;
1082
1083 -version | --version | --versio | --versi | --vers | -V)
1084 ac_init_version=: ;;
1085
1086 -with-* | --with-*)
Benny Prijonof8957782011-04-11 02:43:04 +00001087 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001088 # Reject names that are not valid shell variable names.
Benny Prijonof8957782011-04-11 02:43:04 +00001089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error "invalid package name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1094 *"
1095"with_$ac_useropt"
1096"*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval with_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001101
1102 -without-* | --without-*)
Benny Prijonof8957782011-04-11 02:43:04 +00001103 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001104 # Reject names that are not valid shell variable names.
Benny Prijonof8957782011-04-11 02:43:04 +00001105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error "invalid package name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1110 *"
1111"with_$ac_useropt"
1112"*) ;;
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1115 esac
1116 eval with_$ac_useropt=no ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001117
1118 --x)
1119 # Obsolete; use --with-x.
1120 with_x=yes ;;
1121
1122 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1123 | --x-incl | --x-inc | --x-in | --x-i)
1124 ac_prev=x_includes ;;
1125 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1126 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1127 x_includes=$ac_optarg ;;
1128
1129 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1130 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1131 ac_prev=x_libraries ;;
1132 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1133 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1134 x_libraries=$ac_optarg ;;
1135
Benny Prijonof8957782011-04-11 02:43:04 +00001136 -*) as_fn_error "unrecognized option: \`$ac_option'
1137Try \`$0 --help' for more information."
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001138 ;;
1139
1140 *=*)
1141 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1142 # Reject names that are not valid shell variable names.
Benny Prijonof8957782011-04-11 02:43:04 +00001143 case $ac_envvar in #(
1144 '' | [0-9]* | *[!_$as_cr_alnum]* )
1145 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1146 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001147 eval $ac_envvar=\$ac_optarg
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001148 export $ac_envvar ;;
1149
1150 *)
1151 # FIXME: should be removed in autoconf 3.0.
Benny Prijonof8957782011-04-11 02:43:04 +00001152 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijonof8957782011-04-11 02:43:04 +00001154 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001155 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1156 ;;
1157
1158 esac
1159done
1160
1161if test -n "$ac_prev"; then
1162 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Benny Prijonof8957782011-04-11 02:43:04 +00001163 as_fn_error "missing argument to $ac_option"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001164fi
1165
Benny Prijonof8957782011-04-11 02:43:04 +00001166if test -n "$ac_unrecognized_opts"; then
1167 case $enable_option_checking in
1168 no) ;;
1169 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1170 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1171 esac
1172fi
1173
1174# Check all directory arguments for consistency.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001175for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1176 datadir sysconfdir sharedstatedir localstatedir includedir \
1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1178 libdir localedir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001179do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001180 eval ac_val=\$$ac_var
Benny Prijonof8957782011-04-11 02:43:04 +00001181 # Remove trailing slashes.
1182 case $ac_val in
1183 */ )
1184 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1185 eval $ac_var=\$ac_val;;
1186 esac
1187 # Be sure to have absolute directory names.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001188 case $ac_val in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001189 [\\/$]* | ?:[\\/]* ) continue;;
1190 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001191 esac
Benny Prijonof8957782011-04-11 02:43:04 +00001192 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001193done
1194
1195# There might be people who depend on the old broken behavior: `$host'
1196# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001197# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001198build=$build_alias
1199host=$host_alias
1200target=$target_alias
1201
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001202# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001203if test "x$host_alias" != x; then
1204 if test "x$build_alias" = x; then
1205 cross_compiling=maybe
Benny Prijonof8957782011-04-11 02:43:04 +00001206 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001207 If a cross compiler is detected then cross compile mode will be used." >&2
1208 elif test "x$build_alias" != "x$host_alias"; then
1209 cross_compiling=yes
1210 fi
1211fi
1212
1213ac_tool_prefix=
1214test -n "$host_alias" && ac_tool_prefix=$host_alias-
1215
1216test "$silent" = yes && exec 6>/dev/null
1217
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001218
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001219ac_pwd=`pwd` && test -n "$ac_pwd" &&
1220ac_ls_di=`ls -di .` &&
1221ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Benny Prijonof8957782011-04-11 02:43:04 +00001222 as_fn_error "working directory cannot be determined"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001223test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Benny Prijonof8957782011-04-11 02:43:04 +00001224 as_fn_error "pwd does not report name of working directory"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001225
1226
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001227# Find the source files, if location was not specified.
1228if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001230 # Try the directory containing this script, then the parent directory.
Benny Prijonof8957782011-04-11 02:43:04 +00001231 ac_confdir=`$as_dirname -- "$as_myself" ||
1232$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$as_myself" : 'X\(//\)[^/]' \| \
1234 X"$as_myself" : 'X\(//\)$' \| \
1235 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1236$as_echo X"$as_myself" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\/\)[^/].*/{
1242 s//\1/
1243 q
1244 }
1245 /^X\(\/\/\)$/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\).*/{
1250 s//\1/
1251 q
1252 }
1253 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001254 srcdir=$ac_confdir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001255 if test ! -r "$srcdir/$ac_unique_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001256 srcdir=..
1257 fi
1258else
1259 ac_srcdir_defaulted=no
1260fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001261if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Benny Prijonof8957782011-04-11 02:43:04 +00001263 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Benny Prijono9489e7a2008-09-19 22:18:50 +00001264fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001265ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1266ac_abs_confdir=`(
Benny Prijonof8957782011-04-11 02:43:04 +00001267 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001268 pwd)`
1269# When building in place, set srcdir=.
1270if test "$ac_abs_confdir" = "$ac_pwd"; then
1271 srcdir=.
1272fi
1273# Remove unnecessary trailing slashes from srcdir.
1274# Double slashes in file names in object file debugging info
1275# mess up M-x gdb in Emacs.
1276case $srcdir in
1277*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278esac
1279for ac_var in $ac_precious_vars; do
1280 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_env_${ac_var}_value=\$${ac_var}
1282 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1284done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001285
1286#
1287# Report the --help message.
1288#
1289if test "$ac_init_help" = "long"; then
1290 # Omit some internal or obsolete options to make the list less imposing.
1291 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001292 cat <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001293\`configure' configures pjproject 1.x to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001294
1295Usage: $0 [OPTION]... [VAR=VALUE]...
1296
1297To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298VAR=VALUE. See below for descriptions of some of the useful variables.
1299
1300Defaults for the options are specified in brackets.
1301
1302Configuration:
1303 -h, --help display this help and exit
1304 --help=short display options specific to this package
1305 --help=recursive display the short help of all the included packages
1306 -V, --version display version information and exit
1307 -q, --quiet, --silent do not print \`checking...' messages
1308 --cache-file=FILE cache test results in FILE [disabled]
1309 -C, --config-cache alias for \`--cache-file=config.cache'
1310 -n, --no-create do not create output files
1311 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1312
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001313Installation directories:
1314 --prefix=PREFIX install architecture-independent files in PREFIX
Benny Prijonof8957782011-04-11 02:43:04 +00001315 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Benny Prijonof8957782011-04-11 02:43:04 +00001317 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001318
1319By default, \`make install' will install all the files in
1320\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1321an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322for instance \`--prefix=\$HOME'.
1323
1324For better control, use the options below.
1325
1326Fine tuning of the installation directories:
Benny Prijonof8957782011-04-11 02:43:04 +00001327 --bindir=DIR user executables [EPREFIX/bin]
1328 --sbindir=DIR system admin executables [EPREFIX/sbin]
1329 --libexecdir=DIR program executables [EPREFIX/libexec]
1330 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1331 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1332 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1333 --libdir=DIR object code libraries [EPREFIX/lib]
1334 --includedir=DIR C header files [PREFIX/include]
1335 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1336 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1337 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1338 --infodir=DIR info documentation [DATAROOTDIR/info]
1339 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1340 --mandir=DIR man documentation [DATAROOTDIR/man]
1341 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1342 --htmldir=DIR html documentation [DOCDIR]
1343 --dvidir=DIR dvi documentation [DOCDIR]
1344 --pdfdir=DIR pdf documentation [DOCDIR]
1345 --psdir=DIR ps documentation [DOCDIR]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001346_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001347
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001348 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001349
1350System types:
1351 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001352 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001353 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001354_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001355fi
1356
1357if test -n "$ac_init_help"; then
1358 case $ac_init_help in
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001359 short | recursive ) echo "Configuration of pjproject 1.x:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001360 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001361 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001362
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001363Optional Features:
Benny Prijonof8957782011-04-11 02:43:04 +00001364 --disable-option-checking ignore unrecognized --enable/--with options
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001365 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1366 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1367 --disable-floating-point
1368 Disable floating point where possible
Benny Prijono9489e7a2008-09-19 22:18:50 +00001369 --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
Benny Prijono1d971622006-09-10 22:27:40 +00001370 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijono0b462322008-03-12 22:44:24 +00001371 --disable-oss Disable OSS audio (default: not disabled)
Benny Prijonoebb2c332008-07-28 23:40:58 +00001372 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001373 --disable-small-filter Exclude small filter in resampling
1374 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001375 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1376 --disable-g711-codec Exclude G.711 codecs from the build
1377 --disable-l16-codec Exclude Linear/L16 codec family from the build
1378 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +00001379 --disable-g722-codec Exclude G.722 codec in the build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001380 --disable-g7221-codec Exclude G.7221 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001381 --disable-speex-codec Exclude Speex codecs in the build
1382 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +00001383 --enable-libsamplerate Link with libsamplerate when available. Note that
1384 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijonoc45d9512010-12-10 11:04:30 +00001385 --disable-sdl Disable SDL (default: not disabled)
1386 --disable-ffmpeg Disable ffmpeg (default: not disabled)
1387 --disable-v4l2 Disable Video4Linux2 (default: not disabled)
Benny Prijono0822c192008-08-21 20:59:58 +00001388 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
1389 package and samples location using IPPROOT and
1390 IPPSAMPLES env var or with --with-ipp and
1391 --with-ipp-samples options
Benny Prijonoce1db762007-02-14 02:21:08 +00001392 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001393
1394
Benny Prijonofe0c1272010-01-13 16:28:15 +00001395Optional Packages:
1396 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1397 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001398 --with-external-speex Use external Speex development files, not the one in
1399 "third_party" directory. When this option is set,
1400 make sure that Speex is accessible to use (hint: use
1401 CFLAGS and LDFLAGS env var to set the include/lib
1402 paths)
1403 --with-external-gsm Use external GSM codec library, not the one in
1404 "third_party" directory. When this option is set,
1405 make sure that the GSM include/lib files are
1406 accessible to use (hint: use CFLAGS and LDFLAGS env
1407 var to set the include/lib paths)
1408 --with-external-pa Use external PortAudio development files, not the
1409 one in "third_party" directory. When this option is
1410 set, make sure that PortAudio is accessible to use
1411 (hint: use CFLAGS and LDFLAGS env var to set the
1412 include/lib paths)
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00001413 --with-ffmpeg=DIR Specify alternate FFMPEG prefix
Benny Prijono3965f192010-02-10 18:46:05 +00001414 --with-ipp=DIR Specify the Intel IPP location
1415 --with-ipp-samples=DIR Specify the Intel IPP samples location
1416 --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or
Benny Prijono46bd0842010-02-12 14:12:41 +00001417 "em64t. Default is blank for IA32"
Benny Prijonofe0c1272010-01-13 16:28:15 +00001418
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001419Some influential environment variables:
1420 CC C compiler command
1421 CFLAGS C compiler flags
1422 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1423 nonstandard directory <lib dir>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001424 LIBS libraries to pass to the linker, e.g. -l<library>
Benny Prijonof8957782011-04-11 02:43:04 +00001425 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001426 you have headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001427 CXX C++ compiler command
1428 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001429 CPP C preprocessor
1430
1431Use these variables to override the choices made by `configure' or to help
1432it to find libraries and programs with nonstandard names/locations.
1433
Benny Prijonof8957782011-04-11 02:43:04 +00001434Report bugs to the package provider.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001435_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001436ac_status=$?
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001437fi
1438
1439if test "$ac_init_help" = "recursive"; then
1440 # If there are subdirs, report their specific --help.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001441 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Benny Prijonof8957782011-04-11 02:43:04 +00001442 test -d "$ac_dir" ||
1443 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1444 continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001445 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001446
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001447case "$ac_dir" in
1448.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449*)
Benny Prijonof8957782011-04-11 02:43:04 +00001450 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001451 # A ".." for each directory in $ac_dir_suffix.
Benny Prijonof8957782011-04-11 02:43:04 +00001452 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001453 case $ac_top_builddir_sub in
1454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456 esac ;;
1457esac
1458ac_abs_top_builddir=$ac_pwd
1459ac_abs_builddir=$ac_pwd$ac_dir_suffix
1460# for backward compatibility:
1461ac_top_builddir=$ac_top_build_prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001462
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001463case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001464 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001465 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001466 ac_top_srcdir=$ac_top_builddir_sub
1467 ac_abs_top_srcdir=$ac_pwd ;;
1468 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001469 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001470 ac_top_srcdir=$srcdir
1471 ac_abs_top_srcdir=$srcdir ;;
1472 *) # Relative name.
1473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1474 ac_top_srcdir=$ac_top_build_prefix$srcdir
1475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001476esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001477ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001478
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001479 cd "$ac_dir" || { ac_status=$?; continue; }
1480 # Check for guested configure.
1481 if test -f "$ac_srcdir/configure.gnu"; then
1482 echo &&
1483 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1484 elif test -f "$ac_srcdir/configure"; then
1485 echo &&
1486 $SHELL "$ac_srcdir/configure" --help=recursive
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001487 else
Benny Prijonof8957782011-04-11 02:43:04 +00001488 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001489 fi || ac_status=$?
1490 cd "$ac_pwd" || { ac_status=$?; break; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001491 done
1492fi
1493
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001494test -n "$ac_init_help" && exit $ac_status
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001495if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001496 cat <<\_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001497pjproject configure 1.x
Benny Prijonof8957782011-04-11 02:43:04 +00001498generated by GNU Autoconf 2.65
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001499
Benny Prijonof8957782011-04-11 02:43:04 +00001500Copyright (C) 2009 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001501This configure script is free software; the Free Software Foundation
1502gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001503_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001504 exit
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001505fi
Benny Prijonof8957782011-04-11 02:43:04 +00001506
1507## ------------------------ ##
1508## Autoconf initialization. ##
1509## ------------------------ ##
1510
1511# ac_fn_c_try_compile LINENO
1512# --------------------------
1513# Try to compile conftest.$ac_ext, and return whether this succeeded.
1514ac_fn_c_try_compile ()
1515{
1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517 rm -f conftest.$ac_objext
1518 if { { ac_try="$ac_compile"
1519case "(($ac_try" in
1520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1521 *) ac_try_echo=$ac_try;;
1522esac
1523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524$as_echo "$ac_try_echo"; } >&5
1525 (eval "$ac_compile") 2>conftest.err
1526 ac_status=$?
1527 if test -s conftest.err; then
1528 grep -v '^ *+' conftest.err >conftest.er1
1529 cat conftest.er1 >&5
1530 mv -f conftest.er1 conftest.err
1531 fi
1532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533 test $ac_status = 0; } && {
1534 test -z "$ac_c_werror_flag" ||
1535 test ! -s conftest.err
1536 } && test -s conftest.$ac_objext; then :
1537 ac_retval=0
1538else
1539 $as_echo "$as_me: failed program was:" >&5
1540sed 's/^/| /' conftest.$ac_ext >&5
1541
1542 ac_retval=1
1543fi
1544 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1545 as_fn_set_status $ac_retval
1546
1547} # ac_fn_c_try_compile
1548
1549# ac_fn_cxx_try_compile LINENO
1550# ----------------------------
1551# Try to compile conftest.$ac_ext, and return whether this succeeded.
1552ac_fn_cxx_try_compile ()
1553{
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 rm -f conftest.$ac_objext
1556 if { { ac_try="$ac_compile"
1557case "(($ac_try" in
1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1560esac
1561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562$as_echo "$ac_try_echo"; } >&5
1563 (eval "$ac_compile") 2>conftest.err
1564 ac_status=$?
1565 if test -s conftest.err; then
1566 grep -v '^ *+' conftest.err >conftest.er1
1567 cat conftest.er1 >&5
1568 mv -f conftest.er1 conftest.err
1569 fi
1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } && {
1572 test -z "$ac_cxx_werror_flag" ||
1573 test ! -s conftest.err
1574 } && test -s conftest.$ac_objext; then :
1575 ac_retval=0
1576else
1577 $as_echo "$as_me: failed program was:" >&5
1578sed 's/^/| /' conftest.$ac_ext >&5
1579
1580 ac_retval=1
1581fi
1582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1583 as_fn_set_status $ac_retval
1584
1585} # ac_fn_cxx_try_compile
1586
1587# ac_fn_c_try_link LINENO
1588# -----------------------
1589# Try to link conftest.$ac_ext, and return whether this succeeded.
1590ac_fn_c_try_link ()
1591{
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 rm -f conftest.$ac_objext conftest$ac_exeext
1594 if { { ac_try="$ac_link"
1595case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598esac
1599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600$as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_link") 2>conftest.err
1602 ac_status=$?
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1607 fi
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && {
1610 test -z "$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 } && test -s conftest$ac_exeext && {
1613 test "$cross_compiling" = yes ||
1614 $as_test_x conftest$ac_exeext
1615 }; then :
1616 ac_retval=0
1617else
1618 $as_echo "$as_me: failed program was:" >&5
1619sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622fi
1623 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1624 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1625 # interfere with the next link command; also delete a directory that is
1626 # left behind by Apple's compiler. We do this before executing the actions.
1627 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1628 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1629 as_fn_set_status $ac_retval
1630
1631} # ac_fn_c_try_link
1632
1633# ac_fn_c_try_run LINENO
1634# ----------------------
1635# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1636# that executables *can* be run.
1637ac_fn_c_try_run ()
1638{
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if { { ac_try="$ac_link"
1641case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644esac
1645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646$as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_link") 2>&5
1648 ac_status=$?
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1651 { { case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654esac
1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656$as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_try") 2>&5
1658 ac_status=$?
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; }; }; then :
1661 ac_retval=0
1662else
1663 $as_echo "$as_me: program exited with status $ac_status" >&5
1664 $as_echo "$as_me: failed program was:" >&5
1665sed 's/^/| /' conftest.$ac_ext >&5
1666
1667 ac_retval=$ac_status
1668fi
1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1671 as_fn_set_status $ac_retval
1672
1673} # ac_fn_c_try_run
1674
1675# ac_fn_c_try_cpp LINENO
1676# ----------------------
1677# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1678ac_fn_c_try_cpp ()
1679{
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 if { { ac_try="$ac_cpp conftest.$ac_ext"
1682case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1694 fi
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } >/dev/null && {
1697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 }; then :
1700 ac_retval=0
1701else
1702 $as_echo "$as_me: failed program was:" >&5
1703sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1
1706fi
1707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708 as_fn_set_status $ac_retval
1709
1710} # ac_fn_c_try_cpp
1711
1712# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1713# -------------------------------------------------------
1714# Tests whether HEADER exists and can be compiled using the include files in
1715# INCLUDES, setting the cache variable VAR accordingly.
1716ac_fn_c_check_header_compile ()
1717{
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720$as_echo_n "checking for $2... " >&6; }
1721if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1722 $as_echo_n "(cached) " >&6
1723else
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725/* end confdefs.h. */
1726$4
1727#include <$2>
1728_ACEOF
1729if ac_fn_c_try_compile "$LINENO"; then :
1730 eval "$3=yes"
1731else
1732 eval "$3=no"
1733fi
1734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735fi
1736eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738$as_echo "$ac_res" >&6; }
1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740
1741} # ac_fn_c_check_header_compile
1742
1743# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1744# -------------------------------------------------------
1745# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1746# the include files in INCLUDES and setting the cache variable VAR
1747# accordingly.
1748ac_fn_c_check_header_mongrel ()
1749{
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753$as_echo_n "checking for $2... " >&6; }
1754if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1755 $as_echo_n "(cached) " >&6
1756fi
1757eval ac_res=\$$3
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759$as_echo "$ac_res" >&6; }
1760else
1761 # Is the header compilable?
1762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1763$as_echo_n "checking $2 usability... " >&6; }
1764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765/* end confdefs.h. */
1766$4
1767#include <$2>
1768_ACEOF
1769if ac_fn_c_try_compile "$LINENO"; then :
1770 ac_header_compiler=yes
1771else
1772 ac_header_compiler=no
1773fi
1774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1776$as_echo "$ac_header_compiler" >&6; }
1777
1778# Is the header present?
1779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1780$as_echo_n "checking $2 presence... " >&6; }
1781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782/* end confdefs.h. */
1783#include <$2>
1784_ACEOF
1785if ac_fn_c_try_cpp "$LINENO"; then :
1786 ac_header_preproc=yes
1787else
1788 ac_header_preproc=no
1789fi
1790rm -f conftest.err conftest.$ac_ext
1791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1792$as_echo "$ac_header_preproc" >&6; }
1793
1794# So? What about this header?
1795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1796 yes:no: )
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1798$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1800$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1801 ;;
1802 no:yes:* )
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1804$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1806$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1808$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1810$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1812$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1813 ;;
1814esac
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816$as_echo_n "checking for $2... " >&6; }
1817if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1818 $as_echo_n "(cached) " >&6
1819else
1820 eval "$3=\$ac_header_compiler"
1821fi
1822eval ac_res=\$$3
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824$as_echo "$ac_res" >&6; }
1825fi
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827
1828} # ac_fn_c_check_header_mongrel
1829
1830# ac_fn_c_check_func LINENO FUNC VAR
1831# ----------------------------------
1832# Tests whether FUNC exists, setting the cache variable VAR accordingly
1833ac_fn_c_check_func ()
1834{
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837$as_echo_n "checking for $2... " >&6; }
1838if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 $as_echo_n "(cached) " >&6
1840else
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842/* end confdefs.h. */
1843/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1845#define $2 innocuous_$2
1846
1847/* System header to define __stub macros and hopefully few prototypes,
1848 which can conflict with char $2 (); below.
1849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1850 <limits.h> exists even on freestanding compilers. */
1851
1852#ifdef __STDC__
1853# include <limits.h>
1854#else
1855# include <assert.h>
1856#endif
1857
1858#undef $2
1859
1860/* Override any GCC internal prototype to avoid an error.
1861 Use char because int might match the return type of a GCC
1862 builtin and then its argument prototype would still apply. */
1863#ifdef __cplusplus
1864extern "C"
1865#endif
1866char $2 ();
1867/* The GNU C library defines this for functions which it implements
1868 to always fail with ENOSYS. Some functions are actually named
1869 something starting with __ and the normal name is an alias. */
1870#if defined __stub_$2 || defined __stub___$2
1871choke me
1872#endif
1873
1874int
1875main ()
1876{
1877return $2 ();
1878 ;
1879 return 0;
1880}
1881_ACEOF
1882if ac_fn_c_try_link "$LINENO"; then :
1883 eval "$3=yes"
1884else
1885 eval "$3=no"
1886fi
1887rm -f core conftest.err conftest.$ac_objext \
1888 conftest$ac_exeext conftest.$ac_ext
1889fi
1890eval ac_res=\$$3
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892$as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894
1895} # ac_fn_c_check_func
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001896cat >config.log <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001897This file contains any messages produced by compilers while
1898running configure, to aid debugging if configure makes a mistake.
1899
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001900It was created by pjproject $as_me 1.x, which was
Benny Prijonof8957782011-04-11 02:43:04 +00001901generated by GNU Autoconf 2.65. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001902
1903 $ $0 $@
1904
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001905_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001906exec 5>>config.log
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001907{
1908cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001909## --------- ##
1910## Platform. ##
1911## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001912
1913hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1914uname -m = `(uname -m) 2>/dev/null || echo unknown`
1915uname -r = `(uname -r) 2>/dev/null || echo unknown`
1916uname -s = `(uname -s) 2>/dev/null || echo unknown`
1917uname -v = `(uname -v) 2>/dev/null || echo unknown`
1918
1919/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1920/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1921
1922/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1923/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1924/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001925/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001926/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1927/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1928/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1929
1930_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001931
1932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933for as_dir in $PATH
1934do
1935 IFS=$as_save_IFS
1936 test -z "$as_dir" && as_dir=.
Benny Prijonof8957782011-04-11 02:43:04 +00001937 $as_echo "PATH: $as_dir"
1938 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001939IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001940
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001941} >&5
1942
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001943cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001944
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001945
1946## ----------- ##
1947## Core tests. ##
1948## ----------- ##
1949
1950_ACEOF
1951
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001952
1953# Keep a trace of the command line.
1954# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001955# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001956# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001957# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001958ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001959ac_configure_args0=
1960ac_configure_args1=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001961ac_must_keep_next=false
1962for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001963do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001964 for ac_arg
1965 do
1966 case $ac_arg in
1967 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1968 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1969 | -silent | --silent | --silen | --sile | --sil)
1970 continue ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001971 *\'*)
Benny Prijonof8957782011-04-11 02:43:04 +00001972 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001973 esac
1974 case $ac_pass in
Benny Prijonof8957782011-04-11 02:43:04 +00001975 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001976 2)
Benny Prijonof8957782011-04-11 02:43:04 +00001977 as_fn_append ac_configure_args1 " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001978 if test $ac_must_keep_next = true; then
1979 ac_must_keep_next=false # Got value, back to normal.
1980 else
1981 case $ac_arg in
1982 *=* | --config-cache | -C | -disable-* | --disable-* \
1983 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1984 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1985 | -with-* | --with-* | -without-* | --without-* | --x)
1986 case "$ac_configure_args0 " in
1987 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1988 esac
1989 ;;
1990 -* ) ac_must_keep_next=true ;;
1991 esac
1992 fi
Benny Prijonof8957782011-04-11 02:43:04 +00001993 as_fn_append ac_configure_args " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001994 ;;
1995 esac
1996 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001997done
Benny Prijonof8957782011-04-11 02:43:04 +00001998{ ac_configure_args0=; unset ac_configure_args0;}
1999{ ac_configure_args1=; unset ac_configure_args1;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002000
2001# When interrupted or exit'd, cleanup temporary files, and complete
2002# config.log. We remove comments because anyway the quotes in there
2003# would cause problems or look ugly.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002004# WARNING: Use '\'' to represent an apostrophe within the trap.
2005# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002006trap 'exit_status=$?
2007 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002008 {
2009 echo
2010
2011 cat <<\_ASBOX
2012## ---------------- ##
2013## Cache variables. ##
2014## ---------------- ##
2015_ASBOX
2016 echo
2017 # The following way of writing the cache mishandles newlines in values,
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002018(
2019 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2020 eval ac_val=\$$ac_var
2021 case $ac_val in #(
2022 *${as_nl}*)
2023 case $ac_var in #(
Benny Prijonof8957782011-04-11 02:43:04 +00002024 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2025$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002026 esac
2027 case $ac_var in #(
2028 _ | IFS | as_nl) ;; #(
Benny Prijonof8957782011-04-11 02:43:04 +00002029 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2030 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002031 esac ;;
2032 esac
2033 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002034 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002035 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2036 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002037 sed -n \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002038 "s/'\''/'\''\\\\'\'''\''/g;
2039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2040 ;; #(
Benny Prijonoe2746132008-09-27 13:16:35 +00002041 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002042 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoe2746132008-09-27 13:16:35 +00002043 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002044 esac |
2045 sort
2046)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002047 echo
2048
2049 cat <<\_ASBOX
2050## ----------------- ##
2051## Output variables. ##
2052## ----------------- ##
2053_ASBOX
2054 echo
2055 for ac_var in $ac_subst_vars
2056 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002057 eval ac_val=\$$ac_var
2058 case $ac_val in
Benny Prijonof8957782011-04-11 02:43:04 +00002059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002060 esac
Benny Prijonof8957782011-04-11 02:43:04 +00002061 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002062 done | sort
2063 echo
2064
2065 if test -n "$ac_subst_files"; then
2066 cat <<\_ASBOX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002067## ------------------- ##
2068## File substitutions. ##
2069## ------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002070_ASBOX
2071 echo
2072 for ac_var in $ac_subst_files
2073 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002074 eval ac_val=\$$ac_var
2075 case $ac_val in
Benny Prijonof8957782011-04-11 02:43:04 +00002076 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002077 esac
Benny Prijonof8957782011-04-11 02:43:04 +00002078 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002079 done | sort
2080 echo
2081 fi
2082
2083 if test -s confdefs.h; then
2084 cat <<\_ASBOX
2085## ----------- ##
2086## confdefs.h. ##
2087## ----------- ##
2088_ASBOX
2089 echo
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002090 cat confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002091 echo
2092 fi
2093 test "$ac_signal" != 0 &&
Benny Prijonof8957782011-04-11 02:43:04 +00002094 $as_echo "$as_me: caught signal $ac_signal"
2095 $as_echo "$as_me: exit $exit_status"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002096 } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002097 rm -f core *.core core.conftest.* &&
2098 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002099 exit $exit_status
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002100' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002101for ac_signal in 1 2 13 15; do
Benny Prijonof8957782011-04-11 02:43:04 +00002102 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002103done
2104ac_signal=0
2105
2106# confdefs.h avoids OS command line length limits that DEFS can exceed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002107rm -f -r conftest* confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002108
Benny Prijonof8957782011-04-11 02:43:04 +00002109$as_echo "/* confdefs.h */" > confdefs.h
2110
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002111# Predefined preprocessor variables.
2112
2113cat >>confdefs.h <<_ACEOF
2114#define PACKAGE_NAME "$PACKAGE_NAME"
2115_ACEOF
2116
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002117cat >>confdefs.h <<_ACEOF
2118#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2119_ACEOF
2120
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002121cat >>confdefs.h <<_ACEOF
2122#define PACKAGE_VERSION "$PACKAGE_VERSION"
2123_ACEOF
2124
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002125cat >>confdefs.h <<_ACEOF
2126#define PACKAGE_STRING "$PACKAGE_STRING"
2127_ACEOF
2128
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002129cat >>confdefs.h <<_ACEOF
2130#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2131_ACEOF
2132
Benny Prijonof8957782011-04-11 02:43:04 +00002133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_URL "$PACKAGE_URL"
2135_ACEOF
2136
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002137
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002138# Let the site file select an alternate cache file if it wants to.
Benny Prijonof8957782011-04-11 02:43:04 +00002139# Prefer an explicitly selected file to automatically selected ones.
2140ac_site_file1=NONE
2141ac_site_file2=NONE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002142if test -n "$CONFIG_SITE"; then
Benny Prijonof8957782011-04-11 02:43:04 +00002143 ac_site_file1=$CONFIG_SITE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002144elif test "x$prefix" != xNONE; then
Benny Prijonof8957782011-04-11 02:43:04 +00002145 ac_site_file1=$prefix/share/config.site
2146 ac_site_file2=$prefix/etc/config.site
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002147else
Benny Prijonof8957782011-04-11 02:43:04 +00002148 ac_site_file1=$ac_default_prefix/share/config.site
2149 ac_site_file2=$ac_default_prefix/etc/config.site
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002150fi
Benny Prijonof8957782011-04-11 02:43:04 +00002151for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002152do
Benny Prijonof8957782011-04-11 02:43:04 +00002153 test "x$ac_site_file" = xNONE && continue
2154 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2156$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002157 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002158 . "$ac_site_file"
2159 fi
2160done
2161
2162if test -r "$cache_file"; then
Benny Prijonof8957782011-04-11 02:43:04 +00002163 # Some versions of bash will fail to source /dev/null (special files
2164 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2165 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2167$as_echo "$as_me: loading cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002168 case $cache_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002169 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2170 *) . "./$cache_file";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002171 esac
2172 fi
2173else
Benny Prijonof8957782011-04-11 02:43:04 +00002174 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2175$as_echo "$as_me: creating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002176 >$cache_file
2177fi
2178
2179# Check that the precious variables saved in the cache have kept the same
2180# value.
2181ac_cache_corrupted=false
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002182for ac_var in $ac_precious_vars; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002183 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2184 eval ac_new_set=\$ac_env_${ac_var}_set
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002185 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2186 eval ac_new_val=\$ac_env_${ac_var}_value
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002187 case $ac_old_set,$ac_new_set in
2188 set,)
Benny Prijonof8957782011-04-11 02:43:04 +00002189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2190$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002191 ac_cache_corrupted=: ;;
2192 ,set)
Benny Prijonof8957782011-04-11 02:43:04 +00002193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2194$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002195 ac_cache_corrupted=: ;;
2196 ,);;
2197 *)
2198 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijonof8957782011-04-11 02:43:04 +00002199 # differences in whitespace do not lead to failure.
2200 ac_old_val_w=`echo x $ac_old_val`
2201 ac_new_val_w=`echo x $ac_new_val`
2202 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2204$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2205 ac_cache_corrupted=:
2206 else
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2208$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2209 eval $ac_var=\$ac_old_val
2210 fi
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2212$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2214$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002215 fi;;
2216 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002217 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002218 if test "$ac_new_set" = set; then
2219 case $ac_new_val in
Benny Prijonof8957782011-04-11 02:43:04 +00002220 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002221 *) ac_arg=$ac_var=$ac_new_val ;;
2222 esac
2223 case " $ac_configure_args " in
2224 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Benny Prijonof8957782011-04-11 02:43:04 +00002225 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002226 esac
2227 fi
2228done
2229if $ac_cache_corrupted; then
Benny Prijonof8957782011-04-11 02:43:04 +00002230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2233$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2234 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002235fi
Benny Prijonof8957782011-04-11 02:43:04 +00002236## -------------------- ##
2237## Main body of script. ##
2238## -------------------- ##
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002239
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002240ac_ext=c
2241ac_cpp='$CPP $CPPFLAGS'
2242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2244ac_compiler_gnu=$ac_cv_c_compiler_gnu
2245
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002246
2247
Benny Prijono5b818b22006-09-17 22:58:51 +00002248host_orig="$host"
2249
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002250ac_aux_dir=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002251for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Benny Prijonof8957782011-04-11 02:43:04 +00002252 for ac_t in install-sh install.sh shtool; do
2253 if test -f "$ac_dir/$ac_t"; then
2254 ac_aux_dir=$ac_dir
2255 ac_install_sh="$ac_aux_dir/$ac_t -c"
2256 break 2
2257 fi
2258 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002259done
2260if test -z "$ac_aux_dir"; then
Benny Prijonof8957782011-04-11 02:43:04 +00002261 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002262fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002263
2264# These three variables are undocumented and unsupported,
2265# and are intended to be withdrawn in a future Autoconf release.
2266# They can cause serious problems if a builder's source tree is in a directory
2267# whose full name contains unusual characters.
2268ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2269ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2270ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2271
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002272
2273# Make sure we can run config.sub.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002274$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Benny Prijonof8957782011-04-11 02:43:04 +00002275 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002276
Benny Prijonof8957782011-04-11 02:43:04 +00002277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2278$as_echo_n "checking build system type... " >&6; }
2279if test "${ac_cv_build+set}" = set; then :
2280 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002281else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002282 ac_build_alias=$build_alias
2283test "x$ac_build_alias" = x &&
2284 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2285test "x$ac_build_alias" = x &&
Benny Prijonof8957782011-04-11 02:43:04 +00002286 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002287ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Benny Prijonof8957782011-04-11 02:43:04 +00002288 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002289
2290fi
Benny Prijonof8957782011-04-11 02:43:04 +00002291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2292$as_echo "$ac_cv_build" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002293case $ac_cv_build in
2294*-*-*) ;;
Benny Prijonof8957782011-04-11 02:43:04 +00002295*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002296esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002297build=$ac_cv_build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002298ac_save_IFS=$IFS; IFS='-'
2299set x $ac_cv_build
2300shift
2301build_cpu=$1
2302build_vendor=$2
2303shift; shift
2304# Remember, the first character of IFS is used to create $*,
2305# except with old shells:
2306build_os=$*
2307IFS=$ac_save_IFS
2308case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002309
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002310
Benny Prijonof8957782011-04-11 02:43:04 +00002311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2312$as_echo_n "checking host system type... " >&6; }
2313if test "${ac_cv_host+set}" = set; then :
2314 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002315else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002316 if test "x$host_alias" = x; then
2317 ac_cv_host=$ac_cv_build
2318else
2319 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Benny Prijonof8957782011-04-11 02:43:04 +00002320 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002321fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002322
2323fi
Benny Prijonof8957782011-04-11 02:43:04 +00002324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2325$as_echo "$ac_cv_host" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002326case $ac_cv_host in
2327*-*-*) ;;
Benny Prijonof8957782011-04-11 02:43:04 +00002328*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002329esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002330host=$ac_cv_host
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002331ac_save_IFS=$IFS; IFS='-'
2332set x $ac_cv_host
2333shift
2334host_cpu=$1
2335host_vendor=$2
2336shift; shift
2337# Remember, the first character of IFS is used to create $*,
2338# except with old shells:
2339host_os=$*
2340IFS=$ac_save_IFS
2341case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002342
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002343
Benny Prijonof8957782011-04-11 02:43:04 +00002344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2345$as_echo_n "checking target system type... " >&6; }
2346if test "${ac_cv_target+set}" = set; then :
2347 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002348else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002349 if test "x$target_alias" = x; then
2350 ac_cv_target=$ac_cv_host
2351else
2352 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Benny Prijonof8957782011-04-11 02:43:04 +00002353 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002354fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002355
2356fi
Benny Prijonof8957782011-04-11 02:43:04 +00002357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2358$as_echo "$ac_cv_target" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002359case $ac_cv_target in
2360*-*-*) ;;
Benny Prijonof8957782011-04-11 02:43:04 +00002361*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002362esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002363target=$ac_cv_target
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002364ac_save_IFS=$IFS; IFS='-'
2365set x $ac_cv_target
2366shift
2367target_cpu=$1
2368target_vendor=$2
2369shift; shift
2370# Remember, the first character of IFS is used to create $*,
2371# except with old shells:
2372target_os=$*
2373IFS=$ac_save_IFS
2374case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002375
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002376
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002377# The aliases save the names the user supplied, while $host etc.
2378# will get canonicalized.
2379test -n "$target_alias" &&
2380 test "$program_prefix$program_suffix$program_transform_name" = \
2381 NONENONEs,x,x, &&
2382 program_prefix=${target_alias}-
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002383ac_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 +00002384
Benny Prijono8ec5eae2010-05-12 10:59:20 +00002385ac_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 +00002386
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002387
Benny Prijono12483112007-03-12 10:44:38 +00002388
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002389if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00002390 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002391else
2392 CFLAGS="$CFLAGS"
2393fi
2394
2395CXXFLAGS="$CFLAGS $CXXFLAGS"
2396
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002397ac_ext=c
2398ac_cpp='$CPP $CPPFLAGS'
2399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401ac_compiler_gnu=$ac_cv_c_compiler_gnu
2402if test -n "$ac_tool_prefix"; then
2403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2404set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijonof8957782011-04-11 02:43:04 +00002405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2406$as_echo_n "checking for $ac_word... " >&6; }
2407if test "${ac_cv_prog_CC+set}" = set; then :
2408 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002409else
2410 if test -n "$CC"; then
2411 ac_cv_prog_CC="$CC" # Let the user override the test.
2412else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414for as_dir in $PATH
2415do
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
Benny Prijonof8957782011-04-11 02:43:04 +00002418 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002419 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 +00002420 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Benny Prijonof8957782011-04-11 02:43:04 +00002421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002422 break 2
2423 fi
2424done
Benny Prijonof8957782011-04-11 02:43:04 +00002425 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002426IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002427
2428fi
2429fi
2430CC=$ac_cv_prog_CC
2431if test -n "$CC"; then
Benny Prijonof8957782011-04-11 02:43:04 +00002432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2433$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002434else
Benny Prijonof8957782011-04-11 02:43:04 +00002435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2436$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002437fi
2438
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002439
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002440fi
2441if test -z "$ac_cv_prog_CC"; then
2442 ac_ct_CC=$CC
2443 # Extract the first word of "gcc", so it can be a program name with args.
2444set dummy gcc; ac_word=$2
Benny Prijonof8957782011-04-11 02:43:04 +00002445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2446$as_echo_n "checking for $ac_word... " >&6; }
2447if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2448 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002449else
2450 if test -n "$ac_ct_CC"; then
2451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2452else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH
2455do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
Benny Prijonof8957782011-04-11 02:43:04 +00002458 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002459 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 +00002460 ac_cv_prog_ac_ct_CC="gcc"
Benny Prijonof8957782011-04-11 02:43:04 +00002461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002462 break 2
2463 fi
2464done
Benny Prijonof8957782011-04-11 02:43:04 +00002465 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002466IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002467
2468fi
2469fi
2470ac_ct_CC=$ac_cv_prog_ac_ct_CC
2471if test -n "$ac_ct_CC"; then
Benny Prijonof8957782011-04-11 02:43:04 +00002472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2473$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002474else
Benny Prijonof8957782011-04-11 02:43:04 +00002475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2476$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002477fi
2478
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002479 if test "x$ac_ct_CC" = x; then
2480 CC=""
2481 else
2482 case $cross_compiling:$ac_tool_warned in
2483yes:)
Benny Prijonof8957782011-04-11 02:43:04 +00002484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002486ac_tool_warned=yes ;;
2487esac
2488 CC=$ac_ct_CC
2489 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002490else
2491 CC="$ac_cv_prog_CC"
2492fi
2493
2494if test -z "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002495 if test -n "$ac_tool_prefix"; then
2496 # 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 +00002497set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijonof8957782011-04-11 02:43:04 +00002498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499$as_echo_n "checking for $ac_word... " >&6; }
2500if test "${ac_cv_prog_CC+set}" = set; then :
2501 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002502else
2503 if test -n "$CC"; then
2504 ac_cv_prog_CC="$CC" # Let the user override the test.
2505else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507for as_dir in $PATH
2508do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
Benny Prijonof8957782011-04-11 02:43:04 +00002511 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002512 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 +00002513 ac_cv_prog_CC="${ac_tool_prefix}cc"
Benny Prijonof8957782011-04-11 02:43:04 +00002514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002515 break 2
2516 fi
2517done
Benny Prijonof8957782011-04-11 02:43:04 +00002518 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002519IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002520
2521fi
2522fi
2523CC=$ac_cv_prog_CC
2524if test -n "$CC"; then
Benny Prijonof8957782011-04-11 02:43:04 +00002525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2526$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002527else
Benny Prijonof8957782011-04-11 02:43:04 +00002528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002530fi
2531
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002532
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002533 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002534fi
2535if test -z "$CC"; then
2536 # Extract the first word of "cc", so it can be a program name with args.
2537set dummy cc; ac_word=$2
Benny Prijonof8957782011-04-11 02:43:04 +00002538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539$as_echo_n "checking for $ac_word... " >&6; }
2540if test "${ac_cv_prog_CC+set}" = set; then :
2541 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002542else
2543 if test -n "$CC"; then
2544 ac_cv_prog_CC="$CC" # Let the user override the test.
2545else
2546 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548for as_dir in $PATH
2549do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
Benny Prijonof8957782011-04-11 02:43:04 +00002552 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002553 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 +00002554 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2555 ac_prog_rejected=yes
2556 continue
2557 fi
2558 ac_cv_prog_CC="cc"
Benny Prijonof8957782011-04-11 02:43:04 +00002559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002560 break 2
2561 fi
2562done
Benny Prijonof8957782011-04-11 02:43:04 +00002563 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002564IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002565
2566if test $ac_prog_rejected = yes; then
2567 # We found a bogon in the path, so make sure we never use it.
2568 set dummy $ac_cv_prog_CC
2569 shift
2570 if test $# != 0; then
2571 # We chose a different compiler from the bogus one.
2572 # However, it has the same basename, so the bogon will be chosen
2573 # first if we set CC to just the basename; use the full file name.
2574 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002575 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002576 fi
2577fi
2578fi
2579fi
2580CC=$ac_cv_prog_CC
2581if test -n "$CC"; then
Benny Prijonof8957782011-04-11 02:43:04 +00002582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2583$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002584else
Benny Prijonof8957782011-04-11 02:43:04 +00002585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002587fi
2588
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002589
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002590fi
2591if test -z "$CC"; then
2592 if test -n "$ac_tool_prefix"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002593 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002594 do
2595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2596set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijonof8957782011-04-11 02:43:04 +00002597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2598$as_echo_n "checking for $ac_word... " >&6; }
2599if test "${ac_cv_prog_CC+set}" = set; then :
2600 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002601else
2602 if test -n "$CC"; then
2603 ac_cv_prog_CC="$CC" # Let the user override the test.
2604else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606for as_dir in $PATH
2607do
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
Benny Prijonof8957782011-04-11 02:43:04 +00002610 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002611 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 +00002612 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Benny Prijonof8957782011-04-11 02:43:04 +00002613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002614 break 2
2615 fi
2616done
Benny Prijonof8957782011-04-11 02:43:04 +00002617 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002618IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002619
2620fi
2621fi
2622CC=$ac_cv_prog_CC
2623if test -n "$CC"; then
Benny Prijonof8957782011-04-11 02:43:04 +00002624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2625$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002626else
Benny Prijonof8957782011-04-11 02:43:04 +00002627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2628$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002629fi
2630
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002631
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002632 test -n "$CC" && break
2633 done
2634fi
2635if test -z "$CC"; then
2636 ac_ct_CC=$CC
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002637 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002638do
2639 # Extract the first word of "$ac_prog", so it can be a program name with args.
2640set dummy $ac_prog; ac_word=$2
Benny Prijonof8957782011-04-11 02:43:04 +00002641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642$as_echo_n "checking for $ac_word... " >&6; }
2643if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2644 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002645else
2646 if test -n "$ac_ct_CC"; then
2647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2648else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650for as_dir in $PATH
2651do
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
Benny Prijonof8957782011-04-11 02:43:04 +00002654 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002655 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 +00002656 ac_cv_prog_ac_ct_CC="$ac_prog"
Benny Prijonof8957782011-04-11 02:43:04 +00002657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002658 break 2
2659 fi
2660done
Benny Prijonof8957782011-04-11 02:43:04 +00002661 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002662IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002663
2664fi
2665fi
2666ac_ct_CC=$ac_cv_prog_ac_ct_CC
2667if test -n "$ac_ct_CC"; then
Benny Prijonof8957782011-04-11 02:43:04 +00002668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2669$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002670else
Benny Prijonof8957782011-04-11 02:43:04 +00002671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002673fi
2674
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002675
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002676 test -n "$ac_ct_CC" && break
2677done
2678
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002679 if test "x$ac_ct_CC" = x; then
2680 CC=""
2681 else
2682 case $cross_compiling:$ac_tool_warned in
2683yes:)
Benny Prijonof8957782011-04-11 02:43:04 +00002684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002686ac_tool_warned=yes ;;
2687esac
2688 CC=$ac_ct_CC
2689 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002690fi
2691
2692fi
2693
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002694
Benny Prijonof8957782011-04-11 02:43:04 +00002695test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2697as_fn_error "no acceptable C compiler found in \$PATH
2698See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002699
2700# Provide some information about the compiler.
Benny Prijonof8957782011-04-11 02:43:04 +00002701$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2702set X $ac_compile
2703ac_compiler=$2
2704for ac_option in --version -v -V -qversion; do
2705 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002706case "(($ac_try" in
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2709esac
Benny Prijonof8957782011-04-11 02:43:04 +00002710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2711$as_echo "$ac_try_echo"; } >&5
2712 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002713 ac_status=$?
Benny Prijonof8957782011-04-11 02:43:04 +00002714 if test -s conftest.err; then
2715 sed '10a\
2716... rest of stderr output deleted ...
2717 10q' conftest.err >conftest.er1
2718 cat conftest.er1 >&5
2719 fi
2720 rm -f conftest.er1 conftest.err
2721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2722 test $ac_status = 0; }
2723done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002724
Benny Prijonof8957782011-04-11 02:43:04 +00002725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002726/* end confdefs.h. */
Benny Prijono5bbebc02010-06-15 05:21:43 +00002727
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002728int
2729main ()
2730{
2731
2732 ;
2733 return 0;
2734}
2735_ACEOF
2736ac_clean_files_save=$ac_clean_files
Benny Prijonof8957782011-04-11 02:43:04 +00002737ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002738# Try to create an executable without -o first, disregard a.out.
2739# It will help us diagnose broken compilers, and finding out an intuition
2740# of exeext.
Benny Prijonof8957782011-04-11 02:43:04 +00002741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2742$as_echo_n "checking whether the C compiler works... " >&6; }
2743ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2744
2745# The possible output files:
2746ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2747
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002748ac_rmfiles=
2749for ac_file in $ac_files
2750do
2751 case $ac_file in
Benny Prijonof8957782011-04-11 02:43:04 +00002752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002753 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2754 esac
2755done
2756rm -f $ac_rmfiles
2757
Benny Prijonof8957782011-04-11 02:43:04 +00002758if { { ac_try="$ac_link_default"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002759case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2762esac
Benny Prijonof8957782011-04-11 02:43:04 +00002763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2764$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002765 (eval "$ac_link_default") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002766 ac_status=$?
Benny Prijonof8957782011-04-11 02:43:04 +00002767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2768 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002769 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2770# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2771# in a Makefile. We should not override ac_cv_exeext if it was cached,
2772# so that the user can short-circuit this test for compilers unknown to
2773# Autoconf.
2774for ac_file in $ac_files ''
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002775do
2776 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002777 case $ac_file in
Benny Prijonof8957782011-04-11 02:43:04 +00002778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002779 ;;
2780 [ab].out )
2781 # We found the default executable, but exeext='' is most
2782 # certainly right.
2783 break;;
2784 *.* )
Benny Prijonof8957782011-04-11 02:43:04 +00002785 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002786 then :; else
2787 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2788 fi
2789 # We set ac_cv_exeext here because the later test for it is not
2790 # safe: cross compilers may not add the suffix if given an `-o'
2791 # argument, so we may need to know it at that point already.
2792 # Even if this section looks crufty: it has the advantage of
2793 # actually working.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002794 break;;
2795 * )
2796 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002797 esac
2798done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002799test "$ac_cv_exeext" = no && ac_cv_exeext=
2800
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002801else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002802 ac_file=''
2803fi
Benny Prijonof8957782011-04-11 02:43:04 +00002804if test -z "$ac_file"; then :
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806$as_echo "no" >&6; }
2807$as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002808sed 's/^/| /' conftest.$ac_ext >&5
2809
Benny Prijonof8957782011-04-11 02:43:04 +00002810{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2812{ as_fn_set_status 77
2813as_fn_error "C compiler cannot create executables
2814See \`config.log' for more details." "$LINENO" 5; }; }
2815else
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2817$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002818fi
Benny Prijonof8957782011-04-11 02:43:04 +00002819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2820$as_echo_n "checking for C compiler default output file name... " >&6; }
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2822$as_echo "$ac_file" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002823ac_exeext=$ac_cv_exeext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002824
Benny Prijonof8957782011-04-11 02:43:04 +00002825rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002826ac_clean_files=$ac_clean_files_save
Benny Prijonof8957782011-04-11 02:43:04 +00002827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2828$as_echo_n "checking for suffix of executables... " >&6; }
2829if { { ac_try="$ac_link"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002830case "(($ac_try" in
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2833esac
Benny Prijonof8957782011-04-11 02:43:04 +00002834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2835$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002836 (eval "$ac_link") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002837 ac_status=$?
Benny Prijonof8957782011-04-11 02:43:04 +00002838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2839 test $ac_status = 0; }; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002840 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2841# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2842# work properly (i.e., refer to `conftest.exe'), while it won't with
2843# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002844for ac_file in conftest.exe conftest conftest.*; do
2845 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002846 case $ac_file in
Benny Prijonof8957782011-04-11 02:43:04 +00002847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002848 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002849 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002850 * ) break;;
2851 esac
2852done
2853else
Benny Prijonof8957782011-04-11 02:43:04 +00002854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2855$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2856as_fn_error "cannot compute suffix of executables: cannot compile and link
2857See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002858fi
Benny Prijonof8957782011-04-11 02:43:04 +00002859rm -f conftest conftest$ac_cv_exeext
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2861$as_echo "$ac_cv_exeext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002862
2863rm -f conftest.$ac_ext
2864EXEEXT=$ac_cv_exeext
2865ac_exeext=$EXEEXT
Benny Prijonof8957782011-04-11 02:43:04 +00002866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2867/* end confdefs.h. */
2868#include <stdio.h>
2869int
2870main ()
2871{
2872FILE *f = fopen ("conftest.out", "w");
2873 return ferror (f) || fclose (f) != 0;
2874
2875 ;
2876 return 0;
2877}
Sauw Ming6e6c2152010-12-14 13:03:10 +00002878_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00002879ac_clean_files="$ac_clean_files conftest.out"
2880# Check that the compiler produces executables we can run. If not, either
2881# the compiler is broken, or we cross compile.
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2883$as_echo_n "checking whether we are cross compiling... " >&6; }
2884if test "$cross_compiling" != yes; then
2885 { { ac_try="$ac_link"
2886case "(($ac_try" in
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2889esac
2890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2891$as_echo "$ac_try_echo"; } >&5
2892 (eval "$ac_link") 2>&5
2893 ac_status=$?
2894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2895 test $ac_status = 0; }
2896 if { ac_try='./conftest$ac_cv_exeext'
2897 { { case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2902$as_echo "$ac_try_echo"; } >&5
2903 (eval "$ac_try") 2>&5
2904 ac_status=$?
2905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2906 test $ac_status = 0; }; }; then
2907 cross_compiling=no
2908 else
2909 if test "$cross_compiling" = maybe; then
2910 cross_compiling=yes
2911 else
2912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2913$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2914as_fn_error "cannot run C compiled programs.
2915If you meant to cross compile, use \`--host'.
2916See \`config.log' for more details." "$LINENO" 5; }
2917 fi
2918 fi
2919fi
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2921$as_echo "$cross_compiling" >&6; }
2922
2923rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2924ac_clean_files=$ac_clean_files_save
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2926$as_echo_n "checking for suffix of object files... " >&6; }
2927if test "${ac_cv_objext+set}" = set; then :
2928 $as_echo_n "(cached) " >&6
2929else
2930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002931/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002932
2933int
2934main ()
2935{
2936
2937 ;
2938 return 0;
2939}
2940_ACEOF
2941rm -f conftest.o conftest.obj
Benny Prijonof8957782011-04-11 02:43:04 +00002942if { { ac_try="$ac_compile"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002943case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946esac
Benny Prijonof8957782011-04-11 02:43:04 +00002947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2948$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002949 (eval "$ac_compile") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002950 ac_status=$?
Benny Prijonof8957782011-04-11 02:43:04 +00002951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2952 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002953 for ac_file in conftest.o conftest.obj conftest.*; do
2954 test -f "$ac_file" || continue;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002955 case $ac_file in
Benny Prijonof8957782011-04-11 02:43:04 +00002956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002957 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2958 break;;
2959 esac
2960done
2961else
Benny Prijonof8957782011-04-11 02:43:04 +00002962 $as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002963sed 's/^/| /' conftest.$ac_ext >&5
2964
Benny Prijonof8957782011-04-11 02:43:04 +00002965{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2966$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2967as_fn_error "cannot compute suffix of object files: cannot compile
2968See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002969fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002970rm -f conftest.$ac_cv_objext conftest.$ac_ext
2971fi
Benny Prijonof8957782011-04-11 02:43:04 +00002972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2973$as_echo "$ac_cv_objext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002974OBJEXT=$ac_cv_objext
2975ac_objext=$OBJEXT
Benny Prijonof8957782011-04-11 02:43:04 +00002976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2977$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2978if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2979 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002980else
Benny Prijonof8957782011-04-11 02:43:04 +00002981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002982/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002983
2984int
2985main ()
2986{
2987#ifndef __GNUC__
2988 choke me
2989#endif
2990
2991 ;
2992 return 0;
2993}
2994_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00002995if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002996 ac_compiler_gnu=yes
2997else
Benny Prijonof8957782011-04-11 02:43:04 +00002998 ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002999fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003001ac_cv_c_compiler_gnu=$ac_compiler_gnu
3002
3003fi
Benny Prijonof8957782011-04-11 02:43:04 +00003004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3005$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3006if test $ac_compiler_gnu = yes; then
3007 GCC=yes
3008else
3009 GCC=
3010fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003011ac_test_CFLAGS=${CFLAGS+set}
3012ac_save_CFLAGS=$CFLAGS
Benny Prijonof8957782011-04-11 02:43:04 +00003013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3014$as_echo_n "checking whether $CC accepts -g... " >&6; }
3015if test "${ac_cv_prog_cc_g+set}" = set; then :
3016 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003017else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003018 ac_save_c_werror_flag=$ac_c_werror_flag
3019 ac_c_werror_flag=yes
3020 ac_cv_prog_cc_g=no
3021 CFLAGS="-g"
Benny Prijonof8957782011-04-11 02:43:04 +00003022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003023/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003024
3025int
3026main ()
3027{
3028
3029 ;
3030 return 0;
3031}
3032_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00003033if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003034 ac_cv_prog_cc_g=yes
3035else
Benny Prijonof8957782011-04-11 02:43:04 +00003036 CFLAGS=""
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003038/* end confdefs.h. */
3039
3040int
3041main ()
3042{
3043
3044 ;
3045 return 0;
3046}
3047_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00003048if ac_fn_c_try_compile "$LINENO"; then :
Sauw Ming6e6c2152010-12-14 13:03:10 +00003049
Benny Prijonof8957782011-04-11 02:43:04 +00003050else
3051 ac_c_werror_flag=$ac_save_c_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003052 CFLAGS="-g"
Benny Prijonof8957782011-04-11 02:43:04 +00003053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003054/* end confdefs.h. */
3055
3056int
3057main ()
3058{
3059
3060 ;
3061 return 0;
3062}
3063_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00003064if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003065 ac_cv_prog_cc_g=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003066fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003068fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3072 ac_c_werror_flag=$ac_save_c_werror_flag
3073fi
Benny Prijonof8957782011-04-11 02:43:04 +00003074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3075$as_echo "$ac_cv_prog_cc_g" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003076if test "$ac_test_CFLAGS" = set; then
3077 CFLAGS=$ac_save_CFLAGS
3078elif test $ac_cv_prog_cc_g = yes; then
3079 if test "$GCC" = yes; then
3080 CFLAGS="-g -O2"
3081 else
3082 CFLAGS="-g"
3083 fi
3084else
3085 if test "$GCC" = yes; then
3086 CFLAGS="-O2"
3087 else
3088 CFLAGS=
3089 fi
3090fi
Benny Prijonof8957782011-04-11 02:43:04 +00003091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3092$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3093if test "${ac_cv_prog_cc_c89+set}" = set; then :
3094 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003095else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003096 ac_cv_prog_cc_c89=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003097ac_save_CC=$CC
Benny Prijonof8957782011-04-11 02:43:04 +00003098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003099/* end confdefs.h. */
3100#include <stdarg.h>
3101#include <stdio.h>
3102#include <sys/types.h>
3103#include <sys/stat.h>
3104/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3105struct buf { int x; };
3106FILE * (*rcsopen) (struct buf *, struct stat *, int);
3107static char *e (p, i)
3108 char **p;
3109 int i;
3110{
3111 return p[i];
3112}
3113static char *f (char * (*g) (char **, int), char **p, ...)
3114{
3115 char *s;
3116 va_list v;
3117 va_start (v,p);
3118 s = g (p, va_arg (v,int));
3119 va_end (v);
3120 return s;
3121}
3122
3123/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3124 function prototypes and stuff, but not '\xHH' hex character constants.
3125 These don't provoke an error unfortunately, instead are silently treated
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003126 as 'x'. The following induces an error, until -std is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003127 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3128 array size at least. It's necessary to write '\x00'==0 to get something
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003129 that's true only with -std. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003130int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3131
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003132/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3133 inside strings and character constants. */
3134#define FOO(x) 'x'
3135int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3136
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003137int test (int i, double x);
3138struct s1 {int (*f) (int a);};
3139struct s2 {int (*f) (double a);};
3140int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3141int argc;
3142char **argv;
3143int
3144main ()
3145{
3146return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3147 ;
3148 return 0;
3149}
3150_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003151for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3152 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003153do
3154 CC="$ac_save_CC $ac_arg"
Benny Prijonof8957782011-04-11 02:43:04 +00003155 if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003156 ac_cv_prog_cc_c89=$ac_arg
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003157fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003158rm -f core conftest.err conftest.$ac_objext
3159 test "x$ac_cv_prog_cc_c89" != "xno" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003160done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003161rm -f conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003162CC=$ac_save_CC
3163
3164fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003165# AC_CACHE_VAL
3166case "x$ac_cv_prog_cc_c89" in
3167 x)
Benny Prijonof8957782011-04-11 02:43:04 +00003168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3169$as_echo "none needed" >&6; } ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003170 xno)
Benny Prijonof8957782011-04-11 02:43:04 +00003171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3172$as_echo "unsupported" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003173 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003174 CC="$CC $ac_cv_prog_cc_c89"
Benny Prijonof8957782011-04-11 02:43:04 +00003175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3176$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003177esac
Benny Prijonof8957782011-04-11 02:43:04 +00003178if test "x$ac_cv_prog_cc_c89" != xno; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003179
Benny Prijonof8957782011-04-11 02:43:04 +00003180fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003181
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003182ac_ext=c
3183ac_cpp='$CPP $CPPFLAGS'
3184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003188ac_ext=cpp
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003189ac_cpp='$CXXCPP $CPPFLAGS'
3190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003193if test -z "$CXX"; then
3194 if test -n "$CCC"; then
3195 CXX=$CCC
3196 else
3197 if test -n "$ac_tool_prefix"; then
3198 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 +00003199 do
3200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3201set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijonof8957782011-04-11 02:43:04 +00003202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203$as_echo_n "checking for $ac_word... " >&6; }
3204if test "${ac_cv_prog_CXX+set}" = set; then :
3205 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003206else
3207 if test -n "$CXX"; then
3208 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3209else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211for as_dir in $PATH
3212do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
Benny Prijonof8957782011-04-11 02:43:04 +00003215 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003216 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 +00003217 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Benny Prijonof8957782011-04-11 02:43:04 +00003218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003219 break 2
3220 fi
3221done
Benny Prijonof8957782011-04-11 02:43:04 +00003222 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003223IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003224
3225fi
3226fi
3227CXX=$ac_cv_prog_CXX
3228if test -n "$CXX"; then
Benny Prijonof8957782011-04-11 02:43:04 +00003229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3230$as_echo "$CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003231else
Benny Prijonof8957782011-04-11 02:43:04 +00003232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003234fi
3235
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003236
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003237 test -n "$CXX" && break
3238 done
3239fi
3240if test -z "$CXX"; then
3241 ac_ct_CXX=$CXX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003242 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 +00003243do
3244 # Extract the first word of "$ac_prog", so it can be a program name with args.
3245set dummy $ac_prog; ac_word=$2
Benny Prijonof8957782011-04-11 02:43:04 +00003246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247$as_echo_n "checking for $ac_word... " >&6; }
3248if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3249 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003250else
3251 if test -n "$ac_ct_CXX"; then
3252 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3253else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255for as_dir in $PATH
3256do
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
Benny Prijonof8957782011-04-11 02:43:04 +00003259 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003260 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 +00003261 ac_cv_prog_ac_ct_CXX="$ac_prog"
Benny Prijonof8957782011-04-11 02:43:04 +00003262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003263 break 2
3264 fi
3265done
Benny Prijonof8957782011-04-11 02:43:04 +00003266 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003267IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003268
3269fi
3270fi
3271ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3272if test -n "$ac_ct_CXX"; then
Benny Prijonof8957782011-04-11 02:43:04 +00003273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3274$as_echo "$ac_ct_CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003275else
Benny Prijonof8957782011-04-11 02:43:04 +00003276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003278fi
3279
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003280
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003281 test -n "$ac_ct_CXX" && break
3282done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003283
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003284 if test "x$ac_ct_CXX" = x; then
3285 CXX="g++"
3286 else
3287 case $cross_compiling:$ac_tool_warned in
3288yes:)
Benny Prijonof8957782011-04-11 02:43:04 +00003289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003291ac_tool_warned=yes ;;
3292esac
3293 CXX=$ac_ct_CXX
3294 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003295fi
3296
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003297 fi
3298fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003299# Provide some information about the compiler.
Benny Prijonof8957782011-04-11 02:43:04 +00003300$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3301set X $ac_compile
3302ac_compiler=$2
3303for ac_option in --version -v -V -qversion; do
3304 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003305case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308esac
Benny Prijonof8957782011-04-11 02:43:04 +00003309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310$as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003312 ac_status=$?
Benny Prijonof8957782011-04-11 02:43:04 +00003313 if test -s conftest.err; then
3314 sed '10a\
3315... rest of stderr output deleted ...
3316 10q' conftest.err >conftest.er1
3317 cat conftest.er1 >&5
3318 fi
3319 rm -f conftest.er1 conftest.err
3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321 test $ac_status = 0; }
3322done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003323
Benny Prijonof8957782011-04-11 02:43:04 +00003324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3325$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3326if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3327 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003328else
Benny Prijonof8957782011-04-11 02:43:04 +00003329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003330/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003331
3332int
3333main ()
3334{
3335#ifndef __GNUC__
3336 choke me
3337#endif
3338
3339 ;
3340 return 0;
3341}
3342_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00003343if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003344 ac_compiler_gnu=yes
3345else
Benny Prijonof8957782011-04-11 02:43:04 +00003346 ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003347fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003349ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3350
3351fi
Benny Prijonof8957782011-04-11 02:43:04 +00003352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3353$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3354if test $ac_compiler_gnu = yes; then
3355 GXX=yes
3356else
3357 GXX=
3358fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003359ac_test_CXXFLAGS=${CXXFLAGS+set}
3360ac_save_CXXFLAGS=$CXXFLAGS
Benny Prijonof8957782011-04-11 02:43:04 +00003361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3362$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3363if test "${ac_cv_prog_cxx_g+set}" = set; then :
3364 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003365else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003366 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3367 ac_cxx_werror_flag=yes
3368 ac_cv_prog_cxx_g=no
3369 CXXFLAGS="-g"
Benny Prijonof8957782011-04-11 02:43:04 +00003370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003371/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003372
3373int
3374main ()
3375{
3376
3377 ;
3378 return 0;
3379}
3380_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00003381if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003382 ac_cv_prog_cxx_g=yes
3383else
Benny Prijonof8957782011-04-11 02:43:04 +00003384 CXXFLAGS=""
3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003386/* end confdefs.h. */
3387
3388int
3389main ()
3390{
3391
3392 ;
3393 return 0;
3394}
3395_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00003396if ac_fn_cxx_try_compile "$LINENO"; then :
Sauw Ming6e6c2152010-12-14 13:03:10 +00003397
Benny Prijonof8957782011-04-11 02:43:04 +00003398else
3399 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003400 CXXFLAGS="-g"
Benny Prijonof8957782011-04-11 02:43:04 +00003401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003402/* end confdefs.h. */
3403
3404int
3405main ()
3406{
3407
3408 ;
3409 return 0;
3410}
3411_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00003412if ac_fn_cxx_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003413 ac_cv_prog_cxx_g=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003414fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003416fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3421fi
Benny Prijonof8957782011-04-11 02:43:04 +00003422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3423$as_echo "$ac_cv_prog_cxx_g" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003424if test "$ac_test_CXXFLAGS" = set; then
3425 CXXFLAGS=$ac_save_CXXFLAGS
3426elif test $ac_cv_prog_cxx_g = yes; then
3427 if test "$GXX" = yes; then
3428 CXXFLAGS="-g -O2"
3429 else
3430 CXXFLAGS="-g"
3431 fi
3432else
3433 if test "$GXX" = yes; then
3434 CXXFLAGS="-O2"
3435 else
3436 CXXFLAGS=
3437 fi
3438fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003439ac_ext=c
3440ac_cpp='$CPP $CPPFLAGS'
3441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003445ac_ext=c
3446ac_cpp='$CPP $CPPFLAGS'
3447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449ac_compiler_gnu=$ac_cv_c_compiler_gnu
3450
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003451
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003452if test -z "$CROSS_COMPILE"; then
3453 CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'`
3454fi
3455
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003456if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003457
3458if test "$LD" = ""; then LD="$CC"; fi
3459
3460if test "$LDOUT" = ""; then LDOUT="-o"; fi
3461
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003462if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003463
3464if test "$OBJEXT" = ""; then OBJEXT='o'; fi
3465
3466if test "$LIBEXT" = ""; then LIBEXT='a'; fi
3467
3468if test "$LIBEXT2" = ""; then LIBEXT2=""; fi
3469
3470if test "$CC_OUT" = ""; then CC_OUT="-o"; fi
3471
3472if test "$CC_INC" = ""; then CC_INC="-I"; fi
3473
3474if test "$CC_DEF" = ""; then CC_DEF="-D"; fi
3475
3476if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi
3477
3478if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi
3479
3480
3481
3482
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003483
Benny Prijono0822c192008-08-21 20:59:58 +00003484
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003485
3486case $host in
Benny Prijono53847a32007-09-24 16:10:13 +00003487 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003488 if pwd -W 2&> /dev/null; then
3489 ac_pjdir=`pwd -W`
3490 else
3491 # We're probably cross-compiling mingw on Linux
3492 ac_pjdir=`pwd`
3493 fi
Benny Prijono53847a32007-09-24 16:10:13 +00003494 ;;
3495 *)
3496 ac_pjdir=`pwd`
3497 ;;
3498esac
Benny Prijono12483112007-03-12 10:44:38 +00003499
3500
Benny Prijonof8957782011-04-11 02:43:04 +00003501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
3502$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
3503if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
3504 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003505else
3506 ac_check_lib_save_LIBS=$LIBS
3507LIBS="-lpthread $LIBS"
Benny Prijonof8957782011-04-11 02:43:04 +00003508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003509/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003510
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003511/* Override any GCC internal prototype to avoid an error.
3512 Use char because int might match the return type of a GCC
3513 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003514#ifdef __cplusplus
3515extern "C"
3516#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003517char pthread_create ();
3518int
3519main ()
3520{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003521return pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003522 ;
3523 return 0;
3524}
3525_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00003526if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003527 ac_cv_lib_pthread_pthread_create=yes
3528else
Benny Prijonof8957782011-04-11 02:43:04 +00003529 ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003530fi
Benny Prijonof8957782011-04-11 02:43:04 +00003531rm -f core conftest.err conftest.$ac_objext \
3532 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003533LIBS=$ac_check_lib_save_LIBS
3534fi
Benny Prijonof8957782011-04-11 02:43:04 +00003535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
3536$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
3537if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003538 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003539#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003540_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003541
3542 LIBS="-lpthread $LIBS"
3543
3544fi
3545
Benny Prijonof8957782011-04-11 02:43:04 +00003546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5
3547$as_echo_n "checking for puts in -lwsock32... " >&6; }
3548if test "${ac_cv_lib_wsock32_puts+set}" = set; then :
3549 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003550else
3551 ac_check_lib_save_LIBS=$LIBS
3552LIBS="-lwsock32 $LIBS"
Benny Prijonof8957782011-04-11 02:43:04 +00003553cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003554/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003555
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003556/* Override any GCC internal prototype to avoid an error.
3557 Use char because int might match the return type of a GCC
3558 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003559#ifdef __cplusplus
3560extern "C"
3561#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003562char puts ();
3563int
3564main ()
3565{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003566return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003567 ;
3568 return 0;
3569}
3570_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00003571if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003572 ac_cv_lib_wsock32_puts=yes
3573else
Benny Prijonof8957782011-04-11 02:43:04 +00003574 ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003575fi
Benny Prijonof8957782011-04-11 02:43:04 +00003576rm -f core conftest.err conftest.$ac_objext \
3577 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003578LIBS=$ac_check_lib_save_LIBS
3579fi
Benny Prijonof8957782011-04-11 02:43:04 +00003580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5
3581$as_echo "$ac_cv_lib_wsock32_puts" >&6; }
3582if test "x$ac_cv_lib_wsock32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003583 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003584#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003585_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003586
3587 LIBS="-lwsock32 $LIBS"
3588
3589fi
3590
Benny Prijonof8957782011-04-11 02:43:04 +00003591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5
3592$as_echo_n "checking for puts in -lws2_32... " >&6; }
3593if test "${ac_cv_lib_ws2_32_puts+set}" = set; then :
3594 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003595else
3596 ac_check_lib_save_LIBS=$LIBS
3597LIBS="-lws2_32 $LIBS"
Benny Prijonof8957782011-04-11 02:43:04 +00003598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003599/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003600
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003601/* Override any GCC internal prototype to avoid an error.
3602 Use char because int might match the return type of a GCC
3603 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003604#ifdef __cplusplus
3605extern "C"
3606#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003607char puts ();
3608int
3609main ()
3610{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003611return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003612 ;
3613 return 0;
3614}
3615_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00003616if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003617 ac_cv_lib_ws2_32_puts=yes
3618else
Benny Prijonof8957782011-04-11 02:43:04 +00003619 ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003620fi
Benny Prijonof8957782011-04-11 02:43:04 +00003621rm -f core conftest.err conftest.$ac_objext \
3622 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003623LIBS=$ac_check_lib_save_LIBS
3624fi
Benny Prijonof8957782011-04-11 02:43:04 +00003625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5
3626$as_echo "$ac_cv_lib_ws2_32_puts" >&6; }
3627if test "x$ac_cv_lib_ws2_32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003628 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003629#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003630_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003631
3632 LIBS="-lws2_32 $LIBS"
3633
3634fi
3635
Benny Prijonof8957782011-04-11 02:43:04 +00003636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5
3637$as_echo_n "checking for puts in -lole32... " >&6; }
3638if test "${ac_cv_lib_ole32_puts+set}" = set; then :
3639 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003640else
3641 ac_check_lib_save_LIBS=$LIBS
3642LIBS="-lole32 $LIBS"
Benny Prijonof8957782011-04-11 02:43:04 +00003643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003644/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003645
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003646/* Override any GCC internal prototype to avoid an error.
3647 Use char because int might match the return type of a GCC
3648 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003649#ifdef __cplusplus
3650extern "C"
3651#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003652char puts ();
3653int
3654main ()
3655{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003656return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003657 ;
3658 return 0;
3659}
3660_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00003661if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003662 ac_cv_lib_ole32_puts=yes
3663else
Benny Prijonof8957782011-04-11 02:43:04 +00003664 ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003665fi
Benny Prijonof8957782011-04-11 02:43:04 +00003666rm -f core conftest.err conftest.$ac_objext \
3667 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003668LIBS=$ac_check_lib_save_LIBS
3669fi
Benny Prijonof8957782011-04-11 02:43:04 +00003670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5
3671$as_echo "$ac_cv_lib_ole32_puts" >&6; }
3672if test "x$ac_cv_lib_ole32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003673 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003674#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003675_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003676
3677 LIBS="-lole32 $LIBS"
3678
3679fi
3680
Benny Prijonof8957782011-04-11 02:43:04 +00003681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5
3682$as_echo_n "checking for puts in -lwinmm... " >&6; }
3683if test "${ac_cv_lib_winmm_puts+set}" = set; then :
3684 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003685else
3686 ac_check_lib_save_LIBS=$LIBS
3687LIBS="-lwinmm $LIBS"
Benny Prijonof8957782011-04-11 02:43:04 +00003688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003689/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003690
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003691/* Override any GCC internal prototype to avoid an error.
3692 Use char because int might match the return type of a GCC
3693 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003694#ifdef __cplusplus
3695extern "C"
3696#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003697char puts ();
3698int
3699main ()
3700{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003701return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003702 ;
3703 return 0;
3704}
3705_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00003706if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003707 ac_cv_lib_winmm_puts=yes
3708else
Benny Prijonof8957782011-04-11 02:43:04 +00003709 ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003710fi
Benny Prijonof8957782011-04-11 02:43:04 +00003711rm -f core conftest.err conftest.$ac_objext \
3712 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003713LIBS=$ac_check_lib_save_LIBS
3714fi
Benny Prijonof8957782011-04-11 02:43:04 +00003715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5
3716$as_echo "$ac_cv_lib_winmm_puts" >&6; }
3717if test "x$ac_cv_lib_winmm_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003718 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003719#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003720_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003721
3722 LIBS="-lwinmm $LIBS"
3723
3724fi
3725
Benny Prijonof8957782011-04-11 02:43:04 +00003726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5
3727$as_echo_n "checking for puts in -lsocket... " >&6; }
3728if test "${ac_cv_lib_socket_puts+set}" = set; then :
3729 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003730else
3731 ac_check_lib_save_LIBS=$LIBS
3732LIBS="-lsocket $LIBS"
Benny Prijonof8957782011-04-11 02:43:04 +00003733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003734/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003735
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003736/* Override any GCC internal prototype to avoid an error.
3737 Use char because int might match the return type of a GCC
3738 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003739#ifdef __cplusplus
3740extern "C"
3741#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003742char puts ();
3743int
3744main ()
3745{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003746return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003747 ;
3748 return 0;
3749}
3750_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00003751if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003752 ac_cv_lib_socket_puts=yes
3753else
Benny Prijonof8957782011-04-11 02:43:04 +00003754 ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003755fi
Benny Prijonof8957782011-04-11 02:43:04 +00003756rm -f core conftest.err conftest.$ac_objext \
3757 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003758LIBS=$ac_check_lib_save_LIBS
3759fi
Benny Prijonof8957782011-04-11 02:43:04 +00003760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5
3761$as_echo "$ac_cv_lib_socket_puts" >&6; }
3762if test "x$ac_cv_lib_socket_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003763 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003764#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003765_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003766
3767 LIBS="-lsocket $LIBS"
3768
3769fi
3770
Benny Prijonof8957782011-04-11 02:43:04 +00003771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5
3772$as_echo_n "checking for puts in -lrt... " >&6; }
3773if test "${ac_cv_lib_rt_puts+set}" = set; then :
3774 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003775else
3776 ac_check_lib_save_LIBS=$LIBS
3777LIBS="-lrt $LIBS"
Benny Prijonof8957782011-04-11 02:43:04 +00003778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003779/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003780
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003781/* Override any GCC internal prototype to avoid an error.
3782 Use char because int might match the return type of a GCC
3783 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003784#ifdef __cplusplus
3785extern "C"
3786#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003787char puts ();
3788int
3789main ()
3790{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003791return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003792 ;
3793 return 0;
3794}
3795_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00003796if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003797 ac_cv_lib_rt_puts=yes
3798else
Benny Prijonof8957782011-04-11 02:43:04 +00003799 ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003800fi
Benny Prijonof8957782011-04-11 02:43:04 +00003801rm -f core conftest.err conftest.$ac_objext \
3802 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003803LIBS=$ac_check_lib_save_LIBS
3804fi
Benny Prijonof8957782011-04-11 02:43:04 +00003805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5
3806$as_echo "$ac_cv_lib_rt_puts" >&6; }
3807if test "x$ac_cv_lib_rt_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003808 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003809#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003810_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003811
3812 LIBS="-lrt $LIBS"
3813
3814fi
3815
Benny Prijonof8957782011-04-11 02:43:04 +00003816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5
3817$as_echo_n "checking for puts in -lnsl... " >&6; }
3818if test "${ac_cv_lib_nsl_puts+set}" = set; then :
3819 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003820else
3821 ac_check_lib_save_LIBS=$LIBS
3822LIBS="-lnsl $LIBS"
Benny Prijonof8957782011-04-11 02:43:04 +00003823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003824/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003825
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003826/* Override any GCC internal prototype to avoid an error.
3827 Use char because int might match the return type of a GCC
3828 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003829#ifdef __cplusplus
3830extern "C"
3831#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003832char puts ();
3833int
3834main ()
3835{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003836return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003837 ;
3838 return 0;
3839}
3840_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00003841if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003842 ac_cv_lib_nsl_puts=yes
3843else
Benny Prijonof8957782011-04-11 02:43:04 +00003844 ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003845fi
Benny Prijonof8957782011-04-11 02:43:04 +00003846rm -f core conftest.err conftest.$ac_objext \
3847 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003848LIBS=$ac_check_lib_save_LIBS
3849fi
Benny Prijonof8957782011-04-11 02:43:04 +00003850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5
3851$as_echo "$ac_cv_lib_nsl_puts" >&6; }
3852if test "x$ac_cv_lib_nsl_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003853 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003854#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003855_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003856
3857 LIBS="-lnsl $LIBS"
3858
3859fi
3860
Benny Prijonof8957782011-04-11 02:43:04 +00003861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3862$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3863if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
3864 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003865else
3866 ac_check_lib_save_LIBS=$LIBS
3867LIBS="-luuid $LIBS"
Benny Prijonof8957782011-04-11 02:43:04 +00003868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003869/* end confdefs.h. */
3870
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003871/* Override any GCC internal prototype to avoid an error.
3872 Use char because int might match the return type of a GCC
3873 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003874#ifdef __cplusplus
3875extern "C"
3876#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003877char uuid_generate ();
3878int
3879main ()
3880{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003881return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003882 ;
3883 return 0;
3884}
3885_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00003886if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003887 ac_cv_lib_uuid_uuid_generate=yes
3888else
Benny Prijonof8957782011-04-11 02:43:04 +00003889 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003890fi
Benny Prijonof8957782011-04-11 02:43:04 +00003891rm -f core conftest.err conftest.$ac_objext \
3892 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003893LIBS=$ac_check_lib_save_LIBS
3894fi
Benny Prijonof8957782011-04-11 02:43:04 +00003895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3896$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
3897if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003898 cat >>confdefs.h <<_ACEOF
3899#define HAVE_LIBUUID 1
3900_ACEOF
3901
3902 LIBS="-luuid $LIBS"
3903
3904fi
3905
Benny Prijonof8957782011-04-11 02:43:04 +00003906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3907$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3908if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
3909 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003910else
3911 ac_check_lib_save_LIBS=$LIBS
3912LIBS="-luuid $LIBS"
Benny Prijonof8957782011-04-11 02:43:04 +00003913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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 Prijonof8957782011-04-11 02:43:04 +00003931if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003932 ac_cv_lib_uuid_uuid_generate=yes
3933else
Benny Prijonof8957782011-04-11 02:43:04 +00003934 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003935fi
Benny Prijonof8957782011-04-11 02:43:04 +00003936rm -f core conftest.err conftest.$ac_objext \
3937 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003938LIBS=$ac_check_lib_save_LIBS
3939fi
Benny Prijonof8957782011-04-11 02:43:04 +00003940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3941$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
3942if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003943 ac_has_uuid_lib=1
3944fi
3945
3946
Benny Prijonof8957782011-04-11 02:43:04 +00003947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5
3948$as_echo "Setting PJ_M_NAME to $target_cpu" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003949cat >>confdefs.h <<_ACEOF
3950#define PJ_M_NAME "$target_cpu"
3951_ACEOF
3952
3953
Benny Prijonof8957782011-04-11 02:43:04 +00003954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5
3955$as_echo_n "checking memory alignment... " >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003956case $target in
Benny Prijonob18e9502010-05-19 05:51:38 +00003957 sparc64-* | ia64-* | x86_64-* )
Benny Prijonof8957782011-04-11 02:43:04 +00003958 $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00003959
Benny Prijonof8957782011-04-11 02:43:04 +00003960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5
3961$as_echo "8 bytes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003962 ;;
3963 * )
Benny Prijonof8957782011-04-11 02:43:04 +00003964 $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00003965
Benny Prijonof8957782011-04-11 02:43:04 +00003966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5
3967$as_echo "4 bytes (default)" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003968 ;;
3969esac
3970
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003971
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003972ac_ext=c
3973ac_cpp='$CPP $CPPFLAGS'
3974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijonof8957782011-04-11 02:43:04 +00003977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3978$as_echo_n "checking how to run the C preprocessor... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003979# On Suns, sometimes $CPP names a directory.
3980if test -n "$CPP" && test -d "$CPP"; then
3981 CPP=
3982fi
3983if test -z "$CPP"; then
Benny Prijonof8957782011-04-11 02:43:04 +00003984 if test "${ac_cv_prog_CPP+set}" = set; then :
3985 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003986else
3987 # Double quotes because CPP needs to be expanded
3988 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3989 do
3990 ac_preproc_ok=false
3991for ac_c_preproc_warn_flag in '' yes
3992do
3993 # Use a header file that comes with gcc, so configuring glibc
3994 # with a fresh cross-compiler works.
3995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3996 # <limits.h> exists even on freestanding compilers.
3997 # On the NeXT, cc -E runs the code through the compiler's parser,
3998 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijonof8957782011-04-11 02:43:04 +00003999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004000/* end confdefs.h. */
4001#ifdef __STDC__
4002# include <limits.h>
4003#else
4004# include <assert.h>
4005#endif
4006 Syntax error
4007_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00004008if ac_fn_c_try_cpp "$LINENO"; then :
Sauw Ming6e6c2152010-12-14 13:03:10 +00004009
Benny Prijonof8957782011-04-11 02:43:04 +00004010else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004011 # Broken: fails on valid input.
4012continue
4013fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004014rm -f conftest.err conftest.$ac_ext
4015
4016 # OK, works on sane cases. Now check whether nonexistent headers
4017 # can be detected and how.
Benny Prijonof8957782011-04-11 02:43:04 +00004018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004019/* end confdefs.h. */
4020#include <ac_nonexistent.h>
4021_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00004022if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004023 # Broken: success on invalid input.
4024continue
4025else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004026 # Passes both tests.
4027ac_preproc_ok=:
4028break
4029fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004030rm -f conftest.err conftest.$ac_ext
4031
4032done
4033# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4034rm -f conftest.err conftest.$ac_ext
Benny Prijonof8957782011-04-11 02:43:04 +00004035if $ac_preproc_ok; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004036 break
4037fi
4038
4039 done
4040 ac_cv_prog_CPP=$CPP
4041
4042fi
4043 CPP=$ac_cv_prog_CPP
4044else
4045 ac_cv_prog_CPP=$CPP
4046fi
Benny Prijonof8957782011-04-11 02:43:04 +00004047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4048$as_echo "$CPP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004049ac_preproc_ok=false
4050for ac_c_preproc_warn_flag in '' yes
4051do
4052 # Use a header file that comes with gcc, so configuring glibc
4053 # with a fresh cross-compiler works.
4054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4055 # <limits.h> exists even on freestanding compilers.
4056 # On the NeXT, cc -E runs the code through the compiler's parser,
4057 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijonof8957782011-04-11 02:43:04 +00004058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004059/* end confdefs.h. */
4060#ifdef __STDC__
4061# include <limits.h>
4062#else
4063# include <assert.h>
4064#endif
4065 Syntax error
4066_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00004067if ac_fn_c_try_cpp "$LINENO"; then :
Sauw Ming6e6c2152010-12-14 13:03:10 +00004068
Benny Prijonof8957782011-04-11 02:43:04 +00004069else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004070 # Broken: fails on valid input.
4071continue
4072fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004073rm -f conftest.err conftest.$ac_ext
4074
4075 # OK, works on sane cases. Now check whether nonexistent headers
4076 # can be detected and how.
Benny Prijonof8957782011-04-11 02:43:04 +00004077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004078/* end confdefs.h. */
4079#include <ac_nonexistent.h>
4080_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00004081if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004082 # Broken: success on invalid input.
4083continue
4084else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004085 # Passes both tests.
4086ac_preproc_ok=:
4087break
4088fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004089rm -f conftest.err conftest.$ac_ext
4090
4091done
4092# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4093rm -f conftest.err conftest.$ac_ext
Benny Prijonof8957782011-04-11 02:43:04 +00004094if $ac_preproc_ok; then :
4095
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004096else
Benny Prijonof8957782011-04-11 02:43:04 +00004097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4099as_fn_error "C preprocessor \"$CPP\" fails sanity check
4100See \`config.log' for more details." "$LINENO" 5; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004101fi
4102
4103ac_ext=c
4104ac_cpp='$CPP $CPPFLAGS'
4105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108
4109
Benny Prijonof8957782011-04-11 02:43:04 +00004110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4111$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4112if test "${ac_cv_path_GREP+set}" = set; then :
4113 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004114else
Benny Prijonof8957782011-04-11 02:43:04 +00004115 if test -z "$GREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004116 ac_path_GREP_found=false
Benny Prijonof8957782011-04-11 02:43:04 +00004117 # Loop through the user's path and test for each of PROGNAME-LIST
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004119for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4120do
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
Benny Prijonof8957782011-04-11 02:43:04 +00004123 for ac_prog in grep ggrep; do
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4126 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4127# Check for GNU ac_path_GREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004128 # Check for GNU $ac_path_GREP
4129case `"$ac_path_GREP" --version 2>&1` in
4130*GNU*)
4131 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4132*)
4133 ac_count=0
Benny Prijonof8957782011-04-11 02:43:04 +00004134 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004135 while :
4136 do
4137 cat "conftest.in" "conftest.in" >"conftest.tmp"
4138 mv "conftest.tmp" "conftest.in"
4139 cp "conftest.in" "conftest.nl"
Benny Prijonof8957782011-04-11 02:43:04 +00004140 $as_echo 'GREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004141 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijonof8957782011-04-11 02:43:04 +00004143 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004144 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4145 # Best one so far, save it but keep looking for a better one
4146 ac_cv_path_GREP="$ac_path_GREP"
4147 ac_path_GREP_max=$ac_count
4148 fi
4149 # 10*(2^10) chars as input seems more than enough
4150 test $ac_count -gt 10 && break
4151 done
4152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4153esac
4154
Benny Prijonof8957782011-04-11 02:43:04 +00004155 $ac_path_GREP_found && break 3
4156 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004157 done
Benny Prijonof8957782011-04-11 02:43:04 +00004158 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004159IFS=$as_save_IFS
Benny Prijonof8957782011-04-11 02:43:04 +00004160 if test -z "$ac_cv_path_GREP"; then
4161 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4162 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004163else
4164 ac_cv_path_GREP=$GREP
4165fi
4166
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004167fi
Benny Prijonof8957782011-04-11 02:43:04 +00004168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4169$as_echo "$ac_cv_path_GREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004170 GREP="$ac_cv_path_GREP"
4171
4172
Benny Prijonof8957782011-04-11 02:43:04 +00004173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4174$as_echo_n "checking for egrep... " >&6; }
4175if test "${ac_cv_path_EGREP+set}" = set; then :
4176 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004177else
4178 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4179 then ac_cv_path_EGREP="$GREP -E"
4180 else
Benny Prijonof8957782011-04-11 02:43:04 +00004181 if test -z "$EGREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004182 ac_path_EGREP_found=false
Benny Prijonof8957782011-04-11 02:43:04 +00004183 # Loop through the user's path and test for each of PROGNAME-LIST
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004185for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4186do
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
Benny Prijonof8957782011-04-11 02:43:04 +00004189 for ac_prog in egrep; do
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4192 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4193# Check for GNU ac_path_EGREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004194 # Check for GNU $ac_path_EGREP
4195case `"$ac_path_EGREP" --version 2>&1` in
4196*GNU*)
4197 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4198*)
4199 ac_count=0
Benny Prijonof8957782011-04-11 02:43:04 +00004200 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004201 while :
4202 do
4203 cat "conftest.in" "conftest.in" >"conftest.tmp"
4204 mv "conftest.tmp" "conftest.in"
4205 cp "conftest.in" "conftest.nl"
Benny Prijonof8957782011-04-11 02:43:04 +00004206 $as_echo 'EGREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004207 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4208 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijonof8957782011-04-11 02:43:04 +00004209 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004210 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4211 # Best one so far, save it but keep looking for a better one
4212 ac_cv_path_EGREP="$ac_path_EGREP"
4213 ac_path_EGREP_max=$ac_count
4214 fi
4215 # 10*(2^10) chars as input seems more than enough
4216 test $ac_count -gt 10 && break
4217 done
4218 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4219esac
4220
Benny Prijonof8957782011-04-11 02:43:04 +00004221 $ac_path_EGREP_found && break 3
4222 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004223 done
Benny Prijonof8957782011-04-11 02:43:04 +00004224 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004225IFS=$as_save_IFS
Benny Prijonof8957782011-04-11 02:43:04 +00004226 if test -z "$ac_cv_path_EGREP"; then
4227 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4228 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004229else
4230 ac_cv_path_EGREP=$EGREP
4231fi
4232
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004233 fi
4234fi
Benny Prijonof8957782011-04-11 02:43:04 +00004235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4236$as_echo "$ac_cv_path_EGREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004237 EGREP="$ac_cv_path_EGREP"
4238
4239
Benny Prijonof8957782011-04-11 02:43:04 +00004240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4241$as_echo_n "checking for ANSI C header files... " >&6; }
4242if test "${ac_cv_header_stdc+set}" = set; then :
4243 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004244else
Benny Prijonof8957782011-04-11 02:43:04 +00004245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004246/* end confdefs.h. */
4247#include <stdlib.h>
4248#include <stdarg.h>
4249#include <string.h>
4250#include <float.h>
4251
4252int
4253main ()
4254{
4255
4256 ;
4257 return 0;
4258}
4259_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00004260if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004261 ac_cv_header_stdc=yes
4262else
Benny Prijonof8957782011-04-11 02:43:04 +00004263 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004264fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266
4267if test $ac_cv_header_stdc = yes; then
4268 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Benny Prijonof8957782011-04-11 02:43:04 +00004269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004270/* end confdefs.h. */
4271#include <string.h>
4272
4273_ACEOF
4274if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijonof8957782011-04-11 02:43:04 +00004275 $EGREP "memchr" >/dev/null 2>&1; then :
4276
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004277else
4278 ac_cv_header_stdc=no
4279fi
Benny Prijonof8957782011-04-11 02:43:04 +00004280rm -f conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004281
4282fi
4283
4284if test $ac_cv_header_stdc = yes; then
4285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Benny Prijonof8957782011-04-11 02:43:04 +00004286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004287/* end confdefs.h. */
4288#include <stdlib.h>
4289
4290_ACEOF
4291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijonof8957782011-04-11 02:43:04 +00004292 $EGREP "free" >/dev/null 2>&1; then :
4293
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004294else
4295 ac_cv_header_stdc=no
4296fi
Benny Prijonof8957782011-04-11 02:43:04 +00004297rm -f conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004298
4299fi
4300
4301if test $ac_cv_header_stdc = yes; then
4302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Benny Prijonof8957782011-04-11 02:43:04 +00004303 if test "$cross_compiling" = yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004304 :
4305else
Benny Prijonof8957782011-04-11 02:43:04 +00004306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004307/* end confdefs.h. */
4308#include <ctype.h>
4309#include <stdlib.h>
4310#if ((' ' & 0x0FF) == 0x020)
4311# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4312# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4313#else
4314# define ISLOWER(c) \
4315 (('a' <= (c) && (c) <= 'i') \
4316 || ('j' <= (c) && (c) <= 'r') \
4317 || ('s' <= (c) && (c) <= 'z'))
4318# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4319#endif
4320
4321#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4322int
4323main ()
4324{
4325 int i;
4326 for (i = 0; i < 256; i++)
4327 if (XOR (islower (i), ISLOWER (i))
4328 || toupper (i) != TOUPPER (i))
4329 return 2;
4330 return 0;
4331}
4332_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00004333if ac_fn_c_try_run "$LINENO"; then :
4334
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004335else
Benny Prijonof8957782011-04-11 02:43:04 +00004336 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004337fi
Benny Prijonof8957782011-04-11 02:43:04 +00004338rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4339 conftest.$ac_objext conftest.beam conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004340fi
4341
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004342fi
4343fi
Benny Prijonof8957782011-04-11 02:43:04 +00004344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4345$as_echo "$ac_cv_header_stdc" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004346if test $ac_cv_header_stdc = yes; then
4347
Benny Prijonof8957782011-04-11 02:43:04 +00004348$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004349
4350fi
4351
4352# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004353for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4354 inttypes.h stdint.h unistd.h
Benny Prijonof8957782011-04-11 02:43:04 +00004355do :
4356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4357ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4358"
4359eval as_val=\$$as_ac_Header
4360 if test "x$as_val" = x""yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004361 cat >>confdefs.h <<_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00004362#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004363_ACEOF
4364
4365fi
4366
4367done
4368
4369
Benny Prijonof8957782011-04-11 02:43:04 +00004370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4371$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4372if test "${ac_cv_c_bigendian+set}" = set; then :
4373 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004374else
Benny Prijonof8957782011-04-11 02:43:04 +00004375 ac_cv_c_bigendian=unknown
4376 # See if we're dealing with a universal compiler.
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378/* end confdefs.h. */
4379#ifndef __APPLE_CC__
4380 not a universal capable compiler
4381 #endif
4382 typedef int dummy;
4383
Benny Prijonod5233702010-01-13 13:09:45 +00004384_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00004385if ac_fn_c_try_compile "$LINENO"; then :
4386
4387 # Check for potential -arch flags. It is not universal unless
4388 # there are at least two -arch flags with different values.
4389 ac_arch=
4390 ac_prev=
4391 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4392 if test -n "$ac_prev"; then
4393 case $ac_word in
4394 i?86 | x86_64 | ppc | ppc64)
4395 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4396 ac_arch=$ac_word
4397 else
4398 ac_cv_c_bigendian=universal
4399 break
4400 fi
4401 ;;
4402 esac
4403 ac_prev=
4404 elif test "x$ac_word" = "x-arch"; then
4405 ac_prev=arch
4406 fi
4407 done
4408fi
4409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410 if test $ac_cv_c_bigendian = unknown; then
4411 # See if sys/param.h defines the BYTE_ORDER macro.
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004413/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004414#include <sys/types.h>
Benny Prijonof8957782011-04-11 02:43:04 +00004415 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004416
4417int
4418main ()
4419{
Benny Prijonof8957782011-04-11 02:43:04 +00004420#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4421 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4422 && LITTLE_ENDIAN)
4423 bogus endian macros
4424 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004425
4426 ;
4427 return 0;
4428}
4429_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00004430if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004431 # It does; now see whether it defined to BIG_ENDIAN or not.
Benny Prijonof8957782011-04-11 02:43:04 +00004432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004433/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004434#include <sys/types.h>
Benny Prijonof8957782011-04-11 02:43:04 +00004435 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004436
4437int
4438main ()
4439{
4440#if BYTE_ORDER != BIG_ENDIAN
Benny Prijonof8957782011-04-11 02:43:04 +00004441 not big endian
4442 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004443
4444 ;
4445 return 0;
4446}
4447_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00004448if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004449 ac_cv_c_bigendian=yes
4450else
Benny Prijonof8957782011-04-11 02:43:04 +00004451 ac_cv_c_bigendian=no
Sauw Ming6e6c2152010-12-14 13:03:10 +00004452fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00004453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonof8957782011-04-11 02:43:04 +00004454fi
4455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456 fi
4457 if test $ac_cv_c_bigendian = unknown; then
4458 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Ming6e6c2152010-12-14 13:03:10 +00004460/* end confdefs.h. */
Benny Prijonof8957782011-04-11 02:43:04 +00004461#include <limits.h>
4462
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004463int
4464main ()
4465{
Benny Prijonof8957782011-04-11 02:43:04 +00004466#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4467 bogus endian macros
4468 #endif
4469
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004470 ;
4471 return 0;
4472}
4473_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00004474if ac_fn_c_try_compile "$LINENO"; then :
4475 # It does; now see whether it defined to _BIG_ENDIAN or not.
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477/* end confdefs.h. */
4478#include <limits.h>
4479
4480int
4481main ()
4482{
4483#ifndef _BIG_ENDIAN
4484 not big endian
4485 #endif
4486
4487 ;
4488 return 0;
4489}
4490_ACEOF
4491if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004492 ac_cv_c_bigendian=yes
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004493else
Benny Prijonof8957782011-04-11 02:43:04 +00004494 ac_cv_c_bigendian=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00004495fi
Benny Prijonof8957782011-04-11 02:43:04 +00004496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4497fi
4498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499 fi
4500 if test $ac_cv_c_bigendian = unknown; then
4501 # Compile a test program.
4502 if test "$cross_compiling" = yes; then :
4503 # Try to guess by grepping values from an object file.
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505/* end confdefs.h. */
4506short int ascii_mm[] =
4507 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4508 short int ascii_ii[] =
4509 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4510 int use_ascii (int i) {
4511 return ascii_mm[i] + ascii_ii[i];
4512 }
4513 short int ebcdic_ii[] =
4514 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4515 short int ebcdic_mm[] =
4516 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4517 int use_ebcdic (int i) {
4518 return ebcdic_mm[i] + ebcdic_ii[i];
4519 }
4520 extern int foo;
Sauw Ming6e6c2152010-12-14 13:03:10 +00004521
Benny Prijonof8957782011-04-11 02:43:04 +00004522int
4523main ()
4524{
4525return use_ascii (foo) == use_ebcdic (foo);
4526 ;
4527 return 0;
4528}
4529_ACEOF
4530if ac_fn_c_try_compile "$LINENO"; then :
4531 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4532 ac_cv_c_bigendian=yes
4533 fi
4534 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4535 if test "$ac_cv_c_bigendian" = unknown; then
4536 ac_cv_c_bigendian=no
4537 else
4538 # finding both strings is unlikely to happen, but who knows?
4539 ac_cv_c_bigendian=unknown
4540 fi
4541 fi
4542fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004544else
Benny Prijonof8957782011-04-11 02:43:04 +00004545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004546/* end confdefs.h. */
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004547$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004548int
4549main ()
4550{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004551
Benny Prijonof8957782011-04-11 02:43:04 +00004552 /* Are we little or big endian? From Harbison&Steele. */
4553 union
4554 {
4555 long int l;
4556 char c[sizeof (long int)];
4557 } u;
4558 u.l = 1;
4559 return u.c[sizeof (long int) - 1] == 1;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004560
4561 ;
4562 return 0;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004563}
4564_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00004565if ac_fn_c_try_run "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004566 ac_cv_c_bigendian=no
4567else
Benny Prijonof8957782011-04-11 02:43:04 +00004568 ac_cv_c_bigendian=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004569fi
Benny Prijonof8957782011-04-11 02:43:04 +00004570rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4571 conftest.$ac_objext conftest.beam conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004572fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004573
Benny Prijonof8957782011-04-11 02:43:04 +00004574 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004575fi
Benny Prijonof8957782011-04-11 02:43:04 +00004576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4577$as_echo "$ac_cv_c_bigendian" >&6; }
4578 case $ac_cv_c_bigendian in #(
4579 yes)
4580 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4581;; #(
4582 no)
4583 ;; #(
4584 universal)
Benny Prijonod5233702010-01-13 13:09:45 +00004585
Benny Prijonof8957782011-04-11 02:43:04 +00004586$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Benny Prijonod5233702010-01-13 13:09:45 +00004587
Benny Prijonof8957782011-04-11 02:43:04 +00004588 ;; #(
4589 *)
4590 as_fn_error "unknown endianness
4591 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4592 esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004593
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004594
4595case $target in
4596 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonof8957782011-04-11 02:43:04 +00004597 $as_echo "#define PJ_WIN32 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004598
Benny Prijonof8957782011-04-11 02:43:04 +00004599 $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004600
Benny Prijonof8957782011-04-11 02:43:04 +00004601 $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004602
4603 ;;
4604 *darwin*)
Benny Prijonof8957782011-04-11 02:43:04 +00004605 $as_echo "#define PJ_DARWINOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004606
4607 ;;
4608 *linux*)
Benny Prijonof8957782011-04-11 02:43:04 +00004609 $as_echo "#define PJ_LINUX 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004610
4611 ;;
4612 *rtems*)
Benny Prijonof8957782011-04-11 02:43:04 +00004613 $as_echo "#define PJ_RTEMS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004614
4615 ;;
4616 *sunos* | *solaris* )
Benny Prijonof8957782011-04-11 02:43:04 +00004617 $as_echo "#define PJ_SUNOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004618
4619 ;;
4620 *)
4621 ;;
4622esac
4623
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004624
4625
4626
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004627# Check whether --enable-floating-point was given.
Benny Prijonof8957782011-04-11 02:43:04 +00004628if test "${enable_floating_point+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004629 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
Benny Prijonof8957782011-04-11 02:43:04 +00004630 $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004631
Benny Prijonof8957782011-04-11 02:43:04 +00004632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5
4633$as_echo "Checking if floating point is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004634 fi
4635else
4636
Benny Prijonof8957782011-04-11 02:43:04 +00004637 $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004638
Benny Prijonof8957782011-04-11 02:43:04 +00004639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5
4640$as_echo "Checking if floating point is disabled... no" >&6; }
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
4642$as_echo_n "checking for fmod in -lm... " >&6; }
4643if test "${ac_cv_lib_m_fmod+set}" = set; then :
4644 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004645else
4646 ac_check_lib_save_LIBS=$LIBS
4647LIBS="-lm $LIBS"
Benny Prijonof8957782011-04-11 02:43:04 +00004648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004649/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004650
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004651/* Override any GCC internal prototype to avoid an error.
4652 Use char because int might match the return type of a GCC
4653 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004654#ifdef __cplusplus
4655extern "C"
4656#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004657char fmod ();
4658int
4659main ()
4660{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004661return fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004662 ;
4663 return 0;
4664}
4665_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00004666if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004667 ac_cv_lib_m_fmod=yes
4668else
Benny Prijonof8957782011-04-11 02:43:04 +00004669 ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004670fi
Benny Prijonof8957782011-04-11 02:43:04 +00004671rm -f core conftest.err conftest.$ac_objext \
4672 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004673LIBS=$ac_check_lib_save_LIBS
4674fi
Benny Prijonof8957782011-04-11 02:43:04 +00004675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
4676$as_echo "$ac_cv_lib_m_fmod" >&6; }
4677if test "x$ac_cv_lib_m_fmod" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004678 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004679#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004680_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004681
4682 LIBS="-lm $LIBS"
4683
4684fi
4685
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004686
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004687fi
4688
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004689
4690
Benny Prijonof8957782011-04-11 02:43:04 +00004691ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
4692if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
4693 $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004694
4695fi
4696
4697
Benny Prijonof8957782011-04-11 02:43:04 +00004698ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
4699if test "x$ac_cv_header_assert_h" = x""yes; then :
4700 $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004701
4702fi
4703
4704
Benny Prijonof8957782011-04-11 02:43:04 +00004705ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4706if test "x$ac_cv_header_ctype_h" = x""yes; then :
4707 $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004708
4709fi
4710
4711
4712
4713case $target in
4714 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonof8957782011-04-11 02:43:04 +00004715 $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004716
4717 ;;
4718 *)
Benny Prijonof8957782011-04-11 02:43:04 +00004719 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4720if test "x$ac_cv_header_errno_h" = x""yes; then :
4721 $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004722
4723fi
4724
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004725
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004726 ;;
4727esac
4728
Benny Prijonof8957782011-04-11 02:43:04 +00004729ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4730if test "x$ac_cv_header_fcntl_h" = x""yes; then :
4731 $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h
Benny Prijono1d481ab2008-01-24 15:27:30 +00004732
4733fi
4734
4735
Benny Prijonof8957782011-04-11 02:43:04 +00004736ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default"
4737if test "x$ac_cv_header_linux_socket_h" = x""yes; then :
4738 $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004739
4740fi
4741
4742
Benny Prijonof8957782011-04-11 02:43:04 +00004743ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4744if test "x$ac_cv_header_malloc_h" = x""yes; then :
4745 $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004746
4747fi
4748
4749
Benny Prijonof8957782011-04-11 02:43:04 +00004750ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
4751if test "x$ac_cv_header_netdb_h" = x""yes; then :
4752 $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004753
4754fi
4755
4756
Benny Prijonof8957782011-04-11 02:43:04 +00004757ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
4758if test "x$ac_cv_header_netinet_in_systm_h" = x""yes; then :
4759 $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h
Benny Prijono37fc9de2008-08-04 14:45:02 +00004760
4761fi
4762
4763
Benny Prijonof8957782011-04-11 02:43:04 +00004764ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
4765if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
4766 $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004767
4768fi
4769
4770
Benny Prijonof8957782011-04-11 02:43:04 +00004771ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if PJ_HAS_SYS_TYPES_H
Benny Prijonod5233702010-01-13 13:09:45 +00004772 # include <sys/types.h>
4773 #endif
4774 #if PJ_HAS_NETINET_IN_SYSTM_H
Benny Prijono37fc9de2008-08-04 14:45:02 +00004775 # include <netinet/in_systm.h>
4776 #endif
Benny Prijonod5233702010-01-13 13:09:45 +00004777 #if PJ_HAS_NETINET_IN_H
4778 # include <netinet/in.h>
4779 #endif
Benny Prijono37fc9de2008-08-04 14:45:02 +00004780
Benny Prijonof8957782011-04-11 02:43:04 +00004781"
4782if test "x$ac_cv_header_netinet_ip_h" = x""yes; then :
4783 $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h
Sauw Ming6e6c2152010-12-14 13:03:10 +00004784
Sauw Ming6e6c2152010-12-14 13:03:10 +00004785fi
4786
Sauw Mingbe3771a2010-08-27 06:46:29 +00004787
Benny Prijonof8957782011-04-11 02:43:04 +00004788ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
4789if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then :
4790 $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h
Sauw Ming6e6c2152010-12-14 13:03:10 +00004791
Sauw Ming6e6c2152010-12-14 13:03:10 +00004792fi
4793
Sauw Ming6e6c2152010-12-14 13:03:10 +00004794
Benny Prijonof8957782011-04-11 02:43:04 +00004795ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
4796if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
4797 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
4798if test "x$ac_cv_func_getifaddrs" = x""yes; then :
4799 $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h
Sauw Ming6e6c2152010-12-14 13:03:10 +00004800
4801fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00004802
Sauw Mingbe3771a2010-08-27 06:46:29 +00004803fi
4804
Sauw Mingbe3771a2010-08-27 06:46:29 +00004805
Benny Prijonof8957782011-04-11 02:43:04 +00004806ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
4807if test "x$ac_cv_header_semaphore_h" = x""yes; then :
4808 $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h
Sauw Ming6e6c2152010-12-14 13:03:10 +00004809
Sauw Ming6e6c2152010-12-14 13:03:10 +00004810fi
4811
Sauw Ming6e6c2152010-12-14 13:03:10 +00004812
Benny Prijonof8957782011-04-11 02:43:04 +00004813ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
4814if test "x$ac_cv_header_setjmp_h" = x""yes; then :
4815 $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h
Sauw Ming6e6c2152010-12-14 13:03:10 +00004816
Sauw Ming6e6c2152010-12-14 13:03:10 +00004817fi
4818
Sauw Ming6e6c2152010-12-14 13:03:10 +00004819
Benny Prijonof8957782011-04-11 02:43:04 +00004820ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
4821if test "x$ac_cv_header_stdarg_h" = x""yes; then :
4822 $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h
Sauw Ming6e6c2152010-12-14 13:03:10 +00004823
4824fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00004825
Sauw Ming6e6c2152010-12-14 13:03:10 +00004826
Benny Prijonof8957782011-04-11 02:43:04 +00004827ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
4828if test "x$ac_cv_header_stddef_h" = x""yes; then :
4829 $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h
Sauw Ming6e6c2152010-12-14 13:03:10 +00004830
Sauw Ming6e6c2152010-12-14 13:03:10 +00004831fi
4832
Sauw Mingbe3771a2010-08-27 06:46:29 +00004833
Benny Prijonof8957782011-04-11 02:43:04 +00004834ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4835if test "x$ac_cv_header_stdio_h" = x""yes; then :
4836 $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004837
Benny Prijono46bd0842010-02-12 14:12:41 +00004838fi
4839
Benny Prijono46bd0842010-02-12 14:12:41 +00004840
Benny Prijonof8957782011-04-11 02:43:04 +00004841ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4842if test "x$ac_cv_header_stdint_h" = x""yes; then :
4843 $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h
Sauw Ming6e6c2152010-12-14 13:03:10 +00004844
Sauw Ming6e6c2152010-12-14 13:03:10 +00004845fi
4846
Sauw Ming6e6c2152010-12-14 13:03:10 +00004847
Benny Prijonof8957782011-04-11 02:43:04 +00004848ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4849if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4850 $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h
Sauw Ming6e6c2152010-12-14 13:03:10 +00004851
Sauw Ming6e6c2152010-12-14 13:03:10 +00004852fi
4853
Sauw Ming6e6c2152010-12-14 13:03:10 +00004854
Benny Prijonof8957782011-04-11 02:43:04 +00004855ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4856if test "x$ac_cv_header_string_h" = x""yes; then :
4857 $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h
Sauw Mingbe3771a2010-08-27 06:46:29 +00004858
Sauw Mingbe3771a2010-08-27 06:46:29 +00004859fi
4860
Sauw Mingbe3771a2010-08-27 06:46:29 +00004861
Benny Prijonof8957782011-04-11 02:43:04 +00004862ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4863if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
4864 $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h
Sauw Ming6e6c2152010-12-14 13:03:10 +00004865
Sauw Ming6e6c2152010-12-14 13:03:10 +00004866fi
4867
Sauw Ming6e6c2152010-12-14 13:03:10 +00004868
Benny Prijonof8957782011-04-11 02:43:04 +00004869ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
4870if test "x$ac_cv_header_sys_select_h" = x""yes; then :
4871 $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h
Sauw Ming6e6c2152010-12-14 13:03:10 +00004872
Sauw Ming6e6c2152010-12-14 13:03:10 +00004873fi
4874
Sauw Ming6e6c2152010-12-14 13:03:10 +00004875
Benny Prijonof8957782011-04-11 02:43:04 +00004876ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
4877if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
4878 $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h
Sauw Mingbe3771a2010-08-27 06:46:29 +00004879
Sauw Mingbe3771a2010-08-27 06:46:29 +00004880fi
4881
Sauw Mingbe3771a2010-08-27 06:46:29 +00004882
Benny Prijonof8957782011-04-11 02:43:04 +00004883ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
4884if test "x$ac_cv_header_sys_time_h" = x""yes; then :
4885 $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h
Sauw Ming6e6c2152010-12-14 13:03:10 +00004886
Sauw Ming6e6c2152010-12-14 13:03:10 +00004887fi
4888
Sauw Ming6e6c2152010-12-14 13:03:10 +00004889
Benny Prijonof8957782011-04-11 02:43:04 +00004890ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
4891if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
4892 $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h
Sauw Ming6e6c2152010-12-14 13:03:10 +00004893
Sauw Ming6e6c2152010-12-14 13:03:10 +00004894fi
4895
Sauw Ming6e6c2152010-12-14 13:03:10 +00004896
Benny Prijonof8957782011-04-11 02:43:04 +00004897ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4898if test "x$ac_cv_header_sys_types_h" = x""yes; then :
4899 $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h
Sauw Mingbe3771a2010-08-27 06:46:29 +00004900
4901fi
Sauw Mingbe3771a2010-08-27 06:46:29 +00004902
Sauw Mingbe3771a2010-08-27 06:46:29 +00004903
Benny Prijonof8957782011-04-11 02:43:04 +00004904ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
4905if test "x$ac_cv_header_sys_filio_h" = x""yes; then :
4906 $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h
Sauw Ming6e6c2152010-12-14 13:03:10 +00004907
Sauw Ming6e6c2152010-12-14 13:03:10 +00004908fi
4909
Sauw Ming6e6c2152010-12-14 13:03:10 +00004910
Benny Prijonof8957782011-04-11 02:43:04 +00004911ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
4912if test "x$ac_cv_header_sys_sockio_h" = x""yes; then :
4913 $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h
Sauw Ming6e6c2152010-12-14 13:03:10 +00004914
Sauw Ming6e6c2152010-12-14 13:03:10 +00004915fi
4916
Sauw Ming6e6c2152010-12-14 13:03:10 +00004917
Benny Prijonof8957782011-04-11 02:43:04 +00004918ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
4919if test "x$ac_cv_header_time_h" = x""yes; then :
4920 $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h
Sauw Mingbe3771a2010-08-27 06:46:29 +00004921
Sauw Mingbe3771a2010-08-27 06:46:29 +00004922fi
4923
Benny Prijono46bd0842010-02-12 14:12:41 +00004924
Benny Prijonof8957782011-04-11 02:43:04 +00004925ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4926if test "x$ac_cv_header_unistd_h" = x""yes; then :
4927 $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h
Sauw Ming6e6c2152010-12-14 13:03:10 +00004928
Sauw Ming6e6c2152010-12-14 13:03:10 +00004929fi
4930
Sauw Ming6e6c2152010-12-14 13:03:10 +00004931
Benny Prijonof8957782011-04-11 02:43:04 +00004932ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
4933if test "x$ac_cv_header_winsock_h" = x""yes; then :
4934 $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h
Sauw Ming6e6c2152010-12-14 13:03:10 +00004935
Sauw Ming6e6c2152010-12-14 13:03:10 +00004936fi
4937
Sauw Ming6e6c2152010-12-14 13:03:10 +00004938
Benny Prijonof8957782011-04-11 02:43:04 +00004939ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4940if test "x$ac_cv_header_winsock2_h" = x""yes; then :
4941 $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h
Sauw Ming6e6c2152010-12-14 13:03:10 +00004942
Sauw Ming6e6c2152010-12-14 13:03:10 +00004943fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00004944
Benny Prijono46bd0842010-02-12 14:12:41 +00004945
Benny Prijonof8957782011-04-11 02:43:04 +00004946ac_fn_c_check_header_compile "$LINENO" "mswsock.h" "ac_cv_header_mswsock_h" "#if PJ_HAS_WINSOCK2_H
Benny Prijonoa9948e62008-03-25 14:03:01 +00004947 # include <winsock2.h>
4948 #elif PJ_HAS_WINSOCK_H
4949 # include <winsock.h>
4950 #endif
4951
Benny Prijonof8957782011-04-11 02:43:04 +00004952"
4953if test "x$ac_cv_header_mswsock_h" = x""yes; then :
4954 $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h
Benny Prijonoa9948e62008-03-25 14:03:01 +00004955
4956fi
4957
4958
Benny Prijonof8957782011-04-11 02:43:04 +00004959ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
4960if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
4961 $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h
Benny Prijonoe2746132008-09-27 13:16:35 +00004962
4963fi
4964
4965
Benny Prijonof8957782011-04-11 02:43:04 +00004966ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
4967if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00004968 ac_has_uuid_h=1
4969fi
4970
4971
Benny Prijonof8957782011-04-11 02:43:04 +00004972ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#if PJ_HAS_SYS_TYPES_H
Benny Prijonod5233702010-01-13 13:09:45 +00004973 # include <sys/types.h>
4974 #endif
4975 #if PJ_HAS_SYS_SOCKET_H
4976
Benny Prijono188ba7e2008-03-25 13:53:16 +00004977 # include <sys/socket.h>
4978 #endif
4979
Benny Prijonof8957782011-04-11 02:43:04 +00004980"
4981if test "x$ac_cv_header_net_if_h" = x""yes; then :
4982 $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h
Benny Prijono188ba7e2008-03-25 13:53:16 +00004983
4984fi
4985
Benny Prijono188ba7e2008-03-25 13:53:16 +00004986
Benny Prijonof8957782011-04-11 02:43:04 +00004987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5
4988$as_echo "Setting PJ_OS_NAME to $target" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004989cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004990#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004991_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004992
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004993
Benny Prijonof8957782011-04-11 02:43:04 +00004994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
4995$as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
4996$as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004997
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004998
Benny Prijonof8957782011-04-11 02:43:04 +00004999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
5000$as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
5001$as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005002
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005003
Benny Prijonof8957782011-04-11 02:43:04 +00005004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5
5005$as_echo "Setting PJ_HAS_MALLOC to 1" >&6; }
5006$as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005007
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005008
Benny Prijonof8957782011-04-11 02:43:04 +00005009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
5010$as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
5011$as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005012
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005013
Benny Prijonof8957782011-04-11 02:43:04 +00005014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
5015$as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
5016$as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005017
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005018
Benny Prijonof8957782011-04-11 02:43:04 +00005019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5
5020$as_echo_n "checking if inet_aton() is available... " >&6; }
5021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005022/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005023#include <sys/types.h>
5024 #include <sys/socket.h>
5025 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005026int
5027main ()
5028{
5029inet_aton(0, 0);
5030 ;
5031 return 0;
5032}
5033_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00005034if ac_fn_c_try_compile "$LINENO"; then :
5035 $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005036
Benny Prijonof8957782011-04-11 02:43:04 +00005037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5038$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005039else
Benny Prijonof8957782011-04-11 02:43:04 +00005040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005042fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044
Benny Prijonof8957782011-04-11 02:43:04 +00005045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5
5046$as_echo_n "checking if inet_pton() is available... " >&6; }
5047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005048/* end confdefs.h. */
5049#include <sys/types.h>
5050 #include <sys/socket.h>
5051 #include <arpa/inet.h>
5052int
5053main ()
5054{
5055inet_pton(0, 0, 0);
5056 ;
5057 return 0;
5058}
5059_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00005060if ac_fn_c_try_compile "$LINENO"; then :
5061 $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005062
Benny Prijonof8957782011-04-11 02:43:04 +00005063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5064$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005065else
Benny Prijonof8957782011-04-11 02:43:04 +00005066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005068fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070
Benny Prijonof8957782011-04-11 02:43:04 +00005071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5
5072$as_echo_n "checking if inet_ntop() is available... " >&6; }
5073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005074/* end confdefs.h. */
5075#include <sys/types.h>
5076 #include <sys/socket.h>
5077 #include <arpa/inet.h>
5078int
5079main ()
5080{
5081inet_ntop(0, 0, 0, 0);
5082 ;
5083 return 0;
5084}
5085_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00005086if ac_fn_c_try_compile "$LINENO"; then :
5087 $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005088
Benny Prijonof8957782011-04-11 02:43:04 +00005089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5090$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005091else
Benny Prijonof8957782011-04-11 02:43:04 +00005092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005094fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5096
Benny Prijonof8957782011-04-11 02:43:04 +00005097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5
5098$as_echo_n "checking if getaddrinfo() is available... " >&6; }
5099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005100/* end confdefs.h. */
5101#include <sys/types.h>
5102 #include <sys/socket.h>
5103 #include <netdb.h>
5104int
5105main ()
5106{
5107getaddrinfo(0, 0, 0, 0);
5108 ;
5109 return 0;
5110}
5111_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00005112if ac_fn_c_try_compile "$LINENO"; then :
5113 $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005114
Benny Prijonof8957782011-04-11 02:43:04 +00005115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5116$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005117else
Benny Prijonof8957782011-04-11 02:43:04 +00005118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005120fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122
Benny Prijonof8957782011-04-11 02:43:04 +00005123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5
5124$as_echo_n "checking if sockaddr_in has sin_len member... " >&6; }
5125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005126/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005127#include <sys/types.h>
5128 #include <sys/socket.h>
5129 #include <netinet/in.h>
5130 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005131int
5132main ()
5133{
5134struct sockaddr_in a; a.sin_len=0;
5135 ;
5136 return 0;
5137}
5138_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00005139if ac_fn_c_try_compile "$LINENO"; then :
5140 $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005141
Benny Prijonof8957782011-04-11 02:43:04 +00005142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5143$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005144else
Benny Prijonof8957782011-04-11 02:43:04 +00005145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005147fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149
Benny Prijonof8957782011-04-11 02:43:04 +00005150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5
5151$as_echo_n "checking if socklen_t is available... " >&6; }
5152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005153/* end confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +00005154#include <sys/types.h>
5155 #include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00005156int
5157main ()
5158{
5159socklen_t xxx = 0;
5160 ;
5161 return 0;
5162}
5163_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00005164if ac_fn_c_try_compile "$LINENO"; then :
5165 $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h
Benny Prijono30f85c62006-09-09 20:05:33 +00005166
Benny Prijonof8957782011-04-11 02:43:04 +00005167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5168$as_echo "yes" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005169else
Benny Prijonof8957782011-04-11 02:43:04 +00005170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171$as_echo "no" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005172fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5174
Benny Prijonof8957782011-04-11 02:43:04 +00005175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5
5176$as_echo_n "checking if SO_ERROR is available... " >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005177case $target in
5178 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonof8957782011-04-11 02:43:04 +00005179 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005180
Benny Prijonof8957782011-04-11 02:43:04 +00005181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5182$as_echo "yes" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005183 ;;
5184 *)
Benny Prijonof8957782011-04-11 02:43:04 +00005185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005186/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005187#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005188 #include <sys/socket.h>
5189 #include <netinet/in.h>
5190 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005191int
5192main ()
5193{
5194int i=SO_ERROR;
5195 ;
5196 return 0;
5197}
5198_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00005199if ac_fn_c_try_compile "$LINENO"; then :
5200 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005201
Benny Prijonof8957782011-04-11 02:43:04 +00005202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5203$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005204else
Benny Prijonof8957782011-04-11 02:43:04 +00005205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005207fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005209 ;;
5210esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005211
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005212
Benny Prijonof8957782011-04-11 02:43:04 +00005213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5
5214$as_echo_n "checking if pthread_rwlock_t is available... " >&6; }
5215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005216/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005217#include <pthread.h>
5218int
5219main ()
5220{
5221pthread_rwlock_t *x;
5222 ;
5223 return 0;
5224}
5225_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00005226if ac_fn_c_try_compile "$LINENO"; then :
5227 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005228
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005229 ac_rwmutex="yes"
Benny Prijonof8957782011-04-11 02:43:04 +00005230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5231$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005232else
Benny Prijonof8957782011-04-11 02:43:04 +00005233 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005234
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005235 ac_rwmutex="no"
Benny Prijonof8957782011-04-11 02:43:04 +00005236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005238fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005240
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005241if test "$ac_rwmutex" = "no"; then
Benny Prijonof8957782011-04-11 02:43:04 +00005242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
5243$as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; }
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005245/* end confdefs.h. */
5246#define _POSIX_READER_WRITER_LOCKS
5247 #include <pthread.h>
5248int
5249main ()
5250{
5251pthread_rwlock_t *x;
5252 ;
5253 return 0;
5254}
5255_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00005256if ac_fn_c_try_compile "$LINENO"; then :
5257 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005258
5259 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Benny Prijonof8957782011-04-11 02:43:04 +00005260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5261$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005262else
Benny Prijonof8957782011-04-11 02:43:04 +00005263 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005264
Benny Prijonof8957782011-04-11 02:43:04 +00005265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005267fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5269fi
5270
Benny Prijonof8957782011-04-11 02:43:04 +00005271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5
5272$as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; }
5273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005274/* end confdefs.h. */
5275#include <pthread.h>
5276int
5277main ()
5278{
5279pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
5280 ;
5281 return 0;
5282}
5283_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00005284if ac_fn_c_try_compile "$LINENO"; then :
5285 $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005286
Benny Prijonof8957782011-04-11 02:43:04 +00005287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5288$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005289else
Benny Prijonof8957782011-04-11 02:43:04 +00005290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005292fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294
Benny Prijonof8957782011-04-11 02:43:04 +00005295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5
5296$as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; }
5297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005298/* end confdefs.h. */
5299#include <pthread.h>
5300int
5301main ()
5302{
5303pthread_mutexattr_t attr;
5304 attr.recursive=1;
5305 ;
5306 return 0;
5307}
5308_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00005309if ac_fn_c_try_compile "$LINENO"; then :
5310 $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005311
Benny Prijonof8957782011-04-11 02:43:04 +00005312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5313$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005314else
Benny Prijonof8957782011-04-11 02:43:04 +00005315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005317fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005319
Benny Prijono99eec382008-09-18 21:22:16 +00005320
Benny Prijonof8957782011-04-11 02:43:04 +00005321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5
5322$as_echo_n "checking ioqueue backend... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005323# Check whether --enable-epoll was given.
Benny Prijonof8957782011-04-11 02:43:04 +00005324if test "${enable_epoll+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005325 enableval=$enable_epoll;
Benny Prijono99eec382008-09-18 21:22:16 +00005326 ac_os_objs=ioqueue_epoll.o
Benny Prijonof8957782011-04-11 02:43:04 +00005327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5
5328$as_echo "/dev/epoll" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005329
5330else
5331
5332 ac_os_objs=ioqueue_select.o
Benny Prijonof8957782011-04-11 02:43:04 +00005333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5
5334$as_echo "select()" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005335
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005336fi
5337
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005338
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005339
5340case $target in
5341 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono99eec382008-09-18 21:22:16 +00005342 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 +00005343 ;;
5344 *)
Benny Prijono99eec382008-09-18 21:22:16 +00005345 ac_os_objs="$ac_os_objs file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o"
Benny Prijono4e48b512007-05-16 13:41:00 +00005346 # UUID
5347 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
5348 ac_os_objs="$ac_os_objs guid_uuid.o"
5349 else
5350 ac_os_objs="$ac_os_objs guid_simple.o"
5351 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005352 ;;
5353esac
5354
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005355
5356
5357
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005358ac_external_speex=0
5359
5360
5361# Check whether --with-external-speex was given.
Benny Prijonof8957782011-04-11 02:43:04 +00005362if test "${with_external_speex+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005363 withval=$with_external_speex;
5364 if test "x$with_external_speex" != "xno"; then
5365 # Test Speex installation
Benny Prijonof8957782011-04-11 02:43:04 +00005366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5
5367$as_echo_n "checking if external Speex devkit is installed... " >&6; }
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005369/* end confdefs.h. */
5370#include <speex/speex.h>
5371 #include <speex/speex_echo.h>
5372
5373int
5374main ()
5375{
5376speex_echo_state_init(0, 0); speex_encoder_init(0);
5377 ;
5378 return 0;
5379}
5380_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00005381if ac_fn_c_try_compile "$LINENO"; then :
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5383$as_echo "yes!!" >&6; }
5384 $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005385
5386 ac_external_speex="1"
5387
5388else
Benny Prijonof8957782011-04-11 02:43:04 +00005389 as_fn_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" "$LINENO" 5
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005390fi
5391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392 fi
5393
5394
5395fi
5396
5397
5398ac_external_gsm=0
5399
5400
5401# Check whether --with-external-gsm was given.
Benny Prijonof8957782011-04-11 02:43:04 +00005402if test "${with_external_gsm+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005403 withval=$with_external_gsm;
5404 if test "x$with_external_gsm" != "xno"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005405 # Test GSM library installation
Benny Prijonof8957782011-04-11 02:43:04 +00005406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5
5407$as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; }
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005409/* end confdefs.h. */
5410#include <gsm/gsm.h>
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005411int
5412main ()
5413{
5414gsm_create();
5415 ;
5416 return 0;
5417}
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005418_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00005419if ac_fn_c_try_compile "$LINENO"; then :
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5421$as_echo "yes!!" >&6; }
5422 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005423
Benny Prijonof8957782011-04-11 02:43:04 +00005424 $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005425
5426 ac_external_gsm="1"
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005427
5428else
Benny Prijono46bd0842010-02-12 14:12:41 +00005429
Benny Prijonof8957782011-04-11 02:43:04 +00005430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431$as_echo "no" >&6; }
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5
5433$as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; }
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod4306432010-05-01 22:05:41 +00005435/* end confdefs.h. */
5436#include <gsm.h>
5437int
5438main ()
5439{
5440gsm_create();
5441 ;
5442 return 0;
5443}
5444_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00005445if ac_fn_c_try_compile "$LINENO"; then :
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5447$as_echo "yes!!" >&6; }
5448 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005449
Benny Prijonof8957782011-04-11 02:43:04 +00005450 $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005451
5452 ac_external_gsm="1"
5453
5454else
Benny Prijonof8957782011-04-11 02:43:04 +00005455 as_fn_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" "$LINENO" 5
Benny Prijonod4306432010-05-01 22:05:41 +00005456
5457
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005458fi
Benny Prijonod4306432010-05-01 22:05:41 +00005459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono46bd0842010-02-12 14:12:41 +00005460
Benny Prijonod4306432010-05-01 22:05:41 +00005461
5462fi
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464 fi
5465
5466
5467fi
5468
5469
5470
5471
Benny Prijono4e48b512007-05-16 13:41:00 +00005472
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005473# Check whether --enable-sound was given.
Benny Prijonof8957782011-04-11 02:43:04 +00005474if test "${enable_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005475 enableval=$enable_sound; if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +00005476 ac_pjmedia_snd=null
Benny Prijonof8957782011-04-11 02:43:04 +00005477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5
5478$as_echo "Checking if sound is disabled... yes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00005479 fi
5480
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005481fi
5482
Benny Prijono1d971622006-09-10 22:27:40 +00005483
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005484ac_external_pa=0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005485
Benny Prijono27c98722007-04-09 21:28:15 +00005486
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005487# Check whether --with-external-pa was given.
Benny Prijonof8957782011-04-11 02:43:04 +00005488if test "${with_external_pa+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005489 withval=$with_external_pa;
5490 if test "x$with_external_pa" != "xno"; then
5491 # Test PortAudio installation
Benny Prijonof8957782011-04-11 02:43:04 +00005492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5
5493$as_echo_n "checking if external PortAudio devkit is installed... " >&6; }
5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005495/* end confdefs.h. */
5496#include <portaudio.h>
5497
5498int
5499main ()
5500{
5501Pa_Initialize();
5502 ;
5503 return 0;
5504}
5505_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00005506if ac_fn_c_try_compile "$LINENO"; then :
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5508$as_echo "yes!!" >&6; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005509 ac_external_pa="1"
5510
5511else
Benny Prijonof8957782011-04-11 02:43:04 +00005512 as_fn_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" "$LINENO" 5
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005513fi
5514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonofe0c1272010-01-13 16:28:15 +00005515 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005516
Benny Prijono27c98722007-04-09 21:28:15 +00005517
5518fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005519
5520
5521
Benny Prijonof8957782011-04-11 02:43:04 +00005522ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
5523if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005524 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
5525fi
5526
5527
Benny Prijonof8957782011-04-11 02:43:04 +00005528ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
5529if test "x$ac_cv_header_linux_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005530 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
5531fi
5532
5533
Benny Prijonof8957782011-04-11 02:43:04 +00005534ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
5535if test "x$ac_cv_header_machine_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005536 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
5537fi
5538
5539
5540
Benny Prijono3e091672008-01-09 15:43:02 +00005541if test "x$ac_cv_c_bigendian" = "xyes"; then
5542 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
5543else
5544 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
5545fi
5546
Benny Prijono1d971622006-09-10 22:27:40 +00005547if test "$enable_sound" = "no"; then
5548 true;
5549else
5550 case $target in
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005551 arm-apple-darwin*)
Sauw Mingbe3771a2010-08-27 06:46:29 +00005552 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork"
Benny Prijonof8957782011-04-11 02:43:04 +00005553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5
5554$as_echo "Checking sound device backend... AudioUnit" >&6; }
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005555 ;;
Benny Prijonob466e232006-09-10 08:53:59 +00005556 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00005557 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
5558 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +00005559 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +00005560 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
5561 ac_pjmedia_snd=pa_old_darwinos
Benny Prijonof8957782011-04-11 02:43:04 +00005562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5
5563$as_echo "Checking sound device backend... old coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005564 else
5565 ac_pjmedia_snd=pa_darwinos
Benny Prijonof8957782011-04-11 02:43:04 +00005566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5
5567$as_echo "Checking sound device backend... coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005568 fi
Benny Prijonob466e232006-09-10 08:53:59 +00005569 ;;
5570 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005571 ac_pjmedia_snd=pa_win32
Benny Prijonof8957782011-04-11 02:43:04 +00005572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5
5573$as_echo "Checking sound device backend... win32 sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005574 ;;
5575 *rtems*)
5576 ac_pjmedia_snd=null
Benny Prijonof8957782011-04-11 02:43:04 +00005577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5
5578$as_echo "Checking sound device backend... null sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005579 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005580 *)
Benny Prijono0b462322008-03-12 22:44:24 +00005581 ac_pjmedia_snd=pa_unix
Benny Prijonof8957782011-04-11 02:43:04 +00005582 ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default"
5583if test "x$ac_cv_header_alsa_version_h" = x""yes; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005584 ac_pa_use_alsa=1
5585
5586 LIBS="$LIBS -lasound"
5587
5588else
5589 ac_pa_use_alsa=0
5590
5591fi
5592
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005593
Benny Prijonof8957782011-04-11 02:43:04 +00005594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5
5595$as_echo "Checking sound device backend... unix" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005596
5597 ac_pa_use_oss=1
5598
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005599 # Check whether --enable-oss was given.
Benny Prijonof8957782011-04-11 02:43:04 +00005600if test "${enable_oss+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005601 enableval=$enable_oss;
Benny Prijono0b462322008-03-12 22:44:24 +00005602 if test "$enable_oss" = "no"; then
5603 ac_pa_use_oss=0
Benny Prijonof8957782011-04-11 02:43:04 +00005604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5
5605$as_echo "Checking if OSS audio is disabled... yes" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005606 fi
5607
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005608fi
5609
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005610 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00005611 esac
5612fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005613
Sauw Ming6e6c2152010-12-14 13:03:10 +00005614
5615if test "$enable_video" = "no"; then
5616 true;
5617else
5618 case $target in
5619 arm-apple-darwin*)
5620 ac_pjmedia_video=iphone_os
5621
5622 ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1"
5623 LIBS="$LIBS -framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
Benny Prijonof8957782011-04-11 02:43:04 +00005624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking video device backend... AVFoundation" >&5
5625$as_echo "Checking video device backend... AVFoundation" >&6; }
Sauw Ming6e6c2152010-12-14 13:03:10 +00005626 ;;
5627 *darwin*)
5628 ac_pjmedia_video=mac_os
5629
5630
5631 SAVED_LIBS="$LIBS"
5632 LIBS="-framework QTKit"
Benny Prijonof8957782011-04-11 02:43:04 +00005633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Ming6e6c2152010-12-14 13:03:10 +00005634/* end confdefs.h. */
5635
5636int
5637main ()
5638{
5639
5640 ;
5641 return 0;
5642}
5643_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00005644if ac_fn_c_try_link "$LINENO"; then :
Sauw Ming6e6c2152010-12-14 13:03:10 +00005645 ac_pjmedia_video_has_qt=yes
5646else
Benny Prijonof8957782011-04-11 02:43:04 +00005647 ac_pjmedia_video_has_qt=no
Sauw Ming6e6c2152010-12-14 13:03:10 +00005648fi
Benny Prijonof8957782011-04-11 02:43:04 +00005649rm -f core conftest.err conftest.$ac_objext \
5650 conftest$ac_exeext conftest.$ac_ext
Sauw Ming6e6c2152010-12-14 13:03:10 +00005651 LIBS="$SAVED_LIBS"
5652 if test "$ac_pjmedia_video_has_qt" = "yes"; then
5653 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1"
Sauw Ming21bd3fd2011-04-06 11:30:18 +00005654 LIBS="$LIBS -framework QTKit -framework Foundation -framework AppKit -framework QuartzCore -framework OpenGL"
Benny Prijonof8957782011-04-11 02:43:04 +00005655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... yes" >&5
5656$as_echo "Checking if QTKit framework is available... yes" >&6; }
Sauw Ming6e6c2152010-12-14 13:03:10 +00005657 else
Benny Prijonof8957782011-04-11 02:43:04 +00005658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... no" >&5
5659$as_echo "Checking if QTKit framework is available... no" >&6; }
Sauw Ming6e6c2152010-12-14 13:03:10 +00005660 fi
5661 ;;
5662 esac
5663fi
5664
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005665# Check whether --enable-ext_sound was given.
Benny Prijonof8957782011-04-11 02:43:04 +00005666if test "${enable_ext_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005667 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
Benny Prijonoebb2c332008-07-28 23:40:58 +00005668 ac_pjmedia_snd=external
Benny Prijonof8957782011-04-11 02:43:04 +00005669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5
5670$as_echo "Checking if external sound is set... yes" >&6; }
Benny Prijonoebb2c332008-07-28 23:40:58 +00005671 fi
5672
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005673fi
Benny Prijonoebb2c332008-07-28 23:40:58 +00005674
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005675
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005676
5677# Check whether --enable-small-filter was given.
Benny Prijonof8957782011-04-11 02:43:04 +00005678if test "${enable_small_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005679 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005680 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijonof8957782011-04-11 02:43:04 +00005681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5
5682$as_echo "Checking if small filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005683 fi
5684else
Benny Prijonof8957782011-04-11 02:43:04 +00005685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5
5686$as_echo "Checking if small filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005687fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005688
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005689
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005690
5691# Check whether --enable-large-filter was given.
Benny Prijonof8957782011-04-11 02:43:04 +00005692if test "${enable_large_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005693 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005694 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijonof8957782011-04-11 02:43:04 +00005695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5
5696$as_echo "Checking if large filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005697 fi
5698else
Benny Prijonof8957782011-04-11 02:43:04 +00005699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5
5700$as_echo "Checking if large filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005701fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005702
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005703
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005704
5705# Check whether --enable-speex-aec was given.
Benny Prijonof8957782011-04-11 02:43:04 +00005706if test "${enable_speex_aec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005707 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005708 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijonof8957782011-04-11 02:43:04 +00005709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5
5710$as_echo "Checking if Speex AEC is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005711 fi
5712else
Benny Prijonof8957782011-04-11 02:43:04 +00005713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5
5714$as_echo "Checking if Speex AEC is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005715fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005716
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005717
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005718
5719# Check whether --enable-g711-codec was given.
Benny Prijonof8957782011-04-11 02:43:04 +00005720if test "${enable_g711_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005721 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005722 ac_no_g711_codec=1
Benny Prijonof8957782011-04-11 02:43:04 +00005723 $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005724
Benny Prijonof8957782011-04-11 02:43:04 +00005725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5
5726$as_echo "Checking if G.711 codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005727 fi
5728else
Benny Prijonof8957782011-04-11 02:43:04 +00005729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5
5730$as_echo "Checking if G.711 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005731fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005732
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005733
5734
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005735
5736# Check whether --enable-l16-codec was given.
Benny Prijonof8957782011-04-11 02:43:04 +00005737if test "${enable_l16_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005738 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005739 ac_no_l16_codec=1
Benny Prijonof8957782011-04-11 02:43:04 +00005740 $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005741
Benny Prijonof8957782011-04-11 02:43:04 +00005742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5
5743$as_echo "Checking if L16 codecs are disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005744 fi
5745else
Benny Prijonof8957782011-04-11 02:43:04 +00005746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5
5747$as_echo "Checking if L16 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005748fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005749
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005750
5751
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005752
5753# Check whether --enable-gsm-codec was given.
Benny Prijonof8957782011-04-11 02:43:04 +00005754if test "${enable_gsm_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005755 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005756 ac_no_gsm_codec=1
Benny Prijonof8957782011-04-11 02:43:04 +00005757 $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005758
Benny Prijonof8957782011-04-11 02:43:04 +00005759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5
5760$as_echo "Checking if GSM codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005761 fi
5762else
Benny Prijonof8957782011-04-11 02:43:04 +00005763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5
5764$as_echo "Checking if GSM codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005765fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005766
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005767
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005768
5769# Check whether --enable-g722-codec was given.
Benny Prijonof8957782011-04-11 02:43:04 +00005770if test "${enable_g722_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005771 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
Benny Prijono71f657d2008-03-17 14:24:21 +00005772 ac_no_g722_codec=1
Benny Prijonof8957782011-04-11 02:43:04 +00005773 $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h
Benny Prijono71f657d2008-03-17 14:24:21 +00005774
Benny Prijonof8957782011-04-11 02:43:04 +00005775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5
5776$as_echo "Checking if G.722 codec is disabled...yes" >&6; }
Benny Prijono71f657d2008-03-17 14:24:21 +00005777 fi
5778else
Benny Prijonof8957782011-04-11 02:43:04 +00005779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5
5780$as_echo "Checking if G.722 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005781fi
Benny Prijono71f657d2008-03-17 14:24:21 +00005782
5783
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005784
5785# Check whether --enable-g7221-codec was given.
Benny Prijonof8957782011-04-11 02:43:04 +00005786if test "${enable_g7221_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005787 enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
5788 ac_no_g7221_codec=1
Benny Prijonof8957782011-04-11 02:43:04 +00005789 $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005790
Benny Prijonof8957782011-04-11 02:43:04 +00005791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5
5792$as_echo "Checking if G.722.1 codec is disabled...yes" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005793 fi
5794else
Benny Prijonof8957782011-04-11 02:43:04 +00005795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5
5796$as_echo "Checking if G.722.1 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005797fi
5798
5799
5800
5801# Check whether --enable-speex-codec was given.
Benny Prijonof8957782011-04-11 02:43:04 +00005802if test "${enable_speex_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005803 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005804 ac_no_speex_codec=1
Benny Prijonof8957782011-04-11 02:43:04 +00005805 $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005806
Benny Prijonof8957782011-04-11 02:43:04 +00005807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5
5808$as_echo "Checking if Speex codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005809 fi
5810else
Benny Prijonof8957782011-04-11 02:43:04 +00005811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5
5812$as_echo "Checking if Speex codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005813fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005814
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005815
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005816
5817# Check whether --enable-ilbc-codec was given.
Benny Prijonof8957782011-04-11 02:43:04 +00005818if test "${enable_ilbc_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005819 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005820 ac_no_ilbc_codec=1
Benny Prijonof8957782011-04-11 02:43:04 +00005821 $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005822
Benny Prijonof8957782011-04-11 02:43:04 +00005823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5
5824$as_echo "Checking if iLBC codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005825 fi
5826else
Benny Prijonof8957782011-04-11 02:43:04 +00005827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5
5828$as_echo "Checking if iLBC codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005829fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005830
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005831
5832# Check whether --enable-libsamplerate was given.
Benny Prijonof8957782011-04-11 02:43:04 +00005833if test "${enable_libsamplerate+set}" = set; then :
5834 enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5
5835$as_echo_n "checking for src_new in -lsamplerate... " >&6; }
5836if test "${ac_cv_lib_samplerate_src_new+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
Benny Prijono550a1a62007-10-16 08:54:00 +00005838else
5839 ac_check_lib_save_LIBS=$LIBS
5840LIBS="-lsamplerate $LIBS"
Benny Prijonof8957782011-04-11 02:43:04 +00005841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00005842/* end confdefs.h. */
5843
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005844/* Override any GCC internal prototype to avoid an error.
5845 Use char because int might match the return type of a GCC
5846 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +00005847#ifdef __cplusplus
5848extern "C"
5849#endif
Benny Prijono550a1a62007-10-16 08:54:00 +00005850char src_new ();
5851int
5852main ()
5853{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005854return src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +00005855 ;
5856 return 0;
5857}
5858_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00005859if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00005860 ac_cv_lib_samplerate_src_new=yes
5861else
Benny Prijonof8957782011-04-11 02:43:04 +00005862 ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +00005863fi
Benny Prijonof8957782011-04-11 02:43:04 +00005864rm -f core conftest.err conftest.$ac_objext \
5865 conftest$ac_exeext conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00005866LIBS=$ac_check_lib_save_LIBS
5867fi
Benny Prijonof8957782011-04-11 02:43:04 +00005868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5
5869$as_echo "$ac_cv_lib_samplerate_src_new" >&6; }
5870if test "x$ac_cv_lib_samplerate_src_new" = x""yes; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00005871 cat >>confdefs.h <<_ACEOF
5872#define HAVE_LIBSAMPLERATE 1
5873_ACEOF
5874
5875 LIBS="-lsamplerate $LIBS"
5876
5877fi
5878
5879else
Benny Prijonof8957782011-04-11 02:43:04 +00005880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5
5881$as_echo "Skipping libsamplerate detection" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00005882
5883fi
5884
5885
5886# Check whether --enable-sdl was given.
Benny Prijonof8957782011-04-11 02:43:04 +00005887if test "${enable_sdl+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00005888 enableval=$enable_sdl;
5889 if test "$enable_sdl" = "no"; then
Benny Prijonof8957782011-04-11 02:43:04 +00005890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SDL is disabled... yes" >&5
5891$as_echo "Checking if SDL is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00005892 fi
5893
5894else
5895
Benny Prijonof8957782011-04-11 02:43:04 +00005896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL availability.." >&5
5897$as_echo_n "checking SDL availability..... " >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00005898 if sdl-config --version; then
5899
5900
5901 ac_sdl_cflags=`sdl-config --cflags`
5902 ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags"
5903 ac_sdl_ldflags=`sdl-config --libs`
Benny Prijono69b1f822010-12-10 11:33:01 +00005904 LIBS="$LIBS $ac_sdl_ldflags"
Benny Prijonoc45d9512010-12-10 11:04:30 +00005905 fi
Benny Prijono550a1a62007-10-16 08:54:00 +00005906
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005907fi
Benny Prijono0822c192008-08-21 20:59:58 +00005908
5909
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005910
Benny Prijonoc45d9512010-12-10 11:04:30 +00005911# Check whether --enable-ffmpeg was given.
Benny Prijonof8957782011-04-11 02:43:04 +00005912if test "${enable_ffmpeg+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00005913 enableval=$enable_ffmpeg;
5914 ac_has_ffmpeg=0
5915
5916 if test "$enable_ffmpeg" = "no"; then
Benny Prijonof8957782011-04-11 02:43:04 +00005917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if ffmpeg is disabled... yes" >&5
5918$as_echo "Checking if ffmpeg is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00005919 fi
5920
5921else
5922
5923
5924
5925
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00005926 FFMPEG_PREFIX=""
5927 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then
5928 FFMPEG_PREFIX=$with_ffmpeg
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5
5930$as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; }
5931 LIBS="-L$FFMPEG_PREFIX/lib $LIBS"
5932 CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS"
5933 fi
5934
Benny Prijonof8957782011-04-11 02:43:04 +00005935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&5
5936$as_echo_n "checking for avdevice_version in -lavdevice... " >&6; }
5937if test "${ac_cv_lib_avdevice_avdevice_version+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00005939else
5940 ac_check_lib_save_LIBS=$LIBS
5941LIBS="-lavdevice $LIBS"
Benny Prijonof8957782011-04-11 02:43:04 +00005942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00005943/* end confdefs.h. */
5944
5945/* Override any GCC internal prototype to avoid an error.
5946 Use char because int might match the return type of a GCC
5947 builtin and then its argument prototype would still apply. */
5948#ifdef __cplusplus
5949extern "C"
5950#endif
5951char avdevice_version ();
5952int
5953main ()
5954{
5955return avdevice_version ();
5956 ;
5957 return 0;
5958}
5959_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00005960if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00005961 ac_cv_lib_avdevice_avdevice_version=yes
5962else
Benny Prijonof8957782011-04-11 02:43:04 +00005963 ac_cv_lib_avdevice_avdevice_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00005964fi
Benny Prijonof8957782011-04-11 02:43:04 +00005965rm -f core conftest.err conftest.$ac_objext \
5966 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00005967LIBS=$ac_check_lib_save_LIBS
5968fi
Benny Prijonof8957782011-04-11 02:43:04 +00005969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avdevice_avdevice_version" >&5
5970$as_echo "$ac_cv_lib_avdevice_avdevice_version" >&6; }
5971if test "x$ac_cv_lib_avdevice_avdevice_version" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00005972 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
5973 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice"
5974
5975
5976fi
5977
Benny Prijonof8957782011-04-11 02:43:04 +00005978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_all in -lavformat" >&5
5979$as_echo_n "checking for av_register_all in -lavformat... " >&6; }
5980if test "${ac_cv_lib_avformat_av_register_all+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00005982else
5983 ac_check_lib_save_LIBS=$LIBS
5984LIBS="-lavformat $LIBS"
Benny Prijonof8957782011-04-11 02:43:04 +00005985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00005986/* end confdefs.h. */
5987
5988/* Override any GCC internal prototype to avoid an error.
5989 Use char because int might match the return type of a GCC
5990 builtin and then its argument prototype would still apply. */
5991#ifdef __cplusplus
5992extern "C"
5993#endif
5994char av_register_all ();
5995int
5996main ()
5997{
5998return av_register_all ();
5999 ;
6000 return 0;
6001}
6002_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00006003if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006004 ac_cv_lib_avformat_av_register_all=yes
6005else
Benny Prijonof8957782011-04-11 02:43:04 +00006006 ac_cv_lib_avformat_av_register_all=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006007fi
Benny Prijonof8957782011-04-11 02:43:04 +00006008rm -f core conftest.err conftest.$ac_objext \
6009 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006010LIBS=$ac_check_lib_save_LIBS
6011fi
Benny Prijonof8957782011-04-11 02:43:04 +00006012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_register_all" >&5
6013$as_echo "$ac_cv_lib_avformat_av_register_all" >&6; }
6014if test "x$ac_cv_lib_avformat_av_register_all" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006015 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
6016 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat"
6017
6018
6019fi
6020
Benny Prijonof8957782011-04-11 02:43:04 +00006021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_init in -lavcodec" >&5
6022$as_echo_n "checking for avcodec_init in -lavcodec... " >&6; }
6023if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then :
6024 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006025else
6026 ac_check_lib_save_LIBS=$LIBS
6027LIBS="-lavcodec $LIBS"
Benny Prijonof8957782011-04-11 02:43:04 +00006028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006029/* end confdefs.h. */
6030
6031/* Override any GCC internal prototype to avoid an error.
6032 Use char because int might match the return type of a GCC
6033 builtin and then its argument prototype would still apply. */
6034#ifdef __cplusplus
6035extern "C"
6036#endif
6037char avcodec_init ();
6038int
6039main ()
6040{
6041return avcodec_init ();
6042 ;
6043 return 0;
6044}
6045_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00006046if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006047 ac_cv_lib_avcodec_avcodec_init=yes
6048else
Benny Prijonof8957782011-04-11 02:43:04 +00006049 ac_cv_lib_avcodec_avcodec_init=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006050fi
Benny Prijonof8957782011-04-11 02:43:04 +00006051rm -f core conftest.err conftest.$ac_objext \
6052 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006053LIBS=$ac_check_lib_save_LIBS
6054fi
Benny Prijonof8957782011-04-11 02:43:04 +00006055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_init" >&5
6056$as_echo "$ac_cv_lib_avcodec_avcodec_init" >&6; }
6057if test "x$ac_cv_lib_avcodec_avcodec_init" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006058 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
6059 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec"
6060
6061
6062fi
6063
Benny Prijonof8957782011-04-11 02:43:04 +00006064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5
6065$as_echo_n "checking for sws_scale in -lswscale... " >&6; }
6066if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then :
6067 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006068else
6069 ac_check_lib_save_LIBS=$LIBS
6070LIBS="-lswscale $LIBS"
Benny Prijonof8957782011-04-11 02:43:04 +00006071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006072/* end confdefs.h. */
6073
6074/* Override any GCC internal prototype to avoid an error.
6075 Use char because int might match the return type of a GCC
6076 builtin and then its argument prototype would still apply. */
6077#ifdef __cplusplus
6078extern "C"
6079#endif
6080char sws_scale ();
6081int
6082main ()
6083{
6084return sws_scale ();
6085 ;
6086 return 0;
6087}
6088_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00006089if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006090 ac_cv_lib_swscale_sws_scale=yes
6091else
Benny Prijonof8957782011-04-11 02:43:04 +00006092 ac_cv_lib_swscale_sws_scale=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006093fi
Benny Prijonof8957782011-04-11 02:43:04 +00006094rm -f core conftest.err conftest.$ac_objext \
6095 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006096LIBS=$ac_check_lib_save_LIBS
6097fi
Benny Prijonof8957782011-04-11 02:43:04 +00006098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5
6099$as_echo "$ac_cv_lib_swscale_sws_scale" >&6; }
6100if test "x$ac_cv_lib_swscale_sws_scale" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006101 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
6102 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale"
6103
6104
6105fi
6106
Benny Prijonof8957782011-04-11 02:43:04 +00006107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_malloc in -lavutil" >&5
6108$as_echo_n "checking for av_malloc in -lavutil... " >&6; }
6109if test "${ac_cv_lib_avutil_av_malloc+set}" = set; then :
6110 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006111else
6112 ac_check_lib_save_LIBS=$LIBS
6113LIBS="-lavutil $LIBS"
Benny Prijonof8957782011-04-11 02:43:04 +00006114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006115/* end confdefs.h. */
6116
6117/* Override any GCC internal prototype to avoid an error.
6118 Use char because int might match the return type of a GCC
6119 builtin and then its argument prototype would still apply. */
6120#ifdef __cplusplus
6121extern "C"
6122#endif
6123char av_malloc ();
6124int
6125main ()
6126{
6127return av_malloc ();
6128 ;
6129 return 0;
6130}
6131_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00006132if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006133 ac_cv_lib_avutil_av_malloc=yes
6134else
Benny Prijonof8957782011-04-11 02:43:04 +00006135 ac_cv_lib_avutil_av_malloc=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006136fi
Benny Prijonof8957782011-04-11 02:43:04 +00006137rm -f core conftest.err conftest.$ac_objext \
6138 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006139LIBS=$ac_check_lib_save_LIBS
6140fi
Benny Prijonof8957782011-04-11 02:43:04 +00006141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_malloc" >&5
6142$as_echo "$ac_cv_lib_avutil_av_malloc" >&6; }
6143if test "x$ac_cv_lib_avutil_av_malloc" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006144 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
6145 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil"
6146
6147
6148fi
6149
Benny Prijonof8957782011-04-11 02:43:04 +00006150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcore_version in -lavcore" >&5
6151$as_echo_n "checking for avcore_version in -lavcore... " >&6; }
6152if test "${ac_cv_lib_avcore_avcore_version+set}" = set; then :
6153 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006154else
6155 ac_check_lib_save_LIBS=$LIBS
6156LIBS="-lavcore $LIBS"
Benny Prijonof8957782011-04-11 02:43:04 +00006157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006158/* end confdefs.h. */
6159
6160/* Override any GCC internal prototype to avoid an error.
6161 Use char because int might match the return type of a GCC
6162 builtin and then its argument prototype would still apply. */
6163#ifdef __cplusplus
6164extern "C"
6165#endif
6166char avcore_version ();
6167int
6168main ()
6169{
6170return avcore_version ();
6171 ;
6172 return 0;
6173}
6174_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00006175if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006176 ac_cv_lib_avcore_avcore_version=yes
6177else
Benny Prijonof8957782011-04-11 02:43:04 +00006178 ac_cv_lib_avcore_avcore_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006179fi
Benny Prijonof8957782011-04-11 02:43:04 +00006180rm -f core conftest.err conftest.$ac_objext \
6181 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006182LIBS=$ac_check_lib_save_LIBS
6183fi
Benny Prijonof8957782011-04-11 02:43:04 +00006184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcore_avcore_version" >&5
6185$as_echo "$ac_cv_lib_avcore_avcore_version" >&6; }
6186if test "x$ac_cv_lib_avcore_avcore_version" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006187 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
6188 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore"
6189
6190
6191fi
6192
Benny Prijono69b1f822010-12-10 11:33:01 +00006193 LIBS="$LIBS $ac_ffmpeg_ldflags"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006194
6195
6196fi
6197
6198
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006199
6200# Check whether --with-ffmpeg was given.
6201if test "${with_ffmpeg+set}" = set; then :
6202 withval=$with_ffmpeg;
6203else
6204 with_ffmpeg=no
6205
6206fi
6207
6208
6209
Benny Prijonoc45d9512010-12-10 11:04:30 +00006210# Check whether --enable-v4l2 was given.
Benny Prijonof8957782011-04-11 02:43:04 +00006211if test "${enable_v4l2+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006212 enableval=$enable_v4l2;
6213 if test "$enable_v4l2" = "no"; then
Benny Prijonof8957782011-04-11 02:43:04 +00006214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if V4L2 is disabled... yes" >&5
6215$as_echo "Checking if V4L2 is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006216 fi
6217
6218else
6219
6220
6221
Benny Prijonof8957782011-04-11 02:43:04 +00006222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5
6223$as_echo_n "checking for v4l2_open in -lv4l2... " >&6; }
6224if test "${ac_cv_lib_v4l2_v4l2_open+set}" = set; then :
6225 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006226else
6227 ac_check_lib_save_LIBS=$LIBS
6228LIBS="-lv4l2 $LIBS"
Benny Prijonof8957782011-04-11 02:43:04 +00006229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006230/* end confdefs.h. */
6231
6232/* Override any GCC internal prototype to avoid an error.
6233 Use char because int might match the return type of a GCC
6234 builtin and then its argument prototype would still apply. */
6235#ifdef __cplusplus
6236extern "C"
6237#endif
6238char v4l2_open ();
6239int
6240main ()
6241{
6242return v4l2_open ();
6243 ;
6244 return 0;
6245}
6246_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00006247if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006248 ac_cv_lib_v4l2_v4l2_open=yes
6249else
Benny Prijonof8957782011-04-11 02:43:04 +00006250 ac_cv_lib_v4l2_v4l2_open=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006251fi
Benny Prijonof8957782011-04-11 02:43:04 +00006252rm -f core conftest.err conftest.$ac_objext \
6253 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006254LIBS=$ac_check_lib_save_LIBS
6255fi
Benny Prijonof8957782011-04-11 02:43:04 +00006256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5
6257$as_echo "$ac_cv_lib_v4l2_v4l2_open" >&6; }
6258if test "x$ac_cv_lib_v4l2_v4l2_open" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006259 ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1"
6260 ac_v4l2_ldflags="-lv4l2"
Benny Prijono69b1f822010-12-10 11:33:01 +00006261 LIBS="$LIBS -lv4l2"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006262
6263
6264fi
6265
6266
6267fi
6268
6269
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006270# Check whether --enable-ipp was given.
Benny Prijonof8957782011-04-11 02:43:04 +00006271if test "${enable_ipp+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006272 enableval=$enable_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00006273else
6274 enable_ipp=no
6275
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006276fi
Benny Prijono0822c192008-08-21 20:59:58 +00006277
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006278
Benny Prijono3965f192010-02-10 18:46:05 +00006279
6280# Check whether --with-ipp was given.
Benny Prijonof8957782011-04-11 02:43:04 +00006281if test "${with_ipp+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006282 withval=$with_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00006283else
6284 with_ipp=no
6285
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006286fi
Benny Prijono0822c192008-08-21 20:59:58 +00006287
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006288
Benny Prijono3965f192010-02-10 18:46:05 +00006289
6290# Check whether --with-ipp-samples was given.
Benny Prijonof8957782011-04-11 02:43:04 +00006291if test "${with_ipp_samples+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006292 withval=$with_ipp_samples;
Benny Prijono0822c192008-08-21 20:59:58 +00006293else
6294 with_ipp_samples=no
6295
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006296fi
6297
Benny Prijono0822c192008-08-21 20:59:58 +00006298
Benny Prijono3965f192010-02-10 18:46:05 +00006299
6300# Check whether --with-ipp-arch was given.
Benny Prijonof8957782011-04-11 02:43:04 +00006301if test "${with_ipp_arch+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006302 withval=$with_ipp_arch;
6303else
6304 with_ipp_arch=no
6305
6306fi
6307
6308
Benny Prijono0822c192008-08-21 20:59:58 +00006309if test "x$enable_ipp" != "xno"; then
Benny Prijonof8957782011-04-11 02:43:04 +00006310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5
6311$as_echo_n "checking Intel IPP location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006312
6313 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
Benny Prijonof8957782011-04-11 02:43:04 +00006314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5
6315$as_echo "$with_ipp" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006316 IPPROOT=$with_ipp
6317 elif test "x$IPPROOT" = "x"; then
6318 if test -d /opt/intel/ipp; then
6319 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
Benny Prijonof8957782011-04-11 02:43:04 +00006320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5
6321$as_echo "autodetected in $IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006322 fi
6323 else
Benny Prijonof8957782011-04-11 02:43:04 +00006324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5
6325$as_echo "$IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006326 fi
6327
Benny Prijono3965f192010-02-10 18:46:05 +00006328 if test "x$with_ipp_arch" != "xno"; then
Benny Prijono896be292010-08-17 12:16:46 +00006329 IPP_SUFFIX=$with_ipp_arch
Benny Prijonof8957782011-04-11 02:43:04 +00006330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5
6331$as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006332 else
6333 IPP_SUFFIX=""
Benny Prijonof8957782011-04-11 02:43:04 +00006334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5
6335$as_echo "IPP arch suffix is set to empty" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006336 fi
6337
Benny Prijono0822c192008-08-21 20:59:58 +00006338 if test x$IPPROOT = x; then
Benny Prijonof8957782011-04-11 02:43:04 +00006339 as_fn_error "the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006340 elif test ! -d $IPPROOT; then
Benny Prijonof8957782011-04-11 02:43:04 +00006341 as_fn_error "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006342 elif test ! -d $IPPROOT/include; then
Benny Prijonof8957782011-04-11 02:43:04 +00006343 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006344 else
6345 # IPP directory looks okay.
6346 # Remove trailing backslash
Benny Prijono3965f192010-02-10 18:46:05 +00006347 IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
Benny Prijono0822c192008-08-21 20:59:58 +00006348
6349 SAVED_CFLAGS="$CFLAGS"
6350 SAVED_LDFLAGS="$LDFLAGS"
6351 SAVED_LIBS="$LIBS"
6352
6353 IPP_CFLAGS="-I$IPPROOT/include"
Benny Prijonof8957782011-04-11 02:43:04 +00006354 IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
Benny Prijono46bd0842010-02-12 14:12:41 +00006355
Benny Prijonof8957782011-04-11 02:43:04 +00006356#
Benny Prijono46bd0842010-02-12 14:12:41 +00006357 # Some differences between Mac OS X and Linux
6358 case $target in
6359 *darwin* )
6360 IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
6361 ;;
6362 *)
Benny Prijonof8957782011-04-11 02:43:04 +00006363 # Find out where the libraries live.
6364 IPP7_ARCH=""
6365 if test -d $IPPROOT/lib/intel64; then
6366 IPP7_ARCH="intel64"
6367 elif test -d $IPPROOT/lib/ia32; then
6368 IPP7_ARCH="ia32"
6369 elif test -d $IPPROOT/lib/mic; then
6370 IPP7_ARCH="mic"
6371 fi
6372
6373 if test -z "$IPP7_ARCH"; then
6374 # IPP6 (and possibly below)
6375 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
6376 IPP_LIBS="$IPP_LIBS -lippsr${IPP_SUFFIX} -lguide"
6377 else
6378 # IPP7
6379 if ! test -d $IPPROOT/../compiler; then
6380 as_fn_error "Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" "$LINENO" 5
6381 fi
6382 IPP_CFLAGS="$IPP_CFLAGS"
6383 IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH"
6384 IPP_LIBS="$IPP_LIBS -liomp5"
6385 fi
Benny Prijono46bd0842010-02-12 14:12:41 +00006386 ;;
6387 esac
6388
Benny Prijono0822c192008-08-21 20:59:58 +00006389 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
Benny Prijono46bd0842010-02-12 14:12:41 +00006390 #Static:
Benny Prijono0822c192008-08-21 20:59:58 +00006391 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
6392
6393 CFLAGS="$CFLAGS $IPP_CFLAGS"
6394 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6395 LIBS="$IPP_LIBS $LIBS"
6396
6397
Benny Prijonof8957782011-04-11 02:43:04 +00006398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5
6399$as_echo_n "checking Intel IPP usability... " >&6; }
6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006401/* end confdefs.h. */
6402#include <ippcore.h>
6403
6404int
6405main ()
6406{
6407ippStaticInit();
6408 ;
6409 return 0;
6410}
6411_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00006412if ac_fn_c_try_link "$LINENO"; then :
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6414$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006415else
Benny Prijonof8957782011-04-11 02:43:04 +00006416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6418{ as_fn_set_status run with --help for more info
6419as_fn_error "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly
6420See \`config.log' for more details." "$LINENO" 5; }; }
Benny Prijono0822c192008-08-21 20:59:58 +00006421fi
Benny Prijonof8957782011-04-11 02:43:04 +00006422rm -f core conftest.err conftest.$ac_objext \
6423 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006424
6425 CFLAGS="$SAVED_CFLAGS"
6426 LDFLAGS="$SAVED_LDFLAGS"
6427 LIBS="$SAVED_LIBS"
6428 fi
6429
Benny Prijonof8957782011-04-11 02:43:04 +00006430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5
6431$as_echo_n "checking Intel IPP samples location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006432
6433 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
Benny Prijonof8957782011-04-11 02:43:04 +00006434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5
6435$as_echo "$with_ipp_samples" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006436 IPPSAMPLES=$with_ipp_samples
6437 elif test "x$IPPSAMPLES" = "x"; then
6438 if test -d /opt/intel/ipp-samples; then
6439 IPPSAMPLES=/opt/intel/ipp-samples
Benny Prijonof8957782011-04-11 02:43:04 +00006440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5
6441$as_echo "autodetected in $IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006442 fi
6443 else
Benny Prijonof8957782011-04-11 02:43:04 +00006444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5
6445$as_echo "$IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006446 fi
6447
6448 if test x$IPPSAMPLES = x; then
Benny Prijonof8957782011-04-11 02:43:04 +00006449 as_fn_error "the location is neither specified nor can be guessed. Please specify with IPPSAMPLES env var or with --with-ipp-samples option" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006450 elif test ! -d $IPPSAMPLES; then
Benny Prijonof8957782011-04-11 02:43:04 +00006451 as_fn_error "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006452 elif test ! -d $IPPSAMPLES/speech-codecs; then
Benny Prijonof8957782011-04-11 02:43:04 +00006453 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006454 else
6455 # Remove trailing backslash
6456 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
6457
Benny Prijono3965f192010-02-10 18:46:05 +00006458 # Guess the libusc.a/libspeech.a build location
Benny Prijonof8957782011-04-11 02:43:04 +00006459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5
6460$as_echo_n "checking Intel IPP USC build location... " >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006461 if test -d $IPPSAMPLES/speech-codecs/bin; then
6462 IPPVER=5
6463 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
6464 elif test -d $IPPSAMPLES/speech-codecs/_bin; then
6465 IPPVER=6
Benny Prijono46bd0842010-02-12 14:12:41 +00006466 if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
6467 # gcc compiler
6468 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
6469 elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
6470 # icc compiler
6471 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
6472 else
Benny Prijonof8957782011-04-11 02:43:04 +00006473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6475as_fn_error "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
6476See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono46bd0842010-02-12 14:12:41 +00006477 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006478 else
Benny Prijonof8957782011-04-11 02:43:04 +00006479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6481as_fn_error "unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?
6482See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006483 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006484
6485 # Test the directory
6486 if test ! -d $IPPSAMP_DIR; then
Benny Prijonof8957782011-04-11 02:43:04 +00006487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6489as_fn_error "There's something wrong with this script, directory $IPPSAMP_DIR does not exist
6490See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00006491 exit 1;
6492 fi
6493
6494 if test "x$IPPVER" = "x5"; then
6495 IPPSAMP_LIBS="libusc.a"
6496 IPPSAMP_LDLIBS="-lusc"
6497 elif test "x$IPPVER" = "x6"; then
6498 IPPSAMP_LIBS="libspeech.a"
6499 IPPSAMP_LDLIBS="-lspeech"
6500 else
Benny Prijonof8957782011-04-11 02:43:04 +00006501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6503as_fn_error "bug in this script: unsupported IPP version
6504See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006505 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006506
6507 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
Benny Prijonof8957782011-04-11 02:43:04 +00006508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6510as_fn_error "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
6511See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00006512 fi
6513
Benny Prijonof8957782011-04-11 02:43:04 +00006514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5
6515$as_echo "$IPPSAMP_DIR" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006516
6517 SAVED_CFLAGS="$CFLAGS"
6518 SAVED_LDFLAGS="$LDFLAGS"
6519 SAVED_LIBS="$LIBS"
6520
Benny Prijono3965f192010-02-10 18:46:05 +00006521 IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
6522 CFLAGS="$CFLAGS $IPPSAMP_INC"
6523 LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR"
6524 LIBS="$IPPSAMP_LDLIBS $LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006525
Benny Prijonof8957782011-04-11 02:43:04 +00006526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5
6527$as_echo_n "checking Intel IPP USC usability... " >&6; }
6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006529/* end confdefs.h. */
6530#include <usc.h>
6531
6532int
6533main ()
6534{
6535extern USC_Fxns USC_G729AFP_Fxns;
6536 ;
6537 return 0;
6538}
6539_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00006540if ac_fn_c_try_link "$LINENO"; then :
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6542$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006543else
Benny Prijonof8957782011-04-11 02:43:04 +00006544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6546as_fn_error "failed
6547See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006548fi
Benny Prijonof8957782011-04-11 02:43:04 +00006549rm -f core conftest.err conftest.$ac_objext \
6550 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006551
6552 CFLAGS="$SAVED_CFLAGS"
Benny Prijono3965f192010-02-10 18:46:05 +00006553 LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
6554 LIBS="$IPP_LIBS $SAVED_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006555
Benny Prijono3965f192010-02-10 18:46:05 +00006556 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
6557 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
6558 IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006559 fi
6560
Benny Prijono3965f192010-02-10 18:46:05 +00006561 CFLAGS="$CFLAGS $IPP_CFLAGS"
6562 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6563 LIBS="$LIBS $IPP_LIBS"
6564
Benny Prijono0822c192008-08-21 20:59:58 +00006565 ac_build_mak_vars="$ac_build_mak_vars\n\
6566export IPP_CFLAGS=$IPP_CFLAGS\n\
6567export IPP_LDFLAGS=$IPP_LDFLAGS\n\
6568export IPP_LIBS=$IPP_LIBS"
6569else
Benny Prijonof8957782011-04-11 02:43:04 +00006570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5
6571$as_echo "Skipping Intel IPP settings (not wanted)" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006572fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006573
6574
6575
6576
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006577# Check whether --enable-ssl was given.
Benny Prijonof8957782011-04-11 02:43:04 +00006578if test "${enable_ssl+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006579 enableval=$enable_ssl;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006580 if test "$enable_ssl" = "no"; then
6581 ac_no_ssl=1
Benny Prijonof8957782011-04-11 02:43:04 +00006582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5
6583$as_echo "Checking if SSL support is disabled... yes" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006584 fi
6585
6586else
6587
Benny Prijonof8957782011-04-11 02:43:04 +00006588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5
6589$as_echo "checking for OpenSSL installations.." >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006590
6591
6592
Benny Prijonof8957782011-04-11 02:43:04 +00006593 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
6594if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006595 openssl_h_present=1
6596fi
6597
6598
Benny Prijonof8957782011-04-11 02:43:04 +00006599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5
6600$as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; }
6601if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then :
6602 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006603else
6604 ac_check_lib_save_LIBS=$LIBS
6605LIBS="-lcrypto $LIBS"
Benny Prijonof8957782011-04-11 02:43:04 +00006606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006607/* end confdefs.h. */
6608
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006609/* Override any GCC internal prototype to avoid an error.
6610 Use char because int might match the return type of a GCC
6611 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006612#ifdef __cplusplus
6613extern "C"
6614#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006615char ERR_load_BIO_strings ();
6616int
6617main ()
6618{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006619return ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006620 ;
6621 return 0;
6622}
6623_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00006624if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006625 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
6626else
Benny Prijonof8957782011-04-11 02:43:04 +00006627 ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006628fi
Benny Prijonof8957782011-04-11 02:43:04 +00006629rm -f core conftest.err conftest.$ac_objext \
6630 conftest$ac_exeext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006631LIBS=$ac_check_lib_save_LIBS
6632fi
Benny Prijonof8957782011-04-11 02:43:04 +00006633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
6634$as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
6635if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006636 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
6637fi
6638
Benny Prijonof8957782011-04-11 02:43:04 +00006639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
6640$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
6641if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
6642 $as_echo_n "(cached) " >&6
Benny Prijonod5233702010-01-13 13:09:45 +00006643else
6644 ac_check_lib_save_LIBS=$LIBS
6645LIBS="-lssl $LIBS"
Benny Prijonof8957782011-04-11 02:43:04 +00006646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00006647/* end confdefs.h. */
6648
6649/* Override any GCC internal prototype to avoid an error.
6650 Use char because int might match the return type of a GCC
6651 builtin and then its argument prototype would still apply. */
6652#ifdef __cplusplus
6653extern "C"
6654#endif
6655char SSL_library_init ();
6656int
6657main ()
6658{
6659return SSL_library_init ();
6660 ;
6661 return 0;
6662}
6663_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00006664if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonod5233702010-01-13 13:09:45 +00006665 ac_cv_lib_ssl_SSL_library_init=yes
6666else
Benny Prijonof8957782011-04-11 02:43:04 +00006667 ac_cv_lib_ssl_SSL_library_init=no
Benny Prijonod5233702010-01-13 13:09:45 +00006668fi
Benny Prijonof8957782011-04-11 02:43:04 +00006669rm -f core conftest.err conftest.$ac_objext \
6670 conftest$ac_exeext conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00006671LIBS=$ac_check_lib_save_LIBS
6672fi
Benny Prijonof8957782011-04-11 02:43:04 +00006673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6674$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
6675if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
Benny Prijonod5233702010-01-13 13:09:45 +00006676 libssl_present=1 && LIBS="$LIBS -lssl"
6677fi
6678
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006679 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
Benny Prijonof8957782011-04-11 02:43:04 +00006680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5
6681$as_echo "OpenSSL library found, SSL support enabled" >&6; }
Nanang Izzuddin9c7616f2009-10-28 06:09:15 +00006682 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
6683 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
Benny Prijonof8957782011-04-11 02:43:04 +00006684 $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
Nanang Izzuddinea6d3c42009-10-26 15:47:52 +00006685
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006686 else
Benny Prijonof8957782011-04-11 02:43:04 +00006687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
6688$as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006689 fi
6690
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006691fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006692
6693
6694
6695
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006696
Benny Prijonof8957782011-04-11 02:43:04 +00006697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5
6698$as_echo_n "checking if select() needs correct nfds... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006699case $target in
Benny Prijonof8957782011-04-11 02:43:04 +00006700 *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006701
Benny Prijonof8957782011-04-11 02:43:04 +00006702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6703$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006704 ;;
Benny Prijonof8957782011-04-11 02:43:04 +00006705 *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006706
Benny Prijonof8957782011-04-11 02:43:04 +00006707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
6708$as_echo "no (default)" >&6; }
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
6710$as_echo "** Decided that select() doesn't need correct nfds (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006711 ;;
6712esac
6713
Benny Prijonof8957782011-04-11 02:43:04 +00006714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5
6715$as_echo_n "checking if pj_thread_create() should enforce stack size... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006716case $target in
Benny Prijonof8957782011-04-11 02:43:04 +00006717 *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006718
Benny Prijonof8957782011-04-11 02:43:04 +00006719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6720$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006721 ;;
Benny Prijonof8957782011-04-11 02:43:04 +00006722 *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006723
Benny Prijonof8957782011-04-11 02:43:04 +00006724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
6725$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006726 ;;
6727esac
6728
Benny Prijonof8957782011-04-11 02:43:04 +00006729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5
6730$as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006731case $target in
Benny Prijonof8957782011-04-11 02:43:04 +00006732 *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006733
Benny Prijonof8957782011-04-11 02:43:04 +00006734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6735$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006736 ;;
Benny Prijonof8957782011-04-11 02:43:04 +00006737 *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006738
Benny Prijonof8957782011-04-11 02:43:04 +00006739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
6740$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006741 ;;
6742esac
6743
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006744case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006745 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonof8957782011-04-11 02:43:04 +00006746 $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006747
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006748 ;;
Benny Prijonof8957782011-04-11 02:43:04 +00006749 *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006750
Benny Prijonof8957782011-04-11 02:43:04 +00006751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
6752$as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006753 ;;
6754esac
6755
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006756case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006757 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonof8957782011-04-11 02:43:04 +00006758 $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006759
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006760 ;;
Benny Prijonof8957782011-04-11 02:43:04 +00006761 *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006762
Benny Prijonof8957782011-04-11 02:43:04 +00006763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
6764$as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006765 ;;
6766esac
6767
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006768
6769
6770
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006771if test "$build" = "$host"; then
6772 ac_cross_compile=
6773else
Benny Prijono5b818b22006-09-17 22:58:51 +00006774 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006775fi
6776ac_linux_poll=select
6777
6778ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006779
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006780
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006781case $target in
6782 *rtems*)
6783 ac_main_obj=main_rtems.o
6784 ;;
6785 *)
6786 ac_main_obj=main.o
6787 ;;
6788esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006789
Benny Prijono0822c192008-08-21 20:59:58 +00006790
6791ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006792cat >confcache <<\_ACEOF
6793# This file is a shell script that caches the results of configure
6794# tests run on this system so they can be shared between configure
6795# scripts and configure runs, see configure's option --config-cache.
6796# It is not useful on other systems. If it contains results you don't
6797# want to keep, you may remove or edit it.
6798#
6799# config.status only pays attention to the cache file if you give it
6800# the --recheck option to rerun configure.
6801#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006802# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006803# loading this file, other *unset* `ac_cv_foo' will be assigned the
6804# following values.
6805
6806_ACEOF
6807
6808# The following way of writing the cache mishandles newlines in values,
6809# but we know of no workaround that is simple, portable, and efficient.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006810# So, we kill variables containing newlines.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006811# Ultrix sh set writes to stderr and can't be redirected directly,
6812# and sets the high bit in the cache file unless we assign to the vars.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006813(
6814 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6815 eval ac_val=\$$ac_var
6816 case $ac_val in #(
6817 *${as_nl}*)
6818 case $ac_var in #(
Benny Prijonof8957782011-04-11 02:43:04 +00006819 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6820$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006821 esac
6822 case $ac_var in #(
6823 _ | IFS | as_nl) ;; #(
Benny Prijonof8957782011-04-11 02:43:04 +00006824 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6825 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006826 esac ;;
6827 esac
6828 done
6829
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006830 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006831 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6832 *${as_nl}ac_space=\ *)
Benny Prijonof8957782011-04-11 02:43:04 +00006833 # `set' does not quote correctly, so add quotes: double-quote
6834 # substitution turns \\\\ into \\, and sed turns \\ into \.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006835 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006836 "s/'/'\\\\''/g;
6837 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006838 ;; #(
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006839 *)
6840 # `set' quotes correctly as required by POSIX, so do not add quotes.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006841 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006842 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006843 esac |
6844 sort
6845) |
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006846 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006847 /^ac_cv_env_/b end
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006848 t clear
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006849 :clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006850 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6851 t end
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006852 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6853 :end' >>confcache
6854if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6855 if test -w "$cache_file"; then
6856 test "x$cache_file" != "x/dev/null" &&
Benny Prijonof8957782011-04-11 02:43:04 +00006857 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6858$as_echo "$as_me: updating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006859 cat confcache >$cache_file
6860 else
Benny Prijonof8957782011-04-11 02:43:04 +00006861 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6862$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006863 fi
6864fi
6865rm -f confcache
6866
6867test "x$prefix" = xNONE && prefix=$ac_default_prefix
6868# Let make expand exec_prefix.
6869test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6870
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006871DEFS=-DHAVE_CONFIG_H
6872
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006873ac_libobjs=
6874ac_ltlibobjs=
6875for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6876 # 1. Remove the extension, and $U if already installed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006877 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Benny Prijonof8957782011-04-11 02:43:04 +00006878 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006879 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6880 # will be set to the directory where LIBOBJS objects are built.
Benny Prijonof8957782011-04-11 02:43:04 +00006881 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6882 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006883done
6884LIBOBJS=$ac_libobjs
6885
6886LTLIBOBJS=$ac_ltlibobjs
6887
6888
6889
Benny Prijonof8957782011-04-11 02:43:04 +00006890
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006891: ${CONFIG_STATUS=./config.status}
Benny Prijonof8957782011-04-11 02:43:04 +00006892ac_write_fail=0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006893ac_clean_files_save=$ac_clean_files
6894ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijonof8957782011-04-11 02:43:04 +00006895{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6896$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6897as_write_fail=0
6898cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006899#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006900# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006901# Run this file to recreate the current configuration.
6902# Compiler output produced by configure, useful for debugging
6903# configure, is in config.log if it exists.
6904
6905debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006906ac_cs_recheck=false
6907ac_cs_silent=false
Sauw Ming6e6c2152010-12-14 13:03:10 +00006908
Benny Prijonof8957782011-04-11 02:43:04 +00006909SHELL=\${CONFIG_SHELL-$SHELL}
6910export SHELL
6911_ASEOF
6912cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6913## -------------------- ##
6914## M4sh Initialization. ##
6915## -------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006916
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006917# Be more Bourne compatible
6918DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijonof8957782011-04-11 02:43:04 +00006919if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006920 emulate sh
6921 NULLCMD=:
Benny Prijonof8957782011-04-11 02:43:04 +00006922 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006923 # is contrary to our usage. Disable this feature.
6924 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006925 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +00006926else
Benny Prijonof8957782011-04-11 02:43:04 +00006927 case `(set -o) 2>/dev/null` in #(
6928 *posix*) :
6929 set -o posix ;; #(
6930 *) :
6931 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006932esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006933fi
6934
6935
Benny Prijonof8957782011-04-11 02:43:04 +00006936as_nl='
6937'
6938export as_nl
6939# Printing a long string crashes Solaris 7 /usr/bin/printf.
6940as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6941as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6942as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6943# Prefer a ksh shell builtin over an external printf program on Solaris,
6944# but without wasting forks for bash or zsh.
6945if test -z "$BASH_VERSION$ZSH_VERSION" \
6946 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6947 as_echo='print -r --'
6948 as_echo_n='print -rn --'
6949elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6950 as_echo='printf %s\n'
6951 as_echo_n='printf %s'
6952else
6953 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6954 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6955 as_echo_n='/usr/ucb/echo -n'
6956 else
6957 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6958 as_echo_n_body='eval
6959 arg=$1;
6960 case $arg in #(
6961 *"$as_nl"*)
6962 expr "X$arg" : "X\\(.*\\)$as_nl";
6963 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6964 esac;
6965 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6966 '
6967 export as_echo_n_body
6968 as_echo_n='sh -c $as_echo_n_body as_echo'
6969 fi
6970 export as_echo_body
6971 as_echo='sh -c $as_echo_body as_echo'
6972fi
Benny Prijonod5233702010-01-13 13:09:45 +00006973
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006974# The user is always right.
6975if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijonof8957782011-04-11 02:43:04 +00006976 PATH_SEPARATOR=:
6977 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6978 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6979 PATH_SEPARATOR=';'
6980 }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006981fi
6982
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006983
6984# IFS
6985# We need space, tab and new line, in precisely that order. Quoting is
6986# there to prevent editors from complaining about space-tab.
6987# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6988# splitting by setting IFS to empty value.)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006989IFS=" "" $as_nl"
6990
6991# Find who we are. Look in the path if we contain no directory separator.
Benny Prijonof8957782011-04-11 02:43:04 +00006992case $0 in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006993 *[\\/]* ) as_myself=$0 ;;
6994 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006995for as_dir in $PATH
6996do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
Benny Prijonof8957782011-04-11 02:43:04 +00006999 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7000 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007001IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007002
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007003 ;;
7004esac
7005# We did not find ourselves, most probably we were run as `sh COMMAND'
7006# in which case we are not to be found in the path.
7007if test "x$as_myself" = x; then
7008 as_myself=$0
7009fi
7010if test ! -f "$as_myself"; then
Benny Prijonof8957782011-04-11 02:43:04 +00007011 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7012 exit 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007013fi
7014
Benny Prijonof8957782011-04-11 02:43:04 +00007015# Unset variables that we do not need and which cause bugs (e.g. in
7016# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7017# suppresses any "Segmentation fault" message there. '((' could
7018# trigger a bug in pdksh 5.2.14.
7019for as_var in BASH_ENV ENV MAIL MAILPATH
7020do eval test x\${$as_var+set} = xset \
7021 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007022done
7023PS1='$ '
7024PS2='> '
7025PS4='+ '
7026
7027# NLS nuisances.
Benny Prijonof8957782011-04-11 02:43:04 +00007028LC_ALL=C
7029export LC_ALL
7030LANGUAGE=C
7031export LANGUAGE
Benny Prijonoc45d9512010-12-10 11:04:30 +00007032
Benny Prijonof8957782011-04-11 02:43:04 +00007033# CDPATH.
7034(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7035
7036
7037# as_fn_error ERROR [LINENO LOG_FD]
7038# ---------------------------------
7039# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7040# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7041# script with status $?, using 1 if that was 0.
7042as_fn_error ()
7043{
7044 as_status=$?; test $as_status -eq 0 && as_status=1
7045 if test "$3"; then
7046 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7047 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7048 fi
7049 $as_echo "$as_me: error: $1" >&2
7050 as_fn_exit $as_status
7051} # as_fn_error
7052
7053
7054# as_fn_set_status STATUS
7055# -----------------------
7056# Set $? to STATUS, without forking.
7057as_fn_set_status ()
7058{
7059 return $1
7060} # as_fn_set_status
7061
7062# as_fn_exit STATUS
7063# -----------------
7064# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7065as_fn_exit ()
7066{
7067 set +e
7068 as_fn_set_status $1
7069 exit $1
7070} # as_fn_exit
7071
7072# as_fn_unset VAR
7073# ---------------
7074# Portably unset VAR.
7075as_fn_unset ()
7076{
7077 { eval $1=; unset $1;}
7078}
7079as_unset=as_fn_unset
7080# as_fn_append VAR VALUE
7081# ----------------------
7082# Append the text in VALUE to the end of the definition contained in VAR. Take
7083# advantage of any shell optimizations that allow amortized linear growth over
7084# repeated appends, instead of the typical quadratic growth present in naive
7085# implementations.
7086if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7087 eval 'as_fn_append ()
7088 {
7089 eval $1+=\$2
7090 }'
7091else
7092 as_fn_append ()
7093 {
7094 eval $1=\$$1\$2
7095 }
7096fi # as_fn_append
7097
7098# as_fn_arith ARG...
7099# ------------------
7100# Perform arithmetic evaluation on the ARGs, and store the result in the
7101# global $as_val. Take advantage of shells that can avoid forks. The arguments
7102# must be portable across $(()) and expr.
7103if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7104 eval 'as_fn_arith ()
7105 {
7106 as_val=$(( $* ))
7107 }'
7108else
7109 as_fn_arith ()
7110 {
7111 as_val=`expr "$@" || test $? -eq 1`
7112 }
7113fi # as_fn_arith
7114
7115
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007116if expr a : '\(a\)' >/dev/null 2>&1 &&
7117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7118 as_expr=expr
7119else
7120 as_expr=false
7121fi
7122
7123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7124 as_basename=basename
7125else
7126 as_basename=false
7127fi
7128
Benny Prijonof8957782011-04-11 02:43:04 +00007129if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7130 as_dirname=dirname
7131else
7132 as_dirname=false
7133fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007134
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007135as_me=`$as_basename -- "$0" ||
7136$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7137 X"$0" : 'X\(//\)$' \| \
7138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonof8957782011-04-11 02:43:04 +00007139$as_echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007140 sed '/^.*\/\([^/][^/]*\)\/*$/{
7141 s//\1/
7142 q
7143 }
7144 /^X\/\(\/\/\)$/{
7145 s//\1/
7146 q
7147 }
7148 /^X\/\(\/\).*/{
7149 s//\1/
7150 q
7151 }
7152 s/.*/./; q'`
7153
Benny Prijonof8957782011-04-11 02:43:04 +00007154# Avoid depending upon Character Ranges.
7155as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7156as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7157as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7158as_cr_digits='0123456789'
7159as_cr_alnum=$as_cr_Letters$as_cr_digits
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007160
7161ECHO_C= ECHO_N= ECHO_T=
Benny Prijonof8957782011-04-11 02:43:04 +00007162case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007163-n*)
Benny Prijonof8957782011-04-11 02:43:04 +00007164 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007165 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijonof8957782011-04-11 02:43:04 +00007166 xy) ECHO_C='\c';;
7167 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7168 ECHO_T=' ';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007169 esac;;
7170*)
7171 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007172esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007173
7174rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007175if test -d conf$$.dir; then
7176 rm -f conf$$.dir/conf$$.file
7177else
7178 rm -f conf$$.dir
Benny Prijonof8957782011-04-11 02:43:04 +00007179 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007180fi
Benny Prijonof8957782011-04-11 02:43:04 +00007181if (echo >conf$$.file) 2>/dev/null; then
7182 if ln -s conf$$.file conf$$ 2>/dev/null; then
7183 as_ln_s='ln -s'
7184 # ... but there are two gotchas:
7185 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7186 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7187 # In both cases, we have to default to `cp -p'.
7188 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7189 as_ln_s='cp -p'
7190 elif ln conf$$.file conf$$ 2>/dev/null; then
7191 as_ln_s=ln
7192 else
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007193 as_ln_s='cp -p'
Benny Prijonof8957782011-04-11 02:43:04 +00007194 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007195else
7196 as_ln_s='cp -p'
7197fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007198rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7199rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007200
Benny Prijonof8957782011-04-11 02:43:04 +00007201
7202# as_fn_mkdir_p
7203# -------------
7204# Create "$as_dir" as a directory, including parents if necessary.
7205as_fn_mkdir_p ()
7206{
7207
7208 case $as_dir in #(
7209 -*) as_dir=./$as_dir;;
7210 esac
7211 test -d "$as_dir" || eval $as_mkdir_p || {
7212 as_dirs=
7213 while :; do
7214 case $as_dir in #(
7215 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7216 *) as_qdir=$as_dir;;
7217 esac
7218 as_dirs="'$as_qdir' $as_dirs"
7219 as_dir=`$as_dirname -- "$as_dir" ||
7220$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7221 X"$as_dir" : 'X\(//\)[^/]' \| \
7222 X"$as_dir" : 'X\(//\)$' \| \
7223 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7224$as_echo X"$as_dir" |
7225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7226 s//\1/
7227 q
7228 }
7229 /^X\(\/\/\)[^/].*/{
7230 s//\1/
7231 q
7232 }
7233 /^X\(\/\/\)$/{
7234 s//\1/
7235 q
7236 }
7237 /^X\(\/\).*/{
7238 s//\1/
7239 q
7240 }
7241 s/.*/./; q'`
7242 test -d "$as_dir" && break
7243 done
7244 test -z "$as_dirs" || eval "mkdir $as_dirs"
7245 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7246
7247
7248} # as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007249if mkdir -p . 2>/dev/null; then
Benny Prijonof8957782011-04-11 02:43:04 +00007250 as_mkdir_p='mkdir -p "$as_dir"'
Benny Prijono39ae2da2006-10-13 17:57:42 +00007251else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007252 test -d ./-p && rmdir ./-p
7253 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +00007254fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007255
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007256if test -x / >/dev/null 2>&1; then
7257 as_test_x='test -x'
7258else
7259 if ls -dL / >/dev/null 2>&1; then
7260 as_ls_L_option=L
7261 else
7262 as_ls_L_option=
7263 fi
7264 as_test_x='
7265 eval sh -c '\''
7266 if test -d "$1"; then
Benny Prijonof8957782011-04-11 02:43:04 +00007267 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007268 else
Benny Prijonof8957782011-04-11 02:43:04 +00007269 case $1 in #(
7270 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007271 esac;
Benny Prijonof8957782011-04-11 02:43:04 +00007272 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007273 ???[sx]*):;;*)false;;esac;fi
7274 '\'' sh
7275 '
7276fi
7277as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007278
7279# Sed expression to map a string onto a valid CPP name.
7280as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7281
7282# Sed expression to map a string onto a valid variable name.
7283as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7284
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007285
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007286exec 6>&1
Benny Prijonof8957782011-04-11 02:43:04 +00007287## ----------------------------------- ##
7288## Main body of $CONFIG_STATUS script. ##
7289## ----------------------------------- ##
7290_ASEOF
7291test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007292
Benny Prijonof8957782011-04-11 02:43:04 +00007293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7294# Save the log message, to keep $0 and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007295# report actual input values of CONFIG_FILES etc. instead of their
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007296# values after options handling.
7297ac_log="
Benny Prijono8a9b3b22010-01-14 14:46:54 +00007298This file was extended by pjproject $as_me 1.x, which was
Benny Prijonof8957782011-04-11 02:43:04 +00007299generated by GNU Autoconf 2.65. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007300
7301 CONFIG_FILES = $CONFIG_FILES
7302 CONFIG_HEADERS = $CONFIG_HEADERS
7303 CONFIG_LINKS = $CONFIG_LINKS
7304 CONFIG_COMMANDS = $CONFIG_COMMANDS
7305 $ $0 $@
7306
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007307on `(hostname || uname -n) 2>/dev/null | sed 1q`
7308"
7309
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007310_ACEOF
7311
Benny Prijonof8957782011-04-11 02:43:04 +00007312case $ac_config_files in *"
7313"*) set x $ac_config_files; shift; ac_config_files=$*;;
7314esac
7315
7316case $ac_config_headers in *"
7317"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7318esac
7319
7320
7321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007322# Files that config.status was made for.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007323config_files="$ac_config_files"
7324config_headers="$ac_config_headers"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007325
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007326_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007327
Benny Prijonof8957782011-04-11 02:43:04 +00007328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007329ac_cs_usage="\
Benny Prijonof8957782011-04-11 02:43:04 +00007330\`$as_me' instantiates files and other configuration actions
7331from templates according to the current configuration. Unless the files
7332and actions are specified as TAGs, all are instantiated by default.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007333
Benny Prijonof8957782011-04-11 02:43:04 +00007334Usage: $0 [OPTION]... [TAG]...
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007335
7336 -h, --help print this help, then exit
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007337 -V, --version print version number and configuration settings, then exit
Benny Prijonof8957782011-04-11 02:43:04 +00007338 --config print configuration, then exit
7339 -q, --quiet, --silent
7340 do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007341 -d, --debug don't remove temporary files
7342 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonof8957782011-04-11 02:43:04 +00007343 --file=FILE[:TEMPLATE]
7344 instantiate the configuration file FILE
7345 --header=FILE[:TEMPLATE]
7346 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007347
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007348Configuration files:
7349$config_files
7350
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007351Configuration headers:
7352$config_headers
7353
Benny Prijonof8957782011-04-11 02:43:04 +00007354Report bugs to the package provider."
Benny Prijonoe2746132008-09-27 13:16:35 +00007355
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007356_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00007357cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7358ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007359ac_cs_version="\\
Benny Prijono8a9b3b22010-01-14 14:46:54 +00007360pjproject config.status 1.x
Benny Prijonof8957782011-04-11 02:43:04 +00007361configured by $0, generated by GNU Autoconf 2.65,
7362 with options \\"\$ac_cs_config\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007363
Benny Prijonof8957782011-04-11 02:43:04 +00007364Copyright (C) 2009 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007365This config.status script is free software; the Free Software Foundation
7366gives unlimited permission to copy, distribute and modify it."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007367
7368ac_pwd='$ac_pwd'
7369srcdir='$srcdir'
Benny Prijonof8957782011-04-11 02:43:04 +00007370test -n "\$AWK" || AWK=awk
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007371_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007372
Benny Prijonof8957782011-04-11 02:43:04 +00007373cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7374# The default lists apply if the user does not specify any file.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007375ac_need_defaults=:
7376while test $# != 0
7377do
7378 case $1 in
7379 --*=*)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007380 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7381 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007382 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007383 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007384 *)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007385 ac_option=$1
7386 ac_optarg=$2
7387 ac_shift=shift
7388 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007389 esac
7390
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007391 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007392 # Handling of the options.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007393 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007394 ac_cs_recheck=: ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007395 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Benny Prijonof8957782011-04-11 02:43:04 +00007396 $as_echo "$ac_cs_version"; exit ;;
7397 --config | --confi | --conf | --con | --co | --c )
7398 $as_echo "$ac_cs_config"; exit ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007399 --debug | --debu | --deb | --de | --d | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007400 debug=: ;;
7401 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007402 $ac_shift
Benny Prijonof8957782011-04-11 02:43:04 +00007403 case $ac_optarg in
7404 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7405 esac
7406 as_fn_append CONFIG_FILES " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007407 ac_need_defaults=false;;
7408 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007409 $ac_shift
Benny Prijonof8957782011-04-11 02:43:04 +00007410 case $ac_optarg in
7411 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7412 esac
7413 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007414 ac_need_defaults=false;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007415 --he | --h)
7416 # Conflict between --help and --header
Benny Prijonof8957782011-04-11 02:43:04 +00007417 as_fn_error "ambiguous option: \`$1'
7418Try \`$0 --help' for more information.";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007419 --help | --hel | -h )
Benny Prijonof8957782011-04-11 02:43:04 +00007420 $as_echo "$ac_cs_usage"; exit ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7422 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7423 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007424
7425 # This is an error.
Benny Prijonof8957782011-04-11 02:43:04 +00007426 -*) as_fn_error "unrecognized option: \`$1'
7427Try \`$0 --help' for more information." ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007428
Benny Prijonof8957782011-04-11 02:43:04 +00007429 *) as_fn_append ac_config_targets " $1"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007430 ac_need_defaults=false ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007431
7432 esac
7433 shift
7434done
7435
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007436ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007437
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007438if $ac_cs_silent; then
7439 exec 6>/dev/null
7440 ac_configure_extra_args="$ac_configure_extra_args --silent"
7441fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007442
7443_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00007444cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007445if \$ac_cs_recheck; then
Benny Prijonof8957782011-04-11 02:43:04 +00007446 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7447 shift
7448 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7449 CONFIG_SHELL='$SHELL'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007450 export CONFIG_SHELL
Benny Prijonof8957782011-04-11 02:43:04 +00007451 exec "\$@"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007452fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007453
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007454_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00007455cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007456exec 5>>config.log
7457{
7458 echo
7459 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7460## Running $as_me. ##
7461_ASBOX
Benny Prijonof8957782011-04-11 02:43:04 +00007462 $as_echo "$ac_log"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007463} >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007464
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007465_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00007466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007467_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007468
Benny Prijonof8957782011-04-11 02:43:04 +00007469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007470
7471# Handling of arguments.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007472for ac_config_target in $ac_config_targets
7473do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007474 case $ac_config_target in
7475 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
7476 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
7477 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
7478 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
7479 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
7480 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
7481 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
Benny Prijono8ec5eae2010-05-12 10:59:20 +00007482 "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007483 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
7484 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
7485 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
7486 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007487 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijono8a9b3b22010-01-14 14:46:54 +00007488 "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 +00007489
Benny Prijonof8957782011-04-11 02:43:04 +00007490 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007491 esac
7492done
7493
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007494
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007495# If the user did not use the arguments to specify the items to instantiate,
7496# then the envvar interface is used. Set only those that are not.
7497# We use the long form for the default assignment because of an extremely
7498# bizarre bug on SunOS 4.1.3.
7499if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007500 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007501 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7502fi
7503
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007504# Have a temporary directory for convenience. Make it in the build tree
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007505# simply because there is no reason against having it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007506# creating and moving files from /tmp can sometimes cause problems.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007507# Hook for its removal unless debugging.
7508# Note that there is a small window in which the directory will not be cleaned:
7509# after its creation but before its name has been assigned to `$tmp'.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007510$debug ||
7511{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007512 tmp=
7513 trap 'exit_status=$?
7514 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7515' 0
Benny Prijonof8957782011-04-11 02:43:04 +00007516 trap 'as_fn_exit 1' 1 2 13 15
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007517}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007518# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007519
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007520{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007521 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007522 test -n "$tmp" && test -d "$tmp"
7523} ||
7524{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007525 tmp=./conf$$-$RANDOM
7526 (umask 077 && mkdir "$tmp")
Benny Prijonof8957782011-04-11 02:43:04 +00007527} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007528
Benny Prijonof8957782011-04-11 02:43:04 +00007529# Set up the scripts for CONFIG_FILES section.
7530# No need to generate them if there are no CONFIG_FILES.
7531# This happens for instance with `./config.status config.h'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007532if test -n "$CONFIG_FILES"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007533
Benny Prijonof8957782011-04-11 02:43:04 +00007534
7535ac_cr=`echo X | tr X '\015'`
7536# On cygwin, bash can eat \r inside `` if the user requested igncr.
7537# But we know of no other shell where ac_cr would be empty at this
7538# point, so we can use a bashism as a fallback.
7539if test "x$ac_cr" = x; then
7540 eval ac_cr=\$\'\\r\'
7541fi
7542ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7543if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7544 ac_cs_awk_cr='\r'
7545else
7546 ac_cs_awk_cr=$ac_cr
7547fi
7548
7549echo 'BEGIN {' >"$tmp/subs1.awk" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007550_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007551
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007552
Benny Prijonof8957782011-04-11 02:43:04 +00007553{
7554 echo "cat >conf$$subs.awk <<_ACEOF" &&
7555 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7556 echo "_ACEOF"
7557} >conf$$subs.sh ||
7558 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7559ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007560ac_delim='%!_!# '
7561for ac_last_try in false false false false false :; do
Benny Prijonof8957782011-04-11 02:43:04 +00007562 . ./conf$$subs.sh ||
7563 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007564
Benny Prijonof8957782011-04-11 02:43:04 +00007565 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7566 if test $ac_delim_n = $ac_delim_num; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007567 break
7568 elif $ac_last_try; then
Benny Prijonof8957782011-04-11 02:43:04 +00007569 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007570 else
7571 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007572 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007573done
Benny Prijonof8957782011-04-11 02:43:04 +00007574rm -f conf$$subs.sh
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007575
Benny Prijonof8957782011-04-11 02:43:04 +00007576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7577cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007578_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00007579sed -n '
7580h
7581s/^/S["/; s/!.*/"]=/
7582p
7583g
7584s/^[^!]*!//
7585:repl
7586t repl
7587s/'"$ac_delim"'$//
7588t delim
7589:nl
7590h
7591s/\(.\{148\}\)..*/\1/
7592t more1
7593s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7594p
7595n
7596b repl
7597:more1
7598s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7599p
7600g
7601s/.\{148\}//
7602t nl
7603:delim
7604h
7605s/\(.\{148\}\)..*/\1/
7606t more2
7607s/["\\]/\\&/g; s/^/"/; s/$/"/
7608p
7609b
7610:more2
7611s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7612p
7613g
7614s/.\{148\}//
7615t delim
7616' <conf$$subs.awk | sed '
7617/^[^""]/{
7618 N
7619 s/\n//
7620}
7621' >>$CONFIG_STATUS || ac_write_fail=1
7622rm -f conf$$subs.awk
7623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7624_ACAWK
7625cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7626 for (key in S) S_is_set[key] = 1
7627 FS = ""
7628
7629}
7630{
7631 line = $ 0
7632 nfields = split(line, field, "@")
7633 substed = 0
7634 len = length(field[1])
7635 for (i = 2; i < nfields; i++) {
7636 key = field[i]
7637 keylen = length(key)
7638 if (S_is_set[key]) {
7639 value = S[key]
7640 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7641 len += length(value) + length(field[++i])
7642 substed = 1
7643 } else
7644 len += 1 + keylen
7645 }
7646
7647 print line
7648}
7649
7650_ACAWK
Benny Prijonod4306432010-05-01 22:05:41 +00007651_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00007652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7653if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7654 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7655else
7656 cat
7657fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7658 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Benny Prijonod4306432010-05-01 22:05:41 +00007659_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007660
7661# VPATH may cause trouble with some makes, so we remove $(srcdir),
7662# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7663# trailing colons and then remove the whole line if VPATH becomes empty
7664# (actually we leave an empty line to preserve line numbers).
7665if test "x$srcdir" = x.; then
7666 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7667s/:*\$(srcdir):*/:/
7668s/:*\${srcdir}:*/:/
7669s/:*@srcdir@:*/:/
7670s/^\([^=]*=[ ]*\):*/\1/
7671s/:*$//
7672s/^[^=]*=[ ]*$//
7673}'
7674fi
7675
Benny Prijonof8957782011-04-11 02:43:04 +00007676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007677fi # test -n "$CONFIG_FILES"
7678
Benny Prijonof8957782011-04-11 02:43:04 +00007679# Set up the scripts for CONFIG_HEADERS section.
7680# No need to generate them if there are no CONFIG_HEADERS.
7681# This happens for instance with `./config.status Makefile'.
7682if test -n "$CONFIG_HEADERS"; then
7683cat >"$tmp/defines.awk" <<\_ACAWK ||
7684BEGIN {
7685_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007686
Benny Prijonof8957782011-04-11 02:43:04 +00007687# Transform confdefs.h into an awk script `defines.awk', embedded as
7688# here-document in config.status, that substitutes the proper values into
7689# config.h.in to produce config.h.
7690
7691# Create a delimiter string that does not exist in confdefs.h, to ease
7692# handling of long lines.
7693ac_delim='%!_!# '
7694for ac_last_try in false false :; do
7695 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7696 if test -z "$ac_t"; then
7697 break
7698 elif $ac_last_try; then
7699 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7700 else
7701 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7702 fi
7703done
7704
7705# For the awk script, D is an array of macro values keyed by name,
7706# likewise P contains macro parameters if any. Preserve backslash
7707# newline sequences.
7708
7709ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7710sed -n '
7711s/.\{148\}/&'"$ac_delim"'/g
7712t rset
7713:rset
7714s/^[ ]*#[ ]*define[ ][ ]*/ /
7715t def
7716d
7717:def
7718s/\\$//
7719t bsnl
7720s/["\\]/\\&/g
7721s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7722D["\1"]=" \3"/p
7723s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7724d
7725:bsnl
7726s/["\\]/\\&/g
7727s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7728D["\1"]=" \3\\\\\\n"\\/p
7729t cont
7730s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7731t cont
7732d
7733:cont
7734n
7735s/.\{148\}/&'"$ac_delim"'/g
7736t clear
7737:clear
7738s/\\$//
7739t bsnlc
7740s/["\\]/\\&/g; s/^/"/; s/$/"/p
7741d
7742:bsnlc
7743s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7744b cont
7745' <confdefs.h | sed '
7746s/'"$ac_delim"'/"\\\
7747"/g' >>$CONFIG_STATUS || ac_write_fail=1
7748
7749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7750 for (key in D) D_is_set[key] = 1
7751 FS = ""
7752}
7753/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7754 line = \$ 0
7755 split(line, arg, " ")
7756 if (arg[1] == "#") {
7757 defundef = arg[2]
7758 mac1 = arg[3]
7759 } else {
7760 defundef = substr(arg[1], 2)
7761 mac1 = arg[2]
7762 }
7763 split(mac1, mac2, "(") #)
7764 macro = mac2[1]
7765 prefix = substr(line, 1, index(line, defundef) - 1)
7766 if (D_is_set[macro]) {
7767 # Preserve the white space surrounding the "#".
7768 print prefix "define", macro P[macro] D[macro]
7769 next
7770 } else {
7771 # Replace #undef with comments. This is necessary, for example,
7772 # in the case of _POSIX_SOURCE, which is predefined and required
7773 # on some systems where configure will not decide to define it.
7774 if (defundef == "undef") {
7775 print "/*", prefix defundef, macro, "*/"
7776 next
7777 }
7778 }
7779}
7780{ print }
7781_ACAWK
7782_ACEOF
7783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7784 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7785fi # test -n "$CONFIG_HEADERS"
7786
7787
7788eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7789shift
7790for ac_tag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007791do
7792 case $ac_tag in
7793 :[FHLC]) ac_mode=$ac_tag; continue;;
7794 esac
7795 case $ac_mode$ac_tag in
7796 :[FHL]*:*);;
Benny Prijonof8957782011-04-11 02:43:04 +00007797 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007798 :[FH]-) ac_tag=-:-;;
7799 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7800 esac
7801 ac_save_IFS=$IFS
7802 IFS=:
7803 set x $ac_tag
7804 IFS=$ac_save_IFS
7805 shift
7806 ac_file=$1
7807 shift
7808
7809 case $ac_mode in
7810 :L) ac_source=$1;;
7811 :[FH])
7812 ac_file_inputs=
7813 for ac_f
7814 do
7815 case $ac_f in
7816 -) ac_f="$tmp/stdin";;
7817 *) # Look for the file first in the build tree, then in the source tree
7818 # (if the path is not absolute). The absolute path cannot be DOS-style,
7819 # because $ac_f cannot contain `:'.
7820 test -f "$ac_f" ||
7821 case $ac_f in
7822 [\\/$]*) false;;
7823 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7824 esac ||
Benny Prijonof8957782011-04-11 02:43:04 +00007825 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007826 esac
Benny Prijonof8957782011-04-11 02:43:04 +00007827 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7828 as_fn_append ac_file_inputs " '$ac_f'"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007829 done
7830
7831 # Let's still pretend it is `configure' which instantiates (i.e., don't
7832 # use $as_me), people would be surprised to read:
7833 # /* config.h. Generated by config.status. */
Benny Prijonof8957782011-04-11 02:43:04 +00007834 configure_input='Generated from '`
7835 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7836 `' by configure.'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007837 if test x"$ac_file" != x-; then
7838 configure_input="$ac_file. $configure_input"
Benny Prijonof8957782011-04-11 02:43:04 +00007839 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7840$as_echo "$as_me: creating $ac_file" >&6;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007841 fi
Benny Prijonof8957782011-04-11 02:43:04 +00007842 # Neutralize special characters interpreted by sed in replacement strings.
7843 case $configure_input in #(
7844 *\&* | *\|* | *\\* )
7845 ac_sed_conf_input=`$as_echo "$configure_input" |
7846 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7847 *) ac_sed_conf_input=$configure_input;;
7848 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007849
7850 case $ac_tag in
Benny Prijonof8957782011-04-11 02:43:04 +00007851 *:-:* | *:-) cat >"$tmp/stdin" \
7852 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007853 esac
7854 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007855 esac
7856
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007857 ac_dir=`$as_dirname -- "$ac_file" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007858$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7859 X"$ac_file" : 'X\(//\)[^/]' \| \
7860 X"$ac_file" : 'X\(//\)$' \| \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007861 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonof8957782011-04-11 02:43:04 +00007862$as_echo X"$ac_file" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7864 s//\1/
7865 q
7866 }
7867 /^X\(\/\/\)[^/].*/{
7868 s//\1/
7869 q
7870 }
7871 /^X\(\/\/\)$/{
7872 s//\1/
7873 q
7874 }
7875 /^X\(\/\).*/{
7876 s//\1/
7877 q
7878 }
7879 s/.*/./; q'`
Benny Prijonof8957782011-04-11 02:43:04 +00007880 as_dir="$ac_dir"; as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007881 ac_builddir=.
7882
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007883case "$ac_dir" in
7884.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7885*)
Benny Prijonof8957782011-04-11 02:43:04 +00007886 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007887 # A ".." for each directory in $ac_dir_suffix.
Benny Prijonof8957782011-04-11 02:43:04 +00007888 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007889 case $ac_top_builddir_sub in
7890 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7891 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7892 esac ;;
7893esac
7894ac_abs_top_builddir=$ac_pwd
7895ac_abs_builddir=$ac_pwd$ac_dir_suffix
7896# for backward compatibility:
7897ac_top_builddir=$ac_top_build_prefix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007898
7899case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007900 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007901 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007902 ac_top_srcdir=$ac_top_builddir_sub
7903 ac_abs_top_srcdir=$ac_pwd ;;
7904 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007905 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007906 ac_top_srcdir=$srcdir
7907 ac_abs_top_srcdir=$srcdir ;;
7908 *) # Relative name.
7909 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7910 ac_top_srcdir=$ac_top_build_prefix$srcdir
7911 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007912esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007913ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono9489e7a2008-09-19 22:18:50 +00007914
Benny Prijonoe2746132008-09-27 13:16:35 +00007915
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007916 case $ac_mode in
7917 :F)
7918 #
7919 # CONFIG_FILE
7920 #
Benny Prijonoe2746132008-09-27 13:16:35 +00007921
Benny Prijonoe2746132008-09-27 13:16:35 +00007922_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007923
Benny Prijonof8957782011-04-11 02:43:04 +00007924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007925# If the template does not know about datarootdir, expand it.
7926# FIXME: This hack should be removed a few years after 2.60.
7927ac_datarootdir_hack=; ac_datarootdir_seen=
Benny Prijonof8957782011-04-11 02:43:04 +00007928ac_sed_dataroot='
7929/datarootdir/ {
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007930 p
7931 q
7932}
7933/@datadir@/p
7934/@docdir@/p
7935/@infodir@/p
7936/@localedir@/p
Benny Prijonof8957782011-04-11 02:43:04 +00007937/@mandir@/p'
7938case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007939*datarootdir*) ac_datarootdir_seen=yes;;
7940*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Benny Prijonof8957782011-04-11 02:43:04 +00007941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7942$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007943_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00007944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007945 ac_datarootdir_hack='
7946 s&@datadir@&$datadir&g
7947 s&@docdir@&$docdir&g
7948 s&@infodir@&$infodir&g
7949 s&@localedir@&$localedir&g
7950 s&@mandir@&$mandir&g
Benny Prijonof8957782011-04-11 02:43:04 +00007951 s&\\\${datarootdir}&$datarootdir&g' ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007952esac
7953_ACEOF
7954
7955# Neutralize VPATH when `$srcdir' = `.'.
7956# Shell code in configure.ac might set extrasub.
7957# FIXME: do we really want to maintain this feature?
Benny Prijonof8957782011-04-11 02:43:04 +00007958cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7959ac_sed_extra="$ac_vpsub
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007960$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007961_ACEOF
Benny Prijonof8957782011-04-11 02:43:04 +00007962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007963:t
7964/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Benny Prijonof8957782011-04-11 02:43:04 +00007965s|@configure_input@|$ac_sed_conf_input|;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007966s&@top_builddir@&$ac_top_builddir_sub&;t t
Benny Prijonof8957782011-04-11 02:43:04 +00007967s&@top_build_prefix@&$ac_top_build_prefix&;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007968s&@srcdir@&$ac_srcdir&;t t
7969s&@abs_srcdir@&$ac_abs_srcdir&;t t
7970s&@top_srcdir@&$ac_top_srcdir&;t t
7971s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7972s&@builddir@&$ac_builddir&;t t
7973s&@abs_builddir@&$ac_abs_builddir&;t t
7974s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7975$ac_datarootdir_hack
Benny Prijonof8957782011-04-11 02:43:04 +00007976"
7977eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7978 || as_fn_error "could not create $ac_file" "$LINENO" 5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007979
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007980test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7981 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7982 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Benny Prijonof8957782011-04-11 02:43:04 +00007983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007984which seems to be undefined. Please make sure it is defined." >&5
Benny Prijonof8957782011-04-11 02:43:04 +00007985$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007986which seems to be undefined. Please make sure it is defined." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007987
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007988 rm -f "$tmp/stdin"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007989 case $ac_file in
Benny Prijonof8957782011-04-11 02:43:04 +00007990 -) cat "$tmp/out" && rm -f "$tmp/out";;
7991 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7992 esac \
7993 || as_fn_error "could not create $ac_file" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007994 ;;
7995 :H)
7996 #
7997 # CONFIG_HEADER
7998 #
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007999 if test x"$ac_file" != x-; then
Benny Prijonof8957782011-04-11 02:43:04 +00008000 {
8001 $as_echo "/* $configure_input */" \
8002 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8003 } >"$tmp/config.h" \
8004 || as_fn_error "could not create $ac_file" "$LINENO" 5
8005 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8007$as_echo "$as_me: $ac_file is unchanged" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008008 else
Benny Prijonof8957782011-04-11 02:43:04 +00008009 rm -f "$ac_file"
8010 mv "$tmp/config.h" "$ac_file" \
8011 || as_fn_error "could not create $ac_file" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008012 fi
8013 else
Benny Prijonof8957782011-04-11 02:43:04 +00008014 $as_echo "/* $configure_input */" \
8015 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8016 || as_fn_error "could not create -" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008017 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008018 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008019
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008020
8021 esac
8022
8023done # for ac_tag
8024
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008025
Benny Prijonof8957782011-04-11 02:43:04 +00008026as_fn_exit 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008027_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008028ac_clean_files=$ac_clean_files_save
8029
Benny Prijonof8957782011-04-11 02:43:04 +00008030test $ac_write_fail = 0 ||
8031 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8032
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008033
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008034# configure is writing to config.log, and then calls config.status.
8035# config.status does its own redirection, appending to config.log.
8036# Unfortunately, on DOS this fails, as config.log is still kept open
8037# by configure, so config.status won't be able to write to it; its
8038# output is simply discarded. So we exec the FD to /dev/null,
8039# effectively closing config.log, so it can be properly (re)opened and
8040# appended to by config.status. When coming back to configure, we
8041# need to make the FD available again.
8042if test "$no_create" != yes; then
8043 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008044 ac_config_status_args=
8045 test "$silent" = yes &&
8046 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008047 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008048 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008049 exec 5>>config.log
8050 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8051 # would make configure fail if this is the last instruction.
Benny Prijonof8957782011-04-11 02:43:04 +00008052 $ac_cs_success || as_fn_exit $?
8053fi
8054if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8056$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Benny Prijonod5233702010-01-13 13:09:45 +00008057fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008058
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008059
Benny Prijonod9627842007-04-18 09:24:31 +00008060
Benny Prijonof8957782011-04-11 02:43:04 +00008061{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
Benny Prijonod9627842007-04-18 09:24:31 +00008062
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008063Configurations 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 +00008064
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008065Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00008066 - 'user.mak'
8067 - 'pjlib/include/pj/config_site.h'
8068
8069The next step now is to run 'make dep' and 'make'.
8070" >&5
Benny Prijonof8957782011-04-11 02:43:04 +00008071$as_echo "
Benny Prijonod9627842007-04-18 09:24:31 +00008072
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008073Configurations 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 +00008074
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008075Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00008076 - 'user.mak'
8077 - 'pjlib/include/pj/config_site.h'
8078
8079The next step now is to run 'make dep' and 'make'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008080" >&6; }
Benny Prijonod9627842007-04-18 09:24:31 +00008081