blob: 3b30468aefc39047c0089a113c332b6928d1755a [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
623ac_ct_CXX
624CXXFLAGS
625CXX
626OBJEXT
627EXEEXT
628ac_ct_CC
629CPPFLAGS
630LDFLAGS
631CFLAGS
632CC
633target_os
634target_vendor
635target_cpu
636target
637host_os
638host_vendor
639host_cpu
640host
641build_os
642build_vendor
643build_cpu
644build
645target_alias
646host_alias
647build_alias
648LIBS
649ECHO_T
650ECHO_N
651ECHO_C
652DEFS
653mandir
654localedir
655libdir
656psdir
657pdfdir
658dvidir
659htmldir
660infodir
661docdir
662oldincludedir
663includedir
664localstatedir
665sharedstatedir
666sysconfdir
667datadir
668datarootdir
669libexecdir
670sbindir
671bindir
672program_transform_name
673prefix
674exec_prefix
675PACKAGE_URL
676PACKAGE_BUGREPORT
677PACKAGE_STRING
678PACKAGE_VERSION
679PACKAGE_TARNAME
680PACKAGE_NAME
681PATH_SEPARATOR
682SHELL'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000683ac_subst_files=''
Benny Prijonod4306432010-05-01 22:05:41 +0000684ac_user_opts='
685enable_option_checking
686enable_floating_point
687enable_epoll
688with_external_speex
689with_external_gsm
690enable_sound
691with_external_pa
692enable_oss
693enable_ext_sound
694enable_small_filter
695enable_large_filter
696enable_speex_aec
697enable_g711_codec
698enable_l16_codec
699enable_gsm_codec
700enable_g722_codec
701enable_g7221_codec
702enable_speex_codec
703enable_ilbc_codec
704enable_libsamplerate
705enable_ipp
706with_ipp
707with_ipp_samples
708with_ipp_arch
709enable_ssl
710'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000711 ac_precious_vars='build_alias
712host_alias
713target_alias
714CC
715CFLAGS
716LDFLAGS
717LIBS
718CPPFLAGS
719CXX
720CXXFLAGS
721CCC
722CPP'
723
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000724
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000725# Initialize some variables set by options.
726ac_init_help=
727ac_init_version=false
Benny Prijonod4306432010-05-01 22:05:41 +0000728ac_unrecognized_opts=
729ac_unrecognized_sep=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000730# The variables have the same names as the options, with
731# dashes changed to underlines.
732cache_file=/dev/null
733exec_prefix=NONE
734no_create=
735no_recursion=
736prefix=NONE
737program_prefix=NONE
738program_suffix=NONE
739program_transform_name=s,x,x,
740silent=
741site=
742srcdir=
743verbose=
744x_includes=NONE
745x_libraries=NONE
746
747# Installation directory options.
748# These are left unexpanded so users can "make install exec_prefix=/foo"
749# and all the variables that are supposed to be based on exec_prefix
750# by default will actually change.
751# Use braces instead of parens because sh, perl, etc. also accept them.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000752# (The list follows the same order as the GNU Coding Standards.)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000753bindir='${exec_prefix}/bin'
754sbindir='${exec_prefix}/sbin'
755libexecdir='${exec_prefix}/libexec'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000756datarootdir='${prefix}/share'
757datadir='${datarootdir}'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000758sysconfdir='${prefix}/etc'
759sharedstatedir='${prefix}/com'
760localstatedir='${prefix}/var'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000761includedir='${prefix}/include'
762oldincludedir='/usr/include'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000763docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
764infodir='${datarootdir}/info'
765htmldir='${docdir}'
766dvidir='${docdir}'
767pdfdir='${docdir}'
768psdir='${docdir}'
769libdir='${exec_prefix}/lib'
770localedir='${datarootdir}/locale'
771mandir='${datarootdir}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000772
773ac_prev=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000774ac_dashdash=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000775for ac_option
776do
777 # If the previous option needs an argument, assign it.
778 if test -n "$ac_prev"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000779 eval $ac_prev=\$ac_option
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000780 ac_prev=
781 continue
782 fi
783
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000784 case $ac_option in
785 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786 *) ac_optarg=yes ;;
787 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000788
789 # Accept the important Cygnus configure options, so we can diagnose typos.
790
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000791 case $ac_dashdash$ac_option in
792 --)
793 ac_dashdash=yes ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000794
795 -bindir | --bindir | --bindi | --bind | --bin | --bi)
796 ac_prev=bindir ;;
797 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
798 bindir=$ac_optarg ;;
799
800 -build | --build | --buil | --bui | --bu)
801 ac_prev=build_alias ;;
802 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
803 build_alias=$ac_optarg ;;
804
805 -cache-file | --cache-file | --cache-fil | --cache-fi \
806 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
807 ac_prev=cache_file ;;
808 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
809 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
810 cache_file=$ac_optarg ;;
811
812 --config-cache | -C)
813 cache_file=config.cache ;;
814
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000815 -datadir | --datadir | --datadi | --datad)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000816 ac_prev=datadir ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000817 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000818 datadir=$ac_optarg ;;
819
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000820 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
821 | --dataroo | --dataro | --datar)
822 ac_prev=datarootdir ;;
823 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
824 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
825 datarootdir=$ac_optarg ;;
826
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000827 -disable-* | --disable-*)
Benny Prijonod4306432010-05-01 22:05:41 +0000828 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000829 # Reject names that are not valid shell variable names.
Benny Prijonod4306432010-05-01 22:05:41 +0000830 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
831 as_fn_error "invalid feature name: $ac_useropt"
832 ac_useropt_orig=$ac_useropt
833 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
834 case $ac_user_opts in
835 *"
836"enable_$ac_useropt"
837"*) ;;
838 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
839 ac_unrecognized_sep=', ';;
840 esac
841 eval enable_$ac_useropt=no ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000842
843 -docdir | --docdir | --docdi | --doc | --do)
844 ac_prev=docdir ;;
845 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
846 docdir=$ac_optarg ;;
847
848 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
849 ac_prev=dvidir ;;
850 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
851 dvidir=$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000852
853 -enable-* | --enable-*)
Benny Prijonod4306432010-05-01 22:05:41 +0000854 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000855 # Reject names that are not valid shell variable names.
Benny Prijonod4306432010-05-01 22:05:41 +0000856 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
857 as_fn_error "invalid feature name: $ac_useropt"
858 ac_useropt_orig=$ac_useropt
859 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860 case $ac_user_opts in
861 *"
862"enable_$ac_useropt"
863"*) ;;
864 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
865 ac_unrecognized_sep=', ';;
866 esac
867 eval enable_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000868
869 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
870 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
871 | --exec | --exe | --ex)
872 ac_prev=exec_prefix ;;
873 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
874 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
875 | --exec=* | --exe=* | --ex=*)
876 exec_prefix=$ac_optarg ;;
877
878 -gas | --gas | --ga | --g)
879 # Obsolete; use --with-gas.
880 with_gas=yes ;;
881
882 -help | --help | --hel | --he | -h)
883 ac_init_help=long ;;
884 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
885 ac_init_help=recursive ;;
886 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
887 ac_init_help=short ;;
888
889 -host | --host | --hos | --ho)
890 ac_prev=host_alias ;;
891 -host=* | --host=* | --hos=* | --ho=*)
892 host_alias=$ac_optarg ;;
893
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000894 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895 ac_prev=htmldir ;;
896 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897 | --ht=*)
898 htmldir=$ac_optarg ;;
899
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000900 -includedir | --includedir | --includedi | --included | --include \
901 | --includ | --inclu | --incl | --inc)
902 ac_prev=includedir ;;
903 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
904 | --includ=* | --inclu=* | --incl=* | --inc=*)
905 includedir=$ac_optarg ;;
906
907 -infodir | --infodir | --infodi | --infod | --info | --inf)
908 ac_prev=infodir ;;
909 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
910 infodir=$ac_optarg ;;
911
912 -libdir | --libdir | --libdi | --libd)
913 ac_prev=libdir ;;
914 -libdir=* | --libdir=* | --libdi=* | --libd=*)
915 libdir=$ac_optarg ;;
916
917 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
918 | --libexe | --libex | --libe)
919 ac_prev=libexecdir ;;
920 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
921 | --libexe=* | --libex=* | --libe=*)
922 libexecdir=$ac_optarg ;;
923
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000924 -localedir | --localedir | --localedi | --localed | --locale)
925 ac_prev=localedir ;;
926 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
927 localedir=$ac_optarg ;;
928
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000929 -localstatedir | --localstatedir | --localstatedi | --localstated \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000930 | --localstate | --localstat | --localsta | --localst | --locals)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000931 ac_prev=localstatedir ;;
932 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000933 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000934 localstatedir=$ac_optarg ;;
935
936 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937 ac_prev=mandir ;;
938 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
939 mandir=$ac_optarg ;;
940
941 -nfp | --nfp | --nf)
942 # Obsolete; use --without-fp.
943 with_fp=no ;;
944
945 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000946 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000947 no_create=yes ;;
948
949 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
950 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
951 no_recursion=yes ;;
952
953 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
954 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
955 | --oldin | --oldi | --old | --ol | --o)
956 ac_prev=oldincludedir ;;
957 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
958 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
959 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
960 oldincludedir=$ac_optarg ;;
961
962 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963 ac_prev=prefix ;;
964 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
965 prefix=$ac_optarg ;;
966
967 -program-prefix | --program-prefix | --program-prefi | --program-pref \
968 | --program-pre | --program-pr | --program-p)
969 ac_prev=program_prefix ;;
970 -program-prefix=* | --program-prefix=* | --program-prefi=* \
971 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
972 program_prefix=$ac_optarg ;;
973
974 -program-suffix | --program-suffix | --program-suffi | --program-suff \
975 | --program-suf | --program-su | --program-s)
976 ac_prev=program_suffix ;;
977 -program-suffix=* | --program-suffix=* | --program-suffi=* \
978 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979 program_suffix=$ac_optarg ;;
980
981 -program-transform-name | --program-transform-name \
982 | --program-transform-nam | --program-transform-na \
983 | --program-transform-n | --program-transform- \
984 | --program-transform | --program-transfor \
985 | --program-transfo | --program-transf \
986 | --program-trans | --program-tran \
987 | --progr-tra | --program-tr | --program-t)
988 ac_prev=program_transform_name ;;
989 -program-transform-name=* | --program-transform-name=* \
990 | --program-transform-nam=* | --program-transform-na=* \
991 | --program-transform-n=* | --program-transform-=* \
992 | --program-transform=* | --program-transfor=* \
993 | --program-transfo=* | --program-transf=* \
994 | --program-trans=* | --program-tran=* \
995 | --progr-tra=* | --program-tr=* | --program-t=*)
996 program_transform_name=$ac_optarg ;;
997
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000998 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999 ac_prev=pdfdir ;;
1000 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1001 pdfdir=$ac_optarg ;;
1002
1003 -psdir | --psdir | --psdi | --psd | --ps)
1004 ac_prev=psdir ;;
1005 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1006 psdir=$ac_optarg ;;
1007
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1009 | -silent | --silent | --silen | --sile | --sil)
1010 silent=yes ;;
1011
1012 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013 ac_prev=sbindir ;;
1014 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015 | --sbi=* | --sb=*)
1016 sbindir=$ac_optarg ;;
1017
1018 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1019 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1020 | --sharedst | --shareds | --shared | --share | --shar \
1021 | --sha | --sh)
1022 ac_prev=sharedstatedir ;;
1023 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1024 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1025 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026 | --sha=* | --sh=*)
1027 sharedstatedir=$ac_optarg ;;
1028
1029 -site | --site | --sit)
1030 ac_prev=site ;;
1031 -site=* | --site=* | --sit=*)
1032 site=$ac_optarg ;;
1033
1034 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035 ac_prev=srcdir ;;
1036 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1037 srcdir=$ac_optarg ;;
1038
1039 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1040 | --syscon | --sysco | --sysc | --sys | --sy)
1041 ac_prev=sysconfdir ;;
1042 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1043 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1044 sysconfdir=$ac_optarg ;;
1045
1046 -target | --target | --targe | --targ | --tar | --ta | --t)
1047 ac_prev=target_alias ;;
1048 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1049 target_alias=$ac_optarg ;;
1050
1051 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1052 verbose=yes ;;
1053
1054 -version | --version | --versio | --versi | --vers | -V)
1055 ac_init_version=: ;;
1056
1057 -with-* | --with-*)
Benny Prijonod4306432010-05-01 22:05:41 +00001058 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001059 # Reject names that are not valid shell variable names.
Benny Prijonod4306432010-05-01 22:05:41 +00001060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061 as_fn_error "invalid package name: $ac_useropt"
1062 ac_useropt_orig=$ac_useropt
1063 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064 case $ac_user_opts in
1065 *"
1066"with_$ac_useropt"
1067"*) ;;
1068 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1069 ac_unrecognized_sep=', ';;
1070 esac
1071 eval with_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001072
1073 -without-* | --without-*)
Benny Prijonod4306432010-05-01 22:05:41 +00001074 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001075 # Reject names that are not valid shell variable names.
Benny Prijonod4306432010-05-01 22:05:41 +00001076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error "invalid package name: $ac_useropt"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1081 *"
1082"with_$ac_useropt"
1083"*) ;;
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1086 esac
1087 eval with_$ac_useropt=no ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001088
1089 --x)
1090 # Obsolete; use --with-x.
1091 with_x=yes ;;
1092
1093 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1094 | --x-incl | --x-inc | --x-in | --x-i)
1095 ac_prev=x_includes ;;
1096 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1097 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1098 x_includes=$ac_optarg ;;
1099
1100 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1101 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1102 ac_prev=x_libraries ;;
1103 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1104 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1105 x_libraries=$ac_optarg ;;
1106
Benny Prijonod4306432010-05-01 22:05:41 +00001107 -*) as_fn_error "unrecognized option: \`$ac_option'
1108Try \`$0 --help' for more information."
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001109 ;;
1110
1111 *=*)
1112 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1113 # Reject names that are not valid shell variable names.
Benny Prijonod4306432010-05-01 22:05:41 +00001114 case $ac_envvar in #(
1115 '' | [0-9]* | *[!_$as_cr_alnum]* )
1116 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1117 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001118 eval $ac_envvar=\$ac_optarg
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001119 export $ac_envvar ;;
1120
1121 *)
1122 # FIXME: should be removed in autoconf 3.0.
Benny Prijonod4306432010-05-01 22:05:41 +00001123 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001124 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijonod4306432010-05-01 22:05:41 +00001125 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001126 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1127 ;;
1128
1129 esac
1130done
1131
1132if test -n "$ac_prev"; then
1133 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Benny Prijonod4306432010-05-01 22:05:41 +00001134 as_fn_error "missing argument to $ac_option"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001135fi
1136
Benny Prijonod4306432010-05-01 22:05:41 +00001137if test -n "$ac_unrecognized_opts"; then
1138 case $enable_option_checking in
1139 no) ;;
1140 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1141 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1142 esac
1143fi
1144
1145# Check all directory arguments for consistency.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001146for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1147 datadir sysconfdir sharedstatedir localstatedir includedir \
1148 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1149 libdir localedir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001150do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001151 eval ac_val=\$$ac_var
Benny Prijonod4306432010-05-01 22:05:41 +00001152 # Remove trailing slashes.
1153 case $ac_val in
1154 */ )
1155 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1156 eval $ac_var=\$ac_val;;
1157 esac
1158 # Be sure to have absolute directory names.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001159 case $ac_val in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001160 [\\/$]* | ?:[\\/]* ) continue;;
1161 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001162 esac
Benny Prijonod4306432010-05-01 22:05:41 +00001163 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001164done
1165
1166# There might be people who depend on the old broken behavior: `$host'
1167# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001168# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001169build=$build_alias
1170host=$host_alias
1171target=$target_alias
1172
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001173# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001174if test "x$host_alias" != x; then
1175 if test "x$build_alias" = x; then
1176 cross_compiling=maybe
Benny Prijonod4306432010-05-01 22:05:41 +00001177 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001178 If a cross compiler is detected then cross compile mode will be used." >&2
1179 elif test "x$build_alias" != "x$host_alias"; then
1180 cross_compiling=yes
1181 fi
1182fi
1183
1184ac_tool_prefix=
1185test -n "$host_alias" && ac_tool_prefix=$host_alias-
1186
1187test "$silent" = yes && exec 6>/dev/null
1188
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001189
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001190ac_pwd=`pwd` && test -n "$ac_pwd" &&
1191ac_ls_di=`ls -di .` &&
1192ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Benny Prijonod4306432010-05-01 22:05:41 +00001193 as_fn_error "working directory cannot be determined"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001194test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Benny Prijonod4306432010-05-01 22:05:41 +00001195 as_fn_error "pwd does not report name of working directory"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001196
1197
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001198# Find the source files, if location was not specified.
1199if test -z "$srcdir"; then
1200 ac_srcdir_defaulted=yes
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001201 # Try the directory containing this script, then the parent directory.
Benny Prijonod4306432010-05-01 22:05:41 +00001202 ac_confdir=`$as_dirname -- "$as_myself" ||
1203$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1204 X"$as_myself" : 'X\(//\)[^/]' \| \
1205 X"$as_myself" : 'X\(//\)$' \| \
1206 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1207$as_echo X"$as_myself" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1209 s//\1/
1210 q
1211 }
1212 /^X\(\/\/\)[^/].*/{
1213 s//\1/
1214 q
1215 }
1216 /^X\(\/\/\)$/{
1217 s//\1/
1218 q
1219 }
1220 /^X\(\/\).*/{
1221 s//\1/
1222 q
1223 }
1224 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001225 srcdir=$ac_confdir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001226 if test ! -r "$srcdir/$ac_unique_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001227 srcdir=..
1228 fi
1229else
1230 ac_srcdir_defaulted=no
1231fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001232if test ! -r "$srcdir/$ac_unique_file"; then
1233 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Benny Prijonod4306432010-05-01 22:05:41 +00001234 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Benny Prijono9489e7a2008-09-19 22:18:50 +00001235fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001236ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1237ac_abs_confdir=`(
Benny Prijonod4306432010-05-01 22:05:41 +00001238 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001239 pwd)`
1240# When building in place, set srcdir=.
1241if test "$ac_abs_confdir" = "$ac_pwd"; then
1242 srcdir=.
1243fi
1244# Remove unnecessary trailing slashes from srcdir.
1245# Double slashes in file names in object file debugging info
1246# mess up M-x gdb in Emacs.
1247case $srcdir in
1248*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1249esac
1250for ac_var in $ac_precious_vars; do
1251 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1252 eval ac_env_${ac_var}_value=\$${ac_var}
1253 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1254 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1255done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001256
1257#
1258# Report the --help message.
1259#
1260if test "$ac_init_help" = "long"; then
1261 # Omit some internal or obsolete options to make the list less imposing.
1262 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001263 cat <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001264\`configure' configures pjproject 1.x to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001265
1266Usage: $0 [OPTION]... [VAR=VALUE]...
1267
1268To assign environment variables (e.g., CC, CFLAGS...), specify them as
1269VAR=VALUE. See below for descriptions of some of the useful variables.
1270
1271Defaults for the options are specified in brackets.
1272
1273Configuration:
1274 -h, --help display this help and exit
1275 --help=short display options specific to this package
1276 --help=recursive display the short help of all the included packages
1277 -V, --version display version information and exit
1278 -q, --quiet, --silent do not print \`checking...' messages
1279 --cache-file=FILE cache test results in FILE [disabled]
1280 -C, --config-cache alias for \`--cache-file=config.cache'
1281 -n, --no-create do not create output files
1282 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1283
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001284Installation directories:
1285 --prefix=PREFIX install architecture-independent files in PREFIX
Benny Prijonod4306432010-05-01 22:05:41 +00001286 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001287 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Benny Prijonod4306432010-05-01 22:05:41 +00001288 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001289
1290By default, \`make install' will install all the files in
1291\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1292an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1293for instance \`--prefix=\$HOME'.
1294
1295For better control, use the options below.
1296
1297Fine tuning of the installation directories:
Benny Prijonod4306432010-05-01 22:05:41 +00001298 --bindir=DIR user executables [EPREFIX/bin]
1299 --sbindir=DIR system admin executables [EPREFIX/sbin]
1300 --libexecdir=DIR program executables [EPREFIX/libexec]
1301 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1302 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1303 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1304 --libdir=DIR object code libraries [EPREFIX/lib]
1305 --includedir=DIR C header files [PREFIX/include]
1306 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1307 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1308 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1309 --infodir=DIR info documentation [DATAROOTDIR/info]
1310 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1311 --mandir=DIR man documentation [DATAROOTDIR/man]
1312 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1313 --htmldir=DIR html documentation [DOCDIR]
1314 --dvidir=DIR dvi documentation [DOCDIR]
1315 --pdfdir=DIR pdf documentation [DOCDIR]
1316 --psdir=DIR ps documentation [DOCDIR]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001317_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001318
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001319 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001320
1321System types:
1322 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001323 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001324 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001325_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001326fi
1327
1328if test -n "$ac_init_help"; then
1329 case $ac_init_help in
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001330 short | recursive ) echo "Configuration of pjproject 1.x:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001331 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001332 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001333
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001334Optional Features:
Benny Prijonod4306432010-05-01 22:05:41 +00001335 --disable-option-checking ignore unrecognized --enable/--with options
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001336 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1337 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1338 --disable-floating-point
1339 Disable floating point where possible
Benny Prijono9489e7a2008-09-19 22:18:50 +00001340 --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
Benny Prijono1d971622006-09-10 22:27:40 +00001341 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijono0b462322008-03-12 22:44:24 +00001342 --disable-oss Disable OSS audio (default: not disabled)
1343
Benny Prijonoebb2c332008-07-28 23:40:58 +00001344 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001345 --disable-small-filter Exclude small filter in resampling
1346 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001347 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1348 --disable-g711-codec Exclude G.711 codecs from the build
1349 --disable-l16-codec Exclude Linear/L16 codec family from the build
1350 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +00001351 --disable-g722-codec Exclude G.722 codec in the build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001352 --disable-g7221-codec Exclude G.7221 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001353 --disable-speex-codec Exclude Speex codecs in the build
1354 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +00001355 --enable-libsamplerate Link with libsamplerate when available. Note that
1356 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijono0822c192008-08-21 20:59:58 +00001357 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
1358 package and samples location using IPPROOT and
1359 IPPSAMPLES env var or with --with-ipp and
1360 --with-ipp-samples options
Benny Prijonoce1db762007-02-14 02:21:08 +00001361 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001362
1363
Benny Prijonofe0c1272010-01-13 16:28:15 +00001364Optional Packages:
1365 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1366 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001367 --with-external-speex Use external Speex development files, not the one in
1368 "third_party" directory. When this option is set,
1369 make sure that Speex is accessible to use (hint: use
1370 CFLAGS and LDFLAGS env var to set the include/lib
1371 paths)
1372 --with-external-gsm Use external GSM codec library, not the one in
1373 "third_party" directory. When this option is set,
1374 make sure that the GSM include/lib files are
1375 accessible to use (hint: use CFLAGS and LDFLAGS env
1376 var to set the include/lib paths)
1377 --with-external-pa Use external PortAudio development files, not the
1378 one in "third_party" directory. When this option is
1379 set, make sure that PortAudio is accessible to use
1380 (hint: use CFLAGS and LDFLAGS env var to set the
1381 include/lib paths)
Benny Prijono3965f192010-02-10 18:46:05 +00001382 --with-ipp=DIR Specify the Intel IPP location
1383 --with-ipp-samples=DIR Specify the Intel IPP samples location
1384 --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or
Benny Prijono46bd0842010-02-12 14:12:41 +00001385 "em64t. Default is blank for IA32"
Benny Prijonofe0c1272010-01-13 16:28:15 +00001386
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001387Some influential environment variables:
1388 CC C compiler command
1389 CFLAGS C compiler flags
1390 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1391 nonstandard directory <lib dir>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001392 LIBS libraries to pass to the linker, e.g. -l<library>
1393 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1394 you have headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001395 CXX C++ compiler command
1396 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001397 CPP C preprocessor
1398
1399Use these variables to override the choices made by `configure' or to help
1400it to find libraries and programs with nonstandard names/locations.
1401
Benny Prijonod4306432010-05-01 22:05:41 +00001402Report bugs to the package provider.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001403_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001404ac_status=$?
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001405fi
1406
1407if test "$ac_init_help" = "recursive"; then
1408 # If there are subdirs, report their specific --help.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001409 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Benny Prijonod4306432010-05-01 22:05:41 +00001410 test -d "$ac_dir" ||
1411 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1412 continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001413 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001414
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001415case "$ac_dir" in
1416.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417*)
Benny Prijonod4306432010-05-01 22:05:41 +00001418 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001419 # A ".." for each directory in $ac_dir_suffix.
Benny Prijonod4306432010-05-01 22:05:41 +00001420 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001421 case $ac_top_builddir_sub in
1422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1424 esac ;;
1425esac
1426ac_abs_top_builddir=$ac_pwd
1427ac_abs_builddir=$ac_pwd$ac_dir_suffix
1428# for backward compatibility:
1429ac_top_builddir=$ac_top_build_prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001430
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001431case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001432 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001433 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001434 ac_top_srcdir=$ac_top_builddir_sub
1435 ac_abs_top_srcdir=$ac_pwd ;;
1436 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001437 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001438 ac_top_srcdir=$srcdir
1439 ac_abs_top_srcdir=$srcdir ;;
1440 *) # Relative name.
1441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1442 ac_top_srcdir=$ac_top_build_prefix$srcdir
1443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001444esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001445ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001446
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001447 cd "$ac_dir" || { ac_status=$?; continue; }
1448 # Check for guested configure.
1449 if test -f "$ac_srcdir/configure.gnu"; then
1450 echo &&
1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1452 elif test -f "$ac_srcdir/configure"; then
1453 echo &&
1454 $SHELL "$ac_srcdir/configure" --help=recursive
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001455 else
Benny Prijonod4306432010-05-01 22:05:41 +00001456 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001457 fi || ac_status=$?
1458 cd "$ac_pwd" || { ac_status=$?; break; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001459 done
1460fi
1461
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001462test -n "$ac_init_help" && exit $ac_status
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001463if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001464 cat <<\_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001465pjproject configure 1.x
Benny Prijonod4306432010-05-01 22:05:41 +00001466generated by GNU Autoconf 2.64
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001467
Benny Prijonod4306432010-05-01 22:05:41 +00001468Copyright (C) 2009 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001469This configure script is free software; the Free Software Foundation
1470gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001471_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001472 exit
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001473fi
Benny Prijonod4306432010-05-01 22:05:41 +00001474
1475## ------------------------ ##
1476## Autoconf initialization. ##
1477## ------------------------ ##
1478
1479# ac_fn_c_try_compile LINENO
1480# --------------------------
1481# Try to compile conftest.$ac_ext, and return whether this succeeded.
1482ac_fn_c_try_compile ()
1483{
1484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1485 rm -f conftest.$ac_objext
1486 if { { ac_try="$ac_compile"
1487case "(($ac_try" in
1488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1489 *) ac_try_echo=$ac_try;;
1490esac
1491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1492$as_echo "$ac_try_echo"; } >&5
1493 (eval "$ac_compile") 2>conftest.err
1494 ac_status=$?
1495 if test -s conftest.err; then
1496 grep -v '^ *+' conftest.err >conftest.er1
1497 cat conftest.er1 >&5
1498 mv -f conftest.er1 conftest.err
1499 fi
1500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1501 test $ac_status = 0; } && {
1502 test -z "$ac_c_werror_flag" ||
1503 test ! -s conftest.err
1504 } && test -s conftest.$ac_objext; then :
1505 ac_retval=0
1506else
1507 $as_echo "$as_me: failed program was:" >&5
1508sed 's/^/| /' conftest.$ac_ext >&5
1509
1510 ac_retval=1
1511fi
1512 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1513 return $ac_retval
1514
1515} # ac_fn_c_try_compile
1516
1517# ac_fn_cxx_try_compile LINENO
1518# ----------------------------
1519# Try to compile conftest.$ac_ext, and return whether this succeeded.
1520ac_fn_cxx_try_compile ()
1521{
1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523 rm -f conftest.$ac_objext
1524 if { { ac_try="$ac_compile"
1525case "(($ac_try" in
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1528esac
1529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530$as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_compile") 2>conftest.err
1532 ac_status=$?
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1537 fi
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } && {
1540 test -z "$ac_cxx_werror_flag" ||
1541 test ! -s conftest.err
1542 } && test -s conftest.$ac_objext; then :
1543 ac_retval=0
1544else
1545 $as_echo "$as_me: failed program was:" >&5
1546sed 's/^/| /' conftest.$ac_ext >&5
1547
1548 ac_retval=1
1549fi
1550 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1551 return $ac_retval
1552
1553} # ac_fn_cxx_try_compile
1554
1555# ac_fn_c_try_link LINENO
1556# -----------------------
1557# Try to link conftest.$ac_ext, and return whether this succeeded.
1558ac_fn_c_try_link ()
1559{
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext conftest$ac_exeext
1562 if { { ac_try="$ac_link"
1563case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566esac
1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568$as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_link") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1575 fi
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest$ac_exeext && {
1581 test "$cross_compiling" = yes ||
1582 $as_test_x conftest$ac_exeext
1583 }; then :
1584 ac_retval=0
1585else
1586 $as_echo "$as_me: failed program was:" >&5
1587sed 's/^/| /' conftest.$ac_ext >&5
1588
1589 ac_retval=1
1590fi
1591 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1592 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1593 # interfere with the next link command; also delete a directory that is
1594 # left behind by Apple's compiler. We do this before executing the actions.
1595 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1596 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1597 return $ac_retval
1598
1599} # ac_fn_c_try_link
1600
1601# ac_fn_c_try_run LINENO
1602# ----------------------
1603# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1604# that executables *can* be run.
1605ac_fn_c_try_run ()
1606{
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 if { { ac_try="$ac_link"
1609case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612esac
1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614$as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_link") 2>&5
1616 ac_status=$?
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1619 { { case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622esac
1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624$as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_try") 2>&5
1626 ac_status=$?
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; }; }; then :
1629 ac_retval=0
1630else
1631 $as_echo "$as_me: program exited with status $ac_status" >&5
1632 $as_echo "$as_me: failed program was:" >&5
1633sed 's/^/| /' conftest.$ac_ext >&5
1634
1635 ac_retval=$ac_status
1636fi
1637 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1638 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1639 return $ac_retval
1640
1641} # ac_fn_c_try_run
1642
1643# ac_fn_c_try_cpp LINENO
1644# ----------------------
1645# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646ac_fn_c_try_cpp ()
1647{
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { { ac_try="$ac_cpp conftest.$ac_ext"
1650case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653esac
1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655$as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1662 fi
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } >/dev/null && {
1665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 }; then :
1668 ac_retval=0
1669else
1670 $as_echo "$as_me: failed program was:" >&5
1671sed 's/^/| /' conftest.$ac_ext >&5
1672
1673 ac_retval=1
1674fi
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676 return $ac_retval
1677
1678} # ac_fn_c_try_cpp
1679
1680# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1681# -------------------------------------------------------
1682# Tests whether HEADER exists and can be compiled using the include files in
1683# INCLUDES, setting the cache variable VAR accordingly.
1684ac_fn_c_check_header_compile ()
1685{
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688$as_echo_n "checking for $2... " >&6; }
1689if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1690 $as_echo_n "(cached) " >&6
1691else
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693/* end confdefs.h. */
1694$4
1695#include <$2>
1696_ACEOF
1697if ac_fn_c_try_compile "$LINENO"; then :
1698 eval "$3=yes"
1699else
1700 eval "$3=no"
1701fi
1702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1703fi
1704eval ac_res=\$$3
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706$as_echo "$ac_res" >&6; }
1707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708
1709} # ac_fn_c_check_header_compile
1710
1711# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1712# -------------------------------------------------------
1713# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1714# the include files in INCLUDES and setting the cache variable VAR
1715# accordingly.
1716ac_fn_c_check_header_mongrel ()
1717{
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721$as_echo_n "checking for $2... " >&6; }
1722if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1723 $as_echo_n "(cached) " >&6
1724fi
1725eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727$as_echo "$ac_res" >&6; }
1728else
1729 # Is the header compilable?
1730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1731$as_echo_n "checking $2 usability... " >&6; }
1732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733/* end confdefs.h. */
1734$4
1735#include <$2>
1736_ACEOF
1737if ac_fn_c_try_compile "$LINENO"; then :
1738 ac_header_compiler=yes
1739else
1740 ac_header_compiler=no
1741fi
1742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1744$as_echo "$ac_header_compiler" >&6; }
1745
1746# Is the header present?
1747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1748$as_echo_n "checking $2 presence... " >&6; }
1749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750/* end confdefs.h. */
1751#include <$2>
1752_ACEOF
1753if ac_fn_c_try_cpp "$LINENO"; then :
1754 ac_header_preproc=yes
1755else
1756 ac_header_preproc=no
1757fi
1758rm -f conftest.err conftest.$ac_ext
1759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1760$as_echo "$ac_header_preproc" >&6; }
1761
1762# So? What about this header?
1763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1764 yes:no: )
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1766$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1769 ;;
1770 no:yes:* )
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1772$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1774$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1776$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1778$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781 ;;
1782esac
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784$as_echo_n "checking for $2... " >&6; }
1785if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786 $as_echo_n "(cached) " >&6
1787else
1788 eval "$3=\$ac_header_compiler"
1789fi
1790eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792$as_echo "$ac_res" >&6; }
1793fi
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795
1796} # ac_fn_c_check_header_mongrel
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001797cat >config.log <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001798This file contains any messages produced by compilers while
1799running configure, to aid debugging if configure makes a mistake.
1800
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001801It was created by pjproject $as_me 1.x, which was
Benny Prijonod4306432010-05-01 22:05:41 +00001802generated by GNU Autoconf 2.64. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001803
1804 $ $0 $@
1805
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001806_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001807exec 5>>config.log
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001808{
1809cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001810## --------- ##
1811## Platform. ##
1812## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001813
1814hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1815uname -m = `(uname -m) 2>/dev/null || echo unknown`
1816uname -r = `(uname -r) 2>/dev/null || echo unknown`
1817uname -s = `(uname -s) 2>/dev/null || echo unknown`
1818uname -v = `(uname -v) 2>/dev/null || echo unknown`
1819
1820/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1821/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1822
1823/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1824/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1825/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001826/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001827/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1828/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1829/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1830
1831_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001832
1833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834for as_dir in $PATH
1835do
1836 IFS=$as_save_IFS
1837 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00001838 $as_echo "PATH: $as_dir"
1839 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001840IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001841
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001842} >&5
1843
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001844cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001845
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001846
1847## ----------- ##
1848## Core tests. ##
1849## ----------- ##
1850
1851_ACEOF
1852
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001853
1854# Keep a trace of the command line.
1855# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001856# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001857# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001858# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001859ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001860ac_configure_args0=
1861ac_configure_args1=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001862ac_must_keep_next=false
1863for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001864do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001865 for ac_arg
1866 do
1867 case $ac_arg in
1868 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1869 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1870 | -silent | --silent | --silen | --sile | --sil)
1871 continue ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001872 *\'*)
Benny Prijonod4306432010-05-01 22:05:41 +00001873 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001874 esac
1875 case $ac_pass in
Benny Prijonod4306432010-05-01 22:05:41 +00001876 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001877 2)
Benny Prijonod4306432010-05-01 22:05:41 +00001878 as_fn_append ac_configure_args1 " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001879 if test $ac_must_keep_next = true; then
1880 ac_must_keep_next=false # Got value, back to normal.
1881 else
1882 case $ac_arg in
1883 *=* | --config-cache | -C | -disable-* | --disable-* \
1884 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1885 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1886 | -with-* | --with-* | -without-* | --without-* | --x)
1887 case "$ac_configure_args0 " in
1888 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1889 esac
1890 ;;
1891 -* ) ac_must_keep_next=true ;;
1892 esac
1893 fi
Benny Prijonod4306432010-05-01 22:05:41 +00001894 as_fn_append ac_configure_args " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001895 ;;
1896 esac
1897 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001898done
Benny Prijonod4306432010-05-01 22:05:41 +00001899{ ac_configure_args0=; unset ac_configure_args0;}
1900{ ac_configure_args1=; unset ac_configure_args1;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001901
1902# When interrupted or exit'd, cleanup temporary files, and complete
1903# config.log. We remove comments because anyway the quotes in there
1904# would cause problems or look ugly.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001905# WARNING: Use '\'' to represent an apostrophe within the trap.
1906# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001907trap 'exit_status=$?
1908 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001909 {
1910 echo
1911
1912 cat <<\_ASBOX
1913## ---------------- ##
1914## Cache variables. ##
1915## ---------------- ##
1916_ASBOX
1917 echo
1918 # The following way of writing the cache mishandles newlines in values,
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001919(
1920 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1921 eval ac_val=\$$ac_var
1922 case $ac_val in #(
1923 *${as_nl}*)
1924 case $ac_var in #(
Benny Prijonod4306432010-05-01 22:05:41 +00001925 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1926$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001927 esac
1928 case $ac_var in #(
1929 _ | IFS | as_nl) ;; #(
Benny Prijonod4306432010-05-01 22:05:41 +00001930 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1931 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001932 esac ;;
1933 esac
1934 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001935 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001936 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1937 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001938 sed -n \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001939 "s/'\''/'\''\\\\'\'''\''/g;
1940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1941 ;; #(
Benny Prijonoe2746132008-09-27 13:16:35 +00001942 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001943 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoe2746132008-09-27 13:16:35 +00001944 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001945 esac |
1946 sort
1947)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001948 echo
1949
1950 cat <<\_ASBOX
1951## ----------------- ##
1952## Output variables. ##
1953## ----------------- ##
1954_ASBOX
1955 echo
1956 for ac_var in $ac_subst_vars
1957 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001958 eval ac_val=\$$ac_var
1959 case $ac_val in
Benny Prijonod4306432010-05-01 22:05:41 +00001960 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001961 esac
Benny Prijonod4306432010-05-01 22:05:41 +00001962 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001963 done | sort
1964 echo
1965
1966 if test -n "$ac_subst_files"; then
1967 cat <<\_ASBOX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001968## ------------------- ##
1969## File substitutions. ##
1970## ------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001971_ASBOX
1972 echo
1973 for ac_var in $ac_subst_files
1974 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001975 eval ac_val=\$$ac_var
1976 case $ac_val in
Benny Prijonod4306432010-05-01 22:05:41 +00001977 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001978 esac
Benny Prijonod4306432010-05-01 22:05:41 +00001979 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001980 done | sort
1981 echo
1982 fi
1983
1984 if test -s confdefs.h; then
1985 cat <<\_ASBOX
1986## ----------- ##
1987## confdefs.h. ##
1988## ----------- ##
1989_ASBOX
1990 echo
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001991 cat confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001992 echo
1993 fi
1994 test "$ac_signal" != 0 &&
Benny Prijonod4306432010-05-01 22:05:41 +00001995 $as_echo "$as_me: caught signal $ac_signal"
1996 $as_echo "$as_me: exit $exit_status"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001997 } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001998 rm -f core *.core core.conftest.* &&
1999 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002000 exit $exit_status
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002001' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002002for ac_signal in 1 2 13 15; do
Benny Prijonod4306432010-05-01 22:05:41 +00002003 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002004done
2005ac_signal=0
2006
2007# confdefs.h avoids OS command line length limits that DEFS can exceed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002008rm -f -r conftest* confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002009
Benny Prijonod4306432010-05-01 22:05:41 +00002010$as_echo "/* confdefs.h */" > confdefs.h
2011
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002012# Predefined preprocessor variables.
2013
2014cat >>confdefs.h <<_ACEOF
2015#define PACKAGE_NAME "$PACKAGE_NAME"
2016_ACEOF
2017
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002018cat >>confdefs.h <<_ACEOF
2019#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2020_ACEOF
2021
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002022cat >>confdefs.h <<_ACEOF
2023#define PACKAGE_VERSION "$PACKAGE_VERSION"
2024_ACEOF
2025
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002026cat >>confdefs.h <<_ACEOF
2027#define PACKAGE_STRING "$PACKAGE_STRING"
2028_ACEOF
2029
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002030cat >>confdefs.h <<_ACEOF
2031#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2032_ACEOF
2033
Benny Prijonod4306432010-05-01 22:05:41 +00002034cat >>confdefs.h <<_ACEOF
2035#define PACKAGE_URL "$PACKAGE_URL"
2036_ACEOF
2037
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002038
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002039# Let the site file select an alternate cache file if it wants to.
Benny Prijonod4306432010-05-01 22:05:41 +00002040# Prefer an explicitly selected file to automatically selected ones.
2041ac_site_file1=NONE
2042ac_site_file2=NONE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002043if test -n "$CONFIG_SITE"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002044 ac_site_file1=$CONFIG_SITE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002045elif test "x$prefix" != xNONE; then
Benny Prijonod4306432010-05-01 22:05:41 +00002046 ac_site_file1=$prefix/share/config.site
2047 ac_site_file2=$prefix/etc/config.site
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002048else
Benny Prijonod4306432010-05-01 22:05:41 +00002049 ac_site_file1=$ac_default_prefix/share/config.site
2050 ac_site_file2=$ac_default_prefix/etc/config.site
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002051fi
Benny Prijonod4306432010-05-01 22:05:41 +00002052for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002053do
Benny Prijonod4306432010-05-01 22:05:41 +00002054 test "x$ac_site_file" = xNONE && continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002055 if test -r "$ac_site_file"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002056 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2057$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002058 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002059 . "$ac_site_file"
2060 fi
2061done
2062
2063if test -r "$cache_file"; then
2064 # Some versions of bash will fail to source /dev/null (special
2065 # files actually), so we avoid doing that.
2066 if test -f "$cache_file"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002067 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2068$as_echo "$as_me: loading cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002069 case $cache_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002070 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2071 *) . "./$cache_file";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002072 esac
2073 fi
2074else
Benny Prijonod4306432010-05-01 22:05:41 +00002075 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2076$as_echo "$as_me: creating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002077 >$cache_file
2078fi
2079
2080# Check that the precious variables saved in the cache have kept the same
2081# value.
2082ac_cache_corrupted=false
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002083for ac_var in $ac_precious_vars; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002084 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2085 eval ac_new_set=\$ac_env_${ac_var}_set
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002086 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2087 eval ac_new_val=\$ac_env_${ac_var}_value
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002088 case $ac_old_set,$ac_new_set in
2089 set,)
Benny Prijonod4306432010-05-01 22:05:41 +00002090 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2091$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 +00002092 ac_cache_corrupted=: ;;
2093 ,set)
Benny Prijonod4306432010-05-01 22:05:41 +00002094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2095$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002096 ac_cache_corrupted=: ;;
2097 ,);;
2098 *)
2099 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002100 # differences in whitespace do not lead to failure.
2101 ac_old_val_w=`echo x $ac_old_val`
2102 ac_new_val_w=`echo x $ac_new_val`
2103 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2105$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2106 ac_cache_corrupted=:
2107 else
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2109$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2110 eval $ac_var=\$ac_old_val
2111 fi
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2113$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2115$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002116 fi;;
2117 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002118 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002119 if test "$ac_new_set" = set; then
2120 case $ac_new_val in
Benny Prijonod4306432010-05-01 22:05:41 +00002121 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002122 *) ac_arg=$ac_var=$ac_new_val ;;
2123 esac
2124 case " $ac_configure_args " in
2125 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Benny Prijonod4306432010-05-01 22:05:41 +00002126 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002127 esac
2128 fi
2129done
2130if $ac_cache_corrupted; then
Benny Prijonod4306432010-05-01 22:05:41 +00002131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2134$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2135 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002136fi
Benny Prijonod4306432010-05-01 22:05:41 +00002137## -------------------- ##
2138## Main body of script. ##
2139## -------------------- ##
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002140
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002141ac_ext=c
2142ac_cpp='$CPP $CPPFLAGS'
2143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2145ac_compiler_gnu=$ac_cv_c_compiler_gnu
2146
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002147
2148
Benny Prijono5b818b22006-09-17 22:58:51 +00002149host_orig="$host"
2150
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002151ac_aux_dir=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002152for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Benny Prijonod4306432010-05-01 22:05:41 +00002153 for ac_t in install-sh install.sh shtool; do
2154 if test -f "$ac_dir/$ac_t"; then
2155 ac_aux_dir=$ac_dir
2156 ac_install_sh="$ac_aux_dir/$ac_t -c"
2157 break 2
2158 fi
2159 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002160done
2161if test -z "$ac_aux_dir"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002162 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002163fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002164
2165# These three variables are undocumented and unsupported,
2166# and are intended to be withdrawn in a future Autoconf release.
2167# They can cause serious problems if a builder's source tree is in a directory
2168# whose full name contains unusual characters.
2169ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2170ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2171ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2172
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002173
2174# Make sure we can run config.sub.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002175$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Benny Prijonod4306432010-05-01 22:05:41 +00002176 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002177
Benny Prijonod4306432010-05-01 22:05:41 +00002178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2179$as_echo_n "checking build system type... " >&6; }
2180if test "${ac_cv_build+set}" = set; then :
2181 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002182else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002183 ac_build_alias=$build_alias
2184test "x$ac_build_alias" = x &&
2185 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2186test "x$ac_build_alias" = x &&
Benny Prijonod4306432010-05-01 22:05:41 +00002187 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002188ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Benny Prijonod4306432010-05-01 22:05:41 +00002189 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002190
2191fi
Benny Prijonod4306432010-05-01 22:05:41 +00002192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2193$as_echo "$ac_cv_build" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002194case $ac_cv_build in
2195*-*-*) ;;
Benny Prijonod4306432010-05-01 22:05:41 +00002196*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002197esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002198build=$ac_cv_build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002199ac_save_IFS=$IFS; IFS='-'
2200set x $ac_cv_build
2201shift
2202build_cpu=$1
2203build_vendor=$2
2204shift; shift
2205# Remember, the first character of IFS is used to create $*,
2206# except with old shells:
2207build_os=$*
2208IFS=$ac_save_IFS
2209case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002210
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002211
Benny Prijonod4306432010-05-01 22:05:41 +00002212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2213$as_echo_n "checking host system type... " >&6; }
2214if test "${ac_cv_host+set}" = set; then :
2215 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002216else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002217 if test "x$host_alias" = x; then
2218 ac_cv_host=$ac_cv_build
2219else
2220 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Benny Prijonod4306432010-05-01 22:05:41 +00002221 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002222fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002223
2224fi
Benny Prijonod4306432010-05-01 22:05:41 +00002225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2226$as_echo "$ac_cv_host" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002227case $ac_cv_host in
2228*-*-*) ;;
Benny Prijonod4306432010-05-01 22:05:41 +00002229*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002230esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002231host=$ac_cv_host
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002232ac_save_IFS=$IFS; IFS='-'
2233set x $ac_cv_host
2234shift
2235host_cpu=$1
2236host_vendor=$2
2237shift; shift
2238# Remember, the first character of IFS is used to create $*,
2239# except with old shells:
2240host_os=$*
2241IFS=$ac_save_IFS
2242case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002243
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002244
Benny Prijonod4306432010-05-01 22:05:41 +00002245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2246$as_echo_n "checking target system type... " >&6; }
2247if test "${ac_cv_target+set}" = set; then :
2248 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002249else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002250 if test "x$target_alias" = x; then
2251 ac_cv_target=$ac_cv_host
2252else
2253 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Benny Prijonod4306432010-05-01 22:05:41 +00002254 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002255fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002256
2257fi
Benny Prijonod4306432010-05-01 22:05:41 +00002258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2259$as_echo "$ac_cv_target" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002260case $ac_cv_target in
2261*-*-*) ;;
Benny Prijonod4306432010-05-01 22:05:41 +00002262*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002263esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002264target=$ac_cv_target
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002265ac_save_IFS=$IFS; IFS='-'
2266set x $ac_cv_target
2267shift
2268target_cpu=$1
2269target_vendor=$2
2270shift; shift
2271# Remember, the first character of IFS is used to create $*,
2272# except with old shells:
2273target_os=$*
2274IFS=$ac_save_IFS
2275case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002276
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002277
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002278# The aliases save the names the user supplied, while $host etc.
2279# will get canonicalized.
2280test -n "$target_alias" &&
2281 test "$program_prefix$program_suffix$program_transform_name" = \
2282 NONENONEs,x,x, &&
2283 program_prefix=${target_alias}-
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002284ac_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 +00002285
Benny Prijono8a9b3b22010-01-14 14:46:54 +00002286ac_config_files="$ac_config_files build.mak build/os-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 +00002287
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002288
Benny Prijono12483112007-03-12 10:44:38 +00002289
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002290if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00002291 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002292else
2293 CFLAGS="$CFLAGS"
2294fi
2295
2296CXXFLAGS="$CFLAGS $CXXFLAGS"
2297
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002298ac_ext=c
2299ac_cpp='$CPP $CPPFLAGS'
2300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2302ac_compiler_gnu=$ac_cv_c_compiler_gnu
2303if test -n "$ac_tool_prefix"; then
2304 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2305set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00002306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2307$as_echo_n "checking for $ac_word... " >&6; }
2308if test "${ac_cv_prog_CC+set}" = set; then :
2309 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002310else
2311 if test -n "$CC"; then
2312 ac_cv_prog_CC="$CC" # Let the user override the test.
2313else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315for as_dir in $PATH
2316do
2317 IFS=$as_save_IFS
2318 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00002319 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002320 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 +00002321 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Benny Prijonod4306432010-05-01 22:05:41 +00002322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002323 break 2
2324 fi
2325done
Benny Prijonod4306432010-05-01 22:05:41 +00002326 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002327IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002328
2329fi
2330fi
2331CC=$ac_cv_prog_CC
2332if test -n "$CC"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2334$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002335else
Benny Prijonod4306432010-05-01 22:05:41 +00002336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2337$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002338fi
2339
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002340
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002341fi
2342if test -z "$ac_cv_prog_CC"; then
2343 ac_ct_CC=$CC
2344 # Extract the first word of "gcc", so it can be a program name with args.
2345set dummy gcc; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00002346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2347$as_echo_n "checking for $ac_word... " >&6; }
2348if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2349 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002350else
2351 if test -n "$ac_ct_CC"; then
2352 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2353else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355for as_dir in $PATH
2356do
2357 IFS=$as_save_IFS
2358 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00002359 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002360 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 +00002361 ac_cv_prog_ac_ct_CC="gcc"
Benny Prijonod4306432010-05-01 22:05:41 +00002362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002363 break 2
2364 fi
2365done
Benny Prijonod4306432010-05-01 22:05:41 +00002366 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002367IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002368
2369fi
2370fi
2371ac_ct_CC=$ac_cv_prog_ac_ct_CC
2372if test -n "$ac_ct_CC"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2374$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002375else
Benny Prijonod4306432010-05-01 22:05:41 +00002376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2377$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002378fi
2379
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002380 if test "x$ac_ct_CC" = x; then
2381 CC=""
2382 else
2383 case $cross_compiling:$ac_tool_warned in
2384yes:)
Benny Prijonod4306432010-05-01 22:05:41 +00002385{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002387ac_tool_warned=yes ;;
2388esac
2389 CC=$ac_ct_CC
2390 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002391else
2392 CC="$ac_cv_prog_CC"
2393fi
2394
2395if test -z "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002396 if test -n "$ac_tool_prefix"; then
2397 # 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 +00002398set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00002399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2400$as_echo_n "checking for $ac_word... " >&6; }
2401if test "${ac_cv_prog_CC+set}" = set; then :
2402 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002403else
2404 if test -n "$CC"; then
2405 ac_cv_prog_CC="$CC" # Let the user override the test.
2406else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408for as_dir in $PATH
2409do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00002412 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002413 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 +00002414 ac_cv_prog_CC="${ac_tool_prefix}cc"
Benny Prijonod4306432010-05-01 22:05:41 +00002415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002416 break 2
2417 fi
2418done
Benny Prijonod4306432010-05-01 22:05:41 +00002419 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002420IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002421
2422fi
2423fi
2424CC=$ac_cv_prog_CC
2425if test -n "$CC"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2427$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002428else
Benny Prijonod4306432010-05-01 22:05:41 +00002429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2430$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002431fi
2432
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002433
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002434 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002435fi
2436if test -z "$CC"; then
2437 # Extract the first word of "cc", so it can be a program name with args.
2438set dummy cc; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00002439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2440$as_echo_n "checking for $ac_word... " >&6; }
2441if test "${ac_cv_prog_CC+set}" = set; then :
2442 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002443else
2444 if test -n "$CC"; then
2445 ac_cv_prog_CC="$CC" # Let the user override the test.
2446else
2447 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449for as_dir in $PATH
2450do
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00002453 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002454 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 +00002455 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2456 ac_prog_rejected=yes
2457 continue
2458 fi
2459 ac_cv_prog_CC="cc"
Benny Prijonod4306432010-05-01 22:05:41 +00002460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002461 break 2
2462 fi
2463done
Benny Prijonod4306432010-05-01 22:05:41 +00002464 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002465IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002466
2467if test $ac_prog_rejected = yes; then
2468 # We found a bogon in the path, so make sure we never use it.
2469 set dummy $ac_cv_prog_CC
2470 shift
2471 if test $# != 0; then
2472 # We chose a different compiler from the bogus one.
2473 # However, it has the same basename, so the bogon will be chosen
2474 # first if we set CC to just the basename; use the full file name.
2475 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002476 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002477 fi
2478fi
2479fi
2480fi
2481CC=$ac_cv_prog_CC
2482if test -n "$CC"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2484$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002485else
Benny Prijonod4306432010-05-01 22:05:41 +00002486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2487$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002488fi
2489
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002490
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002491fi
2492if test -z "$CC"; then
2493 if test -n "$ac_tool_prefix"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002494 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002495 do
2496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2497set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00002498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499$as_echo_n "checking for $ac_word... " >&6; }
2500if test "${ac_cv_prog_CC+set}" = set; then :
2501 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002502else
2503 if test -n "$CC"; then
2504 ac_cv_prog_CC="$CC" # Let the user override the test.
2505else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507for as_dir in $PATH
2508do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00002511 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002513 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Benny Prijonod4306432010-05-01 22:05:41 +00002514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002515 break 2
2516 fi
2517done
Benny Prijonod4306432010-05-01 22:05:41 +00002518 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002519IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002520
2521fi
2522fi
2523CC=$ac_cv_prog_CC
2524if test -n "$CC"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2526$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002527else
Benny Prijonod4306432010-05-01 22:05:41 +00002528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002530fi
2531
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002532
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002533 test -n "$CC" && break
2534 done
2535fi
2536if test -z "$CC"; then
2537 ac_ct_CC=$CC
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002538 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002539do
2540 # Extract the first word of "$ac_prog", so it can be a program name with args.
2541set dummy $ac_prog; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00002542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2543$as_echo_n "checking for $ac_word... " >&6; }
2544if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2545 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002546else
2547 if test -n "$ac_ct_CC"; then
2548 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2549else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551for as_dir in $PATH
2552do
2553 IFS=$as_save_IFS
2554 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00002555 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002556 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 +00002557 ac_cv_prog_ac_ct_CC="$ac_prog"
Benny Prijonod4306432010-05-01 22:05:41 +00002558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002559 break 2
2560 fi
2561done
Benny Prijonod4306432010-05-01 22:05:41 +00002562 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002563IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002564
2565fi
2566fi
2567ac_ct_CC=$ac_cv_prog_ac_ct_CC
2568if test -n "$ac_ct_CC"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2570$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002571else
Benny Prijonod4306432010-05-01 22:05:41 +00002572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002574fi
2575
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002576
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002577 test -n "$ac_ct_CC" && break
2578done
2579
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002580 if test "x$ac_ct_CC" = x; then
2581 CC=""
2582 else
2583 case $cross_compiling:$ac_tool_warned in
2584yes:)
Benny Prijonod4306432010-05-01 22:05:41 +00002585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002587ac_tool_warned=yes ;;
2588esac
2589 CC=$ac_ct_CC
2590 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002591fi
2592
2593fi
2594
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002595
Benny Prijonod4306432010-05-01 22:05:41 +00002596test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2597$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598as_fn_error "no acceptable C compiler found in \$PATH
2599See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002600
2601# Provide some information about the compiler.
Benny Prijonod4306432010-05-01 22:05:41 +00002602$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2603set X $ac_compile
2604ac_compiler=$2
2605for ac_option in --version -v -V -qversion; do
2606 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002607case "(($ac_try" in
2608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609 *) ac_try_echo=$ac_try;;
2610esac
Benny Prijonod4306432010-05-01 22:05:41 +00002611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2612$as_echo "$ac_try_echo"; } >&5
2613 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002614 ac_status=$?
Benny Prijonod4306432010-05-01 22:05:41 +00002615 if test -s conftest.err; then
2616 sed '10a\
2617... rest of stderr output deleted ...
2618 10q' conftest.err >conftest.er1
2619 cat conftest.er1 >&5
2620 rm -f conftest.er1 conftest.err
2621 fi
2622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2623 test $ac_status = 0; }
2624done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002625
Benny Prijonod4306432010-05-01 22:05:41 +00002626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002627/* end confdefs.h. */
Benny Prijonod4306432010-05-01 22:05:41 +00002628#include <stdio.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002629int
2630main ()
2631{
Benny Prijonod4306432010-05-01 22:05:41 +00002632FILE *f = fopen ("conftest.out", "w");
2633 return ferror (f) || fclose (f) != 0;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002634
2635 ;
2636 return 0;
2637}
2638_ACEOF
2639ac_clean_files_save=$ac_clean_files
Benny Prijonod4306432010-05-01 22:05:41 +00002640ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002641# Try to create an executable without -o first, disregard a.out.
2642# It will help us diagnose broken compilers, and finding out an intuition
2643# of exeext.
Benny Prijonod4306432010-05-01 22:05:41 +00002644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2645$as_echo_n "checking for C compiler default output file name... " >&6; }
2646ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2647
2648# The possible output files:
2649ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2650
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002651ac_rmfiles=
2652for ac_file in $ac_files
2653do
2654 case $ac_file in
Benny Prijonod4306432010-05-01 22:05:41 +00002655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002656 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2657 esac
2658done
2659rm -f $ac_rmfiles
2660
Benny Prijonod4306432010-05-01 22:05:41 +00002661if { { ac_try="$ac_link_default"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002662case "(($ac_try" in
2663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2665esac
Benny Prijonod4306432010-05-01 22:05:41 +00002666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2667$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002668 (eval "$ac_link_default") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002669 ac_status=$?
Benny Prijonod4306432010-05-01 22:05:41 +00002670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2671 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002672 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2673# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2674# in a Makefile. We should not override ac_cv_exeext if it was cached,
2675# so that the user can short-circuit this test for compilers unknown to
2676# Autoconf.
2677for ac_file in $ac_files ''
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002678do
2679 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002680 case $ac_file in
Benny Prijonod4306432010-05-01 22:05:41 +00002681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002682 ;;
2683 [ab].out )
2684 # We found the default executable, but exeext='' is most
2685 # certainly right.
2686 break;;
2687 *.* )
Benny Prijonod4306432010-05-01 22:05:41 +00002688 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002689 then :; else
2690 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2691 fi
2692 # We set ac_cv_exeext here because the later test for it is not
2693 # safe: cross compilers may not add the suffix if given an `-o'
2694 # argument, so we may need to know it at that point already.
2695 # Even if this section looks crufty: it has the advantage of
2696 # actually working.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002697 break;;
2698 * )
2699 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002700 esac
2701done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002702test "$ac_cv_exeext" = no && ac_cv_exeext=
2703
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002704else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002705 ac_file=''
2706fi
Benny Prijonod4306432010-05-01 22:05:41 +00002707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2708$as_echo "$ac_file" >&6; }
2709if test -z "$ac_file"; then :
2710 $as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002711sed 's/^/| /' conftest.$ac_ext >&5
2712
Benny Prijonod4306432010-05-01 22:05:41 +00002713{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2715{ as_fn_set_status 77
2716as_fn_error "C compiler cannot create executables
2717See \`config.log' for more details." "$LINENO" 5; }; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002718fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002719ac_exeext=$ac_cv_exeext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002720
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002721# Check that the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002722# the compiler is broken, or we cross compile.
Benny Prijonod4306432010-05-01 22:05:41 +00002723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2724$as_echo_n "checking whether the C compiler works... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002725# If not cross compiling, check that we can run a simple program.
2726if test "$cross_compiling" != yes; then
2727 if { ac_try='./$ac_file'
Benny Prijonod4306432010-05-01 22:05:41 +00002728 { { case "(($ac_try" in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731esac
Benny Prijonod4306432010-05-01 22:05:41 +00002732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2733$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002734 (eval "$ac_try") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002735 ac_status=$?
Benny Prijonod4306432010-05-01 22:05:41 +00002736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2737 test $ac_status = 0; }; }; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002738 cross_compiling=no
2739 else
2740 if test "$cross_compiling" = maybe; then
2741 cross_compiling=yes
2742 else
Benny Prijonod4306432010-05-01 22:05:41 +00002743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2745as_fn_error "cannot run C compiled programs.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002746If you meant to cross compile, use \`--host'.
Benny Prijonod4306432010-05-01 22:05:41 +00002747See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002748 fi
2749 fi
2750fi
Benny Prijonod4306432010-05-01 22:05:41 +00002751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2752$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002753
Benny Prijonod4306432010-05-01 22:05:41 +00002754rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002755ac_clean_files=$ac_clean_files_save
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002756# Check that the compiler produces executables we can run. If not, either
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002757# the compiler is broken, or we cross compile.
Benny Prijonod4306432010-05-01 22:05:41 +00002758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2759$as_echo_n "checking whether we are cross compiling... " >&6; }
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2761$as_echo "$cross_compiling" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002762
Benny Prijonod4306432010-05-01 22:05:41 +00002763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2764$as_echo_n "checking for suffix of executables... " >&6; }
2765if { { ac_try="$ac_link"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002766case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2769esac
Benny Prijonod4306432010-05-01 22:05:41 +00002770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2771$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002772 (eval "$ac_link") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002773 ac_status=$?
Benny Prijonod4306432010-05-01 22:05:41 +00002774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2775 test $ac_status = 0; }; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002776 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2777# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2778# work properly (i.e., refer to `conftest.exe'), while it won't with
2779# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002780for ac_file in conftest.exe conftest conftest.*; do
2781 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002782 case $ac_file in
Benny Prijonod4306432010-05-01 22:05:41 +00002783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002784 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002785 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002786 * ) break;;
2787 esac
2788done
2789else
Benny Prijonod4306432010-05-01 22:05:41 +00002790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2792as_fn_error "cannot compute suffix of executables: cannot compile and link
2793See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002794fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002795rm -f conftest$ac_cv_exeext
Benny Prijonod4306432010-05-01 22:05:41 +00002796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2797$as_echo "$ac_cv_exeext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002798
2799rm -f conftest.$ac_ext
2800EXEEXT=$ac_cv_exeext
2801ac_exeext=$EXEEXT
Benny Prijonod4306432010-05-01 22:05:41 +00002802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2803$as_echo_n "checking for suffix of object files... " >&6; }
2804if test "${ac_cv_objext+set}" = set; then :
2805 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002806else
Benny Prijonod4306432010-05-01 22:05:41 +00002807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002808/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002809
2810int
2811main ()
2812{
2813
2814 ;
2815 return 0;
2816}
2817_ACEOF
2818rm -f conftest.o conftest.obj
Benny Prijonod4306432010-05-01 22:05:41 +00002819if { { ac_try="$ac_compile"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002820case "(($ac_try" in
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2823esac
Benny Prijonod4306432010-05-01 22:05:41 +00002824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2825$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002826 (eval "$ac_compile") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002827 ac_status=$?
Benny Prijonod4306432010-05-01 22:05:41 +00002828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2829 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002830 for ac_file in conftest.o conftest.obj conftest.*; do
2831 test -f "$ac_file" || continue;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002832 case $ac_file in
Benny Prijonod4306432010-05-01 22:05:41 +00002833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002834 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2835 break;;
2836 esac
2837done
2838else
Benny Prijonod4306432010-05-01 22:05:41 +00002839 $as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002840sed 's/^/| /' conftest.$ac_ext >&5
2841
Benny Prijonod4306432010-05-01 22:05:41 +00002842{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2844as_fn_error "cannot compute suffix of object files: cannot compile
2845See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002846fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002847rm -f conftest.$ac_cv_objext conftest.$ac_ext
2848fi
Benny Prijonod4306432010-05-01 22:05:41 +00002849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2850$as_echo "$ac_cv_objext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002851OBJEXT=$ac_cv_objext
2852ac_objext=$OBJEXT
Benny Prijonod4306432010-05-01 22:05:41 +00002853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2854$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2855if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2856 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002857else
Benny Prijonod4306432010-05-01 22:05:41 +00002858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002859/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002860
2861int
2862main ()
2863{
2864#ifndef __GNUC__
2865 choke me
2866#endif
2867
2868 ;
2869 return 0;
2870}
2871_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00002872if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002873 ac_compiler_gnu=yes
2874else
Benny Prijonod4306432010-05-01 22:05:41 +00002875 ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002876fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002878ac_cv_c_compiler_gnu=$ac_compiler_gnu
2879
2880fi
Benny Prijonod4306432010-05-01 22:05:41 +00002881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2882$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2883if test $ac_compiler_gnu = yes; then
2884 GCC=yes
2885else
2886 GCC=
2887fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002888ac_test_CFLAGS=${CFLAGS+set}
2889ac_save_CFLAGS=$CFLAGS
Benny Prijonod4306432010-05-01 22:05:41 +00002890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2891$as_echo_n "checking whether $CC accepts -g... " >&6; }
2892if test "${ac_cv_prog_cc_g+set}" = set; then :
2893 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002894else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002895 ac_save_c_werror_flag=$ac_c_werror_flag
2896 ac_c_werror_flag=yes
2897 ac_cv_prog_cc_g=no
2898 CFLAGS="-g"
Benny Prijonod4306432010-05-01 22:05:41 +00002899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002900/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002901
2902int
2903main ()
2904{
2905
2906 ;
2907 return 0;
2908}
2909_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00002910if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002911 ac_cv_prog_cc_g=yes
2912else
Benny Prijonod4306432010-05-01 22:05:41 +00002913 CFLAGS=""
2914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002915/* end confdefs.h. */
2916
2917int
2918main ()
2919{
2920
2921 ;
2922 return 0;
2923}
2924_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00002925if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono46bd0842010-02-12 14:12:41 +00002926
Benny Prijonod4306432010-05-01 22:05:41 +00002927else
2928 ac_c_werror_flag=$ac_save_c_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002929 CFLAGS="-g"
Benny Prijonod4306432010-05-01 22:05:41 +00002930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002931/* end confdefs.h. */
2932
2933int
2934main ()
2935{
2936
2937 ;
2938 return 0;
2939}
2940_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00002941if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002942 ac_cv_prog_cc_g=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002943fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002945fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2947fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2949 ac_c_werror_flag=$ac_save_c_werror_flag
2950fi
Benny Prijonod4306432010-05-01 22:05:41 +00002951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2952$as_echo "$ac_cv_prog_cc_g" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002953if test "$ac_test_CFLAGS" = set; then
2954 CFLAGS=$ac_save_CFLAGS
2955elif test $ac_cv_prog_cc_g = yes; then
2956 if test "$GCC" = yes; then
2957 CFLAGS="-g -O2"
2958 else
2959 CFLAGS="-g"
2960 fi
2961else
2962 if test "$GCC" = yes; then
2963 CFLAGS="-O2"
2964 else
2965 CFLAGS=
2966 fi
2967fi
Benny Prijonod4306432010-05-01 22:05:41 +00002968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2969$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2970if test "${ac_cv_prog_cc_c89+set}" = set; then :
2971 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002972else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002973 ac_cv_prog_cc_c89=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002974ac_save_CC=$CC
Benny Prijonod4306432010-05-01 22:05:41 +00002975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002976/* end confdefs.h. */
2977#include <stdarg.h>
2978#include <stdio.h>
2979#include <sys/types.h>
2980#include <sys/stat.h>
2981/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2982struct buf { int x; };
2983FILE * (*rcsopen) (struct buf *, struct stat *, int);
2984static char *e (p, i)
2985 char **p;
2986 int i;
2987{
2988 return p[i];
2989}
2990static char *f (char * (*g) (char **, int), char **p, ...)
2991{
2992 char *s;
2993 va_list v;
2994 va_start (v,p);
2995 s = g (p, va_arg (v,int));
2996 va_end (v);
2997 return s;
2998}
2999
3000/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3001 function prototypes and stuff, but not '\xHH' hex character constants.
3002 These don't provoke an error unfortunately, instead are silently treated
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003003 as 'x'. The following induces an error, until -std is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003004 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3005 array size at least. It's necessary to write '\x00'==0 to get something
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003006 that's true only with -std. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003007int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3008
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003009/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3010 inside strings and character constants. */
3011#define FOO(x) 'x'
3012int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3013
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003014int test (int i, double x);
3015struct s1 {int (*f) (int a);};
3016struct s2 {int (*f) (double a);};
3017int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3018int argc;
3019char **argv;
3020int
3021main ()
3022{
3023return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3024 ;
3025 return 0;
3026}
3027_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003028for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3029 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003030do
3031 CC="$ac_save_CC $ac_arg"
Benny Prijonod4306432010-05-01 22:05:41 +00003032 if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003033 ac_cv_prog_cc_c89=$ac_arg
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003034fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003035rm -f core conftest.err conftest.$ac_objext
3036 test "x$ac_cv_prog_cc_c89" != "xno" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003037done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003038rm -f conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003039CC=$ac_save_CC
3040
3041fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003042# AC_CACHE_VAL
3043case "x$ac_cv_prog_cc_c89" in
3044 x)
Benny Prijonod4306432010-05-01 22:05:41 +00003045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3046$as_echo "none needed" >&6; } ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003047 xno)
Benny Prijonod4306432010-05-01 22:05:41 +00003048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3049$as_echo "unsupported" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003050 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003051 CC="$CC $ac_cv_prog_cc_c89"
Benny Prijonod4306432010-05-01 22:05:41 +00003052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3053$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003054esac
Benny Prijonod4306432010-05-01 22:05:41 +00003055if test "x$ac_cv_prog_cc_c89" != xno; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003056
Benny Prijonod4306432010-05-01 22:05:41 +00003057fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003058
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003059ac_ext=c
3060ac_cpp='$CPP $CPPFLAGS'
3061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3063ac_compiler_gnu=$ac_cv_c_compiler_gnu
3064
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003065ac_ext=cpp
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003066ac_cpp='$CXXCPP $CPPFLAGS'
3067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003070if test -z "$CXX"; then
3071 if test -n "$CCC"; then
3072 CXX=$CCC
3073 else
3074 if test -n "$ac_tool_prefix"; then
3075 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 +00003076 do
3077 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3078set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00003079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080$as_echo_n "checking for $ac_word... " >&6; }
3081if test "${ac_cv_prog_CXX+set}" = set; then :
3082 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003083else
3084 if test -n "$CXX"; then
3085 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3086else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088for as_dir in $PATH
3089do
3090 IFS=$as_save_IFS
3091 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00003092 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003093 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 +00003094 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Benny Prijonod4306432010-05-01 22:05:41 +00003095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003096 break 2
3097 fi
3098done
Benny Prijonod4306432010-05-01 22:05:41 +00003099 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003100IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003101
3102fi
3103fi
3104CXX=$ac_cv_prog_CXX
3105if test -n "$CXX"; then
Benny Prijonod4306432010-05-01 22:05:41 +00003106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3107$as_echo "$CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003108else
Benny Prijonod4306432010-05-01 22:05:41 +00003109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003111fi
3112
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003113
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003114 test -n "$CXX" && break
3115 done
3116fi
3117if test -z "$CXX"; then
3118 ac_ct_CXX=$CXX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003119 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 +00003120do
3121 # Extract the first word of "$ac_prog", so it can be a program name with args.
3122set dummy $ac_prog; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00003123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124$as_echo_n "checking for $ac_word... " >&6; }
3125if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003127else
3128 if test -n "$ac_ct_CXX"; then
3129 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3130else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00003136 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003137 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 +00003138 ac_cv_prog_ac_ct_CXX="$ac_prog"
Benny Prijonod4306432010-05-01 22:05:41 +00003139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003140 break 2
3141 fi
3142done
Benny Prijonod4306432010-05-01 22:05:41 +00003143 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003144IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003145
3146fi
3147fi
3148ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3149if test -n "$ac_ct_CXX"; then
Benny Prijonod4306432010-05-01 22:05:41 +00003150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3151$as_echo "$ac_ct_CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003152else
Benny Prijonod4306432010-05-01 22:05:41 +00003153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003155fi
3156
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003157
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003158 test -n "$ac_ct_CXX" && break
3159done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003160
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003161 if test "x$ac_ct_CXX" = x; then
3162 CXX="g++"
3163 else
3164 case $cross_compiling:$ac_tool_warned in
3165yes:)
Benny Prijonod4306432010-05-01 22:05:41 +00003166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003168ac_tool_warned=yes ;;
3169esac
3170 CXX=$ac_ct_CXX
3171 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003172fi
3173
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003174 fi
3175fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003176# Provide some information about the compiler.
Benny Prijonod4306432010-05-01 22:05:41 +00003177$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3178set X $ac_compile
3179ac_compiler=$2
3180for ac_option in --version -v -V -qversion; do
3181 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003182case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185esac
Benny Prijonod4306432010-05-01 22:05:41 +00003186eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187$as_echo "$ac_try_echo"; } >&5
3188 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003189 ac_status=$?
Benny Prijonod4306432010-05-01 22:05:41 +00003190 if test -s conftest.err; then
3191 sed '10a\
3192... rest of stderr output deleted ...
3193 10q' conftest.err >conftest.er1
3194 cat conftest.er1 >&5
3195 rm -f conftest.er1 conftest.err
3196 fi
3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198 test $ac_status = 0; }
3199done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003200
Benny Prijonod4306432010-05-01 22:05:41 +00003201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3202$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3203if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3204 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003205else
Benny Prijonod4306432010-05-01 22:05:41 +00003206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003207/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003208
3209int
3210main ()
3211{
3212#ifndef __GNUC__
3213 choke me
3214#endif
3215
3216 ;
3217 return 0;
3218}
3219_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003220if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003221 ac_compiler_gnu=yes
3222else
Benny Prijonod4306432010-05-01 22:05:41 +00003223 ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003224fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003226ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3227
3228fi
Benny Prijonod4306432010-05-01 22:05:41 +00003229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3230$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3231if test $ac_compiler_gnu = yes; then
3232 GXX=yes
3233else
3234 GXX=
3235fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003236ac_test_CXXFLAGS=${CXXFLAGS+set}
3237ac_save_CXXFLAGS=$CXXFLAGS
Benny Prijonod4306432010-05-01 22:05:41 +00003238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3239$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3240if test "${ac_cv_prog_cxx_g+set}" = set; then :
3241 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003242else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003243 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3244 ac_cxx_werror_flag=yes
3245 ac_cv_prog_cxx_g=no
3246 CXXFLAGS="-g"
Benny Prijonod4306432010-05-01 22:05:41 +00003247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003248/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003249
3250int
3251main ()
3252{
3253
3254 ;
3255 return 0;
3256}
3257_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003258if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003259 ac_cv_prog_cxx_g=yes
3260else
Benny Prijonod4306432010-05-01 22:05:41 +00003261 CXXFLAGS=""
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003263/* end confdefs.h. */
3264
3265int
3266main ()
3267{
3268
3269 ;
3270 return 0;
3271}
3272_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003273if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijono46bd0842010-02-12 14:12:41 +00003274
Benny Prijonod4306432010-05-01 22:05:41 +00003275else
3276 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003277 CXXFLAGS="-g"
Benny Prijonod4306432010-05-01 22:05:41 +00003278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003279/* end confdefs.h. */
3280
3281int
3282main ()
3283{
3284
3285 ;
3286 return 0;
3287}
3288_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003289if ac_fn_cxx_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003290 ac_cv_prog_cxx_g=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003291fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003293fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3298fi
Benny Prijonod4306432010-05-01 22:05:41 +00003299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3300$as_echo "$ac_cv_prog_cxx_g" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003301if test "$ac_test_CXXFLAGS" = set; then
3302 CXXFLAGS=$ac_save_CXXFLAGS
3303elif test $ac_cv_prog_cxx_g = yes; then
3304 if test "$GXX" = yes; then
3305 CXXFLAGS="-g -O2"
3306 else
3307 CXXFLAGS="-g"
3308 fi
3309else
3310 if test "$GXX" = yes; then
3311 CXXFLAGS="-O2"
3312 else
3313 CXXFLAGS=
3314 fi
3315fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003316ac_ext=c
3317ac_cpp='$CPP $CPPFLAGS'
3318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003322ac_ext=c
3323ac_cpp='$CPP $CPPFLAGS'
3324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003328
3329
Benny Prijono0822c192008-08-21 20:59:58 +00003330
Benny Prijono53847a32007-09-24 16:10:13 +00003331case $target in
3332 *mingw* | *cygw* | *win32* | *w32* )
3333 ac_pjdir=`pwd -W`
3334 ;;
3335 *)
3336 ac_pjdir=`pwd`
3337 ;;
3338esac
Benny Prijono12483112007-03-12 10:44:38 +00003339
3340
Benny Prijonod4306432010-05-01 22:05:41 +00003341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
3342$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
3343if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
3344 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003345else
3346 ac_check_lib_save_LIBS=$LIBS
3347LIBS="-lpthread $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003349/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003350
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003351/* Override any GCC internal prototype to avoid an error.
3352 Use char because int might match the return type of a GCC
3353 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003354#ifdef __cplusplus
3355extern "C"
3356#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003357char pthread_create ();
3358int
3359main ()
3360{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003361return pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003362 ;
3363 return 0;
3364}
3365_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003366if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003367 ac_cv_lib_pthread_pthread_create=yes
3368else
Benny Prijonod4306432010-05-01 22:05:41 +00003369 ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003370fi
Benny Prijonod4306432010-05-01 22:05:41 +00003371rm -f core conftest.err conftest.$ac_objext \
3372 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003373LIBS=$ac_check_lib_save_LIBS
3374fi
Benny Prijonod4306432010-05-01 22:05:41 +00003375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
3376$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
3377if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003378 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003379#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003380_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003381
3382 LIBS="-lpthread $LIBS"
3383
3384fi
3385
Benny Prijonod4306432010-05-01 22:05:41 +00003386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5
3387$as_echo_n "checking for puts in -lwsock32... " >&6; }
3388if test "${ac_cv_lib_wsock32_puts+set}" = set; then :
3389 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003390else
3391 ac_check_lib_save_LIBS=$LIBS
3392LIBS="-lwsock32 $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003394/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003395
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003396/* Override any GCC internal prototype to avoid an error.
3397 Use char because int might match the return type of a GCC
3398 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003399#ifdef __cplusplus
3400extern "C"
3401#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003402char puts ();
3403int
3404main ()
3405{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003406return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003407 ;
3408 return 0;
3409}
3410_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003411if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003412 ac_cv_lib_wsock32_puts=yes
3413else
Benny Prijonod4306432010-05-01 22:05:41 +00003414 ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003415fi
Benny Prijonod4306432010-05-01 22:05:41 +00003416rm -f core conftest.err conftest.$ac_objext \
3417 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003418LIBS=$ac_check_lib_save_LIBS
3419fi
Benny Prijonod4306432010-05-01 22:05:41 +00003420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5
3421$as_echo "$ac_cv_lib_wsock32_puts" >&6; }
3422if test "x$ac_cv_lib_wsock32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003423 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003424#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003425_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003426
3427 LIBS="-lwsock32 $LIBS"
3428
3429fi
3430
Benny Prijonod4306432010-05-01 22:05:41 +00003431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5
3432$as_echo_n "checking for puts in -lws2_32... " >&6; }
3433if test "${ac_cv_lib_ws2_32_puts+set}" = set; then :
3434 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003435else
3436 ac_check_lib_save_LIBS=$LIBS
3437LIBS="-lws2_32 $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003439/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003440
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003441/* Override any GCC internal prototype to avoid an error.
3442 Use char because int might match the return type of a GCC
3443 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003444#ifdef __cplusplus
3445extern "C"
3446#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003447char puts ();
3448int
3449main ()
3450{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003451return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003452 ;
3453 return 0;
3454}
3455_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003456if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003457 ac_cv_lib_ws2_32_puts=yes
3458else
Benny Prijonod4306432010-05-01 22:05:41 +00003459 ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003460fi
Benny Prijonod4306432010-05-01 22:05:41 +00003461rm -f core conftest.err conftest.$ac_objext \
3462 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003463LIBS=$ac_check_lib_save_LIBS
3464fi
Benny Prijonod4306432010-05-01 22:05:41 +00003465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5
3466$as_echo "$ac_cv_lib_ws2_32_puts" >&6; }
3467if test "x$ac_cv_lib_ws2_32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003468 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003469#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003470_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003471
3472 LIBS="-lws2_32 $LIBS"
3473
3474fi
3475
Benny Prijonod4306432010-05-01 22:05:41 +00003476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5
3477$as_echo_n "checking for puts in -lole32... " >&6; }
3478if test "${ac_cv_lib_ole32_puts+set}" = set; then :
3479 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003480else
3481 ac_check_lib_save_LIBS=$LIBS
3482LIBS="-lole32 $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003484/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003485
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003486/* Override any GCC internal prototype to avoid an error.
3487 Use char because int might match the return type of a GCC
3488 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003489#ifdef __cplusplus
3490extern "C"
3491#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003492char puts ();
3493int
3494main ()
3495{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003496return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003497 ;
3498 return 0;
3499}
3500_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003501if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003502 ac_cv_lib_ole32_puts=yes
3503else
Benny Prijonod4306432010-05-01 22:05:41 +00003504 ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003505fi
Benny Prijonod4306432010-05-01 22:05:41 +00003506rm -f core conftest.err conftest.$ac_objext \
3507 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003508LIBS=$ac_check_lib_save_LIBS
3509fi
Benny Prijonod4306432010-05-01 22:05:41 +00003510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5
3511$as_echo "$ac_cv_lib_ole32_puts" >&6; }
3512if test "x$ac_cv_lib_ole32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003513 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003514#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003515_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003516
3517 LIBS="-lole32 $LIBS"
3518
3519fi
3520
Benny Prijonod4306432010-05-01 22:05:41 +00003521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5
3522$as_echo_n "checking for puts in -lwinmm... " >&6; }
3523if test "${ac_cv_lib_winmm_puts+set}" = set; then :
3524 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003525else
3526 ac_check_lib_save_LIBS=$LIBS
3527LIBS="-lwinmm $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003529/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003530
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003531/* Override any GCC internal prototype to avoid an error.
3532 Use char because int might match the return type of a GCC
3533 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003534#ifdef __cplusplus
3535extern "C"
3536#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003537char puts ();
3538int
3539main ()
3540{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003541return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003542 ;
3543 return 0;
3544}
3545_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003546if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003547 ac_cv_lib_winmm_puts=yes
3548else
Benny Prijonod4306432010-05-01 22:05:41 +00003549 ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003550fi
Benny Prijonod4306432010-05-01 22:05:41 +00003551rm -f core conftest.err conftest.$ac_objext \
3552 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003553LIBS=$ac_check_lib_save_LIBS
3554fi
Benny Prijonod4306432010-05-01 22:05:41 +00003555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5
3556$as_echo "$ac_cv_lib_winmm_puts" >&6; }
3557if test "x$ac_cv_lib_winmm_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003558 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003559#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003560_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003561
3562 LIBS="-lwinmm $LIBS"
3563
3564fi
3565
Benny Prijonod4306432010-05-01 22:05:41 +00003566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5
3567$as_echo_n "checking for puts in -lsocket... " >&6; }
3568if test "${ac_cv_lib_socket_puts+set}" = set; then :
3569 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003570else
3571 ac_check_lib_save_LIBS=$LIBS
3572LIBS="-lsocket $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003574/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003575
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003576/* Override any GCC internal prototype to avoid an error.
3577 Use char because int might match the return type of a GCC
3578 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003579#ifdef __cplusplus
3580extern "C"
3581#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003582char puts ();
3583int
3584main ()
3585{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003586return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003587 ;
3588 return 0;
3589}
3590_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003591if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003592 ac_cv_lib_socket_puts=yes
3593else
Benny Prijonod4306432010-05-01 22:05:41 +00003594 ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003595fi
Benny Prijonod4306432010-05-01 22:05:41 +00003596rm -f core conftest.err conftest.$ac_objext \
3597 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003598LIBS=$ac_check_lib_save_LIBS
3599fi
Benny Prijonod4306432010-05-01 22:05:41 +00003600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5
3601$as_echo "$ac_cv_lib_socket_puts" >&6; }
3602if test "x$ac_cv_lib_socket_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003603 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003604#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003605_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003606
3607 LIBS="-lsocket $LIBS"
3608
3609fi
3610
Benny Prijonod4306432010-05-01 22:05:41 +00003611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5
3612$as_echo_n "checking for puts in -lrt... " >&6; }
3613if test "${ac_cv_lib_rt_puts+set}" = set; then :
3614 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003615else
3616 ac_check_lib_save_LIBS=$LIBS
3617LIBS="-lrt $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003619/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003620
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003621/* Override any GCC internal prototype to avoid an error.
3622 Use char because int might match the return type of a GCC
3623 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003624#ifdef __cplusplus
3625extern "C"
3626#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003627char puts ();
3628int
3629main ()
3630{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003631return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003632 ;
3633 return 0;
3634}
3635_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003636if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003637 ac_cv_lib_rt_puts=yes
3638else
Benny Prijonod4306432010-05-01 22:05:41 +00003639 ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003640fi
Benny Prijonod4306432010-05-01 22:05:41 +00003641rm -f core conftest.err conftest.$ac_objext \
3642 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003643LIBS=$ac_check_lib_save_LIBS
3644fi
Benny Prijonod4306432010-05-01 22:05:41 +00003645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5
3646$as_echo "$ac_cv_lib_rt_puts" >&6; }
3647if test "x$ac_cv_lib_rt_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003648 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003649#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003650_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003651
3652 LIBS="-lrt $LIBS"
3653
3654fi
3655
Benny Prijonod4306432010-05-01 22:05:41 +00003656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5
3657$as_echo_n "checking for puts in -lnsl... " >&6; }
3658if test "${ac_cv_lib_nsl_puts+set}" = set; then :
3659 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003660else
3661 ac_check_lib_save_LIBS=$LIBS
3662LIBS="-lnsl $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003664/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003665
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003666/* Override any GCC internal prototype to avoid an error.
3667 Use char because int might match the return type of a GCC
3668 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003669#ifdef __cplusplus
3670extern "C"
3671#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003672char puts ();
3673int
3674main ()
3675{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003676return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003677 ;
3678 return 0;
3679}
3680_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003681if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003682 ac_cv_lib_nsl_puts=yes
3683else
Benny Prijonod4306432010-05-01 22:05:41 +00003684 ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003685fi
Benny Prijonod4306432010-05-01 22:05:41 +00003686rm -f core conftest.err conftest.$ac_objext \
3687 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003688LIBS=$ac_check_lib_save_LIBS
3689fi
Benny Prijonod4306432010-05-01 22:05:41 +00003690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5
3691$as_echo "$ac_cv_lib_nsl_puts" >&6; }
3692if test "x$ac_cv_lib_nsl_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003693 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003694#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003695_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003696
3697 LIBS="-lnsl $LIBS"
3698
3699fi
3700
Benny Prijonod4306432010-05-01 22:05:41 +00003701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3702$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3703if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
3704 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003705else
3706 ac_check_lib_save_LIBS=$LIBS
3707LIBS="-luuid $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003709/* end confdefs.h. */
3710
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003711/* Override any GCC internal prototype to avoid an error.
3712 Use char because int might match the return type of a GCC
3713 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003714#ifdef __cplusplus
3715extern "C"
3716#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003717char uuid_generate ();
3718int
3719main ()
3720{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003721return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003722 ;
3723 return 0;
3724}
3725_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003726if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003727 ac_cv_lib_uuid_uuid_generate=yes
3728else
Benny Prijonod4306432010-05-01 22:05:41 +00003729 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003730fi
Benny Prijonod4306432010-05-01 22:05:41 +00003731rm -f core conftest.err conftest.$ac_objext \
3732 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003733LIBS=$ac_check_lib_save_LIBS
3734fi
Benny Prijonod4306432010-05-01 22:05:41 +00003735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3736$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
3737if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003738 cat >>confdefs.h <<_ACEOF
3739#define HAVE_LIBUUID 1
3740_ACEOF
3741
3742 LIBS="-luuid $LIBS"
3743
3744fi
3745
Benny Prijonod4306432010-05-01 22:05:41 +00003746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3747$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3748if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
3749 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003750else
3751 ac_check_lib_save_LIBS=$LIBS
3752LIBS="-luuid $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003754/* end confdefs.h. */
3755
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003756/* Override any GCC internal prototype to avoid an error.
3757 Use char because int might match the return type of a GCC
3758 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003759#ifdef __cplusplus
3760extern "C"
3761#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003762char uuid_generate ();
3763int
3764main ()
3765{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003766return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003767 ;
3768 return 0;
3769}
3770_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003771if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003772 ac_cv_lib_uuid_uuid_generate=yes
3773else
Benny Prijonod4306432010-05-01 22:05:41 +00003774 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003775fi
Benny Prijonod4306432010-05-01 22:05:41 +00003776rm -f core conftest.err conftest.$ac_objext \
3777 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003778LIBS=$ac_check_lib_save_LIBS
3779fi
Benny Prijonod4306432010-05-01 22:05:41 +00003780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3781$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
3782if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003783 ac_has_uuid_lib=1
3784fi
3785
3786
Benny Prijonod4306432010-05-01 22:05:41 +00003787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5
3788$as_echo "Setting PJ_M_NAME to $target_cpu" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003789cat >>confdefs.h <<_ACEOF
3790#define PJ_M_NAME "$target_cpu"
3791_ACEOF
3792
3793
Benny Prijonod4306432010-05-01 22:05:41 +00003794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5
3795$as_echo_n "checking memory alignment... " >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003796case $target in
3797 ia64-* | x86_64-* )
Benny Prijonod4306432010-05-01 22:05:41 +00003798 $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00003799
Benny Prijonod4306432010-05-01 22:05:41 +00003800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5
3801$as_echo "8 bytes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003802 ;;
3803 * )
Benny Prijonod4306432010-05-01 22:05:41 +00003804 $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00003805
Benny Prijonod4306432010-05-01 22:05:41 +00003806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5
3807$as_echo "4 bytes (default)" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003808 ;;
3809esac
3810
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003811
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003812ac_ext=c
3813ac_cpp='$CPP $CPPFLAGS'
3814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3816ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijonod4306432010-05-01 22:05:41 +00003817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3818$as_echo_n "checking how to run the C preprocessor... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003819# On Suns, sometimes $CPP names a directory.
3820if test -n "$CPP" && test -d "$CPP"; then
3821 CPP=
3822fi
3823if test -z "$CPP"; then
Benny Prijonod4306432010-05-01 22:05:41 +00003824 if test "${ac_cv_prog_CPP+set}" = set; then :
3825 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003826else
3827 # Double quotes because CPP needs to be expanded
3828 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3829 do
3830 ac_preproc_ok=false
3831for ac_c_preproc_warn_flag in '' yes
3832do
3833 # Use a header file that comes with gcc, so configuring glibc
3834 # with a fresh cross-compiler works.
3835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3836 # <limits.h> exists even on freestanding compilers.
3837 # On the NeXT, cc -E runs the code through the compiler's parser,
3838 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijonod4306432010-05-01 22:05:41 +00003839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003840/* end confdefs.h. */
3841#ifdef __STDC__
3842# include <limits.h>
3843#else
3844# include <assert.h>
3845#endif
3846 Syntax error
3847_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003848if ac_fn_c_try_cpp "$LINENO"; then :
Benny Prijono46bd0842010-02-12 14:12:41 +00003849
Benny Prijonod4306432010-05-01 22:05:41 +00003850else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003851 # Broken: fails on valid input.
3852continue
3853fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003854rm -f conftest.err conftest.$ac_ext
3855
3856 # OK, works on sane cases. Now check whether nonexistent headers
3857 # can be detected and how.
Benny Prijonod4306432010-05-01 22:05:41 +00003858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003859/* end confdefs.h. */
3860#include <ac_nonexistent.h>
3861_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003862if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003863 # Broken: success on invalid input.
3864continue
3865else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003866 # Passes both tests.
3867ac_preproc_ok=:
3868break
3869fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003870rm -f conftest.err conftest.$ac_ext
3871
3872done
3873# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3874rm -f conftest.err conftest.$ac_ext
Benny Prijonod4306432010-05-01 22:05:41 +00003875if $ac_preproc_ok; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003876 break
3877fi
3878
3879 done
3880 ac_cv_prog_CPP=$CPP
3881
3882fi
3883 CPP=$ac_cv_prog_CPP
3884else
3885 ac_cv_prog_CPP=$CPP
3886fi
Benny Prijonod4306432010-05-01 22:05:41 +00003887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3888$as_echo "$CPP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003889ac_preproc_ok=false
3890for ac_c_preproc_warn_flag in '' yes
3891do
3892 # Use a header file that comes with gcc, so configuring glibc
3893 # with a fresh cross-compiler works.
3894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3895 # <limits.h> exists even on freestanding compilers.
3896 # On the NeXT, cc -E runs the code through the compiler's parser,
3897 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijonod4306432010-05-01 22:05:41 +00003898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003899/* end confdefs.h. */
3900#ifdef __STDC__
3901# include <limits.h>
3902#else
3903# include <assert.h>
3904#endif
3905 Syntax error
3906_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003907if ac_fn_c_try_cpp "$LINENO"; then :
Benny Prijono46bd0842010-02-12 14:12:41 +00003908
Benny Prijonod4306432010-05-01 22:05:41 +00003909else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003910 # Broken: fails on valid input.
3911continue
3912fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003913rm -f conftest.err conftest.$ac_ext
3914
3915 # OK, works on sane cases. Now check whether nonexistent headers
3916 # can be detected and how.
Benny Prijonod4306432010-05-01 22:05:41 +00003917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003918/* end confdefs.h. */
3919#include <ac_nonexistent.h>
3920_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003921if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003922 # Broken: success on invalid input.
3923continue
3924else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003925 # Passes both tests.
3926ac_preproc_ok=:
3927break
3928fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003929rm -f conftest.err conftest.$ac_ext
3930
3931done
3932# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3933rm -f conftest.err conftest.$ac_ext
Benny Prijonod4306432010-05-01 22:05:41 +00003934if $ac_preproc_ok; then :
3935
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003936else
Benny Prijonod4306432010-05-01 22:05:41 +00003937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3939as_fn_error "C preprocessor \"$CPP\" fails sanity check
3940See \`config.log' for more details." "$LINENO" 5; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003941fi
3942
3943ac_ext=c
3944ac_cpp='$CPP $CPPFLAGS'
3945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947ac_compiler_gnu=$ac_cv_c_compiler_gnu
3948
3949
Benny Prijonod4306432010-05-01 22:05:41 +00003950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3951$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3952if test "${ac_cv_path_GREP+set}" = set; then :
3953 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003954else
Benny Prijonod4306432010-05-01 22:05:41 +00003955 if test -z "$GREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003956 ac_path_GREP_found=false
Benny Prijonod4306432010-05-01 22:05:41 +00003957 # Loop through the user's path and test for each of PROGNAME-LIST
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003959for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3960do
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00003963 for ac_prog in grep ggrep; do
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3966 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3967# Check for GNU ac_path_GREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003968 # Check for GNU $ac_path_GREP
3969case `"$ac_path_GREP" --version 2>&1` in
3970*GNU*)
3971 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3972*)
3973 ac_count=0
Benny Prijonod4306432010-05-01 22:05:41 +00003974 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003975 while :
3976 do
3977 cat "conftest.in" "conftest.in" >"conftest.tmp"
3978 mv "conftest.tmp" "conftest.in"
3979 cp "conftest.in" "conftest.nl"
Benny Prijonod4306432010-05-01 22:05:41 +00003980 $as_echo 'GREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003981 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijonod4306432010-05-01 22:05:41 +00003983 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003984 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3985 # Best one so far, save it but keep looking for a better one
3986 ac_cv_path_GREP="$ac_path_GREP"
3987 ac_path_GREP_max=$ac_count
3988 fi
3989 # 10*(2^10) chars as input seems more than enough
3990 test $ac_count -gt 10 && break
3991 done
3992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3993esac
3994
Benny Prijonod4306432010-05-01 22:05:41 +00003995 $ac_path_GREP_found && break 3
3996 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003997 done
Benny Prijonod4306432010-05-01 22:05:41 +00003998 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003999IFS=$as_save_IFS
Benny Prijonod4306432010-05-01 22:05:41 +00004000 if test -z "$ac_cv_path_GREP"; then
4001 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4002 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004003else
4004 ac_cv_path_GREP=$GREP
4005fi
4006
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004007fi
Benny Prijonod4306432010-05-01 22:05:41 +00004008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4009$as_echo "$ac_cv_path_GREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004010 GREP="$ac_cv_path_GREP"
4011
4012
Benny Prijonod4306432010-05-01 22:05:41 +00004013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4014$as_echo_n "checking for egrep... " >&6; }
4015if test "${ac_cv_path_EGREP+set}" = set; then :
4016 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004017else
4018 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4019 then ac_cv_path_EGREP="$GREP -E"
4020 else
Benny Prijonod4306432010-05-01 22:05:41 +00004021 if test -z "$EGREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004022 ac_path_EGREP_found=false
Benny Prijonod4306432010-05-01 22:05:41 +00004023 # Loop through the user's path and test for each of PROGNAME-LIST
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004025for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4026do
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00004029 for ac_prog in egrep; do
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4032 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4033# Check for GNU ac_path_EGREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004034 # Check for GNU $ac_path_EGREP
4035case `"$ac_path_EGREP" --version 2>&1` in
4036*GNU*)
4037 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4038*)
4039 ac_count=0
Benny Prijonod4306432010-05-01 22:05:41 +00004040 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004041 while :
4042 do
4043 cat "conftest.in" "conftest.in" >"conftest.tmp"
4044 mv "conftest.tmp" "conftest.in"
4045 cp "conftest.in" "conftest.nl"
Benny Prijonod4306432010-05-01 22:05:41 +00004046 $as_echo 'EGREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004047 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijonod4306432010-05-01 22:05:41 +00004049 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004050 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4051 # Best one so far, save it but keep looking for a better one
4052 ac_cv_path_EGREP="$ac_path_EGREP"
4053 ac_path_EGREP_max=$ac_count
4054 fi
4055 # 10*(2^10) chars as input seems more than enough
4056 test $ac_count -gt 10 && break
4057 done
4058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4059esac
4060
Benny Prijonod4306432010-05-01 22:05:41 +00004061 $ac_path_EGREP_found && break 3
4062 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004063 done
Benny Prijonod4306432010-05-01 22:05:41 +00004064 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004065IFS=$as_save_IFS
Benny Prijonod4306432010-05-01 22:05:41 +00004066 if test -z "$ac_cv_path_EGREP"; then
4067 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4068 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004069else
4070 ac_cv_path_EGREP=$EGREP
4071fi
4072
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004073 fi
4074fi
Benny Prijonod4306432010-05-01 22:05:41 +00004075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4076$as_echo "$ac_cv_path_EGREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004077 EGREP="$ac_cv_path_EGREP"
4078
4079
Benny Prijonod4306432010-05-01 22:05:41 +00004080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4081$as_echo_n "checking for ANSI C header files... " >&6; }
4082if test "${ac_cv_header_stdc+set}" = set; then :
4083 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004084else
Benny Prijonod4306432010-05-01 22:05:41 +00004085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004086/* end confdefs.h. */
4087#include <stdlib.h>
4088#include <stdarg.h>
4089#include <string.h>
4090#include <float.h>
4091
4092int
4093main ()
4094{
4095
4096 ;
4097 return 0;
4098}
4099_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004100if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004101 ac_cv_header_stdc=yes
4102else
Benny Prijonod4306432010-05-01 22:05:41 +00004103 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004104fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106
4107if test $ac_cv_header_stdc = yes; then
4108 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Benny Prijonod4306432010-05-01 22:05:41 +00004109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004110/* end confdefs.h. */
4111#include <string.h>
4112
4113_ACEOF
4114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijonod4306432010-05-01 22:05:41 +00004115 $EGREP "memchr" >/dev/null 2>&1; then :
4116
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004117else
4118 ac_cv_header_stdc=no
4119fi
4120rm -f conftest*
4121
4122fi
4123
4124if test $ac_cv_header_stdc = yes; then
4125 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Benny Prijonod4306432010-05-01 22:05:41 +00004126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004127/* end confdefs.h. */
4128#include <stdlib.h>
4129
4130_ACEOF
4131if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijonod4306432010-05-01 22:05:41 +00004132 $EGREP "free" >/dev/null 2>&1; then :
4133
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004134else
4135 ac_cv_header_stdc=no
4136fi
4137rm -f conftest*
4138
4139fi
4140
4141if test $ac_cv_header_stdc = yes; then
4142 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Benny Prijonod4306432010-05-01 22:05:41 +00004143 if test "$cross_compiling" = yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004144 :
4145else
Benny Prijonod4306432010-05-01 22:05:41 +00004146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004147/* end confdefs.h. */
4148#include <ctype.h>
4149#include <stdlib.h>
4150#if ((' ' & 0x0FF) == 0x020)
4151# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4152# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4153#else
4154# define ISLOWER(c) \
4155 (('a' <= (c) && (c) <= 'i') \
4156 || ('j' <= (c) && (c) <= 'r') \
4157 || ('s' <= (c) && (c) <= 'z'))
4158# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4159#endif
4160
4161#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4162int
4163main ()
4164{
4165 int i;
4166 for (i = 0; i < 256; i++)
4167 if (XOR (islower (i), ISLOWER (i))
4168 || toupper (i) != TOUPPER (i))
4169 return 2;
4170 return 0;
4171}
4172_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004173if ac_fn_c_try_run "$LINENO"; then :
4174
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004175else
Benny Prijonod4306432010-05-01 22:05:41 +00004176 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004177fi
Benny Prijonod4306432010-05-01 22:05:41 +00004178rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4179 conftest.$ac_objext conftest.beam conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004180fi
4181
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004182fi
4183fi
Benny Prijonod4306432010-05-01 22:05:41 +00004184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4185$as_echo "$ac_cv_header_stdc" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004186if test $ac_cv_header_stdc = yes; then
4187
Benny Prijonod4306432010-05-01 22:05:41 +00004188$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004189
4190fi
4191
4192# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004193for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4194 inttypes.h stdint.h unistd.h
Benny Prijonod4306432010-05-01 22:05:41 +00004195do :
4196 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4197ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4198"
4199eval as_val=\$$as_ac_Header
4200 if test "x$as_val" = x""yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004201 cat >>confdefs.h <<_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004202#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004203_ACEOF
4204
4205fi
4206
4207done
4208
4209
Benny Prijonod4306432010-05-01 22:05:41 +00004210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4211$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4212if test "${ac_cv_c_bigendian+set}" = set; then :
4213 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004214else
Benny Prijonod4306432010-05-01 22:05:41 +00004215 ac_cv_c_bigendian=unknown
4216 # See if we're dealing with a universal compiler.
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218/* end confdefs.h. */
4219#ifndef __APPLE_CC__
4220 not a universal capable compiler
4221 #endif
4222 typedef int dummy;
4223
Benny Prijonod5233702010-01-13 13:09:45 +00004224_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004225if ac_fn_c_try_compile "$LINENO"; then :
4226
4227 # Check for potential -arch flags. It is not universal unless
4228 # there are at least two -arch flags with different values.
4229 ac_arch=
4230 ac_prev=
4231 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4232 if test -n "$ac_prev"; then
4233 case $ac_word in
4234 i?86 | x86_64 | ppc | ppc64)
4235 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4236 ac_arch=$ac_word
4237 else
4238 ac_cv_c_bigendian=universal
4239 break
4240 fi
4241 ;;
4242 esac
4243 ac_prev=
4244 elif test "x$ac_word" = "x-arch"; then
4245 ac_prev=arch
4246 fi
4247 done
4248fi
4249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4250 if test $ac_cv_c_bigendian = unknown; then
4251 # See if sys/param.h defines the BYTE_ORDER macro.
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004253/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004254#include <sys/types.h>
Benny Prijonod4306432010-05-01 22:05:41 +00004255 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004256
4257int
4258main ()
4259{
Benny Prijonod4306432010-05-01 22:05:41 +00004260#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4261 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4262 && LITTLE_ENDIAN)
4263 bogus endian macros
4264 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004265
4266 ;
4267 return 0;
4268}
4269_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004270if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004271 # It does; now see whether it defined to BIG_ENDIAN or not.
Benny Prijonod4306432010-05-01 22:05:41 +00004272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004273/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004274#include <sys/types.h>
Benny Prijonod4306432010-05-01 22:05:41 +00004275 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004276
4277int
4278main ()
4279{
4280#if BYTE_ORDER != BIG_ENDIAN
Benny Prijonod4306432010-05-01 22:05:41 +00004281 not big endian
4282 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004283
4284 ;
4285 return 0;
4286}
4287_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004288if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004289 ac_cv_c_bigendian=yes
4290else
Benny Prijonod4306432010-05-01 22:05:41 +00004291 ac_cv_c_bigendian=no
Benny Prijono46bd0842010-02-12 14:12:41 +00004292fi
Benny Prijono46bd0842010-02-12 14:12:41 +00004293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonod4306432010-05-01 22:05:41 +00004294fi
4295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 fi
4297 if test $ac_cv_c_bigendian = unknown; then
4298 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono46bd0842010-02-12 14:12:41 +00004300/* end confdefs.h. */
Benny Prijonod4306432010-05-01 22:05:41 +00004301#include <limits.h>
4302
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004303int
4304main ()
4305{
Benny Prijonod4306432010-05-01 22:05:41 +00004306#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4307 bogus endian macros
4308 #endif
4309
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004310 ;
4311 return 0;
4312}
4313_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004314if ac_fn_c_try_compile "$LINENO"; then :
4315 # It does; now see whether it defined to _BIG_ENDIAN or not.
4316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317/* end confdefs.h. */
4318#include <limits.h>
4319
4320int
4321main ()
4322{
4323#ifndef _BIG_ENDIAN
4324 not big endian
4325 #endif
4326
4327 ;
4328 return 0;
4329}
4330_ACEOF
4331if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004332 ac_cv_c_bigendian=yes
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004333else
Benny Prijonod4306432010-05-01 22:05:41 +00004334 ac_cv_c_bigendian=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004335fi
Benny Prijonod4306432010-05-01 22:05:41 +00004336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337fi
4338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339 fi
4340 if test $ac_cv_c_bigendian = unknown; then
4341 # Compile a test program.
4342 if test "$cross_compiling" = yes; then :
4343 # Try to guess by grepping values from an object file.
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345/* end confdefs.h. */
4346short int ascii_mm[] =
4347 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4348 short int ascii_ii[] =
4349 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4350 int use_ascii (int i) {
4351 return ascii_mm[i] + ascii_ii[i];
4352 }
4353 short int ebcdic_ii[] =
4354 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4355 short int ebcdic_mm[] =
4356 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4357 int use_ebcdic (int i) {
4358 return ebcdic_mm[i] + ebcdic_ii[i];
4359 }
4360 extern int foo;
Benny Prijono46bd0842010-02-12 14:12:41 +00004361
Benny Prijonod4306432010-05-01 22:05:41 +00004362int
4363main ()
4364{
4365return use_ascii (foo) == use_ebcdic (foo);
4366 ;
4367 return 0;
4368}
4369_ACEOF
4370if ac_fn_c_try_compile "$LINENO"; then :
4371 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4372 ac_cv_c_bigendian=yes
4373 fi
4374 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4375 if test "$ac_cv_c_bigendian" = unknown; then
4376 ac_cv_c_bigendian=no
4377 else
4378 # finding both strings is unlikely to happen, but who knows?
4379 ac_cv_c_bigendian=unknown
4380 fi
4381 fi
4382fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004384else
Benny Prijonod4306432010-05-01 22:05:41 +00004385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004386/* end confdefs.h. */
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004387$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004388int
4389main ()
4390{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004391
Benny Prijonod4306432010-05-01 22:05:41 +00004392 /* Are we little or big endian? From Harbison&Steele. */
4393 union
4394 {
4395 long int l;
4396 char c[sizeof (long int)];
4397 } u;
4398 u.l = 1;
4399 return u.c[sizeof (long int) - 1] == 1;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004400
4401 ;
4402 return 0;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004403}
4404_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004405if ac_fn_c_try_run "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004406 ac_cv_c_bigendian=no
4407else
Benny Prijonod4306432010-05-01 22:05:41 +00004408 ac_cv_c_bigendian=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004409fi
Benny Prijonod4306432010-05-01 22:05:41 +00004410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4411 conftest.$ac_objext conftest.beam conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004412fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004413
Benny Prijonod4306432010-05-01 22:05:41 +00004414 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004415fi
Benny Prijonod4306432010-05-01 22:05:41 +00004416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4417$as_echo "$ac_cv_c_bigendian" >&6; }
4418 case $ac_cv_c_bigendian in #(
4419 yes)
4420 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4421;; #(
4422 no)
4423 ;; #(
4424 universal)
Benny Prijonod5233702010-01-13 13:09:45 +00004425
Benny Prijonod4306432010-05-01 22:05:41 +00004426$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Benny Prijonod5233702010-01-13 13:09:45 +00004427
Benny Prijonod4306432010-05-01 22:05:41 +00004428 ;; #(
4429 *)
4430 as_fn_error "unknown endianness
4431 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4432 esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004433
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004434
4435case $target in
4436 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonod4306432010-05-01 22:05:41 +00004437 $as_echo "#define PJ_WIN32 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004438
Benny Prijonod4306432010-05-01 22:05:41 +00004439 $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004440
Benny Prijonod4306432010-05-01 22:05:41 +00004441 $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004442
4443 ;;
4444 *darwin*)
Benny Prijonod4306432010-05-01 22:05:41 +00004445 $as_echo "#define PJ_DARWINOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004446
4447 ;;
4448 *linux*)
Benny Prijonod4306432010-05-01 22:05:41 +00004449 $as_echo "#define PJ_LINUX 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004450
4451 ;;
4452 *rtems*)
Benny Prijonod4306432010-05-01 22:05:41 +00004453 $as_echo "#define PJ_RTEMS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004454
4455 ;;
4456 *sunos* | *solaris* )
Benny Prijonod4306432010-05-01 22:05:41 +00004457 $as_echo "#define PJ_SUNOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004458
4459 ;;
4460 *)
4461 ;;
4462esac
4463
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004464
4465
4466
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004467# Check whether --enable-floating-point was given.
Benny Prijonod4306432010-05-01 22:05:41 +00004468if test "${enable_floating_point+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004469 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
Benny Prijonod4306432010-05-01 22:05:41 +00004470 $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004471
Benny Prijonod4306432010-05-01 22:05:41 +00004472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5
4473$as_echo "Checking if floating point is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004474 fi
4475else
4476
Benny Prijonod4306432010-05-01 22:05:41 +00004477 $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004478
Benny Prijonod4306432010-05-01 22:05:41 +00004479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5
4480$as_echo "Checking if floating point is disabled... no" >&6; }
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
4482$as_echo_n "checking for fmod in -lm... " >&6; }
4483if test "${ac_cv_lib_m_fmod+set}" = set; then :
4484 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004485else
4486 ac_check_lib_save_LIBS=$LIBS
4487LIBS="-lm $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00004488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004489/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004490
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004491/* Override any GCC internal prototype to avoid an error.
4492 Use char because int might match the return type of a GCC
4493 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004494#ifdef __cplusplus
4495extern "C"
4496#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004497char fmod ();
4498int
4499main ()
4500{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004501return fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004502 ;
4503 return 0;
4504}
4505_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004506if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004507 ac_cv_lib_m_fmod=yes
4508else
Benny Prijonod4306432010-05-01 22:05:41 +00004509 ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004510fi
Benny Prijonod4306432010-05-01 22:05:41 +00004511rm -f core conftest.err conftest.$ac_objext \
4512 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004513LIBS=$ac_check_lib_save_LIBS
4514fi
Benny Prijonod4306432010-05-01 22:05:41 +00004515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
4516$as_echo "$ac_cv_lib_m_fmod" >&6; }
4517if test "x$ac_cv_lib_m_fmod" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004518 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004519#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004520_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004521
4522 LIBS="-lm $LIBS"
4523
4524fi
4525
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004526
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004527fi
4528
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004529
4530
Benny Prijonod4306432010-05-01 22:05:41 +00004531ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
4532if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
4533 $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004534
4535fi
4536
4537
Benny Prijonod4306432010-05-01 22:05:41 +00004538ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
4539if test "x$ac_cv_header_assert_h" = x""yes; then :
4540 $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004541
4542fi
4543
4544
Benny Prijonod4306432010-05-01 22:05:41 +00004545ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4546if test "x$ac_cv_header_ctype_h" = x""yes; then :
4547 $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004548
4549fi
4550
4551
4552
4553case $target in
4554 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonod4306432010-05-01 22:05:41 +00004555 $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004556
4557 ;;
4558 *)
Benny Prijonod4306432010-05-01 22:05:41 +00004559 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4560if test "x$ac_cv_header_errno_h" = x""yes; then :
4561 $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004562
4563fi
4564
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004565
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004566 ;;
4567esac
4568
Benny Prijonod4306432010-05-01 22:05:41 +00004569ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4570if test "x$ac_cv_header_fcntl_h" = x""yes; then :
4571 $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h
Benny Prijono1d481ab2008-01-24 15:27:30 +00004572
4573fi
4574
4575
Benny Prijonod4306432010-05-01 22:05:41 +00004576ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default"
4577if test "x$ac_cv_header_linux_socket_h" = x""yes; then :
4578 $as_echo "#define PJ_HAS_LINUX_SOCKET_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" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4584if test "x$ac_cv_header_malloc_h" = x""yes; then :
4585 $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004586
4587fi
4588
4589
Benny Prijonod4306432010-05-01 22:05:41 +00004590ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
4591if test "x$ac_cv_header_netdb_h" = x""yes; then :
4592 $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004593
4594fi
4595
4596
Benny Prijonod4306432010-05-01 22:05:41 +00004597ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
4598if test "x$ac_cv_header_netinet_in_systm_h" = x""yes; then :
4599 $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h
Benny Prijono37fc9de2008-08-04 14:45:02 +00004600
4601fi
4602
4603
Benny Prijonod4306432010-05-01 22:05:41 +00004604ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
4605if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
4606 $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004607
4608fi
4609
4610
Benny Prijonod4306432010-05-01 22:05:41 +00004611ac_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 +00004612 # include <sys/types.h>
4613 #endif
4614 #if PJ_HAS_NETINET_IN_SYSTM_H
Benny Prijono37fc9de2008-08-04 14:45:02 +00004615 # include <netinet/in_systm.h>
4616 #endif
Benny Prijonod5233702010-01-13 13:09:45 +00004617 #if PJ_HAS_NETINET_IN_H
4618 # include <netinet/in.h>
4619 #endif
Benny Prijono37fc9de2008-08-04 14:45:02 +00004620
Benny Prijonod4306432010-05-01 22:05:41 +00004621"
4622if test "x$ac_cv_header_netinet_ip_h" = x""yes; then :
4623 $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004624
Benny Prijono46bd0842010-02-12 14:12:41 +00004625fi
4626
Benny Prijonof63a2552007-02-01 00:36:52 +00004627
Benny Prijonod4306432010-05-01 22:05:41 +00004628ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
4629if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then :
4630 $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004631
Benny Prijono46bd0842010-02-12 14:12:41 +00004632fi
4633
Benny Prijono46bd0842010-02-12 14:12:41 +00004634
Benny Prijonod4306432010-05-01 22:05:41 +00004635ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
4636if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
4637 $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004638
Benny Prijono46bd0842010-02-12 14:12:41 +00004639fi
4640
Benny Prijono46bd0842010-02-12 14:12:41 +00004641
Benny Prijonod4306432010-05-01 22:05:41 +00004642ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
4643if test "x$ac_cv_header_semaphore_h" = x""yes; then :
4644 $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h
Benny Prijono1d61ba52009-10-24 00:00:40 +00004645
Benny Prijono1d61ba52009-10-24 00:00:40 +00004646fi
4647
Benny Prijono1d61ba52009-10-24 00:00:40 +00004648
Benny Prijonod4306432010-05-01 22:05:41 +00004649ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
4650if test "x$ac_cv_header_setjmp_h" = x""yes; then :
4651 $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004652
Benny Prijono46bd0842010-02-12 14:12:41 +00004653fi
4654
Benny Prijono46bd0842010-02-12 14:12:41 +00004655
Benny Prijonod4306432010-05-01 22:05:41 +00004656ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
4657if test "x$ac_cv_header_stdarg_h" = x""yes; then :
4658 $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004659
Benny Prijono46bd0842010-02-12 14:12:41 +00004660fi
4661
Benny Prijono46bd0842010-02-12 14:12:41 +00004662
Benny Prijonod4306432010-05-01 22:05:41 +00004663ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
4664if test "x$ac_cv_header_stddef_h" = x""yes; then :
4665 $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h
Benny Prijono1d61ba52009-10-24 00:00:40 +00004666
Benny Prijono1d61ba52009-10-24 00:00:40 +00004667fi
4668
Benny Prijono1d61ba52009-10-24 00:00:40 +00004669
Benny Prijonod4306432010-05-01 22:05:41 +00004670ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4671if test "x$ac_cv_header_stdio_h" = x""yes; then :
4672 $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004673
Benny Prijono46bd0842010-02-12 14:12:41 +00004674fi
4675
Benny Prijono46bd0842010-02-12 14:12:41 +00004676
Benny Prijonod4306432010-05-01 22:05:41 +00004677ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4678if test "x$ac_cv_header_stdint_h" = x""yes; then :
4679 $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004680
Benny Prijono46bd0842010-02-12 14:12:41 +00004681fi
4682
Benny Prijono46bd0842010-02-12 14:12:41 +00004683
Benny Prijonod4306432010-05-01 22:05:41 +00004684ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4685if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4686 $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h
Benny Prijono1d61ba52009-10-24 00:00:40 +00004687
4688fi
4689
4690
Benny Prijonod4306432010-05-01 22:05:41 +00004691ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4692if test "x$ac_cv_header_string_h" = x""yes; then :
4693 $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004694
Benny Prijono46bd0842010-02-12 14:12:41 +00004695fi
4696
Benny Prijono46bd0842010-02-12 14:12:41 +00004697
Benny Prijonod4306432010-05-01 22:05:41 +00004698ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4699if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
4700 $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004701
Benny Prijono46bd0842010-02-12 14:12:41 +00004702fi
4703
Benny Prijono46bd0842010-02-12 14:12:41 +00004704
Benny Prijonod4306432010-05-01 22:05:41 +00004705ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
4706if test "x$ac_cv_header_sys_select_h" = x""yes; then :
4707 $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004708
Benny Prijono46bd0842010-02-12 14:12:41 +00004709fi
Benny Prijono46bd0842010-02-12 14:12:41 +00004710
Benny Prijono1d65f702007-12-03 04:03:17 +00004711
Benny Prijonod4306432010-05-01 22:05:41 +00004712ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
4713if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
4714 $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004715
Benny Prijono46bd0842010-02-12 14:12:41 +00004716fi
Benny Prijono46bd0842010-02-12 14:12:41 +00004717
Benny Prijono46bd0842010-02-12 14:12:41 +00004718
Benny Prijonod4306432010-05-01 22:05:41 +00004719ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
4720if test "x$ac_cv_header_sys_time_h" = x""yes; then :
4721 $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004722
Benny Prijono46bd0842010-02-12 14:12:41 +00004723fi
4724
Benny Prijono46bd0842010-02-12 14:12:41 +00004725
Benny Prijonod4306432010-05-01 22:05:41 +00004726ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
4727if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
4728 $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004729
Benny Prijono46bd0842010-02-12 14:12:41 +00004730fi
Benny Prijono46bd0842010-02-12 14:12:41 +00004731
Benny Prijono1d65f702007-12-03 04:03:17 +00004732
Benny Prijonod4306432010-05-01 22:05:41 +00004733ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4734if test "x$ac_cv_header_sys_types_h" = x""yes; then :
4735 $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004736
Benny Prijono46bd0842010-02-12 14:12:41 +00004737fi
4738
Benny Prijono46bd0842010-02-12 14:12:41 +00004739
Benny Prijonod4306432010-05-01 22:05:41 +00004740ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
4741if test "x$ac_cv_header_sys_filio_h" = x""yes; then :
4742 $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004743
Benny Prijono46bd0842010-02-12 14:12:41 +00004744fi
4745
Benny Prijono46bd0842010-02-12 14:12:41 +00004746
Benny Prijonod4306432010-05-01 22:05:41 +00004747ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
4748if test "x$ac_cv_header_sys_sockio_h" = x""yes; then :
4749 $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004750
Benny Prijono46bd0842010-02-12 14:12:41 +00004751fi
Benny Prijono46bd0842010-02-12 14:12:41 +00004752
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004753
Benny Prijonod4306432010-05-01 22:05:41 +00004754ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
4755if test "x$ac_cv_header_time_h" = x""yes; then :
4756 $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004757
Benny Prijono46bd0842010-02-12 14:12:41 +00004758fi
4759
Benny Prijono46bd0842010-02-12 14:12:41 +00004760
Benny Prijonod4306432010-05-01 22:05:41 +00004761ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4762if test "x$ac_cv_header_unistd_h" = x""yes; then :
4763 $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004764
Benny Prijono46bd0842010-02-12 14:12:41 +00004765fi
4766
Benny Prijono46bd0842010-02-12 14:12:41 +00004767
Benny Prijonod4306432010-05-01 22:05:41 +00004768ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
4769if test "x$ac_cv_header_winsock_h" = x""yes; then :
4770 $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004771
Benny Prijono46bd0842010-02-12 14:12:41 +00004772fi
Benny Prijono46bd0842010-02-12 14:12:41 +00004773
Benny Prijono1c5f4e42008-02-07 13:11:39 +00004774
Benny Prijonod4306432010-05-01 22:05:41 +00004775ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4776if test "x$ac_cv_header_winsock2_h" = x""yes; then :
4777 $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00004778
Benny Prijono46bd0842010-02-12 14:12:41 +00004779fi
Benny Prijono46bd0842010-02-12 14:12:41 +00004780
Benny Prijono46bd0842010-02-12 14:12:41 +00004781
Benny Prijonod4306432010-05-01 22:05:41 +00004782ac_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 +00004783 # include <winsock2.h>
4784 #elif PJ_HAS_WINSOCK_H
4785 # include <winsock.h>
4786 #endif
4787
Benny Prijonod4306432010-05-01 22:05:41 +00004788"
4789if test "x$ac_cv_header_mswsock_h" = x""yes; then :
4790 $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h
Benny Prijonoa9948e62008-03-25 14:03:01 +00004791
4792fi
4793
4794
Benny Prijonod4306432010-05-01 22:05:41 +00004795ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
4796if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
4797 $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h
Benny Prijonoe2746132008-09-27 13:16:35 +00004798
4799fi
4800
4801
Benny Prijonod4306432010-05-01 22:05:41 +00004802ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
4803if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00004804 ac_has_uuid_h=1
4805fi
4806
4807
Benny Prijonod4306432010-05-01 22:05:41 +00004808ac_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 +00004809 # include <sys/types.h>
4810 #endif
4811 #if PJ_HAS_SYS_SOCKET_H
4812
Benny Prijono188ba7e2008-03-25 13:53:16 +00004813 # include <sys/socket.h>
4814 #endif
4815
Benny Prijonod4306432010-05-01 22:05:41 +00004816"
4817if test "x$ac_cv_header_net_if_h" = x""yes; then :
4818 $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h
Benny Prijono188ba7e2008-03-25 13:53:16 +00004819
4820fi
4821
Benny Prijono188ba7e2008-03-25 13:53:16 +00004822
Benny Prijonod4306432010-05-01 22:05:41 +00004823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5
4824$as_echo "Setting PJ_OS_NAME to $target" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004825cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004826#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004827_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004828
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004829
Benny Prijonod4306432010-05-01 22:05:41 +00004830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
4831$as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
4832$as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004833
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004834
Benny Prijonod4306432010-05-01 22:05:41 +00004835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
4836$as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
4837$as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004838
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004839
Benny Prijonod4306432010-05-01 22:05:41 +00004840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5
4841$as_echo "Setting PJ_HAS_MALLOC to 1" >&6; }
4842$as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004843
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004844
Benny Prijonod4306432010-05-01 22:05:41 +00004845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
4846$as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
4847$as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004848
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004849
Benny Prijonod4306432010-05-01 22:05:41 +00004850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
4851$as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
4852$as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004853
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004854
Benny Prijonod4306432010-05-01 22:05:41 +00004855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5
4856$as_echo_n "checking if inet_aton() is available... " >&6; }
4857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004858/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004859#include <sys/types.h>
4860 #include <sys/socket.h>
4861 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004862int
4863main ()
4864{
4865inet_aton(0, 0);
4866 ;
4867 return 0;
4868}
4869_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004870if ac_fn_c_try_compile "$LINENO"; then :
4871 $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004872
Benny Prijonod4306432010-05-01 22:05:41 +00004873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4874$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004875else
Benny Prijonod4306432010-05-01 22:05:41 +00004876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004878fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4880
Benny Prijonod4306432010-05-01 22:05:41 +00004881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5
4882$as_echo_n "checking if inet_pton() is available... " >&6; }
4883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004884/* end confdefs.h. */
4885#include <sys/types.h>
4886 #include <sys/socket.h>
4887 #include <arpa/inet.h>
4888int
4889main ()
4890{
4891inet_pton(0, 0, 0);
4892 ;
4893 return 0;
4894}
4895_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004896if ac_fn_c_try_compile "$LINENO"; then :
4897 $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004898
Benny Prijonod4306432010-05-01 22:05:41 +00004899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4900$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004901else
Benny Prijonod4306432010-05-01 22:05:41 +00004902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004904fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906
Benny Prijonod4306432010-05-01 22:05:41 +00004907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5
4908$as_echo_n "checking if inet_ntop() is available... " >&6; }
4909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004910/* end confdefs.h. */
4911#include <sys/types.h>
4912 #include <sys/socket.h>
4913 #include <arpa/inet.h>
4914int
4915main ()
4916{
4917inet_ntop(0, 0, 0, 0);
4918 ;
4919 return 0;
4920}
4921_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004922if ac_fn_c_try_compile "$LINENO"; then :
4923 $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004924
Benny Prijonod4306432010-05-01 22:05:41 +00004925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4926$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004927else
Benny Prijonod4306432010-05-01 22:05:41 +00004928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004930fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932
Benny Prijonod4306432010-05-01 22:05:41 +00004933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5
4934$as_echo_n "checking if getaddrinfo() is available... " >&6; }
4935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004936/* end confdefs.h. */
4937#include <sys/types.h>
4938 #include <sys/socket.h>
4939 #include <netdb.h>
4940int
4941main ()
4942{
4943getaddrinfo(0, 0, 0, 0);
4944 ;
4945 return 0;
4946}
4947_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004948if ac_fn_c_try_compile "$LINENO"; then :
4949 $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004950
Benny Prijonod4306432010-05-01 22:05:41 +00004951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4952$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004953else
Benny Prijonod4306432010-05-01 22:05:41 +00004954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00004956fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958
Benny Prijonod4306432010-05-01 22:05:41 +00004959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5
4960$as_echo_n "checking if sockaddr_in has sin_len member... " >&6; }
4961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004962/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00004963#include <sys/types.h>
4964 #include <sys/socket.h>
4965 #include <netinet/in.h>
4966 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004967int
4968main ()
4969{
4970struct sockaddr_in a; a.sin_len=0;
4971 ;
4972 return 0;
4973}
4974_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004975if ac_fn_c_try_compile "$LINENO"; then :
4976 $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004977
Benny Prijonod4306432010-05-01 22:05:41 +00004978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4979$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004980else
Benny Prijonod4306432010-05-01 22:05:41 +00004981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004983fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985
Benny Prijonod4306432010-05-01 22:05:41 +00004986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5
4987$as_echo_n "checking if socklen_t is available... " >&6; }
4988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004989/* end confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +00004990#include <sys/types.h>
4991 #include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00004992int
4993main ()
4994{
4995socklen_t xxx = 0;
4996 ;
4997 return 0;
4998}
4999_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005000if ac_fn_c_try_compile "$LINENO"; then :
5001 $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h
Benny Prijono30f85c62006-09-09 20:05:33 +00005002
Benny Prijonod4306432010-05-01 22:05:41 +00005003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5004$as_echo "yes" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005005else
Benny Prijonod4306432010-05-01 22:05:41 +00005006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007$as_echo "no" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005008fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010
Benny Prijonod4306432010-05-01 22:05:41 +00005011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5
5012$as_echo_n "checking if SO_ERROR is available... " >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005013case $target in
5014 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonod4306432010-05-01 22:05:41 +00005015 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005016
Benny Prijonod4306432010-05-01 22:05:41 +00005017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5018$as_echo "yes" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005019 ;;
5020 *)
Benny Prijonod4306432010-05-01 22:05:41 +00005021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005022/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005023#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005024 #include <sys/socket.h>
5025 #include <netinet/in.h>
5026 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005027int
5028main ()
5029{
5030int i=SO_ERROR;
5031 ;
5032 return 0;
5033}
5034_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005035if ac_fn_c_try_compile "$LINENO"; then :
5036 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005037
Benny Prijonod4306432010-05-01 22:05:41 +00005038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5039$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005040else
Benny Prijonod4306432010-05-01 22:05:41 +00005041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005043fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005045 ;;
5046esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005047
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005048
Benny Prijonod4306432010-05-01 22:05:41 +00005049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5
5050$as_echo_n "checking if pthread_rwlock_t is available... " >&6; }
5051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005052/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005053#include <pthread.h>
5054int
5055main ()
5056{
5057pthread_rwlock_t *x;
5058 ;
5059 return 0;
5060}
5061_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005062if ac_fn_c_try_compile "$LINENO"; then :
5063 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005064
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005065 ac_rwmutex="yes"
Benny Prijonod4306432010-05-01 22:05:41 +00005066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5067$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005068else
Benny Prijonod4306432010-05-01 22:05:41 +00005069 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005070
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005071 ac_rwmutex="no"
Benny Prijonod4306432010-05-01 22:05:41 +00005072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005074fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005076
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005077if test "$ac_rwmutex" = "no"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
5079$as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; }
5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005081/* end confdefs.h. */
5082#define _POSIX_READER_WRITER_LOCKS
5083 #include <pthread.h>
5084int
5085main ()
5086{
5087pthread_rwlock_t *x;
5088 ;
5089 return 0;
5090}
5091_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005092if ac_fn_c_try_compile "$LINENO"; then :
5093 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005094
5095 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Benny Prijonod4306432010-05-01 22:05:41 +00005096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5097$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005098else
Benny Prijonod4306432010-05-01 22:05:41 +00005099 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005100
Benny Prijonod4306432010-05-01 22:05:41 +00005101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005103fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105fi
5106
Benny Prijonod4306432010-05-01 22:05:41 +00005107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5
5108$as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; }
5109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005110/* end confdefs.h. */
5111#include <pthread.h>
5112int
5113main ()
5114{
5115pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
5116 ;
5117 return 0;
5118}
5119_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005120if ac_fn_c_try_compile "$LINENO"; then :
5121 $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005122
Benny Prijonod4306432010-05-01 22:05:41 +00005123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5124$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005125else
Benny Prijonod4306432010-05-01 22:05:41 +00005126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005128fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5130
Benny Prijonod4306432010-05-01 22:05:41 +00005131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5
5132$as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; }
5133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005134/* end confdefs.h. */
5135#include <pthread.h>
5136int
5137main ()
5138{
5139pthread_mutexattr_t attr;
5140 attr.recursive=1;
5141 ;
5142 return 0;
5143}
5144_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005145if ac_fn_c_try_compile "$LINENO"; then :
5146 $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005147
Benny Prijonod4306432010-05-01 22:05:41 +00005148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5149$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005150else
Benny Prijonod4306432010-05-01 22:05:41 +00005151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005153fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005155
Benny Prijono99eec382008-09-18 21:22:16 +00005156
Benny Prijonod4306432010-05-01 22:05:41 +00005157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5
5158$as_echo_n "checking ioqueue backend... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005159# Check whether --enable-epoll was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005160if test "${enable_epoll+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005161 enableval=$enable_epoll;
Benny Prijono99eec382008-09-18 21:22:16 +00005162 ac_os_objs=ioqueue_epoll.o
Benny Prijonod4306432010-05-01 22:05:41 +00005163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5
5164$as_echo "/dev/epoll" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005165
5166else
5167
5168 ac_os_objs=ioqueue_select.o
Benny Prijonod4306432010-05-01 22:05:41 +00005169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5
5170$as_echo "select()" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005171
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005172fi
5173
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005174
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005175
5176case $target in
5177 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono99eec382008-09-18 21:22:16 +00005178 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 +00005179 ;;
5180 *)
Benny Prijono99eec382008-09-18 21:22:16 +00005181 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 +00005182 # UUID
5183 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
5184 ac_os_objs="$ac_os_objs guid_uuid.o"
5185 else
5186 ac_os_objs="$ac_os_objs guid_simple.o"
5187 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005188 ;;
5189esac
5190
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005191
5192
5193
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005194ac_external_speex=0
5195
5196
5197# Check whether --with-external-speex was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005198if test "${with_external_speex+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005199 withval=$with_external_speex;
5200 if test "x$with_external_speex" != "xno"; then
5201 # Test Speex installation
Benny Prijonod4306432010-05-01 22:05:41 +00005202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5
5203$as_echo_n "checking if external Speex devkit is installed... " >&6; }
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005205/* end confdefs.h. */
5206#include <speex/speex.h>
5207 #include <speex/speex_echo.h>
5208
5209int
5210main ()
5211{
5212speex_echo_state_init(0, 0); speex_encoder_init(0);
5213 ;
5214 return 0;
5215}
5216_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005217if ac_fn_c_try_compile "$LINENO"; then :
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5219$as_echo "yes!!" >&6; }
5220 $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005221
5222 ac_external_speex="1"
5223
5224else
Benny Prijonod4306432010-05-01 22:05:41 +00005225 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 +00005226fi
5227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5228 fi
5229
5230
5231fi
5232
5233
5234ac_external_gsm=0
5235
5236
5237# Check whether --with-external-gsm was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005238if test "${with_external_gsm+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005239 withval=$with_external_gsm;
5240 if test "x$with_external_gsm" != "xno"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005241 # Test GSM library installation
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5
5243$as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; }
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005245/* end confdefs.h. */
5246#include <gsm/gsm.h>
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005247int
5248main ()
5249{
5250gsm_create();
5251 ;
5252 return 0;
5253}
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005254_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_GSM_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005259
Benny Prijonod4306432010-05-01 22:05:41 +00005260 $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h
5261
5262 ac_external_gsm="1"
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005263
5264else
Benny Prijono46bd0842010-02-12 14:12:41 +00005265
Benny Prijonod4306432010-05-01 22:05:41 +00005266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267$as_echo "no" >&6; }
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5
5269$as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; }
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271/* end confdefs.h. */
5272#include <gsm.h>
5273int
5274main ()
5275{
5276gsm_create();
5277 ;
5278 return 0;
5279}
5280_ACEOF
5281if ac_fn_c_try_compile "$LINENO"; then :
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5283$as_echo "yes!!" >&6; }
5284 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
5285
5286 $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h
5287
5288 ac_external_gsm="1"
5289
5290else
5291 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
5292
5293
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005294fi
Benny Prijonod4306432010-05-01 22:05:41 +00005295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono46bd0842010-02-12 14:12:41 +00005296
Benny Prijonod4306432010-05-01 22:05:41 +00005297
5298fi
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300 fi
5301
5302
5303fi
5304
5305
5306
5307
Benny Prijono4e48b512007-05-16 13:41:00 +00005308
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005309# Check whether --enable-sound was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005310if test "${enable_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005311 enableval=$enable_sound; if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +00005312 ac_pjmedia_snd=null
Benny Prijonod4306432010-05-01 22:05:41 +00005313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5
5314$as_echo "Checking if sound is disabled... yes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00005315 fi
5316
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005317fi
5318
Benny Prijono1d971622006-09-10 22:27:40 +00005319
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005320ac_external_pa=0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005321
Benny Prijono27c98722007-04-09 21:28:15 +00005322
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005323# Check whether --with-external-pa was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005324if test "${with_external_pa+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005325 withval=$with_external_pa;
5326 if test "x$with_external_pa" != "xno"; then
5327 # Test PortAudio installation
Benny Prijonod4306432010-05-01 22:05:41 +00005328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5
5329$as_echo_n "checking if external PortAudio devkit is installed... " >&6; }
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005331/* end confdefs.h. */
5332#include <portaudio.h>
5333
5334int
5335main ()
5336{
5337Pa_Initialize();
5338 ;
5339 return 0;
5340}
5341_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005342if ac_fn_c_try_compile "$LINENO"; then :
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5344$as_echo "yes!!" >&6; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005345 ac_external_pa="1"
5346
5347else
Benny Prijonod4306432010-05-01 22:05:41 +00005348 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 +00005349fi
5350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonofe0c1272010-01-13 16:28:15 +00005351 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005352
Benny Prijono27c98722007-04-09 21:28:15 +00005353
5354fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005355
5356
5357
Benny Prijonod4306432010-05-01 22:05:41 +00005358ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
5359if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005360 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
5361fi
5362
5363
Benny Prijonod4306432010-05-01 22:05:41 +00005364ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
5365if test "x$ac_cv_header_linux_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005366 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
5367fi
5368
5369
Benny Prijonod4306432010-05-01 22:05:41 +00005370ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
5371if test "x$ac_cv_header_machine_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005372 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
5373fi
5374
5375
5376
Benny Prijono3e091672008-01-09 15:43:02 +00005377if test "x$ac_cv_c_bigendian" = "xyes"; then
5378 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
5379else
5380 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
5381fi
5382
Benny Prijono1d971622006-09-10 22:27:40 +00005383if test "$enable_sound" = "no"; then
5384 true;
5385else
5386 case $target in
Benny Prijonob466e232006-09-10 08:53:59 +00005387 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00005388 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
5389 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +00005390 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +00005391 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
5392 ac_pjmedia_snd=pa_old_darwinos
Benny Prijonod4306432010-05-01 22:05:41 +00005393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5
5394$as_echo "Checking sound device backend... old coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005395 else
5396 ac_pjmedia_snd=pa_darwinos
Benny Prijonod4306432010-05-01 22:05:41 +00005397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5
5398$as_echo "Checking sound device backend... coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005399 fi
Benny Prijonob466e232006-09-10 08:53:59 +00005400 ;;
5401 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005402 ac_pjmedia_snd=pa_win32
Benny Prijonod4306432010-05-01 22:05:41 +00005403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5
5404$as_echo "Checking sound device backend... win32 sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005405 ;;
5406 *rtems*)
5407 ac_pjmedia_snd=null
Benny Prijonod4306432010-05-01 22:05:41 +00005408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5
5409$as_echo "Checking sound device backend... null sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005410 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005411 *)
Benny Prijono0b462322008-03-12 22:44:24 +00005412 ac_pjmedia_snd=pa_unix
Benny Prijonod4306432010-05-01 22:05:41 +00005413 ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default"
5414if test "x$ac_cv_header_alsa_version_h" = x""yes; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005415 ac_pa_use_alsa=1
5416
5417 LIBS="$LIBS -lasound"
5418
5419else
5420 ac_pa_use_alsa=0
5421
5422fi
5423
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005424
Benny Prijonod4306432010-05-01 22:05:41 +00005425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5
5426$as_echo "Checking sound device backend... unix" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005427
5428 ac_pa_use_oss=1
5429
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005430 # Check whether --enable-oss was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005431if test "${enable_oss+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005432 enableval=$enable_oss;
Benny Prijono0b462322008-03-12 22:44:24 +00005433 if test "$enable_oss" = "no"; then
5434 ac_pa_use_oss=0
Benny Prijonod4306432010-05-01 22:05:41 +00005435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5
5436$as_echo "Checking if OSS audio is disabled... yes" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005437 fi
5438
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005439fi
5440
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005441 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00005442 esac
5443fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005444
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005445# Check whether --enable-ext_sound was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005446if test "${enable_ext_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005447 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
Benny Prijonoebb2c332008-07-28 23:40:58 +00005448 ac_pjmedia_snd=external
Benny Prijonod4306432010-05-01 22:05:41 +00005449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5
5450$as_echo "Checking if external sound is set... yes" >&6; }
Benny Prijonoebb2c332008-07-28 23:40:58 +00005451 fi
5452
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005453fi
Benny Prijonoebb2c332008-07-28 23:40:58 +00005454
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005455
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005456
5457# Check whether --enable-small-filter was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005458if test "${enable_small_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005459 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005460 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijonod4306432010-05-01 22:05:41 +00005461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5
5462$as_echo "Checking if small filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005463 fi
5464else
Benny Prijonod4306432010-05-01 22:05:41 +00005465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5
5466$as_echo "Checking if small filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005467fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005468
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005469
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005470
5471# Check whether --enable-large-filter was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005472if test "${enable_large_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005473 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005474 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijonod4306432010-05-01 22:05:41 +00005475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5
5476$as_echo "Checking if large filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005477 fi
5478else
Benny Prijonod4306432010-05-01 22:05:41 +00005479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5
5480$as_echo "Checking if large filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005481fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005482
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005483
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005484
5485# Check whether --enable-speex-aec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005486if test "${enable_speex_aec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005487 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005488 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijonod4306432010-05-01 22:05:41 +00005489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5
5490$as_echo "Checking if Speex AEC is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005491 fi
5492else
Benny Prijonod4306432010-05-01 22:05:41 +00005493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5
5494$as_echo "Checking if Speex AEC is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005495fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005496
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005497
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005498
5499# Check whether --enable-g711-codec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005500if test "${enable_g711_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005501 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005502 ac_no_g711_codec=1
Benny Prijonod4306432010-05-01 22:05:41 +00005503 $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005504
Benny Prijonod4306432010-05-01 22:05:41 +00005505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5
5506$as_echo "Checking if G.711 codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005507 fi
5508else
Benny Prijonod4306432010-05-01 22:05:41 +00005509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5
5510$as_echo "Checking if G.711 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005511fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005512
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005513
5514
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005515
5516# Check whether --enable-l16-codec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005517if test "${enable_l16_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005518 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005519 ac_no_l16_codec=1
Benny Prijonod4306432010-05-01 22:05:41 +00005520 $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005521
Benny Prijonod4306432010-05-01 22:05:41 +00005522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5
5523$as_echo "Checking if L16 codecs are disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005524 fi
5525else
Benny Prijonod4306432010-05-01 22:05:41 +00005526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5
5527$as_echo "Checking if L16 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005528fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005529
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005530
5531
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005532
5533# Check whether --enable-gsm-codec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005534if test "${enable_gsm_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005535 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005536 ac_no_gsm_codec=1
Benny Prijonod4306432010-05-01 22:05:41 +00005537 $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005538
Benny Prijonod4306432010-05-01 22:05:41 +00005539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5
5540$as_echo "Checking if GSM codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005541 fi
5542else
Benny Prijonod4306432010-05-01 22:05:41 +00005543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5
5544$as_echo "Checking if GSM codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005545fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005546
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005547
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005548
5549# Check whether --enable-g722-codec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005550if test "${enable_g722_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005551 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
Benny Prijono71f657d2008-03-17 14:24:21 +00005552 ac_no_g722_codec=1
Benny Prijonod4306432010-05-01 22:05:41 +00005553 $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h
Benny Prijono71f657d2008-03-17 14:24:21 +00005554
Benny Prijonod4306432010-05-01 22:05:41 +00005555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5
5556$as_echo "Checking if G.722 codec is disabled...yes" >&6; }
Benny Prijono71f657d2008-03-17 14:24:21 +00005557 fi
5558else
Benny Prijonod4306432010-05-01 22:05:41 +00005559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5
5560$as_echo "Checking if G.722 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005561fi
Benny Prijono71f657d2008-03-17 14:24:21 +00005562
5563
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005564
5565# Check whether --enable-g7221-codec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005566if test "${enable_g7221_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005567 enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
5568 ac_no_g7221_codec=1
Benny Prijonod4306432010-05-01 22:05:41 +00005569 $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005570
Benny Prijonod4306432010-05-01 22:05:41 +00005571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5
5572$as_echo "Checking if G.722.1 codec is disabled...yes" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005573 fi
5574else
Benny Prijonod4306432010-05-01 22:05:41 +00005575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5
5576$as_echo "Checking if G.722.1 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005577fi
5578
5579
5580
5581# Check whether --enable-speex-codec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005582if test "${enable_speex_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005583 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005584 ac_no_speex_codec=1
Benny Prijonod4306432010-05-01 22:05:41 +00005585 $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005586
Benny Prijonod4306432010-05-01 22:05:41 +00005587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5
5588$as_echo "Checking if Speex codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005589 fi
5590else
Benny Prijonod4306432010-05-01 22:05:41 +00005591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5
5592$as_echo "Checking if Speex codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005593fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005594
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005595
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005596
5597# Check whether --enable-ilbc-codec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005598if test "${enable_ilbc_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005599 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005600 ac_no_ilbc_codec=1
Benny Prijonod4306432010-05-01 22:05:41 +00005601 $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005602
Benny Prijonod4306432010-05-01 22:05:41 +00005603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5
5604$as_echo "Checking if iLBC codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005605 fi
5606else
Benny Prijonod4306432010-05-01 22:05:41 +00005607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5
5608$as_echo "Checking if iLBC codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005609fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005610
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005611
5612# Check whether --enable-libsamplerate was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005613if test "${enable_libsamplerate+set}" = set; then :
5614 enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5
5615$as_echo_n "checking for src_new in -lsamplerate... " >&6; }
5616if test "${ac_cv_lib_samplerate_src_new+set}" = set; then :
5617 $as_echo_n "(cached) " >&6
Benny Prijono550a1a62007-10-16 08:54:00 +00005618else
5619 ac_check_lib_save_LIBS=$LIBS
5620LIBS="-lsamplerate $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00005621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00005622/* end confdefs.h. */
5623
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005624/* Override any GCC internal prototype to avoid an error.
5625 Use char because int might match the return type of a GCC
5626 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +00005627#ifdef __cplusplus
5628extern "C"
5629#endif
Benny Prijono550a1a62007-10-16 08:54:00 +00005630char src_new ();
5631int
5632main ()
5633{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005634return src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +00005635 ;
5636 return 0;
5637}
5638_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005639if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00005640 ac_cv_lib_samplerate_src_new=yes
5641else
Benny Prijonod4306432010-05-01 22:05:41 +00005642 ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +00005643fi
Benny Prijonod4306432010-05-01 22:05:41 +00005644rm -f core conftest.err conftest.$ac_objext \
5645 conftest$ac_exeext conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00005646LIBS=$ac_check_lib_save_LIBS
5647fi
Benny Prijonod4306432010-05-01 22:05:41 +00005648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5
5649$as_echo "$ac_cv_lib_samplerate_src_new" >&6; }
5650if test "x$ac_cv_lib_samplerate_src_new" = x""yes; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00005651 cat >>confdefs.h <<_ACEOF
5652#define HAVE_LIBSAMPLERATE 1
5653_ACEOF
5654
5655 LIBS="-lsamplerate $LIBS"
5656
5657fi
5658
5659else
Benny Prijonod4306432010-05-01 22:05:41 +00005660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5
5661$as_echo "Skipping libsamplerate detection" >&6; }
Benny Prijono550a1a62007-10-16 08:54:00 +00005662
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005663fi
Benny Prijono0822c192008-08-21 20:59:58 +00005664
5665
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005666
5667# Check whether --enable-ipp was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005668if test "${enable_ipp+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005669 enableval=$enable_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00005670else
5671 enable_ipp=no
5672
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005673fi
Benny Prijono0822c192008-08-21 20:59:58 +00005674
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005675
Benny Prijono3965f192010-02-10 18:46:05 +00005676
5677# Check whether --with-ipp was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005678if test "${with_ipp+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00005679 withval=$with_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00005680else
5681 with_ipp=no
5682
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005683fi
Benny Prijono0822c192008-08-21 20:59:58 +00005684
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005685
Benny Prijono3965f192010-02-10 18:46:05 +00005686
5687# Check whether --with-ipp-samples was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005688if test "${with_ipp_samples+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00005689 withval=$with_ipp_samples;
Benny Prijono0822c192008-08-21 20:59:58 +00005690else
5691 with_ipp_samples=no
5692
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005693fi
5694
Benny Prijono0822c192008-08-21 20:59:58 +00005695
Benny Prijono3965f192010-02-10 18:46:05 +00005696
5697# Check whether --with-ipp-arch was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005698if test "${with_ipp_arch+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00005699 withval=$with_ipp_arch;
5700else
5701 with_ipp_arch=no
5702
5703fi
5704
5705
Benny Prijono0822c192008-08-21 20:59:58 +00005706if test "x$enable_ipp" != "xno"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5
5708$as_echo_n "checking Intel IPP location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005709
5710 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5
5712$as_echo "$with_ipp" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005713 IPPROOT=$with_ipp
5714 elif test "x$IPPROOT" = "x"; then
5715 if test -d /opt/intel/ipp; then
5716 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
Benny Prijonod4306432010-05-01 22:05:41 +00005717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5
5718$as_echo "autodetected in $IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005719 fi
5720 else
Benny Prijonod4306432010-05-01 22:05:41 +00005721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5
5722$as_echo "$IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005723 fi
5724
Benny Prijono3965f192010-02-10 18:46:05 +00005725 if test "x$with_ipp_arch" != "xno"; then
5726 IPP_SUFFIX="em64t"
Benny Prijonod4306432010-05-01 22:05:41 +00005727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5
5728$as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00005729 else
5730 IPP_SUFFIX=""
Benny Prijonod4306432010-05-01 22:05:41 +00005731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5
5732$as_echo "IPP arch suffix is set to empty" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00005733 fi
5734
Benny Prijono0822c192008-08-21 20:59:58 +00005735 if test x$IPPROOT = x; then
Benny Prijonod4306432010-05-01 22:05:41 +00005736 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 +00005737 elif test ! -d $IPPROOT; then
Benny Prijonod4306432010-05-01 22:05:41 +00005738 as_fn_error "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00005739 elif test ! -d $IPPROOT/include; then
Benny Prijonod4306432010-05-01 22:05:41 +00005740 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00005741 else
5742 # IPP directory looks okay.
5743 # Remove trailing backslash
Benny Prijono3965f192010-02-10 18:46:05 +00005744 IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
Benny Prijono0822c192008-08-21 20:59:58 +00005745
5746 SAVED_CFLAGS="$CFLAGS"
5747 SAVED_LDFLAGS="$LDFLAGS"
5748 SAVED_LIBS="$LIBS"
5749
5750 IPP_CFLAGS="-I$IPPROOT/include"
Benny Prijono46bd0842010-02-12 14:12:41 +00005751 IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippsr${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
5752
5753 # Some differences between Mac OS X and Linux
5754 case $target in
5755 *darwin* )
5756 IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
5757 ;;
5758 *)
5759 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
5760 IPP_LIBS="$IPP_LIBS -lguide"
5761 ;;
5762 esac
5763
Benny Prijono0822c192008-08-21 20:59:58 +00005764 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
Benny Prijono46bd0842010-02-12 14:12:41 +00005765 #Static:
Benny Prijono0822c192008-08-21 20:59:58 +00005766 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
5767
5768 CFLAGS="$CFLAGS $IPP_CFLAGS"
5769 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
5770 LIBS="$IPP_LIBS $LIBS"
5771
5772
Benny Prijonod4306432010-05-01 22:05:41 +00005773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5
5774$as_echo_n "checking Intel IPP usability... " >&6; }
5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005776/* end confdefs.h. */
5777#include <ippcore.h>
5778
5779int
5780main ()
5781{
5782ippStaticInit();
5783 ;
5784 return 0;
5785}
5786_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005787if ac_fn_c_try_link "$LINENO"; then :
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5789$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005790else
Benny Prijonod4306432010-05-01 22:05:41 +00005791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5792$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5793{ as_fn_set_status run with --help for more info
5794as_fn_error "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly
5795See \`config.log' for more details." "$LINENO" 5; }; }
Benny Prijono0822c192008-08-21 20:59:58 +00005796fi
Benny Prijonod4306432010-05-01 22:05:41 +00005797rm -f core conftest.err conftest.$ac_objext \
5798 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005799
5800 CFLAGS="$SAVED_CFLAGS"
5801 LDFLAGS="$SAVED_LDFLAGS"
5802 LIBS="$SAVED_LIBS"
5803 fi
5804
Benny Prijonod4306432010-05-01 22:05:41 +00005805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5
5806$as_echo_n "checking Intel IPP samples location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005807
5808 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5
5810$as_echo "$with_ipp_samples" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005811 IPPSAMPLES=$with_ipp_samples
5812 elif test "x$IPPSAMPLES" = "x"; then
5813 if test -d /opt/intel/ipp-samples; then
5814 IPPSAMPLES=/opt/intel/ipp-samples
Benny Prijonod4306432010-05-01 22:05:41 +00005815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5
5816$as_echo "autodetected in $IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005817 fi
5818 else
Benny Prijonod4306432010-05-01 22:05:41 +00005819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5
5820$as_echo "$IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005821 fi
5822
5823 if test x$IPPSAMPLES = x; then
Benny Prijonod4306432010-05-01 22:05:41 +00005824 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 +00005825 elif test ! -d $IPPSAMPLES; then
Benny Prijonod4306432010-05-01 22:05:41 +00005826 as_fn_error "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00005827 elif test ! -d $IPPSAMPLES/speech-codecs; then
Benny Prijonod4306432010-05-01 22:05:41 +00005828 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00005829 else
5830 # Remove trailing backslash
5831 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
5832
Benny Prijono3965f192010-02-10 18:46:05 +00005833 # Guess the libusc.a/libspeech.a build location
Benny Prijonod4306432010-05-01 22:05:41 +00005834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5
5835$as_echo_n "checking Intel IPP USC build location... " >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00005836 if test -d $IPPSAMPLES/speech-codecs/bin; then
5837 IPPVER=5
5838 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
5839 elif test -d $IPPSAMPLES/speech-codecs/_bin; then
5840 IPPVER=6
Benny Prijono46bd0842010-02-12 14:12:41 +00005841 if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
5842 # gcc compiler
5843 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
5844 elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
5845 # icc compiler
5846 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
5847 else
Benny Prijonod4306432010-05-01 22:05:41 +00005848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5850as_fn_error "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
5851See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono46bd0842010-02-12 14:12:41 +00005852 fi
Benny Prijono3965f192010-02-10 18:46:05 +00005853 else
Benny Prijonod4306432010-05-01 22:05:41 +00005854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5855$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5856as_fn_error "unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?
5857See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00005858 fi
Benny Prijono3965f192010-02-10 18:46:05 +00005859
5860 # Test the directory
5861 if test ! -d $IPPSAMP_DIR; then
Benny Prijonod4306432010-05-01 22:05:41 +00005862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5864as_fn_error "There's something wrong with this script, directory $IPPSAMP_DIR does not exist
5865See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00005866 exit 1;
5867 fi
5868
5869 if test "x$IPPVER" = "x5"; then
5870 IPPSAMP_LIBS="libusc.a"
5871 IPPSAMP_LDLIBS="-lusc"
5872 elif test "x$IPPVER" = "x6"; then
5873 IPPSAMP_LIBS="libspeech.a"
5874 IPPSAMP_LDLIBS="-lspeech"
5875 else
Benny Prijonod4306432010-05-01 22:05:41 +00005876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5878as_fn_error "bug in this script: unsupported IPP version
5879See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00005880 fi
Benny Prijono3965f192010-02-10 18:46:05 +00005881
5882 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
Benny Prijonod4306432010-05-01 22:05:41 +00005883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5885as_fn_error "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
5886See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00005887 fi
5888
Benny Prijonod4306432010-05-01 22:05:41 +00005889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5
5890$as_echo "$IPPSAMP_DIR" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005891
5892 SAVED_CFLAGS="$CFLAGS"
5893 SAVED_LDFLAGS="$LDFLAGS"
5894 SAVED_LIBS="$LIBS"
5895
Benny Prijono3965f192010-02-10 18:46:05 +00005896 IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
5897 CFLAGS="$CFLAGS $IPPSAMP_INC"
5898 LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR"
5899 LIBS="$IPPSAMP_LDLIBS $LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00005900
Benny Prijonod4306432010-05-01 22:05:41 +00005901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5
5902$as_echo_n "checking Intel IPP USC usability... " >&6; }
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005904/* end confdefs.h. */
5905#include <usc.h>
5906
5907int
5908main ()
5909{
5910extern USC_Fxns USC_G729AFP_Fxns;
5911 ;
5912 return 0;
5913}
5914_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005915if ac_fn_c_try_link "$LINENO"; then :
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5917$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005918else
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 "failed
5922See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00005923fi
Benny Prijonod4306432010-05-01 22:05:41 +00005924rm -f core conftest.err conftest.$ac_objext \
5925 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005926
5927 CFLAGS="$SAVED_CFLAGS"
Benny Prijono3965f192010-02-10 18:46:05 +00005928 LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
5929 LIBS="$IPP_LIBS $SAVED_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00005930
Benny Prijono3965f192010-02-10 18:46:05 +00005931 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
5932 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
5933 IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00005934 fi
5935
Benny Prijono3965f192010-02-10 18:46:05 +00005936 CFLAGS="$CFLAGS $IPP_CFLAGS"
5937 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
5938 LIBS="$LIBS $IPP_LIBS"
5939
Benny Prijono0822c192008-08-21 20:59:58 +00005940 ac_build_mak_vars="$ac_build_mak_vars\n\
5941export IPP_CFLAGS=$IPP_CFLAGS\n\
5942export IPP_LDFLAGS=$IPP_LDFLAGS\n\
5943export IPP_LIBS=$IPP_LIBS"
5944else
Benny Prijonod4306432010-05-01 22:05:41 +00005945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5
5946$as_echo "Skipping Intel IPP settings (not wanted)" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005947fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005948
5949
5950
5951
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005952# Check whether --enable-ssl was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005953if test "${enable_ssl+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005954 enableval=$enable_ssl;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005955 if test "$enable_ssl" = "no"; then
5956 ac_no_ssl=1
Benny Prijonod4306432010-05-01 22:05:41 +00005957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5
5958$as_echo "Checking if SSL support is disabled... yes" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005959 fi
5960
5961else
5962
Benny Prijonod4306432010-05-01 22:05:41 +00005963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5
5964$as_echo "checking for OpenSSL installations.." >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005965
5966
5967
Benny Prijonod4306432010-05-01 22:05:41 +00005968 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
5969if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005970 openssl_h_present=1
5971fi
5972
5973
Benny Prijonod4306432010-05-01 22:05:41 +00005974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5
5975$as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; }
5976if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then :
5977 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005978else
5979 ac_check_lib_save_LIBS=$LIBS
5980LIBS="-lcrypto $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00005981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005982/* end confdefs.h. */
5983
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005984/* Override any GCC internal prototype to avoid an error.
5985 Use char because int might match the return type of a GCC
5986 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005987#ifdef __cplusplus
5988extern "C"
5989#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005990char ERR_load_BIO_strings ();
5991int
5992main ()
5993{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005994return ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005995 ;
5996 return 0;
5997}
5998_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005999if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006000 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
6001else
Benny Prijonod4306432010-05-01 22:05:41 +00006002 ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006003fi
Benny Prijonod4306432010-05-01 22:05:41 +00006004rm -f core conftest.err conftest.$ac_objext \
6005 conftest$ac_exeext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006006LIBS=$ac_check_lib_save_LIBS
6007fi
Benny Prijonod4306432010-05-01 22:05:41 +00006008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
6009$as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
6010if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006011 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
6012fi
6013
Benny Prijonod4306432010-05-01 22:05:41 +00006014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
6015$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
6016if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
6017 $as_echo_n "(cached) " >&6
Benny Prijonod5233702010-01-13 13:09:45 +00006018else
6019 ac_check_lib_save_LIBS=$LIBS
6020LIBS="-lssl $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00006021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00006022/* end confdefs.h. */
6023
6024/* Override any GCC internal prototype to avoid an error.
6025 Use char because int might match the return type of a GCC
6026 builtin and then its argument prototype would still apply. */
6027#ifdef __cplusplus
6028extern "C"
6029#endif
6030char SSL_library_init ();
6031int
6032main ()
6033{
6034return SSL_library_init ();
6035 ;
6036 return 0;
6037}
6038_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00006039if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonod5233702010-01-13 13:09:45 +00006040 ac_cv_lib_ssl_SSL_library_init=yes
6041else
Benny Prijonod4306432010-05-01 22:05:41 +00006042 ac_cv_lib_ssl_SSL_library_init=no
Benny Prijonod5233702010-01-13 13:09:45 +00006043fi
Benny Prijonod4306432010-05-01 22:05:41 +00006044rm -f core conftest.err conftest.$ac_objext \
6045 conftest$ac_exeext conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00006046LIBS=$ac_check_lib_save_LIBS
6047fi
Benny Prijonod4306432010-05-01 22:05:41 +00006048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6049$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
6050if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
Benny Prijonod5233702010-01-13 13:09:45 +00006051 libssl_present=1 && LIBS="$LIBS -lssl"
6052fi
6053
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006054 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 +00006055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5
6056$as_echo "OpenSSL library found, SSL support enabled" >&6; }
Nanang Izzuddin9c7616f2009-10-28 06:09:15 +00006057 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
6058 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
Benny Prijonod4306432010-05-01 22:05:41 +00006059 $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
Nanang Izzuddinea6d3c42009-10-26 15:47:52 +00006060
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006061 else
Benny Prijonod4306432010-05-01 22:05:41 +00006062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
6063$as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006064 fi
6065
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006066fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006067
6068
6069
6070
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006071
Benny Prijonod4306432010-05-01 22:05:41 +00006072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5
6073$as_echo_n "checking if select() needs correct nfds... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006074case $target in
Benny Prijonod4306432010-05-01 22:05:41 +00006075 *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006076
Benny Prijonod4306432010-05-01 22:05:41 +00006077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6078$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006079 ;;
Benny Prijonod4306432010-05-01 22:05:41 +00006080 *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006081
Benny Prijonod4306432010-05-01 22:05:41 +00006082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
6083$as_echo "no (default)" >&6; }
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
6085$as_echo "** Decided that select() doesn't need correct nfds (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006086 ;;
6087esac
6088
Benny Prijonod4306432010-05-01 22:05:41 +00006089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5
6090$as_echo_n "checking if pj_thread_create() should enforce stack size... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006091case $target in
Benny Prijonod4306432010-05-01 22:05:41 +00006092 *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006093
Benny Prijonod4306432010-05-01 22:05:41 +00006094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6095$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006096 ;;
Benny Prijonod4306432010-05-01 22:05:41 +00006097 *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006098
Benny Prijonod4306432010-05-01 22:05:41 +00006099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
6100$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006101 ;;
6102esac
6103
Benny Prijonod4306432010-05-01 22:05:41 +00006104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5
6105$as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006106case $target in
Benny Prijonod4306432010-05-01 22:05:41 +00006107 *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006108
Benny Prijonod4306432010-05-01 22:05:41 +00006109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6110$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006111 ;;
Benny Prijonod4306432010-05-01 22:05:41 +00006112 *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006113
Benny Prijonod4306432010-05-01 22:05:41 +00006114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
6115$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006116 ;;
6117esac
6118
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006119case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006120 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonod4306432010-05-01 22:05:41 +00006121 $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006122
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006123 ;;
Benny Prijonod4306432010-05-01 22:05:41 +00006124 *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006125
Benny Prijonod4306432010-05-01 22:05:41 +00006126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
6127$as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006128 ;;
6129esac
6130
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006131case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006132 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonod4306432010-05-01 22:05:41 +00006133 $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006134
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006135 ;;
Benny Prijonod4306432010-05-01 22:05:41 +00006136 *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006137
Benny Prijonod4306432010-05-01 22:05:41 +00006138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
6139$as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006140 ;;
6141esac
6142
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006143
6144
6145
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006146if test "$build" = "$host"; then
6147 ac_cross_compile=
6148else
Benny Prijono5b818b22006-09-17 22:58:51 +00006149 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006150fi
6151ac_linux_poll=select
6152
6153ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006154
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006155
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006156case $target in
6157 *rtems*)
6158 ac_main_obj=main_rtems.o
6159 ;;
6160 *)
6161 ac_main_obj=main.o
6162 ;;
6163esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006164
Benny Prijono0822c192008-08-21 20:59:58 +00006165
6166ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006167cat >confcache <<\_ACEOF
6168# This file is a shell script that caches the results of configure
6169# tests run on this system so they can be shared between configure
6170# scripts and configure runs, see configure's option --config-cache.
6171# It is not useful on other systems. If it contains results you don't
6172# want to keep, you may remove or edit it.
6173#
6174# config.status only pays attention to the cache file if you give it
6175# the --recheck option to rerun configure.
6176#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006177# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006178# loading this file, other *unset* `ac_cv_foo' will be assigned the
6179# following values.
6180
6181_ACEOF
6182
6183# The following way of writing the cache mishandles newlines in values,
6184# but we know of no workaround that is simple, portable, and efficient.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006185# So, we kill variables containing newlines.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006186# Ultrix sh set writes to stderr and can't be redirected directly,
6187# and sets the high bit in the cache file unless we assign to the vars.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006188(
6189 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6190 eval ac_val=\$$ac_var
6191 case $ac_val in #(
6192 *${as_nl}*)
6193 case $ac_var in #(
Benny Prijonod4306432010-05-01 22:05:41 +00006194 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6195$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006196 esac
6197 case $ac_var in #(
6198 _ | IFS | as_nl) ;; #(
Benny Prijonod4306432010-05-01 22:05:41 +00006199 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6200 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006201 esac ;;
6202 esac
6203 done
6204
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006205 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006206 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6207 *${as_nl}ac_space=\ *)
Benny Prijonod4306432010-05-01 22:05:41 +00006208 # `set' does not quote correctly, so add quotes: double-quote
6209 # substitution turns \\\\ into \\, and sed turns \\ into \.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006210 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006211 "s/'/'\\\\''/g;
6212 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006213 ;; #(
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006214 *)
6215 # `set' quotes correctly as required by POSIX, so do not add quotes.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006216 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006217 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006218 esac |
6219 sort
6220) |
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006221 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006222 /^ac_cv_env_/b end
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006223 t clear
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006224 :clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006225 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6226 t end
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006227 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6228 :end' >>confcache
6229if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6230 if test -w "$cache_file"; then
6231 test "x$cache_file" != "x/dev/null" &&
Benny Prijonod4306432010-05-01 22:05:41 +00006232 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6233$as_echo "$as_me: updating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006234 cat confcache >$cache_file
6235 else
Benny Prijonod4306432010-05-01 22:05:41 +00006236 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6237$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006238 fi
6239fi
6240rm -f confcache
6241
6242test "x$prefix" = xNONE && prefix=$ac_default_prefix
6243# Let make expand exec_prefix.
6244test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6245
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006246DEFS=-DHAVE_CONFIG_H
6247
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006248ac_libobjs=
6249ac_ltlibobjs=
6250for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6251 # 1. Remove the extension, and $U if already installed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006252 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Benny Prijonod4306432010-05-01 22:05:41 +00006253 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006254 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6255 # will be set to the directory where LIBOBJS objects are built.
Benny Prijonod4306432010-05-01 22:05:41 +00006256 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6257 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006258done
6259LIBOBJS=$ac_libobjs
6260
6261LTLIBOBJS=$ac_ltlibobjs
6262
6263
6264
Benny Prijonod4306432010-05-01 22:05:41 +00006265
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006266: ${CONFIG_STATUS=./config.status}
Benny Prijonod4306432010-05-01 22:05:41 +00006267ac_write_fail=0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006268ac_clean_files_save=$ac_clean_files
6269ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijonod4306432010-05-01 22:05:41 +00006270{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6271$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6272as_write_fail=0
6273cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006274#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006275# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006276# Run this file to recreate the current configuration.
6277# Compiler output produced by configure, useful for debugging
6278# configure, is in config.log if it exists.
6279
6280debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006281ac_cs_recheck=false
6282ac_cs_silent=false
Benny Prijono46bd0842010-02-12 14:12:41 +00006283
Benny Prijonod4306432010-05-01 22:05:41 +00006284SHELL=\${CONFIG_SHELL-$SHELL}
6285export SHELL
6286_ASEOF
6287cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6288## -------------------- ##
6289## M4sh Initialization. ##
6290## -------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006291
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006292# Be more Bourne compatible
6293DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijonod4306432010-05-01 22:05:41 +00006294if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006295 emulate sh
6296 NULLCMD=:
Benny Prijonod4306432010-05-01 22:05:41 +00006297 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006298 # is contrary to our usage. Disable this feature.
6299 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006300 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +00006301else
Benny Prijonod4306432010-05-01 22:05:41 +00006302 case `(set -o) 2>/dev/null` in #(
6303 *posix*) :
6304 set -o posix ;; #(
6305 *) :
6306 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006307esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006308fi
6309
6310
Benny Prijonod4306432010-05-01 22:05:41 +00006311as_nl='
6312'
6313export as_nl
6314# Printing a long string crashes Solaris 7 /usr/bin/printf.
6315as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6316as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6317as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6318# Prefer a ksh shell builtin over an external printf program on Solaris,
6319# but without wasting forks for bash or zsh.
6320if test -z "$BASH_VERSION$ZSH_VERSION" \
6321 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6322 as_echo='print -r --'
6323 as_echo_n='print -rn --'
6324elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6325 as_echo='printf %s\n'
6326 as_echo_n='printf %s'
6327else
6328 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6329 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6330 as_echo_n='/usr/ucb/echo -n'
6331 else
6332 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6333 as_echo_n_body='eval
6334 arg=$1;
6335 case $arg in #(
6336 *"$as_nl"*)
6337 expr "X$arg" : "X\\(.*\\)$as_nl";
6338 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6339 esac;
6340 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6341 '
6342 export as_echo_n_body
6343 as_echo_n='sh -c $as_echo_n_body as_echo'
6344 fi
6345 export as_echo_body
6346 as_echo='sh -c $as_echo_body as_echo'
6347fi
Benny Prijonod5233702010-01-13 13:09:45 +00006348
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006349# The user is always right.
6350if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijonod4306432010-05-01 22:05:41 +00006351 PATH_SEPARATOR=:
6352 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6353 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6354 PATH_SEPARATOR=';'
6355 }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006356fi
6357
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006358
6359# IFS
6360# We need space, tab and new line, in precisely that order. Quoting is
6361# there to prevent editors from complaining about space-tab.
6362# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6363# splitting by setting IFS to empty value.)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006364IFS=" "" $as_nl"
6365
6366# Find who we are. Look in the path if we contain no directory separator.
Benny Prijonod4306432010-05-01 22:05:41 +00006367case $0 in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006368 *[\\/]* ) as_myself=$0 ;;
6369 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006370for as_dir in $PATH
6371do
6372 IFS=$as_save_IFS
6373 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00006374 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6375 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006376IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006377
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006378 ;;
6379esac
6380# We did not find ourselves, most probably we were run as `sh COMMAND'
6381# in which case we are not to be found in the path.
6382if test "x$as_myself" = x; then
6383 as_myself=$0
6384fi
6385if test ! -f "$as_myself"; then
Benny Prijonod4306432010-05-01 22:05:41 +00006386 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6387 exit 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006388fi
6389
Benny Prijonod4306432010-05-01 22:05:41 +00006390# Unset variables that we do not need and which cause bugs (e.g. in
6391# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6392# suppresses any "Segmentation fault" message there. '((' could
6393# trigger a bug in pdksh 5.2.14.
6394for as_var in BASH_ENV ENV MAIL MAILPATH
6395do eval test x\${$as_var+set} = xset \
6396 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006397done
6398PS1='$ '
6399PS2='> '
6400PS4='+ '
6401
6402# NLS nuisances.
Benny Prijonod4306432010-05-01 22:05:41 +00006403LC_ALL=C
6404export LC_ALL
6405LANGUAGE=C
6406export LANGUAGE
Benny Prijonofe0c1272010-01-13 16:28:15 +00006407
Benny Prijonod4306432010-05-01 22:05:41 +00006408# CDPATH.
6409(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6410
6411
6412# as_fn_error ERROR [LINENO LOG_FD]
6413# ---------------------------------
6414# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6415# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6416# script with status $?, using 1 if that was 0.
6417as_fn_error ()
6418{
6419 as_status=$?; test $as_status -eq 0 && as_status=1
6420 if test "$3"; then
6421 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6423 fi
6424 $as_echo "$as_me: error: $1" >&2
6425 as_fn_exit $as_status
6426} # as_fn_error
6427
6428
6429# as_fn_set_status STATUS
6430# -----------------------
6431# Set $? to STATUS, without forking.
6432as_fn_set_status ()
6433{
6434 return $1
6435} # as_fn_set_status
6436
6437# as_fn_exit STATUS
6438# -----------------
6439# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6440as_fn_exit ()
6441{
6442 set +e
6443 as_fn_set_status $1
6444 exit $1
6445} # as_fn_exit
6446
6447# as_fn_unset VAR
6448# ---------------
6449# Portably unset VAR.
6450as_fn_unset ()
6451{
6452 { eval $1=; unset $1;}
6453}
6454as_unset=as_fn_unset
6455# as_fn_append VAR VALUE
6456# ----------------------
6457# Append the text in VALUE to the end of the definition contained in VAR. Take
6458# advantage of any shell optimizations that allow amortized linear growth over
6459# repeated appends, instead of the typical quadratic growth present in naive
6460# implementations.
6461if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6462 eval 'as_fn_append ()
6463 {
6464 eval $1+=\$2
6465 }'
6466else
6467 as_fn_append ()
6468 {
6469 eval $1=\$$1\$2
6470 }
6471fi # as_fn_append
6472
6473# as_fn_arith ARG...
6474# ------------------
6475# Perform arithmetic evaluation on the ARGs, and store the result in the
6476# global $as_val. Take advantage of shells that can avoid forks. The arguments
6477# must be portable across $(()) and expr.
6478if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6479 eval 'as_fn_arith ()
6480 {
6481 as_val=$(( $* ))
6482 }'
6483else
6484 as_fn_arith ()
6485 {
6486 as_val=`expr "$@" || test $? -eq 1`
6487 }
6488fi # as_fn_arith
6489
6490
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006491if expr a : '\(a\)' >/dev/null 2>&1 &&
6492 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6493 as_expr=expr
6494else
6495 as_expr=false
6496fi
6497
6498if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6499 as_basename=basename
6500else
6501 as_basename=false
6502fi
6503
Benny Prijonod4306432010-05-01 22:05:41 +00006504if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6505 as_dirname=dirname
6506else
6507 as_dirname=false
6508fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006509
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006510as_me=`$as_basename -- "$0" ||
6511$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6512 X"$0" : 'X\(//\)$' \| \
6513 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonod4306432010-05-01 22:05:41 +00006514$as_echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006515 sed '/^.*\/\([^/][^/]*\)\/*$/{
6516 s//\1/
6517 q
6518 }
6519 /^X\/\(\/\/\)$/{
6520 s//\1/
6521 q
6522 }
6523 /^X\/\(\/\).*/{
6524 s//\1/
6525 q
6526 }
6527 s/.*/./; q'`
6528
Benny Prijonod4306432010-05-01 22:05:41 +00006529# Avoid depending upon Character Ranges.
6530as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6531as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6532as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6533as_cr_digits='0123456789'
6534as_cr_alnum=$as_cr_Letters$as_cr_digits
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006535
6536ECHO_C= ECHO_N= ECHO_T=
Benny Prijonod4306432010-05-01 22:05:41 +00006537case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006538-n*)
Benny Prijonod4306432010-05-01 22:05:41 +00006539 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijonod4306432010-05-01 22:05:41 +00006541 xy) ECHO_C='\c';;
6542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6543 ECHO_T=' ';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006544 esac;;
6545*)
6546 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006547esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006548
6549rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006550if test -d conf$$.dir; then
6551 rm -f conf$$.dir/conf$$.file
6552else
6553 rm -f conf$$.dir
Benny Prijonod4306432010-05-01 22:05:41 +00006554 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006555fi
Benny Prijonod4306432010-05-01 22:05:41 +00006556if (echo >conf$$.file) 2>/dev/null; then
6557 if ln -s conf$$.file conf$$ 2>/dev/null; then
6558 as_ln_s='ln -s'
6559 # ... but there are two gotchas:
6560 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6561 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6562 # In both cases, we have to default to `cp -p'.
6563 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6564 as_ln_s='cp -p'
6565 elif ln conf$$.file conf$$ 2>/dev/null; then
6566 as_ln_s=ln
6567 else
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006568 as_ln_s='cp -p'
Benny Prijonod4306432010-05-01 22:05:41 +00006569 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006570else
6571 as_ln_s='cp -p'
6572fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006573rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6574rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006575
Benny Prijonod4306432010-05-01 22:05:41 +00006576
6577# as_fn_mkdir_p
6578# -------------
6579# Create "$as_dir" as a directory, including parents if necessary.
6580as_fn_mkdir_p ()
6581{
6582
6583 case $as_dir in #(
6584 -*) as_dir=./$as_dir;;
6585 esac
6586 test -d "$as_dir" || eval $as_mkdir_p || {
6587 as_dirs=
6588 while :; do
6589 case $as_dir in #(
6590 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6591 *) as_qdir=$as_dir;;
6592 esac
6593 as_dirs="'$as_qdir' $as_dirs"
6594 as_dir=`$as_dirname -- "$as_dir" ||
6595$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6596 X"$as_dir" : 'X\(//\)[^/]' \| \
6597 X"$as_dir" : 'X\(//\)$' \| \
6598 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6599$as_echo X"$as_dir" |
6600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6601 s//\1/
6602 q
6603 }
6604 /^X\(\/\/\)[^/].*/{
6605 s//\1/
6606 q
6607 }
6608 /^X\(\/\/\)$/{
6609 s//\1/
6610 q
6611 }
6612 /^X\(\/\).*/{
6613 s//\1/
6614 q
6615 }
6616 s/.*/./; q'`
6617 test -d "$as_dir" && break
6618 done
6619 test -z "$as_dirs" || eval "mkdir $as_dirs"
6620 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6621
6622
6623} # as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006624if mkdir -p . 2>/dev/null; then
Benny Prijonod4306432010-05-01 22:05:41 +00006625 as_mkdir_p='mkdir -p "$as_dir"'
Benny Prijono39ae2da2006-10-13 17:57:42 +00006626else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006627 test -d ./-p && rmdir ./-p
6628 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +00006629fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006630
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006631if test -x / >/dev/null 2>&1; then
6632 as_test_x='test -x'
6633else
6634 if ls -dL / >/dev/null 2>&1; then
6635 as_ls_L_option=L
6636 else
6637 as_ls_L_option=
6638 fi
6639 as_test_x='
6640 eval sh -c '\''
6641 if test -d "$1"; then
Benny Prijonod4306432010-05-01 22:05:41 +00006642 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006643 else
Benny Prijonod4306432010-05-01 22:05:41 +00006644 case $1 in #(
6645 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006646 esac;
Benny Prijonod4306432010-05-01 22:05:41 +00006647 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006648 ???[sx]*):;;*)false;;esac;fi
6649 '\'' sh
6650 '
6651fi
6652as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006653
6654# Sed expression to map a string onto a valid CPP name.
6655as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6656
6657# Sed expression to map a string onto a valid variable name.
6658as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6659
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006660
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006661exec 6>&1
Benny Prijonod4306432010-05-01 22:05:41 +00006662## ----------------------------------- ##
6663## Main body of $CONFIG_STATUS script. ##
6664## ----------------------------------- ##
6665_ASEOF
6666test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006667
Benny Prijonod4306432010-05-01 22:05:41 +00006668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6669# Save the log message, to keep $0 and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006670# report actual input values of CONFIG_FILES etc. instead of their
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006671# values after options handling.
6672ac_log="
Benny Prijono8a9b3b22010-01-14 14:46:54 +00006673This file was extended by pjproject $as_me 1.x, which was
Benny Prijonod4306432010-05-01 22:05:41 +00006674generated by GNU Autoconf 2.64. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006675
6676 CONFIG_FILES = $CONFIG_FILES
6677 CONFIG_HEADERS = $CONFIG_HEADERS
6678 CONFIG_LINKS = $CONFIG_LINKS
6679 CONFIG_COMMANDS = $CONFIG_COMMANDS
6680 $ $0 $@
6681
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006682on `(hostname || uname -n) 2>/dev/null | sed 1q`
6683"
6684
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006685_ACEOF
6686
Benny Prijonod4306432010-05-01 22:05:41 +00006687case $ac_config_files in *"
6688"*) set x $ac_config_files; shift; ac_config_files=$*;;
6689esac
6690
6691case $ac_config_headers in *"
6692"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6693esac
6694
6695
6696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006697# Files that config.status was made for.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006698config_files="$ac_config_files"
6699config_headers="$ac_config_headers"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006700
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006701_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006702
Benny Prijonod4306432010-05-01 22:05:41 +00006703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006704ac_cs_usage="\
Benny Prijonod4306432010-05-01 22:05:41 +00006705\`$as_me' instantiates files and other configuration actions
6706from templates according to the current configuration. Unless the files
6707and actions are specified as TAGs, all are instantiated by default.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006708
Benny Prijonod4306432010-05-01 22:05:41 +00006709Usage: $0 [OPTION]... [TAG]...
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006710
6711 -h, --help print this help, then exit
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006712 -V, --version print version number and configuration settings, then exit
Benny Prijonod4306432010-05-01 22:05:41 +00006713 -q, --quiet, --silent
6714 do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006715 -d, --debug don't remove temporary files
6716 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonod4306432010-05-01 22:05:41 +00006717 --file=FILE[:TEMPLATE]
6718 instantiate the configuration file FILE
6719 --header=FILE[:TEMPLATE]
6720 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006721
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006722Configuration files:
6723$config_files
6724
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006725Configuration headers:
6726$config_headers
6727
Benny Prijonod4306432010-05-01 22:05:41 +00006728Report bugs to the package provider."
Benny Prijonoe2746132008-09-27 13:16:35 +00006729
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006730_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00006731cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006732ac_cs_version="\\
Benny Prijono8a9b3b22010-01-14 14:46:54 +00006733pjproject config.status 1.x
Benny Prijonod4306432010-05-01 22:05:41 +00006734configured by $0, generated by GNU Autoconf 2.64,
6735 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006736
Benny Prijonod4306432010-05-01 22:05:41 +00006737Copyright (C) 2009 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006738This config.status script is free software; the Free Software Foundation
6739gives unlimited permission to copy, distribute and modify it."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006740
6741ac_pwd='$ac_pwd'
6742srcdir='$srcdir'
Benny Prijonod4306432010-05-01 22:05:41 +00006743test -n "\$AWK" || AWK=awk
Benny Prijono7e0d75f2006-12-25 20:34:14 +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
6747# The default lists apply if the user does not specify any file.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006748ac_need_defaults=:
6749while test $# != 0
6750do
6751 case $1 in
6752 --*=*)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006753 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6754 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006755 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006756 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006757 *)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006758 ac_option=$1
6759 ac_optarg=$2
6760 ac_shift=shift
6761 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006762 esac
6763
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006764 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006765 # Handling of the options.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006766 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006767 ac_cs_recheck=: ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006768 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Benny Prijonod4306432010-05-01 22:05:41 +00006769 $as_echo "$ac_cs_version"; exit ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006770 --debug | --debu | --deb | --de | --d | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006771 debug=: ;;
6772 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006773 $ac_shift
Benny Prijonod4306432010-05-01 22:05:41 +00006774 case $ac_optarg in
6775 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6776 esac
6777 as_fn_append CONFIG_FILES " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006778 ac_need_defaults=false;;
6779 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006780 $ac_shift
Benny Prijonod4306432010-05-01 22:05:41 +00006781 case $ac_optarg in
6782 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6783 esac
6784 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006785 ac_need_defaults=false;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006786 --he | --h)
6787 # Conflict between --help and --header
Benny Prijonod4306432010-05-01 22:05:41 +00006788 as_fn_error "ambiguous option: \`$1'
6789Try \`$0 --help' for more information.";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006790 --help | --hel | -h )
Benny Prijonod4306432010-05-01 22:05:41 +00006791 $as_echo "$ac_cs_usage"; exit ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006792 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6793 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6794 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006795
6796 # This is an error.
Benny Prijonod4306432010-05-01 22:05:41 +00006797 -*) as_fn_error "unrecognized option: \`$1'
6798Try \`$0 --help' for more information." ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006799
Benny Prijonod4306432010-05-01 22:05:41 +00006800 *) as_fn_append ac_config_targets " $1"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006801 ac_need_defaults=false ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006802
6803 esac
6804 shift
6805done
6806
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006807ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006808
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006809if $ac_cs_silent; then
6810 exec 6>/dev/null
6811 ac_configure_extra_args="$ac_configure_extra_args --silent"
6812fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006813
6814_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00006815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006816if \$ac_cs_recheck; then
Benny Prijonod4306432010-05-01 22:05:41 +00006817 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6818 shift
6819 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6820 CONFIG_SHELL='$SHELL'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006821 export CONFIG_SHELL
Benny Prijonod4306432010-05-01 22:05:41 +00006822 exec "\$@"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006823fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006824
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006825_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00006826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006827exec 5>>config.log
6828{
6829 echo
6830 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6831## Running $as_me. ##
6832_ASBOX
Benny Prijonod4306432010-05-01 22:05:41 +00006833 $as_echo "$ac_log"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006834} >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006835
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006836_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00006837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006838_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006839
Benny Prijonod4306432010-05-01 22:05:41 +00006840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006841
6842# Handling of arguments.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006843for ac_config_target in $ac_config_targets
6844do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006845 case $ac_config_target in
6846 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
6847 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
6848 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
6849 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
6850 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
6851 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
6852 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
6853 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
6854 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
6855 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
6856 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006857 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijono8a9b3b22010-01-14 14:46:54 +00006858 "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 +00006859
Benny Prijonod4306432010-05-01 22:05:41 +00006860 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006861 esac
6862done
6863
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006864
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006865# If the user did not use the arguments to specify the items to instantiate,
6866# then the envvar interface is used. Set only those that are not.
6867# We use the long form for the default assignment because of an extremely
6868# bizarre bug on SunOS 4.1.3.
6869if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006870 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006871 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6872fi
6873
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006874# Have a temporary directory for convenience. Make it in the build tree
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006875# simply because there is no reason against having it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006876# creating and moving files from /tmp can sometimes cause problems.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006877# Hook for its removal unless debugging.
6878# Note that there is a small window in which the directory will not be cleaned:
6879# after its creation but before its name has been assigned to `$tmp'.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006880$debug ||
6881{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006882 tmp=
6883 trap 'exit_status=$?
6884 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6885' 0
Benny Prijonod4306432010-05-01 22:05:41 +00006886 trap 'as_fn_exit 1' 1 2 13 15
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006887}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006888# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006889
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006890{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006891 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006892 test -n "$tmp" && test -d "$tmp"
6893} ||
6894{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006895 tmp=./conf$$-$RANDOM
6896 (umask 077 && mkdir "$tmp")
Benny Prijonod4306432010-05-01 22:05:41 +00006897} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006898
Benny Prijonod4306432010-05-01 22:05:41 +00006899# Set up the scripts for CONFIG_FILES section.
6900# No need to generate them if there are no CONFIG_FILES.
6901# This happens for instance with `./config.status config.h'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006902if test -n "$CONFIG_FILES"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006903
Benny Prijonod4306432010-05-01 22:05:41 +00006904
6905ac_cr=`echo X | tr X '\015'`
6906# On cygwin, bash can eat \r inside `` if the user requested igncr.
6907# But we know of no other shell where ac_cr would be empty at this
6908# point, so we can use a bashism as a fallback.
6909if test "x$ac_cr" = x; then
6910 eval ac_cr=\$\'\\r\'
6911fi
6912ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6913if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6914 ac_cs_awk_cr='\r'
6915else
6916 ac_cs_awk_cr=$ac_cr
6917fi
6918
6919echo 'BEGIN {' >"$tmp/subs1.awk" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006920_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006921
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006922
Benny Prijonod4306432010-05-01 22:05:41 +00006923{
6924 echo "cat >conf$$subs.awk <<_ACEOF" &&
6925 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6926 echo "_ACEOF"
6927} >conf$$subs.sh ||
6928 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6929ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006930ac_delim='%!_!# '
6931for ac_last_try in false false false false false :; do
Benny Prijonod4306432010-05-01 22:05:41 +00006932 . ./conf$$subs.sh ||
6933 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006934
Benny Prijonod4306432010-05-01 22:05:41 +00006935 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6936 if test $ac_delim_n = $ac_delim_num; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006937 break
6938 elif $ac_last_try; then
Benny Prijonod4306432010-05-01 22:05:41 +00006939 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006940 else
6941 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006942 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006943done
Benny Prijonod4306432010-05-01 22:05:41 +00006944rm -f conf$$subs.sh
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006945
Benny Prijonod4306432010-05-01 22:05:41 +00006946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6947cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006948_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00006949sed -n '
6950h
6951s/^/S["/; s/!.*/"]=/
6952p
6953g
6954s/^[^!]*!//
6955:repl
6956t repl
6957s/'"$ac_delim"'$//
6958t delim
6959:nl
6960h
6961s/\(.\{148\}\).*/\1/
6962t more1
6963s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6964p
6965n
6966b repl
6967:more1
6968s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6969p
6970g
6971s/.\{148\}//
6972t nl
6973:delim
6974h
6975s/\(.\{148\}\).*/\1/
6976t more2
6977s/["\\]/\\&/g; s/^/"/; s/$/"/
6978p
6979b
6980:more2
6981s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6982p
6983g
6984s/.\{148\}//
6985t delim
6986' <conf$$subs.awk | sed '
6987/^[^""]/{
6988 N
6989 s/\n//
6990}
6991' >>$CONFIG_STATUS || ac_write_fail=1
6992rm -f conf$$subs.awk
6993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6994_ACAWK
6995cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6996 for (key in S) S_is_set[key] = 1
6997 FS = ""
Benny Prijono46bd0842010-02-12 14:12:41 +00006998
Benny Prijonod4306432010-05-01 22:05:41 +00006999}
7000{
7001 line = $ 0
7002 nfields = split(line, field, "@")
7003 substed = 0
7004 len = length(field[1])
7005 for (i = 2; i < nfields; i++) {
7006 key = field[i]
7007 keylen = length(key)
7008 if (S_is_set[key]) {
7009 value = S[key]
7010 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7011 len += length(value) + length(field[++i])
7012 substed = 1
7013 } else
7014 len += 1 + keylen
7015 }
7016
7017 print line
7018}
7019
7020_ACAWK
7021_ACEOF
7022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7023if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7024 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7025else
7026 cat
7027fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7028 || as_fn_error "could not setup config files machinery" "$LINENO" 5
7029_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007030
7031# VPATH may cause trouble with some makes, so we remove $(srcdir),
7032# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7033# trailing colons and then remove the whole line if VPATH becomes empty
7034# (actually we leave an empty line to preserve line numbers).
7035if test "x$srcdir" = x.; then
7036 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7037s/:*\$(srcdir):*/:/
7038s/:*\${srcdir}:*/:/
7039s/:*@srcdir@:*/:/
7040s/^\([^=]*=[ ]*\):*/\1/
7041s/:*$//
7042s/^[^=]*=[ ]*$//
7043}'
7044fi
7045
Benny Prijonod4306432010-05-01 22:05:41 +00007046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007047fi # test -n "$CONFIG_FILES"
7048
Benny Prijonod4306432010-05-01 22:05:41 +00007049# Set up the scripts for CONFIG_HEADERS section.
7050# No need to generate them if there are no CONFIG_HEADERS.
7051# This happens for instance with `./config.status Makefile'.
7052if test -n "$CONFIG_HEADERS"; then
7053cat >"$tmp/defines.awk" <<\_ACAWK ||
7054BEGIN {
7055_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007056
Benny Prijonod4306432010-05-01 22:05:41 +00007057# Transform confdefs.h into an awk script `defines.awk', embedded as
7058# here-document in config.status, that substitutes the proper values into
7059# config.h.in to produce config.h.
7060
7061# Create a delimiter string that does not exist in confdefs.h, to ease
7062# handling of long lines.
7063ac_delim='%!_!# '
7064for ac_last_try in false false :; do
7065 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7066 if test -z "$ac_t"; then
7067 break
7068 elif $ac_last_try; then
7069 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7070 else
7071 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7072 fi
7073done
7074
7075# For the awk script, D is an array of macro values keyed by name,
7076# likewise P contains macro parameters if any. Preserve backslash
7077# newline sequences.
7078
7079ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7080sed -n '
7081s/.\{148\}/&'"$ac_delim"'/g
7082t rset
7083:rset
7084s/^[ ]*#[ ]*define[ ][ ]*/ /
7085t def
7086d
7087:def
7088s/\\$//
7089t bsnl
7090s/["\\]/\\&/g
7091s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7092D["\1"]=" \3"/p
7093s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7094d
7095:bsnl
7096s/["\\]/\\&/g
7097s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7098D["\1"]=" \3\\\\\\n"\\/p
7099t cont
7100s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7101t cont
7102d
7103:cont
7104n
7105s/.\{148\}/&'"$ac_delim"'/g
7106t clear
7107:clear
7108s/\\$//
7109t bsnlc
7110s/["\\]/\\&/g; s/^/"/; s/$/"/p
7111d
7112:bsnlc
7113s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7114b cont
7115' <confdefs.h | sed '
7116s/'"$ac_delim"'/"\\\
7117"/g' >>$CONFIG_STATUS || ac_write_fail=1
7118
7119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7120 for (key in D) D_is_set[key] = 1
7121 FS = ""
7122}
7123/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7124 line = \$ 0
7125 split(line, arg, " ")
7126 if (arg[1] == "#") {
7127 defundef = arg[2]
7128 mac1 = arg[3]
7129 } else {
7130 defundef = substr(arg[1], 2)
7131 mac1 = arg[2]
7132 }
7133 split(mac1, mac2, "(") #)
7134 macro = mac2[1]
7135 prefix = substr(line, 1, index(line, defundef) - 1)
7136 if (D_is_set[macro]) {
7137 # Preserve the white space surrounding the "#".
7138 print prefix "define", macro P[macro] D[macro]
7139 next
7140 } else {
7141 # Replace #undef with comments. This is necessary, for example,
7142 # in the case of _POSIX_SOURCE, which is predefined and required
7143 # on some systems where configure will not decide to define it.
7144 if (defundef == "undef") {
7145 print "/*", prefix defundef, macro, "*/"
7146 next
7147 }
7148 }
7149}
7150{ print }
7151_ACAWK
7152_ACEOF
7153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7154 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7155fi # test -n "$CONFIG_HEADERS"
7156
7157
7158eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7159shift
7160for ac_tag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007161do
7162 case $ac_tag in
7163 :[FHLC]) ac_mode=$ac_tag; continue;;
7164 esac
7165 case $ac_mode$ac_tag in
7166 :[FHL]*:*);;
Benny Prijonod4306432010-05-01 22:05:41 +00007167 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007168 :[FH]-) ac_tag=-:-;;
7169 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7170 esac
7171 ac_save_IFS=$IFS
7172 IFS=:
7173 set x $ac_tag
7174 IFS=$ac_save_IFS
7175 shift
7176 ac_file=$1
7177 shift
7178
7179 case $ac_mode in
7180 :L) ac_source=$1;;
7181 :[FH])
7182 ac_file_inputs=
7183 for ac_f
7184 do
7185 case $ac_f in
7186 -) ac_f="$tmp/stdin";;
7187 *) # Look for the file first in the build tree, then in the source tree
7188 # (if the path is not absolute). The absolute path cannot be DOS-style,
7189 # because $ac_f cannot contain `:'.
7190 test -f "$ac_f" ||
7191 case $ac_f in
7192 [\\/$]*) false;;
7193 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7194 esac ||
Benny Prijonod4306432010-05-01 22:05:41 +00007195 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007196 esac
Benny Prijonod4306432010-05-01 22:05:41 +00007197 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7198 as_fn_append ac_file_inputs " '$ac_f'"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007199 done
7200
7201 # Let's still pretend it is `configure' which instantiates (i.e., don't
7202 # use $as_me), people would be surprised to read:
7203 # /* config.h. Generated by config.status. */
Benny Prijonod4306432010-05-01 22:05:41 +00007204 configure_input='Generated from '`
7205 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7206 `' by configure.'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007207 if test x"$ac_file" != x-; then
7208 configure_input="$ac_file. $configure_input"
Benny Prijonod4306432010-05-01 22:05:41 +00007209 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7210$as_echo "$as_me: creating $ac_file" >&6;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007211 fi
Benny Prijonod4306432010-05-01 22:05:41 +00007212 # Neutralize special characters interpreted by sed in replacement strings.
7213 case $configure_input in #(
7214 *\&* | *\|* | *\\* )
7215 ac_sed_conf_input=`$as_echo "$configure_input" |
7216 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7217 *) ac_sed_conf_input=$configure_input;;
7218 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007219
7220 case $ac_tag in
Benny Prijonod4306432010-05-01 22:05:41 +00007221 *:-:* | *:-) cat >"$tmp/stdin" \
7222 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007223 esac
7224 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007225 esac
7226
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007227 ac_dir=`$as_dirname -- "$ac_file" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007228$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7229 X"$ac_file" : 'X\(//\)[^/]' \| \
7230 X"$ac_file" : 'X\(//\)$' \| \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007231 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonod4306432010-05-01 22:05:41 +00007232$as_echo X"$ac_file" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7234 s//\1/
7235 q
7236 }
7237 /^X\(\/\/\)[^/].*/{
7238 s//\1/
7239 q
7240 }
7241 /^X\(\/\/\)$/{
7242 s//\1/
7243 q
7244 }
7245 /^X\(\/\).*/{
7246 s//\1/
7247 q
7248 }
7249 s/.*/./; q'`
Benny Prijonod4306432010-05-01 22:05:41 +00007250 as_dir="$ac_dir"; as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007251 ac_builddir=.
7252
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007253case "$ac_dir" in
7254.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7255*)
Benny Prijonod4306432010-05-01 22:05:41 +00007256 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007257 # A ".." for each directory in $ac_dir_suffix.
Benny Prijonod4306432010-05-01 22:05:41 +00007258 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007259 case $ac_top_builddir_sub in
7260 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7261 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7262 esac ;;
7263esac
7264ac_abs_top_builddir=$ac_pwd
7265ac_abs_builddir=$ac_pwd$ac_dir_suffix
7266# for backward compatibility:
7267ac_top_builddir=$ac_top_build_prefix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007268
7269case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007270 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007271 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007272 ac_top_srcdir=$ac_top_builddir_sub
7273 ac_abs_top_srcdir=$ac_pwd ;;
7274 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007275 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007276 ac_top_srcdir=$srcdir
7277 ac_abs_top_srcdir=$srcdir ;;
7278 *) # Relative name.
7279 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7280 ac_top_srcdir=$ac_top_build_prefix$srcdir
7281 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007282esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007283ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono9489e7a2008-09-19 22:18:50 +00007284
Benny Prijonoe2746132008-09-27 13:16:35 +00007285
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007286 case $ac_mode in
7287 :F)
7288 #
7289 # CONFIG_FILE
7290 #
Benny Prijonoe2746132008-09-27 13:16:35 +00007291
Benny Prijonoe2746132008-09-27 13:16:35 +00007292_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007293
Benny Prijonod4306432010-05-01 22:05:41 +00007294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007295# If the template does not know about datarootdir, expand it.
7296# FIXME: This hack should be removed a few years after 2.60.
7297ac_datarootdir_hack=; ac_datarootdir_seen=
Benny Prijonod4306432010-05-01 22:05:41 +00007298ac_sed_dataroot='
7299/datarootdir/ {
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007300 p
7301 q
7302}
7303/@datadir@/p
7304/@docdir@/p
7305/@infodir@/p
7306/@localedir@/p
Benny Prijonod4306432010-05-01 22:05:41 +00007307/@mandir@/p'
7308case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007309*datarootdir*) ac_datarootdir_seen=yes;;
7310*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Benny Prijonod4306432010-05-01 22:05:41 +00007311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7312$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007313_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00007314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007315 ac_datarootdir_hack='
7316 s&@datadir@&$datadir&g
7317 s&@docdir@&$docdir&g
7318 s&@infodir@&$infodir&g
7319 s&@localedir@&$localedir&g
7320 s&@mandir@&$mandir&g
Benny Prijonod4306432010-05-01 22:05:41 +00007321 s&\\\${datarootdir}&$datarootdir&g' ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007322esac
7323_ACEOF
7324
7325# Neutralize VPATH when `$srcdir' = `.'.
7326# Shell code in configure.ac might set extrasub.
7327# FIXME: do we really want to maintain this feature?
Benny Prijonod4306432010-05-01 22:05:41 +00007328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7329ac_sed_extra="$ac_vpsub
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007330$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007331_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00007332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007333:t
7334/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Benny Prijonod4306432010-05-01 22:05:41 +00007335s|@configure_input@|$ac_sed_conf_input|;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007336s&@top_builddir@&$ac_top_builddir_sub&;t t
Benny Prijonod4306432010-05-01 22:05:41 +00007337s&@top_build_prefix@&$ac_top_build_prefix&;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007338s&@srcdir@&$ac_srcdir&;t t
7339s&@abs_srcdir@&$ac_abs_srcdir&;t t
7340s&@top_srcdir@&$ac_top_srcdir&;t t
7341s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7342s&@builddir@&$ac_builddir&;t t
7343s&@abs_builddir@&$ac_abs_builddir&;t t
7344s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7345$ac_datarootdir_hack
Benny Prijonod4306432010-05-01 22:05:41 +00007346"
7347eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7348 || as_fn_error "could not create $ac_file" "$LINENO" 5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007349
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007350test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7351 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7352 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Benny Prijonod4306432010-05-01 22:05:41 +00007353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007354which seems to be undefined. Please make sure it is defined." >&5
Benny Prijonod4306432010-05-01 22:05:41 +00007355$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007356which seems to be undefined. Please make sure it is defined." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007357
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007358 rm -f "$tmp/stdin"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007359 case $ac_file in
Benny Prijonod4306432010-05-01 22:05:41 +00007360 -) cat "$tmp/out" && rm -f "$tmp/out";;
7361 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7362 esac \
7363 || as_fn_error "could not create $ac_file" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007364 ;;
7365 :H)
7366 #
7367 # CONFIG_HEADER
7368 #
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007369 if test x"$ac_file" != x-; then
Benny Prijonod4306432010-05-01 22:05:41 +00007370 {
7371 $as_echo "/* $configure_input */" \
7372 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7373 } >"$tmp/config.h" \
7374 || as_fn_error "could not create $ac_file" "$LINENO" 5
7375 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7377$as_echo "$as_me: $ac_file is unchanged" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007378 else
Benny Prijonod4306432010-05-01 22:05:41 +00007379 rm -f "$ac_file"
7380 mv "$tmp/config.h" "$ac_file" \
7381 || as_fn_error "could not create $ac_file" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007382 fi
7383 else
Benny Prijonod4306432010-05-01 22:05:41 +00007384 $as_echo "/* $configure_input */" \
7385 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7386 || as_fn_error "could not create -" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007387 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007388 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007389
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007390
7391 esac
7392
7393done # for ac_tag
7394
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007395
Benny Prijonod4306432010-05-01 22:05:41 +00007396as_fn_exit 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007397_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007398ac_clean_files=$ac_clean_files_save
7399
Benny Prijonod4306432010-05-01 22:05:41 +00007400test $ac_write_fail = 0 ||
7401 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7402
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007403
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007404# configure is writing to config.log, and then calls config.status.
7405# config.status does its own redirection, appending to config.log.
7406# Unfortunately, on DOS this fails, as config.log is still kept open
7407# by configure, so config.status won't be able to write to it; its
7408# output is simply discarded. So we exec the FD to /dev/null,
7409# effectively closing config.log, so it can be properly (re)opened and
7410# appended to by config.status. When coming back to configure, we
7411# need to make the FD available again.
7412if test "$no_create" != yes; then
7413 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007414 ac_config_status_args=
7415 test "$silent" = yes &&
7416 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007417 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007418 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007419 exec 5>>config.log
7420 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7421 # would make configure fail if this is the last instruction.
Benny Prijonod4306432010-05-01 22:05:41 +00007422 $ac_cs_success || as_fn_exit $?
7423fi
7424if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7426$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Benny Prijonod5233702010-01-13 13:09:45 +00007427fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007428
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007429
Benny Prijonod9627842007-04-18 09:24:31 +00007430
Benny Prijonod4306432010-05-01 22:05:41 +00007431{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
Benny Prijonod9627842007-04-18 09:24:31 +00007432
Benny Prijonoc16c6e32007-11-18 14:53:47 +00007433Configurations 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 +00007434
Benny Prijonoc16c6e32007-11-18 14:53:47 +00007435Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00007436 - 'user.mak'
7437 - 'pjlib/include/pj/config_site.h'
7438
7439The next step now is to run 'make dep' and 'make'.
7440" >&5
Benny Prijonod4306432010-05-01 22:05:41 +00007441$as_echo "
Benny Prijonod9627842007-04-18 09:24:31 +00007442
Benny Prijonoc16c6e32007-11-18 14:53:47 +00007443Configurations 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 +00007444
Benny Prijonoc16c6e32007-11-18 14:53:47 +00007445Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00007446 - 'user.mak'
7447 - 'pjlib/include/pj/config_site.h'
7448
7449The next step now is to run 'make dep' and 'make'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007450" >&6; }
Benny Prijonod9627842007-04-18 09:24:31 +00007451