blob: 17ed93d7aef4522b97c896a6de2d6d4808f8c12c [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijonod4306432010-05-01 22:05:41 +00003# Generated by GNU Autoconf 2.64 for pjproject 1.x.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004#
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Benny Prijonod4306432010-05-01 22:05:41 +00006# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Benny Prijonod4306432010-05-01 22:05:41 +000011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijonod4306432010-05-01 22:05:41 +000017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +000018 emulate sh
19 NULLCMD=:
Benny Prijonod4306432010-05-01 22:05:41 +000020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +000021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000023 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +000024else
Benny Prijonod4306432010-05-01 22:05:41 +000025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000030esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +000031fi
32
33
Benny Prijonod4306432010-05-01 22:05:41 +000034as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
Benny Prijonod5233702010-01-13 13:09:45 +000071
Benny Prijono7e0d75f2006-12-25 20:34:14 +000072# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijonod4306432010-05-01 22:05:41 +000074 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000079fi
80
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000081
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000087IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
Benny Prijonod4306432010-05-01 22:05:41 +000090case $0 in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000091 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000093for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +000097 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000099IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000100
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
Benny Prijonod4306432010-05-01 22:05:41 +0000109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000111fi
112
Benny Prijonod4306432010-05-01 22:05:41 +0000113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
Benny Prijonod4306432010-05-01 22:05:41 +0000126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
Benny Prijonofe0c1272010-01-13 16:28:15 +0000130
Benny Prijonod4306432010-05-01 22:05:41 +0000131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233 fi
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376else
377 as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382else
383 as_basename=false
384fi
385
Benny Prijonod4306432010-05-01 22:05:41 +0000386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000391
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonod4306432010-05-01 22:05:41 +0000396$as_echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
Benny Prijonod4306432010-05-01 22:05:41 +0000411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000417
418
Benny Prijonod4306432010-05-01 22:05:41 +0000419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000428 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000433 N
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000436 t loop
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000437 s/-\n.*//
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000438 ' >$as_me.lineno &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000439 chmod +x "$as_me.lineno" ||
Benny Prijonod4306432010-05-01 22:05:41 +0000440 { $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 +0000441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000446 # Exit status is that of the last command.
447 exit
448}
449
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000450ECHO_C= ECHO_N= ECHO_T=
Benny Prijonod4306432010-05-01 22:05:41 +0000451case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000452-n*)
Benny Prijonod4306432010-05-01 22:05:41 +0000453 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijonod4306432010-05-01 22:05:41 +0000455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000458 esac;;
459*)
460 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000461esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000462
463rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466else
467 rm -f conf$$.dir
Benny Prijonod4306432010-05-01 22:05:41 +0000468 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000469fi
Benny Prijonod4306432010-05-01 22:05:41 +0000470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000482 as_ln_s='cp -p'
Benny Prijonod4306432010-05-01 22:05:41 +0000483 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000484else
485 as_ln_s='cp -p'
486fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000489
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000490if mkdir -p . 2>/dev/null; then
Benny Prijonod4306432010-05-01 22:05:41 +0000491 as_mkdir_p='mkdir -p "$as_dir"'
Benny Prijono39ae2da2006-10-13 17:57:42 +0000492else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +0000495fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +0000496
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
Benny Prijonod4306432010-05-01 22:05:41 +0000508 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000509 else
Benny Prijonod4306432010-05-01 22:05:41 +0000510 case $1 in #(
511 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000512 esac;
Benny Prijonod4306432010-05-01 22:05:41 +0000513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000526
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000527exec 7<&0 </dev/null 6>&1
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000534#
535# Initializations.
536#
537ac_default_prefix=/usr/local
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000538ac_clean_files=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000539ac_config_libobj_dir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000540LIBOBJS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000541cross_compiling=no
542subdirs=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000543MFLAGS=
544MAKEFLAGS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000545
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000546# Identity of this package.
547PACKAGE_NAME='pjproject'
548PACKAGE_TARNAME='pjproject'
Benny Prijono8a9b3b22010-01-14 14:46:54 +0000549PACKAGE_VERSION='1.x'
550PACKAGE_STRING='pjproject 1.x'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000551PACKAGE_BUGREPORT=''
Benny Prijonod4306432010-05-01 22:05:41 +0000552PACKAGE_URL=''
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000553
554# Factoring default headers for most tests.
555ac_includes_default="\
556#include <stdio.h>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000557#ifdef HAVE_SYS_TYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000558# include <sys/types.h>
559#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000560#ifdef HAVE_SYS_STAT_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000561# include <sys/stat.h>
562#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000563#ifdef STDC_HEADERS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000564# include <stdlib.h>
565# include <stddef.h>
566#else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000567# ifdef HAVE_STDLIB_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000568# include <stdlib.h>
569# endif
570#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000571#ifdef HAVE_STRING_H
572# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000573# include <memory.h>
574# endif
575# include <string.h>
576#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000577#ifdef HAVE_STRINGS_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000578# include <strings.h>
579#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000580#ifdef HAVE_INTTYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000581# include <inttypes.h>
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000582#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000583#ifdef HAVE_STDINT_H
584# include <stdint.h>
585#endif
586#ifdef HAVE_UNISTD_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000587# include <unistd.h>
588#endif"
589
Benny Prijonod4306432010-05-01 22:05:41 +0000590ac_subst_vars='LTLIBOBJS
Benny Prijono46bd0842010-02-12 14:12:41 +0000591LIBOBJS
Benny Prijonod4306432010-05-01 22:05:41 +0000592ac_main_obj
593ac_host
594ac_linux_poll
595ac_cross_compile
596libcrypto_present
597libssl_present
598openssl_h_present
599ac_no_ssl
600ac_no_ilbc_codec
601ac_no_speex_codec
602ac_no_g7221_codec
603ac_no_g722_codec
604ac_no_gsm_codec
605ac_no_l16_codec
606ac_no_g711_codec
607ac_no_speex_aec
608ac_no_large_filter
609ac_no_small_filter
610ac_pa_use_oss
611ac_pa_use_alsa
612ac_pa_cflags
613ac_external_pa
614ac_pjmedia_snd
615ac_external_gsm
616ac_external_speex
617ac_os_objs
618EGREP
619GREP
620CPP
621ac_build_mak_vars
622ac_pjdir
Benny Prijono2d1f1b62010-05-17 16:09:12 +0000623CC_CFLAGS
624CC_OPTIMIZE
625CC_DEF
626CC_INC
627CC_OUT
628LIBEXT2
629LIBEXT
630RANLIB
631LDOUT
632LD
633AR
Benny Prijonod4306432010-05-01 22:05:41 +0000634ac_ct_CXX
635CXXFLAGS
636CXX
637OBJEXT
638EXEEXT
639ac_ct_CC
640CPPFLAGS
641LDFLAGS
642CFLAGS
643CC
644target_os
645target_vendor
646target_cpu
647target
648host_os
649host_vendor
650host_cpu
651host
652build_os
653build_vendor
654build_cpu
655build
656target_alias
657host_alias
658build_alias
659LIBS
660ECHO_T
661ECHO_N
662ECHO_C
663DEFS
664mandir
665localedir
666libdir
667psdir
668pdfdir
669dvidir
670htmldir
671infodir
672docdir
673oldincludedir
674includedir
675localstatedir
676sharedstatedir
677sysconfdir
678datadir
679datarootdir
680libexecdir
681sbindir
682bindir
683program_transform_name
684prefix
685exec_prefix
686PACKAGE_URL
687PACKAGE_BUGREPORT
688PACKAGE_STRING
689PACKAGE_VERSION
690PACKAGE_TARNAME
691PACKAGE_NAME
692PATH_SEPARATOR
693SHELL'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000694ac_subst_files=''
Benny Prijonod4306432010-05-01 22:05:41 +0000695ac_user_opts='
696enable_option_checking
697enable_floating_point
698enable_epoll
699with_external_speex
700with_external_gsm
701enable_sound
702with_external_pa
703enable_oss
704enable_ext_sound
705enable_small_filter
706enable_large_filter
707enable_speex_aec
708enable_g711_codec
709enable_l16_codec
710enable_gsm_codec
711enable_g722_codec
712enable_g7221_codec
713enable_speex_codec
714enable_ilbc_codec
715enable_libsamplerate
716enable_ipp
717with_ipp
718with_ipp_samples
719with_ipp_arch
720enable_ssl
721'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000722 ac_precious_vars='build_alias
723host_alias
724target_alias
725CC
726CFLAGS
727LDFLAGS
728LIBS
729CPPFLAGS
730CXX
731CXXFLAGS
732CCC
733CPP'
734
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000735
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000736# Initialize some variables set by options.
737ac_init_help=
738ac_init_version=false
Benny Prijonod4306432010-05-01 22:05:41 +0000739ac_unrecognized_opts=
740ac_unrecognized_sep=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000741# The variables have the same names as the options, with
742# dashes changed to underlines.
743cache_file=/dev/null
744exec_prefix=NONE
745no_create=
746no_recursion=
747prefix=NONE
748program_prefix=NONE
749program_suffix=NONE
750program_transform_name=s,x,x,
751silent=
752site=
753srcdir=
754verbose=
755x_includes=NONE
756x_libraries=NONE
757
758# Installation directory options.
759# These are left unexpanded so users can "make install exec_prefix=/foo"
760# and all the variables that are supposed to be based on exec_prefix
761# by default will actually change.
762# Use braces instead of parens because sh, perl, etc. also accept them.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000763# (The list follows the same order as the GNU Coding Standards.)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000764bindir='${exec_prefix}/bin'
765sbindir='${exec_prefix}/sbin'
766libexecdir='${exec_prefix}/libexec'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000767datarootdir='${prefix}/share'
768datadir='${datarootdir}'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000769sysconfdir='${prefix}/etc'
770sharedstatedir='${prefix}/com'
771localstatedir='${prefix}/var'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000772includedir='${prefix}/include'
773oldincludedir='/usr/include'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000774docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
775infodir='${datarootdir}/info'
776htmldir='${docdir}'
777dvidir='${docdir}'
778pdfdir='${docdir}'
779psdir='${docdir}'
780libdir='${exec_prefix}/lib'
781localedir='${datarootdir}/locale'
782mandir='${datarootdir}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000783
784ac_prev=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000785ac_dashdash=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000786for ac_option
787do
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000790 eval $ac_prev=\$ac_option
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000791 ac_prev=
792 continue
793 fi
794
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000795 case $ac_option in
796 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
797 *) ac_optarg=yes ;;
798 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000799
800 # Accept the important Cygnus configure options, so we can diagnose typos.
801
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000802 case $ac_dashdash$ac_option in
803 --)
804 ac_dashdash=yes ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000805
806 -bindir | --bindir | --bindi | --bind | --bin | --bi)
807 ac_prev=bindir ;;
808 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
809 bindir=$ac_optarg ;;
810
811 -build | --build | --buil | --bui | --bu)
812 ac_prev=build_alias ;;
813 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
814 build_alias=$ac_optarg ;;
815
816 -cache-file | --cache-file | --cache-fil | --cache-fi \
817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
818 ac_prev=cache_file ;;
819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
821 cache_file=$ac_optarg ;;
822
823 --config-cache | -C)
824 cache_file=config.cache ;;
825
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000826 -datadir | --datadir | --datadi | --datad)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000827 ac_prev=datadir ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000828 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000829 datadir=$ac_optarg ;;
830
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000831 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
832 | --dataroo | --dataro | --datar)
833 ac_prev=datarootdir ;;
834 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
835 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
836 datarootdir=$ac_optarg ;;
837
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000838 -disable-* | --disable-*)
Benny Prijonod4306432010-05-01 22:05:41 +0000839 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000840 # Reject names that are not valid shell variable names.
Benny Prijonod4306432010-05-01 22:05:41 +0000841 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
842 as_fn_error "invalid feature name: $ac_useropt"
843 ac_useropt_orig=$ac_useropt
844 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
845 case $ac_user_opts in
846 *"
847"enable_$ac_useropt"
848"*) ;;
849 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
850 ac_unrecognized_sep=', ';;
851 esac
852 eval enable_$ac_useropt=no ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000853
854 -docdir | --docdir | --docdi | --doc | --do)
855 ac_prev=docdir ;;
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 docdir=$ac_optarg ;;
858
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 ac_prev=dvidir ;;
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 dvidir=$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000863
864 -enable-* | --enable-*)
Benny Prijonod4306432010-05-01 22:05:41 +0000865 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000866 # Reject names that are not valid shell variable names.
Benny Prijonod4306432010-05-01 22:05:41 +0000867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868 as_fn_error "invalid feature name: $ac_useropt"
869 ac_useropt_orig=$ac_useropt
870 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
872 *"
873"enable_$ac_useropt"
874"*) ;;
875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
876 ac_unrecognized_sep=', ';;
877 esac
878 eval enable_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000879
880 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
881 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
882 | --exec | --exe | --ex)
883 ac_prev=exec_prefix ;;
884 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
885 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
886 | --exec=* | --exe=* | --ex=*)
887 exec_prefix=$ac_optarg ;;
888
889 -gas | --gas | --ga | --g)
890 # Obsolete; use --with-gas.
891 with_gas=yes ;;
892
893 -help | --help | --hel | --he | -h)
894 ac_init_help=long ;;
895 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
896 ac_init_help=recursive ;;
897 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
898 ac_init_help=short ;;
899
900 -host | --host | --hos | --ho)
901 ac_prev=host_alias ;;
902 -host=* | --host=* | --hos=* | --ho=*)
903 host_alias=$ac_optarg ;;
904
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000905 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
906 ac_prev=htmldir ;;
907 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
908 | --ht=*)
909 htmldir=$ac_optarg ;;
910
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000911 -includedir | --includedir | --includedi | --included | --include \
912 | --includ | --inclu | --incl | --inc)
913 ac_prev=includedir ;;
914 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
915 | --includ=* | --inclu=* | --incl=* | --inc=*)
916 includedir=$ac_optarg ;;
917
918 -infodir | --infodir | --infodi | --infod | --info | --inf)
919 ac_prev=infodir ;;
920 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
921 infodir=$ac_optarg ;;
922
923 -libdir | --libdir | --libdi | --libd)
924 ac_prev=libdir ;;
925 -libdir=* | --libdir=* | --libdi=* | --libd=*)
926 libdir=$ac_optarg ;;
927
928 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
929 | --libexe | --libex | --libe)
930 ac_prev=libexecdir ;;
931 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
932 | --libexe=* | --libex=* | --libe=*)
933 libexecdir=$ac_optarg ;;
934
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000935 -localedir | --localedir | --localedi | --localed | --locale)
936 ac_prev=localedir ;;
937 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
938 localedir=$ac_optarg ;;
939
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000940 -localstatedir | --localstatedir | --localstatedi | --localstated \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000941 | --localstate | --localstat | --localsta | --localst | --locals)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000942 ac_prev=localstatedir ;;
943 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000944 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000945 localstatedir=$ac_optarg ;;
946
947 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
948 ac_prev=mandir ;;
949 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
950 mandir=$ac_optarg ;;
951
952 -nfp | --nfp | --nf)
953 # Obsolete; use --without-fp.
954 with_fp=no ;;
955
956 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000957 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000958 no_create=yes ;;
959
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
962 no_recursion=yes ;;
963
964 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
965 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
966 | --oldin | --oldi | --old | --ol | --o)
967 ac_prev=oldincludedir ;;
968 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
969 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
970 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
971 oldincludedir=$ac_optarg ;;
972
973 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
974 ac_prev=prefix ;;
975 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
976 prefix=$ac_optarg ;;
977
978 -program-prefix | --program-prefix | --program-prefi | --program-pref \
979 | --program-pre | --program-pr | --program-p)
980 ac_prev=program_prefix ;;
981 -program-prefix=* | --program-prefix=* | --program-prefi=* \
982 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
983 program_prefix=$ac_optarg ;;
984
985 -program-suffix | --program-suffix | --program-suffi | --program-suff \
986 | --program-suf | --program-su | --program-s)
987 ac_prev=program_suffix ;;
988 -program-suffix=* | --program-suffix=* | --program-suffi=* \
989 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
990 program_suffix=$ac_optarg ;;
991
992 -program-transform-name | --program-transform-name \
993 | --program-transform-nam | --program-transform-na \
994 | --program-transform-n | --program-transform- \
995 | --program-transform | --program-transfor \
996 | --program-transfo | --program-transf \
997 | --program-trans | --program-tran \
998 | --progr-tra | --program-tr | --program-t)
999 ac_prev=program_transform_name ;;
1000 -program-transform-name=* | --program-transform-name=* \
1001 | --program-transform-nam=* | --program-transform-na=* \
1002 | --program-transform-n=* | --program-transform-=* \
1003 | --program-transform=* | --program-transfor=* \
1004 | --program-transfo=* | --program-transf=* \
1005 | --program-trans=* | --program-tran=* \
1006 | --progr-tra=* | --program-tr=* | --program-t=*)
1007 program_transform_name=$ac_optarg ;;
1008
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001009 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1010 ac_prev=pdfdir ;;
1011 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1012 pdfdir=$ac_optarg ;;
1013
1014 -psdir | --psdir | --psdi | --psd | --ps)
1015 ac_prev=psdir ;;
1016 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1017 psdir=$ac_optarg ;;
1018
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1020 | -silent | --silent | --silen | --sile | --sil)
1021 silent=yes ;;
1022
1023 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1024 ac_prev=sbindir ;;
1025 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1026 | --sbi=* | --sb=*)
1027 sbindir=$ac_optarg ;;
1028
1029 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1030 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1031 | --sharedst | --shareds | --shared | --share | --shar \
1032 | --sha | --sh)
1033 ac_prev=sharedstatedir ;;
1034 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1035 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1036 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1037 | --sha=* | --sh=*)
1038 sharedstatedir=$ac_optarg ;;
1039
1040 -site | --site | --sit)
1041 ac_prev=site ;;
1042 -site=* | --site=* | --sit=*)
1043 site=$ac_optarg ;;
1044
1045 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1046 ac_prev=srcdir ;;
1047 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1048 srcdir=$ac_optarg ;;
1049
1050 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1051 | --syscon | --sysco | --sysc | --sys | --sy)
1052 ac_prev=sysconfdir ;;
1053 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1054 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1055 sysconfdir=$ac_optarg ;;
1056
1057 -target | --target | --targe | --targ | --tar | --ta | --t)
1058 ac_prev=target_alias ;;
1059 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1060 target_alias=$ac_optarg ;;
1061
1062 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1063 verbose=yes ;;
1064
1065 -version | --version | --versio | --versi | --vers | -V)
1066 ac_init_version=: ;;
1067
1068 -with-* | --with-*)
Benny Prijonod4306432010-05-01 22:05:41 +00001069 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001070 # Reject names that are not valid shell variable names.
Benny Prijonod4306432010-05-01 22:05:41 +00001071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error "invalid package name: $ac_useropt"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1076 *"
1077"with_$ac_useropt"
1078"*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1081 esac
1082 eval with_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001083
1084 -without-* | --without-*)
Benny Prijonod4306432010-05-01 22:05:41 +00001085 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001086 # Reject names that are not valid shell variable names.
Benny Prijonod4306432010-05-01 22:05:41 +00001087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error "invalid package name: $ac_useropt"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1092 *"
1093"with_$ac_useropt"
1094"*) ;;
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1097 esac
1098 eval with_$ac_useropt=no ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001099
1100 --x)
1101 # Obsolete; use --with-x.
1102 with_x=yes ;;
1103
1104 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1105 | --x-incl | --x-inc | --x-in | --x-i)
1106 ac_prev=x_includes ;;
1107 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1108 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1109 x_includes=$ac_optarg ;;
1110
1111 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1112 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1113 ac_prev=x_libraries ;;
1114 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1115 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1116 x_libraries=$ac_optarg ;;
1117
Benny Prijonod4306432010-05-01 22:05:41 +00001118 -*) as_fn_error "unrecognized option: \`$ac_option'
1119Try \`$0 --help' for more information."
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001120 ;;
1121
1122 *=*)
1123 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1124 # Reject names that are not valid shell variable names.
Benny Prijonod4306432010-05-01 22:05:41 +00001125 case $ac_envvar in #(
1126 '' | [0-9]* | *[!_$as_cr_alnum]* )
1127 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1128 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001129 eval $ac_envvar=\$ac_optarg
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001130 export $ac_envvar ;;
1131
1132 *)
1133 # FIXME: should be removed in autoconf 3.0.
Benny Prijonod4306432010-05-01 22:05:41 +00001134 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001135 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijonod4306432010-05-01 22:05:41 +00001136 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001137 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1138 ;;
1139
1140 esac
1141done
1142
1143if test -n "$ac_prev"; then
1144 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Benny Prijonod4306432010-05-01 22:05:41 +00001145 as_fn_error "missing argument to $ac_option"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001146fi
1147
Benny Prijonod4306432010-05-01 22:05:41 +00001148if test -n "$ac_unrecognized_opts"; then
1149 case $enable_option_checking in
1150 no) ;;
1151 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1152 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1153 esac
1154fi
1155
1156# Check all directory arguments for consistency.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001157for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1158 datadir sysconfdir sharedstatedir localstatedir includedir \
1159 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1160 libdir localedir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001161do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001162 eval ac_val=\$$ac_var
Benny Prijonod4306432010-05-01 22:05:41 +00001163 # Remove trailing slashes.
1164 case $ac_val in
1165 */ )
1166 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1167 eval $ac_var=\$ac_val;;
1168 esac
1169 # Be sure to have absolute directory names.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001170 case $ac_val in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001171 [\\/$]* | ?:[\\/]* ) continue;;
1172 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001173 esac
Benny Prijonod4306432010-05-01 22:05:41 +00001174 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001175done
1176
1177# There might be people who depend on the old broken behavior: `$host'
1178# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001179# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001180build=$build_alias
1181host=$host_alias
1182target=$target_alias
1183
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001184# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001185if test "x$host_alias" != x; then
1186 if test "x$build_alias" = x; then
1187 cross_compiling=maybe
Benny Prijonod4306432010-05-01 22:05:41 +00001188 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001189 If a cross compiler is detected then cross compile mode will be used." >&2
1190 elif test "x$build_alias" != "x$host_alias"; then
1191 cross_compiling=yes
1192 fi
1193fi
1194
1195ac_tool_prefix=
1196test -n "$host_alias" && ac_tool_prefix=$host_alias-
1197
1198test "$silent" = yes && exec 6>/dev/null
1199
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001200
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001201ac_pwd=`pwd` && test -n "$ac_pwd" &&
1202ac_ls_di=`ls -di .` &&
1203ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Benny Prijonod4306432010-05-01 22:05:41 +00001204 as_fn_error "working directory cannot be determined"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001205test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Benny Prijonod4306432010-05-01 22:05:41 +00001206 as_fn_error "pwd does not report name of working directory"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001207
1208
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001209# Find the source files, if location was not specified.
1210if test -z "$srcdir"; then
1211 ac_srcdir_defaulted=yes
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001212 # Try the directory containing this script, then the parent directory.
Benny Prijonod4306432010-05-01 22:05:41 +00001213 ac_confdir=`$as_dirname -- "$as_myself" ||
1214$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1215 X"$as_myself" : 'X\(//\)[^/]' \| \
1216 X"$as_myself" : 'X\(//\)$' \| \
1217 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1218$as_echo X"$as_myself" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1220 s//\1/
1221 q
1222 }
1223 /^X\(\/\/\)[^/].*/{
1224 s//\1/
1225 q
1226 }
1227 /^X\(\/\/\)$/{
1228 s//\1/
1229 q
1230 }
1231 /^X\(\/\).*/{
1232 s//\1/
1233 q
1234 }
1235 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001236 srcdir=$ac_confdir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001237 if test ! -r "$srcdir/$ac_unique_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001238 srcdir=..
1239 fi
1240else
1241 ac_srcdir_defaulted=no
1242fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001243if test ! -r "$srcdir/$ac_unique_file"; then
1244 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Benny Prijonod4306432010-05-01 22:05:41 +00001245 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Benny Prijono9489e7a2008-09-19 22:18:50 +00001246fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001247ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1248ac_abs_confdir=`(
Benny Prijonod4306432010-05-01 22:05:41 +00001249 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001250 pwd)`
1251# When building in place, set srcdir=.
1252if test "$ac_abs_confdir" = "$ac_pwd"; then
1253 srcdir=.
1254fi
1255# Remove unnecessary trailing slashes from srcdir.
1256# Double slashes in file names in object file debugging info
1257# mess up M-x gdb in Emacs.
1258case $srcdir in
1259*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1260esac
1261for ac_var in $ac_precious_vars; do
1262 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1263 eval ac_env_${ac_var}_value=\$${ac_var}
1264 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1265 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1266done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001267
1268#
1269# Report the --help message.
1270#
1271if test "$ac_init_help" = "long"; then
1272 # Omit some internal or obsolete options to make the list less imposing.
1273 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001274 cat <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001275\`configure' configures pjproject 1.x to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001276
1277Usage: $0 [OPTION]... [VAR=VALUE]...
1278
1279To assign environment variables (e.g., CC, CFLAGS...), specify them as
1280VAR=VALUE. See below for descriptions of some of the useful variables.
1281
1282Defaults for the options are specified in brackets.
1283
1284Configuration:
1285 -h, --help display this help and exit
1286 --help=short display options specific to this package
1287 --help=recursive display the short help of all the included packages
1288 -V, --version display version information and exit
1289 -q, --quiet, --silent do not print \`checking...' messages
1290 --cache-file=FILE cache test results in FILE [disabled]
1291 -C, --config-cache alias for \`--cache-file=config.cache'
1292 -n, --no-create do not create output files
1293 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1294
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001295Installation directories:
1296 --prefix=PREFIX install architecture-independent files in PREFIX
Benny Prijonod4306432010-05-01 22:05:41 +00001297 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001298 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Benny Prijonod4306432010-05-01 22:05:41 +00001299 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001300
1301By default, \`make install' will install all the files in
1302\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1303an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1304for instance \`--prefix=\$HOME'.
1305
1306For better control, use the options below.
1307
1308Fine tuning of the installation directories:
Benny Prijonod4306432010-05-01 22:05:41 +00001309 --bindir=DIR user executables [EPREFIX/bin]
1310 --sbindir=DIR system admin executables [EPREFIX/sbin]
1311 --libexecdir=DIR program executables [EPREFIX/libexec]
1312 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1313 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1314 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1315 --libdir=DIR object code libraries [EPREFIX/lib]
1316 --includedir=DIR C header files [PREFIX/include]
1317 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1318 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1319 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1320 --infodir=DIR info documentation [DATAROOTDIR/info]
1321 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1322 --mandir=DIR man documentation [DATAROOTDIR/man]
1323 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1324 --htmldir=DIR html documentation [DOCDIR]
1325 --dvidir=DIR dvi documentation [DOCDIR]
1326 --pdfdir=DIR pdf documentation [DOCDIR]
1327 --psdir=DIR ps documentation [DOCDIR]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001328_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001329
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001330 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001331
1332System types:
1333 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001334 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001335 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001336_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001337fi
1338
1339if test -n "$ac_init_help"; then
1340 case $ac_init_help in
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001341 short | recursive ) echo "Configuration of pjproject 1.x:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001342 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001343 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001344
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001345Optional Features:
Benny Prijonod4306432010-05-01 22:05:41 +00001346 --disable-option-checking ignore unrecognized --enable/--with options
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001347 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1348 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1349 --disable-floating-point
1350 Disable floating point where possible
Benny Prijono9489e7a2008-09-19 22:18:50 +00001351 --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
Benny Prijono1d971622006-09-10 22:27:40 +00001352 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijono0b462322008-03-12 22:44:24 +00001353 --disable-oss Disable OSS audio (default: not disabled)
1354
Benny Prijonoebb2c332008-07-28 23:40:58 +00001355 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001356 --disable-small-filter Exclude small filter in resampling
1357 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001358 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1359 --disable-g711-codec Exclude G.711 codecs from the build
1360 --disable-l16-codec Exclude Linear/L16 codec family from the build
1361 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +00001362 --disable-g722-codec Exclude G.722 codec in the build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001363 --disable-g7221-codec Exclude G.7221 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001364 --disable-speex-codec Exclude Speex codecs in the build
1365 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +00001366 --enable-libsamplerate Link with libsamplerate when available. Note that
1367 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijono0822c192008-08-21 20:59:58 +00001368 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
1369 package and samples location using IPPROOT and
1370 IPPSAMPLES env var or with --with-ipp and
1371 --with-ipp-samples options
Benny Prijonoce1db762007-02-14 02:21:08 +00001372 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001373
1374
Benny Prijonofe0c1272010-01-13 16:28:15 +00001375Optional Packages:
1376 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1377 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001378 --with-external-speex Use external Speex development files, not the one in
1379 "third_party" directory. When this option is set,
1380 make sure that Speex is accessible to use (hint: use
1381 CFLAGS and LDFLAGS env var to set the include/lib
1382 paths)
1383 --with-external-gsm Use external GSM codec library, not the one in
1384 "third_party" directory. When this option is set,
1385 make sure that the GSM include/lib files are
1386 accessible to use (hint: use CFLAGS and LDFLAGS env
1387 var to set the include/lib paths)
1388 --with-external-pa Use external PortAudio development files, not the
1389 one in "third_party" directory. When this option is
1390 set, make sure that PortAudio is accessible to use
1391 (hint: use CFLAGS and LDFLAGS env var to set the
1392 include/lib paths)
Benny Prijono3965f192010-02-10 18:46:05 +00001393 --with-ipp=DIR Specify the Intel IPP location
1394 --with-ipp-samples=DIR Specify the Intel IPP samples location
1395 --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or
Benny Prijono46bd0842010-02-12 14:12:41 +00001396 "em64t. Default is blank for IA32"
Benny Prijonofe0c1272010-01-13 16:28:15 +00001397
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001398Some influential environment variables:
1399 CC C compiler command
1400 CFLAGS C compiler flags
1401 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1402 nonstandard directory <lib dir>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001403 LIBS libraries to pass to the linker, e.g. -l<library>
1404 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1405 you have headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001406 CXX C++ compiler command
1407 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001408 CPP C preprocessor
1409
1410Use these variables to override the choices made by `configure' or to help
1411it to find libraries and programs with nonstandard names/locations.
1412
Benny Prijonod4306432010-05-01 22:05:41 +00001413Report bugs to the package provider.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001414_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001415ac_status=$?
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001416fi
1417
1418if test "$ac_init_help" = "recursive"; then
1419 # If there are subdirs, report their specific --help.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001420 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Benny Prijonod4306432010-05-01 22:05:41 +00001421 test -d "$ac_dir" ||
1422 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1423 continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001424 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001425
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001426case "$ac_dir" in
1427.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428*)
Benny Prijonod4306432010-05-01 22:05:41 +00001429 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001430 # A ".." for each directory in $ac_dir_suffix.
Benny Prijonod4306432010-05-01 22:05:41 +00001431 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001432 case $ac_top_builddir_sub in
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 esac ;;
1436esac
1437ac_abs_top_builddir=$ac_pwd
1438ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439# for backward compatibility:
1440ac_top_builddir=$ac_top_build_prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001441
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001442case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001443 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001444 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001445 ac_top_srcdir=$ac_top_builddir_sub
1446 ac_abs_top_srcdir=$ac_pwd ;;
1447 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001448 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001449 ac_top_srcdir=$srcdir
1450 ac_abs_top_srcdir=$srcdir ;;
1451 *) # Relative name.
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001455esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001456ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001457
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001458 cd "$ac_dir" || { ac_status=$?; continue; }
1459 # Check for guested configure.
1460 if test -f "$ac_srcdir/configure.gnu"; then
1461 echo &&
1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463 elif test -f "$ac_srcdir/configure"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure" --help=recursive
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001466 else
Benny Prijonod4306432010-05-01 22:05:41 +00001467 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001468 fi || ac_status=$?
1469 cd "$ac_pwd" || { ac_status=$?; break; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001470 done
1471fi
1472
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001473test -n "$ac_init_help" && exit $ac_status
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001474if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001475 cat <<\_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001476pjproject configure 1.x
Benny Prijonod4306432010-05-01 22:05:41 +00001477generated by GNU Autoconf 2.64
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001478
Benny Prijonod4306432010-05-01 22:05:41 +00001479Copyright (C) 2009 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001480This configure script is free software; the Free Software Foundation
1481gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001482_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001483 exit
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001484fi
Benny Prijonod4306432010-05-01 22:05:41 +00001485
1486## ------------------------ ##
1487## Autoconf initialization. ##
1488## ------------------------ ##
1489
1490# ac_fn_c_try_compile LINENO
1491# --------------------------
1492# Try to compile conftest.$ac_ext, and return whether this succeeded.
1493ac_fn_c_try_compile ()
1494{
1495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1496 rm -f conftest.$ac_objext
1497 if { { ac_try="$ac_compile"
1498case "(($ac_try" in
1499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1500 *) ac_try_echo=$ac_try;;
1501esac
1502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503$as_echo "$ac_try_echo"; } >&5
1504 (eval "$ac_compile") 2>conftest.err
1505 ac_status=$?
1506 if test -s conftest.err; then
1507 grep -v '^ *+' conftest.err >conftest.er1
1508 cat conftest.er1 >&5
1509 mv -f conftest.er1 conftest.err
1510 fi
1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512 test $ac_status = 0; } && {
1513 test -z "$ac_c_werror_flag" ||
1514 test ! -s conftest.err
1515 } && test -s conftest.$ac_objext; then :
1516 ac_retval=0
1517else
1518 $as_echo "$as_me: failed program was:" >&5
1519sed 's/^/| /' conftest.$ac_ext >&5
1520
1521 ac_retval=1
1522fi
1523 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1524 return $ac_retval
1525
1526} # ac_fn_c_try_compile
1527
1528# ac_fn_cxx_try_compile LINENO
1529# ----------------------------
1530# Try to compile conftest.$ac_ext, and return whether this succeeded.
1531ac_fn_cxx_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_cxx_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 return $ac_retval
1563
1564} # ac_fn_cxx_try_compile
1565
1566# ac_fn_c_try_link LINENO
1567# -----------------------
1568# Try to link conftest.$ac_ext, and return whether this succeeded.
1569ac_fn_c_try_link ()
1570{
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext conftest$ac_exeext
1573 if { { ac_try="$ac_link"
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_link") 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_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest$ac_exeext && {
1592 test "$cross_compiling" = yes ||
1593 $as_test_x conftest$ac_exeext
1594 }; then :
1595 ac_retval=0
1596else
1597 $as_echo "$as_me: failed program was:" >&5
1598sed 's/^/| /' conftest.$ac_ext >&5
1599
1600 ac_retval=1
1601fi
1602 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1603 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1604 # interfere with the next link command; also delete a directory that is
1605 # left behind by Apple's compiler. We do this before executing the actions.
1606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1608 return $ac_retval
1609
1610} # ac_fn_c_try_link
1611
1612# ac_fn_c_try_run LINENO
1613# ----------------------
1614# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1615# that executables *can* be run.
1616ac_fn_c_try_run ()
1617{
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 if { { ac_try="$ac_link"
1620case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623esac
1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625$as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_link") 2>&5
1627 ac_status=$?
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1630 { { case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633esac
1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635$as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_try") 2>&5
1637 ac_status=$?
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; }; }; then :
1640 ac_retval=0
1641else
1642 $as_echo "$as_me: program exited with status $ac_status" >&5
1643 $as_echo "$as_me: failed program was:" >&5
1644sed 's/^/| /' conftest.$ac_ext >&5
1645
1646 ac_retval=$ac_status
1647fi
1648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650 return $ac_retval
1651
1652} # ac_fn_c_try_run
1653
1654# ac_fn_c_try_cpp LINENO
1655# ----------------------
1656# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1657ac_fn_c_try_cpp ()
1658{
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if { { ac_try="$ac_cpp conftest.$ac_ext"
1661case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664esac
1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666$as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1668 ac_status=$?
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1673 fi
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } >/dev/null && {
1676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1677 test ! -s conftest.err
1678 }; then :
1679 ac_retval=0
1680else
1681 $as_echo "$as_me: failed program was:" >&5
1682sed 's/^/| /' conftest.$ac_ext >&5
1683
1684 ac_retval=1
1685fi
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687 return $ac_retval
1688
1689} # ac_fn_c_try_cpp
1690
1691# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1692# -------------------------------------------------------
1693# Tests whether HEADER exists and can be compiled using the include files in
1694# INCLUDES, setting the cache variable VAR accordingly.
1695ac_fn_c_check_header_compile ()
1696{
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699$as_echo_n "checking for $2... " >&6; }
1700if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1701 $as_echo_n "(cached) " >&6
1702else
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704/* end confdefs.h. */
1705$4
1706#include <$2>
1707_ACEOF
1708if ac_fn_c_try_compile "$LINENO"; then :
1709 eval "$3=yes"
1710else
1711 eval "$3=no"
1712fi
1713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1714fi
1715eval ac_res=\$$3
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717$as_echo "$ac_res" >&6; }
1718 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719
1720} # ac_fn_c_check_header_compile
1721
1722# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1723# -------------------------------------------------------
1724# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1725# the include files in INCLUDES and setting the cache variable VAR
1726# accordingly.
1727ac_fn_c_check_header_mongrel ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732$as_echo_n "checking for $2... " >&6; }
1733if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 $as_echo_n "(cached) " >&6
1735fi
1736eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738$as_echo "$ac_res" >&6; }
1739else
1740 # Is the header compilable?
1741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1742$as_echo_n "checking $2 usability... " >&6; }
1743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h. */
1745$4
1746#include <$2>
1747_ACEOF
1748if ac_fn_c_try_compile "$LINENO"; then :
1749 ac_header_compiler=yes
1750else
1751 ac_header_compiler=no
1752fi
1753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1755$as_echo "$ac_header_compiler" >&6; }
1756
1757# Is the header present?
1758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1759$as_echo_n "checking $2 presence... " >&6; }
1760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761/* end confdefs.h. */
1762#include <$2>
1763_ACEOF
1764if ac_fn_c_try_cpp "$LINENO"; then :
1765 ac_header_preproc=yes
1766else
1767 ac_header_preproc=no
1768fi
1769rm -f conftest.err conftest.$ac_ext
1770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1771$as_echo "$ac_header_preproc" >&6; }
1772
1773# So? What about this header?
1774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1775 yes:no: )
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1777$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1779$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780 ;;
1781 no:yes:* )
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1783$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1785$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1787$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1789$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1791$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1792 ;;
1793esac
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795$as_echo_n "checking for $2... " >&6; }
1796if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1797 $as_echo_n "(cached) " >&6
1798else
1799 eval "$3=\$ac_header_compiler"
1800fi
1801eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
1804fi
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806
1807} # ac_fn_c_check_header_mongrel
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001808cat >config.log <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001809This file contains any messages produced by compilers while
1810running configure, to aid debugging if configure makes a mistake.
1811
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001812It was created by pjproject $as_me 1.x, which was
Benny Prijonod4306432010-05-01 22:05:41 +00001813generated by GNU Autoconf 2.64. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001814
1815 $ $0 $@
1816
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001817_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001818exec 5>>config.log
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001819{
1820cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001821## --------- ##
1822## Platform. ##
1823## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001824
1825hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1826uname -m = `(uname -m) 2>/dev/null || echo unknown`
1827uname -r = `(uname -r) 2>/dev/null || echo unknown`
1828uname -s = `(uname -s) 2>/dev/null || echo unknown`
1829uname -v = `(uname -v) 2>/dev/null || echo unknown`
1830
1831/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1832/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1833
1834/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1835/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1836/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001837/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001838/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1839/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1840/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1841
1842_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001843
1844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845for as_dir in $PATH
1846do
1847 IFS=$as_save_IFS
1848 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00001849 $as_echo "PATH: $as_dir"
1850 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001851IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001852
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001853} >&5
1854
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001855cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001856
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001857
1858## ----------- ##
1859## Core tests. ##
1860## ----------- ##
1861
1862_ACEOF
1863
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001864
1865# Keep a trace of the command line.
1866# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001867# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001868# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001869# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001870ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001871ac_configure_args0=
1872ac_configure_args1=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001873ac_must_keep_next=false
1874for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001875do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001876 for ac_arg
1877 do
1878 case $ac_arg in
1879 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1880 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1881 | -silent | --silent | --silen | --sile | --sil)
1882 continue ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001883 *\'*)
Benny Prijonod4306432010-05-01 22:05:41 +00001884 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001885 esac
1886 case $ac_pass in
Benny Prijonod4306432010-05-01 22:05:41 +00001887 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001888 2)
Benny Prijonod4306432010-05-01 22:05:41 +00001889 as_fn_append ac_configure_args1 " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001890 if test $ac_must_keep_next = true; then
1891 ac_must_keep_next=false # Got value, back to normal.
1892 else
1893 case $ac_arg in
1894 *=* | --config-cache | -C | -disable-* | --disable-* \
1895 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1896 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1897 | -with-* | --with-* | -without-* | --without-* | --x)
1898 case "$ac_configure_args0 " in
1899 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1900 esac
1901 ;;
1902 -* ) ac_must_keep_next=true ;;
1903 esac
1904 fi
Benny Prijonod4306432010-05-01 22:05:41 +00001905 as_fn_append ac_configure_args " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001906 ;;
1907 esac
1908 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001909done
Benny Prijonod4306432010-05-01 22:05:41 +00001910{ ac_configure_args0=; unset ac_configure_args0;}
1911{ ac_configure_args1=; unset ac_configure_args1;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001912
1913# When interrupted or exit'd, cleanup temporary files, and complete
1914# config.log. We remove comments because anyway the quotes in there
1915# would cause problems or look ugly.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001916# WARNING: Use '\'' to represent an apostrophe within the trap.
1917# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001918trap 'exit_status=$?
1919 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001920 {
1921 echo
1922
1923 cat <<\_ASBOX
1924## ---------------- ##
1925## Cache variables. ##
1926## ---------------- ##
1927_ASBOX
1928 echo
1929 # The following way of writing the cache mishandles newlines in values,
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001930(
1931 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1932 eval ac_val=\$$ac_var
1933 case $ac_val in #(
1934 *${as_nl}*)
1935 case $ac_var in #(
Benny Prijonod4306432010-05-01 22:05:41 +00001936 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1937$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001938 esac
1939 case $ac_var in #(
1940 _ | IFS | as_nl) ;; #(
Benny Prijonod4306432010-05-01 22:05:41 +00001941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1942 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001943 esac ;;
1944 esac
1945 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001946 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001947 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1948 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001949 sed -n \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001950 "s/'\''/'\''\\\\'\'''\''/g;
1951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1952 ;; #(
Benny Prijonoe2746132008-09-27 13:16:35 +00001953 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoe2746132008-09-27 13:16:35 +00001955 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001956 esac |
1957 sort
1958)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001959 echo
1960
1961 cat <<\_ASBOX
1962## ----------------- ##
1963## Output variables. ##
1964## ----------------- ##
1965_ASBOX
1966 echo
1967 for ac_var in $ac_subst_vars
1968 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001969 eval ac_val=\$$ac_var
1970 case $ac_val in
Benny Prijonod4306432010-05-01 22:05:41 +00001971 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001972 esac
Benny Prijonod4306432010-05-01 22:05:41 +00001973 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001974 done | sort
1975 echo
1976
1977 if test -n "$ac_subst_files"; then
1978 cat <<\_ASBOX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001979## ------------------- ##
1980## File substitutions. ##
1981## ------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001982_ASBOX
1983 echo
1984 for ac_var in $ac_subst_files
1985 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001986 eval ac_val=\$$ac_var
1987 case $ac_val in
Benny Prijonod4306432010-05-01 22:05:41 +00001988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001989 esac
Benny Prijonod4306432010-05-01 22:05:41 +00001990 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001991 done | sort
1992 echo
1993 fi
1994
1995 if test -s confdefs.h; then
1996 cat <<\_ASBOX
1997## ----------- ##
1998## confdefs.h. ##
1999## ----------- ##
2000_ASBOX
2001 echo
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002002 cat confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002003 echo
2004 fi
2005 test "$ac_signal" != 0 &&
Benny Prijonod4306432010-05-01 22:05:41 +00002006 $as_echo "$as_me: caught signal $ac_signal"
2007 $as_echo "$as_me: exit $exit_status"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002008 } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002009 rm -f core *.core core.conftest.* &&
2010 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002011 exit $exit_status
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002012' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002013for ac_signal in 1 2 13 15; do
Benny Prijonod4306432010-05-01 22:05:41 +00002014 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002015done
2016ac_signal=0
2017
2018# confdefs.h avoids OS command line length limits that DEFS can exceed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002019rm -f -r conftest* confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002020
Benny Prijonod4306432010-05-01 22:05:41 +00002021$as_echo "/* confdefs.h */" > confdefs.h
2022
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002023# Predefined preprocessor variables.
2024
2025cat >>confdefs.h <<_ACEOF
2026#define PACKAGE_NAME "$PACKAGE_NAME"
2027_ACEOF
2028
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002029cat >>confdefs.h <<_ACEOF
2030#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2031_ACEOF
2032
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002033cat >>confdefs.h <<_ACEOF
2034#define PACKAGE_VERSION "$PACKAGE_VERSION"
2035_ACEOF
2036
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002037cat >>confdefs.h <<_ACEOF
2038#define PACKAGE_STRING "$PACKAGE_STRING"
2039_ACEOF
2040
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002041cat >>confdefs.h <<_ACEOF
2042#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2043_ACEOF
2044
Benny Prijonod4306432010-05-01 22:05:41 +00002045cat >>confdefs.h <<_ACEOF
2046#define PACKAGE_URL "$PACKAGE_URL"
2047_ACEOF
2048
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002049
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002050# Let the site file select an alternate cache file if it wants to.
Benny Prijonod4306432010-05-01 22:05:41 +00002051# Prefer an explicitly selected file to automatically selected ones.
2052ac_site_file1=NONE
2053ac_site_file2=NONE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002054if test -n "$CONFIG_SITE"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002055 ac_site_file1=$CONFIG_SITE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002056elif test "x$prefix" != xNONE; then
Benny Prijonod4306432010-05-01 22:05:41 +00002057 ac_site_file1=$prefix/share/config.site
2058 ac_site_file2=$prefix/etc/config.site
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002059else
Benny Prijonod4306432010-05-01 22:05:41 +00002060 ac_site_file1=$ac_default_prefix/share/config.site
2061 ac_site_file2=$ac_default_prefix/etc/config.site
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002062fi
Benny Prijonod4306432010-05-01 22:05:41 +00002063for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002064do
Benny Prijonod4306432010-05-01 22:05:41 +00002065 test "x$ac_site_file" = xNONE && continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002066 if test -r "$ac_site_file"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002067 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2068$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002069 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002070 . "$ac_site_file"
2071 fi
2072done
2073
2074if test -r "$cache_file"; then
2075 # Some versions of bash will fail to source /dev/null (special
2076 # files actually), so we avoid doing that.
2077 if test -f "$cache_file"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002078 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2079$as_echo "$as_me: loading cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002080 case $cache_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002081 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2082 *) . "./$cache_file";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002083 esac
2084 fi
2085else
Benny Prijonod4306432010-05-01 22:05:41 +00002086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2087$as_echo "$as_me: creating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002088 >$cache_file
2089fi
2090
2091# Check that the precious variables saved in the cache have kept the same
2092# value.
2093ac_cache_corrupted=false
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002094for ac_var in $ac_precious_vars; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002095 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2096 eval ac_new_set=\$ac_env_${ac_var}_set
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002097 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2098 eval ac_new_val=\$ac_env_${ac_var}_value
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002099 case $ac_old_set,$ac_new_set in
2100 set,)
Benny Prijonod4306432010-05-01 22:05:41 +00002101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2102$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 +00002103 ac_cache_corrupted=: ;;
2104 ,set)
Benny Prijonod4306432010-05-01 22:05:41 +00002105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2106$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002107 ac_cache_corrupted=: ;;
2108 ,);;
2109 *)
2110 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002111 # differences in whitespace do not lead to failure.
2112 ac_old_val_w=`echo x $ac_old_val`
2113 ac_new_val_w=`echo x $ac_new_val`
2114 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2116$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2117 ac_cache_corrupted=:
2118 else
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2120$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2121 eval $ac_var=\$ac_old_val
2122 fi
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2124$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2126$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002127 fi;;
2128 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002129 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002130 if test "$ac_new_set" = set; then
2131 case $ac_new_val in
Benny Prijonod4306432010-05-01 22:05:41 +00002132 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002133 *) ac_arg=$ac_var=$ac_new_val ;;
2134 esac
2135 case " $ac_configure_args " in
2136 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Benny Prijonod4306432010-05-01 22:05:41 +00002137 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002138 esac
2139 fi
2140done
2141if $ac_cache_corrupted; then
Benny Prijonod4306432010-05-01 22:05:41 +00002142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2145$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2146 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002147fi
Benny Prijonod4306432010-05-01 22:05:41 +00002148## -------------------- ##
2149## Main body of script. ##
2150## -------------------- ##
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002151
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002152ac_ext=c
2153ac_cpp='$CPP $CPPFLAGS'
2154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2156ac_compiler_gnu=$ac_cv_c_compiler_gnu
2157
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002158
2159
Benny Prijono5b818b22006-09-17 22:58:51 +00002160host_orig="$host"
2161
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002162ac_aux_dir=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002163for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Benny Prijonod4306432010-05-01 22:05:41 +00002164 for ac_t in install-sh install.sh shtool; do
2165 if test -f "$ac_dir/$ac_t"; then
2166 ac_aux_dir=$ac_dir
2167 ac_install_sh="$ac_aux_dir/$ac_t -c"
2168 break 2
2169 fi
2170 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002171done
2172if test -z "$ac_aux_dir"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002173 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002174fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002175
2176# These three variables are undocumented and unsupported,
2177# and are intended to be withdrawn in a future Autoconf release.
2178# They can cause serious problems if a builder's source tree is in a directory
2179# whose full name contains unusual characters.
2180ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2181ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2182ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2183
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002184
2185# Make sure we can run config.sub.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002186$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Benny Prijonod4306432010-05-01 22:05:41 +00002187 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002188
Benny Prijonod4306432010-05-01 22:05:41 +00002189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2190$as_echo_n "checking build system type... " >&6; }
2191if test "${ac_cv_build+set}" = set; then :
2192 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002193else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002194 ac_build_alias=$build_alias
2195test "x$ac_build_alias" = x &&
2196 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2197test "x$ac_build_alias" = x &&
Benny Prijonod4306432010-05-01 22:05:41 +00002198 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002199ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Benny Prijonod4306432010-05-01 22:05:41 +00002200 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002201
2202fi
Benny Prijonod4306432010-05-01 22:05:41 +00002203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2204$as_echo "$ac_cv_build" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002205case $ac_cv_build in
2206*-*-*) ;;
Benny Prijonod4306432010-05-01 22:05:41 +00002207*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002208esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002209build=$ac_cv_build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002210ac_save_IFS=$IFS; IFS='-'
2211set x $ac_cv_build
2212shift
2213build_cpu=$1
2214build_vendor=$2
2215shift; shift
2216# Remember, the first character of IFS is used to create $*,
2217# except with old shells:
2218build_os=$*
2219IFS=$ac_save_IFS
2220case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002221
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002222
Benny Prijonod4306432010-05-01 22:05:41 +00002223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2224$as_echo_n "checking host system type... " >&6; }
2225if test "${ac_cv_host+set}" = set; then :
2226 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002227else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002228 if test "x$host_alias" = x; then
2229 ac_cv_host=$ac_cv_build
2230else
2231 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Benny Prijonod4306432010-05-01 22:05:41 +00002232 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002233fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002234
2235fi
Benny Prijonod4306432010-05-01 22:05:41 +00002236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2237$as_echo "$ac_cv_host" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002238case $ac_cv_host in
2239*-*-*) ;;
Benny Prijonod4306432010-05-01 22:05:41 +00002240*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002241esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002242host=$ac_cv_host
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002243ac_save_IFS=$IFS; IFS='-'
2244set x $ac_cv_host
2245shift
2246host_cpu=$1
2247host_vendor=$2
2248shift; shift
2249# Remember, the first character of IFS is used to create $*,
2250# except with old shells:
2251host_os=$*
2252IFS=$ac_save_IFS
2253case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002254
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002255
Benny Prijonod4306432010-05-01 22:05:41 +00002256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2257$as_echo_n "checking target system type... " >&6; }
2258if test "${ac_cv_target+set}" = set; then :
2259 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002260else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002261 if test "x$target_alias" = x; then
2262 ac_cv_target=$ac_cv_host
2263else
2264 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Benny Prijonod4306432010-05-01 22:05:41 +00002265 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002266fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002267
2268fi
Benny Prijonod4306432010-05-01 22:05:41 +00002269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2270$as_echo "$ac_cv_target" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002271case $ac_cv_target in
2272*-*-*) ;;
Benny Prijonod4306432010-05-01 22:05:41 +00002273*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002274esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002275target=$ac_cv_target
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002276ac_save_IFS=$IFS; IFS='-'
2277set x $ac_cv_target
2278shift
2279target_cpu=$1
2280target_vendor=$2
2281shift; shift
2282# Remember, the first character of IFS is used to create $*,
2283# except with old shells:
2284target_os=$*
2285IFS=$ac_save_IFS
2286case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002287
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002288
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002289# The aliases save the names the user supplied, while $host etc.
2290# will get canonicalized.
2291test -n "$target_alias" &&
2292 test "$program_prefix$program_suffix$program_transform_name" = \
2293 NONENONEs,x,x, &&
2294 program_prefix=${target_alias}-
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002295ac_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 +00002296
Benny Prijono8ec5eae2010-05-12 10:59:20 +00002297ac_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 +00002298
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002299
Benny Prijono12483112007-03-12 10:44:38 +00002300
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002301if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00002302 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002303else
2304 CFLAGS="$CFLAGS"
2305fi
2306
2307CXXFLAGS="$CFLAGS $CXXFLAGS"
2308
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002309ac_ext=c
2310ac_cpp='$CPP $CPPFLAGS'
2311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2316set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00002317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2318$as_echo_n "checking for $ac_word... " >&6; }
2319if test "${ac_cv_prog_CC+set}" = set; then :
2320 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002321else
2322 if test -n "$CC"; then
2323 ac_cv_prog_CC="$CC" # Let the user override the test.
2324else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326for as_dir in $PATH
2327do
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00002330 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002331 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 +00002332 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Benny Prijonod4306432010-05-01 22:05:41 +00002333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002334 break 2
2335 fi
2336done
Benny Prijonod4306432010-05-01 22:05:41 +00002337 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002338IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002339
2340fi
2341fi
2342CC=$ac_cv_prog_CC
2343if test -n "$CC"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2345$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002346else
Benny Prijonod4306432010-05-01 22:05:41 +00002347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2348$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002349fi
2350
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002351
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002352fi
2353if test -z "$ac_cv_prog_CC"; then
2354 ac_ct_CC=$CC
2355 # Extract the first word of "gcc", so it can be a program name with args.
2356set dummy gcc; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00002357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2358$as_echo_n "checking for $ac_word... " >&6; }
2359if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2360 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002361else
2362 if test -n "$ac_ct_CC"; then
2363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2364else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366for as_dir in $PATH
2367do
2368 IFS=$as_save_IFS
2369 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00002370 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002371 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 +00002372 ac_cv_prog_ac_ct_CC="gcc"
Benny Prijonod4306432010-05-01 22:05:41 +00002373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002374 break 2
2375 fi
2376done
Benny Prijonod4306432010-05-01 22:05:41 +00002377 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002378IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002379
2380fi
2381fi
2382ac_ct_CC=$ac_cv_prog_ac_ct_CC
2383if test -n "$ac_ct_CC"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2385$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002386else
Benny Prijonod4306432010-05-01 22:05:41 +00002387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2388$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002389fi
2390
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002391 if test "x$ac_ct_CC" = x; then
2392 CC=""
2393 else
2394 case $cross_compiling:$ac_tool_warned in
2395yes:)
Benny Prijonod4306432010-05-01 22:05:41 +00002396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002398ac_tool_warned=yes ;;
2399esac
2400 CC=$ac_ct_CC
2401 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002402else
2403 CC="$ac_cv_prog_CC"
2404fi
2405
2406if test -z "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002407 if test -n "$ac_tool_prefix"; then
2408 # 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 +00002409set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00002410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2411$as_echo_n "checking for $ac_word... " >&6; }
2412if test "${ac_cv_prog_CC+set}" = set; then :
2413 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002414else
2415 if test -n "$CC"; then
2416 ac_cv_prog_CC="$CC" # Let the user override the test.
2417else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419for as_dir in $PATH
2420do
2421 IFS=$as_save_IFS
2422 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00002423 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002424 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 +00002425 ac_cv_prog_CC="${ac_tool_prefix}cc"
Benny Prijonod4306432010-05-01 22:05:41 +00002426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002427 break 2
2428 fi
2429done
Benny Prijonod4306432010-05-01 22:05:41 +00002430 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002431IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002432
2433fi
2434fi
2435CC=$ac_cv_prog_CC
2436if test -n "$CC"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2438$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002439else
Benny Prijonod4306432010-05-01 22:05:41 +00002440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2441$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002442fi
2443
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002444
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002445 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002446fi
2447if test -z "$CC"; then
2448 # Extract the first word of "cc", so it can be a program name with args.
2449set dummy cc; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00002450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2451$as_echo_n "checking for $ac_word... " >&6; }
2452if test "${ac_cv_prog_CC+set}" = set; then :
2453 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002454else
2455 if test -n "$CC"; then
2456 ac_cv_prog_CC="$CC" # Let the user override the test.
2457else
2458 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460for as_dir in $PATH
2461do
2462 IFS=$as_save_IFS
2463 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00002464 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002465 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 +00002466 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2467 ac_prog_rejected=yes
2468 continue
2469 fi
2470 ac_cv_prog_CC="cc"
Benny Prijonod4306432010-05-01 22:05:41 +00002471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002472 break 2
2473 fi
2474done
Benny Prijonod4306432010-05-01 22:05:41 +00002475 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002476IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002477
2478if test $ac_prog_rejected = yes; then
2479 # We found a bogon in the path, so make sure we never use it.
2480 set dummy $ac_cv_prog_CC
2481 shift
2482 if test $# != 0; then
2483 # We chose a different compiler from the bogus one.
2484 # However, it has the same basename, so the bogon will be chosen
2485 # first if we set CC to just the basename; use the full file name.
2486 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002487 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002488 fi
2489fi
2490fi
2491fi
2492CC=$ac_cv_prog_CC
2493if test -n "$CC"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2495$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002496else
Benny Prijonod4306432010-05-01 22:05:41 +00002497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2498$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002499fi
2500
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002501
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002502fi
2503if test -z "$CC"; then
2504 if test -n "$ac_tool_prefix"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002505 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002506 do
2507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2508set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00002509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2510$as_echo_n "checking for $ac_word... " >&6; }
2511if test "${ac_cv_prog_CC+set}" = set; then :
2512 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002513else
2514 if test -n "$CC"; then
2515 ac_cv_prog_CC="$CC" # Let the user override the test.
2516else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518for as_dir in $PATH
2519do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00002522 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002523 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 +00002524 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Benny Prijonod4306432010-05-01 22:05:41 +00002525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002526 break 2
2527 fi
2528done
Benny Prijonod4306432010-05-01 22:05:41 +00002529 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002530IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002531
2532fi
2533fi
2534CC=$ac_cv_prog_CC
2535if test -n "$CC"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2537$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002538else
Benny Prijonod4306432010-05-01 22:05:41 +00002539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2540$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002541fi
2542
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002543
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002544 test -n "$CC" && break
2545 done
2546fi
2547if test -z "$CC"; then
2548 ac_ct_CC=$CC
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002549 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002550do
2551 # Extract the first word of "$ac_prog", so it can be a program name with args.
2552set dummy $ac_prog; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00002553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2554$as_echo_n "checking for $ac_word... " >&6; }
2555if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2556 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002557else
2558 if test -n "$ac_ct_CC"; then
2559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2560else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562for as_dir in $PATH
2563do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00002566 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002567 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 +00002568 ac_cv_prog_ac_ct_CC="$ac_prog"
Benny Prijonod4306432010-05-01 22:05:41 +00002569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002570 break 2
2571 fi
2572done
Benny Prijonod4306432010-05-01 22:05:41 +00002573 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002574IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002575
2576fi
2577fi
2578ac_ct_CC=$ac_cv_prog_ac_ct_CC
2579if test -n "$ac_ct_CC"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2581$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002582else
Benny Prijonod4306432010-05-01 22:05:41 +00002583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002585fi
2586
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002587
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002588 test -n "$ac_ct_CC" && break
2589done
2590
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002591 if test "x$ac_ct_CC" = x; then
2592 CC=""
2593 else
2594 case $cross_compiling:$ac_tool_warned in
2595yes:)
Benny Prijonod4306432010-05-01 22:05:41 +00002596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002598ac_tool_warned=yes ;;
2599esac
2600 CC=$ac_ct_CC
2601 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002602fi
2603
2604fi
2605
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002606
Benny Prijonod4306432010-05-01 22:05:41 +00002607test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609as_fn_error "no acceptable C compiler found in \$PATH
2610See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002611
2612# Provide some information about the compiler.
Benny Prijonod4306432010-05-01 22:05:41 +00002613$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2614set X $ac_compile
2615ac_compiler=$2
2616for ac_option in --version -v -V -qversion; do
2617 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002618case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2621esac
Benny Prijonod4306432010-05-01 22:05:41 +00002622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623$as_echo "$ac_try_echo"; } >&5
2624 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002625 ac_status=$?
Benny Prijonod4306432010-05-01 22:05:41 +00002626 if test -s conftest.err; then
2627 sed '10a\
2628... rest of stderr output deleted ...
2629 10q' conftest.err >conftest.er1
2630 cat conftest.er1 >&5
2631 rm -f conftest.er1 conftest.err
2632 fi
2633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2634 test $ac_status = 0; }
2635done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002636
Benny Prijonod4306432010-05-01 22:05:41 +00002637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002638/* end confdefs.h. */
Benny Prijonod4306432010-05-01 22:05:41 +00002639#include <stdio.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002640int
2641main ()
2642{
Benny Prijonod4306432010-05-01 22:05:41 +00002643FILE *f = fopen ("conftest.out", "w");
2644 return ferror (f) || fclose (f) != 0;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002645
2646 ;
2647 return 0;
2648}
2649_ACEOF
2650ac_clean_files_save=$ac_clean_files
Benny Prijonod4306432010-05-01 22:05:41 +00002651ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002652# Try to create an executable without -o first, disregard a.out.
2653# It will help us diagnose broken compilers, and finding out an intuition
2654# of exeext.
Benny Prijonod4306432010-05-01 22:05:41 +00002655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2656$as_echo_n "checking for C compiler default output file name... " >&6; }
2657ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2658
2659# The possible output files:
2660ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2661
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002662ac_rmfiles=
2663for ac_file in $ac_files
2664do
2665 case $ac_file in
Benny Prijonod4306432010-05-01 22:05:41 +00002666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002667 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2668 esac
2669done
2670rm -f $ac_rmfiles
2671
Benny Prijonod4306432010-05-01 22:05:41 +00002672if { { ac_try="$ac_link_default"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002673case "(($ac_try" in
2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2676esac
Benny Prijonod4306432010-05-01 22:05:41 +00002677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2678$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002679 (eval "$ac_link_default") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002680 ac_status=$?
Benny Prijonod4306432010-05-01 22:05:41 +00002681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2682 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002683 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2684# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2685# in a Makefile. We should not override ac_cv_exeext if it was cached,
2686# so that the user can short-circuit this test for compilers unknown to
2687# Autoconf.
2688for ac_file in $ac_files ''
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002689do
2690 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002691 case $ac_file in
Benny Prijonod4306432010-05-01 22:05:41 +00002692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002693 ;;
2694 [ab].out )
2695 # We found the default executable, but exeext='' is most
2696 # certainly right.
2697 break;;
2698 *.* )
Benny Prijonod4306432010-05-01 22:05:41 +00002699 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002700 then :; else
2701 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2702 fi
2703 # We set ac_cv_exeext here because the later test for it is not
2704 # safe: cross compilers may not add the suffix if given an `-o'
2705 # argument, so we may need to know it at that point already.
2706 # Even if this section looks crufty: it has the advantage of
2707 # actually working.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002708 break;;
2709 * )
2710 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002711 esac
2712done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002713test "$ac_cv_exeext" = no && ac_cv_exeext=
2714
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002715else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002716 ac_file=''
2717fi
Benny Prijonod4306432010-05-01 22:05:41 +00002718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2719$as_echo "$ac_file" >&6; }
2720if test -z "$ac_file"; then :
2721 $as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002722sed 's/^/| /' conftest.$ac_ext >&5
2723
Benny Prijonod4306432010-05-01 22:05:41 +00002724{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2725$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2726{ as_fn_set_status 77
2727as_fn_error "C compiler cannot create executables
2728See \`config.log' for more details." "$LINENO" 5; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002729fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002730ac_exeext=$ac_cv_exeext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002731
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002732# Check that the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002733# the compiler is broken, or we cross compile.
Benny Prijonod4306432010-05-01 22:05:41 +00002734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2735$as_echo_n "checking whether the C compiler works... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002736# If not cross compiling, check that we can run a simple program.
2737if test "$cross_compiling" != yes; then
2738 if { ac_try='./$ac_file'
Benny Prijonod4306432010-05-01 22:05:41 +00002739 { { case "(($ac_try" in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742esac
Benny Prijonod4306432010-05-01 22:05:41 +00002743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2744$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002745 (eval "$ac_try") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002746 ac_status=$?
Benny Prijonod4306432010-05-01 22:05:41 +00002747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2748 test $ac_status = 0; }; }; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002749 cross_compiling=no
2750 else
2751 if test "$cross_compiling" = maybe; then
2752 cross_compiling=yes
2753 else
Benny Prijonod4306432010-05-01 22:05:41 +00002754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2756as_fn_error "cannot run C compiled programs.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002757If you meant to cross compile, use \`--host'.
Benny Prijonod4306432010-05-01 22:05:41 +00002758See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002759 fi
2760 fi
2761fi
Benny Prijonod4306432010-05-01 22:05:41 +00002762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2763$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002764
Benny Prijonod4306432010-05-01 22:05:41 +00002765rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002766ac_clean_files=$ac_clean_files_save
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002767# Check that the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002768# the compiler is broken, or we cross compile.
Benny Prijonod4306432010-05-01 22:05:41 +00002769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2770$as_echo_n "checking whether we are cross compiling... " >&6; }
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2772$as_echo "$cross_compiling" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002773
Benny Prijonod4306432010-05-01 22:05:41 +00002774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2775$as_echo_n "checking for suffix of executables... " >&6; }
2776if { { ac_try="$ac_link"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002777case "(($ac_try" in
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2780esac
Benny Prijonod4306432010-05-01 22:05:41 +00002781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2782$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002783 (eval "$ac_link") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002784 ac_status=$?
Benny Prijonod4306432010-05-01 22:05:41 +00002785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2786 test $ac_status = 0; }; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002787 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2788# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2789# work properly (i.e., refer to `conftest.exe'), while it won't with
2790# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002791for ac_file in conftest.exe conftest conftest.*; do
2792 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002793 case $ac_file in
Benny Prijonod4306432010-05-01 22:05:41 +00002794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002795 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002796 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002797 * ) break;;
2798 esac
2799done
2800else
Benny Prijonod4306432010-05-01 22:05:41 +00002801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2803as_fn_error "cannot compute suffix of executables: cannot compile and link
2804See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002805fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002806rm -f conftest$ac_cv_exeext
Benny Prijonod4306432010-05-01 22:05:41 +00002807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2808$as_echo "$ac_cv_exeext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002809
2810rm -f conftest.$ac_ext
2811EXEEXT=$ac_cv_exeext
2812ac_exeext=$EXEEXT
Benny Prijonod4306432010-05-01 22:05:41 +00002813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2814$as_echo_n "checking for suffix of object files... " >&6; }
2815if test "${ac_cv_objext+set}" = set; then :
2816 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002817else
Benny Prijonod4306432010-05-01 22:05:41 +00002818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002819/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002820
2821int
2822main ()
2823{
2824
2825 ;
2826 return 0;
2827}
2828_ACEOF
2829rm -f conftest.o conftest.obj
Benny Prijonod4306432010-05-01 22:05:41 +00002830if { { ac_try="$ac_compile"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002831case "(($ac_try" in
2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2834esac
Benny Prijonod4306432010-05-01 22:05:41 +00002835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2836$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002837 (eval "$ac_compile") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002838 ac_status=$?
Benny Prijonod4306432010-05-01 22:05:41 +00002839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2840 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002841 for ac_file in conftest.o conftest.obj conftest.*; do
2842 test -f "$ac_file" || continue;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002843 case $ac_file in
Benny Prijonod4306432010-05-01 22:05:41 +00002844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002845 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2846 break;;
2847 esac
2848done
2849else
Benny Prijonod4306432010-05-01 22:05:41 +00002850 $as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002851sed 's/^/| /' conftest.$ac_ext >&5
2852
Benny Prijonod4306432010-05-01 22:05:41 +00002853{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2855as_fn_error "cannot compute suffix of object files: cannot compile
2856See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002857fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002858rm -f conftest.$ac_cv_objext conftest.$ac_ext
2859fi
Benny Prijonod4306432010-05-01 22:05:41 +00002860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2861$as_echo "$ac_cv_objext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002862OBJEXT=$ac_cv_objext
2863ac_objext=$OBJEXT
Benny Prijonod4306432010-05-01 22:05:41 +00002864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2865$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2866if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2867 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002868else
Benny Prijonod4306432010-05-01 22:05:41 +00002869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002870/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002871
2872int
2873main ()
2874{
2875#ifndef __GNUC__
2876 choke me
2877#endif
2878
2879 ;
2880 return 0;
2881}
2882_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00002883if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002884 ac_compiler_gnu=yes
2885else
Benny Prijonod4306432010-05-01 22:05:41 +00002886 ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002887fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002889ac_cv_c_compiler_gnu=$ac_compiler_gnu
2890
2891fi
Benny Prijonod4306432010-05-01 22:05:41 +00002892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2893$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2894if test $ac_compiler_gnu = yes; then
2895 GCC=yes
2896else
2897 GCC=
2898fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002899ac_test_CFLAGS=${CFLAGS+set}
2900ac_save_CFLAGS=$CFLAGS
Benny Prijonod4306432010-05-01 22:05:41 +00002901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2902$as_echo_n "checking whether $CC accepts -g... " >&6; }
2903if test "${ac_cv_prog_cc_g+set}" = set; then :
2904 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002905else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002906 ac_save_c_werror_flag=$ac_c_werror_flag
2907 ac_c_werror_flag=yes
2908 ac_cv_prog_cc_g=no
2909 CFLAGS="-g"
Benny Prijonod4306432010-05-01 22:05:41 +00002910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002911/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002912
2913int
2914main ()
2915{
2916
2917 ;
2918 return 0;
2919}
2920_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00002921if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002922 ac_cv_prog_cc_g=yes
2923else
Benny Prijonod4306432010-05-01 22:05:41 +00002924 CFLAGS=""
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002926/* end confdefs.h. */
2927
2928int
2929main ()
2930{
2931
2932 ;
2933 return 0;
2934}
2935_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00002936if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono46bd0842010-02-12 14:12:41 +00002937
Benny Prijonod4306432010-05-01 22:05:41 +00002938else
2939 ac_c_werror_flag=$ac_save_c_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002940 CFLAGS="-g"
Benny Prijonod4306432010-05-01 22:05:41 +00002941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002942/* end confdefs.h. */
2943
2944int
2945main ()
2946{
2947
2948 ;
2949 return 0;
2950}
2951_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00002952if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002953 ac_cv_prog_cc_g=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002954fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002956fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2960 ac_c_werror_flag=$ac_save_c_werror_flag
2961fi
Benny Prijonod4306432010-05-01 22:05:41 +00002962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2963$as_echo "$ac_cv_prog_cc_g" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002964if test "$ac_test_CFLAGS" = set; then
2965 CFLAGS=$ac_save_CFLAGS
2966elif test $ac_cv_prog_cc_g = yes; then
2967 if test "$GCC" = yes; then
2968 CFLAGS="-g -O2"
2969 else
2970 CFLAGS="-g"
2971 fi
2972else
2973 if test "$GCC" = yes; then
2974 CFLAGS="-O2"
2975 else
2976 CFLAGS=
2977 fi
2978fi
Benny Prijonod4306432010-05-01 22:05:41 +00002979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2980$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2981if test "${ac_cv_prog_cc_c89+set}" = set; then :
2982 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002983else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002984 ac_cv_prog_cc_c89=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002985ac_save_CC=$CC
Benny Prijonod4306432010-05-01 22:05:41 +00002986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002987/* end confdefs.h. */
2988#include <stdarg.h>
2989#include <stdio.h>
2990#include <sys/types.h>
2991#include <sys/stat.h>
2992/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2993struct buf { int x; };
2994FILE * (*rcsopen) (struct buf *, struct stat *, int);
2995static char *e (p, i)
2996 char **p;
2997 int i;
2998{
2999 return p[i];
3000}
3001static char *f (char * (*g) (char **, int), char **p, ...)
3002{
3003 char *s;
3004 va_list v;
3005 va_start (v,p);
3006 s = g (p, va_arg (v,int));
3007 va_end (v);
3008 return s;
3009}
3010
3011/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3012 function prototypes and stuff, but not '\xHH' hex character constants.
3013 These don't provoke an error unfortunately, instead are silently treated
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003014 as 'x'. The following induces an error, until -std is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003015 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3016 array size at least. It's necessary to write '\x00'==0 to get something
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003017 that's true only with -std. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003018int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3019
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003020/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3021 inside strings and character constants. */
3022#define FOO(x) 'x'
3023int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3024
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003025int test (int i, double x);
3026struct s1 {int (*f) (int a);};
3027struct s2 {int (*f) (double a);};
3028int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3029int argc;
3030char **argv;
3031int
3032main ()
3033{
3034return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3035 ;
3036 return 0;
3037}
3038_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003039for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3040 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003041do
3042 CC="$ac_save_CC $ac_arg"
Benny Prijonod4306432010-05-01 22:05:41 +00003043 if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003044 ac_cv_prog_cc_c89=$ac_arg
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003045fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003046rm -f core conftest.err conftest.$ac_objext
3047 test "x$ac_cv_prog_cc_c89" != "xno" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003048done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003049rm -f conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003050CC=$ac_save_CC
3051
3052fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003053# AC_CACHE_VAL
3054case "x$ac_cv_prog_cc_c89" in
3055 x)
Benny Prijonod4306432010-05-01 22:05:41 +00003056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3057$as_echo "none needed" >&6; } ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003058 xno)
Benny Prijonod4306432010-05-01 22:05:41 +00003059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3060$as_echo "unsupported" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003061 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003062 CC="$CC $ac_cv_prog_cc_c89"
Benny Prijonod4306432010-05-01 22:05:41 +00003063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3064$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003065esac
Benny Prijonod4306432010-05-01 22:05:41 +00003066if test "x$ac_cv_prog_cc_c89" != xno; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003067
Benny Prijonod4306432010-05-01 22:05:41 +00003068fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003069
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003070ac_ext=c
3071ac_cpp='$CPP $CPPFLAGS'
3072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3074ac_compiler_gnu=$ac_cv_c_compiler_gnu
3075
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003076ac_ext=cpp
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003077ac_cpp='$CXXCPP $CPPFLAGS'
3078ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003081if test -z "$CXX"; then
3082 if test -n "$CCC"; then
3083 CXX=$CCC
3084 else
3085 if test -n "$ac_tool_prefix"; then
3086 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 +00003087 do
3088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3089set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00003090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091$as_echo_n "checking for $ac_word... " >&6; }
3092if test "${ac_cv_prog_CXX+set}" = set; then :
3093 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003094else
3095 if test -n "$CXX"; then
3096 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3097else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099for as_dir in $PATH
3100do
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00003103 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003104 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 +00003105 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Benny Prijonod4306432010-05-01 22:05:41 +00003106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003107 break 2
3108 fi
3109done
Benny Prijonod4306432010-05-01 22:05:41 +00003110 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003111IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003112
3113fi
3114fi
3115CXX=$ac_cv_prog_CXX
3116if test -n "$CXX"; then
Benny Prijonod4306432010-05-01 22:05:41 +00003117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3118$as_echo "$CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003119else
Benny Prijonod4306432010-05-01 22:05:41 +00003120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003122fi
3123
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003124
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003125 test -n "$CXX" && break
3126 done
3127fi
3128if test -z "$CXX"; then
3129 ac_ct_CXX=$CXX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003130 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 +00003131do
3132 # Extract the first word of "$ac_prog", so it can be a program name with args.
3133set dummy $ac_prog; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00003134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135$as_echo_n "checking for $ac_word... " >&6; }
3136if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3137 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003138else
3139 if test -n "$ac_ct_CXX"; then
3140 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3141else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143for as_dir in $PATH
3144do
3145 IFS=$as_save_IFS
3146 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00003147 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003148 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 +00003149 ac_cv_prog_ac_ct_CXX="$ac_prog"
Benny Prijonod4306432010-05-01 22:05:41 +00003150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003151 break 2
3152 fi
3153done
Benny Prijonod4306432010-05-01 22:05:41 +00003154 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003155IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003156
3157fi
3158fi
3159ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3160if test -n "$ac_ct_CXX"; then
Benny Prijonod4306432010-05-01 22:05:41 +00003161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3162$as_echo "$ac_ct_CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003163else
Benny Prijonod4306432010-05-01 22:05:41 +00003164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003166fi
3167
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003168
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003169 test -n "$ac_ct_CXX" && break
3170done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003171
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003172 if test "x$ac_ct_CXX" = x; then
3173 CXX="g++"
3174 else
3175 case $cross_compiling:$ac_tool_warned in
3176yes:)
Benny Prijonod4306432010-05-01 22:05:41 +00003177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003179ac_tool_warned=yes ;;
3180esac
3181 CXX=$ac_ct_CXX
3182 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003183fi
3184
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003185 fi
3186fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003187# Provide some information about the compiler.
Benny Prijonod4306432010-05-01 22:05:41 +00003188$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3189set X $ac_compile
3190ac_compiler=$2
3191for ac_option in --version -v -V -qversion; do
3192 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003193case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196esac
Benny Prijonod4306432010-05-01 22:05:41 +00003197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198$as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003200 ac_status=$?
Benny Prijonod4306432010-05-01 22:05:41 +00003201 if test -s conftest.err; then
3202 sed '10a\
3203... rest of stderr output deleted ...
3204 10q' conftest.err >conftest.er1
3205 cat conftest.er1 >&5
3206 rm -f conftest.er1 conftest.err
3207 fi
3208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209 test $ac_status = 0; }
3210done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003211
Benny Prijonod4306432010-05-01 22:05:41 +00003212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3213$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3214if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3215 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003216else
Benny Prijonod4306432010-05-01 22:05:41 +00003217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003218/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003219
3220int
3221main ()
3222{
3223#ifndef __GNUC__
3224 choke me
3225#endif
3226
3227 ;
3228 return 0;
3229}
3230_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003231if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003232 ac_compiler_gnu=yes
3233else
Benny Prijonod4306432010-05-01 22:05:41 +00003234 ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003235fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003237ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3238
3239fi
Benny Prijonod4306432010-05-01 22:05:41 +00003240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3241$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3242if test $ac_compiler_gnu = yes; then
3243 GXX=yes
3244else
3245 GXX=
3246fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003247ac_test_CXXFLAGS=${CXXFLAGS+set}
3248ac_save_CXXFLAGS=$CXXFLAGS
Benny Prijonod4306432010-05-01 22:05:41 +00003249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3250$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3251if test "${ac_cv_prog_cxx_g+set}" = set; then :
3252 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003253else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003254 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3255 ac_cxx_werror_flag=yes
3256 ac_cv_prog_cxx_g=no
3257 CXXFLAGS="-g"
Benny Prijonod4306432010-05-01 22:05:41 +00003258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003259/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003260
3261int
3262main ()
3263{
3264
3265 ;
3266 return 0;
3267}
3268_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003269if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003270 ac_cv_prog_cxx_g=yes
3271else
Benny Prijonod4306432010-05-01 22:05:41 +00003272 CXXFLAGS=""
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003274/* end confdefs.h. */
3275
3276int
3277main ()
3278{
3279
3280 ;
3281 return 0;
3282}
3283_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003284if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijono46bd0842010-02-12 14:12:41 +00003285
Benny Prijonod4306432010-05-01 22:05:41 +00003286else
3287 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003288 CXXFLAGS="-g"
Benny Prijonod4306432010-05-01 22:05:41 +00003289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003290/* end confdefs.h. */
3291
3292int
3293main ()
3294{
3295
3296 ;
3297 return 0;
3298}
3299_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003300if ac_fn_cxx_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003301 ac_cv_prog_cxx_g=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003302fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003304fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3309fi
Benny Prijonod4306432010-05-01 22:05:41 +00003310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3311$as_echo "$ac_cv_prog_cxx_g" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003312if test "$ac_test_CXXFLAGS" = set; then
3313 CXXFLAGS=$ac_save_CXXFLAGS
3314elif test $ac_cv_prog_cxx_g = yes; then
3315 if test "$GXX" = yes; then
3316 CXXFLAGS="-g -O2"
3317 else
3318 CXXFLAGS="-g"
3319 fi
3320else
3321 if test "$GXX" = yes; then
3322 CXXFLAGS="-O2"
3323 else
3324 CXXFLAGS=
3325 fi
3326fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003327ac_ext=c
3328ac_cpp='$CPP $CPPFLAGS'
3329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003333ac_ext=c
3334ac_cpp='$CPP $CPPFLAGS'
3335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3337ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003339
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003340if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003341
3342if test "$LD" = ""; then LD="$CC"; fi
3343
3344if test "$LDOUT" = ""; then LDOUT="-o"; fi
3345
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003346if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003347
3348if test "$OBJEXT" = ""; then OBJEXT='o'; fi
3349
3350if test "$LIBEXT" = ""; then LIBEXT='a'; fi
3351
3352if test "$LIBEXT2" = ""; then LIBEXT2=""; fi
3353
3354if test "$CC_OUT" = ""; then CC_OUT="-o"; fi
3355
3356if test "$CC_INC" = ""; then CC_INC="-I"; fi
3357
3358if test "$CC_DEF" = ""; then CC_DEF="-D"; fi
3359
3360if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi
3361
3362if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi
3363
3364
3365
3366
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003367
Benny Prijono0822c192008-08-21 20:59:58 +00003368
Benny Prijono53847a32007-09-24 16:10:13 +00003369case $target in
3370 *mingw* | *cygw* | *win32* | *w32* )
3371 ac_pjdir=`pwd -W`
3372 ;;
3373 *)
3374 ac_pjdir=`pwd`
3375 ;;
3376esac
Benny Prijono12483112007-03-12 10:44:38 +00003377
3378
Benny Prijonod4306432010-05-01 22:05:41 +00003379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
3380$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
3381if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
3382 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003383else
3384 ac_check_lib_save_LIBS=$LIBS
3385LIBS="-lpthread $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003387/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003388
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003389/* Override any GCC internal prototype to avoid an error.
3390 Use char because int might match the return type of a GCC
3391 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003392#ifdef __cplusplus
3393extern "C"
3394#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003395char pthread_create ();
3396int
3397main ()
3398{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003399return pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003400 ;
3401 return 0;
3402}
3403_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003404if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003405 ac_cv_lib_pthread_pthread_create=yes
3406else
Benny Prijonod4306432010-05-01 22:05:41 +00003407 ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003408fi
Benny Prijonod4306432010-05-01 22:05:41 +00003409rm -f core conftest.err conftest.$ac_objext \
3410 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003411LIBS=$ac_check_lib_save_LIBS
3412fi
Benny Prijonod4306432010-05-01 22:05:41 +00003413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
3414$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
3415if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003416 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003417#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003418_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003419
3420 LIBS="-lpthread $LIBS"
3421
3422fi
3423
Benny Prijonod4306432010-05-01 22:05:41 +00003424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5
3425$as_echo_n "checking for puts in -lwsock32... " >&6; }
3426if test "${ac_cv_lib_wsock32_puts+set}" = set; then :
3427 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003428else
3429 ac_check_lib_save_LIBS=$LIBS
3430LIBS="-lwsock32 $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003432/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003433
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003434/* Override any GCC internal prototype to avoid an error.
3435 Use char because int might match the return type of a GCC
3436 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003437#ifdef __cplusplus
3438extern "C"
3439#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003440char puts ();
3441int
3442main ()
3443{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003444return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003445 ;
3446 return 0;
3447}
3448_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003449if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003450 ac_cv_lib_wsock32_puts=yes
3451else
Benny Prijonod4306432010-05-01 22:05:41 +00003452 ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003453fi
Benny Prijonod4306432010-05-01 22:05:41 +00003454rm -f core conftest.err conftest.$ac_objext \
3455 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003456LIBS=$ac_check_lib_save_LIBS
3457fi
Benny Prijonod4306432010-05-01 22:05:41 +00003458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5
3459$as_echo "$ac_cv_lib_wsock32_puts" >&6; }
3460if test "x$ac_cv_lib_wsock32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003461 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003462#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003463_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003464
3465 LIBS="-lwsock32 $LIBS"
3466
3467fi
3468
Benny Prijonod4306432010-05-01 22:05:41 +00003469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5
3470$as_echo_n "checking for puts in -lws2_32... " >&6; }
3471if test "${ac_cv_lib_ws2_32_puts+set}" = set; then :
3472 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003473else
3474 ac_check_lib_save_LIBS=$LIBS
3475LIBS="-lws2_32 $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003477/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003478
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003479/* Override any GCC internal prototype to avoid an error.
3480 Use char because int might match the return type of a GCC
3481 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003482#ifdef __cplusplus
3483extern "C"
3484#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003485char puts ();
3486int
3487main ()
3488{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003489return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003490 ;
3491 return 0;
3492}
3493_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003494if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003495 ac_cv_lib_ws2_32_puts=yes
3496else
Benny Prijonod4306432010-05-01 22:05:41 +00003497 ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003498fi
Benny Prijonod4306432010-05-01 22:05:41 +00003499rm -f core conftest.err conftest.$ac_objext \
3500 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003501LIBS=$ac_check_lib_save_LIBS
3502fi
Benny Prijonod4306432010-05-01 22:05:41 +00003503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5
3504$as_echo "$ac_cv_lib_ws2_32_puts" >&6; }
3505if test "x$ac_cv_lib_ws2_32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003506 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003507#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003508_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003509
3510 LIBS="-lws2_32 $LIBS"
3511
3512fi
3513
Benny Prijonod4306432010-05-01 22:05:41 +00003514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5
3515$as_echo_n "checking for puts in -lole32... " >&6; }
3516if test "${ac_cv_lib_ole32_puts+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003518else
3519 ac_check_lib_save_LIBS=$LIBS
3520LIBS="-lole32 $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003522/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003523
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003524/* Override any GCC internal prototype to avoid an error.
3525 Use char because int might match the return type of a GCC
3526 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003527#ifdef __cplusplus
3528extern "C"
3529#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003530char puts ();
3531int
3532main ()
3533{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003534return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003535 ;
3536 return 0;
3537}
3538_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003539if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003540 ac_cv_lib_ole32_puts=yes
3541else
Benny Prijonod4306432010-05-01 22:05:41 +00003542 ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003543fi
Benny Prijonod4306432010-05-01 22:05:41 +00003544rm -f core conftest.err conftest.$ac_objext \
3545 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003546LIBS=$ac_check_lib_save_LIBS
3547fi
Benny Prijonod4306432010-05-01 22:05:41 +00003548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5
3549$as_echo "$ac_cv_lib_ole32_puts" >&6; }
3550if test "x$ac_cv_lib_ole32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003551 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003552#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003553_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003554
3555 LIBS="-lole32 $LIBS"
3556
3557fi
3558
Benny Prijonod4306432010-05-01 22:05:41 +00003559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5
3560$as_echo_n "checking for puts in -lwinmm... " >&6; }
3561if test "${ac_cv_lib_winmm_puts+set}" = set; then :
3562 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003563else
3564 ac_check_lib_save_LIBS=$LIBS
3565LIBS="-lwinmm $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003567/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003568
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003569/* Override any GCC internal prototype to avoid an error.
3570 Use char because int might match the return type of a GCC
3571 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003572#ifdef __cplusplus
3573extern "C"
3574#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003575char puts ();
3576int
3577main ()
3578{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003579return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003580 ;
3581 return 0;
3582}
3583_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003584if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003585 ac_cv_lib_winmm_puts=yes
3586else
Benny Prijonod4306432010-05-01 22:05:41 +00003587 ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003588fi
Benny Prijonod4306432010-05-01 22:05:41 +00003589rm -f core conftest.err conftest.$ac_objext \
3590 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003591LIBS=$ac_check_lib_save_LIBS
3592fi
Benny Prijonod4306432010-05-01 22:05:41 +00003593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5
3594$as_echo "$ac_cv_lib_winmm_puts" >&6; }
3595if test "x$ac_cv_lib_winmm_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003596 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003597#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003598_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003599
3600 LIBS="-lwinmm $LIBS"
3601
3602fi
3603
Benny Prijonod4306432010-05-01 22:05:41 +00003604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5
3605$as_echo_n "checking for puts in -lsocket... " >&6; }
3606if test "${ac_cv_lib_socket_puts+set}" = set; then :
3607 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003608else
3609 ac_check_lib_save_LIBS=$LIBS
3610LIBS="-lsocket $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003612/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003613
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003614/* Override any GCC internal prototype to avoid an error.
3615 Use char because int might match the return type of a GCC
3616 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003617#ifdef __cplusplus
3618extern "C"
3619#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003620char puts ();
3621int
3622main ()
3623{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003624return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003625 ;
3626 return 0;
3627}
3628_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003629if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003630 ac_cv_lib_socket_puts=yes
3631else
Benny Prijonod4306432010-05-01 22:05:41 +00003632 ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003633fi
Benny Prijonod4306432010-05-01 22:05:41 +00003634rm -f core conftest.err conftest.$ac_objext \
3635 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003636LIBS=$ac_check_lib_save_LIBS
3637fi
Benny Prijonod4306432010-05-01 22:05:41 +00003638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5
3639$as_echo "$ac_cv_lib_socket_puts" >&6; }
3640if test "x$ac_cv_lib_socket_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003641 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003642#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003643_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003644
3645 LIBS="-lsocket $LIBS"
3646
3647fi
3648
Benny Prijonod4306432010-05-01 22:05:41 +00003649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5
3650$as_echo_n "checking for puts in -lrt... " >&6; }
3651if test "${ac_cv_lib_rt_puts+set}" = set; then :
3652 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003653else
3654 ac_check_lib_save_LIBS=$LIBS
3655LIBS="-lrt $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003657/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003658
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003659/* Override any GCC internal prototype to avoid an error.
3660 Use char because int might match the return type of a GCC
3661 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003662#ifdef __cplusplus
3663extern "C"
3664#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003665char puts ();
3666int
3667main ()
3668{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003669return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003670 ;
3671 return 0;
3672}
3673_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003674if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003675 ac_cv_lib_rt_puts=yes
3676else
Benny Prijonod4306432010-05-01 22:05:41 +00003677 ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003678fi
Benny Prijonod4306432010-05-01 22:05:41 +00003679rm -f core conftest.err conftest.$ac_objext \
3680 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003681LIBS=$ac_check_lib_save_LIBS
3682fi
Benny Prijonod4306432010-05-01 22:05:41 +00003683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5
3684$as_echo "$ac_cv_lib_rt_puts" >&6; }
3685if test "x$ac_cv_lib_rt_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003686 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003687#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003688_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003689
3690 LIBS="-lrt $LIBS"
3691
3692fi
3693
Benny Prijonod4306432010-05-01 22:05:41 +00003694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5
3695$as_echo_n "checking for puts in -lnsl... " >&6; }
3696if test "${ac_cv_lib_nsl_puts+set}" = set; then :
3697 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003698else
3699 ac_check_lib_save_LIBS=$LIBS
3700LIBS="-lnsl $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003702/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003703
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003704/* Override any GCC internal prototype to avoid an error.
3705 Use char because int might match the return type of a GCC
3706 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003707#ifdef __cplusplus
3708extern "C"
3709#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003710char puts ();
3711int
3712main ()
3713{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003714return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003715 ;
3716 return 0;
3717}
3718_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003719if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003720 ac_cv_lib_nsl_puts=yes
3721else
Benny Prijonod4306432010-05-01 22:05:41 +00003722 ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003723fi
Benny Prijonod4306432010-05-01 22:05:41 +00003724rm -f core conftest.err conftest.$ac_objext \
3725 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003726LIBS=$ac_check_lib_save_LIBS
3727fi
Benny Prijonod4306432010-05-01 22:05:41 +00003728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5
3729$as_echo "$ac_cv_lib_nsl_puts" >&6; }
3730if test "x$ac_cv_lib_nsl_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003731 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003732#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003733_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003734
3735 LIBS="-lnsl $LIBS"
3736
3737fi
3738
Benny Prijonod4306432010-05-01 22:05:41 +00003739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3740$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3741if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
3742 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003743else
3744 ac_check_lib_save_LIBS=$LIBS
3745LIBS="-luuid $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003747/* end confdefs.h. */
3748
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003749/* Override any GCC internal prototype to avoid an error.
3750 Use char because int might match the return type of a GCC
3751 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003752#ifdef __cplusplus
3753extern "C"
3754#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003755char uuid_generate ();
3756int
3757main ()
3758{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003759return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003760 ;
3761 return 0;
3762}
3763_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003764if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003765 ac_cv_lib_uuid_uuid_generate=yes
3766else
Benny Prijonod4306432010-05-01 22:05:41 +00003767 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003768fi
Benny Prijonod4306432010-05-01 22:05:41 +00003769rm -f core conftest.err conftest.$ac_objext \
3770 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003771LIBS=$ac_check_lib_save_LIBS
3772fi
Benny Prijonod4306432010-05-01 22:05:41 +00003773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3774$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
3775if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003776 cat >>confdefs.h <<_ACEOF
3777#define HAVE_LIBUUID 1
3778_ACEOF
3779
3780 LIBS="-luuid $LIBS"
3781
3782fi
3783
Benny Prijonod4306432010-05-01 22:05:41 +00003784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3785$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3786if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
3787 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003788else
3789 ac_check_lib_save_LIBS=$LIBS
3790LIBS="-luuid $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003792/* end confdefs.h. */
3793
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003794/* Override any GCC internal prototype to avoid an error.
3795 Use char because int might match the return type of a GCC
3796 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003797#ifdef __cplusplus
3798extern "C"
3799#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003800char uuid_generate ();
3801int
3802main ()
3803{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003804return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003805 ;
3806 return 0;
3807}
3808_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003809if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003810 ac_cv_lib_uuid_uuid_generate=yes
3811else
Benny Prijonod4306432010-05-01 22:05:41 +00003812 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003813fi
Benny Prijonod4306432010-05-01 22:05:41 +00003814rm -f core conftest.err conftest.$ac_objext \
3815 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003816LIBS=$ac_check_lib_save_LIBS
3817fi
Benny Prijonod4306432010-05-01 22:05:41 +00003818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3819$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
3820if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003821 ac_has_uuid_lib=1
3822fi
3823
3824
Benny Prijonod4306432010-05-01 22:05:41 +00003825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5
3826$as_echo "Setting PJ_M_NAME to $target_cpu" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003827cat >>confdefs.h <<_ACEOF
3828#define PJ_M_NAME "$target_cpu"
3829_ACEOF
3830
3831
Benny Prijonod4306432010-05-01 22:05:41 +00003832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5
3833$as_echo_n "checking memory alignment... " >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003834case $target in
3835 ia64-* | x86_64-* )
Benny Prijonod4306432010-05-01 22:05:41 +00003836 $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00003837
Benny Prijonod4306432010-05-01 22:05:41 +00003838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5
3839$as_echo "8 bytes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003840 ;;
3841 * )
Benny Prijonod4306432010-05-01 22:05:41 +00003842 $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00003843
Benny Prijonod4306432010-05-01 22:05:41 +00003844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5
3845$as_echo "4 bytes (default)" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003846 ;;
3847esac
3848
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003849
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003850ac_ext=c
3851ac_cpp='$CPP $CPPFLAGS'
3852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3854ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijonod4306432010-05-01 22:05:41 +00003855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3856$as_echo_n "checking how to run the C preprocessor... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003857# On Suns, sometimes $CPP names a directory.
3858if test -n "$CPP" && test -d "$CPP"; then
3859 CPP=
3860fi
3861if test -z "$CPP"; then
Benny Prijonod4306432010-05-01 22:05:41 +00003862 if test "${ac_cv_prog_CPP+set}" = set; then :
3863 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003864else
3865 # Double quotes because CPP needs to be expanded
3866 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3867 do
3868 ac_preproc_ok=false
3869for ac_c_preproc_warn_flag in '' yes
3870do
3871 # Use a header file that comes with gcc, so configuring glibc
3872 # with a fresh cross-compiler works.
3873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874 # <limits.h> exists even on freestanding compilers.
3875 # On the NeXT, cc -E runs the code through the compiler's parser,
3876 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijonod4306432010-05-01 22:05:41 +00003877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003878/* end confdefs.h. */
3879#ifdef __STDC__
3880# include <limits.h>
3881#else
3882# include <assert.h>
3883#endif
3884 Syntax error
3885_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003886if ac_fn_c_try_cpp "$LINENO"; then :
Benny Prijono46bd0842010-02-12 14:12:41 +00003887
Benny Prijonod4306432010-05-01 22:05:41 +00003888else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003889 # Broken: fails on valid input.
3890continue
3891fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003892rm -f conftest.err conftest.$ac_ext
3893
3894 # OK, works on sane cases. Now check whether nonexistent headers
3895 # can be detected and how.
Benny Prijonod4306432010-05-01 22:05:41 +00003896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003897/* end confdefs.h. */
3898#include <ac_nonexistent.h>
3899_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003900if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003901 # Broken: success on invalid input.
3902continue
3903else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003904 # Passes both tests.
3905ac_preproc_ok=:
3906break
3907fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003908rm -f conftest.err conftest.$ac_ext
3909
3910done
3911# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3912rm -f conftest.err conftest.$ac_ext
Benny Prijonod4306432010-05-01 22:05:41 +00003913if $ac_preproc_ok; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003914 break
3915fi
3916
3917 done
3918 ac_cv_prog_CPP=$CPP
3919
3920fi
3921 CPP=$ac_cv_prog_CPP
3922else
3923 ac_cv_prog_CPP=$CPP
3924fi
Benny Prijonod4306432010-05-01 22:05:41 +00003925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3926$as_echo "$CPP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003927ac_preproc_ok=false
3928for ac_c_preproc_warn_flag in '' yes
3929do
3930 # Use a header file that comes with gcc, so configuring glibc
3931 # with a fresh cross-compiler works.
3932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3933 # <limits.h> exists even on freestanding compilers.
3934 # On the NeXT, cc -E runs the code through the compiler's parser,
3935 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijonod4306432010-05-01 22:05:41 +00003936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003937/* end confdefs.h. */
3938#ifdef __STDC__
3939# include <limits.h>
3940#else
3941# include <assert.h>
3942#endif
3943 Syntax error
3944_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003945if ac_fn_c_try_cpp "$LINENO"; then :
Benny Prijono46bd0842010-02-12 14:12:41 +00003946
Benny Prijonod4306432010-05-01 22:05:41 +00003947else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003948 # Broken: fails on valid input.
3949continue
3950fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003951rm -f conftest.err conftest.$ac_ext
3952
3953 # OK, works on sane cases. Now check whether nonexistent headers
3954 # can be detected and how.
Benny Prijonod4306432010-05-01 22:05:41 +00003955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003956/* end confdefs.h. */
3957#include <ac_nonexistent.h>
3958_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003959if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003960 # Broken: success on invalid input.
3961continue
3962else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003963 # Passes both tests.
3964ac_preproc_ok=:
3965break
3966fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003967rm -f conftest.err conftest.$ac_ext
3968
3969done
3970# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3971rm -f conftest.err conftest.$ac_ext
Benny Prijonod4306432010-05-01 22:05:41 +00003972if $ac_preproc_ok; then :
3973
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003974else
Benny Prijonod4306432010-05-01 22:05:41 +00003975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3977as_fn_error "C preprocessor \"$CPP\" fails sanity check
3978See \`config.log' for more details." "$LINENO" 5; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003979fi
3980
3981ac_ext=c
3982ac_cpp='$CPP $CPPFLAGS'
3983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986
3987
Benny Prijonod4306432010-05-01 22:05:41 +00003988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3989$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3990if test "${ac_cv_path_GREP+set}" = set; then :
3991 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003992else
Benny Prijonod4306432010-05-01 22:05:41 +00003993 if test -z "$GREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003994 ac_path_GREP_found=false
Benny Prijonod4306432010-05-01 22:05:41 +00003995 # Loop through the user's path and test for each of PROGNAME-LIST
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003997for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3998do
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00004001 for ac_prog in grep ggrep; do
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4004 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4005# Check for GNU ac_path_GREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004006 # Check for GNU $ac_path_GREP
4007case `"$ac_path_GREP" --version 2>&1` in
4008*GNU*)
4009 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4010*)
4011 ac_count=0
Benny Prijonod4306432010-05-01 22:05:41 +00004012 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004013 while :
4014 do
4015 cat "conftest.in" "conftest.in" >"conftest.tmp"
4016 mv "conftest.tmp" "conftest.in"
4017 cp "conftest.in" "conftest.nl"
Benny Prijonod4306432010-05-01 22:05:41 +00004018 $as_echo 'GREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004019 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4020 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijonod4306432010-05-01 22:05:41 +00004021 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004022 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4023 # Best one so far, save it but keep looking for a better one
4024 ac_cv_path_GREP="$ac_path_GREP"
4025 ac_path_GREP_max=$ac_count
4026 fi
4027 # 10*(2^10) chars as input seems more than enough
4028 test $ac_count -gt 10 && break
4029 done
4030 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4031esac
4032
Benny Prijonod4306432010-05-01 22:05:41 +00004033 $ac_path_GREP_found && break 3
4034 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004035 done
Benny Prijonod4306432010-05-01 22:05:41 +00004036 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004037IFS=$as_save_IFS
Benny Prijonod4306432010-05-01 22:05:41 +00004038 if test -z "$ac_cv_path_GREP"; then
4039 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4040 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004041else
4042 ac_cv_path_GREP=$GREP
4043fi
4044
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004045fi
Benny Prijonod4306432010-05-01 22:05:41 +00004046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4047$as_echo "$ac_cv_path_GREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004048 GREP="$ac_cv_path_GREP"
4049
4050
Benny Prijonod4306432010-05-01 22:05:41 +00004051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4052$as_echo_n "checking for egrep... " >&6; }
4053if test "${ac_cv_path_EGREP+set}" = set; then :
4054 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004055else
4056 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4057 then ac_cv_path_EGREP="$GREP -E"
4058 else
Benny Prijonod4306432010-05-01 22:05:41 +00004059 if test -z "$EGREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004060 ac_path_EGREP_found=false
Benny Prijonod4306432010-05-01 22:05:41 +00004061 # Loop through the user's path and test for each of PROGNAME-LIST
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004063for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4064do
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00004067 for ac_prog in egrep; do
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4070 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4071# Check for GNU ac_path_EGREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004072 # Check for GNU $ac_path_EGREP
4073case `"$ac_path_EGREP" --version 2>&1` in
4074*GNU*)
4075 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4076*)
4077 ac_count=0
Benny Prijonod4306432010-05-01 22:05:41 +00004078 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004079 while :
4080 do
4081 cat "conftest.in" "conftest.in" >"conftest.tmp"
4082 mv "conftest.tmp" "conftest.in"
4083 cp "conftest.in" "conftest.nl"
Benny Prijonod4306432010-05-01 22:05:41 +00004084 $as_echo 'EGREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004085 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijonod4306432010-05-01 22:05:41 +00004087 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004088 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4089 # Best one so far, save it but keep looking for a better one
4090 ac_cv_path_EGREP="$ac_path_EGREP"
4091 ac_path_EGREP_max=$ac_count
4092 fi
4093 # 10*(2^10) chars as input seems more than enough
4094 test $ac_count -gt 10 && break
4095 done
4096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4097esac
4098
Benny Prijonod4306432010-05-01 22:05:41 +00004099 $ac_path_EGREP_found && break 3
4100 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004101 done
Benny Prijonod4306432010-05-01 22:05:41 +00004102 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004103IFS=$as_save_IFS
Benny Prijonod4306432010-05-01 22:05:41 +00004104 if test -z "$ac_cv_path_EGREP"; then
4105 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4106 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004107else
4108 ac_cv_path_EGREP=$EGREP
4109fi
4110
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004111 fi
4112fi
Benny Prijonod4306432010-05-01 22:05:41 +00004113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4114$as_echo "$ac_cv_path_EGREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004115 EGREP="$ac_cv_path_EGREP"
4116
4117
Benny Prijonod4306432010-05-01 22:05:41 +00004118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4119$as_echo_n "checking for ANSI C header files... " >&6; }
4120if test "${ac_cv_header_stdc+set}" = set; then :
4121 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004122else
Benny Prijonod4306432010-05-01 22:05:41 +00004123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004124/* end confdefs.h. */
4125#include <stdlib.h>
4126#include <stdarg.h>
4127#include <string.h>
4128#include <float.h>
4129
4130int
4131main ()
4132{
4133
4134 ;
4135 return 0;
4136}
4137_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004138if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004139 ac_cv_header_stdc=yes
4140else
Benny Prijonod4306432010-05-01 22:05:41 +00004141 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004142fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144
4145if test $ac_cv_header_stdc = yes; then
4146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Benny Prijonod4306432010-05-01 22:05:41 +00004147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004148/* end confdefs.h. */
4149#include <string.h>
4150
4151_ACEOF
4152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijonod4306432010-05-01 22:05:41 +00004153 $EGREP "memchr" >/dev/null 2>&1; then :
4154
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004155else
4156 ac_cv_header_stdc=no
4157fi
4158rm -f conftest*
4159
4160fi
4161
4162if test $ac_cv_header_stdc = yes; then
4163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Benny Prijonod4306432010-05-01 22:05:41 +00004164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004165/* end confdefs.h. */
4166#include <stdlib.h>
4167
4168_ACEOF
4169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijonod4306432010-05-01 22:05:41 +00004170 $EGREP "free" >/dev/null 2>&1; then :
4171
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004172else
4173 ac_cv_header_stdc=no
4174fi
4175rm -f conftest*
4176
4177fi
4178
4179if test $ac_cv_header_stdc = yes; then
4180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Benny Prijonod4306432010-05-01 22:05:41 +00004181 if test "$cross_compiling" = yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004182 :
4183else
Benny Prijonod4306432010-05-01 22:05:41 +00004184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004185/* end confdefs.h. */
4186#include <ctype.h>
4187#include <stdlib.h>
4188#if ((' ' & 0x0FF) == 0x020)
4189# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4190# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4191#else
4192# define ISLOWER(c) \
4193 (('a' <= (c) && (c) <= 'i') \
4194 || ('j' <= (c) && (c) <= 'r') \
4195 || ('s' <= (c) && (c) <= 'z'))
4196# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4197#endif
4198
4199#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4200int
4201main ()
4202{
4203 int i;
4204 for (i = 0; i < 256; i++)
4205 if (XOR (islower (i), ISLOWER (i))
4206 || toupper (i) != TOUPPER (i))
4207 return 2;
4208 return 0;
4209}
4210_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004211if ac_fn_c_try_run "$LINENO"; then :
4212
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004213else
Benny Prijonod4306432010-05-01 22:05:41 +00004214 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004215fi
Benny Prijonod4306432010-05-01 22:05:41 +00004216rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4217 conftest.$ac_objext conftest.beam conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004218fi
4219
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004220fi
4221fi
Benny Prijonod4306432010-05-01 22:05:41 +00004222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4223$as_echo "$ac_cv_header_stdc" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004224if test $ac_cv_header_stdc = yes; then
4225
Benny Prijonod4306432010-05-01 22:05:41 +00004226$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004227
4228fi
4229
4230# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004231for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4232 inttypes.h stdint.h unistd.h
Benny Prijonod4306432010-05-01 22:05:41 +00004233do :
4234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4235ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4236"
4237eval as_val=\$$as_ac_Header
4238 if test "x$as_val" = x""yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004239 cat >>confdefs.h <<_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004240#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004241_ACEOF
4242
4243fi
4244
4245done
4246
4247
Benny Prijonod4306432010-05-01 22:05:41 +00004248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4249$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4250if test "${ac_cv_c_bigendian+set}" = set; then :
4251 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004252else
Benny Prijonod4306432010-05-01 22:05:41 +00004253 ac_cv_c_bigendian=unknown
4254 # See if we're dealing with a universal compiler.
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256/* end confdefs.h. */
4257#ifndef __APPLE_CC__
4258 not a universal capable compiler
4259 #endif
4260 typedef int dummy;
4261
Benny Prijonod5233702010-01-13 13:09:45 +00004262_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004263if ac_fn_c_try_compile "$LINENO"; then :
4264
4265 # Check for potential -arch flags. It is not universal unless
4266 # there are at least two -arch flags with different values.
4267 ac_arch=
4268 ac_prev=
4269 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4270 if test -n "$ac_prev"; then
4271 case $ac_word in
4272 i?86 | x86_64 | ppc | ppc64)
4273 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4274 ac_arch=$ac_word
4275 else
4276 ac_cv_c_bigendian=universal
4277 break
4278 fi
4279 ;;
4280 esac
4281 ac_prev=
4282 elif test "x$ac_word" = "x-arch"; then
4283 ac_prev=arch
4284 fi
4285 done
4286fi
4287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288 if test $ac_cv_c_bigendian = unknown; then
4289 # See if sys/param.h defines the BYTE_ORDER macro.
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004291/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004292#include <sys/types.h>
Benny Prijonod4306432010-05-01 22:05:41 +00004293 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004294
4295int
4296main ()
4297{
Benny Prijonod4306432010-05-01 22:05:41 +00004298#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4299 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4300 && LITTLE_ENDIAN)
4301 bogus endian macros
4302 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004303
4304 ;
4305 return 0;
4306}
4307_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004308if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004309 # It does; now see whether it defined to BIG_ENDIAN or not.
Benny Prijonod4306432010-05-01 22:05:41 +00004310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004311/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004312#include <sys/types.h>
Benny Prijonod4306432010-05-01 22:05:41 +00004313 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004314
4315int
4316main ()
4317{
4318#if BYTE_ORDER != BIG_ENDIAN
Benny Prijonod4306432010-05-01 22:05:41 +00004319 not big endian
4320 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004321
4322 ;
4323 return 0;
4324}
4325_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004326if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004327 ac_cv_c_bigendian=yes
4328else
Benny Prijonod4306432010-05-01 22:05:41 +00004329 ac_cv_c_bigendian=no
Benny Prijono46bd0842010-02-12 14:12:41 +00004330fi
Benny Prijono46bd0842010-02-12 14:12:41 +00004331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonod4306432010-05-01 22:05:41 +00004332fi
4333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 fi
4335 if test $ac_cv_c_bigendian = unknown; then
4336 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono46bd0842010-02-12 14:12:41 +00004338/* end confdefs.h. */
Benny Prijonod4306432010-05-01 22:05:41 +00004339#include <limits.h>
4340
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004341int
4342main ()
4343{
Benny Prijonod4306432010-05-01 22:05:41 +00004344#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4345 bogus endian macros
4346 #endif
4347
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004348 ;
4349 return 0;
4350}
4351_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004352if ac_fn_c_try_compile "$LINENO"; then :
4353 # It does; now see whether it defined to _BIG_ENDIAN or not.
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355/* end confdefs.h. */
4356#include <limits.h>
4357
4358int
4359main ()
4360{
4361#ifndef _BIG_ENDIAN
4362 not big endian
4363 #endif
4364
4365 ;
4366 return 0;
4367}
4368_ACEOF
4369if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004370 ac_cv_c_bigendian=yes
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004371else
Benny Prijonod4306432010-05-01 22:05:41 +00004372 ac_cv_c_bigendian=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004373fi
Benny Prijonod4306432010-05-01 22:05:41 +00004374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375fi
4376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 fi
4378 if test $ac_cv_c_bigendian = unknown; then
4379 # Compile a test program.
4380 if test "$cross_compiling" = yes; then :
4381 # Try to guess by grepping values from an object file.
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383/* end confdefs.h. */
4384short int ascii_mm[] =
4385 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4386 short int ascii_ii[] =
4387 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4388 int use_ascii (int i) {
4389 return ascii_mm[i] + ascii_ii[i];
4390 }
4391 short int ebcdic_ii[] =
4392 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4393 short int ebcdic_mm[] =
4394 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4395 int use_ebcdic (int i) {
4396 return ebcdic_mm[i] + ebcdic_ii[i];
4397 }
4398 extern int foo;
Benny Prijono46bd0842010-02-12 14:12:41 +00004399
Benny Prijonod4306432010-05-01 22:05:41 +00004400int
4401main ()
4402{
4403return use_ascii (foo) == use_ebcdic (foo);
4404 ;
4405 return 0;
4406}
4407_ACEOF
4408if ac_fn_c_try_compile "$LINENO"; then :
4409 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4410 ac_cv_c_bigendian=yes
4411 fi
4412 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4413 if test "$ac_cv_c_bigendian" = unknown; then
4414 ac_cv_c_bigendian=no
4415 else
4416 # finding both strings is unlikely to happen, but who knows?
4417 ac_cv_c_bigendian=unknown
4418 fi
4419 fi
4420fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004422else
Benny Prijonod4306432010-05-01 22:05:41 +00004423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004424/* end confdefs.h. */
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004425$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004426int
4427main ()
4428{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004429
Benny Prijonod4306432010-05-01 22:05:41 +00004430 /* Are we little or big endian? From Harbison&Steele. */
4431 union
4432 {
4433 long int l;
4434 char c[sizeof (long int)];
4435 } u;
4436 u.l = 1;
4437 return u.c[sizeof (long int) - 1] == 1;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004438
4439 ;
4440 return 0;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004441}
4442_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004443if ac_fn_c_try_run "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004444 ac_cv_c_bigendian=no
4445else
Benny Prijonod4306432010-05-01 22:05:41 +00004446 ac_cv_c_bigendian=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004447fi
Benny Prijonod4306432010-05-01 22:05:41 +00004448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4449 conftest.$ac_objext conftest.beam conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004450fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004451
Benny Prijonod4306432010-05-01 22:05:41 +00004452 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004453fi
Benny Prijonod4306432010-05-01 22:05:41 +00004454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4455$as_echo "$ac_cv_c_bigendian" >&6; }
4456 case $ac_cv_c_bigendian in #(
4457 yes)
4458 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4459;; #(
4460 no)
4461 ;; #(
4462 universal)
Benny Prijonod5233702010-01-13 13:09:45 +00004463
Benny Prijonod4306432010-05-01 22:05:41 +00004464$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Benny Prijonod5233702010-01-13 13:09:45 +00004465
Benny Prijonod4306432010-05-01 22:05:41 +00004466 ;; #(
4467 *)
4468 as_fn_error "unknown endianness
4469 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4470 esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004471
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004472
4473case $target in
4474 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonod4306432010-05-01 22:05:41 +00004475 $as_echo "#define PJ_WIN32 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004476
Benny Prijonod4306432010-05-01 22:05:41 +00004477 $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004478
Benny Prijonod4306432010-05-01 22:05:41 +00004479 $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004480
4481 ;;
4482 *darwin*)
Benny Prijonod4306432010-05-01 22:05:41 +00004483 $as_echo "#define PJ_DARWINOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004484
4485 ;;
4486 *linux*)
Benny Prijonod4306432010-05-01 22:05:41 +00004487 $as_echo "#define PJ_LINUX 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004488
4489 ;;
4490 *rtems*)
Benny Prijonod4306432010-05-01 22:05:41 +00004491 $as_echo "#define PJ_RTEMS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004492
4493 ;;
4494 *sunos* | *solaris* )
Benny Prijonod4306432010-05-01 22:05:41 +00004495 $as_echo "#define PJ_SUNOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004496
4497 ;;
4498 *)
4499 ;;
4500esac
4501
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004502
4503
4504
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004505# Check whether --enable-floating-point was given.
Benny Prijonod4306432010-05-01 22:05:41 +00004506if test "${enable_floating_point+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004507 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
Benny Prijonod4306432010-05-01 22:05:41 +00004508 $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004509
Benny Prijonod4306432010-05-01 22:05:41 +00004510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5
4511$as_echo "Checking if floating point is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004512 fi
4513else
4514
Benny Prijonod4306432010-05-01 22:05:41 +00004515 $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004516
Benny Prijonod4306432010-05-01 22:05:41 +00004517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5
4518$as_echo "Checking if floating point is disabled... no" >&6; }
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
4520$as_echo_n "checking for fmod in -lm... " >&6; }
4521if test "${ac_cv_lib_m_fmod+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004523else
4524 ac_check_lib_save_LIBS=$LIBS
4525LIBS="-lm $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00004526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004527/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004528
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004529/* Override any GCC internal prototype to avoid an error.
4530 Use char because int might match the return type of a GCC
4531 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004532#ifdef __cplusplus
4533extern "C"
4534#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004535char fmod ();
4536int
4537main ()
4538{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004539return fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004540 ;
4541 return 0;
4542}
4543_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004544if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004545 ac_cv_lib_m_fmod=yes
4546else
Benny Prijonod4306432010-05-01 22:05:41 +00004547 ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004548fi
Benny Prijonod4306432010-05-01 22:05:41 +00004549rm -f core conftest.err conftest.$ac_objext \
4550 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004551LIBS=$ac_check_lib_save_LIBS
4552fi
Benny Prijonod4306432010-05-01 22:05:41 +00004553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
4554$as_echo "$ac_cv_lib_m_fmod" >&6; }
4555if test "x$ac_cv_lib_m_fmod" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004556 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004557#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004558_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004559
4560 LIBS="-lm $LIBS"
4561
4562fi
4563
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004564
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004565fi
4566
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004567
4568
Benny Prijonod4306432010-05-01 22:05:41 +00004569ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
4570if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
4571 $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004572
4573fi
4574
4575
Benny Prijonod4306432010-05-01 22:05:41 +00004576ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
4577if test "x$ac_cv_header_assert_h" = x""yes; then :
4578 $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004579
4580fi
4581
4582
Benny Prijonod4306432010-05-01 22:05:41 +00004583ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4584if test "x$ac_cv_header_ctype_h" = x""yes; then :
4585 $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004586
4587fi
4588
4589
4590
4591case $target in
4592 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonod4306432010-05-01 22:05:41 +00004593 $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004594
4595 ;;
4596 *)
Benny Prijonod4306432010-05-01 22:05:41 +00004597 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4598if test "x$ac_cv_header_errno_h" = x""yes; then :
4599 $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004600
4601fi
4602
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004603
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004604 ;;
4605esac
4606
Benny Prijonod4306432010-05-01 22:05:41 +00004607ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4608if test "x$ac_cv_header_fcntl_h" = x""yes; then :
4609 $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h
Benny Prijono1d481ab2008-01-24 15:27:30 +00004610
4611fi
4612
4613
Benny Prijonod4306432010-05-01 22:05:41 +00004614ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default"
4615if test "x$ac_cv_header_linux_socket_h" = x""yes; then :
4616 $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004617
4618fi
4619
4620
Benny Prijonod4306432010-05-01 22:05:41 +00004621ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4622if test "x$ac_cv_header_malloc_h" = x""yes; then :
4623 $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004624
4625fi
4626
4627
Benny Prijonod4306432010-05-01 22:05:41 +00004628ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
4629if test "x$ac_cv_header_netdb_h" = x""yes; then :
4630 $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004631
4632fi
4633
4634
Benny Prijonod4306432010-05-01 22:05:41 +00004635ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
4636if test "x$ac_cv_header_netinet_in_systm_h" = x""yes; then :
4637 $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h
Benny Prijono37fc9de2008-08-04 14:45:02 +00004638
4639fi
4640
4641
Benny Prijonod4306432010-05-01 22:05:41 +00004642ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
4643if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
4644 $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004645
4646fi
4647
4648
Benny Prijonod4306432010-05-01 22:05:41 +00004649ac_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 +00004650 # include <sys/types.h>
4651 #endif
4652 #if PJ_HAS_NETINET_IN_SYSTM_H
Benny Prijono37fc9de2008-08-04 14:45:02 +00004653 # include <netinet/in_systm.h>
4654 #endif
Benny Prijonod5233702010-01-13 13:09:45 +00004655 #if PJ_HAS_NETINET_IN_H
4656 # include <netinet/in.h>
4657 #endif
Benny Prijono37fc9de2008-08-04 14:45:02 +00004658
Benny Prijonod4306432010-05-01 22:05:41 +00004659"
4660if test "x$ac_cv_header_netinet_ip_h" = x""yes; then :
4661 $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004662
Benny Prijono46bd0842010-02-12 14:12:41 +00004663fi
4664
Benny Prijonof63a2552007-02-01 00:36:52 +00004665
Benny Prijonod4306432010-05-01 22:05:41 +00004666ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
4667if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then :
4668 $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004669
Benny Prijono46bd0842010-02-12 14:12:41 +00004670fi
4671
Benny Prijono46bd0842010-02-12 14:12:41 +00004672
Benny Prijonod4306432010-05-01 22:05:41 +00004673ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
4674if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
4675 $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004676
Benny Prijono46bd0842010-02-12 14:12:41 +00004677fi
4678
Benny Prijono46bd0842010-02-12 14:12:41 +00004679
Benny Prijonod4306432010-05-01 22:05:41 +00004680ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
4681if test "x$ac_cv_header_semaphore_h" = x""yes; then :
4682 $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h
Benny Prijono1d61ba52009-10-24 00:00:40 +00004683
Benny Prijono1d61ba52009-10-24 00:00:40 +00004684fi
4685
Benny Prijono1d61ba52009-10-24 00:00:40 +00004686
Benny Prijonod4306432010-05-01 22:05:41 +00004687ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
4688if test "x$ac_cv_header_setjmp_h" = x""yes; then :
4689 $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004690
Benny Prijono46bd0842010-02-12 14:12:41 +00004691fi
4692
Benny Prijono46bd0842010-02-12 14:12:41 +00004693
Benny Prijonod4306432010-05-01 22:05:41 +00004694ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
4695if test "x$ac_cv_header_stdarg_h" = x""yes; then :
4696 $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004697
Benny Prijono46bd0842010-02-12 14:12:41 +00004698fi
4699
Benny Prijono46bd0842010-02-12 14:12:41 +00004700
Benny Prijonod4306432010-05-01 22:05:41 +00004701ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
4702if test "x$ac_cv_header_stddef_h" = x""yes; then :
4703 $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h
Benny Prijono1d61ba52009-10-24 00:00:40 +00004704
Benny Prijono1d61ba52009-10-24 00:00:40 +00004705fi
4706
Benny Prijono1d61ba52009-10-24 00:00:40 +00004707
Benny Prijonod4306432010-05-01 22:05:41 +00004708ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4709if test "x$ac_cv_header_stdio_h" = x""yes; then :
4710 $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004711
Benny Prijono46bd0842010-02-12 14:12:41 +00004712fi
4713
Benny Prijono46bd0842010-02-12 14:12:41 +00004714
Benny Prijonod4306432010-05-01 22:05:41 +00004715ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4716if test "x$ac_cv_header_stdint_h" = x""yes; then :
4717 $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004718
Benny Prijono46bd0842010-02-12 14:12:41 +00004719fi
4720
Benny Prijono46bd0842010-02-12 14:12:41 +00004721
Benny Prijonod4306432010-05-01 22:05:41 +00004722ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4723if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4724 $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h
Benny Prijono1d61ba52009-10-24 00:00:40 +00004725
4726fi
4727
4728
Benny Prijonod4306432010-05-01 22:05:41 +00004729ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4730if test "x$ac_cv_header_string_h" = x""yes; then :
4731 $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004732
Benny Prijono46bd0842010-02-12 14:12:41 +00004733fi
4734
Benny Prijono46bd0842010-02-12 14:12:41 +00004735
Benny Prijonod4306432010-05-01 22:05:41 +00004736ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4737if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
4738 $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004739
Benny Prijono46bd0842010-02-12 14:12:41 +00004740fi
4741
Benny Prijono46bd0842010-02-12 14:12:41 +00004742
Benny Prijonod4306432010-05-01 22:05:41 +00004743ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
4744if test "x$ac_cv_header_sys_select_h" = x""yes; then :
4745 $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004746
Benny Prijono46bd0842010-02-12 14:12:41 +00004747fi
Benny Prijono46bd0842010-02-12 14:12:41 +00004748
Benny Prijono1d65f702007-12-03 04:03:17 +00004749
Benny Prijonod4306432010-05-01 22:05:41 +00004750ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
4751if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
4752 $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004753
Benny Prijono46bd0842010-02-12 14:12:41 +00004754fi
Benny Prijono46bd0842010-02-12 14:12:41 +00004755
Benny Prijono46bd0842010-02-12 14:12:41 +00004756
Benny Prijonod4306432010-05-01 22:05:41 +00004757ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
4758if test "x$ac_cv_header_sys_time_h" = x""yes; then :
4759 $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004760
Benny Prijono46bd0842010-02-12 14:12:41 +00004761fi
4762
Benny Prijono46bd0842010-02-12 14:12:41 +00004763
Benny Prijonod4306432010-05-01 22:05:41 +00004764ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
4765if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
4766 $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004767
Benny Prijono46bd0842010-02-12 14:12:41 +00004768fi
Benny Prijono46bd0842010-02-12 14:12:41 +00004769
Benny Prijono1d65f702007-12-03 04:03:17 +00004770
Benny Prijonod4306432010-05-01 22:05:41 +00004771ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4772if test "x$ac_cv_header_sys_types_h" = x""yes; then :
4773 $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004774
Benny Prijono46bd0842010-02-12 14:12:41 +00004775fi
4776
Benny Prijono46bd0842010-02-12 14:12:41 +00004777
Benny Prijonod4306432010-05-01 22:05:41 +00004778ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
4779if test "x$ac_cv_header_sys_filio_h" = x""yes; then :
4780 $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004781
Benny Prijono46bd0842010-02-12 14:12:41 +00004782fi
4783
Benny Prijono46bd0842010-02-12 14:12:41 +00004784
Benny Prijonod4306432010-05-01 22:05:41 +00004785ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
4786if test "x$ac_cv_header_sys_sockio_h" = x""yes; then :
4787 $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004788
Benny Prijono46bd0842010-02-12 14:12:41 +00004789fi
Benny Prijono46bd0842010-02-12 14:12:41 +00004790
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004791
Benny Prijonod4306432010-05-01 22:05:41 +00004792ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
4793if test "x$ac_cv_header_time_h" = x""yes; then :
4794 $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004795
Benny Prijono46bd0842010-02-12 14:12:41 +00004796fi
4797
Benny Prijono46bd0842010-02-12 14:12:41 +00004798
Benny Prijonod4306432010-05-01 22:05:41 +00004799ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4800if test "x$ac_cv_header_unistd_h" = x""yes; then :
4801 $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004802
Benny Prijono46bd0842010-02-12 14:12:41 +00004803fi
4804
Benny Prijono46bd0842010-02-12 14:12:41 +00004805
Benny Prijonod4306432010-05-01 22:05:41 +00004806ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
4807if test "x$ac_cv_header_winsock_h" = x""yes; then :
4808 $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004809
Benny Prijono46bd0842010-02-12 14:12:41 +00004810fi
Benny Prijono46bd0842010-02-12 14:12:41 +00004811
Benny Prijono1c5f4e42008-02-07 13:11:39 +00004812
Benny Prijonod4306432010-05-01 22:05:41 +00004813ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4814if test "x$ac_cv_header_winsock2_h" = x""yes; then :
4815 $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00004816
Benny Prijono46bd0842010-02-12 14:12:41 +00004817fi
Benny Prijono46bd0842010-02-12 14:12:41 +00004818
Benny Prijono46bd0842010-02-12 14:12:41 +00004819
Benny Prijonod4306432010-05-01 22:05:41 +00004820ac_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 +00004821 # include <winsock2.h>
4822 #elif PJ_HAS_WINSOCK_H
4823 # include <winsock.h>
4824 #endif
4825
Benny Prijonod4306432010-05-01 22:05:41 +00004826"
4827if test "x$ac_cv_header_mswsock_h" = x""yes; then :
4828 $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h
Benny Prijonoa9948e62008-03-25 14:03:01 +00004829
4830fi
4831
4832
Benny Prijonod4306432010-05-01 22:05:41 +00004833ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
4834if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
4835 $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h
Benny Prijonoe2746132008-09-27 13:16:35 +00004836
4837fi
4838
4839
Benny Prijonod4306432010-05-01 22:05:41 +00004840ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
4841if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00004842 ac_has_uuid_h=1
4843fi
4844
4845
Benny Prijonod4306432010-05-01 22:05:41 +00004846ac_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 +00004847 # include <sys/types.h>
4848 #endif
4849 #if PJ_HAS_SYS_SOCKET_H
4850
Benny Prijono188ba7e2008-03-25 13:53:16 +00004851 # include <sys/socket.h>
4852 #endif
4853
Benny Prijonod4306432010-05-01 22:05:41 +00004854"
4855if test "x$ac_cv_header_net_if_h" = x""yes; then :
4856 $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h
Benny Prijono188ba7e2008-03-25 13:53:16 +00004857
4858fi
4859
Benny Prijono188ba7e2008-03-25 13:53:16 +00004860
Benny Prijonod4306432010-05-01 22:05:41 +00004861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5
4862$as_echo "Setting PJ_OS_NAME to $target" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004863cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004864#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004865_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004866
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004867
Benny Prijonod4306432010-05-01 22:05:41 +00004868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
4869$as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
4870$as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004871
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004872
Benny Prijonod4306432010-05-01 22:05:41 +00004873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
4874$as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
4875$as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004876
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004877
Benny Prijonod4306432010-05-01 22:05:41 +00004878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5
4879$as_echo "Setting PJ_HAS_MALLOC to 1" >&6; }
4880$as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004881
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004882
Benny Prijonod4306432010-05-01 22:05:41 +00004883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
4884$as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
4885$as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004886
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004887
Benny Prijonod4306432010-05-01 22:05:41 +00004888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
4889$as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
4890$as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004891
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004892
Benny Prijonod4306432010-05-01 22:05:41 +00004893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5
4894$as_echo_n "checking if inet_aton() is available... " >&6; }
4895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004896/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004897#include <sys/types.h>
4898 #include <sys/socket.h>
4899 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004900int
4901main ()
4902{
4903inet_aton(0, 0);
4904 ;
4905 return 0;
4906}
4907_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004908if ac_fn_c_try_compile "$LINENO"; then :
4909 $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004910
Benny Prijonod4306432010-05-01 22:05:41 +00004911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4912$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004913else
Benny Prijonod4306432010-05-01 22:05:41 +00004914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004916fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918
Benny Prijonod4306432010-05-01 22:05:41 +00004919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5
4920$as_echo_n "checking if inet_pton() is available... " >&6; }
4921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004922/* end confdefs.h. */
4923#include <sys/types.h>
4924 #include <sys/socket.h>
4925 #include <arpa/inet.h>
4926int
4927main ()
4928{
4929inet_pton(0, 0, 0);
4930 ;
4931 return 0;
4932}
4933_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004934if ac_fn_c_try_compile "$LINENO"; then :
4935 $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004936
Benny Prijonod4306432010-05-01 22:05:41 +00004937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4938$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004939else
Benny Prijonod4306432010-05-01 22:05:41 +00004940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004942fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944
Benny Prijonod4306432010-05-01 22:05:41 +00004945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5
4946$as_echo_n "checking if inet_ntop() is available... " >&6; }
4947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004948/* end confdefs.h. */
4949#include <sys/types.h>
4950 #include <sys/socket.h>
4951 #include <arpa/inet.h>
4952int
4953main ()
4954{
4955inet_ntop(0, 0, 0, 0);
4956 ;
4957 return 0;
4958}
4959_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004960if ac_fn_c_try_compile "$LINENO"; then :
4961 $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004962
Benny Prijonod4306432010-05-01 22:05:41 +00004963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4964$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004965else
Benny Prijonod4306432010-05-01 22:05:41 +00004966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004968fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4970
Benny Prijonod4306432010-05-01 22:05:41 +00004971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5
4972$as_echo_n "checking if getaddrinfo() is available... " >&6; }
4973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004974/* end confdefs.h. */
4975#include <sys/types.h>
4976 #include <sys/socket.h>
4977 #include <netdb.h>
4978int
4979main ()
4980{
4981getaddrinfo(0, 0, 0, 0);
4982 ;
4983 return 0;
4984}
4985_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004986if ac_fn_c_try_compile "$LINENO"; then :
4987 $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004988
Benny Prijonod4306432010-05-01 22:05:41 +00004989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4990$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004991else
Benny Prijonod4306432010-05-01 22:05:41 +00004992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004994fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4996
Benny Prijonod4306432010-05-01 22:05:41 +00004997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5
4998$as_echo_n "checking if sockaddr_in has sin_len member... " >&6; }
4999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005000/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005001#include <sys/types.h>
5002 #include <sys/socket.h>
5003 #include <netinet/in.h>
5004 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005005int
5006main ()
5007{
5008struct sockaddr_in a; a.sin_len=0;
5009 ;
5010 return 0;
5011}
5012_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005013if ac_fn_c_try_compile "$LINENO"; then :
5014 $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005015
Benny Prijonod4306432010-05-01 22:05:41 +00005016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5017$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005018else
Benny Prijonod4306432010-05-01 22:05:41 +00005019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005021fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023
Benny Prijonod4306432010-05-01 22:05:41 +00005024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5
5025$as_echo_n "checking if socklen_t is available... " >&6; }
5026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005027/* end confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +00005028#include <sys/types.h>
5029 #include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00005030int
5031main ()
5032{
5033socklen_t xxx = 0;
5034 ;
5035 return 0;
5036}
5037_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005038if ac_fn_c_try_compile "$LINENO"; then :
5039 $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h
Benny Prijono30f85c62006-09-09 20:05:33 +00005040
Benny Prijonod4306432010-05-01 22:05:41 +00005041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5042$as_echo "yes" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005043else
Benny Prijonod4306432010-05-01 22:05:41 +00005044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045$as_echo "no" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005046fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048
Benny Prijonod4306432010-05-01 22:05:41 +00005049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5
5050$as_echo_n "checking if SO_ERROR is available... " >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005051case $target in
5052 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonod4306432010-05-01 22:05:41 +00005053 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005054
Benny Prijonod4306432010-05-01 22:05:41 +00005055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5056$as_echo "yes" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005057 ;;
5058 *)
Benny Prijonod4306432010-05-01 22:05:41 +00005059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005060/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005061#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005062 #include <sys/socket.h>
5063 #include <netinet/in.h>
5064 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005065int
5066main ()
5067{
5068int i=SO_ERROR;
5069 ;
5070 return 0;
5071}
5072_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005073if ac_fn_c_try_compile "$LINENO"; then :
5074 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005075
Benny Prijonod4306432010-05-01 22:05:41 +00005076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5077$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005078else
Benny Prijonod4306432010-05-01 22:05:41 +00005079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005081fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005083 ;;
5084esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005085
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005086
Benny Prijonod4306432010-05-01 22:05:41 +00005087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5
5088$as_echo_n "checking if pthread_rwlock_t is available... " >&6; }
5089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005090/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005091#include <pthread.h>
5092int
5093main ()
5094{
5095pthread_rwlock_t *x;
5096 ;
5097 return 0;
5098}
5099_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005100if ac_fn_c_try_compile "$LINENO"; then :
5101 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005102
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005103 ac_rwmutex="yes"
Benny Prijonod4306432010-05-01 22:05:41 +00005104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5105$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005106else
Benny Prijonod4306432010-05-01 22:05:41 +00005107 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005108
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005109 ac_rwmutex="no"
Benny Prijonod4306432010-05-01 22:05:41 +00005110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005112fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005114
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005115if test "$ac_rwmutex" = "no"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
5117$as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; }
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005119/* end confdefs.h. */
5120#define _POSIX_READER_WRITER_LOCKS
5121 #include <pthread.h>
5122int
5123main ()
5124{
5125pthread_rwlock_t *x;
5126 ;
5127 return 0;
5128}
5129_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005130if ac_fn_c_try_compile "$LINENO"; then :
5131 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005132
5133 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Benny Prijonod4306432010-05-01 22:05:41 +00005134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5135$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005136else
Benny Prijonod4306432010-05-01 22:05:41 +00005137 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005138
Benny Prijonod4306432010-05-01 22:05:41 +00005139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005141fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5143fi
5144
Benny Prijonod4306432010-05-01 22:05:41 +00005145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5
5146$as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; }
5147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005148/* end confdefs.h. */
5149#include <pthread.h>
5150int
5151main ()
5152{
5153pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
5154 ;
5155 return 0;
5156}
5157_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005158if ac_fn_c_try_compile "$LINENO"; then :
5159 $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005160
Benny Prijonod4306432010-05-01 22:05:41 +00005161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5162$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005163else
Benny Prijonod4306432010-05-01 22:05:41 +00005164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005166fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168
Benny Prijonod4306432010-05-01 22:05:41 +00005169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5
5170$as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; }
5171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005172/* end confdefs.h. */
5173#include <pthread.h>
5174int
5175main ()
5176{
5177pthread_mutexattr_t attr;
5178 attr.recursive=1;
5179 ;
5180 return 0;
5181}
5182_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005183if ac_fn_c_try_compile "$LINENO"; then :
5184 $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005185
Benny Prijonod4306432010-05-01 22:05:41 +00005186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5187$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005188else
Benny Prijonod4306432010-05-01 22:05:41 +00005189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005191fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005193
Benny Prijono99eec382008-09-18 21:22:16 +00005194
Benny Prijonod4306432010-05-01 22:05:41 +00005195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5
5196$as_echo_n "checking ioqueue backend... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005197# Check whether --enable-epoll was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005198if test "${enable_epoll+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005199 enableval=$enable_epoll;
Benny Prijono99eec382008-09-18 21:22:16 +00005200 ac_os_objs=ioqueue_epoll.o
Benny Prijonod4306432010-05-01 22:05:41 +00005201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5
5202$as_echo "/dev/epoll" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005203
5204else
5205
5206 ac_os_objs=ioqueue_select.o
Benny Prijonod4306432010-05-01 22:05:41 +00005207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5
5208$as_echo "select()" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005209
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005210fi
5211
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005212
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005213
5214case $target in
5215 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono99eec382008-09-18 21:22:16 +00005216 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 +00005217 ;;
5218 *)
Benny Prijono99eec382008-09-18 21:22:16 +00005219 ac_os_objs="$ac_os_objs file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o"
Benny Prijono4e48b512007-05-16 13:41:00 +00005220 # UUID
5221 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
5222 ac_os_objs="$ac_os_objs guid_uuid.o"
5223 else
5224 ac_os_objs="$ac_os_objs guid_simple.o"
5225 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005226 ;;
5227esac
5228
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005229
5230
5231
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005232ac_external_speex=0
5233
5234
5235# Check whether --with-external-speex was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005236if test "${with_external_speex+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005237 withval=$with_external_speex;
5238 if test "x$with_external_speex" != "xno"; then
5239 # Test Speex installation
Benny Prijonod4306432010-05-01 22:05:41 +00005240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5
5241$as_echo_n "checking if external Speex devkit is installed... " >&6; }
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005243/* end confdefs.h. */
5244#include <speex/speex.h>
5245 #include <speex/speex_echo.h>
5246
5247int
5248main ()
5249{
5250speex_echo_state_init(0, 0); speex_encoder_init(0);
5251 ;
5252 return 0;
5253}
5254_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005255if ac_fn_c_try_compile "$LINENO"; then :
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5257$as_echo "yes!!" >&6; }
5258 $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005259
5260 ac_external_speex="1"
5261
5262else
Benny Prijonod4306432010-05-01 22:05:41 +00005263 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 +00005264fi
5265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266 fi
5267
5268
5269fi
5270
5271
5272ac_external_gsm=0
5273
5274
5275# Check whether --with-external-gsm was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005276if test "${with_external_gsm+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005277 withval=$with_external_gsm;
5278 if test "x$with_external_gsm" != "xno"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005279 # Test GSM library installation
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5
5281$as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; }
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005283/* end confdefs.h. */
5284#include <gsm/gsm.h>
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005285int
5286main ()
5287{
5288gsm_create();
5289 ;
5290 return 0;
5291}
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005292_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005293if ac_fn_c_try_compile "$LINENO"; then :
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5295$as_echo "yes!!" >&6; }
5296 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005297
Benny Prijonod4306432010-05-01 22:05:41 +00005298 $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h
5299
5300 ac_external_gsm="1"
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005301
5302else
Benny Prijono46bd0842010-02-12 14:12:41 +00005303
Benny Prijonod4306432010-05-01 22:05:41 +00005304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305$as_echo "no" >&6; }
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5
5307$as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; }
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309/* end confdefs.h. */
5310#include <gsm.h>
5311int
5312main ()
5313{
5314gsm_create();
5315 ;
5316 return 0;
5317}
5318_ACEOF
5319if ac_fn_c_try_compile "$LINENO"; then :
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5321$as_echo "yes!!" >&6; }
5322 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
5323
5324 $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h
5325
5326 ac_external_gsm="1"
5327
5328else
5329 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
5330
5331
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005332fi
Benny Prijonod4306432010-05-01 22:05:41 +00005333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono46bd0842010-02-12 14:12:41 +00005334
Benny Prijonod4306432010-05-01 22:05:41 +00005335
5336fi
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338 fi
5339
5340
5341fi
5342
5343
5344
5345
Benny Prijono4e48b512007-05-16 13:41:00 +00005346
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005347# Check whether --enable-sound was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005348if test "${enable_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005349 enableval=$enable_sound; if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +00005350 ac_pjmedia_snd=null
Benny Prijonod4306432010-05-01 22:05:41 +00005351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5
5352$as_echo "Checking if sound is disabled... yes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00005353 fi
5354
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005355fi
5356
Benny Prijono1d971622006-09-10 22:27:40 +00005357
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005358ac_external_pa=0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005359
Benny Prijono27c98722007-04-09 21:28:15 +00005360
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005361# Check whether --with-external-pa was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005362if test "${with_external_pa+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005363 withval=$with_external_pa;
5364 if test "x$with_external_pa" != "xno"; then
5365 # Test PortAudio installation
Benny Prijonod4306432010-05-01 22:05:41 +00005366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5
5367$as_echo_n "checking if external PortAudio devkit is installed... " >&6; }
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005369/* end confdefs.h. */
5370#include <portaudio.h>
5371
5372int
5373main ()
5374{
5375Pa_Initialize();
5376 ;
5377 return 0;
5378}
5379_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005380if ac_fn_c_try_compile "$LINENO"; then :
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5382$as_echo "yes!!" >&6; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005383 ac_external_pa="1"
5384
5385else
Benny Prijonod4306432010-05-01 22:05:41 +00005386 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 +00005387fi
5388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonofe0c1272010-01-13 16:28:15 +00005389 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005390
Benny Prijono27c98722007-04-09 21:28:15 +00005391
5392fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005393
5394
5395
Benny Prijonod4306432010-05-01 22:05:41 +00005396ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
5397if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005398 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
5399fi
5400
5401
Benny Prijonod4306432010-05-01 22:05:41 +00005402ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
5403if test "x$ac_cv_header_linux_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005404 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
5405fi
5406
5407
Benny Prijonod4306432010-05-01 22:05:41 +00005408ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
5409if test "x$ac_cv_header_machine_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005410 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
5411fi
5412
5413
5414
Benny Prijono3e091672008-01-09 15:43:02 +00005415if test "x$ac_cv_c_bigendian" = "xyes"; then
5416 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
5417else
5418 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
5419fi
5420
Benny Prijono1d971622006-09-10 22:27:40 +00005421if test "$enable_sound" = "no"; then
5422 true;
5423else
5424 case $target in
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005425 arm-apple-darwin*)
5426 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox"
Benny Prijono2d1f1b62010-05-17 16:09:12 +00005427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5
5428$as_echo "Checking sound device backend... AudioUnit" >&6; }
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005429 ;;
Benny Prijonob466e232006-09-10 08:53:59 +00005430 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00005431 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
5432 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +00005433 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +00005434 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
5435 ac_pjmedia_snd=pa_old_darwinos
Benny Prijonod4306432010-05-01 22:05:41 +00005436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5
5437$as_echo "Checking sound device backend... old coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005438 else
5439 ac_pjmedia_snd=pa_darwinos
Benny Prijonod4306432010-05-01 22:05:41 +00005440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5
5441$as_echo "Checking sound device backend... coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005442 fi
Benny Prijonob466e232006-09-10 08:53:59 +00005443 ;;
5444 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005445 ac_pjmedia_snd=pa_win32
Benny Prijonod4306432010-05-01 22:05:41 +00005446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5
5447$as_echo "Checking sound device backend... win32 sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005448 ;;
5449 *rtems*)
5450 ac_pjmedia_snd=null
Benny Prijonod4306432010-05-01 22:05:41 +00005451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5
5452$as_echo "Checking sound device backend... null sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005453 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005454 *)
Benny Prijono0b462322008-03-12 22:44:24 +00005455 ac_pjmedia_snd=pa_unix
Benny Prijonod4306432010-05-01 22:05:41 +00005456 ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default"
5457if test "x$ac_cv_header_alsa_version_h" = x""yes; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005458 ac_pa_use_alsa=1
5459
5460 LIBS="$LIBS -lasound"
5461
5462else
5463 ac_pa_use_alsa=0
5464
5465fi
5466
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005467
Benny Prijonod4306432010-05-01 22:05:41 +00005468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5
5469$as_echo "Checking sound device backend... unix" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005470
5471 ac_pa_use_oss=1
5472
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005473 # Check whether --enable-oss was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005474if test "${enable_oss+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005475 enableval=$enable_oss;
Benny Prijono0b462322008-03-12 22:44:24 +00005476 if test "$enable_oss" = "no"; then
5477 ac_pa_use_oss=0
Benny Prijonod4306432010-05-01 22:05:41 +00005478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5
5479$as_echo "Checking if OSS audio is disabled... yes" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005480 fi
5481
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005482fi
5483
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005484 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00005485 esac
5486fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005487
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005488# Check whether --enable-ext_sound was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005489if test "${enable_ext_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005490 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
Benny Prijonoebb2c332008-07-28 23:40:58 +00005491 ac_pjmedia_snd=external
Benny Prijonod4306432010-05-01 22:05:41 +00005492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5
5493$as_echo "Checking if external sound is set... yes" >&6; }
Benny Prijonoebb2c332008-07-28 23:40:58 +00005494 fi
5495
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005496fi
Benny Prijonoebb2c332008-07-28 23:40:58 +00005497
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005498
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005499
5500# Check whether --enable-small-filter was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005501if test "${enable_small_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005502 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005503 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijonod4306432010-05-01 22:05:41 +00005504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5
5505$as_echo "Checking if small filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005506 fi
5507else
Benny Prijonod4306432010-05-01 22:05:41 +00005508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5
5509$as_echo "Checking if small filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005510fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005511
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005512
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005513
5514# Check whether --enable-large-filter was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005515if test "${enable_large_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005516 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005517 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijonod4306432010-05-01 22:05:41 +00005518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5
5519$as_echo "Checking if large filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005520 fi
5521else
Benny Prijonod4306432010-05-01 22:05:41 +00005522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5
5523$as_echo "Checking if large filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005524fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005525
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005526
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005527
5528# Check whether --enable-speex-aec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005529if test "${enable_speex_aec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005530 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005531 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijonod4306432010-05-01 22:05:41 +00005532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5
5533$as_echo "Checking if Speex AEC is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005534 fi
5535else
Benny Prijonod4306432010-05-01 22:05:41 +00005536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5
5537$as_echo "Checking if Speex AEC is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005538fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005539
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005540
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005541
5542# Check whether --enable-g711-codec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005543if test "${enable_g711_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005544 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005545 ac_no_g711_codec=1
Benny Prijonod4306432010-05-01 22:05:41 +00005546 $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005547
Benny Prijonod4306432010-05-01 22:05:41 +00005548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5
5549$as_echo "Checking if G.711 codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005550 fi
5551else
Benny Prijonod4306432010-05-01 22:05:41 +00005552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5
5553$as_echo "Checking if G.711 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005554fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005555
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005556
5557
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005558
5559# Check whether --enable-l16-codec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005560if test "${enable_l16_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005561 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005562 ac_no_l16_codec=1
Benny Prijonod4306432010-05-01 22:05:41 +00005563 $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005564
Benny Prijonod4306432010-05-01 22:05:41 +00005565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5
5566$as_echo "Checking if L16 codecs are disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005567 fi
5568else
Benny Prijonod4306432010-05-01 22:05:41 +00005569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5
5570$as_echo "Checking if L16 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005571fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005572
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005573
5574
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005575
5576# Check whether --enable-gsm-codec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005577if test "${enable_gsm_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005578 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005579 ac_no_gsm_codec=1
Benny Prijonod4306432010-05-01 22:05:41 +00005580 $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005581
Benny Prijonod4306432010-05-01 22:05:41 +00005582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5
5583$as_echo "Checking if GSM codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005584 fi
5585else
Benny Prijonod4306432010-05-01 22:05:41 +00005586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5
5587$as_echo "Checking if GSM codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005588fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005589
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005590
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005591
5592# Check whether --enable-g722-codec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005593if test "${enable_g722_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005594 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
Benny Prijono71f657d2008-03-17 14:24:21 +00005595 ac_no_g722_codec=1
Benny Prijonod4306432010-05-01 22:05:41 +00005596 $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h
Benny Prijono71f657d2008-03-17 14:24:21 +00005597
Benny Prijonod4306432010-05-01 22:05:41 +00005598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5
5599$as_echo "Checking if G.722 codec is disabled...yes" >&6; }
Benny Prijono71f657d2008-03-17 14:24:21 +00005600 fi
5601else
Benny Prijonod4306432010-05-01 22:05:41 +00005602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5
5603$as_echo "Checking if G.722 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005604fi
Benny Prijono71f657d2008-03-17 14:24:21 +00005605
5606
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005607
5608# Check whether --enable-g7221-codec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005609if test "${enable_g7221_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005610 enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
5611 ac_no_g7221_codec=1
Benny Prijonod4306432010-05-01 22:05:41 +00005612 $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005613
Benny Prijonod4306432010-05-01 22:05:41 +00005614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5
5615$as_echo "Checking if G.722.1 codec is disabled...yes" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005616 fi
5617else
Benny Prijonod4306432010-05-01 22:05:41 +00005618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5
5619$as_echo "Checking if G.722.1 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005620fi
5621
5622
5623
5624# Check whether --enable-speex-codec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005625if test "${enable_speex_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005626 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005627 ac_no_speex_codec=1
Benny Prijonod4306432010-05-01 22:05:41 +00005628 $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005629
Benny Prijonod4306432010-05-01 22:05:41 +00005630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5
5631$as_echo "Checking if Speex codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005632 fi
5633else
Benny Prijonod4306432010-05-01 22:05:41 +00005634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5
5635$as_echo "Checking if Speex codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005636fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005637
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005638
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005639
5640# Check whether --enable-ilbc-codec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005641if test "${enable_ilbc_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005642 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005643 ac_no_ilbc_codec=1
Benny Prijonod4306432010-05-01 22:05:41 +00005644 $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005645
Benny Prijonod4306432010-05-01 22:05:41 +00005646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5
5647$as_echo "Checking if iLBC codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005648 fi
5649else
Benny Prijonod4306432010-05-01 22:05:41 +00005650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5
5651$as_echo "Checking if iLBC codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005652fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005653
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005654
5655# Check whether --enable-libsamplerate was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005656if test "${enable_libsamplerate+set}" = set; then :
5657 enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5
5658$as_echo_n "checking for src_new in -lsamplerate... " >&6; }
5659if test "${ac_cv_lib_samplerate_src_new+set}" = set; then :
5660 $as_echo_n "(cached) " >&6
Benny Prijono550a1a62007-10-16 08:54:00 +00005661else
5662 ac_check_lib_save_LIBS=$LIBS
5663LIBS="-lsamplerate $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00005664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00005665/* end confdefs.h. */
5666
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005667/* Override any GCC internal prototype to avoid an error.
5668 Use char because int might match the return type of a GCC
5669 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +00005670#ifdef __cplusplus
5671extern "C"
5672#endif
Benny Prijono550a1a62007-10-16 08:54:00 +00005673char src_new ();
5674int
5675main ()
5676{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005677return src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +00005678 ;
5679 return 0;
5680}
5681_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005682if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00005683 ac_cv_lib_samplerate_src_new=yes
5684else
Benny Prijonod4306432010-05-01 22:05:41 +00005685 ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +00005686fi
Benny Prijonod4306432010-05-01 22:05:41 +00005687rm -f core conftest.err conftest.$ac_objext \
5688 conftest$ac_exeext conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00005689LIBS=$ac_check_lib_save_LIBS
5690fi
Benny Prijonod4306432010-05-01 22:05:41 +00005691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5
5692$as_echo "$ac_cv_lib_samplerate_src_new" >&6; }
5693if test "x$ac_cv_lib_samplerate_src_new" = x""yes; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00005694 cat >>confdefs.h <<_ACEOF
5695#define HAVE_LIBSAMPLERATE 1
5696_ACEOF
5697
5698 LIBS="-lsamplerate $LIBS"
5699
5700fi
5701
5702else
Benny Prijonod4306432010-05-01 22:05:41 +00005703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5
5704$as_echo "Skipping libsamplerate detection" >&6; }
Benny Prijono550a1a62007-10-16 08:54:00 +00005705
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005706fi
Benny Prijono0822c192008-08-21 20:59:58 +00005707
5708
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005709
5710# Check whether --enable-ipp was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005711if test "${enable_ipp+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005712 enableval=$enable_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00005713else
5714 enable_ipp=no
5715
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005716fi
Benny Prijono0822c192008-08-21 20:59:58 +00005717
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005718
Benny Prijono3965f192010-02-10 18:46:05 +00005719
5720# Check whether --with-ipp was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005721if test "${with_ipp+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00005722 withval=$with_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00005723else
5724 with_ipp=no
5725
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005726fi
Benny Prijono0822c192008-08-21 20:59:58 +00005727
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005728
Benny Prijono3965f192010-02-10 18:46:05 +00005729
5730# Check whether --with-ipp-samples was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005731if test "${with_ipp_samples+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00005732 withval=$with_ipp_samples;
Benny Prijono0822c192008-08-21 20:59:58 +00005733else
5734 with_ipp_samples=no
5735
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005736fi
5737
Benny Prijono0822c192008-08-21 20:59:58 +00005738
Benny Prijono3965f192010-02-10 18:46:05 +00005739
5740# Check whether --with-ipp-arch was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005741if test "${with_ipp_arch+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00005742 withval=$with_ipp_arch;
5743else
5744 with_ipp_arch=no
5745
5746fi
5747
5748
Benny Prijono0822c192008-08-21 20:59:58 +00005749if test "x$enable_ipp" != "xno"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5
5751$as_echo_n "checking Intel IPP location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005752
5753 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5
5755$as_echo "$with_ipp" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005756 IPPROOT=$with_ipp
5757 elif test "x$IPPROOT" = "x"; then
5758 if test -d /opt/intel/ipp; then
5759 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
Benny Prijonod4306432010-05-01 22:05:41 +00005760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5
5761$as_echo "autodetected in $IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005762 fi
5763 else
Benny Prijonod4306432010-05-01 22:05:41 +00005764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5
5765$as_echo "$IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005766 fi
5767
Benny Prijono3965f192010-02-10 18:46:05 +00005768 if test "x$with_ipp_arch" != "xno"; then
5769 IPP_SUFFIX="em64t"
Benny Prijonod4306432010-05-01 22:05:41 +00005770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5
5771$as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00005772 else
5773 IPP_SUFFIX=""
Benny Prijonod4306432010-05-01 22:05:41 +00005774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5
5775$as_echo "IPP arch suffix is set to empty" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00005776 fi
5777
Benny Prijono0822c192008-08-21 20:59:58 +00005778 if test x$IPPROOT = x; then
Benny Prijonod4306432010-05-01 22:05:41 +00005779 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 +00005780 elif test ! -d $IPPROOT; then
Benny Prijonod4306432010-05-01 22:05:41 +00005781 as_fn_error "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00005782 elif test ! -d $IPPROOT/include; then
Benny Prijonod4306432010-05-01 22:05:41 +00005783 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00005784 else
5785 # IPP directory looks okay.
5786 # Remove trailing backslash
Benny Prijono3965f192010-02-10 18:46:05 +00005787 IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
Benny Prijono0822c192008-08-21 20:59:58 +00005788
5789 SAVED_CFLAGS="$CFLAGS"
5790 SAVED_LDFLAGS="$LDFLAGS"
5791 SAVED_LIBS="$LIBS"
5792
5793 IPP_CFLAGS="-I$IPPROOT/include"
Benny Prijono46bd0842010-02-12 14:12:41 +00005794 IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippsr${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
5795
5796 # Some differences between Mac OS X and Linux
5797 case $target in
5798 *darwin* )
5799 IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
5800 ;;
5801 *)
5802 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
5803 IPP_LIBS="$IPP_LIBS -lguide"
5804 ;;
5805 esac
5806
Benny Prijono0822c192008-08-21 20:59:58 +00005807 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
Benny Prijono46bd0842010-02-12 14:12:41 +00005808 #Static:
Benny Prijono0822c192008-08-21 20:59:58 +00005809 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
5810
5811 CFLAGS="$CFLAGS $IPP_CFLAGS"
5812 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
5813 LIBS="$IPP_LIBS $LIBS"
5814
5815
Benny Prijonod4306432010-05-01 22:05:41 +00005816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5
5817$as_echo_n "checking Intel IPP usability... " >&6; }
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005819/* end confdefs.h. */
5820#include <ippcore.h>
5821
5822int
5823main ()
5824{
5825ippStaticInit();
5826 ;
5827 return 0;
5828}
5829_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005830if ac_fn_c_try_link "$LINENO"; then :
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5832$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005833else
Benny Prijonod4306432010-05-01 22:05:41 +00005834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5835$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5836{ as_fn_set_status run with --help for more info
5837as_fn_error "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly
5838See \`config.log' for more details." "$LINENO" 5; }; }
Benny Prijono0822c192008-08-21 20:59:58 +00005839fi
Benny Prijonod4306432010-05-01 22:05:41 +00005840rm -f core conftest.err conftest.$ac_objext \
5841 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005842
5843 CFLAGS="$SAVED_CFLAGS"
5844 LDFLAGS="$SAVED_LDFLAGS"
5845 LIBS="$SAVED_LIBS"
5846 fi
5847
Benny Prijonod4306432010-05-01 22:05:41 +00005848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5
5849$as_echo_n "checking Intel IPP samples location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005850
5851 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5
5853$as_echo "$with_ipp_samples" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005854 IPPSAMPLES=$with_ipp_samples
5855 elif test "x$IPPSAMPLES" = "x"; then
5856 if test -d /opt/intel/ipp-samples; then
5857 IPPSAMPLES=/opt/intel/ipp-samples
Benny Prijonod4306432010-05-01 22:05:41 +00005858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5
5859$as_echo "autodetected in $IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005860 fi
5861 else
Benny Prijonod4306432010-05-01 22:05:41 +00005862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5
5863$as_echo "$IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005864 fi
5865
5866 if test x$IPPSAMPLES = x; then
Benny Prijonod4306432010-05-01 22:05:41 +00005867 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 +00005868 elif test ! -d $IPPSAMPLES; then
Benny Prijonod4306432010-05-01 22:05:41 +00005869 as_fn_error "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00005870 elif test ! -d $IPPSAMPLES/speech-codecs; then
Benny Prijonod4306432010-05-01 22:05:41 +00005871 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00005872 else
5873 # Remove trailing backslash
5874 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
5875
Benny Prijono3965f192010-02-10 18:46:05 +00005876 # Guess the libusc.a/libspeech.a build location
Benny Prijonod4306432010-05-01 22:05:41 +00005877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5
5878$as_echo_n "checking Intel IPP USC build location... " >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00005879 if test -d $IPPSAMPLES/speech-codecs/bin; then
5880 IPPVER=5
5881 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
5882 elif test -d $IPPSAMPLES/speech-codecs/_bin; then
5883 IPPVER=6
Benny Prijono46bd0842010-02-12 14:12:41 +00005884 if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
5885 # gcc compiler
5886 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
5887 elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
5888 # icc compiler
5889 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
5890 else
Benny Prijonod4306432010-05-01 22:05:41 +00005891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5893as_fn_error "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
5894See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono46bd0842010-02-12 14:12:41 +00005895 fi
Benny Prijono3965f192010-02-10 18:46:05 +00005896 else
Benny Prijonod4306432010-05-01 22:05:41 +00005897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5899as_fn_error "unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?
5900See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00005901 fi
Benny Prijono3965f192010-02-10 18:46:05 +00005902
5903 # Test the directory
5904 if test ! -d $IPPSAMP_DIR; then
Benny Prijonod4306432010-05-01 22:05:41 +00005905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5907as_fn_error "There's something wrong with this script, directory $IPPSAMP_DIR does not exist
5908See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00005909 exit 1;
5910 fi
5911
5912 if test "x$IPPVER" = "x5"; then
5913 IPPSAMP_LIBS="libusc.a"
5914 IPPSAMP_LDLIBS="-lusc"
5915 elif test "x$IPPVER" = "x6"; then
5916 IPPSAMP_LIBS="libspeech.a"
5917 IPPSAMP_LDLIBS="-lspeech"
5918 else
Benny Prijonod4306432010-05-01 22:05:41 +00005919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5920$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5921as_fn_error "bug in this script: unsupported IPP version
5922See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00005923 fi
Benny Prijono3965f192010-02-10 18:46:05 +00005924
5925 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
Benny Prijonod4306432010-05-01 22:05:41 +00005926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5928as_fn_error "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
5929See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00005930 fi
5931
Benny Prijonod4306432010-05-01 22:05:41 +00005932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5
5933$as_echo "$IPPSAMP_DIR" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005934
5935 SAVED_CFLAGS="$CFLAGS"
5936 SAVED_LDFLAGS="$LDFLAGS"
5937 SAVED_LIBS="$LIBS"
5938
Benny Prijono3965f192010-02-10 18:46:05 +00005939 IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
5940 CFLAGS="$CFLAGS $IPPSAMP_INC"
5941 LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR"
5942 LIBS="$IPPSAMP_LDLIBS $LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00005943
Benny Prijonod4306432010-05-01 22:05:41 +00005944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5
5945$as_echo_n "checking Intel IPP USC usability... " >&6; }
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005947/* end confdefs.h. */
5948#include <usc.h>
5949
5950int
5951main ()
5952{
5953extern USC_Fxns USC_G729AFP_Fxns;
5954 ;
5955 return 0;
5956}
5957_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005958if ac_fn_c_try_link "$LINENO"; then :
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5960$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005961else
Benny Prijonod4306432010-05-01 22:05:41 +00005962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5963$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5964as_fn_error "failed
5965See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00005966fi
Benny Prijonod4306432010-05-01 22:05:41 +00005967rm -f core conftest.err conftest.$ac_objext \
5968 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005969
5970 CFLAGS="$SAVED_CFLAGS"
Benny Prijono3965f192010-02-10 18:46:05 +00005971 LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
5972 LIBS="$IPP_LIBS $SAVED_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00005973
Benny Prijono3965f192010-02-10 18:46:05 +00005974 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
5975 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
5976 IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00005977 fi
5978
Benny Prijono3965f192010-02-10 18:46:05 +00005979 CFLAGS="$CFLAGS $IPP_CFLAGS"
5980 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
5981 LIBS="$LIBS $IPP_LIBS"
5982
Benny Prijono0822c192008-08-21 20:59:58 +00005983 ac_build_mak_vars="$ac_build_mak_vars\n\
5984export IPP_CFLAGS=$IPP_CFLAGS\n\
5985export IPP_LDFLAGS=$IPP_LDFLAGS\n\
5986export IPP_LIBS=$IPP_LIBS"
5987else
Benny Prijonod4306432010-05-01 22:05:41 +00005988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5
5989$as_echo "Skipping Intel IPP settings (not wanted)" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005990fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005991
5992
5993
5994
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005995# Check whether --enable-ssl was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005996if test "${enable_ssl+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005997 enableval=$enable_ssl;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005998 if test "$enable_ssl" = "no"; then
5999 ac_no_ssl=1
Benny Prijonod4306432010-05-01 22:05:41 +00006000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5
6001$as_echo "Checking if SSL support is disabled... yes" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006002 fi
6003
6004else
6005
Benny Prijonod4306432010-05-01 22:05:41 +00006006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5
6007$as_echo "checking for OpenSSL installations.." >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006008
6009
6010
Benny Prijonod4306432010-05-01 22:05:41 +00006011 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
6012if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006013 openssl_h_present=1
6014fi
6015
6016
Benny Prijonod4306432010-05-01 22:05:41 +00006017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5
6018$as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; }
6019if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then :
6020 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006021else
6022 ac_check_lib_save_LIBS=$LIBS
6023LIBS="-lcrypto $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00006024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006025/* end confdefs.h. */
6026
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006027/* Override any GCC internal prototype to avoid an error.
6028 Use char because int might match the return type of a GCC
6029 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006030#ifdef __cplusplus
6031extern "C"
6032#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006033char ERR_load_BIO_strings ();
6034int
6035main ()
6036{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006037return ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006038 ;
6039 return 0;
6040}
6041_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00006042if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006043 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
6044else
Benny Prijonod4306432010-05-01 22:05:41 +00006045 ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006046fi
Benny Prijonod4306432010-05-01 22:05:41 +00006047rm -f core conftest.err conftest.$ac_objext \
6048 conftest$ac_exeext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006049LIBS=$ac_check_lib_save_LIBS
6050fi
Benny Prijonod4306432010-05-01 22:05:41 +00006051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
6052$as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
6053if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006054 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
6055fi
6056
Benny Prijonod4306432010-05-01 22:05:41 +00006057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
6058$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
6059if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
Benny Prijonod5233702010-01-13 13:09:45 +00006061else
6062 ac_check_lib_save_LIBS=$LIBS
6063LIBS="-lssl $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00006064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00006065/* end confdefs.h. */
6066
6067/* Override any GCC internal prototype to avoid an error.
6068 Use char because int might match the return type of a GCC
6069 builtin and then its argument prototype would still apply. */
6070#ifdef __cplusplus
6071extern "C"
6072#endif
6073char SSL_library_init ();
6074int
6075main ()
6076{
6077return SSL_library_init ();
6078 ;
6079 return 0;
6080}
6081_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00006082if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonod5233702010-01-13 13:09:45 +00006083 ac_cv_lib_ssl_SSL_library_init=yes
6084else
Benny Prijonod4306432010-05-01 22:05:41 +00006085 ac_cv_lib_ssl_SSL_library_init=no
Benny Prijonod5233702010-01-13 13:09:45 +00006086fi
Benny Prijonod4306432010-05-01 22:05:41 +00006087rm -f core conftest.err conftest.$ac_objext \
6088 conftest$ac_exeext conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00006089LIBS=$ac_check_lib_save_LIBS
6090fi
Benny Prijonod4306432010-05-01 22:05:41 +00006091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6092$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
6093if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
Benny Prijonod5233702010-01-13 13:09:45 +00006094 libssl_present=1 && LIBS="$LIBS -lssl"
6095fi
6096
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006097 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
Benny Prijonod4306432010-05-01 22:05:41 +00006098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5
6099$as_echo "OpenSSL library found, SSL support enabled" >&6; }
Nanang Izzuddin9c7616f2009-10-28 06:09:15 +00006100 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
6101 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
Benny Prijonod4306432010-05-01 22:05:41 +00006102 $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
Nanang Izzuddinea6d3c42009-10-26 15:47:52 +00006103
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006104 else
Benny Prijonod4306432010-05-01 22:05:41 +00006105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
6106$as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006107 fi
6108
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006109fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006110
6111
6112
6113
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006114
Benny Prijonod4306432010-05-01 22:05:41 +00006115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5
6116$as_echo_n "checking if select() needs correct nfds... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006117case $target in
Benny Prijonod4306432010-05-01 22:05:41 +00006118 *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006119
Benny Prijonod4306432010-05-01 22:05:41 +00006120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6121$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006122 ;;
Benny Prijonod4306432010-05-01 22:05:41 +00006123 *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006124
Benny Prijonod4306432010-05-01 22:05:41 +00006125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
6126$as_echo "no (default)" >&6; }
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
6128$as_echo "** Decided that select() doesn't need correct nfds (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006129 ;;
6130esac
6131
Benny Prijonod4306432010-05-01 22:05:41 +00006132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5
6133$as_echo_n "checking if pj_thread_create() should enforce stack size... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006134case $target in
Benny Prijonod4306432010-05-01 22:05:41 +00006135 *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006136
Benny Prijonod4306432010-05-01 22:05:41 +00006137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6138$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006139 ;;
Benny Prijonod4306432010-05-01 22:05:41 +00006140 *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006141
Benny Prijonod4306432010-05-01 22:05:41 +00006142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
6143$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006144 ;;
6145esac
6146
Benny Prijonod4306432010-05-01 22:05:41 +00006147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5
6148$as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006149case $target in
Benny Prijonod4306432010-05-01 22:05:41 +00006150 *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006151
Benny Prijonod4306432010-05-01 22:05:41 +00006152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6153$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006154 ;;
Benny Prijonod4306432010-05-01 22:05:41 +00006155 *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006156
Benny Prijonod4306432010-05-01 22:05:41 +00006157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
6158$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006159 ;;
6160esac
6161
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006162case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006163 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonod4306432010-05-01 22:05:41 +00006164 $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006165
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006166 ;;
Benny Prijonod4306432010-05-01 22:05:41 +00006167 *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006168
Benny Prijonod4306432010-05-01 22:05:41 +00006169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
6170$as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006171 ;;
6172esac
6173
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006174case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006175 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonod4306432010-05-01 22:05:41 +00006176 $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006177
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006178 ;;
Benny Prijonod4306432010-05-01 22:05:41 +00006179 *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006180
Benny Prijonod4306432010-05-01 22:05:41 +00006181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
6182$as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006183 ;;
6184esac
6185
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006186
6187
6188
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006189if test "$build" = "$host"; then
6190 ac_cross_compile=
6191else
Benny Prijono5b818b22006-09-17 22:58:51 +00006192 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006193fi
6194ac_linux_poll=select
6195
6196ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006197
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006198
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006199case $target in
6200 *rtems*)
6201 ac_main_obj=main_rtems.o
6202 ;;
6203 *)
6204 ac_main_obj=main.o
6205 ;;
6206esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006207
Benny Prijono0822c192008-08-21 20:59:58 +00006208
6209ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006210cat >confcache <<\_ACEOF
6211# This file is a shell script that caches the results of configure
6212# tests run on this system so they can be shared between configure
6213# scripts and configure runs, see configure's option --config-cache.
6214# It is not useful on other systems. If it contains results you don't
6215# want to keep, you may remove or edit it.
6216#
6217# config.status only pays attention to the cache file if you give it
6218# the --recheck option to rerun configure.
6219#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006220# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006221# loading this file, other *unset* `ac_cv_foo' will be assigned the
6222# following values.
6223
6224_ACEOF
6225
6226# The following way of writing the cache mishandles newlines in values,
6227# but we know of no workaround that is simple, portable, and efficient.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006228# So, we kill variables containing newlines.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006229# Ultrix sh set writes to stderr and can't be redirected directly,
6230# and sets the high bit in the cache file unless we assign to the vars.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006231(
6232 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6233 eval ac_val=\$$ac_var
6234 case $ac_val in #(
6235 *${as_nl}*)
6236 case $ac_var in #(
Benny Prijonod4306432010-05-01 22:05:41 +00006237 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6238$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006239 esac
6240 case $ac_var in #(
6241 _ | IFS | as_nl) ;; #(
Benny Prijonod4306432010-05-01 22:05:41 +00006242 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6243 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006244 esac ;;
6245 esac
6246 done
6247
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006248 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006249 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6250 *${as_nl}ac_space=\ *)
Benny Prijonod4306432010-05-01 22:05:41 +00006251 # `set' does not quote correctly, so add quotes: double-quote
6252 # substitution turns \\\\ into \\, and sed turns \\ into \.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006253 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006254 "s/'/'\\\\''/g;
6255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006256 ;; #(
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006257 *)
6258 # `set' quotes correctly as required by POSIX, so do not add quotes.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006260 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006261 esac |
6262 sort
6263) |
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006264 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006265 /^ac_cv_env_/b end
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006266 t clear
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006267 :clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006268 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6269 t end
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006270 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6271 :end' >>confcache
6272if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6273 if test -w "$cache_file"; then
6274 test "x$cache_file" != "x/dev/null" &&
Benny Prijonod4306432010-05-01 22:05:41 +00006275 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6276$as_echo "$as_me: updating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006277 cat confcache >$cache_file
6278 else
Benny Prijonod4306432010-05-01 22:05:41 +00006279 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6280$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006281 fi
6282fi
6283rm -f confcache
6284
6285test "x$prefix" = xNONE && prefix=$ac_default_prefix
6286# Let make expand exec_prefix.
6287test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6288
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006289DEFS=-DHAVE_CONFIG_H
6290
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006291ac_libobjs=
6292ac_ltlibobjs=
6293for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6294 # 1. Remove the extension, and $U if already installed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006295 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Benny Prijonod4306432010-05-01 22:05:41 +00006296 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006297 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6298 # will be set to the directory where LIBOBJS objects are built.
Benny Prijonod4306432010-05-01 22:05:41 +00006299 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6300 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006301done
6302LIBOBJS=$ac_libobjs
6303
6304LTLIBOBJS=$ac_ltlibobjs
6305
6306
6307
Benny Prijonod4306432010-05-01 22:05:41 +00006308
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006309: ${CONFIG_STATUS=./config.status}
Benny Prijonod4306432010-05-01 22:05:41 +00006310ac_write_fail=0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006311ac_clean_files_save=$ac_clean_files
6312ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijonod4306432010-05-01 22:05:41 +00006313{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6314$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6315as_write_fail=0
6316cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006317#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006318# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006319# Run this file to recreate the current configuration.
6320# Compiler output produced by configure, useful for debugging
6321# configure, is in config.log if it exists.
6322
6323debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006324ac_cs_recheck=false
6325ac_cs_silent=false
Benny Prijono46bd0842010-02-12 14:12:41 +00006326
Benny Prijonod4306432010-05-01 22:05:41 +00006327SHELL=\${CONFIG_SHELL-$SHELL}
6328export SHELL
6329_ASEOF
6330cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6331## -------------------- ##
6332## M4sh Initialization. ##
6333## -------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006334
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006335# Be more Bourne compatible
6336DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijonod4306432010-05-01 22:05:41 +00006337if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006338 emulate sh
6339 NULLCMD=:
Benny Prijonod4306432010-05-01 22:05:41 +00006340 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006341 # is contrary to our usage. Disable this feature.
6342 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006343 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +00006344else
Benny Prijonod4306432010-05-01 22:05:41 +00006345 case `(set -o) 2>/dev/null` in #(
6346 *posix*) :
6347 set -o posix ;; #(
6348 *) :
6349 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006350esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006351fi
6352
6353
Benny Prijonod4306432010-05-01 22:05:41 +00006354as_nl='
6355'
6356export as_nl
6357# Printing a long string crashes Solaris 7 /usr/bin/printf.
6358as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6359as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6360as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6361# Prefer a ksh shell builtin over an external printf program on Solaris,
6362# but without wasting forks for bash or zsh.
6363if test -z "$BASH_VERSION$ZSH_VERSION" \
6364 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6365 as_echo='print -r --'
6366 as_echo_n='print -rn --'
6367elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6368 as_echo='printf %s\n'
6369 as_echo_n='printf %s'
6370else
6371 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6372 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6373 as_echo_n='/usr/ucb/echo -n'
6374 else
6375 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6376 as_echo_n_body='eval
6377 arg=$1;
6378 case $arg in #(
6379 *"$as_nl"*)
6380 expr "X$arg" : "X\\(.*\\)$as_nl";
6381 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6382 esac;
6383 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6384 '
6385 export as_echo_n_body
6386 as_echo_n='sh -c $as_echo_n_body as_echo'
6387 fi
6388 export as_echo_body
6389 as_echo='sh -c $as_echo_body as_echo'
6390fi
Benny Prijonod5233702010-01-13 13:09:45 +00006391
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006392# The user is always right.
6393if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijonod4306432010-05-01 22:05:41 +00006394 PATH_SEPARATOR=:
6395 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6396 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6397 PATH_SEPARATOR=';'
6398 }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006399fi
6400
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006401
6402# IFS
6403# We need space, tab and new line, in precisely that order. Quoting is
6404# there to prevent editors from complaining about space-tab.
6405# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6406# splitting by setting IFS to empty value.)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006407IFS=" "" $as_nl"
6408
6409# Find who we are. Look in the path if we contain no directory separator.
Benny Prijonod4306432010-05-01 22:05:41 +00006410case $0 in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006411 *[\\/]* ) as_myself=$0 ;;
6412 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006413for as_dir in $PATH
6414do
6415 IFS=$as_save_IFS
6416 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00006417 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6418 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006419IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006420
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006421 ;;
6422esac
6423# We did not find ourselves, most probably we were run as `sh COMMAND'
6424# in which case we are not to be found in the path.
6425if test "x$as_myself" = x; then
6426 as_myself=$0
6427fi
6428if test ! -f "$as_myself"; then
Benny Prijonod4306432010-05-01 22:05:41 +00006429 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6430 exit 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006431fi
6432
Benny Prijonod4306432010-05-01 22:05:41 +00006433# Unset variables that we do not need and which cause bugs (e.g. in
6434# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6435# suppresses any "Segmentation fault" message there. '((' could
6436# trigger a bug in pdksh 5.2.14.
6437for as_var in BASH_ENV ENV MAIL MAILPATH
6438do eval test x\${$as_var+set} = xset \
6439 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006440done
6441PS1='$ '
6442PS2='> '
6443PS4='+ '
6444
6445# NLS nuisances.
Benny Prijonod4306432010-05-01 22:05:41 +00006446LC_ALL=C
6447export LC_ALL
6448LANGUAGE=C
6449export LANGUAGE
Benny Prijonofe0c1272010-01-13 16:28:15 +00006450
Benny Prijonod4306432010-05-01 22:05:41 +00006451# CDPATH.
6452(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6453
6454
6455# as_fn_error ERROR [LINENO LOG_FD]
6456# ---------------------------------
6457# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6458# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6459# script with status $?, using 1 if that was 0.
6460as_fn_error ()
6461{
6462 as_status=$?; test $as_status -eq 0 && as_status=1
6463 if test "$3"; then
6464 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6465 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6466 fi
6467 $as_echo "$as_me: error: $1" >&2
6468 as_fn_exit $as_status
6469} # as_fn_error
6470
6471
6472# as_fn_set_status STATUS
6473# -----------------------
6474# Set $? to STATUS, without forking.
6475as_fn_set_status ()
6476{
6477 return $1
6478} # as_fn_set_status
6479
6480# as_fn_exit STATUS
6481# -----------------
6482# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6483as_fn_exit ()
6484{
6485 set +e
6486 as_fn_set_status $1
6487 exit $1
6488} # as_fn_exit
6489
6490# as_fn_unset VAR
6491# ---------------
6492# Portably unset VAR.
6493as_fn_unset ()
6494{
6495 { eval $1=; unset $1;}
6496}
6497as_unset=as_fn_unset
6498# as_fn_append VAR VALUE
6499# ----------------------
6500# Append the text in VALUE to the end of the definition contained in VAR. Take
6501# advantage of any shell optimizations that allow amortized linear growth over
6502# repeated appends, instead of the typical quadratic growth present in naive
6503# implementations.
6504if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6505 eval 'as_fn_append ()
6506 {
6507 eval $1+=\$2
6508 }'
6509else
6510 as_fn_append ()
6511 {
6512 eval $1=\$$1\$2
6513 }
6514fi # as_fn_append
6515
6516# as_fn_arith ARG...
6517# ------------------
6518# Perform arithmetic evaluation on the ARGs, and store the result in the
6519# global $as_val. Take advantage of shells that can avoid forks. The arguments
6520# must be portable across $(()) and expr.
6521if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6522 eval 'as_fn_arith ()
6523 {
6524 as_val=$(( $* ))
6525 }'
6526else
6527 as_fn_arith ()
6528 {
6529 as_val=`expr "$@" || test $? -eq 1`
6530 }
6531fi # as_fn_arith
6532
6533
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006534if expr a : '\(a\)' >/dev/null 2>&1 &&
6535 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6536 as_expr=expr
6537else
6538 as_expr=false
6539fi
6540
6541if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6542 as_basename=basename
6543else
6544 as_basename=false
6545fi
6546
Benny Prijonod4306432010-05-01 22:05:41 +00006547if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6548 as_dirname=dirname
6549else
6550 as_dirname=false
6551fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006552
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006553as_me=`$as_basename -- "$0" ||
6554$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6555 X"$0" : 'X\(//\)$' \| \
6556 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonod4306432010-05-01 22:05:41 +00006557$as_echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006558 sed '/^.*\/\([^/][^/]*\)\/*$/{
6559 s//\1/
6560 q
6561 }
6562 /^X\/\(\/\/\)$/{
6563 s//\1/
6564 q
6565 }
6566 /^X\/\(\/\).*/{
6567 s//\1/
6568 q
6569 }
6570 s/.*/./; q'`
6571
Benny Prijonod4306432010-05-01 22:05:41 +00006572# Avoid depending upon Character Ranges.
6573as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6574as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6575as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6576as_cr_digits='0123456789'
6577as_cr_alnum=$as_cr_Letters$as_cr_digits
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006578
6579ECHO_C= ECHO_N= ECHO_T=
Benny Prijonod4306432010-05-01 22:05:41 +00006580case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006581-n*)
Benny Prijonod4306432010-05-01 22:05:41 +00006582 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006583 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijonod4306432010-05-01 22:05:41 +00006584 xy) ECHO_C='\c';;
6585 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6586 ECHO_T=' ';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006587 esac;;
6588*)
6589 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006590esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006591
6592rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006593if test -d conf$$.dir; then
6594 rm -f conf$$.dir/conf$$.file
6595else
6596 rm -f conf$$.dir
Benny Prijonod4306432010-05-01 22:05:41 +00006597 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006598fi
Benny Prijonod4306432010-05-01 22:05:41 +00006599if (echo >conf$$.file) 2>/dev/null; then
6600 if ln -s conf$$.file conf$$ 2>/dev/null; then
6601 as_ln_s='ln -s'
6602 # ... but there are two gotchas:
6603 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6604 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6605 # In both cases, we have to default to `cp -p'.
6606 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6607 as_ln_s='cp -p'
6608 elif ln conf$$.file conf$$ 2>/dev/null; then
6609 as_ln_s=ln
6610 else
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006611 as_ln_s='cp -p'
Benny Prijonod4306432010-05-01 22:05:41 +00006612 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006613else
6614 as_ln_s='cp -p'
6615fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006616rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6617rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006618
Benny Prijonod4306432010-05-01 22:05:41 +00006619
6620# as_fn_mkdir_p
6621# -------------
6622# Create "$as_dir" as a directory, including parents if necessary.
6623as_fn_mkdir_p ()
6624{
6625
6626 case $as_dir in #(
6627 -*) as_dir=./$as_dir;;
6628 esac
6629 test -d "$as_dir" || eval $as_mkdir_p || {
6630 as_dirs=
6631 while :; do
6632 case $as_dir in #(
6633 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6634 *) as_qdir=$as_dir;;
6635 esac
6636 as_dirs="'$as_qdir' $as_dirs"
6637 as_dir=`$as_dirname -- "$as_dir" ||
6638$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6639 X"$as_dir" : 'X\(//\)[^/]' \| \
6640 X"$as_dir" : 'X\(//\)$' \| \
6641 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6642$as_echo X"$as_dir" |
6643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6644 s//\1/
6645 q
6646 }
6647 /^X\(\/\/\)[^/].*/{
6648 s//\1/
6649 q
6650 }
6651 /^X\(\/\/\)$/{
6652 s//\1/
6653 q
6654 }
6655 /^X\(\/\).*/{
6656 s//\1/
6657 q
6658 }
6659 s/.*/./; q'`
6660 test -d "$as_dir" && break
6661 done
6662 test -z "$as_dirs" || eval "mkdir $as_dirs"
6663 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6664
6665
6666} # as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006667if mkdir -p . 2>/dev/null; then
Benny Prijonod4306432010-05-01 22:05:41 +00006668 as_mkdir_p='mkdir -p "$as_dir"'
Benny Prijono39ae2da2006-10-13 17:57:42 +00006669else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006670 test -d ./-p && rmdir ./-p
6671 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +00006672fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006673
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006674if test -x / >/dev/null 2>&1; then
6675 as_test_x='test -x'
6676else
6677 if ls -dL / >/dev/null 2>&1; then
6678 as_ls_L_option=L
6679 else
6680 as_ls_L_option=
6681 fi
6682 as_test_x='
6683 eval sh -c '\''
6684 if test -d "$1"; then
Benny Prijonod4306432010-05-01 22:05:41 +00006685 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006686 else
Benny Prijonod4306432010-05-01 22:05:41 +00006687 case $1 in #(
6688 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006689 esac;
Benny Prijonod4306432010-05-01 22:05:41 +00006690 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006691 ???[sx]*):;;*)false;;esac;fi
6692 '\'' sh
6693 '
6694fi
6695as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006696
6697# Sed expression to map a string onto a valid CPP name.
6698as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6699
6700# Sed expression to map a string onto a valid variable name.
6701as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6702
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006703
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006704exec 6>&1
Benny Prijonod4306432010-05-01 22:05:41 +00006705## ----------------------------------- ##
6706## Main body of $CONFIG_STATUS script. ##
6707## ----------------------------------- ##
6708_ASEOF
6709test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006710
Benny Prijonod4306432010-05-01 22:05:41 +00006711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6712# Save the log message, to keep $0 and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006713# report actual input values of CONFIG_FILES etc. instead of their
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006714# values after options handling.
6715ac_log="
Benny Prijono8a9b3b22010-01-14 14:46:54 +00006716This file was extended by pjproject $as_me 1.x, which was
Benny Prijonod4306432010-05-01 22:05:41 +00006717generated by GNU Autoconf 2.64. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006718
6719 CONFIG_FILES = $CONFIG_FILES
6720 CONFIG_HEADERS = $CONFIG_HEADERS
6721 CONFIG_LINKS = $CONFIG_LINKS
6722 CONFIG_COMMANDS = $CONFIG_COMMANDS
6723 $ $0 $@
6724
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006725on `(hostname || uname -n) 2>/dev/null | sed 1q`
6726"
6727
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006728_ACEOF
6729
Benny Prijonod4306432010-05-01 22:05:41 +00006730case $ac_config_files in *"
6731"*) set x $ac_config_files; shift; ac_config_files=$*;;
6732esac
6733
6734case $ac_config_headers in *"
6735"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6736esac
6737
6738
6739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006740# Files that config.status was made for.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006741config_files="$ac_config_files"
6742config_headers="$ac_config_headers"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006743
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006744_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006745
Benny Prijonod4306432010-05-01 22:05:41 +00006746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006747ac_cs_usage="\
Benny Prijonod4306432010-05-01 22:05:41 +00006748\`$as_me' instantiates files and other configuration actions
6749from templates according to the current configuration. Unless the files
6750and actions are specified as TAGs, all are instantiated by default.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006751
Benny Prijonod4306432010-05-01 22:05:41 +00006752Usage: $0 [OPTION]... [TAG]...
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006753
6754 -h, --help print this help, then exit
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006755 -V, --version print version number and configuration settings, then exit
Benny Prijonod4306432010-05-01 22:05:41 +00006756 -q, --quiet, --silent
6757 do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006758 -d, --debug don't remove temporary files
6759 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonod4306432010-05-01 22:05:41 +00006760 --file=FILE[:TEMPLATE]
6761 instantiate the configuration file FILE
6762 --header=FILE[:TEMPLATE]
6763 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006764
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006765Configuration files:
6766$config_files
6767
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006768Configuration headers:
6769$config_headers
6770
Benny Prijonod4306432010-05-01 22:05:41 +00006771Report bugs to the package provider."
Benny Prijonoe2746132008-09-27 13:16:35 +00006772
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006773_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00006774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006775ac_cs_version="\\
Benny Prijono8a9b3b22010-01-14 14:46:54 +00006776pjproject config.status 1.x
Benny Prijonod4306432010-05-01 22:05:41 +00006777configured by $0, generated by GNU Autoconf 2.64,
6778 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006779
Benny Prijonod4306432010-05-01 22:05:41 +00006780Copyright (C) 2009 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006781This config.status script is free software; the Free Software Foundation
6782gives unlimited permission to copy, distribute and modify it."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006783
6784ac_pwd='$ac_pwd'
6785srcdir='$srcdir'
Benny Prijonod4306432010-05-01 22:05:41 +00006786test -n "\$AWK" || AWK=awk
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006787_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006788
Benny Prijonod4306432010-05-01 22:05:41 +00006789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6790# The default lists apply if the user does not specify any file.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006791ac_need_defaults=:
6792while test $# != 0
6793do
6794 case $1 in
6795 --*=*)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006796 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6797 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006798 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006799 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006800 *)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006801 ac_option=$1
6802 ac_optarg=$2
6803 ac_shift=shift
6804 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006805 esac
6806
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006807 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006808 # Handling of the options.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006809 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006810 ac_cs_recheck=: ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006811 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Benny Prijonod4306432010-05-01 22:05:41 +00006812 $as_echo "$ac_cs_version"; exit ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006813 --debug | --debu | --deb | --de | --d | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006814 debug=: ;;
6815 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006816 $ac_shift
Benny Prijonod4306432010-05-01 22:05:41 +00006817 case $ac_optarg in
6818 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6819 esac
6820 as_fn_append CONFIG_FILES " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006821 ac_need_defaults=false;;
6822 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006823 $ac_shift
Benny Prijonod4306432010-05-01 22:05:41 +00006824 case $ac_optarg in
6825 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6826 esac
6827 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006828 ac_need_defaults=false;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006829 --he | --h)
6830 # Conflict between --help and --header
Benny Prijonod4306432010-05-01 22:05:41 +00006831 as_fn_error "ambiguous option: \`$1'
6832Try \`$0 --help' for more information.";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006833 --help | --hel | -h )
Benny Prijonod4306432010-05-01 22:05:41 +00006834 $as_echo "$ac_cs_usage"; exit ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006835 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6836 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6837 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006838
6839 # This is an error.
Benny Prijonod4306432010-05-01 22:05:41 +00006840 -*) as_fn_error "unrecognized option: \`$1'
6841Try \`$0 --help' for more information." ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006842
Benny Prijonod4306432010-05-01 22:05:41 +00006843 *) as_fn_append ac_config_targets " $1"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006844 ac_need_defaults=false ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006845
6846 esac
6847 shift
6848done
6849
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006850ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006851
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006852if $ac_cs_silent; then
6853 exec 6>/dev/null
6854 ac_configure_extra_args="$ac_configure_extra_args --silent"
6855fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006856
6857_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00006858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006859if \$ac_cs_recheck; then
Benny Prijonod4306432010-05-01 22:05:41 +00006860 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6861 shift
6862 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6863 CONFIG_SHELL='$SHELL'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006864 export CONFIG_SHELL
Benny Prijonod4306432010-05-01 22:05:41 +00006865 exec "\$@"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006866fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006867
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006868_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00006869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006870exec 5>>config.log
6871{
6872 echo
6873 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6874## Running $as_me. ##
6875_ASBOX
Benny Prijonod4306432010-05-01 22:05:41 +00006876 $as_echo "$ac_log"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006877} >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006878
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006879_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00006880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006881_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006882
Benny Prijonod4306432010-05-01 22:05:41 +00006883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006884
6885# Handling of arguments.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006886for ac_config_target in $ac_config_targets
6887do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006888 case $ac_config_target in
6889 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
6890 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
6891 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
6892 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
6893 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
6894 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
6895 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
Benny Prijono8ec5eae2010-05-12 10:59:20 +00006896 "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006897 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
6898 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
6899 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
6900 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006901 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijono8a9b3b22010-01-14 14:46:54 +00006902 "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 +00006903
Benny Prijonod4306432010-05-01 22:05:41 +00006904 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006905 esac
6906done
6907
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006908
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006909# If the user did not use the arguments to specify the items to instantiate,
6910# then the envvar interface is used. Set only those that are not.
6911# We use the long form for the default assignment because of an extremely
6912# bizarre bug on SunOS 4.1.3.
6913if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006914 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006915 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6916fi
6917
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006918# Have a temporary directory for convenience. Make it in the build tree
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006919# simply because there is no reason against having it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006920# creating and moving files from /tmp can sometimes cause problems.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006921# Hook for its removal unless debugging.
6922# Note that there is a small window in which the directory will not be cleaned:
6923# after its creation but before its name has been assigned to `$tmp'.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006924$debug ||
6925{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006926 tmp=
6927 trap 'exit_status=$?
6928 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6929' 0
Benny Prijonod4306432010-05-01 22:05:41 +00006930 trap 'as_fn_exit 1' 1 2 13 15
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006931}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006932# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006933
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006934{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006935 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006936 test -n "$tmp" && test -d "$tmp"
6937} ||
6938{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006939 tmp=./conf$$-$RANDOM
6940 (umask 077 && mkdir "$tmp")
Benny Prijonod4306432010-05-01 22:05:41 +00006941} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006942
Benny Prijonod4306432010-05-01 22:05:41 +00006943# Set up the scripts for CONFIG_FILES section.
6944# No need to generate them if there are no CONFIG_FILES.
6945# This happens for instance with `./config.status config.h'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006946if test -n "$CONFIG_FILES"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006947
Benny Prijonod4306432010-05-01 22:05:41 +00006948
6949ac_cr=`echo X | tr X '\015'`
6950# On cygwin, bash can eat \r inside `` if the user requested igncr.
6951# But we know of no other shell where ac_cr would be empty at this
6952# point, so we can use a bashism as a fallback.
6953if test "x$ac_cr" = x; then
6954 eval ac_cr=\$\'\\r\'
6955fi
6956ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6957if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6958 ac_cs_awk_cr='\r'
6959else
6960 ac_cs_awk_cr=$ac_cr
6961fi
6962
6963echo 'BEGIN {' >"$tmp/subs1.awk" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006964_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006965
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006966
Benny Prijonod4306432010-05-01 22:05:41 +00006967{
6968 echo "cat >conf$$subs.awk <<_ACEOF" &&
6969 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6970 echo "_ACEOF"
6971} >conf$$subs.sh ||
6972 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6973ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006974ac_delim='%!_!# '
6975for ac_last_try in false false false false false :; do
Benny Prijonod4306432010-05-01 22:05:41 +00006976 . ./conf$$subs.sh ||
6977 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006978
Benny Prijonod4306432010-05-01 22:05:41 +00006979 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6980 if test $ac_delim_n = $ac_delim_num; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006981 break
6982 elif $ac_last_try; then
Benny Prijonod4306432010-05-01 22:05:41 +00006983 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006984 else
6985 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006986 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006987done
Benny Prijonod4306432010-05-01 22:05:41 +00006988rm -f conf$$subs.sh
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006989
Benny Prijonod4306432010-05-01 22:05:41 +00006990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6991cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006992_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00006993sed -n '
6994h
6995s/^/S["/; s/!.*/"]=/
6996p
6997g
6998s/^[^!]*!//
6999:repl
7000t repl
7001s/'"$ac_delim"'$//
7002t delim
7003:nl
7004h
7005s/\(.\{148\}\).*/\1/
7006t more1
7007s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7008p
7009n
7010b repl
7011:more1
7012s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7013p
7014g
7015s/.\{148\}//
7016t nl
7017:delim
7018h
7019s/\(.\{148\}\).*/\1/
7020t more2
7021s/["\\]/\\&/g; s/^/"/; s/$/"/
7022p
7023b
7024:more2
7025s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7026p
7027g
7028s/.\{148\}//
7029t delim
7030' <conf$$subs.awk | sed '
7031/^[^""]/{
7032 N
7033 s/\n//
7034}
7035' >>$CONFIG_STATUS || ac_write_fail=1
7036rm -f conf$$subs.awk
7037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7038_ACAWK
7039cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7040 for (key in S) S_is_set[key] = 1
7041 FS = ""
Benny Prijono46bd0842010-02-12 14:12:41 +00007042
Benny Prijonod4306432010-05-01 22:05:41 +00007043}
7044{
7045 line = $ 0
7046 nfields = split(line, field, "@")
7047 substed = 0
7048 len = length(field[1])
7049 for (i = 2; i < nfields; i++) {
7050 key = field[i]
7051 keylen = length(key)
7052 if (S_is_set[key]) {
7053 value = S[key]
7054 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7055 len += length(value) + length(field[++i])
7056 substed = 1
7057 } else
7058 len += 1 + keylen
7059 }
7060
7061 print line
7062}
7063
7064_ACAWK
7065_ACEOF
7066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7067if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7068 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7069else
7070 cat
7071fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7072 || as_fn_error "could not setup config files machinery" "$LINENO" 5
7073_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007074
7075# VPATH may cause trouble with some makes, so we remove $(srcdir),
7076# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7077# trailing colons and then remove the whole line if VPATH becomes empty
7078# (actually we leave an empty line to preserve line numbers).
7079if test "x$srcdir" = x.; then
7080 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7081s/:*\$(srcdir):*/:/
7082s/:*\${srcdir}:*/:/
7083s/:*@srcdir@:*/:/
7084s/^\([^=]*=[ ]*\):*/\1/
7085s/:*$//
7086s/^[^=]*=[ ]*$//
7087}'
7088fi
7089
Benny Prijonod4306432010-05-01 22:05:41 +00007090cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007091fi # test -n "$CONFIG_FILES"
7092
Benny Prijonod4306432010-05-01 22:05:41 +00007093# Set up the scripts for CONFIG_HEADERS section.
7094# No need to generate them if there are no CONFIG_HEADERS.
7095# This happens for instance with `./config.status Makefile'.
7096if test -n "$CONFIG_HEADERS"; then
7097cat >"$tmp/defines.awk" <<\_ACAWK ||
7098BEGIN {
7099_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007100
Benny Prijonod4306432010-05-01 22:05:41 +00007101# Transform confdefs.h into an awk script `defines.awk', embedded as
7102# here-document in config.status, that substitutes the proper values into
7103# config.h.in to produce config.h.
7104
7105# Create a delimiter string that does not exist in confdefs.h, to ease
7106# handling of long lines.
7107ac_delim='%!_!# '
7108for ac_last_try in false false :; do
7109 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7110 if test -z "$ac_t"; then
7111 break
7112 elif $ac_last_try; then
7113 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7114 else
7115 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7116 fi
7117done
7118
7119# For the awk script, D is an array of macro values keyed by name,
7120# likewise P contains macro parameters if any. Preserve backslash
7121# newline sequences.
7122
7123ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7124sed -n '
7125s/.\{148\}/&'"$ac_delim"'/g
7126t rset
7127:rset
7128s/^[ ]*#[ ]*define[ ][ ]*/ /
7129t def
7130d
7131:def
7132s/\\$//
7133t bsnl
7134s/["\\]/\\&/g
7135s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7136D["\1"]=" \3"/p
7137s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7138d
7139:bsnl
7140s/["\\]/\\&/g
7141s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7142D["\1"]=" \3\\\\\\n"\\/p
7143t cont
7144s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7145t cont
7146d
7147:cont
7148n
7149s/.\{148\}/&'"$ac_delim"'/g
7150t clear
7151:clear
7152s/\\$//
7153t bsnlc
7154s/["\\]/\\&/g; s/^/"/; s/$/"/p
7155d
7156:bsnlc
7157s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7158b cont
7159' <confdefs.h | sed '
7160s/'"$ac_delim"'/"\\\
7161"/g' >>$CONFIG_STATUS || ac_write_fail=1
7162
7163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7164 for (key in D) D_is_set[key] = 1
7165 FS = ""
7166}
7167/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7168 line = \$ 0
7169 split(line, arg, " ")
7170 if (arg[1] == "#") {
7171 defundef = arg[2]
7172 mac1 = arg[3]
7173 } else {
7174 defundef = substr(arg[1], 2)
7175 mac1 = arg[2]
7176 }
7177 split(mac1, mac2, "(") #)
7178 macro = mac2[1]
7179 prefix = substr(line, 1, index(line, defundef) - 1)
7180 if (D_is_set[macro]) {
7181 # Preserve the white space surrounding the "#".
7182 print prefix "define", macro P[macro] D[macro]
7183 next
7184 } else {
7185 # Replace #undef with comments. This is necessary, for example,
7186 # in the case of _POSIX_SOURCE, which is predefined and required
7187 # on some systems where configure will not decide to define it.
7188 if (defundef == "undef") {
7189 print "/*", prefix defundef, macro, "*/"
7190 next
7191 }
7192 }
7193}
7194{ print }
7195_ACAWK
7196_ACEOF
7197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7198 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7199fi # test -n "$CONFIG_HEADERS"
7200
7201
7202eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7203shift
7204for ac_tag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007205do
7206 case $ac_tag in
7207 :[FHLC]) ac_mode=$ac_tag; continue;;
7208 esac
7209 case $ac_mode$ac_tag in
7210 :[FHL]*:*);;
Benny Prijonod4306432010-05-01 22:05:41 +00007211 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007212 :[FH]-) ac_tag=-:-;;
7213 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7214 esac
7215 ac_save_IFS=$IFS
7216 IFS=:
7217 set x $ac_tag
7218 IFS=$ac_save_IFS
7219 shift
7220 ac_file=$1
7221 shift
7222
7223 case $ac_mode in
7224 :L) ac_source=$1;;
7225 :[FH])
7226 ac_file_inputs=
7227 for ac_f
7228 do
7229 case $ac_f in
7230 -) ac_f="$tmp/stdin";;
7231 *) # Look for the file first in the build tree, then in the source tree
7232 # (if the path is not absolute). The absolute path cannot be DOS-style,
7233 # because $ac_f cannot contain `:'.
7234 test -f "$ac_f" ||
7235 case $ac_f in
7236 [\\/$]*) false;;
7237 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7238 esac ||
Benny Prijonod4306432010-05-01 22:05:41 +00007239 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007240 esac
Benny Prijonod4306432010-05-01 22:05:41 +00007241 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7242 as_fn_append ac_file_inputs " '$ac_f'"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007243 done
7244
7245 # Let's still pretend it is `configure' which instantiates (i.e., don't
7246 # use $as_me), people would be surprised to read:
7247 # /* config.h. Generated by config.status. */
Benny Prijonod4306432010-05-01 22:05:41 +00007248 configure_input='Generated from '`
7249 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7250 `' by configure.'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007251 if test x"$ac_file" != x-; then
7252 configure_input="$ac_file. $configure_input"
Benny Prijonod4306432010-05-01 22:05:41 +00007253 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7254$as_echo "$as_me: creating $ac_file" >&6;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007255 fi
Benny Prijonod4306432010-05-01 22:05:41 +00007256 # Neutralize special characters interpreted by sed in replacement strings.
7257 case $configure_input in #(
7258 *\&* | *\|* | *\\* )
7259 ac_sed_conf_input=`$as_echo "$configure_input" |
7260 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7261 *) ac_sed_conf_input=$configure_input;;
7262 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007263
7264 case $ac_tag in
Benny Prijonod4306432010-05-01 22:05:41 +00007265 *:-:* | *:-) cat >"$tmp/stdin" \
7266 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007267 esac
7268 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007269 esac
7270
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007271 ac_dir=`$as_dirname -- "$ac_file" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007272$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7273 X"$ac_file" : 'X\(//\)[^/]' \| \
7274 X"$ac_file" : 'X\(//\)$' \| \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007275 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonod4306432010-05-01 22:05:41 +00007276$as_echo X"$ac_file" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7278 s//\1/
7279 q
7280 }
7281 /^X\(\/\/\)[^/].*/{
7282 s//\1/
7283 q
7284 }
7285 /^X\(\/\/\)$/{
7286 s//\1/
7287 q
7288 }
7289 /^X\(\/\).*/{
7290 s//\1/
7291 q
7292 }
7293 s/.*/./; q'`
Benny Prijonod4306432010-05-01 22:05:41 +00007294 as_dir="$ac_dir"; as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007295 ac_builddir=.
7296
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007297case "$ac_dir" in
7298.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7299*)
Benny Prijonod4306432010-05-01 22:05:41 +00007300 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007301 # A ".." for each directory in $ac_dir_suffix.
Benny Prijonod4306432010-05-01 22:05:41 +00007302 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007303 case $ac_top_builddir_sub in
7304 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7305 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7306 esac ;;
7307esac
7308ac_abs_top_builddir=$ac_pwd
7309ac_abs_builddir=$ac_pwd$ac_dir_suffix
7310# for backward compatibility:
7311ac_top_builddir=$ac_top_build_prefix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007312
7313case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007314 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007315 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007316 ac_top_srcdir=$ac_top_builddir_sub
7317 ac_abs_top_srcdir=$ac_pwd ;;
7318 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007319 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007320 ac_top_srcdir=$srcdir
7321 ac_abs_top_srcdir=$srcdir ;;
7322 *) # Relative name.
7323 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7324 ac_top_srcdir=$ac_top_build_prefix$srcdir
7325 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007326esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007327ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono9489e7a2008-09-19 22:18:50 +00007328
Benny Prijonoe2746132008-09-27 13:16:35 +00007329
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007330 case $ac_mode in
7331 :F)
7332 #
7333 # CONFIG_FILE
7334 #
Benny Prijonoe2746132008-09-27 13:16:35 +00007335
Benny Prijonoe2746132008-09-27 13:16:35 +00007336_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007337
Benny Prijonod4306432010-05-01 22:05:41 +00007338cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007339# If the template does not know about datarootdir, expand it.
7340# FIXME: This hack should be removed a few years after 2.60.
7341ac_datarootdir_hack=; ac_datarootdir_seen=
Benny Prijonod4306432010-05-01 22:05:41 +00007342ac_sed_dataroot='
7343/datarootdir/ {
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007344 p
7345 q
7346}
7347/@datadir@/p
7348/@docdir@/p
7349/@infodir@/p
7350/@localedir@/p
Benny Prijonod4306432010-05-01 22:05:41 +00007351/@mandir@/p'
7352case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007353*datarootdir*) ac_datarootdir_seen=yes;;
7354*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Benny Prijonod4306432010-05-01 22:05:41 +00007355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7356$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007357_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00007358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007359 ac_datarootdir_hack='
7360 s&@datadir@&$datadir&g
7361 s&@docdir@&$docdir&g
7362 s&@infodir@&$infodir&g
7363 s&@localedir@&$localedir&g
7364 s&@mandir@&$mandir&g
Benny Prijonod4306432010-05-01 22:05:41 +00007365 s&\\\${datarootdir}&$datarootdir&g' ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007366esac
7367_ACEOF
7368
7369# Neutralize VPATH when `$srcdir' = `.'.
7370# Shell code in configure.ac might set extrasub.
7371# FIXME: do we really want to maintain this feature?
Benny Prijonod4306432010-05-01 22:05:41 +00007372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7373ac_sed_extra="$ac_vpsub
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007374$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007375_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00007376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007377:t
7378/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Benny Prijonod4306432010-05-01 22:05:41 +00007379s|@configure_input@|$ac_sed_conf_input|;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007380s&@top_builddir@&$ac_top_builddir_sub&;t t
Benny Prijonod4306432010-05-01 22:05:41 +00007381s&@top_build_prefix@&$ac_top_build_prefix&;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007382s&@srcdir@&$ac_srcdir&;t t
7383s&@abs_srcdir@&$ac_abs_srcdir&;t t
7384s&@top_srcdir@&$ac_top_srcdir&;t t
7385s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7386s&@builddir@&$ac_builddir&;t t
7387s&@abs_builddir@&$ac_abs_builddir&;t t
7388s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7389$ac_datarootdir_hack
Benny Prijonod4306432010-05-01 22:05:41 +00007390"
7391eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7392 || as_fn_error "could not create $ac_file" "$LINENO" 5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007393
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007394test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7395 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7396 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Benny Prijonod4306432010-05-01 22:05:41 +00007397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007398which seems to be undefined. Please make sure it is defined." >&5
Benny Prijonod4306432010-05-01 22:05:41 +00007399$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007400which seems to be undefined. Please make sure it is defined." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007401
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007402 rm -f "$tmp/stdin"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007403 case $ac_file in
Benny Prijonod4306432010-05-01 22:05:41 +00007404 -) cat "$tmp/out" && rm -f "$tmp/out";;
7405 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7406 esac \
7407 || as_fn_error "could not create $ac_file" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007408 ;;
7409 :H)
7410 #
7411 # CONFIG_HEADER
7412 #
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007413 if test x"$ac_file" != x-; then
Benny Prijonod4306432010-05-01 22:05:41 +00007414 {
7415 $as_echo "/* $configure_input */" \
7416 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7417 } >"$tmp/config.h" \
7418 || as_fn_error "could not create $ac_file" "$LINENO" 5
7419 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7421$as_echo "$as_me: $ac_file is unchanged" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007422 else
Benny Prijonod4306432010-05-01 22:05:41 +00007423 rm -f "$ac_file"
7424 mv "$tmp/config.h" "$ac_file" \
7425 || as_fn_error "could not create $ac_file" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007426 fi
7427 else
Benny Prijonod4306432010-05-01 22:05:41 +00007428 $as_echo "/* $configure_input */" \
7429 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7430 || as_fn_error "could not create -" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007431 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007432 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007433
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007434
7435 esac
7436
7437done # for ac_tag
7438
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007439
Benny Prijonod4306432010-05-01 22:05:41 +00007440as_fn_exit 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007441_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007442ac_clean_files=$ac_clean_files_save
7443
Benny Prijonod4306432010-05-01 22:05:41 +00007444test $ac_write_fail = 0 ||
7445 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7446
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007447
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007448# configure is writing to config.log, and then calls config.status.
7449# config.status does its own redirection, appending to config.log.
7450# Unfortunately, on DOS this fails, as config.log is still kept open
7451# by configure, so config.status won't be able to write to it; its
7452# output is simply discarded. So we exec the FD to /dev/null,
7453# effectively closing config.log, so it can be properly (re)opened and
7454# appended to by config.status. When coming back to configure, we
7455# need to make the FD available again.
7456if test "$no_create" != yes; then
7457 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007458 ac_config_status_args=
7459 test "$silent" = yes &&
7460 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007461 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007462 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007463 exec 5>>config.log
7464 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7465 # would make configure fail if this is the last instruction.
Benny Prijonod4306432010-05-01 22:05:41 +00007466 $ac_cs_success || as_fn_exit $?
7467fi
7468if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7470$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Benny Prijonod5233702010-01-13 13:09:45 +00007471fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007472
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007473
Benny Prijonod9627842007-04-18 09:24:31 +00007474
Benny Prijonod4306432010-05-01 22:05:41 +00007475{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
Benny Prijonod9627842007-04-18 09:24:31 +00007476
Benny Prijonoc16c6e32007-11-18 14:53:47 +00007477Configurations 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 +00007478
Benny Prijonoc16c6e32007-11-18 14:53:47 +00007479Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00007480 - 'user.mak'
7481 - 'pjlib/include/pj/config_site.h'
7482
7483The next step now is to run 'make dep' and 'make'.
7484" >&5
Benny Prijonod4306432010-05-01 22:05:41 +00007485$as_echo "
Benny Prijonod9627842007-04-18 09:24:31 +00007486
Benny Prijonoc16c6e32007-11-18 14:53:47 +00007487Configurations 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 +00007488
Benny Prijonoc16c6e32007-11-18 14:53:47 +00007489Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00007490 - 'user.mak'
7491 - 'pjlib/include/pj/config_site.h'
7492
7493The next step now is to run 'make dep' and 'make'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007494" >&6; }
Benny Prijonod9627842007-04-18 09:24:31 +00007495