blob: 5e2765f5d3e4845bada0579e8fe964d86f78a10e [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijono28d3c562012-03-30 07:10:13 +00003# Generated by GNU Autoconf 2.65 for pjproject 2.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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +0000128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
Benny Prijonoe1105232011-10-26 06:49:34 +0000132
Benny Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +0000453case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000454-n*)
Benny Prijono28d3c562012-03-30 07:10:13 +0000455 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +0000470 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000471fi
Benny Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +0000510 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000511 else
Benny Prijono28d3c562012-03-30 07:10:13 +0000512 case $1 in #(
513 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000514 esac;
Benny Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +0000552PACKAGE_VERSION='2.x'
553PACKAGE_STRING='pjproject 2.x'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000554PACKAGE_BUGREPORT=''
Benny Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +0000593ac_subst_vars='LTLIBOBJS
Benny Prijono36d32492011-12-28 08:42:23 +0000594LIBOBJS
Benny Prijono28d3c562012-03-30 07:10:13 +0000595ac_main_obj
596ac_host
597ac_linux_poll
598ac_cross_compile
599opencore_amrnb_present
600opencore_amrnb_h_present
601ac_no_opencore_amrnb
602libcrypto_present
603libssl_present
604openssl_h_present
605ac_no_ssl
606ac_v4l2_ldflags
607ac_v4l2_cflags
Benny Prijonoeeebfab2012-04-23 13:46:21 +0000608PKG_CONFIG
609SAVED_PKG_CONFIG_PATH
Benny Prijono28d3c562012-03-30 07:10:13 +0000610ac_ffmpeg_ldflags
611ac_ffmpeg_cflags
612ac_has_ffmpeg
613ac_sdl_ldflags
614ac_sdl_cflags
615ac_resample_dll
616ac_no_ilbc_codec
617ac_no_speex_codec
618ac_no_g7221_codec
619ac_no_g722_codec
620ac_no_gsm_codec
621ac_no_l16_codec
622ac_no_g711_codec
623ac_no_speex_aec
624ac_no_large_filter
625ac_no_small_filter
626ac_qt_cflags
627ac_pjmedia_video_has_qt
628ac_ios_cflags
629ac_pjmedia_video_has_ios
630ac_pjmedia_video
631ac_pa_use_oss
632ac_pa_use_alsa
633ac_pa_cflags
634ac_external_pa
635ac_pjmedia_snd
636ac_external_gsm
637ac_external_speex
638ac_os_objs
639EGREP
640GREP
641CPP
642ac_shlib_suffix
643ac_build_mak_vars
644ac_pjdir
645CC_CFLAGS
646CC_OPTIMIZE
647CC_DEF
648CC_INC
649CC_OUT
650LIBEXT2
651LIBEXT
652RANLIB
653LDOUT
654LD
655AR
656ac_ct_CXX
657CXXFLAGS
658CXX
659OBJEXT
660EXEEXT
661ac_ct_CC
662CPPFLAGS
663LDFLAGS
664CFLAGS
665CC
666target_os
667target_vendor
668target_cpu
669target
670host_os
671host_vendor
672host_cpu
673host
674build_os
675build_vendor
676build_cpu
677build
678target_alias
679host_alias
680build_alias
681LIBS
682ECHO_T
683ECHO_N
684ECHO_C
685DEFS
686mandir
687localedir
688libdir
689psdir
690pdfdir
691dvidir
692htmldir
693infodir
694docdir
695oldincludedir
696includedir
697localstatedir
698sharedstatedir
699sysconfdir
700datadir
701datarootdir
702libexecdir
703sbindir
704bindir
705program_transform_name
706prefix
707exec_prefix
708PACKAGE_URL
709PACKAGE_BUGREPORT
710PACKAGE_STRING
711PACKAGE_VERSION
712PACKAGE_TARNAME
713PACKAGE_NAME
714PATH_SEPARATOR
715SHELL'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000716ac_subst_files=''
Benny Prijono28d3c562012-03-30 07:10:13 +0000717ac_user_opts='
718enable_option_checking
719enable_floating_point
720enable_epoll
721with_external_speex
722with_external_gsm
723enable_sound
724with_external_pa
725enable_oss
726enable_ext_sound
727enable_small_filter
728enable_large_filter
729enable_speex_aec
730enable_g711_codec
731enable_l16_codec
732enable_gsm_codec
733enable_g722_codec
734enable_g7221_codec
735enable_speex_codec
736enable_ilbc_codec
737enable_libsamplerate
738enable_resample_dll
739with_sdl
740enable_sdl
741enable_ffmpeg
742with_ffmpeg
743enable_v4l2
744enable_ipp
745with_ipp
746with_ipp_samples
747with_ipp_arch
748enable_ssl
749enable_opencore_amrnb
750'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000751 ac_precious_vars='build_alias
752host_alias
753target_alias
754CC
755CFLAGS
756LDFLAGS
757LIBS
758CPPFLAGS
759CXX
760CXXFLAGS
761CCC
762CPP'
763
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000764
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000765# Initialize some variables set by options.
766ac_init_help=
767ac_init_version=false
Benny Prijono28d3c562012-03-30 07:10:13 +0000768ac_unrecognized_opts=
769ac_unrecognized_sep=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000770# The variables have the same names as the options, with
771# dashes changed to underlines.
772cache_file=/dev/null
773exec_prefix=NONE
774no_create=
775no_recursion=
776prefix=NONE
777program_prefix=NONE
778program_suffix=NONE
779program_transform_name=s,x,x,
780silent=
781site=
782srcdir=
783verbose=
784x_includes=NONE
785x_libraries=NONE
786
787# Installation directory options.
788# These are left unexpanded so users can "make install exec_prefix=/foo"
789# and all the variables that are supposed to be based on exec_prefix
790# by default will actually change.
791# Use braces instead of parens because sh, perl, etc. also accept them.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000792# (The list follows the same order as the GNU Coding Standards.)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000793bindir='${exec_prefix}/bin'
794sbindir='${exec_prefix}/sbin'
795libexecdir='${exec_prefix}/libexec'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000796datarootdir='${prefix}/share'
797datadir='${datarootdir}'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000798sysconfdir='${prefix}/etc'
799sharedstatedir='${prefix}/com'
800localstatedir='${prefix}/var'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000801includedir='${prefix}/include'
802oldincludedir='/usr/include'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000803docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
804infodir='${datarootdir}/info'
805htmldir='${docdir}'
806dvidir='${docdir}'
807pdfdir='${docdir}'
808psdir='${docdir}'
809libdir='${exec_prefix}/lib'
810localedir='${datarootdir}/locale'
811mandir='${datarootdir}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000812
813ac_prev=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000814ac_dashdash=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000815for ac_option
816do
817 # If the previous option needs an argument, assign it.
818 if test -n "$ac_prev"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000819 eval $ac_prev=\$ac_option
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000820 ac_prev=
821 continue
822 fi
823
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000824 case $ac_option in
825 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
826 *) ac_optarg=yes ;;
827 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000828
829 # Accept the important Cygnus configure options, so we can diagnose typos.
830
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000831 case $ac_dashdash$ac_option in
832 --)
833 ac_dashdash=yes ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000834
835 -bindir | --bindir | --bindi | --bind | --bin | --bi)
836 ac_prev=bindir ;;
837 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838 bindir=$ac_optarg ;;
839
840 -build | --build | --buil | --bui | --bu)
841 ac_prev=build_alias ;;
842 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
843 build_alias=$ac_optarg ;;
844
845 -cache-file | --cache-file | --cache-fil | --cache-fi \
846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
847 ac_prev=cache_file ;;
848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
850 cache_file=$ac_optarg ;;
851
852 --config-cache | -C)
853 cache_file=config.cache ;;
854
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000855 -datadir | --datadir | --datadi | --datad)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000856 ac_prev=datadir ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000857 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000858 datadir=$ac_optarg ;;
859
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000860 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861 | --dataroo | --dataro | --datar)
862 ac_prev=datarootdir ;;
863 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865 datarootdir=$ac_optarg ;;
866
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000867 -disable-* | --disable-*)
Benny Prijono28d3c562012-03-30 07:10:13 +0000868 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000869 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +0000870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 as_fn_error "invalid feature name: $ac_useropt"
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
875 *"
876"enable_$ac_useropt"
877"*) ;;
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
880 esac
881 eval enable_$ac_useropt=no ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000882
883 -docdir | --docdir | --docdi | --doc | --do)
884 ac_prev=docdir ;;
885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 docdir=$ac_optarg ;;
887
888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889 ac_prev=dvidir ;;
890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 dvidir=$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000892
893 -enable-* | --enable-*)
Benny Prijono28d3c562012-03-30 07:10:13 +0000894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000895 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +0000896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902"enable_$ac_useropt"
903"*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000908
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
917
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
920 with_gas=yes ;;
921
922 -help | --help | --hel | --he | -h)
923 ac_init_help=long ;;
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
928
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
933
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 ac_prev=htmldir ;;
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 | --ht=*)
938 htmldir=$ac_optarg ;;
939
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
946
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 ac_prev=infodir ;;
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
951
952 -libdir | --libdir | --libdi | --libd)
953 ac_prev=libdir ;;
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 libdir=$ac_optarg ;;
956
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
963
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000964 -localedir | --localedir | --localedi | --localed | --locale)
965 ac_prev=localedir ;;
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
968
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000969 -localstatedir | --localstatedir | --localstatedi | --localstated \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000970 | --localstate | --localstat | --localsta | --localst | --locals)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000974 localstatedir=$ac_optarg ;;
975
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 ac_prev=mandir ;;
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979 mandir=$ac_optarg ;;
980
981 -nfp | --nfp | --nf)
982 # Obsolete; use --without-fp.
983 with_fp=no ;;
984
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000986 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000987 no_create=yes ;;
988
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 no_recursion=yes ;;
992
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1001
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 ac_prev=prefix ;;
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1006
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1013
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1020
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1037
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 ac_prev=pdfdir ;;
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1042
1043 -psdir | --psdir | --psdi | --psd | --ps)
1044 ac_prev=psdir ;;
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 psdir=$ac_optarg ;;
1047
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 silent=yes ;;
1051
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 ac_prev=sbindir ;;
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 | --sbi=* | --sb=*)
1056 sbindir=$ac_optarg ;;
1057
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1061 | --sha | --sh)
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 | --sha=* | --sh=*)
1067 sharedstatedir=$ac_optarg ;;
1068
1069 -site | --site | --sit)
1070 ac_prev=site ;;
1071 -site=* | --site=* | --sit=*)
1072 site=$ac_optarg ;;
1073
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 ac_prev=srcdir ;;
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1078
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1085
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1090
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 verbose=yes ;;
1093
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1096
1097 -with-* | --with-*)
Benny Prijono28d3c562012-03-30 07:10:13 +00001098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001099 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +00001100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error "invalid package name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1105 *"
1106"with_$ac_useropt"
1107"*) ;;
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1110 esac
1111 eval with_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001112
1113 -without-* | --without-*)
Benny Prijono28d3c562012-03-30 07:10:13 +00001114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001115 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +00001116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122"with_$ac_useropt"
1123"*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=no ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001128
1129 --x)
1130 # Obsolete; use --with-x.
1131 with_x=yes ;;
1132
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1139
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1146
Benny Prijono28d3c562012-03-30 07:10:13 +00001147 -*) as_fn_error "unrecognized option: \`$ac_option'
1148Try \`$0 --help' for more information."
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001149 ;;
1150
1151 *=*)
1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +00001154 case $ac_envvar in #(
1155 '' | [0-9]* | *[!_$as_cr_alnum]* )
1156 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1157 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001158 eval $ac_envvar=\$ac_optarg
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001159 export $ac_envvar ;;
1160
1161 *)
1162 # FIXME: should be removed in autoconf 3.0.
Benny Prijono28d3c562012-03-30 07:10:13 +00001163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijono28d3c562012-03-30 07:10:13 +00001165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167 ;;
1168
1169 esac
1170done
1171
1172if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Benny Prijono28d3c562012-03-30 07:10:13 +00001174 as_fn_error "missing argument to $ac_option"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001175fi
1176
Benny Prijono28d3c562012-03-30 07:10:13 +00001177if test -n "$ac_unrecognized_opts"; then
1178 case $enable_option_checking in
1179 no) ;;
1180 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1181 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1182 esac
1183fi
1184
1185# Check all directory arguments for consistency.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001186for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187 datadir sysconfdir sharedstatedir localstatedir includedir \
1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189 libdir localedir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001190do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001191 eval ac_val=\$$ac_var
Benny Prijono28d3c562012-03-30 07:10:13 +00001192 # Remove trailing slashes.
1193 case $ac_val in
1194 */ )
1195 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1196 eval $ac_var=\$ac_val;;
1197 esac
1198 # Be sure to have absolute directory names.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001199 case $ac_val in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001200 [\\/$]* | ?:[\\/]* ) continue;;
1201 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001202 esac
Benny Prijono28d3c562012-03-30 07:10:13 +00001203 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001204done
1205
1206# There might be people who depend on the old broken behavior: `$host'
1207# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001208# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001209build=$build_alias
1210host=$host_alias
1211target=$target_alias
1212
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001213# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001214if test "x$host_alias" != x; then
1215 if test "x$build_alias" = x; then
1216 cross_compiling=maybe
Benny Prijono28d3c562012-03-30 07:10:13 +00001217 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001218 If a cross compiler is detected then cross compile mode will be used." >&2
1219 elif test "x$build_alias" != "x$host_alias"; then
1220 cross_compiling=yes
1221 fi
1222fi
1223
1224ac_tool_prefix=
1225test -n "$host_alias" && ac_tool_prefix=$host_alias-
1226
1227test "$silent" = yes && exec 6>/dev/null
1228
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001229
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001230ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231ac_ls_di=`ls -di .` &&
1232ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Benny Prijono28d3c562012-03-30 07:10:13 +00001233 as_fn_error "working directory cannot be determined"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001234test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Benny Prijono28d3c562012-03-30 07:10:13 +00001235 as_fn_error "pwd does not report name of working directory"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001236
1237
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001238# Find the source files, if location was not specified.
1239if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001241 # Try the directory containing this script, then the parent directory.
Benny Prijono28d3c562012-03-30 07:10:13 +00001242 ac_confdir=`$as_dirname -- "$as_myself" ||
1243$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247$as_echo X"$as_myself" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249 s//\1/
1250 q
1251 }
1252 /^X\(\/\/\)[^/].*/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\/\)$/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\).*/{
1261 s//\1/
1262 q
1263 }
1264 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001265 srcdir=$ac_confdir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001266 if test ! -r "$srcdir/$ac_unique_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001267 srcdir=..
1268 fi
1269else
1270 ac_srcdir_defaulted=no
1271fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001272if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Benny Prijono28d3c562012-03-30 07:10:13 +00001274 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Benny Prijono9489e7a2008-09-19 22:18:50 +00001275fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001276ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277ac_abs_confdir=`(
Benny Prijono28d3c562012-03-30 07:10:13 +00001278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001279 pwd)`
1280# When building in place, set srcdir=.
1281if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 srcdir=.
1283fi
1284# Remove unnecessary trailing slashes from srcdir.
1285# Double slashes in file names in object file debugging info
1286# mess up M-x gdb in Emacs.
1287case $srcdir in
1288*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289esac
1290for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001296
1297#
1298# Report the --help message.
1299#
1300if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001303 cat <<_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00001304\`configure' configures pjproject 2.x to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001305
1306Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309VAR=VALUE. See below for descriptions of some of the useful variables.
1310
1311Defaults for the options are specified in brackets.
1312
1313Configuration:
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1323
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001324Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
Benny Prijono28d3c562012-03-30 07:10:13 +00001326 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Benny Prijono28d3c562012-03-30 07:10:13 +00001328 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001329
1330By default, \`make install' will install all the files in
1331\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333for instance \`--prefix=\$HOME'.
1334
1335For better control, use the options below.
1336
1337Fine tuning of the installation directories:
Benny Prijono28d3c562012-03-30 07:10:13 +00001338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001357_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001358
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001359 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001360
1361System types:
1362 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001363 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001364 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001365_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001366fi
1367
1368if test -n "$ac_init_help"; then
1369 case $ac_init_help in
Benny Prijono28d3c562012-03-30 07:10:13 +00001370 short | recursive ) echo "Configuration of pjproject 2.x:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001371 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001372 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001373
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001374Optional Features:
Benny Prijono28d3c562012-03-30 07:10:13 +00001375 --disable-option-checking ignore unrecognized --enable/--with options
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001376 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1377 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1378 --disable-floating-point
1379 Disable floating point where possible
Benny Prijono9489e7a2008-09-19 22:18:50 +00001380 --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
Benny Prijono1d971622006-09-10 22:27:40 +00001381 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijono0b462322008-03-12 22:44:24 +00001382 --disable-oss Disable OSS audio (default: not disabled)
Benny Prijonoebb2c332008-07-28 23:40:58 +00001383 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001384 --disable-small-filter Exclude small filter in resampling
1385 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001386 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1387 --disable-g711-codec Exclude G.711 codecs from the build
1388 --disable-l16-codec Exclude Linear/L16 codec family from the build
1389 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +00001390 --disable-g722-codec Exclude G.722 codec in the build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001391 --disable-g7221-codec Exclude G.7221 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001392 --disable-speex-codec Exclude Speex codecs in the build
1393 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +00001394 --enable-libsamplerate Link with libsamplerate when available. Note that
1395 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijono28d3c562012-03-30 07:10:13 +00001396 --enable-resample-dll Build libresample as shared library
Benny Prijonoc45d9512010-12-10 11:04:30 +00001397 --disable-sdl Disable SDL (default: not disabled)
1398 --disable-ffmpeg Disable ffmpeg (default: not disabled)
1399 --disable-v4l2 Disable Video4Linux2 (default: not disabled)
Benny Prijono0822c192008-08-21 20:59:58 +00001400 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
1401 package and samples location using IPPROOT and
1402 IPPSAMPLES env var or with --with-ipp and
1403 --with-ipp-samples options
Benny Prijonoce1db762007-02-14 02:21:08 +00001404 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001405
Sauw Minge7dbbc82011-10-24 09:28:13 +00001406 --disable-opencore-amrnb
1407 Exclude OpenCORE AMR-NB support from the build
1408 (default: autodetect)
1409
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001410
Benny Prijonofe0c1272010-01-13 16:28:15 +00001411Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001414 --with-external-speex Use external Speex development files, not the one in
1415 "third_party" directory. When this option is set,
1416 make sure that Speex is accessible to use (hint: use
1417 CFLAGS and LDFLAGS env var to set the include/lib
1418 paths)
1419 --with-external-gsm Use external GSM codec library, not the one in
1420 "third_party" directory. When this option is set,
1421 make sure that the GSM include/lib files are
1422 accessible to use (hint: use CFLAGS and LDFLAGS env
1423 var to set the include/lib paths)
1424 --with-external-pa Use external PortAudio development files, not the
1425 one in "third_party" directory. When this option is
1426 set, make sure that PortAudio is accessible to use
1427 (hint: use CFLAGS and LDFLAGS env var to set the
1428 include/lib paths)
Benny Prijono5b0af632011-07-20 03:16:25 +00001429 --with-sdl=DIR Specify alternate libSDL prefix
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00001430 --with-ffmpeg=DIR Specify alternate FFMPEG prefix
Benny Prijono3965f192010-02-10 18:46:05 +00001431 --with-ipp=DIR Specify the Intel IPP location
1432 --with-ipp-samples=DIR Specify the Intel IPP samples location
1433 --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or
Benny Prijono46bd0842010-02-12 14:12:41 +00001434 "em64t. Default is blank for IA32"
Benny Prijonofe0c1272010-01-13 16:28:15 +00001435
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001436Some influential environment variables:
1437 CC C compiler command
1438 CFLAGS C compiler flags
1439 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1440 nonstandard directory <lib dir>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001441 LIBS libraries to pass to the linker, e.g. -l<library>
Benny Prijono28d3c562012-03-30 07:10:13 +00001442 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001443 you have headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001444 CXX C++ compiler command
1445 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001446 CPP C preprocessor
1447
1448Use these variables to override the choices made by `configure' or to help
1449it to find libraries and programs with nonstandard names/locations.
1450
Benny Prijono28d3c562012-03-30 07:10:13 +00001451Report bugs to the package provider.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001452_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001453ac_status=$?
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001454fi
1455
1456if test "$ac_init_help" = "recursive"; then
1457 # If there are subdirs, report their specific --help.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Benny Prijono28d3c562012-03-30 07:10:13 +00001459 test -d "$ac_dir" ||
1460 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461 continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001462 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001463
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001464case "$ac_dir" in
1465.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466*)
Benny Prijono28d3c562012-03-30 07:10:13 +00001467 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001468 # A ".." for each directory in $ac_dir_suffix.
Benny Prijono28d3c562012-03-30 07:10:13 +00001469 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001470 case $ac_top_builddir_sub in
1471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473 esac ;;
1474esac
1475ac_abs_top_builddir=$ac_pwd
1476ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477# for backward compatibility:
1478ac_top_builddir=$ac_top_build_prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001479
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001480case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001481 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001482 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001483 ac_top_srcdir=$ac_top_builddir_sub
1484 ac_abs_top_srcdir=$ac_pwd ;;
1485 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001486 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001487 ac_top_srcdir=$srcdir
1488 ac_abs_top_srcdir=$srcdir ;;
1489 *) # Relative name.
1490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491 ac_top_srcdir=$ac_top_build_prefix$srcdir
1492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001493esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001494ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001495
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001496 cd "$ac_dir" || { ac_status=$?; continue; }
1497 # Check for guested configure.
1498 if test -f "$ac_srcdir/configure.gnu"; then
1499 echo &&
1500 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501 elif test -f "$ac_srcdir/configure"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure" --help=recursive
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001504 else
Benny Prijono28d3c562012-03-30 07:10:13 +00001505 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001506 fi || ac_status=$?
1507 cd "$ac_pwd" || { ac_status=$?; break; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001508 done
1509fi
1510
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001511test -n "$ac_init_help" && exit $ac_status
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001512if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001513 cat <<\_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00001514pjproject configure 2.x
1515generated by GNU Autoconf 2.65
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001516
Benny Prijono28d3c562012-03-30 07:10:13 +00001517Copyright (C) 2009 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001518This configure script is free software; the Free Software Foundation
1519gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001520_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001521 exit
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001522fi
Benny Prijono28d3c562012-03-30 07:10:13 +00001523
1524## ------------------------ ##
1525## Autoconf initialization. ##
1526## ------------------------ ##
1527
1528# ac_fn_c_try_compile LINENO
1529# --------------------------
1530# Try to compile conftest.$ac_ext, and return whether this succeeded.
1531ac_fn_c_try_compile ()
1532{
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 rm -f conftest.$ac_objext
1535 if { { ac_try="$ac_compile"
1536case "(($ac_try" in
1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538 *) ac_try_echo=$ac_try;;
1539esac
1540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541$as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_compile") 2>conftest.err
1543 ac_status=$?
1544 if test -s conftest.err; then
1545 grep -v '^ *+' conftest.err >conftest.er1
1546 cat conftest.er1 >&5
1547 mv -f conftest.er1 conftest.err
1548 fi
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; } && {
1551 test -z "$ac_c_werror_flag" ||
1552 test ! -s conftest.err
1553 } && test -s conftest.$ac_objext; then :
1554 ac_retval=0
1555else
1556 $as_echo "$as_me: failed program was:" >&5
1557sed 's/^/| /' conftest.$ac_ext >&5
1558
1559 ac_retval=1
1560fi
1561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1562 as_fn_set_status $ac_retval
1563
1564} # ac_fn_c_try_compile
1565
1566# ac_fn_cxx_try_compile LINENO
1567# ----------------------------
1568# Try to compile conftest.$ac_ext, and return whether this succeeded.
1569ac_fn_cxx_try_compile ()
1570{
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext
1573 if { { ac_try="$ac_compile"
1574case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577esac
1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579$as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_compile") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1586 fi
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_cxx_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest.$ac_objext; then :
1592 ac_retval=0
1593else
1594 $as_echo "$as_me: failed program was:" >&5
1595sed 's/^/| /' conftest.$ac_ext >&5
1596
1597 ac_retval=1
1598fi
1599 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1600 as_fn_set_status $ac_retval
1601
1602} # ac_fn_cxx_try_compile
1603
1604# ac_fn_c_try_link LINENO
1605# -----------------------
1606# Try to link conftest.$ac_ext, and return whether this succeeded.
1607ac_fn_c_try_link ()
1608{
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext conftest$ac_exeext
1611 if { { ac_try="$ac_link"
1612case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615esac
1616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617$as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_link") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1624 fi
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest$ac_exeext && {
1630 test "$cross_compiling" = yes ||
1631 $as_test_x conftest$ac_exeext
1632 }; then :
1633 ac_retval=0
1634else
1635 $as_echo "$as_me: failed program was:" >&5
1636sed 's/^/| /' conftest.$ac_ext >&5
1637
1638 ac_retval=1
1639fi
1640 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1641 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1642 # interfere with the next link command; also delete a directory that is
1643 # left behind by Apple's compiler. We do this before executing the actions.
1644 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646 as_fn_set_status $ac_retval
1647
1648} # ac_fn_c_try_link
1649
1650# ac_fn_c_try_run LINENO
1651# ----------------------
1652# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1653# that executables *can* be run.
1654ac_fn_c_try_run ()
1655{
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { { ac_try="$ac_link"
1658case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661esac
1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663$as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_link") 2>&5
1665 ac_status=$?
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1668 { { case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_try") 2>&5
1675 ac_status=$?
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; }; }; then :
1678 ac_retval=0
1679else
1680 $as_echo "$as_me: program exited with status $ac_status" >&5
1681 $as_echo "$as_me: failed program was:" >&5
1682sed 's/^/| /' conftest.$ac_ext >&5
1683
1684 ac_retval=$ac_status
1685fi
1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688 as_fn_set_status $ac_retval
1689
1690} # ac_fn_c_try_run
1691
1692# ac_fn_c_try_cpp LINENO
1693# ----------------------
1694# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695ac_fn_c_try_cpp ()
1696{
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_cpp conftest.$ac_ext"
1699case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } >/dev/null && {
1714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 }; then :
1717 ac_retval=0
1718else
1719 $as_echo "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=1
1723fi
1724 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725 as_fn_set_status $ac_retval
1726
1727} # ac_fn_c_try_cpp
1728
1729# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1730# -------------------------------------------------------
1731# Tests whether HEADER exists and can be compiled using the include files in
1732# INCLUDES, setting the cache variable VAR accordingly.
1733ac_fn_c_check_header_compile ()
1734{
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737$as_echo_n "checking for $2... " >&6; }
1738if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1739 $as_echo_n "(cached) " >&6
1740else
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742/* end confdefs.h. */
1743$4
1744#include <$2>
1745_ACEOF
1746if ac_fn_c_try_compile "$LINENO"; then :
1747 eval "$3=yes"
1748else
1749 eval "$3=no"
1750fi
1751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752fi
1753eval ac_res=\$$3
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755$as_echo "$ac_res" >&6; }
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757
1758} # ac_fn_c_check_header_compile
1759
1760# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1761# -------------------------------------------------------
1762# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1763# the include files in INCLUDES and setting the cache variable VAR
1764# accordingly.
1765ac_fn_c_check_header_mongrel ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770$as_echo_n "checking for $2... " >&6; }
1771if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1772 $as_echo_n "(cached) " >&6
1773fi
1774eval ac_res=\$$3
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776$as_echo "$ac_res" >&6; }
1777else
1778 # Is the header compilable?
1779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1780$as_echo_n "checking $2 usability... " >&6; }
1781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782/* end confdefs.h. */
1783$4
1784#include <$2>
1785_ACEOF
1786if ac_fn_c_try_compile "$LINENO"; then :
1787 ac_header_compiler=yes
1788else
1789 ac_header_compiler=no
1790fi
1791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1793$as_echo "$ac_header_compiler" >&6; }
1794
1795# Is the header present?
1796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1797$as_echo_n "checking $2 presence... " >&6; }
1798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799/* end confdefs.h. */
1800#include <$2>
1801_ACEOF
1802if ac_fn_c_try_cpp "$LINENO"; then :
1803 ac_header_preproc=yes
1804else
1805 ac_header_preproc=no
1806fi
1807rm -f conftest.err conftest.$ac_ext
1808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1809$as_echo "$ac_header_preproc" >&6; }
1810
1811# So? What about this header?
1812case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1813 yes:no: )
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1815$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1817$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1818 ;;
1819 no:yes:* )
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1821$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1823$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1825$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1827$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1829$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1830 ;;
1831esac
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833$as_echo_n "checking for $2... " >&6; }
1834if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1835 $as_echo_n "(cached) " >&6
1836else
1837 eval "$3=\$ac_header_compiler"
1838fi
1839eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841$as_echo "$ac_res" >&6; }
1842fi
1843 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844
1845} # ac_fn_c_check_header_mongrel
1846
1847# ac_fn_c_check_func LINENO FUNC VAR
1848# ----------------------------------
1849# Tests whether FUNC exists, setting the cache variable VAR accordingly
1850ac_fn_c_check_func ()
1851{
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854$as_echo_n "checking for $2... " >&6; }
1855if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1856 $as_echo_n "(cached) " >&6
1857else
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859/* end confdefs.h. */
1860/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1862#define $2 innocuous_$2
1863
1864/* System header to define __stub macros and hopefully few prototypes,
1865 which can conflict with char $2 (); below.
1866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1867 <limits.h> exists even on freestanding compilers. */
1868
1869#ifdef __STDC__
1870# include <limits.h>
1871#else
1872# include <assert.h>
1873#endif
1874
1875#undef $2
1876
1877/* Override any GCC internal prototype to avoid an error.
1878 Use char because int might match the return type of a GCC
1879 builtin and then its argument prototype would still apply. */
1880#ifdef __cplusplus
1881extern "C"
1882#endif
1883char $2 ();
1884/* The GNU C library defines this for functions which it implements
1885 to always fail with ENOSYS. Some functions are actually named
1886 something starting with __ and the normal name is an alias. */
1887#if defined __stub_$2 || defined __stub___$2
1888choke me
1889#endif
1890
1891int
1892main ()
1893{
1894return $2 ();
1895 ;
1896 return 0;
1897}
1898_ACEOF
1899if ac_fn_c_try_link "$LINENO"; then :
1900 eval "$3=yes"
1901else
1902 eval "$3=no"
1903fi
1904rm -f core conftest.err conftest.$ac_objext \
1905 conftest$ac_exeext conftest.$ac_ext
1906fi
1907eval ac_res=\$$3
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909$as_echo "$ac_res" >&6; }
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911
1912} # ac_fn_c_check_func
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001913cat >config.log <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001914This file contains any messages produced by compilers while
1915running configure, to aid debugging if configure makes a mistake.
1916
Benny Prijono28d3c562012-03-30 07:10:13 +00001917It was created by pjproject $as_me 2.x, which was
1918generated by GNU Autoconf 2.65. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001919
1920 $ $0 $@
1921
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001922_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001923exec 5>>config.log
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001924{
1925cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001926## --------- ##
1927## Platform. ##
1928## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001929
1930hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1931uname -m = `(uname -m) 2>/dev/null || echo unknown`
1932uname -r = `(uname -r) 2>/dev/null || echo unknown`
1933uname -s = `(uname -s) 2>/dev/null || echo unknown`
1934uname -v = `(uname -v) 2>/dev/null || echo unknown`
1935
1936/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1937/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1938
1939/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1940/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1941/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001942/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001943/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1944/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1945/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1946
1947_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001948
1949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950for as_dir in $PATH
1951do
1952 IFS=$as_save_IFS
1953 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00001954 $as_echo "PATH: $as_dir"
1955 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001956IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001957
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001958} >&5
1959
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001960cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001961
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001962
1963## ----------- ##
1964## Core tests. ##
1965## ----------- ##
1966
1967_ACEOF
1968
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001969
1970# Keep a trace of the command line.
1971# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001972# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001973# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001974# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001975ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001976ac_configure_args0=
1977ac_configure_args1=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001978ac_must_keep_next=false
1979for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001980do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001981 for ac_arg
1982 do
1983 case $ac_arg in
1984 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1986 | -silent | --silent | --silen | --sile | --sil)
1987 continue ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001988 *\'*)
Benny Prijono28d3c562012-03-30 07:10:13 +00001989 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001990 esac
1991 case $ac_pass in
Benny Prijono28d3c562012-03-30 07:10:13 +00001992 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001993 2)
Benny Prijono28d3c562012-03-30 07:10:13 +00001994 as_fn_append ac_configure_args1 " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001995 if test $ac_must_keep_next = true; then
1996 ac_must_keep_next=false # Got value, back to normal.
1997 else
1998 case $ac_arg in
1999 *=* | --config-cache | -C | -disable-* | --disable-* \
2000 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2001 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2002 | -with-* | --with-* | -without-* | --without-* | --x)
2003 case "$ac_configure_args0 " in
2004 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2005 esac
2006 ;;
2007 -* ) ac_must_keep_next=true ;;
2008 esac
2009 fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002010 as_fn_append ac_configure_args " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002011 ;;
2012 esac
2013 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002014done
Benny Prijono28d3c562012-03-30 07:10:13 +00002015{ ac_configure_args0=; unset ac_configure_args0;}
2016{ ac_configure_args1=; unset ac_configure_args1;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002017
2018# When interrupted or exit'd, cleanup temporary files, and complete
2019# config.log. We remove comments because anyway the quotes in there
2020# would cause problems or look ugly.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002021# WARNING: Use '\'' to represent an apostrophe within the trap.
2022# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002023trap 'exit_status=$?
2024 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002025 {
2026 echo
2027
2028 cat <<\_ASBOX
2029## ---------------- ##
2030## Cache variables. ##
2031## ---------------- ##
2032_ASBOX
2033 echo
2034 # The following way of writing the cache mishandles newlines in values,
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002035(
2036 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2037 eval ac_val=\$$ac_var
2038 case $ac_val in #(
2039 *${as_nl}*)
2040 case $ac_var in #(
Benny Prijono28d3c562012-03-30 07:10:13 +00002041 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2042$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002043 esac
2044 case $ac_var in #(
2045 _ | IFS | as_nl) ;; #(
Benny Prijono28d3c562012-03-30 07:10:13 +00002046 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2047 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002048 esac ;;
2049 esac
2050 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002051 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002052 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2053 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002054 sed -n \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002055 "s/'\''/'\''\\\\'\'''\''/g;
2056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2057 ;; #(
Benny Prijonoe2746132008-09-27 13:16:35 +00002058 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002059 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoe2746132008-09-27 13:16:35 +00002060 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002061 esac |
2062 sort
2063)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002064 echo
2065
2066 cat <<\_ASBOX
2067## ----------------- ##
2068## Output variables. ##
2069## ----------------- ##
2070_ASBOX
2071 echo
2072 for ac_var in $ac_subst_vars
2073 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002074 eval ac_val=\$$ac_var
2075 case $ac_val in
Benny Prijono28d3c562012-03-30 07:10:13 +00002076 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002077 esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002078 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002079 done | sort
2080 echo
2081
2082 if test -n "$ac_subst_files"; then
2083 cat <<\_ASBOX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002084## ------------------- ##
2085## File substitutions. ##
2086## ------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002087_ASBOX
2088 echo
2089 for ac_var in $ac_subst_files
2090 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002091 eval ac_val=\$$ac_var
2092 case $ac_val in
Benny Prijono28d3c562012-03-30 07:10:13 +00002093 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002094 esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002095 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002096 done | sort
2097 echo
2098 fi
2099
2100 if test -s confdefs.h; then
2101 cat <<\_ASBOX
2102## ----------- ##
2103## confdefs.h. ##
2104## ----------- ##
2105_ASBOX
2106 echo
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002107 cat confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002108 echo
2109 fi
2110 test "$ac_signal" != 0 &&
Benny Prijono28d3c562012-03-30 07:10:13 +00002111 $as_echo "$as_me: caught signal $ac_signal"
2112 $as_echo "$as_me: exit $exit_status"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002113 } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002114 rm -f core *.core core.conftest.* &&
2115 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002116 exit $exit_status
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002117' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002118for ac_signal in 1 2 13 15; do
Benny Prijono28d3c562012-03-30 07:10:13 +00002119 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002120done
2121ac_signal=0
2122
2123# confdefs.h avoids OS command line length limits that DEFS can exceed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002124rm -f -r conftest* confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002125
Benny Prijono28d3c562012-03-30 07:10:13 +00002126$as_echo "/* confdefs.h */" > confdefs.h
2127
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002128# Predefined preprocessor variables.
2129
2130cat >>confdefs.h <<_ACEOF
2131#define PACKAGE_NAME "$PACKAGE_NAME"
2132_ACEOF
2133
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002134cat >>confdefs.h <<_ACEOF
2135#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2136_ACEOF
2137
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002138cat >>confdefs.h <<_ACEOF
2139#define PACKAGE_VERSION "$PACKAGE_VERSION"
2140_ACEOF
2141
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002142cat >>confdefs.h <<_ACEOF
2143#define PACKAGE_STRING "$PACKAGE_STRING"
2144_ACEOF
2145
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002146cat >>confdefs.h <<_ACEOF
2147#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2148_ACEOF
2149
Benny Prijono28d3c562012-03-30 07:10:13 +00002150cat >>confdefs.h <<_ACEOF
2151#define PACKAGE_URL "$PACKAGE_URL"
2152_ACEOF
2153
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002154
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002155# Let the site file select an alternate cache file if it wants to.
Benny Prijono28d3c562012-03-30 07:10:13 +00002156# Prefer an explicitly selected file to automatically selected ones.
2157ac_site_file1=NONE
2158ac_site_file2=NONE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002159if test -n "$CONFIG_SITE"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002160 ac_site_file1=$CONFIG_SITE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002161elif test "x$prefix" != xNONE; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002162 ac_site_file1=$prefix/share/config.site
2163 ac_site_file2=$prefix/etc/config.site
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002164else
Benny Prijono28d3c562012-03-30 07:10:13 +00002165 ac_site_file1=$ac_default_prefix/share/config.site
2166 ac_site_file2=$ac_default_prefix/etc/config.site
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002167fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002168for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002169do
Benny Prijono28d3c562012-03-30 07:10:13 +00002170 test "x$ac_site_file" = xNONE && continue
2171 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2173$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002174 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002175 . "$ac_site_file"
2176 fi
2177done
2178
2179if test -r "$cache_file"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002180 # Some versions of bash will fail to source /dev/null (special files
2181 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2182 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2184$as_echo "$as_me: loading cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002185 case $cache_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002186 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2187 *) . "./$cache_file";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002188 esac
2189 fi
2190else
Benny Prijono28d3c562012-03-30 07:10:13 +00002191 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2192$as_echo "$as_me: creating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002193 >$cache_file
2194fi
2195
2196# Check that the precious variables saved in the cache have kept the same
2197# value.
2198ac_cache_corrupted=false
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002199for ac_var in $ac_precious_vars; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002200 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2201 eval ac_new_set=\$ac_env_${ac_var}_set
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002202 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2203 eval ac_new_val=\$ac_env_${ac_var}_value
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002204 case $ac_old_set,$ac_new_set in
2205 set,)
Benny Prijono28d3c562012-03-30 07:10:13 +00002206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2207$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 +00002208 ac_cache_corrupted=: ;;
2209 ,set)
Benny Prijono28d3c562012-03-30 07:10:13 +00002210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2211$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002212 ac_cache_corrupted=: ;;
2213 ,);;
2214 *)
2215 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002216 # differences in whitespace do not lead to failure.
2217 ac_old_val_w=`echo x $ac_old_val`
2218 ac_new_val_w=`echo x $ac_new_val`
2219 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2221$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2222 ac_cache_corrupted=:
2223 else
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2225$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2226 eval $ac_var=\$ac_old_val
2227 fi
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2229$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2231$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002232 fi;;
2233 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002234 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002235 if test "$ac_new_set" = set; then
2236 case $ac_new_val in
Benny Prijono28d3c562012-03-30 07:10:13 +00002237 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002238 *) ac_arg=$ac_var=$ac_new_val ;;
2239 esac
2240 case " $ac_configure_args " in
2241 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Benny Prijono28d3c562012-03-30 07:10:13 +00002242 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002243 esac
2244 fi
2245done
2246if $ac_cache_corrupted; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2250$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2251 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002252fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002253## -------------------- ##
2254## Main body of script. ##
2255## -------------------- ##
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002256
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002257ac_ext=c
2258ac_cpp='$CPP $CPPFLAGS'
2259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2261ac_compiler_gnu=$ac_cv_c_compiler_gnu
2262
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002263
2264
Benny Prijono5b818b22006-09-17 22:58:51 +00002265host_orig="$host"
2266
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002267ac_aux_dir=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002268for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Benny Prijono28d3c562012-03-30 07:10:13 +00002269 for ac_t in install-sh install.sh shtool; do
2270 if test -f "$ac_dir/$ac_t"; then
2271 ac_aux_dir=$ac_dir
2272 ac_install_sh="$ac_aux_dir/$ac_t -c"
2273 break 2
2274 fi
2275 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002276done
2277if test -z "$ac_aux_dir"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002278 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002279fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002280
2281# These three variables are undocumented and unsupported,
2282# and are intended to be withdrawn in a future Autoconf release.
2283# They can cause serious problems if a builder's source tree is in a directory
2284# whose full name contains unusual characters.
2285ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2286ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2287ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2288
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002289
2290# Make sure we can run config.sub.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002291$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Benny Prijono28d3c562012-03-30 07:10:13 +00002292 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002293
Benny Prijono28d3c562012-03-30 07:10:13 +00002294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2295$as_echo_n "checking build system type... " >&6; }
2296if test "${ac_cv_build+set}" = set; then :
2297 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002298else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002299 ac_build_alias=$build_alias
2300test "x$ac_build_alias" = x &&
2301 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2302test "x$ac_build_alias" = x &&
Benny Prijono28d3c562012-03-30 07:10:13 +00002303 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002304ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Benny Prijono28d3c562012-03-30 07:10:13 +00002305 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002306
2307fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2309$as_echo "$ac_cv_build" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002310case $ac_cv_build in
2311*-*-*) ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00002312*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002313esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002314build=$ac_cv_build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002315ac_save_IFS=$IFS; IFS='-'
2316set x $ac_cv_build
2317shift
2318build_cpu=$1
2319build_vendor=$2
2320shift; shift
2321# Remember, the first character of IFS is used to create $*,
2322# except with old shells:
2323build_os=$*
2324IFS=$ac_save_IFS
2325case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002326
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002327
Benny Prijono28d3c562012-03-30 07:10:13 +00002328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2329$as_echo_n "checking host system type... " >&6; }
2330if test "${ac_cv_host+set}" = set; then :
2331 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002332else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002333 if test "x$host_alias" = x; then
2334 ac_cv_host=$ac_cv_build
2335else
2336 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Benny Prijono28d3c562012-03-30 07:10:13 +00002337 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002338fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002339
2340fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2342$as_echo "$ac_cv_host" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002343case $ac_cv_host in
2344*-*-*) ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00002345*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002346esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002347host=$ac_cv_host
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002348ac_save_IFS=$IFS; IFS='-'
2349set x $ac_cv_host
2350shift
2351host_cpu=$1
2352host_vendor=$2
2353shift; shift
2354# Remember, the first character of IFS is used to create $*,
2355# except with old shells:
2356host_os=$*
2357IFS=$ac_save_IFS
2358case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002359
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002360
Benny Prijono28d3c562012-03-30 07:10:13 +00002361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2362$as_echo_n "checking target system type... " >&6; }
2363if test "${ac_cv_target+set}" = set; then :
2364 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002365else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002366 if test "x$target_alias" = x; then
2367 ac_cv_target=$ac_cv_host
2368else
2369 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Benny Prijono28d3c562012-03-30 07:10:13 +00002370 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002371fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002372
2373fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2375$as_echo "$ac_cv_target" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002376case $ac_cv_target in
2377*-*-*) ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00002378*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002379esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002380target=$ac_cv_target
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002381ac_save_IFS=$IFS; IFS='-'
2382set x $ac_cv_target
2383shift
2384target_cpu=$1
2385target_vendor=$2
2386shift; shift
2387# Remember, the first character of IFS is used to create $*,
2388# except with old shells:
2389target_os=$*
2390IFS=$ac_save_IFS
2391case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002392
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002393
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002394# The aliases save the names the user supplied, while $host etc.
2395# will get canonicalized.
2396test -n "$target_alias" &&
2397 test "$program_prefix$program_suffix$program_transform_name" = \
2398 NONENONEs,x,x, &&
2399 program_prefix=${target_alias}-
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002400ac_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 +00002401
Benny Prijono8ec5eae2010-05-12 10:59:20 +00002402ac_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 +00002403
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002404
Benny Prijono12483112007-03-12 10:44:38 +00002405
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002406if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00002407 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002408else
2409 CFLAGS="$CFLAGS"
2410fi
2411
2412CXXFLAGS="$CFLAGS $CXXFLAGS"
2413
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002414ac_ext=c
2415ac_cpp='$CPP $CPPFLAGS'
2416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2418ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419if test -n "$ac_tool_prefix"; then
2420 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2421set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2423$as_echo_n "checking for $ac_word... " >&6; }
2424if test "${ac_cv_prog_CC+set}" = set; then :
2425 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002426else
2427 if test -n "$CC"; then
2428 ac_cv_prog_CC="$CC" # Let the user override the test.
2429else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431for as_dir in $PATH
2432do
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002435 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002436 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 +00002437 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002439 break 2
2440 fi
2441done
Benny Prijono28d3c562012-03-30 07:10:13 +00002442 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002443IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002444
2445fi
2446fi
2447CC=$ac_cv_prog_CC
2448if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2450$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002451else
Benny Prijono28d3c562012-03-30 07:10:13 +00002452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2453$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002454fi
2455
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002456
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002457fi
2458if test -z "$ac_cv_prog_CC"; then
2459 ac_ct_CC=$CC
2460 # Extract the first word of "gcc", so it can be a program name with args.
2461set dummy gcc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2463$as_echo_n "checking for $ac_word... " >&6; }
2464if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2465 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002466else
2467 if test -n "$ac_ct_CC"; then
2468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2469else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471for as_dir in $PATH
2472do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002475 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002476 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 +00002477 ac_cv_prog_ac_ct_CC="gcc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002479 break 2
2480 fi
2481done
Benny Prijono28d3c562012-03-30 07:10:13 +00002482 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002483IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002484
2485fi
2486fi
2487ac_ct_CC=$ac_cv_prog_ac_ct_CC
2488if test -n "$ac_ct_CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2490$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002491else
Benny Prijono28d3c562012-03-30 07:10:13 +00002492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002494fi
2495
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002496 if test "x$ac_ct_CC" = x; then
2497 CC=""
2498 else
2499 case $cross_compiling:$ac_tool_warned in
2500yes:)
Benny Prijono28d3c562012-03-30 07:10:13 +00002501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002503ac_tool_warned=yes ;;
2504esac
2505 CC=$ac_ct_CC
2506 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002507else
2508 CC="$ac_cv_prog_CC"
2509fi
2510
2511if test -z "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002512 if test -n "$ac_tool_prefix"; then
2513 # 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 +00002514set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516$as_echo_n "checking for $ac_word... " >&6; }
2517if test "${ac_cv_prog_CC+set}" = set; then :
2518 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002519else
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2522else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002528 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002529 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 +00002530 ac_cv_prog_CC="${ac_tool_prefix}cc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002532 break 2
2533 fi
2534done
Benny Prijono28d3c562012-03-30 07:10:13 +00002535 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002536IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002537
2538fi
2539fi
2540CC=$ac_cv_prog_CC
2541if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2543$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002544else
Benny Prijono28d3c562012-03-30 07:10:13 +00002545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002547fi
2548
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002549
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002550 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002551fi
2552if test -z "$CC"; then
2553 # Extract the first word of "cc", so it can be a program name with args.
2554set dummy cc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556$as_echo_n "checking for $ac_word... " >&6; }
2557if test "${ac_cv_prog_CC+set}" = set; then :
2558 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002559else
2560 if test -n "$CC"; then
2561 ac_cv_prog_CC="$CC" # Let the user override the test.
2562else
2563 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002569 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002570 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 +00002571 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2572 ac_prog_rejected=yes
2573 continue
2574 fi
2575 ac_cv_prog_CC="cc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002577 break 2
2578 fi
2579done
Benny Prijono28d3c562012-03-30 07:10:13 +00002580 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002581IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002582
2583if test $ac_prog_rejected = yes; then
2584 # We found a bogon in the path, so make sure we never use it.
2585 set dummy $ac_cv_prog_CC
2586 shift
2587 if test $# != 0; then
2588 # We chose a different compiler from the bogus one.
2589 # However, it has the same basename, so the bogon will be chosen
2590 # first if we set CC to just the basename; use the full file name.
2591 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002592 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002593 fi
2594fi
2595fi
2596fi
2597CC=$ac_cv_prog_CC
2598if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2600$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002601else
Benny Prijono28d3c562012-03-30 07:10:13 +00002602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002604fi
2605
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002606
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002607fi
2608if test -z "$CC"; then
2609 if test -n "$ac_tool_prefix"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002610 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002611 do
2612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2613set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615$as_echo_n "checking for $ac_word... " >&6; }
2616if test "${ac_cv_prog_CC+set}" = set; then :
2617 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002618else
2619 if test -n "$CC"; then
2620 ac_cv_prog_CC="$CC" # Let the user override the test.
2621else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623for as_dir in $PATH
2624do
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002627 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002628 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 +00002629 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00002630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002631 break 2
2632 fi
2633done
Benny Prijono28d3c562012-03-30 07:10:13 +00002634 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002635IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002636
2637fi
2638fi
2639CC=$ac_cv_prog_CC
2640if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2642$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002643else
Benny Prijono28d3c562012-03-30 07:10:13 +00002644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002646fi
2647
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002648
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002649 test -n "$CC" && break
2650 done
2651fi
2652if test -z "$CC"; then
2653 ac_ct_CC=$CC
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002654 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002655do
2656 # Extract the first word of "$ac_prog", so it can be a program name with args.
2657set dummy $ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659$as_echo_n "checking for $ac_word... " >&6; }
2660if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2661 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002662else
2663 if test -n "$ac_ct_CC"; then
2664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2665else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667for as_dir in $PATH
2668do
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002671 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002672 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 +00002673 ac_cv_prog_ac_ct_CC="$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00002674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002675 break 2
2676 fi
2677done
Benny Prijono28d3c562012-03-30 07:10:13 +00002678 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002679IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002680
2681fi
2682fi
2683ac_ct_CC=$ac_cv_prog_ac_ct_CC
2684if test -n "$ac_ct_CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2686$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002687else
Benny Prijono28d3c562012-03-30 07:10:13 +00002688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002690fi
2691
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002692
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002693 test -n "$ac_ct_CC" && break
2694done
2695
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002696 if test "x$ac_ct_CC" = x; then
2697 CC=""
2698 else
2699 case $cross_compiling:$ac_tool_warned in
2700yes:)
Benny Prijono28d3c562012-03-30 07:10:13 +00002701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002703ac_tool_warned=yes ;;
2704esac
2705 CC=$ac_ct_CC
2706 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002707fi
2708
2709fi
2710
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002711
Benny Prijono28d3c562012-03-30 07:10:13 +00002712test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2714as_fn_error "no acceptable C compiler found in \$PATH
2715See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002716
2717# Provide some information about the compiler.
Benny Prijono28d3c562012-03-30 07:10:13 +00002718$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2719set X $ac_compile
2720ac_compiler=$2
2721for ac_option in --version -v -V -qversion; do
2722 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002723case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2728$as_echo "$ac_try_echo"; } >&5
2729 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002730 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00002731 if test -s conftest.err; then
2732 sed '10a\
2733... rest of stderr output deleted ...
2734 10q' conftest.err >conftest.er1
2735 cat conftest.er1 >&5
2736 fi
2737 rm -f conftest.er1 conftest.err
2738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2739 test $ac_status = 0; }
2740done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002741
Benny Prijono28d3c562012-03-30 07:10:13 +00002742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002743/* end confdefs.h. */
Benny Prijono5bbebc02010-06-15 05:21:43 +00002744
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002745int
2746main ()
2747{
2748
2749 ;
2750 return 0;
2751}
2752_ACEOF
2753ac_clean_files_save=$ac_clean_files
Benny Prijono28d3c562012-03-30 07:10:13 +00002754ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002755# Try to create an executable without -o first, disregard a.out.
2756# It will help us diagnose broken compilers, and finding out an intuition
2757# of exeext.
Benny Prijono28d3c562012-03-30 07:10:13 +00002758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2759$as_echo_n "checking whether the C compiler works... " >&6; }
2760ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2761
2762# The possible output files:
2763ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2764
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002765ac_rmfiles=
2766for ac_file in $ac_files
2767do
2768 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00002769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2771 esac
2772done
2773rm -f $ac_rmfiles
2774
Benny Prijono28d3c562012-03-30 07:10:13 +00002775if { { ac_try="$ac_link_default"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002776case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002782 (eval "$ac_link_default") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002783 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00002784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2785 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002786 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2787# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2788# in a Makefile. We should not override ac_cv_exeext if it was cached,
2789# so that the user can short-circuit this test for compilers unknown to
2790# Autoconf.
2791for ac_file in $ac_files ''
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002792do
2793 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002794 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00002795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002796 ;;
2797 [ab].out )
2798 # We found the default executable, but exeext='' is most
2799 # certainly right.
2800 break;;
2801 *.* )
Benny Prijono28d3c562012-03-30 07:10:13 +00002802 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002803 then :; else
2804 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2805 fi
2806 # We set ac_cv_exeext here because the later test for it is not
2807 # safe: cross compilers may not add the suffix if given an `-o'
2808 # argument, so we may need to know it at that point already.
2809 # Even if this section looks crufty: it has the advantage of
2810 # actually working.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002811 break;;
2812 * )
2813 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002814 esac
2815done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002816test "$ac_cv_exeext" = no && ac_cv_exeext=
2817
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002818else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002819 ac_file=''
2820fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002821if test -z "$ac_file"; then :
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823$as_echo "no" >&6; }
2824$as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002825sed 's/^/| /' conftest.$ac_ext >&5
2826
Benny Prijono28d3c562012-03-30 07:10:13 +00002827{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2829{ as_fn_set_status 77
2830as_fn_error "C compiler cannot create executables
2831See \`config.log' for more details." "$LINENO" 5; }; }
2832else
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2834$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002835fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2837$as_echo_n "checking for C compiler default output file name... " >&6; }
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2839$as_echo "$ac_file" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002840ac_exeext=$ac_cv_exeext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002841
Benny Prijono28d3c562012-03-30 07:10:13 +00002842rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002843ac_clean_files=$ac_clean_files_save
Benny Prijono28d3c562012-03-30 07:10:13 +00002844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2845$as_echo_n "checking for suffix of executables... " >&6; }
2846if { { ac_try="$ac_link"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002847case "(($ac_try" in
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2850esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2852$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002853 (eval "$ac_link") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002854 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00002855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2856 test $ac_status = 0; }; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002857 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2858# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2859# work properly (i.e., refer to `conftest.exe'), while it won't with
2860# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002861for ac_file in conftest.exe conftest conftest.*; do
2862 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002863 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00002864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002865 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002866 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002867 * ) break;;
2868 esac
2869done
2870else
Benny Prijono28d3c562012-03-30 07:10:13 +00002871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2873as_fn_error "cannot compute suffix of executables: cannot compile and link
2874See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002875fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002876rm -f conftest conftest$ac_cv_exeext
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2878$as_echo "$ac_cv_exeext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002879
2880rm -f conftest.$ac_ext
2881EXEEXT=$ac_cv_exeext
2882ac_exeext=$EXEEXT
Benny Prijono28d3c562012-03-30 07:10:13 +00002883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884/* end confdefs.h. */
2885#include <stdio.h>
2886int
2887main ()
2888{
2889FILE *f = fopen ("conftest.out", "w");
2890 return ferror (f) || fclose (f) != 0;
2891
2892 ;
2893 return 0;
2894}
Benny Prijono36d32492011-12-28 08:42:23 +00002895_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00002896ac_clean_files="$ac_clean_files conftest.out"
2897# Check that the compiler produces executables we can run. If not, either
2898# the compiler is broken, or we cross compile.
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2900$as_echo_n "checking whether we are cross compiling... " >&6; }
2901if test "$cross_compiling" != yes; then
2902 { { ac_try="$ac_link"
2903case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906esac
2907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2908$as_echo "$ac_try_echo"; } >&5
2909 (eval "$ac_link") 2>&5
2910 ac_status=$?
2911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2912 test $ac_status = 0; }
2913 if { ac_try='./conftest$ac_cv_exeext'
2914 { { case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917esac
2918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2919$as_echo "$ac_try_echo"; } >&5
2920 (eval "$ac_try") 2>&5
2921 ac_status=$?
2922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2923 test $ac_status = 0; }; }; then
2924 cross_compiling=no
2925 else
2926 if test "$cross_compiling" = maybe; then
2927 cross_compiling=yes
2928 else
2929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2931as_fn_error "cannot run C compiled programs.
2932If you meant to cross compile, use \`--host'.
2933See \`config.log' for more details." "$LINENO" 5; }
2934 fi
2935 fi
2936fi
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2938$as_echo "$cross_compiling" >&6; }
2939
2940rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2941ac_clean_files=$ac_clean_files_save
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2943$as_echo_n "checking for suffix of object files... " >&6; }
2944if test "${ac_cv_objext+set}" = set; then :
2945 $as_echo_n "(cached) " >&6
2946else
2947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002948/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002949
2950int
2951main ()
2952{
2953
2954 ;
2955 return 0;
2956}
2957_ACEOF
2958rm -f conftest.o conftest.obj
Benny Prijono28d3c562012-03-30 07:10:13 +00002959if { { ac_try="$ac_compile"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002960case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2965$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002966 (eval "$ac_compile") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002967 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00002968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2969 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002970 for ac_file in conftest.o conftest.obj conftest.*; do
2971 test -f "$ac_file" || continue;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002972 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00002973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002974 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2975 break;;
2976 esac
2977done
2978else
Benny Prijono28d3c562012-03-30 07:10:13 +00002979 $as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002980sed 's/^/| /' conftest.$ac_ext >&5
2981
Benny Prijono28d3c562012-03-30 07:10:13 +00002982{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2984as_fn_error "cannot compute suffix of object files: cannot compile
2985See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002986fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002987rm -f conftest.$ac_cv_objext conftest.$ac_ext
2988fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2990$as_echo "$ac_cv_objext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002991OBJEXT=$ac_cv_objext
2992ac_objext=$OBJEXT
Benny Prijono28d3c562012-03-30 07:10:13 +00002993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2994$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2995if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2996 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002997else
Benny Prijono28d3c562012-03-30 07:10:13 +00002998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002999/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003000
3001int
3002main ()
3003{
3004#ifndef __GNUC__
3005 choke me
3006#endif
3007
3008 ;
3009 return 0;
3010}
3011_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003012if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003013 ac_compiler_gnu=yes
3014else
Benny Prijono28d3c562012-03-30 07:10:13 +00003015 ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003016fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003018ac_cv_c_compiler_gnu=$ac_compiler_gnu
3019
3020fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3022$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3023if test $ac_compiler_gnu = yes; then
3024 GCC=yes
3025else
3026 GCC=
3027fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003028ac_test_CFLAGS=${CFLAGS+set}
3029ac_save_CFLAGS=$CFLAGS
Benny Prijono28d3c562012-03-30 07:10:13 +00003030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3031$as_echo_n "checking whether $CC accepts -g... " >&6; }
3032if test "${ac_cv_prog_cc_g+set}" = set; then :
3033 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003034else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003035 ac_save_c_werror_flag=$ac_c_werror_flag
3036 ac_c_werror_flag=yes
3037 ac_cv_prog_cc_g=no
3038 CFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003040/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003041
3042int
3043main ()
3044{
3045
3046 ;
3047 return 0;
3048}
3049_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003050if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003051 ac_cv_prog_cc_g=yes
3052else
Benny Prijono28d3c562012-03-30 07:10:13 +00003053 CFLAGS=""
3054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003055/* end confdefs.h. */
3056
3057int
3058main ()
3059{
3060
3061 ;
3062 return 0;
3063}
3064_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003065if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00003066
Benny Prijono28d3c562012-03-30 07:10:13 +00003067else
3068 ac_c_werror_flag=$ac_save_c_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003069 CFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003071/* end confdefs.h. */
3072
3073int
3074main ()
3075{
3076
3077 ;
3078 return 0;
3079}
3080_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003081if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003082 ac_cv_prog_cc_g=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003083fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003085fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 ac_c_werror_flag=$ac_save_c_werror_flag
3090fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3092$as_echo "$ac_cv_prog_cc_g" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003093if test "$ac_test_CFLAGS" = set; then
3094 CFLAGS=$ac_save_CFLAGS
3095elif test $ac_cv_prog_cc_g = yes; then
3096 if test "$GCC" = yes; then
3097 CFLAGS="-g -O2"
3098 else
3099 CFLAGS="-g"
3100 fi
3101else
3102 if test "$GCC" = yes; then
3103 CFLAGS="-O2"
3104 else
3105 CFLAGS=
3106 fi
3107fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3109$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3110if test "${ac_cv_prog_cc_c89+set}" = set; then :
3111 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003112else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003113 ac_cv_prog_cc_c89=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003114ac_save_CC=$CC
Benny Prijono28d3c562012-03-30 07:10:13 +00003115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003116/* end confdefs.h. */
3117#include <stdarg.h>
3118#include <stdio.h>
3119#include <sys/types.h>
3120#include <sys/stat.h>
3121/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3122struct buf { int x; };
3123FILE * (*rcsopen) (struct buf *, struct stat *, int);
3124static char *e (p, i)
3125 char **p;
3126 int i;
3127{
3128 return p[i];
3129}
3130static char *f (char * (*g) (char **, int), char **p, ...)
3131{
3132 char *s;
3133 va_list v;
3134 va_start (v,p);
3135 s = g (p, va_arg (v,int));
3136 va_end (v);
3137 return s;
3138}
3139
3140/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3141 function prototypes and stuff, but not '\xHH' hex character constants.
3142 These don't provoke an error unfortunately, instead are silently treated
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003143 as 'x'. The following induces an error, until -std is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003144 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3145 array size at least. It's necessary to write '\x00'==0 to get something
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003146 that's true only with -std. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003147int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3148
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003149/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3150 inside strings and character constants. */
3151#define FOO(x) 'x'
3152int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3153
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003154int test (int i, double x);
3155struct s1 {int (*f) (int a);};
3156struct s2 {int (*f) (double a);};
3157int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3158int argc;
3159char **argv;
3160int
3161main ()
3162{
3163return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3164 ;
3165 return 0;
3166}
3167_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003168for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3169 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003170do
3171 CC="$ac_save_CC $ac_arg"
Benny Prijono28d3c562012-03-30 07:10:13 +00003172 if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003173 ac_cv_prog_cc_c89=$ac_arg
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003174fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003175rm -f core conftest.err conftest.$ac_objext
3176 test "x$ac_cv_prog_cc_c89" != "xno" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003177done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003178rm -f conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003179CC=$ac_save_CC
3180
3181fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003182# AC_CACHE_VAL
3183case "x$ac_cv_prog_cc_c89" in
3184 x)
Benny Prijono28d3c562012-03-30 07:10:13 +00003185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3186$as_echo "none needed" >&6; } ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003187 xno)
Benny Prijono28d3c562012-03-30 07:10:13 +00003188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3189$as_echo "unsupported" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003190 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003191 CC="$CC $ac_cv_prog_cc_c89"
Benny Prijono28d3c562012-03-30 07:10:13 +00003192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3193$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003194esac
Benny Prijono28d3c562012-03-30 07:10:13 +00003195if test "x$ac_cv_prog_cc_c89" != xno; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003196
Benny Prijono28d3c562012-03-30 07:10:13 +00003197fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003198
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003199ac_ext=c
3200ac_cpp='$CPP $CPPFLAGS'
3201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003205ac_ext=cpp
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003206ac_cpp='$CXXCPP $CPPFLAGS'
3207ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003210if test -z "$CXX"; then
3211 if test -n "$CCC"; then
3212 CXX=$CCC
3213 else
3214 if test -n "$ac_tool_prefix"; then
3215 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 +00003216 do
3217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3218set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00003219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220$as_echo_n "checking for $ac_word... " >&6; }
3221if test "${ac_cv_prog_CXX+set}" = set; then :
3222 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003223else
3224 if test -n "$CXX"; then
3225 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3226else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228for as_dir in $PATH
3229do
3230 IFS=$as_save_IFS
3231 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00003232 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003233 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 +00003234 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00003235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003236 break 2
3237 fi
3238done
Benny Prijono28d3c562012-03-30 07:10:13 +00003239 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003240IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003241
3242fi
3243fi
3244CXX=$ac_cv_prog_CXX
3245if test -n "$CXX"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00003246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3247$as_echo "$CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003248else
Benny Prijono28d3c562012-03-30 07:10:13 +00003249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003251fi
3252
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003253
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003254 test -n "$CXX" && break
3255 done
3256fi
3257if test -z "$CXX"; then
3258 ac_ct_CXX=$CXX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003259 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 +00003260do
3261 # Extract the first word of "$ac_prog", so it can be a program name with args.
3262set dummy $ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00003263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264$as_echo_n "checking for $ac_word... " >&6; }
3265if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3266 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003267else
3268 if test -n "$ac_ct_CXX"; then
3269 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3270else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272for as_dir in $PATH
3273do
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00003276 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003277 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 +00003278 ac_cv_prog_ac_ct_CXX="$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00003279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003280 break 2
3281 fi
3282done
Benny Prijono28d3c562012-03-30 07:10:13 +00003283 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003284IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003285
3286fi
3287fi
3288ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3289if test -n "$ac_ct_CXX"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00003290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3291$as_echo "$ac_ct_CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003292else
Benny Prijono28d3c562012-03-30 07:10:13 +00003293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003295fi
3296
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003297
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003298 test -n "$ac_ct_CXX" && break
3299done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003300
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003301 if test "x$ac_ct_CXX" = x; then
3302 CXX="g++"
3303 else
3304 case $cross_compiling:$ac_tool_warned in
3305yes:)
Benny Prijono28d3c562012-03-30 07:10:13 +00003306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003308ac_tool_warned=yes ;;
3309esac
3310 CXX=$ac_ct_CXX
3311 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003312fi
3313
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003314 fi
3315fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003316# Provide some information about the compiler.
Benny Prijono28d3c562012-03-30 07:10:13 +00003317$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3318set X $ac_compile
3319ac_compiler=$2
3320for ac_option in --version -v -V -qversion; do
3321 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003322case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325esac
Benny Prijono28d3c562012-03-30 07:10:13 +00003326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327$as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003329 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00003330 if test -s conftest.err; then
3331 sed '10a\
3332... rest of stderr output deleted ...
3333 10q' conftest.err >conftest.er1
3334 cat conftest.er1 >&5
3335 fi
3336 rm -f conftest.er1 conftest.err
3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338 test $ac_status = 0; }
3339done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003340
Benny Prijono28d3c562012-03-30 07:10:13 +00003341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3342$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3343if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3344 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003345else
Benny Prijono28d3c562012-03-30 07:10:13 +00003346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003347/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003348
3349int
3350main ()
3351{
3352#ifndef __GNUC__
3353 choke me
3354#endif
3355
3356 ;
3357 return 0;
3358}
3359_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003360if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003361 ac_compiler_gnu=yes
3362else
Benny Prijono28d3c562012-03-30 07:10:13 +00003363 ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003364fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003366ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3367
3368fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3370$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3371if test $ac_compiler_gnu = yes; then
3372 GXX=yes
3373else
3374 GXX=
3375fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003376ac_test_CXXFLAGS=${CXXFLAGS+set}
3377ac_save_CXXFLAGS=$CXXFLAGS
Benny Prijono28d3c562012-03-30 07:10:13 +00003378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3379$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3380if test "${ac_cv_prog_cxx_g+set}" = set; then :
3381 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003382else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003383 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3384 ac_cxx_werror_flag=yes
3385 ac_cv_prog_cxx_g=no
3386 CXXFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003388/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003389
3390int
3391main ()
3392{
3393
3394 ;
3395 return 0;
3396}
3397_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003398if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003399 ac_cv_prog_cxx_g=yes
3400else
Benny Prijono28d3c562012-03-30 07:10:13 +00003401 CXXFLAGS=""
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003403/* end confdefs.h. */
3404
3405int
3406main ()
3407{
3408
3409 ;
3410 return 0;
3411}
3412_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003413if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00003414
Benny Prijono28d3c562012-03-30 07:10:13 +00003415else
3416 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003417 CXXFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003419/* end confdefs.h. */
3420
3421int
3422main ()
3423{
3424
3425 ;
3426 return 0;
3427}
3428_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003429if ac_fn_cxx_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003430 ac_cv_prog_cxx_g=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003431fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003433fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3435fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3438fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3440$as_echo "$ac_cv_prog_cxx_g" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003441if test "$ac_test_CXXFLAGS" = set; then
3442 CXXFLAGS=$ac_save_CXXFLAGS
3443elif test $ac_cv_prog_cxx_g = yes; then
3444 if test "$GXX" = yes; then
3445 CXXFLAGS="-g -O2"
3446 else
3447 CXXFLAGS="-g"
3448 fi
3449else
3450 if test "$GXX" = yes; then
3451 CXXFLAGS="-O2"
3452 else
3453 CXXFLAGS=
3454 fi
3455fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003456ac_ext=c
3457ac_cpp='$CPP $CPPFLAGS'
3458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003462ac_ext=c
3463ac_cpp='$CPP $CPPFLAGS'
3464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003468
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003469if test -z "$CROSS_COMPILE"; then
3470 CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'`
3471fi
3472
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003473if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003474
3475if test "$LD" = ""; then LD="$CC"; fi
3476
Sauw Minge7dbbc82011-10-24 09:28:13 +00003477if test "$LDOUT" = ""; then LDOUT="-o "; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003478
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003479if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003480
3481if test "$OBJEXT" = ""; then OBJEXT='o'; fi
3482
3483if test "$LIBEXT" = ""; then LIBEXT='a'; fi
3484
3485if test "$LIBEXT2" = ""; then LIBEXT2=""; fi
3486
Sauw Minge7dbbc82011-10-24 09:28:13 +00003487if test "$CC_OUT" = ""; then CC_OUT="-o "; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003488
3489if test "$CC_INC" = ""; then CC_INC="-I"; fi
3490
3491if test "$CC_DEF" = ""; then CC_DEF="-D"; fi
3492
3493if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi
3494
3495if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi
3496
3497
3498
3499
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003500
Benny Prijono0822c192008-08-21 20:59:58 +00003501
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003502
3503case $host in
Benny Prijono53847a32007-09-24 16:10:13 +00003504 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003505 if pwd -W 2&> /dev/null; then
3506 ac_pjdir=`pwd -W`
3507 else
3508 # We're probably cross-compiling mingw on Linux
3509 ac_pjdir=`pwd`
3510 fi
Benny Prijono53847a32007-09-24 16:10:13 +00003511 ;;
3512 *)
3513 ac_pjdir=`pwd`
3514 ;;
3515esac
Benny Prijono12483112007-03-12 10:44:38 +00003516
3517
Benny Prijono28d3c562012-03-30 07:10:13 +00003518case $target in
3519 *mingw* | *cygw* | *win32* | *w32* )
3520 ac_shlib_suffix=dll
3521 ;;
3522 *darwin*)
3523 ac_shlib_suffix=dylib
3524 ;;
3525 *)
3526 ac_shlib_suffix=so
3527 ;;
3528esac
Benny Prijono36d32492011-12-28 08:42:23 +00003529
Benny Prijono28d3c562012-03-30 07:10:13 +00003530
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
3532$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
3533if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
3534 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003535else
3536 ac_check_lib_save_LIBS=$LIBS
3537LIBS="-lpthread $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003539/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003540
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003541/* Override any GCC internal prototype to avoid an error.
3542 Use char because int might match the return type of a GCC
3543 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003544#ifdef __cplusplus
3545extern "C"
3546#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003547char pthread_create ();
3548int
3549main ()
3550{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003551return pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003552 ;
3553 return 0;
3554}
3555_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003556if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003557 ac_cv_lib_pthread_pthread_create=yes
3558else
Benny Prijono28d3c562012-03-30 07:10:13 +00003559 ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003560fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003561rm -f core conftest.err conftest.$ac_objext \
3562 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003563LIBS=$ac_check_lib_save_LIBS
3564fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
3566$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
3567if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003568 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003569#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003570_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003571
3572 LIBS="-lpthread $LIBS"
3573
3574fi
3575
Benny Prijono28d3c562012-03-30 07:10:13 +00003576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5
3577$as_echo_n "checking for puts in -lwsock32... " >&6; }
3578if test "${ac_cv_lib_wsock32_puts+set}" = set; then :
3579 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003580else
3581 ac_check_lib_save_LIBS=$LIBS
3582LIBS="-lwsock32 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003584/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003585
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003586/* Override any GCC internal prototype to avoid an error.
3587 Use char because int might match the return type of a GCC
3588 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003589#ifdef __cplusplus
3590extern "C"
3591#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003592char puts ();
3593int
3594main ()
3595{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003596return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003597 ;
3598 return 0;
3599}
3600_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003601if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003602 ac_cv_lib_wsock32_puts=yes
3603else
Benny Prijono28d3c562012-03-30 07:10:13 +00003604 ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003605fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003606rm -f core conftest.err conftest.$ac_objext \
3607 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003608LIBS=$ac_check_lib_save_LIBS
3609fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5
3611$as_echo "$ac_cv_lib_wsock32_puts" >&6; }
3612if test "x$ac_cv_lib_wsock32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003613 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003614#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003615_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003616
3617 LIBS="-lwsock32 $LIBS"
3618
3619fi
3620
Benny Prijono28d3c562012-03-30 07:10:13 +00003621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5
3622$as_echo_n "checking for puts in -lws2_32... " >&6; }
3623if test "${ac_cv_lib_ws2_32_puts+set}" = set; then :
3624 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003625else
3626 ac_check_lib_save_LIBS=$LIBS
3627LIBS="-lws2_32 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003629/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003630
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003631/* Override any GCC internal prototype to avoid an error.
3632 Use char because int might match the return type of a GCC
3633 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003634#ifdef __cplusplus
3635extern "C"
3636#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003637char puts ();
3638int
3639main ()
3640{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003641return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003642 ;
3643 return 0;
3644}
3645_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003646if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003647 ac_cv_lib_ws2_32_puts=yes
3648else
Benny Prijono28d3c562012-03-30 07:10:13 +00003649 ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003650fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003651rm -f core conftest.err conftest.$ac_objext \
3652 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003653LIBS=$ac_check_lib_save_LIBS
3654fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5
3656$as_echo "$ac_cv_lib_ws2_32_puts" >&6; }
3657if test "x$ac_cv_lib_ws2_32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003658 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003659#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003660_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003661
3662 LIBS="-lws2_32 $LIBS"
3663
3664fi
3665
Benny Prijono28d3c562012-03-30 07:10:13 +00003666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5
3667$as_echo_n "checking for puts in -lole32... " >&6; }
3668if test "${ac_cv_lib_ole32_puts+set}" = set; then :
3669 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003670else
3671 ac_check_lib_save_LIBS=$LIBS
3672LIBS="-lole32 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003674/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003675
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003676/* Override any GCC internal prototype to avoid an error.
3677 Use char because int might match the return type of a GCC
3678 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003679#ifdef __cplusplus
3680extern "C"
3681#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003682char puts ();
3683int
3684main ()
3685{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003686return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003687 ;
3688 return 0;
3689}
3690_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003691if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003692 ac_cv_lib_ole32_puts=yes
3693else
Benny Prijono28d3c562012-03-30 07:10:13 +00003694 ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003695fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003696rm -f core conftest.err conftest.$ac_objext \
3697 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003698LIBS=$ac_check_lib_save_LIBS
3699fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5
3701$as_echo "$ac_cv_lib_ole32_puts" >&6; }
3702if test "x$ac_cv_lib_ole32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003703 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003704#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003705_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003706
3707 LIBS="-lole32 $LIBS"
3708
3709fi
3710
Benny Prijono28d3c562012-03-30 07:10:13 +00003711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5
3712$as_echo_n "checking for puts in -lwinmm... " >&6; }
3713if test "${ac_cv_lib_winmm_puts+set}" = set; then :
3714 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003715else
3716 ac_check_lib_save_LIBS=$LIBS
3717LIBS="-lwinmm $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003719/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003720
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003721/* Override any GCC internal prototype to avoid an error.
3722 Use char because int might match the return type of a GCC
3723 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003724#ifdef __cplusplus
3725extern "C"
3726#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003727char puts ();
3728int
3729main ()
3730{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003731return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003732 ;
3733 return 0;
3734}
3735_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003736if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003737 ac_cv_lib_winmm_puts=yes
3738else
Benny Prijono28d3c562012-03-30 07:10:13 +00003739 ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003740fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003741rm -f core conftest.err conftest.$ac_objext \
3742 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003743LIBS=$ac_check_lib_save_LIBS
3744fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5
3746$as_echo "$ac_cv_lib_winmm_puts" >&6; }
3747if test "x$ac_cv_lib_winmm_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003748 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003749#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003750_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003751
3752 LIBS="-lwinmm $LIBS"
3753
3754fi
3755
Benny Prijono28d3c562012-03-30 07:10:13 +00003756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5
3757$as_echo_n "checking for puts in -lsocket... " >&6; }
3758if test "${ac_cv_lib_socket_puts+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003760else
3761 ac_check_lib_save_LIBS=$LIBS
3762LIBS="-lsocket $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003764/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003765
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003766/* Override any GCC internal prototype to avoid an error.
3767 Use char because int might match the return type of a GCC
3768 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003769#ifdef __cplusplus
3770extern "C"
3771#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003772char puts ();
3773int
3774main ()
3775{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003776return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003777 ;
3778 return 0;
3779}
3780_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003781if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003782 ac_cv_lib_socket_puts=yes
3783else
Benny Prijono28d3c562012-03-30 07:10:13 +00003784 ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003785fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003786rm -f core conftest.err conftest.$ac_objext \
3787 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003788LIBS=$ac_check_lib_save_LIBS
3789fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5
3791$as_echo "$ac_cv_lib_socket_puts" >&6; }
3792if test "x$ac_cv_lib_socket_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003793 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003794#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003795_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003796
3797 LIBS="-lsocket $LIBS"
3798
3799fi
3800
Benny Prijono28d3c562012-03-30 07:10:13 +00003801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5
3802$as_echo_n "checking for puts in -lrt... " >&6; }
3803if test "${ac_cv_lib_rt_puts+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003805else
3806 ac_check_lib_save_LIBS=$LIBS
3807LIBS="-lrt $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003809/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003810
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003811/* Override any GCC internal prototype to avoid an error.
3812 Use char because int might match the return type of a GCC
3813 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003814#ifdef __cplusplus
3815extern "C"
3816#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003817char puts ();
3818int
3819main ()
3820{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003821return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003822 ;
3823 return 0;
3824}
3825_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003826if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003827 ac_cv_lib_rt_puts=yes
3828else
Benny Prijono28d3c562012-03-30 07:10:13 +00003829 ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003830fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003831rm -f core conftest.err conftest.$ac_objext \
3832 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003833LIBS=$ac_check_lib_save_LIBS
3834fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5
3836$as_echo "$ac_cv_lib_rt_puts" >&6; }
3837if test "x$ac_cv_lib_rt_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003838 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003839#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003840_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003841
3842 LIBS="-lrt $LIBS"
3843
3844fi
3845
Benny Prijono28d3c562012-03-30 07:10:13 +00003846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5
3847$as_echo_n "checking for puts in -lnsl... " >&6; }
3848if test "${ac_cv_lib_nsl_puts+set}" = set; then :
3849 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003850else
3851 ac_check_lib_save_LIBS=$LIBS
3852LIBS="-lnsl $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003854/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003855
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003856/* Override any GCC internal prototype to avoid an error.
3857 Use char because int might match the return type of a GCC
3858 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003859#ifdef __cplusplus
3860extern "C"
3861#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003862char puts ();
3863int
3864main ()
3865{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003866return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003867 ;
3868 return 0;
3869}
3870_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003871if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003872 ac_cv_lib_nsl_puts=yes
3873else
Benny Prijono28d3c562012-03-30 07:10:13 +00003874 ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003875fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003876rm -f core conftest.err conftest.$ac_objext \
3877 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003878LIBS=$ac_check_lib_save_LIBS
3879fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5
3881$as_echo "$ac_cv_lib_nsl_puts" >&6; }
3882if test "x$ac_cv_lib_nsl_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003883 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003884#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003885_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003886
3887 LIBS="-lnsl $LIBS"
3888
3889fi
3890
Benny Prijono28d3c562012-03-30 07:10:13 +00003891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3892$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3893if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
3894 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003895else
3896 ac_check_lib_save_LIBS=$LIBS
3897LIBS="-luuid $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003899/* end confdefs.h. */
3900
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003901/* Override any GCC internal prototype to avoid an error.
3902 Use char because int might match the return type of a GCC
3903 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003904#ifdef __cplusplus
3905extern "C"
3906#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003907char uuid_generate ();
3908int
3909main ()
3910{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003911return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003912 ;
3913 return 0;
3914}
3915_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003916if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003917 ac_cv_lib_uuid_uuid_generate=yes
3918else
Benny Prijono28d3c562012-03-30 07:10:13 +00003919 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003920fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003921rm -f core conftest.err conftest.$ac_objext \
3922 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003923LIBS=$ac_check_lib_save_LIBS
3924fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3926$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
3927if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003928 cat >>confdefs.h <<_ACEOF
3929#define HAVE_LIBUUID 1
3930_ACEOF
3931
3932 LIBS="-luuid $LIBS"
3933
3934fi
3935
Benny Prijono28d3c562012-03-30 07:10:13 +00003936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3937$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3938if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
3939 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003940else
3941 ac_check_lib_save_LIBS=$LIBS
3942LIBS="-luuid $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003944/* end confdefs.h. */
3945
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003946/* Override any GCC internal prototype to avoid an error.
3947 Use char because int might match the return type of a GCC
3948 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003949#ifdef __cplusplus
3950extern "C"
3951#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003952char uuid_generate ();
3953int
3954main ()
3955{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003956return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003957 ;
3958 return 0;
3959}
3960_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003961if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003962 ac_cv_lib_uuid_uuid_generate=yes
3963else
Benny Prijono28d3c562012-03-30 07:10:13 +00003964 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003965fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003966rm -f core conftest.err conftest.$ac_objext \
3967 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003968LIBS=$ac_check_lib_save_LIBS
3969fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3971$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
3972if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003973 ac_has_uuid_lib=1
3974fi
3975
3976
Benny Prijono28d3c562012-03-30 07:10:13 +00003977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5
3978$as_echo "Setting PJ_M_NAME to $target_cpu" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003979cat >>confdefs.h <<_ACEOF
3980#define PJ_M_NAME "$target_cpu"
3981_ACEOF
3982
3983
Benny Prijono28d3c562012-03-30 07:10:13 +00003984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5
3985$as_echo_n "checking memory alignment... " >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003986case $target in
Benny Prijonob18e9502010-05-19 05:51:38 +00003987 sparc64-* | ia64-* | x86_64-* )
Benny Prijono28d3c562012-03-30 07:10:13 +00003988 $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00003989
Benny Prijono28d3c562012-03-30 07:10:13 +00003990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5
3991$as_echo "8 bytes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003992 ;;
3993 * )
Benny Prijono28d3c562012-03-30 07:10:13 +00003994 $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00003995
Benny Prijono28d3c562012-03-30 07:10:13 +00003996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5
3997$as_echo "4 bytes (default)" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003998 ;;
3999esac
4000
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004001
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004002ac_ext=c
4003ac_cpp='$CPP $CPPFLAGS'
4004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijono28d3c562012-03-30 07:10:13 +00004007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4008$as_echo_n "checking how to run the C preprocessor... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004009# On Suns, sometimes $CPP names a directory.
4010if test -n "$CPP" && test -d "$CPP"; then
4011 CPP=
4012fi
4013if test -z "$CPP"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00004014 if test "${ac_cv_prog_CPP+set}" = set; then :
4015 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004016else
4017 # Double quotes because CPP needs to be expanded
4018 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4019 do
4020 ac_preproc_ok=false
4021for ac_c_preproc_warn_flag in '' yes
4022do
4023 # Use a header file that comes with gcc, so configuring glibc
4024 # with a fresh cross-compiler works.
4025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4026 # <limits.h> exists even on freestanding compilers.
4027 # On the NeXT, cc -E runs the code through the compiler's parser,
4028 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijono28d3c562012-03-30 07:10:13 +00004029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004030/* end confdefs.h. */
4031#ifdef __STDC__
4032# include <limits.h>
4033#else
4034# include <assert.h>
4035#endif
4036 Syntax error
4037_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004038if ac_fn_c_try_cpp "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00004039
Benny Prijono28d3c562012-03-30 07:10:13 +00004040else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004041 # Broken: fails on valid input.
4042continue
4043fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004044rm -f conftest.err conftest.$ac_ext
4045
4046 # OK, works on sane cases. Now check whether nonexistent headers
4047 # can be detected and how.
Benny Prijono28d3c562012-03-30 07:10:13 +00004048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004049/* end confdefs.h. */
4050#include <ac_nonexistent.h>
4051_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004052if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004053 # Broken: success on invalid input.
4054continue
4055else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004056 # Passes both tests.
4057ac_preproc_ok=:
4058break
4059fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004060rm -f conftest.err conftest.$ac_ext
4061
4062done
4063# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4064rm -f conftest.err conftest.$ac_ext
Benny Prijono28d3c562012-03-30 07:10:13 +00004065if $ac_preproc_ok; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004066 break
4067fi
4068
4069 done
4070 ac_cv_prog_CPP=$CPP
4071
4072fi
4073 CPP=$ac_cv_prog_CPP
4074else
4075 ac_cv_prog_CPP=$CPP
4076fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4078$as_echo "$CPP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004079ac_preproc_ok=false
4080for ac_c_preproc_warn_flag in '' yes
4081do
4082 # Use a header file that comes with gcc, so configuring glibc
4083 # with a fresh cross-compiler works.
4084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4085 # <limits.h> exists even on freestanding compilers.
4086 # On the NeXT, cc -E runs the code through the compiler's parser,
4087 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijono28d3c562012-03-30 07:10:13 +00004088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004089/* end confdefs.h. */
4090#ifdef __STDC__
4091# include <limits.h>
4092#else
4093# include <assert.h>
4094#endif
4095 Syntax error
4096_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004097if ac_fn_c_try_cpp "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00004098
Benny Prijono28d3c562012-03-30 07:10:13 +00004099else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004100 # Broken: fails on valid input.
4101continue
4102fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004103rm -f conftest.err conftest.$ac_ext
4104
4105 # OK, works on sane cases. Now check whether nonexistent headers
4106 # can be detected and how.
Benny Prijono28d3c562012-03-30 07:10:13 +00004107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004108/* end confdefs.h. */
4109#include <ac_nonexistent.h>
4110_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004111if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004112 # Broken: success on invalid input.
4113continue
4114else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004115 # Passes both tests.
4116ac_preproc_ok=:
4117break
4118fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004119rm -f conftest.err conftest.$ac_ext
4120
4121done
4122# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4123rm -f conftest.err conftest.$ac_ext
Benny Prijono28d3c562012-03-30 07:10:13 +00004124if $ac_preproc_ok; then :
4125
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004126else
Benny Prijono28d3c562012-03-30 07:10:13 +00004127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4129as_fn_error "C preprocessor \"$CPP\" fails sanity check
4130See \`config.log' for more details." "$LINENO" 5; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004131fi
4132
4133ac_ext=c
4134ac_cpp='$CPP $CPPFLAGS'
4135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138
4139
Benny Prijono28d3c562012-03-30 07:10:13 +00004140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4141$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4142if test "${ac_cv_path_GREP+set}" = set; then :
4143 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004144else
Benny Prijono28d3c562012-03-30 07:10:13 +00004145 if test -z "$GREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004146 ac_path_GREP_found=false
Benny Prijono28d3c562012-03-30 07:10:13 +00004147 # Loop through the user's path and test for each of PROGNAME-LIST
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004149for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4150do
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00004153 for ac_prog in grep ggrep; do
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4156 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4157# Check for GNU ac_path_GREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004158 # Check for GNU $ac_path_GREP
4159case `"$ac_path_GREP" --version 2>&1` in
4160*GNU*)
4161 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4162*)
4163 ac_count=0
Benny Prijono28d3c562012-03-30 07:10:13 +00004164 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004165 while :
4166 do
4167 cat "conftest.in" "conftest.in" >"conftest.tmp"
4168 mv "conftest.tmp" "conftest.in"
4169 cp "conftest.in" "conftest.nl"
Benny Prijono28d3c562012-03-30 07:10:13 +00004170 $as_echo 'GREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004171 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijono28d3c562012-03-30 07:10:13 +00004173 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004174 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4175 # Best one so far, save it but keep looking for a better one
4176 ac_cv_path_GREP="$ac_path_GREP"
4177 ac_path_GREP_max=$ac_count
4178 fi
4179 # 10*(2^10) chars as input seems more than enough
4180 test $ac_count -gt 10 && break
4181 done
4182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4183esac
4184
Benny Prijono28d3c562012-03-30 07:10:13 +00004185 $ac_path_GREP_found && break 3
4186 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004187 done
Benny Prijono28d3c562012-03-30 07:10:13 +00004188 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004189IFS=$as_save_IFS
Benny Prijono28d3c562012-03-30 07:10:13 +00004190 if test -z "$ac_cv_path_GREP"; then
4191 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4192 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004193else
4194 ac_cv_path_GREP=$GREP
4195fi
4196
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004197fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4199$as_echo "$ac_cv_path_GREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004200 GREP="$ac_cv_path_GREP"
4201
4202
Benny Prijono28d3c562012-03-30 07:10:13 +00004203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4204$as_echo_n "checking for egrep... " >&6; }
4205if test "${ac_cv_path_EGREP+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004207else
4208 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4209 then ac_cv_path_EGREP="$GREP -E"
4210 else
Benny Prijono28d3c562012-03-30 07:10:13 +00004211 if test -z "$EGREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004212 ac_path_EGREP_found=false
Benny Prijono28d3c562012-03-30 07:10:13 +00004213 # Loop through the user's path and test for each of PROGNAME-LIST
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004215for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4216do
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00004219 for ac_prog in egrep; do
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4222 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4223# Check for GNU ac_path_EGREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004224 # Check for GNU $ac_path_EGREP
4225case `"$ac_path_EGREP" --version 2>&1` in
4226*GNU*)
4227 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4228*)
4229 ac_count=0
Benny Prijono28d3c562012-03-30 07:10:13 +00004230 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004231 while :
4232 do
4233 cat "conftest.in" "conftest.in" >"conftest.tmp"
4234 mv "conftest.tmp" "conftest.in"
4235 cp "conftest.in" "conftest.nl"
Benny Prijono28d3c562012-03-30 07:10:13 +00004236 $as_echo 'EGREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004237 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijono28d3c562012-03-30 07:10:13 +00004239 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004240 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4241 # Best one so far, save it but keep looking for a better one
4242 ac_cv_path_EGREP="$ac_path_EGREP"
4243 ac_path_EGREP_max=$ac_count
4244 fi
4245 # 10*(2^10) chars as input seems more than enough
4246 test $ac_count -gt 10 && break
4247 done
4248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4249esac
4250
Benny Prijono28d3c562012-03-30 07:10:13 +00004251 $ac_path_EGREP_found && break 3
4252 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004253 done
Benny Prijono28d3c562012-03-30 07:10:13 +00004254 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004255IFS=$as_save_IFS
Benny Prijono28d3c562012-03-30 07:10:13 +00004256 if test -z "$ac_cv_path_EGREP"; then
4257 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4258 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004259else
4260 ac_cv_path_EGREP=$EGREP
4261fi
4262
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004263 fi
4264fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4266$as_echo "$ac_cv_path_EGREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004267 EGREP="$ac_cv_path_EGREP"
4268
4269
Benny Prijono28d3c562012-03-30 07:10:13 +00004270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4271$as_echo_n "checking for ANSI C header files... " >&6; }
4272if test "${ac_cv_header_stdc+set}" = set; then :
4273 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004274else
Benny Prijono28d3c562012-03-30 07:10:13 +00004275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004276/* end confdefs.h. */
4277#include <stdlib.h>
4278#include <stdarg.h>
4279#include <string.h>
4280#include <float.h>
4281
4282int
4283main ()
4284{
4285
4286 ;
4287 return 0;
4288}
4289_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004290if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004291 ac_cv_header_stdc=yes
4292else
Benny Prijono28d3c562012-03-30 07:10:13 +00004293 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004294fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296
4297if test $ac_cv_header_stdc = yes; then
4298 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Benny Prijono28d3c562012-03-30 07:10:13 +00004299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004300/* end confdefs.h. */
4301#include <string.h>
4302
4303_ACEOF
4304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijono28d3c562012-03-30 07:10:13 +00004305 $EGREP "memchr" >/dev/null 2>&1; then :
4306
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004307else
4308 ac_cv_header_stdc=no
4309fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004310rm -f conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004311
4312fi
4313
4314if test $ac_cv_header_stdc = yes; then
4315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Benny Prijono28d3c562012-03-30 07:10:13 +00004316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004317/* end confdefs.h. */
4318#include <stdlib.h>
4319
4320_ACEOF
4321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijono28d3c562012-03-30 07:10:13 +00004322 $EGREP "free" >/dev/null 2>&1; then :
4323
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004324else
4325 ac_cv_header_stdc=no
4326fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004327rm -f conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004328
4329fi
4330
4331if test $ac_cv_header_stdc = yes; then
4332 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Benny Prijono28d3c562012-03-30 07:10:13 +00004333 if test "$cross_compiling" = yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004334 :
4335else
Benny Prijono28d3c562012-03-30 07:10:13 +00004336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004337/* end confdefs.h. */
4338#include <ctype.h>
4339#include <stdlib.h>
4340#if ((' ' & 0x0FF) == 0x020)
4341# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4342# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4343#else
4344# define ISLOWER(c) \
4345 (('a' <= (c) && (c) <= 'i') \
4346 || ('j' <= (c) && (c) <= 'r') \
4347 || ('s' <= (c) && (c) <= 'z'))
4348# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4349#endif
4350
4351#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4352int
4353main ()
4354{
4355 int i;
4356 for (i = 0; i < 256; i++)
4357 if (XOR (islower (i), ISLOWER (i))
4358 || toupper (i) != TOUPPER (i))
4359 return 2;
4360 return 0;
4361}
4362_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004363if ac_fn_c_try_run "$LINENO"; then :
4364
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004365else
Benny Prijono28d3c562012-03-30 07:10:13 +00004366 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004367fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004368rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4369 conftest.$ac_objext conftest.beam conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004370fi
4371
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004372fi
4373fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4375$as_echo "$ac_cv_header_stdc" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004376if test $ac_cv_header_stdc = yes; then
4377
Benny Prijono28d3c562012-03-30 07:10:13 +00004378$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004379
4380fi
4381
4382# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004383for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4384 inttypes.h stdint.h unistd.h
Benny Prijono28d3c562012-03-30 07:10:13 +00004385do :
4386 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4387ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4388"
4389eval as_val=\$$as_ac_Header
4390 if test "x$as_val" = x""yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004391 cat >>confdefs.h <<_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004392#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004393_ACEOF
4394
4395fi
4396
4397done
4398
4399
Benny Prijono28d3c562012-03-30 07:10:13 +00004400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4401$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4402if test "${ac_cv_c_bigendian+set}" = set; then :
4403 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004404else
Benny Prijono28d3c562012-03-30 07:10:13 +00004405 ac_cv_c_bigendian=unknown
4406 # See if we're dealing with a universal compiler.
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408/* end confdefs.h. */
4409#ifndef __APPLE_CC__
4410 not a universal capable compiler
4411 #endif
4412 typedef int dummy;
4413
Benny Prijonod5233702010-01-13 13:09:45 +00004414_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004415if ac_fn_c_try_compile "$LINENO"; then :
4416
4417 # Check for potential -arch flags. It is not universal unless
4418 # there are at least two -arch flags with different values.
4419 ac_arch=
4420 ac_prev=
4421 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4422 if test -n "$ac_prev"; then
4423 case $ac_word in
4424 i?86 | x86_64 | ppc | ppc64)
4425 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4426 ac_arch=$ac_word
4427 else
4428 ac_cv_c_bigendian=universal
4429 break
4430 fi
4431 ;;
4432 esac
4433 ac_prev=
4434 elif test "x$ac_word" = "x-arch"; then
4435 ac_prev=arch
4436 fi
4437 done
4438fi
4439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4440 if test $ac_cv_c_bigendian = unknown; then
4441 # See if sys/param.h defines the BYTE_ORDER macro.
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004443/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004444#include <sys/types.h>
Benny Prijono28d3c562012-03-30 07:10:13 +00004445 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004446
4447int
4448main ()
4449{
Benny Prijono28d3c562012-03-30 07:10:13 +00004450#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4451 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4452 && LITTLE_ENDIAN)
4453 bogus endian macros
4454 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004455
4456 ;
4457 return 0;
4458}
4459_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004460if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004461 # It does; now see whether it defined to BIG_ENDIAN or not.
Benny Prijono28d3c562012-03-30 07:10:13 +00004462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004463/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004464#include <sys/types.h>
Benny Prijono28d3c562012-03-30 07:10:13 +00004465 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004466
4467int
4468main ()
4469{
4470#if BYTE_ORDER != BIG_ENDIAN
Benny Prijono28d3c562012-03-30 07:10:13 +00004471 not big endian
4472 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004473
4474 ;
4475 return 0;
4476}
4477_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004478if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004479 ac_cv_c_bigendian=yes
4480else
Benny Prijono28d3c562012-03-30 07:10:13 +00004481 ac_cv_c_bigendian=no
Benny Prijono36d32492011-12-28 08:42:23 +00004482fi
Benny Prijono36d32492011-12-28 08:42:23 +00004483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono28d3c562012-03-30 07:10:13 +00004484fi
4485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486 fi
4487 if test $ac_cv_c_bigendian = unknown; then
4488 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono36d32492011-12-28 08:42:23 +00004490/* end confdefs.h. */
Benny Prijono28d3c562012-03-30 07:10:13 +00004491#include <limits.h>
4492
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004493int
4494main ()
4495{
Benny Prijono28d3c562012-03-30 07:10:13 +00004496#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4497 bogus endian macros
4498 #endif
4499
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004500 ;
4501 return 0;
4502}
4503_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004504if ac_fn_c_try_compile "$LINENO"; then :
4505 # It does; now see whether it defined to _BIG_ENDIAN or not.
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507/* end confdefs.h. */
4508#include <limits.h>
4509
4510int
4511main ()
4512{
4513#ifndef _BIG_ENDIAN
4514 not big endian
4515 #endif
4516
4517 ;
4518 return 0;
4519}
4520_ACEOF
4521if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004522 ac_cv_c_bigendian=yes
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004523else
Benny Prijono28d3c562012-03-30 07:10:13 +00004524 ac_cv_c_bigendian=no
Benny Prijonoe1105232011-10-26 06:49:34 +00004525fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527fi
4528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529 fi
4530 if test $ac_cv_c_bigendian = unknown; then
4531 # Compile a test program.
4532 if test "$cross_compiling" = yes; then :
4533 # Try to guess by grepping values from an object file.
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535/* end confdefs.h. */
4536short int ascii_mm[] =
4537 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4538 short int ascii_ii[] =
4539 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4540 int use_ascii (int i) {
4541 return ascii_mm[i] + ascii_ii[i];
4542 }
4543 short int ebcdic_ii[] =
4544 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4545 short int ebcdic_mm[] =
4546 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4547 int use_ebcdic (int i) {
4548 return ebcdic_mm[i] + ebcdic_ii[i];
4549 }
4550 extern int foo;
Benny Prijono36d32492011-12-28 08:42:23 +00004551
Benny Prijono28d3c562012-03-30 07:10:13 +00004552int
4553main ()
4554{
4555return use_ascii (foo) == use_ebcdic (foo);
4556 ;
4557 return 0;
4558}
4559_ACEOF
4560if ac_fn_c_try_compile "$LINENO"; then :
4561 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4562 ac_cv_c_bigendian=yes
4563 fi
4564 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4565 if test "$ac_cv_c_bigendian" = unknown; then
4566 ac_cv_c_bigendian=no
4567 else
4568 # finding both strings is unlikely to happen, but who knows?
4569 ac_cv_c_bigendian=unknown
4570 fi
4571 fi
4572fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004574else
Benny Prijono28d3c562012-03-30 07:10:13 +00004575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004576/* end confdefs.h. */
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004577$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004578int
4579main ()
4580{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004581
Benny Prijono28d3c562012-03-30 07:10:13 +00004582 /* Are we little or big endian? From Harbison&Steele. */
4583 union
4584 {
4585 long int l;
4586 char c[sizeof (long int)];
4587 } u;
4588 u.l = 1;
4589 return u.c[sizeof (long int) - 1] == 1;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004590
4591 ;
4592 return 0;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004593}
4594_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004595if ac_fn_c_try_run "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004596 ac_cv_c_bigendian=no
4597else
Benny Prijono28d3c562012-03-30 07:10:13 +00004598 ac_cv_c_bigendian=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004599fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004600rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4601 conftest.$ac_objext conftest.beam conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004602fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004603
Benny Prijono28d3c562012-03-30 07:10:13 +00004604 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004605fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4607$as_echo "$ac_cv_c_bigendian" >&6; }
4608 case $ac_cv_c_bigendian in #(
4609 yes)
4610 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4611;; #(
4612 no)
4613 ;; #(
4614 universal)
Benny Prijonod5233702010-01-13 13:09:45 +00004615
Benny Prijono28d3c562012-03-30 07:10:13 +00004616$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Benny Prijonod5233702010-01-13 13:09:45 +00004617
Benny Prijono28d3c562012-03-30 07:10:13 +00004618 ;; #(
4619 *)
4620 as_fn_error "unknown endianness
4621 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4622 esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004623
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004624
Sauw Minge7dbbc82011-10-24 09:28:13 +00004625if test "x$ac_cv_c_bigendian" = "xyes"; then
4626 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0"
4627else
4628 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1"
4629fi
4630
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004631case $target in
4632 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00004633 $as_echo "#define PJ_WIN32 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004634
Benny Prijono28d3c562012-03-30 07:10:13 +00004635 $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004636
Benny Prijono28d3c562012-03-30 07:10:13 +00004637 $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004638
4639 ;;
4640 *darwin*)
Benny Prijono28d3c562012-03-30 07:10:13 +00004641 $as_echo "#define PJ_DARWINOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004642
4643 ;;
4644 *linux*)
Benny Prijono28d3c562012-03-30 07:10:13 +00004645 $as_echo "#define PJ_LINUX 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004646
4647 ;;
4648 *rtems*)
Benny Prijono28d3c562012-03-30 07:10:13 +00004649 $as_echo "#define PJ_RTEMS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004650
4651 ;;
4652 *sunos* | *solaris* )
Benny Prijono28d3c562012-03-30 07:10:13 +00004653 $as_echo "#define PJ_SUNOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004654
4655 ;;
4656 *)
4657 ;;
4658esac
4659
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004660
4661
4662
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004663# Check whether --enable-floating-point was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00004664if test "${enable_floating_point+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004665 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00004666 $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004667
Benny Prijono28d3c562012-03-30 07:10:13 +00004668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5
4669$as_echo "Checking if floating point is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004670 fi
4671else
4672
Benny Prijono28d3c562012-03-30 07:10:13 +00004673 $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004674
Benny Prijono28d3c562012-03-30 07:10:13 +00004675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5
4676$as_echo "Checking if floating point is disabled... no" >&6; }
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
4678$as_echo_n "checking for fmod in -lm... " >&6; }
4679if test "${ac_cv_lib_m_fmod+set}" = set; then :
4680 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004681else
4682 ac_check_lib_save_LIBS=$LIBS
4683LIBS="-lm $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00004684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004685/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004686
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004687/* Override any GCC internal prototype to avoid an error.
4688 Use char because int might match the return type of a GCC
4689 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004690#ifdef __cplusplus
4691extern "C"
4692#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004693char fmod ();
4694int
4695main ()
4696{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004697return fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004698 ;
4699 return 0;
4700}
4701_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004702if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004703 ac_cv_lib_m_fmod=yes
4704else
Benny Prijono28d3c562012-03-30 07:10:13 +00004705 ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004706fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004707rm -f core conftest.err conftest.$ac_objext \
4708 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004709LIBS=$ac_check_lib_save_LIBS
4710fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
4712$as_echo "$ac_cv_lib_m_fmod" >&6; }
4713if test "x$ac_cv_lib_m_fmod" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004714 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004715#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004716_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004717
4718 LIBS="-lm $LIBS"
4719
4720fi
4721
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004722
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004723fi
4724
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004725
4726
Benny Prijono28d3c562012-03-30 07:10:13 +00004727ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
4728if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
4729 $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004730
4731fi
4732
4733
Benny Prijono28d3c562012-03-30 07:10:13 +00004734ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
4735if test "x$ac_cv_header_assert_h" = x""yes; then :
4736 $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004737
4738fi
4739
4740
Benny Prijono28d3c562012-03-30 07:10:13 +00004741ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4742if test "x$ac_cv_header_ctype_h" = x""yes; then :
4743 $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004744
4745fi
4746
4747
4748
4749case $target in
4750 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00004751 $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004752
4753 ;;
4754 *)
Benny Prijono28d3c562012-03-30 07:10:13 +00004755 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4756if test "x$ac_cv_header_errno_h" = x""yes; then :
4757 $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004758
4759fi
4760
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004761
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004762 ;;
4763esac
4764
Benny Prijono28d3c562012-03-30 07:10:13 +00004765ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4766if test "x$ac_cv_header_fcntl_h" = x""yes; then :
4767 $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h
Benny Prijono1d481ab2008-01-24 15:27:30 +00004768
4769fi
4770
4771
Benny Prijono28d3c562012-03-30 07:10:13 +00004772ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default"
4773if test "x$ac_cv_header_linux_socket_h" = x""yes; then :
4774 $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004775
4776fi
4777
4778
Benny Prijono28d3c562012-03-30 07:10:13 +00004779ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
4780if test "x$ac_cv_header_limits_h" = x""yes; then :
4781 $as_echo "#define PJ_HAS_LIMITS_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004782
4783fi
4784
4785
Benny Prijono28d3c562012-03-30 07:10:13 +00004786ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4787if test "x$ac_cv_header_malloc_h" = x""yes; then :
4788 $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004789
4790fi
4791
4792
Benny Prijono28d3c562012-03-30 07:10:13 +00004793ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
4794if test "x$ac_cv_header_netdb_h" = x""yes; then :
4795 $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h
Benny Prijono37fc9de2008-08-04 14:45:02 +00004796
4797fi
4798
4799
Benny Prijono28d3c562012-03-30 07:10:13 +00004800ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
4801if test "x$ac_cv_header_netinet_in_systm_h" = x""yes; then :
4802 $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004803
4804fi
4805
4806
Benny Prijono28d3c562012-03-30 07:10:13 +00004807ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
4808if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
4809 $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h
Benny Prijonoe3e65802011-02-28 07:44:19 +00004810
4811fi
4812
4813
Benny Prijono28d3c562012-03-30 07:10:13 +00004814ac_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 +00004815 # include <sys/types.h>
4816 #endif
4817 #if PJ_HAS_NETINET_IN_SYSTM_H
Benny Prijono37fc9de2008-08-04 14:45:02 +00004818 # include <netinet/in_systm.h>
4819 #endif
Benny Prijonod5233702010-01-13 13:09:45 +00004820 #if PJ_HAS_NETINET_IN_H
4821 # include <netinet/in.h>
4822 #endif
Benny Prijono37fc9de2008-08-04 14:45:02 +00004823
Benny Prijono28d3c562012-03-30 07:10:13 +00004824"
4825if test "x$ac_cv_header_netinet_ip_h" = x""yes; then :
4826 $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004827
Benny Prijono36d32492011-12-28 08:42:23 +00004828fi
4829
Sauw Minge7dbbc82011-10-24 09:28:13 +00004830
Benny Prijono28d3c562012-03-30 07:10:13 +00004831ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
4832if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then :
4833 $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004834
Benny Prijono36d32492011-12-28 08:42:23 +00004835fi
4836
Benny Prijono36d32492011-12-28 08:42:23 +00004837
Benny Prijono28d3c562012-03-30 07:10:13 +00004838ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
4839if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
4840 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
4841if test "x$ac_cv_func_getifaddrs" = x""yes; then :
4842 $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004843
4844fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004845
Sauw Minge7dbbc82011-10-24 09:28:13 +00004846fi
4847
Sauw Minge7dbbc82011-10-24 09:28:13 +00004848
Benny Prijono28d3c562012-03-30 07:10:13 +00004849ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
4850if test "x$ac_cv_header_semaphore_h" = x""yes; then :
4851 $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004852
Benny Prijono36d32492011-12-28 08:42:23 +00004853fi
4854
Benny Prijono36d32492011-12-28 08:42:23 +00004855
Benny Prijono28d3c562012-03-30 07:10:13 +00004856ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
4857if test "x$ac_cv_header_setjmp_h" = x""yes; then :
4858 $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004859
Benny Prijono36d32492011-12-28 08:42:23 +00004860fi
4861
Benny Prijono36d32492011-12-28 08:42:23 +00004862
Benny Prijono28d3c562012-03-30 07:10:13 +00004863ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
4864if test "x$ac_cv_header_stdarg_h" = x""yes; then :
4865 $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004866
4867fi
Benny Prijono36d32492011-12-28 08:42:23 +00004868
Benny Prijono36d32492011-12-28 08:42:23 +00004869
Benny Prijono28d3c562012-03-30 07:10:13 +00004870ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
4871if test "x$ac_cv_header_stddef_h" = x""yes; then :
4872 $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004873
Benny Prijono36d32492011-12-28 08:42:23 +00004874fi
4875
Sauw Minge7dbbc82011-10-24 09:28:13 +00004876
Benny Prijono28d3c562012-03-30 07:10:13 +00004877ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4878if test "x$ac_cv_header_stdio_h" = x""yes; then :
4879 $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004880
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004881fi
4882
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004883
Benny Prijono28d3c562012-03-30 07:10:13 +00004884ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4885if test "x$ac_cv_header_stdint_h" = x""yes; then :
4886 $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004887
Benny Prijono36d32492011-12-28 08:42:23 +00004888fi
4889
Benny Prijono36d32492011-12-28 08:42:23 +00004890
Benny Prijono28d3c562012-03-30 07:10:13 +00004891ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4892if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4893 $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004894
Benny Prijono36d32492011-12-28 08:42:23 +00004895fi
4896
Benny Prijono36d32492011-12-28 08:42:23 +00004897
Benny Prijono28d3c562012-03-30 07:10:13 +00004898ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4899if test "x$ac_cv_header_string_h" = x""yes; then :
4900 $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004901
Sauw Minge7dbbc82011-10-24 09:28:13 +00004902fi
4903
Sauw Minge7dbbc82011-10-24 09:28:13 +00004904
Benny Prijono28d3c562012-03-30 07:10:13 +00004905ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4906if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
4907 $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004908
Benny Prijono36d32492011-12-28 08:42:23 +00004909fi
4910
Benny Prijono36d32492011-12-28 08:42:23 +00004911
Benny Prijono28d3c562012-03-30 07:10:13 +00004912ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
4913if test "x$ac_cv_header_sys_select_h" = x""yes; then :
4914 $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004915
Benny Prijono36d32492011-12-28 08:42:23 +00004916fi
4917
Benny Prijono36d32492011-12-28 08:42:23 +00004918
Benny Prijono28d3c562012-03-30 07:10:13 +00004919ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
4920if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
4921 $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004922
4923fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004924
Sauw Minge7dbbc82011-10-24 09:28:13 +00004925
Benny Prijono28d3c562012-03-30 07:10:13 +00004926ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
4927if test "x$ac_cv_header_sys_time_h" = x""yes; then :
4928 $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004929
Benny Prijono36d32492011-12-28 08:42:23 +00004930fi
Benny Prijono36d32492011-12-28 08:42:23 +00004931
Benny Prijono36d32492011-12-28 08:42:23 +00004932
Benny Prijono28d3c562012-03-30 07:10:13 +00004933ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
4934if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
4935 $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004936
Benny Prijono36d32492011-12-28 08:42:23 +00004937fi
4938
Benny Prijono36d32492011-12-28 08:42:23 +00004939
Benny Prijono28d3c562012-03-30 07:10:13 +00004940ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4941if test "x$ac_cv_header_sys_types_h" = x""yes; then :
4942 $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004943
Benny Prijono36d32492011-12-28 08:42:23 +00004944fi
Benny Prijono36d32492011-12-28 08:42:23 +00004945
Sauw Minge7dbbc82011-10-24 09:28:13 +00004946
Benny Prijono28d3c562012-03-30 07:10:13 +00004947ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
4948if test "x$ac_cv_header_sys_filio_h" = x""yes; then :
4949 $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004950
Benny Prijono36d32492011-12-28 08:42:23 +00004951fi
4952
Benny Prijono36d32492011-12-28 08:42:23 +00004953
Benny Prijono28d3c562012-03-30 07:10:13 +00004954ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
4955if test "x$ac_cv_header_sys_sockio_h" = x""yes; then :
4956 $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004957
Benny Prijono36d32492011-12-28 08:42:23 +00004958fi
4959
Benny Prijono36d32492011-12-28 08:42:23 +00004960
Benny Prijono28d3c562012-03-30 07:10:13 +00004961ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
4962if test "x$ac_cv_header_sys_utsname_h" = x""yes; then :
4963 $as_echo "#define PJ_HAS_SYS_UTSNAME_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004964
4965fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004966
Sauw Minge7dbbc82011-10-24 09:28:13 +00004967
Benny Prijono28d3c562012-03-30 07:10:13 +00004968ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
4969if test "x$ac_cv_header_time_h" = x""yes; then :
4970 $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004971
Benny Prijono36d32492011-12-28 08:42:23 +00004972fi
Benny Prijono36d32492011-12-28 08:42:23 +00004973
Benny Prijono36d32492011-12-28 08:42:23 +00004974
Benny Prijono28d3c562012-03-30 07:10:13 +00004975ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4976if test "x$ac_cv_header_unistd_h" = x""yes; then :
4977 $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004978
Benny Prijono36d32492011-12-28 08:42:23 +00004979fi
4980
Benny Prijono36d32492011-12-28 08:42:23 +00004981
Benny Prijono28d3c562012-03-30 07:10:13 +00004982ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
4983if test "x$ac_cv_header_winsock_h" = x""yes; then :
4984 $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004985
Benny Prijono36d32492011-12-28 08:42:23 +00004986fi
Benny Prijono36d32492011-12-28 08:42:23 +00004987
Sauw Ming68c14572011-07-20 03:00:48 +00004988
Benny Prijono28d3c562012-03-30 07:10:13 +00004989ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4990if test "x$ac_cv_header_winsock2_h" = x""yes; then :
4991 $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h
Sauw Ming68c14572011-07-20 03:00:48 +00004992
Benny Prijono36d32492011-12-28 08:42:23 +00004993fi
Benny Prijono36d32492011-12-28 08:42:23 +00004994
Benny Prijono36d32492011-12-28 08:42:23 +00004995
Benny Prijono28d3c562012-03-30 07:10:13 +00004996ac_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 +00004997 # include <winsock2.h>
4998 #elif PJ_HAS_WINSOCK_H
4999 # include <winsock.h>
5000 #endif
5001
Benny Prijono28d3c562012-03-30 07:10:13 +00005002"
5003if test "x$ac_cv_header_mswsock_h" = x""yes; then :
5004 $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h
Benny Prijonoa9948e62008-03-25 14:03:01 +00005005
5006fi
5007
5008
Benny Prijono28d3c562012-03-30 07:10:13 +00005009ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
5010if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
5011 $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h
Benny Prijonoe2746132008-09-27 13:16:35 +00005012
5013fi
5014
5015
Benny Prijono28d3c562012-03-30 07:10:13 +00005016ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
5017if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00005018 ac_has_uuid_h=1
5019fi
5020
5021
Benny Prijono28d3c562012-03-30 07:10:13 +00005022ac_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 +00005023 # include <sys/types.h>
5024 #endif
5025 #if PJ_HAS_SYS_SOCKET_H
5026
Benny Prijono188ba7e2008-03-25 13:53:16 +00005027 # include <sys/socket.h>
5028 #endif
5029
Benny Prijono28d3c562012-03-30 07:10:13 +00005030"
5031if test "x$ac_cv_header_net_if_h" = x""yes; then :
5032 $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h
Benny Prijono188ba7e2008-03-25 13:53:16 +00005033
5034fi
5035
Benny Prijono188ba7e2008-03-25 13:53:16 +00005036
Benny Prijono28d3c562012-03-30 07:10:13 +00005037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5
5038$as_echo "Setting PJ_OS_NAME to $target" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005039cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005040#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005041_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005042
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005043
Benny Prijono28d3c562012-03-30 07:10:13 +00005044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
5045$as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
5046$as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005047
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005048
Benny Prijono28d3c562012-03-30 07:10:13 +00005049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
5050$as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
5051$as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005052
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005053
Benny Prijono28d3c562012-03-30 07:10:13 +00005054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5
5055$as_echo "Setting PJ_HAS_MALLOC to 1" >&6; }
5056$as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005057
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005058
Benny Prijono28d3c562012-03-30 07:10:13 +00005059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
5060$as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
5061$as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005062
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005063
Benny Prijono28d3c562012-03-30 07:10:13 +00005064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
5065$as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
5066$as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005067
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005068
Benny Prijono28d3c562012-03-30 07:10:13 +00005069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5
5070$as_echo_n "checking if inet_aton() is available... " >&6; }
5071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005072/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005073#include <sys/types.h>
5074 #include <sys/socket.h>
5075 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005076int
5077main ()
5078{
5079inet_aton(0, 0);
5080 ;
5081 return 0;
5082}
5083_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005084if ac_fn_c_try_compile "$LINENO"; then :
5085 $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005086
Benny Prijono28d3c562012-03-30 07:10:13 +00005087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5088$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005089else
Benny Prijono28d3c562012-03-30 07:10:13 +00005090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005092fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5094
Benny Prijono28d3c562012-03-30 07:10:13 +00005095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5
5096$as_echo_n "checking if inet_pton() is available... " >&6; }
5097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005098/* end confdefs.h. */
5099#include <sys/types.h>
5100 #include <sys/socket.h>
5101 #include <arpa/inet.h>
5102int
5103main ()
5104{
5105inet_pton(0, 0, 0);
5106 ;
5107 return 0;
5108}
5109_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005110if ac_fn_c_try_compile "$LINENO"; then :
5111 $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005112
Benny Prijono28d3c562012-03-30 07:10:13 +00005113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5114$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005115else
Benny Prijono28d3c562012-03-30 07:10:13 +00005116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005118fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120
Benny Prijono28d3c562012-03-30 07:10:13 +00005121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5
5122$as_echo_n "checking if inet_ntop() is available... " >&6; }
5123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005124/* end confdefs.h. */
5125#include <sys/types.h>
5126 #include <sys/socket.h>
5127 #include <arpa/inet.h>
5128int
5129main ()
5130{
5131inet_ntop(0, 0, 0, 0);
5132 ;
5133 return 0;
5134}
5135_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005136if ac_fn_c_try_compile "$LINENO"; then :
5137 $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005138
Benny Prijono28d3c562012-03-30 07:10:13 +00005139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5140$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005141else
Benny Prijono28d3c562012-03-30 07:10:13 +00005142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005144fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5146
Benny Prijono28d3c562012-03-30 07:10:13 +00005147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5
5148$as_echo_n "checking if getaddrinfo() is available... " >&6; }
5149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005150/* end confdefs.h. */
5151#include <sys/types.h>
5152 #include <sys/socket.h>
5153 #include <netdb.h>
5154int
5155main ()
5156{
5157getaddrinfo(0, 0, 0, 0);
5158 ;
5159 return 0;
5160}
5161_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005162if ac_fn_c_try_compile "$LINENO"; then :
5163 $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005164
Benny Prijono28d3c562012-03-30 07:10:13 +00005165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5166$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005167else
Benny Prijono28d3c562012-03-30 07:10:13 +00005168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005170fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172
Benny Prijono28d3c562012-03-30 07:10:13 +00005173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5
5174$as_echo_n "checking if sockaddr_in has sin_len member... " >&6; }
5175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005176/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005177#include <sys/types.h>
5178 #include <sys/socket.h>
5179 #include <netinet/in.h>
5180 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005181int
5182main ()
5183{
5184struct sockaddr_in a; a.sin_len=0;
5185 ;
5186 return 0;
5187}
5188_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005189if ac_fn_c_try_compile "$LINENO"; then :
5190 $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005191
Benny Prijono28d3c562012-03-30 07:10:13 +00005192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5193$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005194else
Benny Prijono28d3c562012-03-30 07:10:13 +00005195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005197fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5199
Benny Prijono28d3c562012-03-30 07:10:13 +00005200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5
5201$as_echo_n "checking if socklen_t is available... " >&6; }
5202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005203/* end confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +00005204#include <sys/types.h>
5205 #include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00005206int
5207main ()
5208{
5209socklen_t xxx = 0;
5210 ;
5211 return 0;
5212}
5213_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005214if ac_fn_c_try_compile "$LINENO"; then :
5215 $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h
Benny Prijono30f85c62006-09-09 20:05:33 +00005216
Benny Prijono28d3c562012-03-30 07:10:13 +00005217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5218$as_echo "yes" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005219else
Benny Prijono28d3c562012-03-30 07:10:13 +00005220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221$as_echo "no" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005222fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5224
Benny Prijono28d3c562012-03-30 07:10:13 +00005225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5
5226$as_echo_n "checking if SO_ERROR is available... " >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005227case $target in
5228 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00005229 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005230
Benny Prijono28d3c562012-03-30 07:10:13 +00005231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5232$as_echo "yes" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005233 ;;
5234 *)
Benny Prijono28d3c562012-03-30 07:10:13 +00005235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005236/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005237#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005238 #include <sys/socket.h>
5239 #include <netinet/in.h>
5240 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005241int
5242main ()
5243{
5244int i=SO_ERROR;
5245 ;
5246 return 0;
5247}
5248_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005249if ac_fn_c_try_compile "$LINENO"; then :
5250 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005251
Benny Prijono28d3c562012-03-30 07:10:13 +00005252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5253$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005254else
Benny Prijono28d3c562012-03-30 07:10:13 +00005255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005257fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005259 ;;
5260esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005261
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005262
Benny Prijono28d3c562012-03-30 07:10:13 +00005263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5
5264$as_echo_n "checking if pthread_rwlock_t is available... " >&6; }
5265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005266/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005267#include <pthread.h>
5268int
5269main ()
5270{
5271pthread_rwlock_t *x;
5272 ;
5273 return 0;
5274}
5275_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005276if ac_fn_c_try_compile "$LINENO"; then :
5277 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005278
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005279 ac_rwmutex="yes"
Benny Prijono28d3c562012-03-30 07:10:13 +00005280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5281$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005282else
Benny Prijono28d3c562012-03-30 07:10:13 +00005283 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005284
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005285 ac_rwmutex="no"
Benny Prijono28d3c562012-03-30 07:10:13 +00005286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005288fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005290
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005291if test "$ac_rwmutex" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00005292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
5293$as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; }
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005295/* end confdefs.h. */
5296#define _POSIX_READER_WRITER_LOCKS
5297 #include <pthread.h>
5298int
5299main ()
5300{
5301pthread_rwlock_t *x;
5302 ;
5303 return 0;
5304}
5305_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005306if ac_fn_c_try_compile "$LINENO"; then :
5307 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005308
5309 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Benny Prijono28d3c562012-03-30 07:10:13 +00005310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5311$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005312else
Benny Prijono28d3c562012-03-30 07:10:13 +00005313 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005314
Benny Prijono28d3c562012-03-30 07:10:13 +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
5319fi
5320
Benny Prijono28d3c562012-03-30 07:10:13 +00005321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5
5322$as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; }
5323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005324/* end confdefs.h. */
5325#include <pthread.h>
5326int
5327main ()
5328{
5329pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
5330 ;
5331 return 0;
5332}
5333_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005334if ac_fn_c_try_compile "$LINENO"; then :
5335 $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005336
Benny Prijono28d3c562012-03-30 07:10:13 +00005337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5338$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005339else
Benny Prijono28d3c562012-03-30 07:10:13 +00005340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005342fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344
Benny Prijono28d3c562012-03-30 07:10:13 +00005345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5
5346$as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; }
5347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005348/* end confdefs.h. */
5349#include <pthread.h>
5350int
5351main ()
5352{
5353pthread_mutexattr_t attr;
5354 attr.recursive=1;
5355 ;
5356 return 0;
5357}
5358_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005359if ac_fn_c_try_compile "$LINENO"; then :
5360 $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005361
Benny Prijono28d3c562012-03-30 07:10:13 +00005362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5363$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005364else
Benny Prijono28d3c562012-03-30 07:10:13 +00005365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005367fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005369
Benny Prijono99eec382008-09-18 21:22:16 +00005370
Benny Prijono28d3c562012-03-30 07:10:13 +00005371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5
5372$as_echo_n "checking ioqueue backend... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005373# Check whether --enable-epoll was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005374if test "${enable_epoll+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005375 enableval=$enable_epoll;
Benny Prijono99eec382008-09-18 21:22:16 +00005376 ac_os_objs=ioqueue_epoll.o
Benny Prijono28d3c562012-03-30 07:10:13 +00005377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5
5378$as_echo "/dev/epoll" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005379
5380else
5381
5382 ac_os_objs=ioqueue_select.o
Benny Prijono28d3c562012-03-30 07:10:13 +00005383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5
5384$as_echo "select()" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005385
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005386fi
5387
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005388
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005389
5390case $target in
5391 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono99eec382008-09-18 21:22:16 +00005392 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 +00005393 ;;
5394 *)
Benny Prijono99eec382008-09-18 21:22:16 +00005395 ac_os_objs="$ac_os_objs file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o"
Sauw Ming6a970a32011-03-01 05:25:27 +00005396 case $target in
5397 arm-apple-darwin*)
Sauw Mingfe42f0c2011-03-01 10:42:11 +00005398 ac_os_objs="$ac_os_objs os_info_iphone.o"
Sauw Ming6a970a32011-03-01 05:25:27 +00005399 ;;
5400 esac
Benny Prijono4e48b512007-05-16 13:41:00 +00005401 # UUID
5402 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
5403 ac_os_objs="$ac_os_objs guid_uuid.o"
5404 else
5405 ac_os_objs="$ac_os_objs guid_simple.o"
5406 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005407 ;;
5408esac
5409
Sauw Ming68c14572011-07-20 03:00:48 +00005410case $target in
5411 *darwin*)
5412 ac_os_objs="$ac_os_objs os_core_darwin.o"
5413 ;;
5414esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005415
5416
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005417ac_external_speex=0
5418
5419
5420# Check whether --with-external-speex was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005421if test "${with_external_speex+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005422 withval=$with_external_speex;
5423 if test "x$with_external_speex" != "xno"; then
5424 # Test Speex installation
Benny Prijono28d3c562012-03-30 07:10:13 +00005425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5
5426$as_echo_n "checking if external Speex devkit is installed... " >&6; }
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005428/* end confdefs.h. */
5429#include <speex/speex.h>
5430 #include <speex/speex_echo.h>
5431
5432int
5433main ()
5434{
5435speex_echo_state_init(0, 0); speex_encoder_init(0);
5436 ;
5437 return 0;
5438}
5439_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005440if ac_fn_c_try_compile "$LINENO"; then :
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5442$as_echo "yes!!" >&6; }
5443 $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005444
5445 ac_external_speex="1"
5446
5447else
Benny Prijono28d3c562012-03-30 07:10:13 +00005448 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 +00005449fi
5450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5451 fi
5452
5453
5454fi
5455
5456
5457ac_external_gsm=0
5458
5459
5460# Check whether --with-external-gsm was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005461if test "${with_external_gsm+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005462 withval=$with_external_gsm;
5463 if test "x$with_external_gsm" != "xno"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005464 # Test GSM library installation
Benny Prijono28d3c562012-03-30 07:10:13 +00005465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5
5466$as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; }
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005468/* end confdefs.h. */
5469#include <gsm/gsm.h>
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005470int
5471main ()
5472{
5473gsm_create();
5474 ;
5475 return 0;
5476}
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005477_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005478if ac_fn_c_try_compile "$LINENO"; then :
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5480$as_echo "yes!!" >&6; }
5481 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005482
Benny Prijono28d3c562012-03-30 07:10:13 +00005483 $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005484
5485 ac_external_gsm="1"
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005486
5487else
Benny Prijono46bd0842010-02-12 14:12:41 +00005488
Benny Prijono28d3c562012-03-30 07:10:13 +00005489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490$as_echo "no" >&6; }
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5
5492$as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; }
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod4306432010-05-01 22:05:41 +00005494/* end confdefs.h. */
5495#include <gsm.h>
5496int
5497main ()
5498{
5499gsm_create();
5500 ;
5501 return 0;
5502}
5503_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005504if ac_fn_c_try_compile "$LINENO"; then :
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5506$as_echo "yes!!" >&6; }
5507 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005508
Benny Prijono28d3c562012-03-30 07:10:13 +00005509 $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005510
5511 ac_external_gsm="1"
5512
5513else
Benny Prijono28d3c562012-03-30 07:10:13 +00005514 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 +00005515
5516
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005517fi
Benny Prijonod4306432010-05-01 22:05:41 +00005518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono46bd0842010-02-12 14:12:41 +00005519
Benny Prijonod4306432010-05-01 22:05:41 +00005520
5521fi
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523 fi
5524
5525
5526fi
5527
5528
5529
5530
Benny Prijono4e48b512007-05-16 13:41:00 +00005531
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005532# Check whether --enable-sound was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005533if test "${enable_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005534 enableval=$enable_sound; if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +00005535 ac_pjmedia_snd=null
Benny Prijono28d3c562012-03-30 07:10:13 +00005536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5
5537$as_echo "Checking if sound is disabled... yes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00005538 fi
5539
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005540fi
5541
Benny Prijono1d971622006-09-10 22:27:40 +00005542
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005543ac_external_pa=0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005544
Benny Prijono27c98722007-04-09 21:28:15 +00005545
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005546# Check whether --with-external-pa was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005547if test "${with_external_pa+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005548 withval=$with_external_pa;
5549 if test "x$with_external_pa" != "xno"; then
5550 # Test PortAudio installation
Benny Prijono28d3c562012-03-30 07:10:13 +00005551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5
5552$as_echo_n "checking if external PortAudio devkit is installed... " >&6; }
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005554/* end confdefs.h. */
5555#include <portaudio.h>
5556
5557int
5558main ()
5559{
5560Pa_Initialize();
5561 ;
5562 return 0;
5563}
5564_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005565if ac_fn_c_try_compile "$LINENO"; then :
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5567$as_echo "yes!!" >&6; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005568 ac_external_pa="1"
5569
5570else
Benny Prijono28d3c562012-03-30 07:10:13 +00005571 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 +00005572fi
5573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonofe0c1272010-01-13 16:28:15 +00005574 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005575
Benny Prijono27c98722007-04-09 21:28:15 +00005576
5577fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005578
5579
5580
Benny Prijono28d3c562012-03-30 07:10:13 +00005581ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
5582if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005583 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
5584fi
5585
5586
Benny Prijono28d3c562012-03-30 07:10:13 +00005587ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
5588if test "x$ac_cv_header_linux_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005589 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
5590fi
5591
5592
Benny Prijono28d3c562012-03-30 07:10:13 +00005593ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
5594if test "x$ac_cv_header_machine_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005595 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
5596fi
5597
5598
5599
Benny Prijono3e091672008-01-09 15:43:02 +00005600if test "x$ac_cv_c_bigendian" = "xyes"; then
5601 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
5602else
5603 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
5604fi
5605
Benny Prijono1d971622006-09-10 22:27:40 +00005606if test "$enable_sound" = "no"; then
5607 true;
5608else
5609 case $target in
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005610 arm-apple-darwin*)
Sauw Ming6a970a32011-03-01 05:25:27 +00005611 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit"
Benny Prijono28d3c562012-03-30 07:10:13 +00005612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5
5613$as_echo "Checking sound device backend... AudioUnit" >&6; }
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005614 ;;
Benny Prijonob466e232006-09-10 08:53:59 +00005615 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00005616 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
5617 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +00005618 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +00005619 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
5620 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono28d3c562012-03-30 07:10:13 +00005621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5
5622$as_echo "Checking sound device backend... old coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005623 else
5624 ac_pjmedia_snd=pa_darwinos
Benny Prijono28d3c562012-03-30 07:10:13 +00005625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5
5626$as_echo "Checking sound device backend... coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005627 fi
Benny Prijonob466e232006-09-10 08:53:59 +00005628 ;;
5629 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005630 ac_pjmedia_snd=pa_win32
Benny Prijono28d3c562012-03-30 07:10:13 +00005631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5
5632$as_echo "Checking sound device backend... win32 sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005633 ;;
5634 *rtems*)
5635 ac_pjmedia_snd=null
Benny Prijono28d3c562012-03-30 07:10:13 +00005636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5
5637$as_echo "Checking sound device backend... null sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005638 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005639 *)
Benny Prijono0b462322008-03-12 22:44:24 +00005640 ac_pjmedia_snd=pa_unix
Benny Prijono28d3c562012-03-30 07:10:13 +00005641 ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default"
5642if test "x$ac_cv_header_alsa_version_h" = x""yes; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005643 ac_pa_use_alsa=1
5644
5645 LIBS="$LIBS -lasound"
5646
5647else
5648 ac_pa_use_alsa=0
5649
5650fi
5651
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005652
Benny Prijono28d3c562012-03-30 07:10:13 +00005653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5
5654$as_echo "Checking sound device backend... unix" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005655
5656 ac_pa_use_oss=1
5657
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005658 # Check whether --enable-oss was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005659if test "${enable_oss+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005660 enableval=$enable_oss;
Benny Prijono0b462322008-03-12 22:44:24 +00005661 if test "$enable_oss" = "no"; then
5662 ac_pa_use_oss=0
Benny Prijono28d3c562012-03-30 07:10:13 +00005663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5
5664$as_echo "Checking if OSS audio is disabled... yes" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005665 fi
5666
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005667fi
5668
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005669 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00005670 esac
5671fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005672
Sauw Ming6e6c2152010-12-14 13:03:10 +00005673
5674if test "$enable_video" = "no"; then
5675 true;
5676else
5677 case $target in
5678 arm-apple-darwin*)
5679 ac_pjmedia_video=iphone_os
5680
Sauw Ming24c39a32011-08-16 05:44:46 +00005681
5682 SAVED_LIBS="$LIBS"
5683 LIBS="-framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
Benny Prijono28d3c562012-03-30 07:10:13 +00005684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Ming24c39a32011-08-16 05:44:46 +00005685/* end confdefs.h. */
5686
5687int
5688main ()
5689{
5690
5691 ;
5692 return 0;
5693}
5694_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005695if ac_fn_c_try_link "$LINENO"; then :
Sauw Ming24c39a32011-08-16 05:44:46 +00005696 ac_pjmedia_video_has_ios=yes
5697else
Benny Prijono28d3c562012-03-30 07:10:13 +00005698 ac_pjmedia_video_has_ios=no
Sauw Ming24c39a32011-08-16 05:44:46 +00005699fi
Benny Prijono28d3c562012-03-30 07:10:13 +00005700rm -f core conftest.err conftest.$ac_objext \
5701 conftest$ac_exeext conftest.$ac_ext
Sauw Ming24c39a32011-08-16 05:44:46 +00005702 LIBS="$SAVED_LIBS"
5703 if test "$ac_pjmedia_video_has_ios" = "yes"; then
5704 ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1"
5705 LIBS="$LIBS -framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
Benny Prijono28d3c562012-03-30 07:10:13 +00005706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... yes" >&5
5707$as_echo "Checking if AVFoundation framework is available... yes" >&6; }
Sauw Ming24c39a32011-08-16 05:44:46 +00005708 else
Benny Prijono28d3c562012-03-30 07:10:13 +00005709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... no" >&5
5710$as_echo "Checking if AVFoundation framework is available... no" >&6; }
Sauw Ming24c39a32011-08-16 05:44:46 +00005711 fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00005712 ;;
5713 *darwin*)
5714 ac_pjmedia_video=mac_os
5715
5716
5717 SAVED_LIBS="$LIBS"
5718 LIBS="-framework QTKit"
Benny Prijono28d3c562012-03-30 07:10:13 +00005719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Ming6e6c2152010-12-14 13:03:10 +00005720/* end confdefs.h. */
5721
5722int
5723main ()
5724{
5725
5726 ;
5727 return 0;
5728}
5729_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005730if ac_fn_c_try_link "$LINENO"; then :
Sauw Ming6e6c2152010-12-14 13:03:10 +00005731 ac_pjmedia_video_has_qt=yes
5732else
Benny Prijono28d3c562012-03-30 07:10:13 +00005733 ac_pjmedia_video_has_qt=no
Sauw Ming6e6c2152010-12-14 13:03:10 +00005734fi
Benny Prijono28d3c562012-03-30 07:10:13 +00005735rm -f core conftest.err conftest.$ac_objext \
5736 conftest$ac_exeext conftest.$ac_ext
Sauw Ming6e6c2152010-12-14 13:03:10 +00005737 LIBS="$SAVED_LIBS"
5738 if test "$ac_pjmedia_video_has_qt" = "yes"; then
5739 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1"
Sauw Ming21bd3fd2011-04-06 11:30:18 +00005740 LIBS="$LIBS -framework QTKit -framework Foundation -framework AppKit -framework QuartzCore -framework OpenGL"
Benny Prijono28d3c562012-03-30 07:10:13 +00005741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... yes" >&5
5742$as_echo "Checking if QTKit framework is available... yes" >&6; }
Sauw Ming6e6c2152010-12-14 13:03:10 +00005743 else
Benny Prijono28d3c562012-03-30 07:10:13 +00005744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... no" >&5
5745$as_echo "Checking if QTKit framework is available... no" >&6; }
Sauw Ming6e6c2152010-12-14 13:03:10 +00005746 fi
5747 ;;
5748 esac
5749fi
5750
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005751# Check whether --enable-ext_sound was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005752if test "${enable_ext_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005753 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
Benny Prijonoebb2c332008-07-28 23:40:58 +00005754 ac_pjmedia_snd=external
Benny Prijono28d3c562012-03-30 07:10:13 +00005755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5
5756$as_echo "Checking if external sound is set... yes" >&6; }
Benny Prijonoebb2c332008-07-28 23:40:58 +00005757 fi
5758
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005759fi
Benny Prijonoebb2c332008-07-28 23:40:58 +00005760
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005761
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005762
5763# Check whether --enable-small-filter was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005764if test "${enable_small_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005765 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005766 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono28d3c562012-03-30 07:10:13 +00005767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5
5768$as_echo "Checking if small filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005769 fi
5770else
Benny Prijono28d3c562012-03-30 07:10:13 +00005771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5
5772$as_echo "Checking if small filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005773fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005774
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005775
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005776
5777# Check whether --enable-large-filter was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005778if test "${enable_large_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005779 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005780 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono28d3c562012-03-30 07:10:13 +00005781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5
5782$as_echo "Checking if large filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005783 fi
5784else
Benny Prijono28d3c562012-03-30 07:10:13 +00005785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5
5786$as_echo "Checking if large filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005787fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005788
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005789
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005790
5791# Check whether --enable-speex-aec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005792if test "${enable_speex_aec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005793 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005794 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono28d3c562012-03-30 07:10:13 +00005795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5
5796$as_echo "Checking if Speex AEC is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005797 fi
5798else
Benny Prijono28d3c562012-03-30 07:10:13 +00005799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5
5800$as_echo "Checking if Speex AEC is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005801fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005802
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005803
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005804
5805# Check whether --enable-g711-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005806if test "${enable_g711_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005807 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005808 ac_no_g711_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005809 $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005810
Benny Prijono28d3c562012-03-30 07:10:13 +00005811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5
5812$as_echo "Checking if G.711 codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005813 fi
5814else
Benny Prijono28d3c562012-03-30 07:10:13 +00005815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5
5816$as_echo "Checking if G.711 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005817fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005818
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005819
5820
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005821
5822# Check whether --enable-l16-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005823if test "${enable_l16_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005824 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005825 ac_no_l16_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005826 $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005827
Benny Prijono28d3c562012-03-30 07:10:13 +00005828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5
5829$as_echo "Checking if L16 codecs are disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005830 fi
5831else
Benny Prijono28d3c562012-03-30 07:10:13 +00005832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5
5833$as_echo "Checking if L16 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005834fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005835
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005836
5837
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005838
5839# Check whether --enable-gsm-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005840if test "${enable_gsm_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005841 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005842 ac_no_gsm_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005843 $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005844
Benny Prijono28d3c562012-03-30 07:10:13 +00005845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5
5846$as_echo "Checking if GSM codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005847 fi
5848else
Benny Prijono28d3c562012-03-30 07:10:13 +00005849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5
5850$as_echo "Checking if GSM codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005851fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005852
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005853
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005854
5855# Check whether --enable-g722-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005856if test "${enable_g722_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005857 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
Benny Prijono71f657d2008-03-17 14:24:21 +00005858 ac_no_g722_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005859 $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h
Benny Prijono71f657d2008-03-17 14:24:21 +00005860
Benny Prijono28d3c562012-03-30 07:10:13 +00005861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5
5862$as_echo "Checking if G.722 codec is disabled...yes" >&6; }
Benny Prijono71f657d2008-03-17 14:24:21 +00005863 fi
5864else
Benny Prijono28d3c562012-03-30 07:10:13 +00005865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5
5866$as_echo "Checking if G.722 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005867fi
Benny Prijono71f657d2008-03-17 14:24:21 +00005868
5869
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005870
5871# Check whether --enable-g7221-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005872if test "${enable_g7221_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005873 enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
5874 ac_no_g7221_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005875 $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005876
Benny Prijono28d3c562012-03-30 07:10:13 +00005877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5
5878$as_echo "Checking if G.722.1 codec is disabled...yes" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005879 fi
5880else
Benny Prijono28d3c562012-03-30 07:10:13 +00005881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5
5882$as_echo "Checking if G.722.1 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005883fi
5884
5885
5886
5887# Check whether --enable-speex-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005888if test "${enable_speex_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005889 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005890 ac_no_speex_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005891 $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005892
Benny Prijono28d3c562012-03-30 07:10:13 +00005893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5
5894$as_echo "Checking if Speex codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005895 fi
5896else
Benny Prijono28d3c562012-03-30 07:10:13 +00005897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5
5898$as_echo "Checking if Speex codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005899fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005900
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005901
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005902
5903# Check whether --enable-ilbc-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005904if test "${enable_ilbc_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005905 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005906 ac_no_ilbc_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005907 $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005908
Benny Prijono28d3c562012-03-30 07:10:13 +00005909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5
5910$as_echo "Checking if iLBC codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005911 fi
5912else
Benny Prijono28d3c562012-03-30 07:10:13 +00005913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5
5914$as_echo "Checking if iLBC codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005915fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005916
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005917
5918# Check whether --enable-libsamplerate was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005919if test "${enable_libsamplerate+set}" = set; then :
5920 enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5
5921$as_echo_n "checking for src_new in -lsamplerate... " >&6; }
5922if test "${ac_cv_lib_samplerate_src_new+set}" = set; then :
5923 $as_echo_n "(cached) " >&6
Benny Prijono550a1a62007-10-16 08:54:00 +00005924else
5925 ac_check_lib_save_LIBS=$LIBS
5926LIBS="-lsamplerate $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00005927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00005928/* end confdefs.h. */
5929
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005930/* Override any GCC internal prototype to avoid an error.
5931 Use char because int might match the return type of a GCC
5932 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +00005933#ifdef __cplusplus
5934extern "C"
5935#endif
Benny Prijono550a1a62007-10-16 08:54:00 +00005936char src_new ();
5937int
5938main ()
5939{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005940return src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +00005941 ;
5942 return 0;
5943}
5944_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005945if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00005946 ac_cv_lib_samplerate_src_new=yes
5947else
Benny Prijono28d3c562012-03-30 07:10:13 +00005948 ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +00005949fi
Benny Prijono28d3c562012-03-30 07:10:13 +00005950rm -f core conftest.err conftest.$ac_objext \
5951 conftest$ac_exeext conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00005952LIBS=$ac_check_lib_save_LIBS
5953fi
Benny Prijono28d3c562012-03-30 07:10:13 +00005954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5
5955$as_echo "$ac_cv_lib_samplerate_src_new" >&6; }
5956if test "x$ac_cv_lib_samplerate_src_new" = x""yes; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00005957 cat >>confdefs.h <<_ACEOF
5958#define HAVE_LIBSAMPLERATE 1
5959_ACEOF
5960
5961 LIBS="-lsamplerate $LIBS"
5962
5963fi
5964
5965else
Benny Prijono28d3c562012-03-30 07:10:13 +00005966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5
5967$as_echo "Skipping libsamplerate detection" >&6; }
5968
5969fi
5970
5971
5972
5973# Check whether --enable-resample_dll was given.
5974if test "${enable_resample_dll+set}" = set; then :
5975 enableval=$enable_resample_dll; if test "$enable_resample_dll" = "yes"; then
5976 ac_resample_dll=1
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... yes" >&5
5978$as_echo "Building libresample as shared library... yes" >&6; }
5979 fi
5980else
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... no" >&5
5982$as_echo "Building libresample as shared library... no" >&6; }
Benny Prijono5b0af632011-07-20 03:16:25 +00005983
5984fi
5985
5986
5987
5988# Check whether --with-sdl was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005989if test "${with_sdl+set}" = set; then :
Benny Prijono5b0af632011-07-20 03:16:25 +00005990 withval=$with_sdl;
5991else
5992 with_sdl=no
Benny Prijono550a1a62007-10-16 08:54:00 +00005993
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005994fi
Benny Prijono0822c192008-08-21 20:59:58 +00005995
5996
Benny Prijonoc45d9512010-12-10 11:04:30 +00005997# Check whether --enable-sdl was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005998if test "${enable_sdl+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00005999 enableval=$enable_sdl;
6000 if test "$enable_sdl" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SDL is disabled... yes" >&5
6002$as_echo "Checking if SDL is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006003 fi
6004
6005else
6006
Benny Prijono5b0af632011-07-20 03:16:25 +00006007 SDL_CONFIG="sdl-config"
6008 if test "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then
6009 SDL_CONFIG=$with_sdl/bin/sdl-config
Benny Prijono28d3c562012-03-30 07:10:13 +00006010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SDL prefix... $with_sdl" >&5
6011$as_echo "Using SDL prefix... $with_sdl" >&6; }
Benny Prijono5b0af632011-07-20 03:16:25 +00006012 fi
6013
Benny Prijono28d3c562012-03-30 07:10:13 +00006014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL availability.." >&5
6015$as_echo_n "checking SDL availability..... " >&6; }
Sauw Ming1d8ceb12011-08-24 05:54:25 +00006016 if (sh -c "$SDL_CONFIG --version" | grep 1.3) then
Benny Prijonoc45d9512010-12-10 11:04:30 +00006017
6018
Benny Prijono5b0af632011-07-20 03:16:25 +00006019 ac_sdl_cflags=`$SDL_CONFIG --cflags`
Benny Prijonoc45d9512010-12-10 11:04:30 +00006020 ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags"
Benny Prijono5b0af632011-07-20 03:16:25 +00006021 ac_sdl_ldflags=`$SDL_CONFIG --libs`
Benny Prijono69b1f822010-12-10 11:33:01 +00006022 LIBS="$LIBS $ac_sdl_ldflags"
Sauw Ming1d8ceb12011-08-24 05:54:25 +00006023 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported SDL version" >&5
6025$as_echo "Unsupported SDL version" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006026 fi
Benny Prijono550a1a62007-10-16 08:54:00 +00006027
Benny Prijono0822c192008-08-21 20:59:58 +00006028fi
6029
6030
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006031
Benny Prijonoc45d9512010-12-10 11:04:30 +00006032# Check whether --enable-ffmpeg was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006033if test "${enable_ffmpeg+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006034 enableval=$enable_ffmpeg;
6035 ac_has_ffmpeg=0
6036
6037 if test "$enable_ffmpeg" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if ffmpeg is disabled... yes" >&5
6039$as_echo "Checking if ffmpeg is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006040 fi
6041
6042else
6043
6044
6045
6046
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006047 FFMPEG_PREFIX=""
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006048
6049 SAVED_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006050 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then
6051 FFMPEG_PREFIX=$with_ffmpeg
Benny Prijono28d3c562012-03-30 07:10:13 +00006052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5
6053$as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; }
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006054 PKG_CONFIG_PATH=$FFMPEG_PREFIX/lib/pkgconfig
6055 fi
6056
6057 for ac_prog in pkg-config "python pkgconfig.py"
6058do
6059 # Extract the first word of "$ac_prog", so it can be a program name with args.
6060set dummy $ac_prog; ac_word=$2
6061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6062$as_echo_n "checking for $ac_word... " >&6; }
6063if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
6064 $as_echo_n "(cached) " >&6
6065else
6066 if test -n "$PKG_CONFIG"; then
6067 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6068else
6069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070for as_dir in $PATH
6071do
6072 IFS=$as_save_IFS
6073 test -z "$as_dir" && as_dir=.
6074 for ac_exec_ext in '' $ac_executable_extensions; do
6075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6076 ac_cv_prog_PKG_CONFIG="$ac_prog"
6077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6078 break 2
6079 fi
6080done
6081 done
6082IFS=$as_save_IFS
6083
6084fi
6085fi
6086PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6087if test -n "$PKG_CONFIG"; then
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6089$as_echo "$PKG_CONFIG" >&6; }
6090else
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6092$as_echo "no" >&6; }
6093fi
6094
6095
6096 test -n "$PKG_CONFIG" && break
6097done
6098test -n "$PKG_CONFIG" || PKG_CONFIG="none"
6099
6100
6101 if test "$PKG_CONFIG" != "none"; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ffmpeg packages" >&5
6103$as_echo_n "checking ffmpeg packages... " >&6; }
6104 av_pkg=""
6105 if $PKG_CONFIG --exists libdevice; then
6106 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
6107 av_pkg="$av_pkg libdevice"
6108 fi
6109 if $PKG_CONFIG --exists libavformat; then
6110 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
6111 av_pkg="$av_pkg libavformat"
6112 fi
6113 if $PKG_CONFIG --exists libavcodec; then
6114 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
6115 av_pkg="$av_pkg libavcodec"
6116 fi
6117 if $PKG_CONFIG --exists libswscale; then
6118 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
6119 av_pkg="$av_pkg libswscale"
6120 fi
6121 if $PKG_CONFIG --exists libavutil; then
6122 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
6123 av_pkg="$av_pkg libavutil"
6124 fi
6125 if $PKG_CONFIG --exists libavcore; then
6126 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
6127 av_pkg="$av_pkg libavcore"
6128 fi
6129
6130 if test "x$av_pkg" == "x"; then
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none detected (check the prefix)! **" >&5
6132$as_echo "none detected (check the prefix)! **" >&6; }
6133 else
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $av_pkg" >&5
6135$as_echo "$av_pkg" >&6; }
6136 fi
6137
6138 ac_ffmpeg_cflags="$ac_ffmpeg_cflags `$PKG_CONFIG --cflags $av_pkg`"
6139 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags `$PKG_CONFIG --libs $av_pkg`"
6140
6141 else
6142
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Warning: neither pkg-config nor python is available, ffmpeg dependency cannot be calculated. If ffmpeg libraries are not detected, you need to specify the correct CFLAGS and LDFLAGS settings for ffmpeg prior to invoking configure ***" >&5
6144$as_echo "*** Warning: neither pkg-config nor python is available, ffmpeg dependency cannot be calculated. If ffmpeg libraries are not detected, you need to specify the correct CFLAGS and LDFLAGS settings for ffmpeg prior to invoking configure ***" >&6; }
6145
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006146 LIBS="-L$FFMPEG_PREFIX/lib $LIBS"
Sauw Ming01095d82011-07-14 08:46:19 +00006147 LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS"
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006148 CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS"
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006149
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00006151$as_echo_n "checking for avdevice_version in -lavdevice... " >&6; }
6152if test "${ac_cv_lib_avdevice_avdevice_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="-lavdevice $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +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 avdevice_version ();
6167int
6168main ()
6169{
6170return avdevice_version ();
6171 ;
6172 return 0;
6173}
6174_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006175if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006176 ac_cv_lib_avdevice_avdevice_version=yes
6177else
Benny Prijono28d3c562012-03-30 07:10:13 +00006178 ac_cv_lib_avdevice_avdevice_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006179fi
Benny Prijono28d3c562012-03-30 07:10:13 +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 Prijono28d3c562012-03-30 07:10:13 +00006184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avdevice_avdevice_version" >&5
6185$as_echo "$ac_cv_lib_avdevice_avdevice_version" >&6; }
6186if test "x$ac_cv_lib_avdevice_avdevice_version" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006187 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006188 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006189
6190
6191fi
6192
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_malloc in -lavutil" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00006194$as_echo_n "checking for av_malloc in -lavutil... " >&6; }
6195if test "${ac_cv_lib_avutil_av_malloc+set}" = set; then :
6196 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006197else
6198 ac_check_lib_save_LIBS=$LIBS
6199LIBS="-lavutil $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006201/* end confdefs.h. */
6202
6203/* Override any GCC internal prototype to avoid an error.
6204 Use char because int might match the return type of a GCC
6205 builtin and then its argument prototype would still apply. */
6206#ifdef __cplusplus
6207extern "C"
6208#endif
6209char av_malloc ();
6210int
6211main ()
6212{
6213return av_malloc ();
6214 ;
6215 return 0;
6216}
6217_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006218if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006219 ac_cv_lib_avutil_av_malloc=yes
6220else
Benny Prijono28d3c562012-03-30 07:10:13 +00006221 ac_cv_lib_avutil_av_malloc=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006222fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006223rm -f core conftest.err conftest.$ac_objext \
6224 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006225LIBS=$ac_check_lib_save_LIBS
6226fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_malloc" >&5
6228$as_echo "$ac_cv_lib_avutil_av_malloc" >&6; }
6229if test "x$ac_cv_lib_avutil_av_malloc" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006230 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006231 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006232
6233
6234fi
6235
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_init in -lavcodec" >&5
6237$as_echo_n "checking for avcodec_init in -lavcodec... " >&6; }
6238if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then :
6239 $as_echo_n "(cached) " >&6
6240else
6241 ac_check_lib_save_LIBS=$LIBS
6242LIBS="-lavcodec -lavutil
6243 $LIBS"
6244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245/* end confdefs.h. */
6246
6247/* Override any GCC internal prototype to avoid an error.
6248 Use char because int might match the return type of a GCC
6249 builtin and then its argument prototype would still apply. */
6250#ifdef __cplusplus
6251extern "C"
6252#endif
6253char avcodec_init ();
6254int
6255main ()
6256{
6257return avcodec_init ();
6258 ;
6259 return 0;
6260}
6261_ACEOF
6262if ac_fn_c_try_link "$LINENO"; then :
6263 ac_cv_lib_avcodec_avcodec_init=yes
6264else
6265 ac_cv_lib_avcodec_avcodec_init=no
6266fi
6267rm -f core conftest.err conftest.$ac_objext \
6268 conftest$ac_exeext conftest.$ac_ext
6269LIBS=$ac_check_lib_save_LIBS
6270fi
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_init" >&5
6272$as_echo "$ac_cv_lib_avcodec_avcodec_init" >&6; }
6273if test "x$ac_cv_lib_avcodec_avcodec_init" = x""yes; then :
6274 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
6275 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec"
6276
6277fi
6278
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_all in -lavformat" >&5
6280$as_echo_n "checking for av_register_all in -lavformat... " >&6; }
6281if test "${ac_cv_lib_avformat_av_register_all+set}" = set; then :
6282 $as_echo_n "(cached) " >&6
6283else
6284 ac_check_lib_save_LIBS=$LIBS
6285LIBS="-lavformat -lavcodec -lavutil
6286 $LIBS"
6287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288/* end confdefs.h. */
6289
6290/* Override any GCC internal prototype to avoid an error.
6291 Use char because int might match the return type of a GCC
6292 builtin and then its argument prototype would still apply. */
6293#ifdef __cplusplus
6294extern "C"
6295#endif
6296char av_register_all ();
6297int
6298main ()
6299{
6300return av_register_all ();
6301 ;
6302 return 0;
6303}
6304_ACEOF
6305if ac_fn_c_try_link "$LINENO"; then :
6306 ac_cv_lib_avformat_av_register_all=yes
6307else
6308 ac_cv_lib_avformat_av_register_all=no
6309fi
6310rm -f core conftest.err conftest.$ac_objext \
6311 conftest$ac_exeext conftest.$ac_ext
6312LIBS=$ac_check_lib_save_LIBS
6313fi
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_register_all" >&5
6315$as_echo "$ac_cv_lib_avformat_av_register_all" >&6; }
6316if test "x$ac_cv_lib_avformat_av_register_all" = x""yes; then :
6317 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
6318 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat"
6319
6320fi
6321
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5
6323$as_echo_n "checking for sws_scale in -lswscale... " >&6; }
6324if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then :
6325 $as_echo_n "(cached) " >&6
6326else
6327 ac_check_lib_save_LIBS=$LIBS
6328LIBS="-lswscale -lavutil
6329 $LIBS"
6330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331/* end confdefs.h. */
6332
6333/* Override any GCC internal prototype to avoid an error.
6334 Use char because int might match the return type of a GCC
6335 builtin and then its argument prototype would still apply. */
6336#ifdef __cplusplus
6337extern "C"
6338#endif
6339char sws_scale ();
6340int
6341main ()
6342{
6343return sws_scale ();
6344 ;
6345 return 0;
6346}
6347_ACEOF
6348if ac_fn_c_try_link "$LINENO"; then :
6349 ac_cv_lib_swscale_sws_scale=yes
6350else
6351 ac_cv_lib_swscale_sws_scale=no
6352fi
6353rm -f core conftest.err conftest.$ac_objext \
6354 conftest$ac_exeext conftest.$ac_ext
6355LIBS=$ac_check_lib_save_LIBS
6356fi
6357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5
6358$as_echo "$ac_cv_lib_swscale_sws_scale" >&6; }
6359if test "x$ac_cv_lib_swscale_sws_scale" = x""yes; then :
6360 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
6361 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale"
6362
6363fi
6364
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcore_version in -lavcore" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00006366$as_echo_n "checking for avcore_version in -lavcore... " >&6; }
6367if test "${ac_cv_lib_avcore_avcore_version+set}" = set; then :
6368 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006369else
6370 ac_check_lib_save_LIBS=$LIBS
6371LIBS="-lavcore $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006373/* end confdefs.h. */
6374
6375/* Override any GCC internal prototype to avoid an error.
6376 Use char because int might match the return type of a GCC
6377 builtin and then its argument prototype would still apply. */
6378#ifdef __cplusplus
6379extern "C"
6380#endif
6381char avcore_version ();
6382int
6383main ()
6384{
6385return avcore_version ();
6386 ;
6387 return 0;
6388}
6389_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006390if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006391 ac_cv_lib_avcore_avcore_version=yes
6392else
Benny Prijono28d3c562012-03-30 07:10:13 +00006393 ac_cv_lib_avcore_avcore_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006394fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006395rm -f core conftest.err conftest.$ac_objext \
6396 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006397LIBS=$ac_check_lib_save_LIBS
6398fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcore_avcore_version" >&5
6400$as_echo "$ac_cv_lib_avcore_avcore_version" >&6; }
6401if test "x$ac_cv_lib_avcore_avcore_version" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006402 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006403 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006404
6405
6406fi
6407
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006408
6409 fi
6410
Benny Prijono69b1f822010-12-10 11:33:01 +00006411 LIBS="$LIBS $ac_ffmpeg_ldflags"
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006412 PKG_CONFIG_PATH=$SAVED_PKG_CONFIG_PATH
Benny Prijonoc45d9512010-12-10 11:04:30 +00006413
6414
6415fi
6416
6417
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006418
6419# Check whether --with-ffmpeg was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006420if test "${with_ffmpeg+set}" = set; then :
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006421 withval=$with_ffmpeg;
6422else
6423 with_ffmpeg=no
6424
6425fi
6426
6427
6428
Benny Prijonoc45d9512010-12-10 11:04:30 +00006429# Check whether --enable-v4l2 was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006430if test "${enable_v4l2+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006431 enableval=$enable_v4l2;
6432 if test "$enable_v4l2" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if V4L2 is disabled... yes" >&5
6434$as_echo "Checking if V4L2 is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006435 fi
6436
6437else
6438
6439
6440
Benny Prijono28d3c562012-03-30 07:10:13 +00006441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5
6442$as_echo_n "checking for v4l2_open in -lv4l2... " >&6; }
6443if test "${ac_cv_lib_v4l2_v4l2_open+set}" = set; then :
6444 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006445else
6446 ac_check_lib_save_LIBS=$LIBS
6447LIBS="-lv4l2 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006449/* end confdefs.h. */
6450
6451/* Override any GCC internal prototype to avoid an error.
6452 Use char because int might match the return type of a GCC
6453 builtin and then its argument prototype would still apply. */
6454#ifdef __cplusplus
6455extern "C"
6456#endif
6457char v4l2_open ();
6458int
6459main ()
6460{
6461return v4l2_open ();
6462 ;
6463 return 0;
6464}
6465_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006466if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006467 ac_cv_lib_v4l2_v4l2_open=yes
6468else
Benny Prijono28d3c562012-03-30 07:10:13 +00006469 ac_cv_lib_v4l2_v4l2_open=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006470fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006471rm -f core conftest.err conftest.$ac_objext \
6472 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006473LIBS=$ac_check_lib_save_LIBS
6474fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5
6476$as_echo "$ac_cv_lib_v4l2_v4l2_open" >&6; }
6477if test "x$ac_cv_lib_v4l2_v4l2_open" = x""yes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006478 ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1"
6479 ac_v4l2_ldflags="-lv4l2"
Benny Prijono69b1f822010-12-10 11:33:01 +00006480 LIBS="$LIBS -lv4l2"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006481
6482
6483fi
6484
6485
6486fi
6487
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006488
6489# Check whether --enable-ipp was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006490if test "${enable_ipp+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006491 enableval=$enable_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00006492else
6493 enable_ipp=no
6494
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006495fi
Benny Prijono0822c192008-08-21 20:59:58 +00006496
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006497
Benny Prijono3965f192010-02-10 18:46:05 +00006498
6499# Check whether --with-ipp was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006500if test "${with_ipp+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006501 withval=$with_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00006502else
6503 with_ipp=no
6504
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006505fi
Benny Prijono0822c192008-08-21 20:59:58 +00006506
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006507
Benny Prijono3965f192010-02-10 18:46:05 +00006508
6509# Check whether --with-ipp-samples was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006510if test "${with_ipp_samples+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006511 withval=$with_ipp_samples;
Benny Prijono0822c192008-08-21 20:59:58 +00006512else
6513 with_ipp_samples=no
6514
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006515fi
6516
Benny Prijono0822c192008-08-21 20:59:58 +00006517
Benny Prijono3965f192010-02-10 18:46:05 +00006518
6519# Check whether --with-ipp-arch was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006520if test "${with_ipp_arch+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006521 withval=$with_ipp_arch;
6522else
6523 with_ipp_arch=no
6524
6525fi
6526
6527
Benny Prijono0822c192008-08-21 20:59:58 +00006528if test "x$enable_ipp" != "xno"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5
6530$as_echo_n "checking Intel IPP location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006531
6532 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5
6534$as_echo "$with_ipp" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006535 IPPROOT=$with_ipp
6536 elif test "x$IPPROOT" = "x"; then
6537 if test -d /opt/intel/ipp; then
6538 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
Benny Prijono28d3c562012-03-30 07:10:13 +00006539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5
6540$as_echo "autodetected in $IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006541 fi
6542 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5
6544$as_echo "$IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006545 fi
6546
Benny Prijono3965f192010-02-10 18:46:05 +00006547 if test "x$with_ipp_arch" != "xno"; then
Benny Prijono896be292010-08-17 12:16:46 +00006548 IPP_SUFFIX=$with_ipp_arch
Benny Prijono28d3c562012-03-30 07:10:13 +00006549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5
6550$as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006551 else
6552 IPP_SUFFIX=""
Benny Prijono28d3c562012-03-30 07:10:13 +00006553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5
6554$as_echo "IPP arch suffix is set to empty" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006555 fi
6556
Benny Prijono0822c192008-08-21 20:59:58 +00006557 if test x$IPPROOT = x; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006558 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 +00006559 elif test ! -d $IPPROOT; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006560 as_fn_error "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006561 elif test ! -d $IPPROOT/include; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006562 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006563 else
6564 # IPP directory looks okay.
6565 # Remove trailing backslash
Benny Prijono3965f192010-02-10 18:46:05 +00006566 IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
Benny Prijono0822c192008-08-21 20:59:58 +00006567
6568 SAVED_CFLAGS="$CFLAGS"
6569 SAVED_LDFLAGS="$LDFLAGS"
6570 SAVED_LIBS="$LIBS"
6571
6572 IPP_CFLAGS="-I$IPPROOT/include"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006573 IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
Benny Prijono46bd0842010-02-12 14:12:41 +00006574
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006575#
Benny Prijono46bd0842010-02-12 14:12:41 +00006576 # Some differences between Mac OS X and Linux
6577 case $target in
6578 *darwin* )
6579 IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
6580 ;;
6581 *)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006582 # Find out where the libraries live.
6583 IPP7_ARCH=""
6584 if test -d $IPPROOT/lib/intel64; then
6585 IPP7_ARCH="intel64"
6586 elif test -d $IPPROOT/lib/ia32; then
6587 IPP7_ARCH="ia32"
6588 elif test -d $IPPROOT/lib/mic; then
6589 IPP7_ARCH="mic"
6590 fi
6591
6592 if test -z "$IPP7_ARCH"; then
6593 # IPP6 (and possibly below)
6594 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
6595 IPP_LIBS="$IPP_LIBS -lippsr${IPP_SUFFIX} -lguide"
6596 else
6597 # IPP7
6598 if ! test -d $IPPROOT/../compiler; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006599 as_fn_error "Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" "$LINENO" 5
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006600 fi
6601 IPP_CFLAGS="$IPP_CFLAGS"
6602 IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH"
6603 IPP_LIBS="$IPP_LIBS -liomp5"
6604 fi
Benny Prijono46bd0842010-02-12 14:12:41 +00006605 ;;
6606 esac
6607
Benny Prijono0822c192008-08-21 20:59:58 +00006608 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
Benny Prijono46bd0842010-02-12 14:12:41 +00006609 #Static:
Benny Prijono0822c192008-08-21 20:59:58 +00006610 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
6611
6612 CFLAGS="$CFLAGS $IPP_CFLAGS"
6613 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6614 LIBS="$IPP_LIBS $LIBS"
6615
6616
Benny Prijono28d3c562012-03-30 07:10:13 +00006617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5
6618$as_echo_n "checking Intel IPP usability... " >&6; }
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006620/* end confdefs.h. */
6621#include <ippcore.h>
6622
6623int
6624main ()
6625{
6626ippStaticInit();
6627 ;
6628 return 0;
6629}
6630_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006631if ac_fn_c_try_link "$LINENO"; then :
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6633$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006634else
Benny Prijono28d3c562012-03-30 07:10:13 +00006635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Benny Prijonob15e7ca2012-04-27 01:32:12 +00006637as_fn_error "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly, run with --help for more info
6638See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006639fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006640rm -f core conftest.err conftest.$ac_objext \
6641 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006642
6643 CFLAGS="$SAVED_CFLAGS"
6644 LDFLAGS="$SAVED_LDFLAGS"
6645 LIBS="$SAVED_LIBS"
6646 fi
6647
Benny Prijono28d3c562012-03-30 07:10:13 +00006648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5
6649$as_echo_n "checking Intel IPP samples location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006650
6651 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5
6653$as_echo "$with_ipp_samples" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006654 IPPSAMPLES=$with_ipp_samples
6655 elif test "x$IPPSAMPLES" = "x"; then
6656 if test -d /opt/intel/ipp-samples; then
6657 IPPSAMPLES=/opt/intel/ipp-samples
Benny Prijono28d3c562012-03-30 07:10:13 +00006658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5
6659$as_echo "autodetected in $IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006660 fi
6661 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5
6663$as_echo "$IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006664 fi
6665
6666 if test x$IPPSAMPLES = x; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006667 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 +00006668 elif test ! -d $IPPSAMPLES; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006669 as_fn_error "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006670 elif test ! -d $IPPSAMPLES/speech-codecs; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006671 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006672 else
6673 # Remove trailing backslash
6674 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
6675
Benny Prijono3965f192010-02-10 18:46:05 +00006676 # Guess the libusc.a/libspeech.a build location
Benny Prijono28d3c562012-03-30 07:10:13 +00006677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5
6678$as_echo_n "checking Intel IPP USC build location... " >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006679 if test -d $IPPSAMPLES/speech-codecs/bin; then
6680 IPPVER=5
6681 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
6682 elif test -d $IPPSAMPLES/speech-codecs/_bin; then
6683 IPPVER=6
Benny Prijono46bd0842010-02-12 14:12:41 +00006684 if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
6685 # gcc compiler
6686 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
6687 elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
6688 # icc compiler
6689 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
6690 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6692$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6693as_fn_error "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
6694See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono46bd0842010-02-12 14:12:41 +00006695 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006696 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6699as_fn_error "unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?
6700See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006701 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006702
6703 # Test the directory
6704 if test ! -d $IPPSAMP_DIR; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6707as_fn_error "There's something wrong with this script, directory $IPPSAMP_DIR does not exist
6708See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00006709 exit 1;
6710 fi
6711
6712 if test "x$IPPVER" = "x5"; then
6713 IPPSAMP_LIBS="libusc.a"
6714 IPPSAMP_LDLIBS="-lusc"
6715 elif test "x$IPPVER" = "x6"; then
6716 IPPSAMP_LIBS="libspeech.a"
6717 IPPSAMP_LDLIBS="-lspeech"
6718 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6721as_fn_error "bug in this script: unsupported IPP version
6722See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006723 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006724
6725 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6728as_fn_error "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
6729See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00006730 fi
6731
Benny Prijono28d3c562012-03-30 07:10:13 +00006732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5
6733$as_echo "$IPPSAMP_DIR" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006734
6735 SAVED_CFLAGS="$CFLAGS"
6736 SAVED_LDFLAGS="$LDFLAGS"
6737 SAVED_LIBS="$LIBS"
6738
Benny Prijono3965f192010-02-10 18:46:05 +00006739 IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
6740 CFLAGS="$CFLAGS $IPPSAMP_INC"
6741 LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR"
6742 LIBS="$IPPSAMP_LDLIBS $LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006743
Benny Prijono28d3c562012-03-30 07:10:13 +00006744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5
6745$as_echo_n "checking Intel IPP USC usability... " >&6; }
6746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006747/* end confdefs.h. */
6748#include <usc.h>
6749
6750int
6751main ()
6752{
6753extern USC_Fxns USC_G729AFP_Fxns;
6754 ;
6755 return 0;
6756}
6757_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006758if ac_fn_c_try_link "$LINENO"; then :
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6760$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006761else
Benny Prijono28d3c562012-03-30 07:10:13 +00006762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6764as_fn_error "failed
6765See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006766fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006767rm -f core conftest.err conftest.$ac_objext \
6768 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006769
6770 CFLAGS="$SAVED_CFLAGS"
Benny Prijono3965f192010-02-10 18:46:05 +00006771 LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
6772 LIBS="$IPP_LIBS $SAVED_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006773
Benny Prijono3965f192010-02-10 18:46:05 +00006774 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
6775 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
6776 IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006777 fi
6778
Benny Prijono3965f192010-02-10 18:46:05 +00006779 CFLAGS="$CFLAGS $IPP_CFLAGS"
6780 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6781 LIBS="$LIBS $IPP_LIBS"
6782
Benny Prijono0822c192008-08-21 20:59:58 +00006783 ac_build_mak_vars="$ac_build_mak_vars\n\
6784export IPP_CFLAGS=$IPP_CFLAGS\n\
6785export IPP_LDFLAGS=$IPP_LDFLAGS\n\
6786export IPP_LIBS=$IPP_LIBS"
6787else
Benny Prijono28d3c562012-03-30 07:10:13 +00006788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5
6789$as_echo "Skipping Intel IPP settings (not wanted)" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006790fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006791
6792
6793
6794
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006795# Check whether --enable-ssl was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006796if test "${enable_ssl+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006797 enableval=$enable_ssl;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006798 if test "$enable_ssl" = "no"; then
6799 ac_no_ssl=1
Benny Prijono28d3c562012-03-30 07:10:13 +00006800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5
6801$as_echo "Checking if SSL support is disabled... yes" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006802 fi
6803
6804else
6805
Benny Prijono28d3c562012-03-30 07:10:13 +00006806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5
6807$as_echo "checking for OpenSSL installations.." >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006808
6809
6810
Benny Prijono28d3c562012-03-30 07:10:13 +00006811 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
6812if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006813 openssl_h_present=1
6814fi
6815
6816
Benny Prijono28d3c562012-03-30 07:10:13 +00006817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5
6818$as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; }
6819if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then :
6820 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006821else
6822 ac_check_lib_save_LIBS=$LIBS
6823LIBS="-lcrypto $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006825/* end confdefs.h. */
6826
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006827/* Override any GCC internal prototype to avoid an error.
6828 Use char because int might match the return type of a GCC
6829 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006830#ifdef __cplusplus
6831extern "C"
6832#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006833char ERR_load_BIO_strings ();
6834int
6835main ()
6836{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006837return ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006838 ;
6839 return 0;
6840}
6841_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006842if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006843 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
6844else
Benny Prijono28d3c562012-03-30 07:10:13 +00006845 ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006846fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006847rm -f core conftest.err conftest.$ac_objext \
6848 conftest$ac_exeext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006849LIBS=$ac_check_lib_save_LIBS
6850fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
6852$as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
6853if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006854 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
6855fi
6856
Benny Prijono28d3c562012-03-30 07:10:13 +00006857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
6858$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
6859if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
6860 $as_echo_n "(cached) " >&6
Benny Prijonod5233702010-01-13 13:09:45 +00006861else
6862 ac_check_lib_save_LIBS=$LIBS
6863LIBS="-lssl $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00006865/* end confdefs.h. */
6866
6867/* Override any GCC internal prototype to avoid an error.
6868 Use char because int might match the return type of a GCC
6869 builtin and then its argument prototype would still apply. */
6870#ifdef __cplusplus
6871extern "C"
6872#endif
6873char SSL_library_init ();
6874int
6875main ()
6876{
6877return SSL_library_init ();
6878 ;
6879 return 0;
6880}
6881_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006882if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonod5233702010-01-13 13:09:45 +00006883 ac_cv_lib_ssl_SSL_library_init=yes
6884else
Benny Prijono28d3c562012-03-30 07:10:13 +00006885 ac_cv_lib_ssl_SSL_library_init=no
Benny Prijonod5233702010-01-13 13:09:45 +00006886fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006887rm -f core conftest.err conftest.$ac_objext \
6888 conftest$ac_exeext conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00006889LIBS=$ac_check_lib_save_LIBS
6890fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6892$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
6893if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
Benny Prijonod5233702010-01-13 13:09:45 +00006894 libssl_present=1 && LIBS="$LIBS -lssl"
6895fi
6896
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006897 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5
6899$as_echo "OpenSSL library found, SSL support enabled" >&6; }
Nanang Izzuddin9c7616f2009-10-28 06:09:15 +00006900 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
6901 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
Benny Prijono28d3c562012-03-30 07:10:13 +00006902 $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
Nanang Izzuddinea6d3c42009-10-26 15:47:52 +00006903
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006904 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
6906$as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; }
Sauw Minge7dbbc82011-10-24 09:28:13 +00006907 fi
6908
6909fi
6910
6911
6912
6913# Check whether --enable-opencore_amrnb was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006914if test "${enable_opencore_amrnb+set}" = set; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00006915 enableval=$enable_opencore_amrnb;
6916 if test "$enable_opencore_amrnb" = "no"; then
6917 ac_no_opencore_amrnb=1
Benny Prijono28d3c562012-03-30 07:10:13 +00006918 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00006919
Benny Prijono28d3c562012-03-30 07:10:13 +00006920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OpenCORE AMR-NB support is disabled... yes" >&5
6921$as_echo "Checking if OpenCORE AMR-NB support is disabled... yes" >&6; }
Sauw Minge7dbbc82011-10-24 09:28:13 +00006922 fi
6923
6924else
6925
Benny Prijono28d3c562012-03-30 07:10:13 +00006926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenCORE AMR-NB installations.." >&5
6927$as_echo "checking for OpenCORE AMR-NB installations.." >&6; }
Sauw Minge7dbbc82011-10-24 09:28:13 +00006928
6929
Benny Prijono28d3c562012-03-30 07:10:13 +00006930 ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrnb/interf_enc.h" "ac_cv_header_opencore_amrnb_interf_enc_h" "$ac_includes_default"
6931if test "x$ac_cv_header_opencore_amrnb_interf_enc_h" = x""yes; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00006932 opencore_amrnb_h_present=1
6933fi
6934
6935
Benny Prijono28d3c562012-03-30 07:10:13 +00006936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Encoder_Interface_init in -lopencore-amrnb" >&5
6937$as_echo_n "checking for Encoder_Interface_init in -lopencore-amrnb... " >&6; }
6938if test "${ac_cv_lib_opencore_amrnb_Encoder_Interface_init+set}" = set; then :
6939 $as_echo_n "(cached) " >&6
Sauw Minge7dbbc82011-10-24 09:28:13 +00006940else
6941 ac_check_lib_save_LIBS=$LIBS
6942LIBS="-lopencore-amrnb $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Minge7dbbc82011-10-24 09:28:13 +00006944/* end confdefs.h. */
6945
6946/* Override any GCC internal prototype to avoid an error.
6947 Use char because int might match the return type of a GCC
6948 builtin and then its argument prototype would still apply. */
6949#ifdef __cplusplus
6950extern "C"
6951#endif
6952char Encoder_Interface_init ();
6953int
6954main ()
6955{
6956return Encoder_Interface_init ();
6957 ;
6958 return 0;
6959}
6960_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006961if ac_fn_c_try_link "$LINENO"; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00006962 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=yes
6963else
Benny Prijono28d3c562012-03-30 07:10:13 +00006964 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=no
Sauw Minge7dbbc82011-10-24 09:28:13 +00006965fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006966rm -f core conftest.err conftest.$ac_objext \
6967 conftest$ac_exeext conftest.$ac_ext
Sauw Minge7dbbc82011-10-24 09:28:13 +00006968LIBS=$ac_check_lib_save_LIBS
6969fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&5
6971$as_echo "$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&6; }
6972if test "x$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" = x""yes; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00006973 opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb"
6974fi
6975
6976 if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-NB library found, AMR-NB support enabled" >&5
6978$as_echo "OpenCORE AMR-NB library found, AMR-NB support enabled" >&6; }
6979 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00006980
6981 else
6982 ac_no_opencore_amrnb=1
Benny Prijono28d3c562012-03-30 07:10:13 +00006983 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00006984
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006985 fi
6986
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006987fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006988
6989
6990
6991
Benny Prijono28d3c562012-03-30 07:10:13 +00006992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5
6993$as_echo_n "checking if select() needs correct nfds... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006994case $target in
Benny Prijono28d3c562012-03-30 07:10:13 +00006995 *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006996
Benny Prijono28d3c562012-03-30 07:10:13 +00006997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6998$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006999 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007000 *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007001
Benny Prijono28d3c562012-03-30 07:10:13 +00007002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7003$as_echo "no (default)" >&6; }
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
7005$as_echo "** Decided that select() doesn't need correct nfds (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007006 ;;
7007esac
7008
Benny Prijono28d3c562012-03-30 07:10:13 +00007009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5
7010$as_echo_n "checking if pj_thread_create() should enforce stack size... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007011case $target in
Benny Prijono28d3c562012-03-30 07:10:13 +00007012 *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007013
Benny Prijono28d3c562012-03-30 07:10:13 +00007014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7015$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007016 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007017 *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007018
Benny Prijono28d3c562012-03-30 07:10:13 +00007019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7020$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007021 ;;
7022esac
7023
Benny Prijono28d3c562012-03-30 07:10:13 +00007024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5
7025$as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007026case $target in
Benny Prijono28d3c562012-03-30 07:10:13 +00007027 *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007028
Benny Prijono28d3c562012-03-30 07:10:13 +00007029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7030$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007031 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007032 *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007033
Benny Prijono28d3c562012-03-30 07:10:13 +00007034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7035$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007036 ;;
7037esac
7038
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007039case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007040 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00007041 $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007042
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007043 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007044 *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007045
Benny Prijono28d3c562012-03-30 07:10:13 +00007046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
7047$as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007048 ;;
7049esac
7050
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007051case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007052 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00007053 $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007054
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007055 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007056 *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007057
Benny Prijono28d3c562012-03-30 07:10:13 +00007058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
7059$as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007060 ;;
7061esac
7062
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007063
7064
7065
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007066if test "$build" = "$host"; then
7067 ac_cross_compile=
7068else
Benny Prijono5b818b22006-09-17 22:58:51 +00007069 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007070fi
7071ac_linux_poll=select
7072
7073ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007074
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007075
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007076case $target in
7077 *rtems*)
7078 ac_main_obj=main_rtems.o
7079 ;;
7080 *)
7081 ac_main_obj=main.o
7082 ;;
7083esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007084
Benny Prijono0822c192008-08-21 20:59:58 +00007085
7086ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007087cat >confcache <<\_ACEOF
7088# This file is a shell script that caches the results of configure
7089# tests run on this system so they can be shared between configure
7090# scripts and configure runs, see configure's option --config-cache.
7091# It is not useful on other systems. If it contains results you don't
7092# want to keep, you may remove or edit it.
7093#
7094# config.status only pays attention to the cache file if you give it
7095# the --recheck option to rerun configure.
7096#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007097# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007098# loading this file, other *unset* `ac_cv_foo' will be assigned the
7099# following values.
7100
7101_ACEOF
7102
7103# The following way of writing the cache mishandles newlines in values,
7104# but we know of no workaround that is simple, portable, and efficient.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007105# So, we kill variables containing newlines.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007106# Ultrix sh set writes to stderr and can't be redirected directly,
7107# and sets the high bit in the cache file unless we assign to the vars.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007108(
7109 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7110 eval ac_val=\$$ac_var
7111 case $ac_val in #(
7112 *${as_nl}*)
7113 case $ac_var in #(
Benny Prijono28d3c562012-03-30 07:10:13 +00007114 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7115$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007116 esac
7117 case $ac_var in #(
7118 _ | IFS | as_nl) ;; #(
Benny Prijono28d3c562012-03-30 07:10:13 +00007119 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7120 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007121 esac ;;
7122 esac
7123 done
7124
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007125 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007126 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7127 *${as_nl}ac_space=\ *)
Benny Prijono28d3c562012-03-30 07:10:13 +00007128 # `set' does not quote correctly, so add quotes: double-quote
7129 # substitution turns \\\\ into \\, and sed turns \\ into \.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007130 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007131 "s/'/'\\\\''/g;
7132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007133 ;; #(
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007134 *)
7135 # `set' quotes correctly as required by POSIX, so do not add quotes.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007136 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007137 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007138 esac |
7139 sort
7140) |
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007141 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007142 /^ac_cv_env_/b end
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007143 t clear
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007144 :clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007145 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7146 t end
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007147 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7148 :end' >>confcache
7149if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7150 if test -w "$cache_file"; then
7151 test "x$cache_file" != "x/dev/null" &&
Benny Prijono28d3c562012-03-30 07:10:13 +00007152 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7153$as_echo "$as_me: updating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007154 cat confcache >$cache_file
7155 else
Benny Prijono28d3c562012-03-30 07:10:13 +00007156 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7157$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007158 fi
7159fi
7160rm -f confcache
7161
7162test "x$prefix" = xNONE && prefix=$ac_default_prefix
7163# Let make expand exec_prefix.
7164test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7165
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007166DEFS=-DHAVE_CONFIG_H
7167
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007168ac_libobjs=
7169ac_ltlibobjs=
7170for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7171 # 1. Remove the extension, and $U if already installed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007172 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Benny Prijono28d3c562012-03-30 07:10:13 +00007173 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007174 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7175 # will be set to the directory where LIBOBJS objects are built.
Benny Prijono28d3c562012-03-30 07:10:13 +00007176 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7177 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007178done
7179LIBOBJS=$ac_libobjs
7180
7181LTLIBOBJS=$ac_ltlibobjs
7182
7183
7184
Benny Prijono28d3c562012-03-30 07:10:13 +00007185
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007186: ${CONFIG_STATUS=./config.status}
Benny Prijono28d3c562012-03-30 07:10:13 +00007187ac_write_fail=0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007188ac_clean_files_save=$ac_clean_files
7189ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono28d3c562012-03-30 07:10:13 +00007190{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7191$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7192as_write_fail=0
7193cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007194#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007195# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007196# Run this file to recreate the current configuration.
7197# Compiler output produced by configure, useful for debugging
7198# configure, is in config.log if it exists.
7199
7200debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007201ac_cs_recheck=false
7202ac_cs_silent=false
Benny Prijono36d32492011-12-28 08:42:23 +00007203
Benny Prijono28d3c562012-03-30 07:10:13 +00007204SHELL=\${CONFIG_SHELL-$SHELL}
7205export SHELL
7206_ASEOF
7207cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7208## -------------------- ##
7209## M4sh Initialization. ##
7210## -------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007211
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007212# Be more Bourne compatible
7213DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijono28d3c562012-03-30 07:10:13 +00007214if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007215 emulate sh
7216 NULLCMD=:
Benny Prijono28d3c562012-03-30 07:10:13 +00007217 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007218 # is contrary to our usage. Disable this feature.
7219 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007220 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +00007221else
Benny Prijono28d3c562012-03-30 07:10:13 +00007222 case `(set -o) 2>/dev/null` in #(
7223 *posix*) :
7224 set -o posix ;; #(
7225 *) :
7226 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007227esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007228fi
7229
7230
Benny Prijono28d3c562012-03-30 07:10:13 +00007231as_nl='
7232'
7233export as_nl
7234# Printing a long string crashes Solaris 7 /usr/bin/printf.
7235as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7236as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7237as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7238# Prefer a ksh shell builtin over an external printf program on Solaris,
7239# but without wasting forks for bash or zsh.
7240if test -z "$BASH_VERSION$ZSH_VERSION" \
7241 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7242 as_echo='print -r --'
7243 as_echo_n='print -rn --'
7244elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7245 as_echo='printf %s\n'
7246 as_echo_n='printf %s'
7247else
7248 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7249 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7250 as_echo_n='/usr/ucb/echo -n'
7251 else
7252 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7253 as_echo_n_body='eval
7254 arg=$1;
7255 case $arg in #(
7256 *"$as_nl"*)
7257 expr "X$arg" : "X\\(.*\\)$as_nl";
7258 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7259 esac;
7260 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7261 '
7262 export as_echo_n_body
7263 as_echo_n='sh -c $as_echo_n_body as_echo'
7264 fi
7265 export as_echo_body
7266 as_echo='sh -c $as_echo_body as_echo'
7267fi
Benny Prijonod5233702010-01-13 13:09:45 +00007268
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007269# The user is always right.
7270if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007271 PATH_SEPARATOR=:
7272 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7273 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7274 PATH_SEPARATOR=';'
7275 }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007276fi
7277
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007278
7279# IFS
7280# We need space, tab and new line, in precisely that order. Quoting is
7281# there to prevent editors from complaining about space-tab.
7282# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7283# splitting by setting IFS to empty value.)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007284IFS=" "" $as_nl"
7285
7286# Find who we are. Look in the path if we contain no directory separator.
Benny Prijono28d3c562012-03-30 07:10:13 +00007287case $0 in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007288 *[\\/]* ) as_myself=$0 ;;
7289 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007290for as_dir in $PATH
7291do
7292 IFS=$as_save_IFS
7293 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00007294 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7295 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007296IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007297
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007298 ;;
7299esac
7300# We did not find ourselves, most probably we were run as `sh COMMAND'
7301# in which case we are not to be found in the path.
7302if test "x$as_myself" = x; then
7303 as_myself=$0
7304fi
7305if test ! -f "$as_myself"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007306 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7307 exit 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007308fi
7309
Benny Prijono28d3c562012-03-30 07:10:13 +00007310# Unset variables that we do not need and which cause bugs (e.g. in
7311# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7312# suppresses any "Segmentation fault" message there. '((' could
7313# trigger a bug in pdksh 5.2.14.
7314for as_var in BASH_ENV ENV MAIL MAILPATH
7315do eval test x\${$as_var+set} = xset \
7316 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007317done
7318PS1='$ '
7319PS2='> '
7320PS4='+ '
7321
7322# NLS nuisances.
Benny Prijono28d3c562012-03-30 07:10:13 +00007323LC_ALL=C
7324export LC_ALL
7325LANGUAGE=C
7326export LANGUAGE
Benny Prijonoe1105232011-10-26 06:49:34 +00007327
Benny Prijono28d3c562012-03-30 07:10:13 +00007328# CDPATH.
7329(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7330
7331
7332# as_fn_error ERROR [LINENO LOG_FD]
7333# ---------------------------------
7334# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7335# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7336# script with status $?, using 1 if that was 0.
7337as_fn_error ()
7338{
7339 as_status=$?; test $as_status -eq 0 && as_status=1
7340 if test "$3"; then
7341 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7342 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7343 fi
7344 $as_echo "$as_me: error: $1" >&2
7345 as_fn_exit $as_status
7346} # as_fn_error
7347
7348
7349# as_fn_set_status STATUS
7350# -----------------------
7351# Set $? to STATUS, without forking.
7352as_fn_set_status ()
7353{
7354 return $1
7355} # as_fn_set_status
7356
7357# as_fn_exit STATUS
7358# -----------------
7359# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7360as_fn_exit ()
7361{
7362 set +e
7363 as_fn_set_status $1
7364 exit $1
7365} # as_fn_exit
7366
7367# as_fn_unset VAR
7368# ---------------
7369# Portably unset VAR.
7370as_fn_unset ()
7371{
7372 { eval $1=; unset $1;}
7373}
7374as_unset=as_fn_unset
7375# as_fn_append VAR VALUE
7376# ----------------------
7377# Append the text in VALUE to the end of the definition contained in VAR. Take
7378# advantage of any shell optimizations that allow amortized linear growth over
7379# repeated appends, instead of the typical quadratic growth present in naive
7380# implementations.
7381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7382 eval 'as_fn_append ()
7383 {
7384 eval $1+=\$2
7385 }'
7386else
7387 as_fn_append ()
7388 {
7389 eval $1=\$$1\$2
7390 }
7391fi # as_fn_append
7392
7393# as_fn_arith ARG...
7394# ------------------
7395# Perform arithmetic evaluation on the ARGs, and store the result in the
7396# global $as_val. Take advantage of shells that can avoid forks. The arguments
7397# must be portable across $(()) and expr.
7398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7399 eval 'as_fn_arith ()
7400 {
7401 as_val=$(( $* ))
7402 }'
7403else
7404 as_fn_arith ()
7405 {
7406 as_val=`expr "$@" || test $? -eq 1`
7407 }
7408fi # as_fn_arith
7409
7410
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007411if expr a : '\(a\)' >/dev/null 2>&1 &&
7412 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7413 as_expr=expr
7414else
7415 as_expr=false
7416fi
7417
7418if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7419 as_basename=basename
7420else
7421 as_basename=false
7422fi
7423
Benny Prijono28d3c562012-03-30 07:10:13 +00007424if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7425 as_dirname=dirname
7426else
7427 as_dirname=false
7428fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007429
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007430as_me=`$as_basename -- "$0" ||
7431$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7432 X"$0" : 'X\(//\)$' \| \
7433 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono28d3c562012-03-30 07:10:13 +00007434$as_echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007435 sed '/^.*\/\([^/][^/]*\)\/*$/{
7436 s//\1/
7437 q
7438 }
7439 /^X\/\(\/\/\)$/{
7440 s//\1/
7441 q
7442 }
7443 /^X\/\(\/\).*/{
7444 s//\1/
7445 q
7446 }
7447 s/.*/./; q'`
7448
Benny Prijono28d3c562012-03-30 07:10:13 +00007449# Avoid depending upon Character Ranges.
7450as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7451as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7452as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7453as_cr_digits='0123456789'
7454as_cr_alnum=$as_cr_Letters$as_cr_digits
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007455
7456ECHO_C= ECHO_N= ECHO_T=
Benny Prijono28d3c562012-03-30 07:10:13 +00007457case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007458-n*)
Benny Prijono28d3c562012-03-30 07:10:13 +00007459 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijono28d3c562012-03-30 07:10:13 +00007461 xy) ECHO_C='\c';;
7462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7463 ECHO_T=' ';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007464 esac;;
7465*)
7466 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007467esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007468
7469rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007470if test -d conf$$.dir; then
7471 rm -f conf$$.dir/conf$$.file
7472else
7473 rm -f conf$$.dir
Benny Prijono28d3c562012-03-30 07:10:13 +00007474 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007475fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007476if (echo >conf$$.file) 2>/dev/null; then
7477 if ln -s conf$$.file conf$$ 2>/dev/null; then
7478 as_ln_s='ln -s'
7479 # ... but there are two gotchas:
7480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7482 # In both cases, we have to default to `cp -p'.
7483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7484 as_ln_s='cp -p'
7485 elif ln conf$$.file conf$$ 2>/dev/null; then
7486 as_ln_s=ln
7487 else
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007488 as_ln_s='cp -p'
Benny Prijono28d3c562012-03-30 07:10:13 +00007489 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007490else
7491 as_ln_s='cp -p'
7492fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7494rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007495
Benny Prijono28d3c562012-03-30 07:10:13 +00007496
7497# as_fn_mkdir_p
7498# -------------
7499# Create "$as_dir" as a directory, including parents if necessary.
7500as_fn_mkdir_p ()
7501{
7502
7503 case $as_dir in #(
7504 -*) as_dir=./$as_dir;;
7505 esac
7506 test -d "$as_dir" || eval $as_mkdir_p || {
7507 as_dirs=
7508 while :; do
7509 case $as_dir in #(
7510 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7511 *) as_qdir=$as_dir;;
7512 esac
7513 as_dirs="'$as_qdir' $as_dirs"
7514 as_dir=`$as_dirname -- "$as_dir" ||
7515$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7516 X"$as_dir" : 'X\(//\)[^/]' \| \
7517 X"$as_dir" : 'X\(//\)$' \| \
7518 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7519$as_echo X"$as_dir" |
7520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7521 s//\1/
7522 q
7523 }
7524 /^X\(\/\/\)[^/].*/{
7525 s//\1/
7526 q
7527 }
7528 /^X\(\/\/\)$/{
7529 s//\1/
7530 q
7531 }
7532 /^X\(\/\).*/{
7533 s//\1/
7534 q
7535 }
7536 s/.*/./; q'`
7537 test -d "$as_dir" && break
7538 done
7539 test -z "$as_dirs" || eval "mkdir $as_dirs"
7540 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7541
7542
7543} # as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007544if mkdir -p . 2>/dev/null; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007545 as_mkdir_p='mkdir -p "$as_dir"'
Benny Prijono39ae2da2006-10-13 17:57:42 +00007546else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007547 test -d ./-p && rmdir ./-p
7548 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +00007549fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007550
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007551if test -x / >/dev/null 2>&1; then
7552 as_test_x='test -x'
7553else
7554 if ls -dL / >/dev/null 2>&1; then
7555 as_ls_L_option=L
7556 else
7557 as_ls_L_option=
7558 fi
7559 as_test_x='
7560 eval sh -c '\''
7561 if test -d "$1"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007562 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007563 else
Benny Prijono28d3c562012-03-30 07:10:13 +00007564 case $1 in #(
7565 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007566 esac;
Benny Prijono28d3c562012-03-30 07:10:13 +00007567 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007568 ???[sx]*):;;*)false;;esac;fi
7569 '\'' sh
7570 '
7571fi
7572as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007573
7574# Sed expression to map a string onto a valid CPP name.
7575as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7576
7577# Sed expression to map a string onto a valid variable name.
7578as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7579
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007580
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007581exec 6>&1
Benny Prijono28d3c562012-03-30 07:10:13 +00007582## ----------------------------------- ##
7583## Main body of $CONFIG_STATUS script. ##
7584## ----------------------------------- ##
7585_ASEOF
7586test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007587
Benny Prijono28d3c562012-03-30 07:10:13 +00007588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7589# Save the log message, to keep $0 and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007590# report actual input values of CONFIG_FILES etc. instead of their
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007591# values after options handling.
7592ac_log="
Benny Prijono28d3c562012-03-30 07:10:13 +00007593This file was extended by pjproject $as_me 2.x, which was
7594generated by GNU Autoconf 2.65. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007595
7596 CONFIG_FILES = $CONFIG_FILES
7597 CONFIG_HEADERS = $CONFIG_HEADERS
7598 CONFIG_LINKS = $CONFIG_LINKS
7599 CONFIG_COMMANDS = $CONFIG_COMMANDS
7600 $ $0 $@
7601
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007602on `(hostname || uname -n) 2>/dev/null | sed 1q`
7603"
7604
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007605_ACEOF
7606
Benny Prijono28d3c562012-03-30 07:10:13 +00007607case $ac_config_files in *"
7608"*) set x $ac_config_files; shift; ac_config_files=$*;;
7609esac
7610
7611case $ac_config_headers in *"
7612"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7613esac
7614
7615
7616cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007617# Files that config.status was made for.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007618config_files="$ac_config_files"
7619config_headers="$ac_config_headers"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007620
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007621_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007622
Benny Prijono28d3c562012-03-30 07:10:13 +00007623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007624ac_cs_usage="\
Benny Prijono28d3c562012-03-30 07:10:13 +00007625\`$as_me' instantiates files and other configuration actions
7626from templates according to the current configuration. Unless the files
7627and actions are specified as TAGs, all are instantiated by default.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007628
Benny Prijono28d3c562012-03-30 07:10:13 +00007629Usage: $0 [OPTION]... [TAG]...
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007630
7631 -h, --help print this help, then exit
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007632 -V, --version print version number and configuration settings, then exit
Benny Prijono28d3c562012-03-30 07:10:13 +00007633 --config print configuration, then exit
7634 -q, --quiet, --silent
7635 do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007636 -d, --debug don't remove temporary files
7637 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijono28d3c562012-03-30 07:10:13 +00007638 --file=FILE[:TEMPLATE]
7639 instantiate the configuration file FILE
7640 --header=FILE[:TEMPLATE]
7641 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007642
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007643Configuration files:
7644$config_files
7645
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007646Configuration headers:
7647$config_headers
7648
Benny Prijono28d3c562012-03-30 07:10:13 +00007649Report bugs to the package provider."
Benny Prijonoe2746132008-09-27 13:16:35 +00007650
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007651_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7653ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007654ac_cs_version="\\
Benny Prijono28d3c562012-03-30 07:10:13 +00007655pjproject config.status 2.x
7656configured by $0, generated by GNU Autoconf 2.65,
7657 with options \\"\$ac_cs_config\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007658
Benny Prijono28d3c562012-03-30 07:10:13 +00007659Copyright (C) 2009 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007660This config.status script is free software; the Free Software Foundation
7661gives unlimited permission to copy, distribute and modify it."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007662
7663ac_pwd='$ac_pwd'
7664srcdir='$srcdir'
Benny Prijono28d3c562012-03-30 07:10:13 +00007665test -n "\$AWK" || AWK=awk
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007666_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007667
Benny Prijono28d3c562012-03-30 07:10:13 +00007668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7669# The default lists apply if the user does not specify any file.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007670ac_need_defaults=:
7671while test $# != 0
7672do
7673 case $1 in
7674 --*=*)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007675 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7676 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007677 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007678 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007679 *)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007680 ac_option=$1
7681 ac_optarg=$2
7682 ac_shift=shift
7683 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007684 esac
7685
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007686 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007687 # Handling of the options.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007688 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007689 ac_cs_recheck=: ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007690 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Benny Prijono28d3c562012-03-30 07:10:13 +00007691 $as_echo "$ac_cs_version"; exit ;;
7692 --config | --confi | --conf | --con | --co | --c )
7693 $as_echo "$ac_cs_config"; exit ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007694 --debug | --debu | --deb | --de | --d | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007695 debug=: ;;
7696 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007697 $ac_shift
Benny Prijono28d3c562012-03-30 07:10:13 +00007698 case $ac_optarg in
7699 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7700 esac
7701 as_fn_append CONFIG_FILES " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007702 ac_need_defaults=false;;
7703 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007704 $ac_shift
Benny Prijono28d3c562012-03-30 07:10:13 +00007705 case $ac_optarg in
7706 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7707 esac
7708 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007709 ac_need_defaults=false;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007710 --he | --h)
7711 # Conflict between --help and --header
Benny Prijono28d3c562012-03-30 07:10:13 +00007712 as_fn_error "ambiguous option: \`$1'
7713Try \`$0 --help' for more information.";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007714 --help | --hel | -h )
Benny Prijono28d3c562012-03-30 07:10:13 +00007715 $as_echo "$ac_cs_usage"; exit ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007716 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7717 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7718 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007719
7720 # This is an error.
Benny Prijono28d3c562012-03-30 07:10:13 +00007721 -*) as_fn_error "unrecognized option: \`$1'
7722Try \`$0 --help' for more information." ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007723
Benny Prijono28d3c562012-03-30 07:10:13 +00007724 *) as_fn_append ac_config_targets " $1"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007725 ac_need_defaults=false ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007726
7727 esac
7728 shift
7729done
7730
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007731ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007732
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007733if $ac_cs_silent; then
7734 exec 6>/dev/null
7735 ac_configure_extra_args="$ac_configure_extra_args --silent"
7736fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007737
7738_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007740if \$ac_cs_recheck; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007741 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7742 shift
7743 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7744 CONFIG_SHELL='$SHELL'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007745 export CONFIG_SHELL
Benny Prijono28d3c562012-03-30 07:10:13 +00007746 exec "\$@"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007747fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007748
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007749_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007751exec 5>>config.log
7752{
7753 echo
7754 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7755## Running $as_me. ##
7756_ASBOX
Benny Prijono28d3c562012-03-30 07:10:13 +00007757 $as_echo "$ac_log"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007758} >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007759
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007760_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007762_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007763
Benny Prijono28d3c562012-03-30 07:10:13 +00007764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007765
7766# Handling of arguments.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007767for ac_config_target in $ac_config_targets
7768do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007769 case $ac_config_target in
7770 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
7771 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
7772 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
7773 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
7774 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
7775 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
7776 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
Benny Prijono8ec5eae2010-05-12 10:59:20 +00007777 "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007778 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
7779 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
7780 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
7781 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007782 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijono8a9b3b22010-01-14 14:46:54 +00007783 "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 +00007784
Benny Prijono28d3c562012-03-30 07:10:13 +00007785 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007786 esac
7787done
7788
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007789
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007790# If the user did not use the arguments to specify the items to instantiate,
7791# then the envvar interface is used. Set only those that are not.
7792# We use the long form for the default assignment because of an extremely
7793# bizarre bug on SunOS 4.1.3.
7794if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007795 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007796 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7797fi
7798
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007799# Have a temporary directory for convenience. Make it in the build tree
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007800# simply because there is no reason against having it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007801# creating and moving files from /tmp can sometimes cause problems.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007802# Hook for its removal unless debugging.
7803# Note that there is a small window in which the directory will not be cleaned:
7804# after its creation but before its name has been assigned to `$tmp'.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007805$debug ||
7806{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007807 tmp=
7808 trap 'exit_status=$?
7809 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7810' 0
Benny Prijono28d3c562012-03-30 07:10:13 +00007811 trap 'as_fn_exit 1' 1 2 13 15
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007812}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007813# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007814
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007815{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007816 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007817 test -n "$tmp" && test -d "$tmp"
7818} ||
7819{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007820 tmp=./conf$$-$RANDOM
7821 (umask 077 && mkdir "$tmp")
Benny Prijono28d3c562012-03-30 07:10:13 +00007822} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007823
Benny Prijono28d3c562012-03-30 07:10:13 +00007824# Set up the scripts for CONFIG_FILES section.
7825# No need to generate them if there are no CONFIG_FILES.
7826# This happens for instance with `./config.status config.h'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007827if test -n "$CONFIG_FILES"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007828
Benny Prijono28d3c562012-03-30 07:10:13 +00007829
7830ac_cr=`echo X | tr X '\015'`
7831# On cygwin, bash can eat \r inside `` if the user requested igncr.
7832# But we know of no other shell where ac_cr would be empty at this
7833# point, so we can use a bashism as a fallback.
7834if test "x$ac_cr" = x; then
7835 eval ac_cr=\$\'\\r\'
7836fi
7837ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7838if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7839 ac_cs_awk_cr='\r'
7840else
7841 ac_cs_awk_cr=$ac_cr
7842fi
7843
7844echo 'BEGIN {' >"$tmp/subs1.awk" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007845_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007846
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007847
Benny Prijono28d3c562012-03-30 07:10:13 +00007848{
7849 echo "cat >conf$$subs.awk <<_ACEOF" &&
7850 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7851 echo "_ACEOF"
7852} >conf$$subs.sh ||
7853 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7854ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007855ac_delim='%!_!# '
7856for ac_last_try in false false false false false :; do
Benny Prijono28d3c562012-03-30 07:10:13 +00007857 . ./conf$$subs.sh ||
7858 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007859
Benny Prijono28d3c562012-03-30 07:10:13 +00007860 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7861 if test $ac_delim_n = $ac_delim_num; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007862 break
7863 elif $ac_last_try; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007864 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007865 else
7866 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007867 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007868done
Benny Prijono28d3c562012-03-30 07:10:13 +00007869rm -f conf$$subs.sh
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007870
Benny Prijono28d3c562012-03-30 07:10:13 +00007871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7872cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007873_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007874sed -n '
7875h
7876s/^/S["/; s/!.*/"]=/
7877p
7878g
7879s/^[^!]*!//
7880:repl
7881t repl
7882s/'"$ac_delim"'$//
7883t delim
7884:nl
7885h
7886s/\(.\{148\}\)..*/\1/
7887t more1
7888s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7889p
7890n
7891b repl
7892:more1
7893s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7894p
7895g
7896s/.\{148\}//
7897t nl
7898:delim
7899h
7900s/\(.\{148\}\)..*/\1/
7901t more2
7902s/["\\]/\\&/g; s/^/"/; s/$/"/
7903p
7904b
7905:more2
7906s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7907p
7908g
7909s/.\{148\}//
7910t delim
7911' <conf$$subs.awk | sed '
7912/^[^""]/{
7913 N
7914 s/\n//
7915}
7916' >>$CONFIG_STATUS || ac_write_fail=1
7917rm -f conf$$subs.awk
7918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7919_ACAWK
7920cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7921 for (key in S) S_is_set[key] = 1
7922 FS = ""
7923
7924}
7925{
7926 line = $ 0
7927 nfields = split(line, field, "@")
7928 substed = 0
7929 len = length(field[1])
7930 for (i = 2; i < nfields; i++) {
7931 key = field[i]
7932 keylen = length(key)
7933 if (S_is_set[key]) {
7934 value = S[key]
7935 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7936 len += length(value) + length(field[++i])
7937 substed = 1
7938 } else
7939 len += 1 + keylen
7940 }
7941
7942 print line
7943}
7944
7945_ACAWK
Benny Prijonod4306432010-05-01 22:05:41 +00007946_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7948if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7949 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7950else
7951 cat
7952fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7953 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Benny Prijonod4306432010-05-01 22:05:41 +00007954_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007955
7956# VPATH may cause trouble with some makes, so we remove $(srcdir),
7957# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7958# trailing colons and then remove the whole line if VPATH becomes empty
7959# (actually we leave an empty line to preserve line numbers).
7960if test "x$srcdir" = x.; then
7961 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7962s/:*\$(srcdir):*/:/
7963s/:*\${srcdir}:*/:/
7964s/:*@srcdir@:*/:/
7965s/^\([^=]*=[ ]*\):*/\1/
7966s/:*$//
7967s/^[^=]*=[ ]*$//
7968}'
7969fi
7970
Benny Prijono28d3c562012-03-30 07:10:13 +00007971cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007972fi # test -n "$CONFIG_FILES"
7973
Benny Prijono28d3c562012-03-30 07:10:13 +00007974# Set up the scripts for CONFIG_HEADERS section.
7975# No need to generate them if there are no CONFIG_HEADERS.
7976# This happens for instance with `./config.status Makefile'.
7977if test -n "$CONFIG_HEADERS"; then
7978cat >"$tmp/defines.awk" <<\_ACAWK ||
7979BEGIN {
7980_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007981
Benny Prijono28d3c562012-03-30 07:10:13 +00007982# Transform confdefs.h into an awk script `defines.awk', embedded as
7983# here-document in config.status, that substitutes the proper values into
7984# config.h.in to produce config.h.
7985
7986# Create a delimiter string that does not exist in confdefs.h, to ease
7987# handling of long lines.
7988ac_delim='%!_!# '
7989for ac_last_try in false false :; do
7990 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7991 if test -z "$ac_t"; then
7992 break
7993 elif $ac_last_try; then
7994 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7995 else
7996 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7997 fi
7998done
7999
8000# For the awk script, D is an array of macro values keyed by name,
8001# likewise P contains macro parameters if any. Preserve backslash
8002# newline sequences.
8003
8004ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8005sed -n '
8006s/.\{148\}/&'"$ac_delim"'/g
8007t rset
8008:rset
8009s/^[ ]*#[ ]*define[ ][ ]*/ /
8010t def
8011d
8012:def
8013s/\\$//
8014t bsnl
8015s/["\\]/\\&/g
8016s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8017D["\1"]=" \3"/p
8018s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8019d
8020:bsnl
8021s/["\\]/\\&/g
8022s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8023D["\1"]=" \3\\\\\\n"\\/p
8024t cont
8025s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8026t cont
8027d
8028:cont
8029n
8030s/.\{148\}/&'"$ac_delim"'/g
8031t clear
8032:clear
8033s/\\$//
8034t bsnlc
8035s/["\\]/\\&/g; s/^/"/; s/$/"/p
8036d
8037:bsnlc
8038s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8039b cont
8040' <confdefs.h | sed '
8041s/'"$ac_delim"'/"\\\
8042"/g' >>$CONFIG_STATUS || ac_write_fail=1
8043
8044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8045 for (key in D) D_is_set[key] = 1
8046 FS = ""
8047}
8048/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8049 line = \$ 0
8050 split(line, arg, " ")
8051 if (arg[1] == "#") {
8052 defundef = arg[2]
8053 mac1 = arg[3]
8054 } else {
8055 defundef = substr(arg[1], 2)
8056 mac1 = arg[2]
8057 }
8058 split(mac1, mac2, "(") #)
8059 macro = mac2[1]
8060 prefix = substr(line, 1, index(line, defundef) - 1)
8061 if (D_is_set[macro]) {
8062 # Preserve the white space surrounding the "#".
8063 print prefix "define", macro P[macro] D[macro]
8064 next
8065 } else {
8066 # Replace #undef with comments. This is necessary, for example,
8067 # in the case of _POSIX_SOURCE, which is predefined and required
8068 # on some systems where configure will not decide to define it.
8069 if (defundef == "undef") {
8070 print "/*", prefix defundef, macro, "*/"
8071 next
8072 }
8073 }
8074}
8075{ print }
8076_ACAWK
8077_ACEOF
8078cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8079 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8080fi # test -n "$CONFIG_HEADERS"
8081
8082
8083eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8084shift
8085for ac_tag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008086do
8087 case $ac_tag in
8088 :[FHLC]) ac_mode=$ac_tag; continue;;
8089 esac
8090 case $ac_mode$ac_tag in
8091 :[FHL]*:*);;
Benny Prijono28d3c562012-03-30 07:10:13 +00008092 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008093 :[FH]-) ac_tag=-:-;;
8094 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8095 esac
8096 ac_save_IFS=$IFS
8097 IFS=:
8098 set x $ac_tag
8099 IFS=$ac_save_IFS
8100 shift
8101 ac_file=$1
8102 shift
8103
8104 case $ac_mode in
8105 :L) ac_source=$1;;
8106 :[FH])
8107 ac_file_inputs=
8108 for ac_f
8109 do
8110 case $ac_f in
8111 -) ac_f="$tmp/stdin";;
8112 *) # Look for the file first in the build tree, then in the source tree
8113 # (if the path is not absolute). The absolute path cannot be DOS-style,
8114 # because $ac_f cannot contain `:'.
8115 test -f "$ac_f" ||
8116 case $ac_f in
8117 [\\/$]*) false;;
8118 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8119 esac ||
Benny Prijono28d3c562012-03-30 07:10:13 +00008120 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008121 esac
Benny Prijono28d3c562012-03-30 07:10:13 +00008122 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8123 as_fn_append ac_file_inputs " '$ac_f'"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008124 done
8125
8126 # Let's still pretend it is `configure' which instantiates (i.e., don't
8127 # use $as_me), people would be surprised to read:
8128 # /* config.h. Generated by config.status. */
Benny Prijono28d3c562012-03-30 07:10:13 +00008129 configure_input='Generated from '`
8130 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8131 `' by configure.'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008132 if test x"$ac_file" != x-; then
8133 configure_input="$ac_file. $configure_input"
Benny Prijono28d3c562012-03-30 07:10:13 +00008134 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8135$as_echo "$as_me: creating $ac_file" >&6;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008136 fi
Benny Prijono28d3c562012-03-30 07:10:13 +00008137 # Neutralize special characters interpreted by sed in replacement strings.
8138 case $configure_input in #(
8139 *\&* | *\|* | *\\* )
8140 ac_sed_conf_input=`$as_echo "$configure_input" |
8141 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8142 *) ac_sed_conf_input=$configure_input;;
8143 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008144
8145 case $ac_tag in
Benny Prijono28d3c562012-03-30 07:10:13 +00008146 *:-:* | *:-) cat >"$tmp/stdin" \
8147 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008148 esac
8149 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008150 esac
8151
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008152 ac_dir=`$as_dirname -- "$ac_file" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008153$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8154 X"$ac_file" : 'X\(//\)[^/]' \| \
8155 X"$ac_file" : 'X\(//\)$' \| \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008156 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono28d3c562012-03-30 07:10:13 +00008157$as_echo X"$ac_file" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8159 s//\1/
8160 q
8161 }
8162 /^X\(\/\/\)[^/].*/{
8163 s//\1/
8164 q
8165 }
8166 /^X\(\/\/\)$/{
8167 s//\1/
8168 q
8169 }
8170 /^X\(\/\).*/{
8171 s//\1/
8172 q
8173 }
8174 s/.*/./; q'`
Benny Prijono28d3c562012-03-30 07:10:13 +00008175 as_dir="$ac_dir"; as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008176 ac_builddir=.
8177
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008178case "$ac_dir" in
8179.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8180*)
Benny Prijono28d3c562012-03-30 07:10:13 +00008181 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008182 # A ".." for each directory in $ac_dir_suffix.
Benny Prijono28d3c562012-03-30 07:10:13 +00008183 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008184 case $ac_top_builddir_sub in
8185 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8186 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8187 esac ;;
8188esac
8189ac_abs_top_builddir=$ac_pwd
8190ac_abs_builddir=$ac_pwd$ac_dir_suffix
8191# for backward compatibility:
8192ac_top_builddir=$ac_top_build_prefix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008193
8194case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008195 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008196 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008197 ac_top_srcdir=$ac_top_builddir_sub
8198 ac_abs_top_srcdir=$ac_pwd ;;
8199 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008200 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008201 ac_top_srcdir=$srcdir
8202 ac_abs_top_srcdir=$srcdir ;;
8203 *) # Relative name.
8204 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8205 ac_top_srcdir=$ac_top_build_prefix$srcdir
8206 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008207esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008208ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono9489e7a2008-09-19 22:18:50 +00008209
Benny Prijonoe2746132008-09-27 13:16:35 +00008210
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008211 case $ac_mode in
8212 :F)
8213 #
8214 # CONFIG_FILE
8215 #
Benny Prijonoe2746132008-09-27 13:16:35 +00008216
Benny Prijonoe2746132008-09-27 13:16:35 +00008217_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008218
Benny Prijono28d3c562012-03-30 07:10:13 +00008219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008220# If the template does not know about datarootdir, expand it.
8221# FIXME: This hack should be removed a few years after 2.60.
8222ac_datarootdir_hack=; ac_datarootdir_seen=
Benny Prijono28d3c562012-03-30 07:10:13 +00008223ac_sed_dataroot='
8224/datarootdir/ {
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008225 p
8226 q
8227}
8228/@datadir@/p
8229/@docdir@/p
8230/@infodir@/p
8231/@localedir@/p
Benny Prijono28d3c562012-03-30 07:10:13 +00008232/@mandir@/p'
8233case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008234*datarootdir*) ac_datarootdir_seen=yes;;
8235*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Benny Prijono28d3c562012-03-30 07:10:13 +00008236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8237$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008238_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008240 ac_datarootdir_hack='
8241 s&@datadir@&$datadir&g
8242 s&@docdir@&$docdir&g
8243 s&@infodir@&$infodir&g
8244 s&@localedir@&$localedir&g
8245 s&@mandir@&$mandir&g
Benny Prijono28d3c562012-03-30 07:10:13 +00008246 s&\\\${datarootdir}&$datarootdir&g' ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008247esac
8248_ACEOF
8249
8250# Neutralize VPATH when `$srcdir' = `.'.
8251# Shell code in configure.ac might set extrasub.
8252# FIXME: do we really want to maintain this feature?
Benny Prijono28d3c562012-03-30 07:10:13 +00008253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8254ac_sed_extra="$ac_vpsub
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008255$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008256_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008258:t
8259/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Benny Prijono28d3c562012-03-30 07:10:13 +00008260s|@configure_input@|$ac_sed_conf_input|;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008261s&@top_builddir@&$ac_top_builddir_sub&;t t
Benny Prijono28d3c562012-03-30 07:10:13 +00008262s&@top_build_prefix@&$ac_top_build_prefix&;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008263s&@srcdir@&$ac_srcdir&;t t
8264s&@abs_srcdir@&$ac_abs_srcdir&;t t
8265s&@top_srcdir@&$ac_top_srcdir&;t t
8266s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8267s&@builddir@&$ac_builddir&;t t
8268s&@abs_builddir@&$ac_abs_builddir&;t t
8269s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8270$ac_datarootdir_hack
Benny Prijono28d3c562012-03-30 07:10:13 +00008271"
8272eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8273 || as_fn_error "could not create $ac_file" "$LINENO" 5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008274
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008275test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8276 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8277 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Benny Prijono28d3c562012-03-30 07:10:13 +00008278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008279which seems to be undefined. Please make sure it is defined." >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00008280$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008281which seems to be undefined. Please make sure it is defined." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008282
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008283 rm -f "$tmp/stdin"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008284 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00008285 -) cat "$tmp/out" && rm -f "$tmp/out";;
8286 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8287 esac \
8288 || as_fn_error "could not create $ac_file" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008289 ;;
8290 :H)
8291 #
8292 # CONFIG_HEADER
8293 #
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008294 if test x"$ac_file" != x-; then
Benny Prijono28d3c562012-03-30 07:10:13 +00008295 {
8296 $as_echo "/* $configure_input */" \
8297 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8298 } >"$tmp/config.h" \
8299 || as_fn_error "could not create $ac_file" "$LINENO" 5
8300 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8302$as_echo "$as_me: $ac_file is unchanged" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008303 else
Benny Prijono28d3c562012-03-30 07:10:13 +00008304 rm -f "$ac_file"
8305 mv "$tmp/config.h" "$ac_file" \
8306 || as_fn_error "could not create $ac_file" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008307 fi
8308 else
Benny Prijono28d3c562012-03-30 07:10:13 +00008309 $as_echo "/* $configure_input */" \
8310 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8311 || as_fn_error "could not create -" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008312 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008313 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008314
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008315
8316 esac
8317
8318done # for ac_tag
8319
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008320
Benny Prijono28d3c562012-03-30 07:10:13 +00008321as_fn_exit 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008322_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008323ac_clean_files=$ac_clean_files_save
8324
Benny Prijono28d3c562012-03-30 07:10:13 +00008325test $ac_write_fail = 0 ||
8326 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8327
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008328
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008329# configure is writing to config.log, and then calls config.status.
8330# config.status does its own redirection, appending to config.log.
8331# Unfortunately, on DOS this fails, as config.log is still kept open
8332# by configure, so config.status won't be able to write to it; its
8333# output is simply discarded. So we exec the FD to /dev/null,
8334# effectively closing config.log, so it can be properly (re)opened and
8335# appended to by config.status. When coming back to configure, we
8336# need to make the FD available again.
8337if test "$no_create" != yes; then
8338 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008339 ac_config_status_args=
8340 test "$silent" = yes &&
8341 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008342 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008343 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008344 exec 5>>config.log
8345 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8346 # would make configure fail if this is the last instruction.
Benny Prijono28d3c562012-03-30 07:10:13 +00008347 $ac_cs_success || as_fn_exit $?
8348fi
8349if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8351$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Benny Prijonod5233702010-01-13 13:09:45 +00008352fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008353
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008354
Benny Prijonod9627842007-04-18 09:24:31 +00008355
Benny Prijono28d3c562012-03-30 07:10:13 +00008356{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
Benny Prijonod9627842007-04-18 09:24:31 +00008357
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008358Configurations 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 +00008359
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008360Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00008361 - 'user.mak'
8362 - 'pjlib/include/pj/config_site.h'
8363
8364The next step now is to run 'make dep' and 'make'.
8365" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00008366$as_echo "
Benny Prijonod9627842007-04-18 09:24:31 +00008367
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008368Configurations 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 +00008369
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008370Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00008371 - 'user.mak'
8372 - 'pjlib/include/pj/config_site.h'
8373
8374The next step now is to run 'make dep' and 'make'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008375" >&6; }
Benny Prijonod9627842007-04-18 09:24:31 +00008376