blob: 67ed4899ff19ff6bb5612e93f3015bc3fe553ad8 [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benny Prijono5bbebc02010-06-15 05:21:43 +00003# Generated by GNU Autoconf 2.65 for pjproject 1.x.
4#
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005#
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Benny Prijono5bbebc02010-06-15 05:21:43 +00007# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# Inc.
9#
Benny Prijonod4306432010-05-01 22:05:41 +000010#
Benny Prijonoa9b372a2006-07-24 02:07:11 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
Benny Prijonod4306432010-05-01 22:05:41 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +000016
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijonod4306432010-05-01 22:05:41 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +000020 emulate sh
21 NULLCMD=:
Benny Prijonod4306432010-05-01 22:05:41 +000022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000025 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +000026else
Benny Prijonod4306432010-05-01 22:05:41 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000032esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +000033fi
34
35
Benny Prijonod4306432010-05-01 22:05:41 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
Benny Prijonod5233702010-01-13 13:09:45 +000073
Benny Prijono7e0d75f2006-12-25 20:34:14 +000074# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijonod4306432010-05-01 22:05:41 +000076 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000081fi
82
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000089IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
Benny Prijonod4306432010-05-01 22:05:41 +000092case $0 in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000093 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000095for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +000099 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000101IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000102
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
Benny Prijonod4306432010-05-01 22:05:41 +0000111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000113fi
114
Benny Prijonod4306432010-05-01 22:05:41 +0000115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
Benny Prijonod4306432010-05-01 22:05:41 +0000128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
Benny Prijonofe0c1272010-01-13 16:28:15 +0000132
Benny Prijonod4306432010-05-01 22:05:41 +0000133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378else
379 as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384else
385 as_basename=false
386fi
387
Benny Prijonod4306432010-05-01 22:05:41 +0000388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000393
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonod4306432010-05-01 22:05:41 +0000398$as_echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
Benny Prijonod4306432010-05-01 22:05:41 +0000413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000419
420
Benny Prijonod4306432010-05-01 22:05:41 +0000421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000430 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000435 N
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000438 t loop
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000439 s/-\n.*//
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000440 ' >$as_me.lineno &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000441 chmod +x "$as_me.lineno" ||
Benny Prijonod4306432010-05-01 22:05:41 +0000442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000448 # Exit status is that of the last command.
449 exit
450}
451
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000452ECHO_C= ECHO_N= ECHO_T=
Benny Prijonod4306432010-05-01 22:05:41 +0000453case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000454-n*)
Benny Prijonod4306432010-05-01 22:05:41 +0000455 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijonod4306432010-05-01 22:05:41 +0000457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000460 esac;;
461*)
462 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000463esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000464
465rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
Benny Prijonod4306432010-05-01 22:05:41 +0000470 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000471fi
Benny Prijonod4306432010-05-01 22:05:41 +0000472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000484 as_ln_s='cp -p'
Benny Prijonod4306432010-05-01 22:05:41 +0000485 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000486else
487 as_ln_s='cp -p'
488fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000491
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000492if mkdir -p . 2>/dev/null; then
Benny Prijonod4306432010-05-01 22:05:41 +0000493 as_mkdir_p='mkdir -p "$as_dir"'
Benny Prijono39ae2da2006-10-13 17:57:42 +0000494else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +0000497fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +0000498
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
Benny Prijonod4306432010-05-01 22:05:41 +0000510 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000511 else
Benny Prijonod4306432010-05-01 22:05:41 +0000512 case $1 in #(
513 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000514 esac;
Benny Prijonod4306432010-05-01 22:05:41 +0000515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519fi
520as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000528
Benny Prijono5bbebc02010-06-15 05:21:43 +0000529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000531
532# Name of the host.
533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000541ac_clean_files=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000542ac_config_libobj_dir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000543LIBOBJS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000544cross_compiling=no
545subdirs=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000546MFLAGS=
547MAKEFLAGS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000548
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000549# Identity of this package.
550PACKAGE_NAME='pjproject'
551PACKAGE_TARNAME='pjproject'
Benny Prijono8a9b3b22010-01-14 14:46:54 +0000552PACKAGE_VERSION='1.x'
553PACKAGE_STRING='pjproject 1.x'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000554PACKAGE_BUGREPORT=''
Benny Prijonod4306432010-05-01 22:05:41 +0000555PACKAGE_URL=''
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000556
557# Factoring default headers for most tests.
558ac_includes_default="\
559#include <stdio.h>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000560#ifdef HAVE_SYS_TYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000561# include <sys/types.h>
562#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000563#ifdef HAVE_SYS_STAT_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000564# include <sys/stat.h>
565#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000566#ifdef STDC_HEADERS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000567# include <stdlib.h>
568# include <stddef.h>
569#else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000570# ifdef HAVE_STDLIB_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000571# include <stdlib.h>
572# endif
573#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000574#ifdef HAVE_STRING_H
575# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000576# include <memory.h>
577# endif
578# include <string.h>
579#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000580#ifdef HAVE_STRINGS_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000581# include <strings.h>
582#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000583#ifdef HAVE_INTTYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000584# include <inttypes.h>
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000585#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000586#ifdef HAVE_STDINT_H
587# include <stdint.h>
588#endif
589#ifdef HAVE_UNISTD_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000590# include <unistd.h>
591#endif"
592
Benny Prijonod4306432010-05-01 22:05:41 +0000593ac_subst_vars='LTLIBOBJS
Benny Prijono46bd0842010-02-12 14:12:41 +0000594LIBOBJS
Benny Prijonod4306432010-05-01 22:05:41 +0000595ac_main_obj
596ac_host
597ac_linux_poll
598ac_cross_compile
599libcrypto_present
600libssl_present
601openssl_h_present
602ac_no_ssl
603ac_no_ilbc_codec
604ac_no_speex_codec
605ac_no_g7221_codec
606ac_no_g722_codec
607ac_no_gsm_codec
608ac_no_l16_codec
609ac_no_g711_codec
610ac_no_speex_aec
611ac_no_large_filter
612ac_no_small_filter
613ac_pa_use_oss
614ac_pa_use_alsa
615ac_pa_cflags
616ac_external_pa
617ac_pjmedia_snd
618ac_external_gsm
619ac_external_speex
620ac_os_objs
621EGREP
622GREP
623CPP
624ac_build_mak_vars
625ac_pjdir
Benny Prijono2d1f1b62010-05-17 16:09:12 +0000626CC_CFLAGS
627CC_OPTIMIZE
628CC_DEF
629CC_INC
630CC_OUT
631LIBEXT2
632LIBEXT
633RANLIB
634LDOUT
635LD
636AR
Benny Prijonod4306432010-05-01 22:05:41 +0000637ac_ct_CXX
638CXXFLAGS
639CXX
640OBJEXT
641EXEEXT
642ac_ct_CC
643CPPFLAGS
644LDFLAGS
645CFLAGS
646CC
647target_os
648target_vendor
649target_cpu
650target
651host_os
652host_vendor
653host_cpu
654host
655build_os
656build_vendor
657build_cpu
658build
659target_alias
660host_alias
661build_alias
662LIBS
663ECHO_T
664ECHO_N
665ECHO_C
666DEFS
667mandir
668localedir
669libdir
670psdir
671pdfdir
672dvidir
673htmldir
674infodir
675docdir
676oldincludedir
677includedir
678localstatedir
679sharedstatedir
680sysconfdir
681datadir
682datarootdir
683libexecdir
684sbindir
685bindir
686program_transform_name
687prefix
688exec_prefix
689PACKAGE_URL
690PACKAGE_BUGREPORT
691PACKAGE_STRING
692PACKAGE_VERSION
693PACKAGE_TARNAME
694PACKAGE_NAME
695PATH_SEPARATOR
696SHELL'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000697ac_subst_files=''
Benny Prijonod4306432010-05-01 22:05:41 +0000698ac_user_opts='
699enable_option_checking
700enable_floating_point
701enable_epoll
702with_external_speex
703with_external_gsm
704enable_sound
705with_external_pa
706enable_oss
707enable_ext_sound
708enable_small_filter
709enable_large_filter
710enable_speex_aec
711enable_g711_codec
712enable_l16_codec
713enable_gsm_codec
714enable_g722_codec
715enable_g7221_codec
716enable_speex_codec
717enable_ilbc_codec
718enable_libsamplerate
719enable_ipp
720with_ipp
721with_ipp_samples
722with_ipp_arch
723enable_ssl
724'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000725 ac_precious_vars='build_alias
726host_alias
727target_alias
728CC
729CFLAGS
730LDFLAGS
731LIBS
732CPPFLAGS
733CXX
734CXXFLAGS
735CCC
736CPP'
737
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000738
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000739# Initialize some variables set by options.
740ac_init_help=
741ac_init_version=false
Benny Prijonod4306432010-05-01 22:05:41 +0000742ac_unrecognized_opts=
743ac_unrecognized_sep=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000744# The variables have the same names as the options, with
745# dashes changed to underlines.
746cache_file=/dev/null
747exec_prefix=NONE
748no_create=
749no_recursion=
750prefix=NONE
751program_prefix=NONE
752program_suffix=NONE
753program_transform_name=s,x,x,
754silent=
755site=
756srcdir=
757verbose=
758x_includes=NONE
759x_libraries=NONE
760
761# Installation directory options.
762# These are left unexpanded so users can "make install exec_prefix=/foo"
763# and all the variables that are supposed to be based on exec_prefix
764# by default will actually change.
765# Use braces instead of parens because sh, perl, etc. also accept them.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000766# (The list follows the same order as the GNU Coding Standards.)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000767bindir='${exec_prefix}/bin'
768sbindir='${exec_prefix}/sbin'
769libexecdir='${exec_prefix}/libexec'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000770datarootdir='${prefix}/share'
771datadir='${datarootdir}'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000772sysconfdir='${prefix}/etc'
773sharedstatedir='${prefix}/com'
774localstatedir='${prefix}/var'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000775includedir='${prefix}/include'
776oldincludedir='/usr/include'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000777docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
778infodir='${datarootdir}/info'
779htmldir='${docdir}'
780dvidir='${docdir}'
781pdfdir='${docdir}'
782psdir='${docdir}'
783libdir='${exec_prefix}/lib'
784localedir='${datarootdir}/locale'
785mandir='${datarootdir}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000786
787ac_prev=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000788ac_dashdash=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000789for ac_option
790do
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000793 eval $ac_prev=\$ac_option
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000794 ac_prev=
795 continue
796 fi
797
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000798 case $ac_option in
799 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 *) ac_optarg=yes ;;
801 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000802
803 # Accept the important Cygnus configure options, so we can diagnose typos.
804
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000805 case $ac_dashdash$ac_option in
806 --)
807 ac_dashdash=yes ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000808
809 -bindir | --bindir | --bindi | --bind | --bin | --bi)
810 ac_prev=bindir ;;
811 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
812 bindir=$ac_optarg ;;
813
814 -build | --build | --buil | --bui | --bu)
815 ac_prev=build_alias ;;
816 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817 build_alias=$ac_optarg ;;
818
819 -cache-file | --cache-file | --cache-fil | --cache-fi \
820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
821 ac_prev=cache_file ;;
822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
824 cache_file=$ac_optarg ;;
825
826 --config-cache | -C)
827 cache_file=config.cache ;;
828
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000829 -datadir | --datadir | --datadi | --datad)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000830 ac_prev=datadir ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000831 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000832 datadir=$ac_optarg ;;
833
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000834 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
835 | --dataroo | --dataro | --datar)
836 ac_prev=datarootdir ;;
837 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
838 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
839 datarootdir=$ac_optarg ;;
840
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000841 -disable-* | --disable-*)
Benny Prijonod4306432010-05-01 22:05:41 +0000842 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000843 # Reject names that are not valid shell variable names.
Benny Prijonod4306432010-05-01 22:05:41 +0000844 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
845 as_fn_error "invalid feature name: $ac_useropt"
846 ac_useropt_orig=$ac_useropt
847 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
848 case $ac_user_opts in
849 *"
850"enable_$ac_useropt"
851"*) ;;
852 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
853 ac_unrecognized_sep=', ';;
854 esac
855 eval enable_$ac_useropt=no ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000856
857 -docdir | --docdir | --docdi | --doc | --do)
858 ac_prev=docdir ;;
859 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
860 docdir=$ac_optarg ;;
861
862 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
863 ac_prev=dvidir ;;
864 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
865 dvidir=$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000866
867 -enable-* | --enable-*)
Benny Prijonod4306432010-05-01 22:05:41 +0000868 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000869 # Reject names that are not valid shell variable names.
Benny Prijonod4306432010-05-01 22:05:41 +0000870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 as_fn_error "invalid feature name: $ac_useropt"
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
875 *"
876"enable_$ac_useropt"
877"*) ;;
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
880 esac
881 eval enable_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000882
883 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
884 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
885 | --exec | --exe | --ex)
886 ac_prev=exec_prefix ;;
887 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
888 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
889 | --exec=* | --exe=* | --ex=*)
890 exec_prefix=$ac_optarg ;;
891
892 -gas | --gas | --ga | --g)
893 # Obsolete; use --with-gas.
894 with_gas=yes ;;
895
896 -help | --help | --hel | --he | -h)
897 ac_init_help=long ;;
898 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
899 ac_init_help=recursive ;;
900 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
901 ac_init_help=short ;;
902
903 -host | --host | --hos | --ho)
904 ac_prev=host_alias ;;
905 -host=* | --host=* | --hos=* | --ho=*)
906 host_alias=$ac_optarg ;;
907
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000908 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
909 ac_prev=htmldir ;;
910 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
911 | --ht=*)
912 htmldir=$ac_optarg ;;
913
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000914 -includedir | --includedir | --includedi | --included | --include \
915 | --includ | --inclu | --incl | --inc)
916 ac_prev=includedir ;;
917 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
918 | --includ=* | --inclu=* | --incl=* | --inc=*)
919 includedir=$ac_optarg ;;
920
921 -infodir | --infodir | --infodi | --infod | --info | --inf)
922 ac_prev=infodir ;;
923 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
924 infodir=$ac_optarg ;;
925
926 -libdir | --libdir | --libdi | --libd)
927 ac_prev=libdir ;;
928 -libdir=* | --libdir=* | --libdi=* | --libd=*)
929 libdir=$ac_optarg ;;
930
931 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
932 | --libexe | --libex | --libe)
933 ac_prev=libexecdir ;;
934 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
935 | --libexe=* | --libex=* | --libe=*)
936 libexecdir=$ac_optarg ;;
937
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000938 -localedir | --localedir | --localedi | --localed | --locale)
939 ac_prev=localedir ;;
940 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
941 localedir=$ac_optarg ;;
942
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000943 -localstatedir | --localstatedir | --localstatedi | --localstated \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000944 | --localstate | --localstat | --localsta | --localst | --locals)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000945 ac_prev=localstatedir ;;
946 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000947 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000948 localstatedir=$ac_optarg ;;
949
950 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
951 ac_prev=mandir ;;
952 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
953 mandir=$ac_optarg ;;
954
955 -nfp | --nfp | --nf)
956 # Obsolete; use --without-fp.
957 with_fp=no ;;
958
959 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000960 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000961 no_create=yes ;;
962
963 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
964 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
965 no_recursion=yes ;;
966
967 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
968 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
969 | --oldin | --oldi | --old | --ol | --o)
970 ac_prev=oldincludedir ;;
971 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
972 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
973 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
974 oldincludedir=$ac_optarg ;;
975
976 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
977 ac_prev=prefix ;;
978 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979 prefix=$ac_optarg ;;
980
981 -program-prefix | --program-prefix | --program-prefi | --program-pref \
982 | --program-pre | --program-pr | --program-p)
983 ac_prev=program_prefix ;;
984 -program-prefix=* | --program-prefix=* | --program-prefi=* \
985 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
986 program_prefix=$ac_optarg ;;
987
988 -program-suffix | --program-suffix | --program-suffi | --program-suff \
989 | --program-suf | --program-su | --program-s)
990 ac_prev=program_suffix ;;
991 -program-suffix=* | --program-suffix=* | --program-suffi=* \
992 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
993 program_suffix=$ac_optarg ;;
994
995 -program-transform-name | --program-transform-name \
996 | --program-transform-nam | --program-transform-na \
997 | --program-transform-n | --program-transform- \
998 | --program-transform | --program-transfor \
999 | --program-transfo | --program-transf \
1000 | --program-trans | --program-tran \
1001 | --progr-tra | --program-tr | --program-t)
1002 ac_prev=program_transform_name ;;
1003 -program-transform-name=* | --program-transform-name=* \
1004 | --program-transform-nam=* | --program-transform-na=* \
1005 | --program-transform-n=* | --program-transform-=* \
1006 | --program-transform=* | --program-transfor=* \
1007 | --program-transfo=* | --program-transf=* \
1008 | --program-trans=* | --program-tran=* \
1009 | --progr-tra=* | --program-tr=* | --program-t=*)
1010 program_transform_name=$ac_optarg ;;
1011
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001012 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1013 ac_prev=pdfdir ;;
1014 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1015 pdfdir=$ac_optarg ;;
1016
1017 -psdir | --psdir | --psdi | --psd | --ps)
1018 ac_prev=psdir ;;
1019 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1020 psdir=$ac_optarg ;;
1021
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1023 | -silent | --silent | --silen | --sile | --sil)
1024 silent=yes ;;
1025
1026 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1027 ac_prev=sbindir ;;
1028 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1029 | --sbi=* | --sb=*)
1030 sbindir=$ac_optarg ;;
1031
1032 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1033 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1034 | --sharedst | --shareds | --shared | --share | --shar \
1035 | --sha | --sh)
1036 ac_prev=sharedstatedir ;;
1037 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1038 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1039 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1040 | --sha=* | --sh=*)
1041 sharedstatedir=$ac_optarg ;;
1042
1043 -site | --site | --sit)
1044 ac_prev=site ;;
1045 -site=* | --site=* | --sit=*)
1046 site=$ac_optarg ;;
1047
1048 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1049 ac_prev=srcdir ;;
1050 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1051 srcdir=$ac_optarg ;;
1052
1053 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1054 | --syscon | --sysco | --sysc | --sys | --sy)
1055 ac_prev=sysconfdir ;;
1056 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1057 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1058 sysconfdir=$ac_optarg ;;
1059
1060 -target | --target | --targe | --targ | --tar | --ta | --t)
1061 ac_prev=target_alias ;;
1062 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1063 target_alias=$ac_optarg ;;
1064
1065 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1066 verbose=yes ;;
1067
1068 -version | --version | --versio | --versi | --vers | -V)
1069 ac_init_version=: ;;
1070
1071 -with-* | --with-*)
Benny Prijonod4306432010-05-01 22:05:41 +00001072 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001073 # Reject names that are not valid shell variable names.
Benny Prijonod4306432010-05-01 22:05:41 +00001074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error "invalid package name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1079 *"
1080"with_$ac_useropt"
1081"*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval with_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001086
1087 -without-* | --without-*)
Benny Prijonod4306432010-05-01 22:05:41 +00001088 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001089 # Reject names that are not valid shell variable names.
Benny Prijonod4306432010-05-01 22:05:41 +00001090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error "invalid package name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1095 *"
1096"with_$ac_useropt"
1097"*) ;;
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1100 esac
1101 eval with_$ac_useropt=no ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001102
1103 --x)
1104 # Obsolete; use --with-x.
1105 with_x=yes ;;
1106
1107 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1108 | --x-incl | --x-inc | --x-in | --x-i)
1109 ac_prev=x_includes ;;
1110 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1111 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1112 x_includes=$ac_optarg ;;
1113
1114 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1115 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1116 ac_prev=x_libraries ;;
1117 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1118 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1119 x_libraries=$ac_optarg ;;
1120
Benny Prijonod4306432010-05-01 22:05:41 +00001121 -*) as_fn_error "unrecognized option: \`$ac_option'
1122Try \`$0 --help' for more information."
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001123 ;;
1124
1125 *=*)
1126 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1127 # Reject names that are not valid shell variable names.
Benny Prijonod4306432010-05-01 22:05:41 +00001128 case $ac_envvar in #(
1129 '' | [0-9]* | *[!_$as_cr_alnum]* )
1130 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1131 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001132 eval $ac_envvar=\$ac_optarg
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001133 export $ac_envvar ;;
1134
1135 *)
1136 # FIXME: should be removed in autoconf 3.0.
Benny Prijonod4306432010-05-01 22:05:41 +00001137 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001138 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijonod4306432010-05-01 22:05:41 +00001139 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001140 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1141 ;;
1142
1143 esac
1144done
1145
1146if test -n "$ac_prev"; then
1147 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Benny Prijonod4306432010-05-01 22:05:41 +00001148 as_fn_error "missing argument to $ac_option"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001149fi
1150
Benny Prijonod4306432010-05-01 22:05:41 +00001151if test -n "$ac_unrecognized_opts"; then
1152 case $enable_option_checking in
1153 no) ;;
1154 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1155 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1156 esac
1157fi
1158
1159# Check all directory arguments for consistency.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001160for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1161 datadir sysconfdir sharedstatedir localstatedir includedir \
1162 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1163 libdir localedir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001164do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001165 eval ac_val=\$$ac_var
Benny Prijonod4306432010-05-01 22:05:41 +00001166 # Remove trailing slashes.
1167 case $ac_val in
1168 */ )
1169 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1170 eval $ac_var=\$ac_val;;
1171 esac
1172 # Be sure to have absolute directory names.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001173 case $ac_val in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001174 [\\/$]* | ?:[\\/]* ) continue;;
1175 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001176 esac
Benny Prijonod4306432010-05-01 22:05:41 +00001177 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001178done
1179
1180# There might be people who depend on the old broken behavior: `$host'
1181# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001182# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001183build=$build_alias
1184host=$host_alias
1185target=$target_alias
1186
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001187# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001188if test "x$host_alias" != x; then
1189 if test "x$build_alias" = x; then
1190 cross_compiling=maybe
Benny Prijonod4306432010-05-01 22:05:41 +00001191 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001192 If a cross compiler is detected then cross compile mode will be used." >&2
1193 elif test "x$build_alias" != "x$host_alias"; then
1194 cross_compiling=yes
1195 fi
1196fi
1197
1198ac_tool_prefix=
1199test -n "$host_alias" && ac_tool_prefix=$host_alias-
1200
1201test "$silent" = yes && exec 6>/dev/null
1202
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001203
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001204ac_pwd=`pwd` && test -n "$ac_pwd" &&
1205ac_ls_di=`ls -di .` &&
1206ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Benny Prijonod4306432010-05-01 22:05:41 +00001207 as_fn_error "working directory cannot be determined"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001208test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Benny Prijonod4306432010-05-01 22:05:41 +00001209 as_fn_error "pwd does not report name of working directory"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001210
1211
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001212# Find the source files, if location was not specified.
1213if test -z "$srcdir"; then
1214 ac_srcdir_defaulted=yes
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001215 # Try the directory containing this script, then the parent directory.
Benny Prijonod4306432010-05-01 22:05:41 +00001216 ac_confdir=`$as_dirname -- "$as_myself" ||
1217$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1218 X"$as_myself" : 'X\(//\)[^/]' \| \
1219 X"$as_myself" : 'X\(//\)$' \| \
1220 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1221$as_echo X"$as_myself" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223 s//\1/
1224 q
1225 }
1226 /^X\(\/\/\)[^/].*/{
1227 s//\1/
1228 q
1229 }
1230 /^X\(\/\/\)$/{
1231 s//\1/
1232 q
1233 }
1234 /^X\(\/\).*/{
1235 s//\1/
1236 q
1237 }
1238 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001239 srcdir=$ac_confdir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001240 if test ! -r "$srcdir/$ac_unique_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001241 srcdir=..
1242 fi
1243else
1244 ac_srcdir_defaulted=no
1245fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001246if test ! -r "$srcdir/$ac_unique_file"; then
1247 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Benny Prijonod4306432010-05-01 22:05:41 +00001248 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Benny Prijono9489e7a2008-09-19 22:18:50 +00001249fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001250ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1251ac_abs_confdir=`(
Benny Prijonod4306432010-05-01 22:05:41 +00001252 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001253 pwd)`
1254# When building in place, set srcdir=.
1255if test "$ac_abs_confdir" = "$ac_pwd"; then
1256 srcdir=.
1257fi
1258# Remove unnecessary trailing slashes from srcdir.
1259# Double slashes in file names in object file debugging info
1260# mess up M-x gdb in Emacs.
1261case $srcdir in
1262*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1263esac
1264for ac_var in $ac_precious_vars; do
1265 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1266 eval ac_env_${ac_var}_value=\$${ac_var}
1267 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1268 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1269done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001270
1271#
1272# Report the --help message.
1273#
1274if test "$ac_init_help" = "long"; then
1275 # Omit some internal or obsolete options to make the list less imposing.
1276 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001277 cat <<_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001278\`configure' configures pjproject 1.x to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001279
1280Usage: $0 [OPTION]... [VAR=VALUE]...
1281
1282To assign environment variables (e.g., CC, CFLAGS...), specify them as
1283VAR=VALUE. See below for descriptions of some of the useful variables.
1284
1285Defaults for the options are specified in brackets.
1286
1287Configuration:
1288 -h, --help display this help and exit
1289 --help=short display options specific to this package
1290 --help=recursive display the short help of all the included packages
1291 -V, --version display version information and exit
1292 -q, --quiet, --silent do not print \`checking...' messages
1293 --cache-file=FILE cache test results in FILE [disabled]
1294 -C, --config-cache alias for \`--cache-file=config.cache'
1295 -n, --no-create do not create output files
1296 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1297
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001298Installation directories:
1299 --prefix=PREFIX install architecture-independent files in PREFIX
Benny Prijonod4306432010-05-01 22:05:41 +00001300 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001301 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Benny Prijonod4306432010-05-01 22:05:41 +00001302 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001303
1304By default, \`make install' will install all the files in
1305\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1306an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1307for instance \`--prefix=\$HOME'.
1308
1309For better control, use the options below.
1310
1311Fine tuning of the installation directories:
Benny Prijonod4306432010-05-01 22:05:41 +00001312 --bindir=DIR user executables [EPREFIX/bin]
1313 --sbindir=DIR system admin executables [EPREFIX/sbin]
1314 --libexecdir=DIR program executables [EPREFIX/libexec]
1315 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1316 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1317 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1318 --libdir=DIR object code libraries [EPREFIX/lib]
1319 --includedir=DIR C header files [PREFIX/include]
1320 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1321 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1322 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1323 --infodir=DIR info documentation [DATAROOTDIR/info]
1324 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1325 --mandir=DIR man documentation [DATAROOTDIR/man]
1326 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1327 --htmldir=DIR html documentation [DOCDIR]
1328 --dvidir=DIR dvi documentation [DOCDIR]
1329 --pdfdir=DIR pdf documentation [DOCDIR]
1330 --psdir=DIR ps documentation [DOCDIR]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001331_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001332
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001333 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001334
1335System types:
1336 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001337 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001338 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001339_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001340fi
1341
1342if test -n "$ac_init_help"; then
1343 case $ac_init_help in
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001344 short | recursive ) echo "Configuration of pjproject 1.x:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001345 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001346 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001347
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001348Optional Features:
Benny Prijonod4306432010-05-01 22:05:41 +00001349 --disable-option-checking ignore unrecognized --enable/--with options
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001350 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1351 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1352 --disable-floating-point
1353 Disable floating point where possible
Benny Prijono9489e7a2008-09-19 22:18:50 +00001354 --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
Benny Prijono1d971622006-09-10 22:27:40 +00001355 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijono0b462322008-03-12 22:44:24 +00001356 --disable-oss Disable OSS audio (default: not disabled)
1357
Benny Prijonoebb2c332008-07-28 23:40:58 +00001358 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001359 --disable-small-filter Exclude small filter in resampling
1360 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001361 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1362 --disable-g711-codec Exclude G.711 codecs from the build
1363 --disable-l16-codec Exclude Linear/L16 codec family from the build
1364 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +00001365 --disable-g722-codec Exclude G.722 codec in the build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001366 --disable-g7221-codec Exclude G.7221 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001367 --disable-speex-codec Exclude Speex codecs in the build
1368 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +00001369 --enable-libsamplerate Link with libsamplerate when available. Note that
1370 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijono0822c192008-08-21 20:59:58 +00001371 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
1372 package and samples location using IPPROOT and
1373 IPPSAMPLES env var or with --with-ipp and
1374 --with-ipp-samples options
Benny Prijonoce1db762007-02-14 02:21:08 +00001375 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001376
1377
Benny Prijonofe0c1272010-01-13 16:28:15 +00001378Optional Packages:
1379 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1380 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001381 --with-external-speex Use external Speex development files, not the one in
1382 "third_party" directory. When this option is set,
1383 make sure that Speex is accessible to use (hint: use
1384 CFLAGS and LDFLAGS env var to set the include/lib
1385 paths)
1386 --with-external-gsm Use external GSM codec library, not the one in
1387 "third_party" directory. When this option is set,
1388 make sure that the GSM include/lib files are
1389 accessible to use (hint: use CFLAGS and LDFLAGS env
1390 var to set the include/lib paths)
1391 --with-external-pa Use external PortAudio development files, not the
1392 one in "third_party" directory. When this option is
1393 set, make sure that PortAudio is accessible to use
1394 (hint: use CFLAGS and LDFLAGS env var to set the
1395 include/lib paths)
Benny Prijono3965f192010-02-10 18:46:05 +00001396 --with-ipp=DIR Specify the Intel IPP location
1397 --with-ipp-samples=DIR Specify the Intel IPP samples location
1398 --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or
Benny Prijono46bd0842010-02-12 14:12:41 +00001399 "em64t. Default is blank for IA32"
Benny Prijonofe0c1272010-01-13 16:28:15 +00001400
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001401Some influential environment variables:
1402 CC C compiler command
1403 CFLAGS C compiler flags
1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1405 nonstandard directory <lib dir>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001406 LIBS libraries to pass to the linker, e.g. -l<library>
Benny Prijono5bbebc02010-06-15 05:21:43 +00001407 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001408 you have headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001409 CXX C++ compiler command
1410 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001411 CPP C preprocessor
1412
1413Use these variables to override the choices made by `configure' or to help
1414it to find libraries and programs with nonstandard names/locations.
1415
Benny Prijonod4306432010-05-01 22:05:41 +00001416Report bugs to the package provider.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001417_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001418ac_status=$?
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001419fi
1420
1421if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Benny Prijonod4306432010-05-01 22:05:41 +00001424 test -d "$ac_dir" ||
1425 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426 continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001427 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001428
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001429case "$ac_dir" in
1430.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431*)
Benny Prijonod4306432010-05-01 22:05:41 +00001432 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001433 # A ".." for each directory in $ac_dir_suffix.
Benny Prijonod4306432010-05-01 22:05:41 +00001434 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001435 case $ac_top_builddir_sub in
1436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1438 esac ;;
1439esac
1440ac_abs_top_builddir=$ac_pwd
1441ac_abs_builddir=$ac_pwd$ac_dir_suffix
1442# for backward compatibility:
1443ac_top_builddir=$ac_top_build_prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001444
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001445case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001446 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001447 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001448 ac_top_srcdir=$ac_top_builddir_sub
1449 ac_abs_top_srcdir=$ac_pwd ;;
1450 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001451 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001452 ac_top_srcdir=$srcdir
1453 ac_abs_top_srcdir=$srcdir ;;
1454 *) # Relative name.
1455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1456 ac_top_srcdir=$ac_top_build_prefix$srcdir
1457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001458esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001459ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001460
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001461 cd "$ac_dir" || { ac_status=$?; continue; }
1462 # Check for guested configure.
1463 if test -f "$ac_srcdir/configure.gnu"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1466 elif test -f "$ac_srcdir/configure"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure" --help=recursive
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001469 else
Benny Prijonod4306432010-05-01 22:05:41 +00001470 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001471 fi || ac_status=$?
1472 cd "$ac_pwd" || { ac_status=$?; break; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001473 done
1474fi
1475
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001476test -n "$ac_init_help" && exit $ac_status
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001477if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001478 cat <<\_ACEOF
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001479pjproject configure 1.x
Benny Prijono5bbebc02010-06-15 05:21:43 +00001480generated by GNU Autoconf 2.65
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001481
Benny Prijonod4306432010-05-01 22:05:41 +00001482Copyright (C) 2009 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001483This configure script is free software; the Free Software Foundation
1484gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001485_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001486 exit
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001487fi
Benny Prijonod4306432010-05-01 22:05:41 +00001488
1489## ------------------------ ##
1490## Autoconf initialization. ##
1491## ------------------------ ##
1492
1493# ac_fn_c_try_compile LINENO
1494# --------------------------
1495# Try to compile conftest.$ac_ext, and return whether this succeeded.
1496ac_fn_c_try_compile ()
1497{
1498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1499 rm -f conftest.$ac_objext
1500 if { { ac_try="$ac_compile"
1501case "(($ac_try" in
1502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503 *) ac_try_echo=$ac_try;;
1504esac
1505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506$as_echo "$ac_try_echo"; } >&5
1507 (eval "$ac_compile") 2>conftest.err
1508 ac_status=$?
1509 if test -s conftest.err; then
1510 grep -v '^ *+' conftest.err >conftest.er1
1511 cat conftest.er1 >&5
1512 mv -f conftest.er1 conftest.err
1513 fi
1514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515 test $ac_status = 0; } && {
1516 test -z "$ac_c_werror_flag" ||
1517 test ! -s conftest.err
1518 } && test -s conftest.$ac_objext; then :
1519 ac_retval=0
1520else
1521 $as_echo "$as_me: failed program was:" >&5
1522sed 's/^/| /' conftest.$ac_ext >&5
1523
1524 ac_retval=1
1525fi
1526 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Benny Prijono5bbebc02010-06-15 05:21:43 +00001527 as_fn_set_status $ac_retval
Benny Prijonod4306432010-05-01 22:05:41 +00001528
1529} # ac_fn_c_try_compile
1530
1531# ac_fn_cxx_try_compile LINENO
1532# ----------------------------
1533# Try to compile conftest.$ac_ext, and return whether this succeeded.
1534ac_fn_cxx_try_compile ()
1535{
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext
1538 if { { ac_try="$ac_compile"
1539case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542esac
1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544$as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_cxx_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext; then :
1557 ac_retval=0
1558else
1559 $as_echo "$as_me: failed program was:" >&5
1560sed 's/^/| /' conftest.$ac_ext >&5
1561
1562 ac_retval=1
1563fi
1564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Benny Prijono5bbebc02010-06-15 05:21:43 +00001565 as_fn_set_status $ac_retval
Benny Prijonod4306432010-05-01 22:05:41 +00001566
1567} # ac_fn_cxx_try_compile
1568
1569# ac_fn_c_try_link LINENO
1570# -----------------------
1571# Try to link conftest.$ac_ext, and return whether this succeeded.
1572ac_fn_c_try_link ()
1573{
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext conftest$ac_exeext
1576 if { { ac_try="$ac_link"
1577case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580esac
1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582$as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_link") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1589 fi
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest$ac_exeext && {
1595 test "$cross_compiling" = yes ||
1596 $as_test_x conftest$ac_exeext
1597 }; then :
1598 ac_retval=0
1599else
1600 $as_echo "$as_me: failed program was:" >&5
1601sed 's/^/| /' conftest.$ac_ext >&5
1602
1603 ac_retval=1
1604fi
1605 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1606 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1607 # interfere with the next link command; also delete a directory that is
1608 # left behind by Apple's compiler. We do this before executing the actions.
1609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Benny Prijono5bbebc02010-06-15 05:21:43 +00001611 as_fn_set_status $ac_retval
Benny Prijonod4306432010-05-01 22:05:41 +00001612
1613} # ac_fn_c_try_link
1614
1615# ac_fn_c_try_run LINENO
1616# ----------------------
1617# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1618# that executables *can* be run.
1619ac_fn_c_try_run ()
1620{
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if { { ac_try="$ac_link"
1623case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628$as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_link") 2>&5
1630 ac_status=$?
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1633 { { case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636esac
1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638$as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_try") 2>&5
1640 ac_status=$?
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; }; }; then :
1643 ac_retval=0
1644else
1645 $as_echo "$as_me: program exited with status $ac_status" >&5
1646 $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
1648
1649 ac_retval=$ac_status
1650fi
1651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Benny Prijono5bbebc02010-06-15 05:21:43 +00001653 as_fn_set_status $ac_retval
Benny Prijonod4306432010-05-01 22:05:41 +00001654
1655} # ac_fn_c_try_run
1656
1657# ac_fn_c_try_cpp LINENO
1658# ----------------------
1659# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_c_try_cpp ()
1661{
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 if { { ac_try="$ac_cpp conftest.$ac_ext"
1664case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } >/dev/null && {
1679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 }; then :
1682 ac_retval=0
1683else
1684 $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688fi
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Benny Prijono5bbebc02010-06-15 05:21:43 +00001690 as_fn_set_status $ac_retval
Benny Prijonod4306432010-05-01 22:05:41 +00001691
1692} # ac_fn_c_try_cpp
1693
1694# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695# -------------------------------------------------------
1696# Tests whether HEADER exists and can be compiled using the include files in
1697# INCLUDES, setting the cache variable VAR accordingly.
1698ac_fn_c_check_header_compile ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702$as_echo_n "checking for $2... " >&6; }
1703if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1704 $as_echo_n "(cached) " >&6
1705else
1706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707/* end confdefs.h. */
1708$4
1709#include <$2>
1710_ACEOF
1711if ac_fn_c_try_compile "$LINENO"; then :
1712 eval "$3=yes"
1713else
1714 eval "$3=no"
1715fi
1716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717fi
1718eval ac_res=\$$3
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720$as_echo "$ac_res" >&6; }
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722
1723} # ac_fn_c_check_header_compile
1724
1725# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1726# -------------------------------------------------------
1727# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1728# the include files in INCLUDES and setting the cache variable VAR
1729# accordingly.
1730ac_fn_c_check_header_mongrel ()
1731{
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735$as_echo_n "checking for $2... " >&6; }
1736if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1737 $as_echo_n "(cached) " >&6
1738fi
1739eval ac_res=\$$3
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741$as_echo "$ac_res" >&6; }
1742else
1743 # Is the header compilable?
1744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1745$as_echo_n "checking $2 usability... " >&6; }
1746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h. */
1748$4
1749#include <$2>
1750_ACEOF
1751if ac_fn_c_try_compile "$LINENO"; then :
1752 ac_header_compiler=yes
1753else
1754 ac_header_compiler=no
1755fi
1756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1758$as_echo "$ac_header_compiler" >&6; }
1759
1760# Is the header present?
1761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1762$as_echo_n "checking $2 presence... " >&6; }
1763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h. */
1765#include <$2>
1766_ACEOF
1767if ac_fn_c_try_cpp "$LINENO"; then :
1768 ac_header_preproc=yes
1769else
1770 ac_header_preproc=no
1771fi
1772rm -f conftest.err conftest.$ac_ext
1773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1774$as_echo "$ac_header_preproc" >&6; }
1775
1776# So? What about this header?
1777case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1778 yes:no: )
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1780$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1782$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1783 ;;
1784 no:yes:* )
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1786$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1788$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1790$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1792$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795 ;;
1796esac
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798$as_echo_n "checking for $2... " >&6; }
1799if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800 $as_echo_n "(cached) " >&6
1801else
1802 eval "$3=\$ac_header_compiler"
1803fi
1804eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807fi
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809
1810} # ac_fn_c_check_header_mongrel
Benny Prijono5bbebc02010-06-15 05:21:43 +00001811
1812# ac_fn_c_check_func LINENO FUNC VAR
1813# ----------------------------------
1814# Tests whether FUNC exists, setting the cache variable VAR accordingly
1815ac_fn_c_check_func ()
1816{
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819$as_echo_n "checking for $2... " >&6; }
1820if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1821 $as_echo_n "(cached) " >&6
1822else
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824/* end confdefs.h. */
1825/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1827#define $2 innocuous_$2
1828
1829/* System header to define __stub macros and hopefully few prototypes,
1830 which can conflict with char $2 (); below.
1831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1832 <limits.h> exists even on freestanding compilers. */
1833
1834#ifdef __STDC__
1835# include <limits.h>
1836#else
1837# include <assert.h>
1838#endif
1839
1840#undef $2
1841
1842/* Override any GCC internal prototype to avoid an error.
1843 Use char because int might match the return type of a GCC
1844 builtin and then its argument prototype would still apply. */
1845#ifdef __cplusplus
1846extern "C"
1847#endif
1848char $2 ();
1849/* The GNU C library defines this for functions which it implements
1850 to always fail with ENOSYS. Some functions are actually named
1851 something starting with __ and the normal name is an alias. */
1852#if defined __stub_$2 || defined __stub___$2
1853choke me
1854#endif
1855
1856int
1857main ()
1858{
1859return $2 ();
1860 ;
1861 return 0;
1862}
1863_ACEOF
1864if ac_fn_c_try_link "$LINENO"; then :
1865 eval "$3=yes"
1866else
1867 eval "$3=no"
1868fi
1869rm -f core conftest.err conftest.$ac_objext \
1870 conftest$ac_exeext conftest.$ac_ext
1871fi
1872eval ac_res=\$$3
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874$as_echo "$ac_res" >&6; }
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876
1877} # ac_fn_c_check_func
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001878cat >config.log <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001879This file contains any messages produced by compilers while
1880running configure, to aid debugging if configure makes a mistake.
1881
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001882It was created by pjproject $as_me 1.x, which was
Benny Prijono5bbebc02010-06-15 05:21:43 +00001883generated by GNU Autoconf 2.65. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001884
1885 $ $0 $@
1886
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001887_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001888exec 5>>config.log
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001889{
1890cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001891## --------- ##
1892## Platform. ##
1893## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001894
1895hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1896uname -m = `(uname -m) 2>/dev/null || echo unknown`
1897uname -r = `(uname -r) 2>/dev/null || echo unknown`
1898uname -s = `(uname -s) 2>/dev/null || echo unknown`
1899uname -v = `(uname -v) 2>/dev/null || echo unknown`
1900
1901/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1902/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1903
1904/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1905/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1906/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001907/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001908/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1909/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1910/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1911
1912_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001913
1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915for as_dir in $PATH
1916do
1917 IFS=$as_save_IFS
1918 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00001919 $as_echo "PATH: $as_dir"
1920 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001921IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001922
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001923} >&5
1924
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001925cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001926
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001927
1928## ----------- ##
1929## Core tests. ##
1930## ----------- ##
1931
1932_ACEOF
1933
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001934
1935# Keep a trace of the command line.
1936# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001937# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001938# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001939# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001940ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001941ac_configure_args0=
1942ac_configure_args1=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001943ac_must_keep_next=false
1944for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001945do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001946 for ac_arg
1947 do
1948 case $ac_arg in
1949 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1951 | -silent | --silent | --silen | --sile | --sil)
1952 continue ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001953 *\'*)
Benny Prijonod4306432010-05-01 22:05:41 +00001954 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001955 esac
1956 case $ac_pass in
Benny Prijonod4306432010-05-01 22:05:41 +00001957 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001958 2)
Benny Prijonod4306432010-05-01 22:05:41 +00001959 as_fn_append ac_configure_args1 " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001960 if test $ac_must_keep_next = true; then
1961 ac_must_keep_next=false # Got value, back to normal.
1962 else
1963 case $ac_arg in
1964 *=* | --config-cache | -C | -disable-* | --disable-* \
1965 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1966 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1967 | -with-* | --with-* | -without-* | --without-* | --x)
1968 case "$ac_configure_args0 " in
1969 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1970 esac
1971 ;;
1972 -* ) ac_must_keep_next=true ;;
1973 esac
1974 fi
Benny Prijonod4306432010-05-01 22:05:41 +00001975 as_fn_append ac_configure_args " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001976 ;;
1977 esac
1978 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001979done
Benny Prijonod4306432010-05-01 22:05:41 +00001980{ ac_configure_args0=; unset ac_configure_args0;}
1981{ ac_configure_args1=; unset ac_configure_args1;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001982
1983# When interrupted or exit'd, cleanup temporary files, and complete
1984# config.log. We remove comments because anyway the quotes in there
1985# would cause problems or look ugly.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001986# WARNING: Use '\'' to represent an apostrophe within the trap.
1987# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001988trap 'exit_status=$?
1989 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001990 {
1991 echo
1992
1993 cat <<\_ASBOX
1994## ---------------- ##
1995## Cache variables. ##
1996## ---------------- ##
1997_ASBOX
1998 echo
1999 # The following way of writing the cache mishandles newlines in values,
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002000(
2001 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2002 eval ac_val=\$$ac_var
2003 case $ac_val in #(
2004 *${as_nl}*)
2005 case $ac_var in #(
Benny Prijonod4306432010-05-01 22:05:41 +00002006 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2007$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002008 esac
2009 case $ac_var in #(
2010 _ | IFS | as_nl) ;; #(
Benny Prijonod4306432010-05-01 22:05:41 +00002011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2012 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002013 esac ;;
2014 esac
2015 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002016 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002017 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2018 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002019 sed -n \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002020 "s/'\''/'\''\\\\'\'''\''/g;
2021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2022 ;; #(
Benny Prijonoe2746132008-09-27 13:16:35 +00002023 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoe2746132008-09-27 13:16:35 +00002025 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002026 esac |
2027 sort
2028)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002029 echo
2030
2031 cat <<\_ASBOX
2032## ----------------- ##
2033## Output variables. ##
2034## ----------------- ##
2035_ASBOX
2036 echo
2037 for ac_var in $ac_subst_vars
2038 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002039 eval ac_val=\$$ac_var
2040 case $ac_val in
Benny Prijonod4306432010-05-01 22:05:41 +00002041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002042 esac
Benny Prijonod4306432010-05-01 22:05:41 +00002043 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002044 done | sort
2045 echo
2046
2047 if test -n "$ac_subst_files"; then
2048 cat <<\_ASBOX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002049## ------------------- ##
2050## File substitutions. ##
2051## ------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002052_ASBOX
2053 echo
2054 for ac_var in $ac_subst_files
2055 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002056 eval ac_val=\$$ac_var
2057 case $ac_val in
Benny Prijonod4306432010-05-01 22:05:41 +00002058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002059 esac
Benny Prijonod4306432010-05-01 22:05:41 +00002060 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002061 done | sort
2062 echo
2063 fi
2064
2065 if test -s confdefs.h; then
2066 cat <<\_ASBOX
2067## ----------- ##
2068## confdefs.h. ##
2069## ----------- ##
2070_ASBOX
2071 echo
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002072 cat confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002073 echo
2074 fi
2075 test "$ac_signal" != 0 &&
Benny Prijonod4306432010-05-01 22:05:41 +00002076 $as_echo "$as_me: caught signal $ac_signal"
2077 $as_echo "$as_me: exit $exit_status"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002078 } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002079 rm -f core *.core core.conftest.* &&
2080 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002081 exit $exit_status
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002082' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002083for ac_signal in 1 2 13 15; do
Benny Prijonod4306432010-05-01 22:05:41 +00002084 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002085done
2086ac_signal=0
2087
2088# confdefs.h avoids OS command line length limits that DEFS can exceed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002089rm -f -r conftest* confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002090
Benny Prijonod4306432010-05-01 22:05:41 +00002091$as_echo "/* confdefs.h */" > confdefs.h
2092
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002093# Predefined preprocessor variables.
2094
2095cat >>confdefs.h <<_ACEOF
2096#define PACKAGE_NAME "$PACKAGE_NAME"
2097_ACEOF
2098
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2101_ACEOF
2102
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002103cat >>confdefs.h <<_ACEOF
2104#define PACKAGE_VERSION "$PACKAGE_VERSION"
2105_ACEOF
2106
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002107cat >>confdefs.h <<_ACEOF
2108#define PACKAGE_STRING "$PACKAGE_STRING"
2109_ACEOF
2110
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002111cat >>confdefs.h <<_ACEOF
2112#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2113_ACEOF
2114
Benny Prijonod4306432010-05-01 22:05:41 +00002115cat >>confdefs.h <<_ACEOF
2116#define PACKAGE_URL "$PACKAGE_URL"
2117_ACEOF
2118
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002119
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002120# Let the site file select an alternate cache file if it wants to.
Benny Prijonod4306432010-05-01 22:05:41 +00002121# Prefer an explicitly selected file to automatically selected ones.
2122ac_site_file1=NONE
2123ac_site_file2=NONE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002124if test -n "$CONFIG_SITE"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002125 ac_site_file1=$CONFIG_SITE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002126elif test "x$prefix" != xNONE; then
Benny Prijonod4306432010-05-01 22:05:41 +00002127 ac_site_file1=$prefix/share/config.site
2128 ac_site_file2=$prefix/etc/config.site
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002129else
Benny Prijonod4306432010-05-01 22:05:41 +00002130 ac_site_file1=$ac_default_prefix/share/config.site
2131 ac_site_file2=$ac_default_prefix/etc/config.site
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002132fi
Benny Prijonod4306432010-05-01 22:05:41 +00002133for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002134do
Benny Prijonod4306432010-05-01 22:05:41 +00002135 test "x$ac_site_file" = xNONE && continue
Benny Prijono5bbebc02010-06-15 05:21:43 +00002136 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002137 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2138$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002139 sed 's/^/| /' "$ac_site_file" >&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002140 . "$ac_site_file"
2141 fi
2142done
2143
2144if test -r "$cache_file"; then
Benny Prijono5bbebc02010-06-15 05:21:43 +00002145 # Some versions of bash will fail to source /dev/null (special files
2146 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2147 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002148 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2149$as_echo "$as_me: loading cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002150 case $cache_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002151 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2152 *) . "./$cache_file";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002153 esac
2154 fi
2155else
Benny Prijonod4306432010-05-01 22:05:41 +00002156 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2157$as_echo "$as_me: creating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002158 >$cache_file
2159fi
2160
2161# Check that the precious variables saved in the cache have kept the same
2162# value.
2163ac_cache_corrupted=false
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002164for ac_var in $ac_precious_vars; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002165 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2166 eval ac_new_set=\$ac_env_${ac_var}_set
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002167 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2168 eval ac_new_val=\$ac_env_${ac_var}_value
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002169 case $ac_old_set,$ac_new_set in
2170 set,)
Benny Prijonod4306432010-05-01 22:05:41 +00002171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2172$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 +00002173 ac_cache_corrupted=: ;;
2174 ,set)
Benny Prijonod4306432010-05-01 22:05:41 +00002175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2176$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002177 ac_cache_corrupted=: ;;
2178 ,);;
2179 *)
2180 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002181 # differences in whitespace do not lead to failure.
2182 ac_old_val_w=`echo x $ac_old_val`
2183 ac_new_val_w=`echo x $ac_new_val`
2184 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2186$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2187 ac_cache_corrupted=:
2188 else
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2190$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2191 eval $ac_var=\$ac_old_val
2192 fi
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2194$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2196$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002197 fi;;
2198 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002199 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002200 if test "$ac_new_set" = set; then
2201 case $ac_new_val in
Benny Prijonod4306432010-05-01 22:05:41 +00002202 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002203 *) ac_arg=$ac_var=$ac_new_val ;;
2204 esac
2205 case " $ac_configure_args " in
2206 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Benny Prijonod4306432010-05-01 22:05:41 +00002207 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002208 esac
2209 fi
2210done
2211if $ac_cache_corrupted; then
Benny Prijonod4306432010-05-01 22:05:41 +00002212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2215$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2216 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002217fi
Benny Prijonod4306432010-05-01 22:05:41 +00002218## -------------------- ##
2219## Main body of script. ##
2220## -------------------- ##
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002221
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002222ac_ext=c
2223ac_cpp='$CPP $CPPFLAGS'
2224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2226ac_compiler_gnu=$ac_cv_c_compiler_gnu
2227
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002228
2229
Benny Prijono5b818b22006-09-17 22:58:51 +00002230host_orig="$host"
2231
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002232ac_aux_dir=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002233for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Benny Prijonod4306432010-05-01 22:05:41 +00002234 for ac_t in install-sh install.sh shtool; do
2235 if test -f "$ac_dir/$ac_t"; then
2236 ac_aux_dir=$ac_dir
2237 ac_install_sh="$ac_aux_dir/$ac_t -c"
2238 break 2
2239 fi
2240 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002241done
2242if test -z "$ac_aux_dir"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002243 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002244fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002245
2246# These three variables are undocumented and unsupported,
2247# and are intended to be withdrawn in a future Autoconf release.
2248# They can cause serious problems if a builder's source tree is in a directory
2249# whose full name contains unusual characters.
2250ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2251ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2252ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2253
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002254
2255# Make sure we can run config.sub.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002256$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Benny Prijonod4306432010-05-01 22:05:41 +00002257 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002258
Benny Prijonod4306432010-05-01 22:05:41 +00002259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2260$as_echo_n "checking build system type... " >&6; }
2261if test "${ac_cv_build+set}" = set; then :
2262 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002263else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002264 ac_build_alias=$build_alias
2265test "x$ac_build_alias" = x &&
2266 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2267test "x$ac_build_alias" = x &&
Benny Prijonod4306432010-05-01 22:05:41 +00002268 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002269ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Benny Prijonod4306432010-05-01 22:05:41 +00002270 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002271
2272fi
Benny Prijonod4306432010-05-01 22:05:41 +00002273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2274$as_echo "$ac_cv_build" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002275case $ac_cv_build in
2276*-*-*) ;;
Benny Prijonod4306432010-05-01 22:05:41 +00002277*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002278esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002279build=$ac_cv_build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002280ac_save_IFS=$IFS; IFS='-'
2281set x $ac_cv_build
2282shift
2283build_cpu=$1
2284build_vendor=$2
2285shift; shift
2286# Remember, the first character of IFS is used to create $*,
2287# except with old shells:
2288build_os=$*
2289IFS=$ac_save_IFS
2290case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002291
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002292
Benny Prijonod4306432010-05-01 22:05:41 +00002293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2294$as_echo_n "checking host system type... " >&6; }
2295if test "${ac_cv_host+set}" = set; then :
2296 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002297else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002298 if test "x$host_alias" = x; then
2299 ac_cv_host=$ac_cv_build
2300else
2301 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Benny Prijonod4306432010-05-01 22:05:41 +00002302 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002303fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002304
2305fi
Benny Prijonod4306432010-05-01 22:05:41 +00002306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2307$as_echo "$ac_cv_host" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002308case $ac_cv_host in
2309*-*-*) ;;
Benny Prijonod4306432010-05-01 22:05:41 +00002310*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002311esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002312host=$ac_cv_host
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002313ac_save_IFS=$IFS; IFS='-'
2314set x $ac_cv_host
2315shift
2316host_cpu=$1
2317host_vendor=$2
2318shift; shift
2319# Remember, the first character of IFS is used to create $*,
2320# except with old shells:
2321host_os=$*
2322IFS=$ac_save_IFS
2323case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002324
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002325
Benny Prijonod4306432010-05-01 22:05:41 +00002326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2327$as_echo_n "checking target system type... " >&6; }
2328if test "${ac_cv_target+set}" = set; then :
2329 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002330else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002331 if test "x$target_alias" = x; then
2332 ac_cv_target=$ac_cv_host
2333else
2334 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Benny Prijonod4306432010-05-01 22:05:41 +00002335 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002336fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002337
2338fi
Benny Prijonod4306432010-05-01 22:05:41 +00002339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2340$as_echo "$ac_cv_target" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002341case $ac_cv_target in
2342*-*-*) ;;
Benny Prijonod4306432010-05-01 22:05:41 +00002343*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002344esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002345target=$ac_cv_target
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002346ac_save_IFS=$IFS; IFS='-'
2347set x $ac_cv_target
2348shift
2349target_cpu=$1
2350target_vendor=$2
2351shift; shift
2352# Remember, the first character of IFS is used to create $*,
2353# except with old shells:
2354target_os=$*
2355IFS=$ac_save_IFS
2356case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002357
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002358
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002359# The aliases save the names the user supplied, while $host etc.
2360# will get canonicalized.
2361test -n "$target_alias" &&
2362 test "$program_prefix$program_suffix$program_transform_name" = \
2363 NONENONEs,x,x, &&
2364 program_prefix=${target_alias}-
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002365ac_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 +00002366
Benny Prijono8ec5eae2010-05-12 10:59:20 +00002367ac_config_files="$ac_config_files build.mak build/os-auto.mak build/cc-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak third_party/build/os-auto.mak third_party/build/portaudio/os-auto.mak"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002368
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002369
Benny Prijono12483112007-03-12 10:44:38 +00002370
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002371if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00002372 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002373else
2374 CFLAGS="$CFLAGS"
2375fi
2376
2377CXXFLAGS="$CFLAGS $CXXFLAGS"
2378
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002379ac_ext=c
2380ac_cpp='$CPP $CPPFLAGS'
2381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383ac_compiler_gnu=$ac_cv_c_compiler_gnu
2384if test -n "$ac_tool_prefix"; then
2385 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2386set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00002387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2388$as_echo_n "checking for $ac_word... " >&6; }
2389if test "${ac_cv_prog_CC+set}" = set; then :
2390 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002391else
2392 if test -n "$CC"; then
2393 ac_cv_prog_CC="$CC" # Let the user override the test.
2394else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396for as_dir in $PATH
2397do
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00002400 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002401 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 +00002402 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Benny Prijonod4306432010-05-01 22:05:41 +00002403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002404 break 2
2405 fi
2406done
Benny Prijonod4306432010-05-01 22:05:41 +00002407 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002408IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002409
2410fi
2411fi
2412CC=$ac_cv_prog_CC
2413if test -n "$CC"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2415$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002416else
Benny Prijonod4306432010-05-01 22:05:41 +00002417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2418$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002419fi
2420
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002421
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002422fi
2423if test -z "$ac_cv_prog_CC"; then
2424 ac_ct_CC=$CC
2425 # Extract the first word of "gcc", so it can be a program name with args.
2426set dummy gcc; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00002427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2428$as_echo_n "checking for $ac_word... " >&6; }
2429if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2430 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002431else
2432 if test -n "$ac_ct_CC"; then
2433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2434else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436for as_dir in $PATH
2437do
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00002440 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002441 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 +00002442 ac_cv_prog_ac_ct_CC="gcc"
Benny Prijonod4306432010-05-01 22:05:41 +00002443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002444 break 2
2445 fi
2446done
Benny Prijonod4306432010-05-01 22:05:41 +00002447 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002448IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002449
2450fi
2451fi
2452ac_ct_CC=$ac_cv_prog_ac_ct_CC
2453if test -n "$ac_ct_CC"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2455$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002456else
Benny Prijonod4306432010-05-01 22:05:41 +00002457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2458$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002459fi
2460
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002461 if test "x$ac_ct_CC" = x; then
2462 CC=""
2463 else
2464 case $cross_compiling:$ac_tool_warned in
2465yes:)
Benny Prijonod4306432010-05-01 22:05:41 +00002466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002468ac_tool_warned=yes ;;
2469esac
2470 CC=$ac_ct_CC
2471 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002472else
2473 CC="$ac_cv_prog_CC"
2474fi
2475
2476if test -z "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002477 if test -n "$ac_tool_prefix"; then
2478 # 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 +00002479set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00002480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2481$as_echo_n "checking for $ac_word... " >&6; }
2482if test "${ac_cv_prog_CC+set}" = set; then :
2483 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002484else
2485 if test -n "$CC"; then
2486 ac_cv_prog_CC="$CC" # Let the user override the test.
2487else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489for as_dir in $PATH
2490do
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00002493 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002494 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 +00002495 ac_cv_prog_CC="${ac_tool_prefix}cc"
Benny Prijonod4306432010-05-01 22:05:41 +00002496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002497 break 2
2498 fi
2499done
Benny Prijonod4306432010-05-01 22:05:41 +00002500 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002501IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002502
2503fi
2504fi
2505CC=$ac_cv_prog_CC
2506if test -n "$CC"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2508$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002509else
Benny Prijonod4306432010-05-01 22:05:41 +00002510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2511$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002512fi
2513
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002514
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002515 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002516fi
2517if test -z "$CC"; then
2518 # Extract the first word of "cc", so it can be a program name with args.
2519set dummy cc; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00002520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2521$as_echo_n "checking for $ac_word... " >&6; }
2522if test "${ac_cv_prog_CC+set}" = set; then :
2523 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002524else
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC="$CC" # Let the user override the test.
2527else
2528 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530for as_dir in $PATH
2531do
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00002534 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002535 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 +00002536 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2537 ac_prog_rejected=yes
2538 continue
2539 fi
2540 ac_cv_prog_CC="cc"
Benny Prijonod4306432010-05-01 22:05:41 +00002541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002542 break 2
2543 fi
2544done
Benny Prijonod4306432010-05-01 22:05:41 +00002545 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002546IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002547
2548if test $ac_prog_rejected = yes; then
2549 # We found a bogon in the path, so make sure we never use it.
2550 set dummy $ac_cv_prog_CC
2551 shift
2552 if test $# != 0; then
2553 # We chose a different compiler from the bogus one.
2554 # However, it has the same basename, so the bogon will be chosen
2555 # first if we set CC to just the basename; use the full file name.
2556 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002557 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002558 fi
2559fi
2560fi
2561fi
2562CC=$ac_cv_prog_CC
2563if test -n "$CC"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2565$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002566else
Benny Prijonod4306432010-05-01 22:05:41 +00002567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2568$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002569fi
2570
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002571
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002572fi
2573if test -z "$CC"; then
2574 if test -n "$ac_tool_prefix"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002575 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002576 do
2577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2578set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00002579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580$as_echo_n "checking for $ac_word... " >&6; }
2581if test "${ac_cv_prog_CC+set}" = set; then :
2582 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002583else
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2586else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588for as_dir in $PATH
2589do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00002592 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002593 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 +00002594 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Benny Prijonod4306432010-05-01 22:05:41 +00002595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002596 break 2
2597 fi
2598done
Benny Prijonod4306432010-05-01 22:05:41 +00002599 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002600IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002601
2602fi
2603fi
2604CC=$ac_cv_prog_CC
2605if test -n "$CC"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2607$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002608else
Benny Prijonod4306432010-05-01 22:05:41 +00002609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002611fi
2612
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002613
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002614 test -n "$CC" && break
2615 done
2616fi
2617if test -z "$CC"; then
2618 ac_ct_CC=$CC
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002619 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002620do
2621 # Extract the first word of "$ac_prog", so it can be a program name with args.
2622set dummy $ac_prog; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00002623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624$as_echo_n "checking for $ac_word... " >&6; }
2625if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2626 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002627else
2628 if test -n "$ac_ct_CC"; then
2629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2630else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH
2633do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00002636 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002637 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 +00002638 ac_cv_prog_ac_ct_CC="$ac_prog"
Benny Prijonod4306432010-05-01 22:05:41 +00002639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002640 break 2
2641 fi
2642done
Benny Prijonod4306432010-05-01 22:05:41 +00002643 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002644IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002645
2646fi
2647fi
2648ac_ct_CC=$ac_cv_prog_ac_ct_CC
2649if test -n "$ac_ct_CC"; then
Benny Prijonod4306432010-05-01 22:05:41 +00002650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2651$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002652else
Benny Prijonod4306432010-05-01 22:05:41 +00002653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002655fi
2656
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002657
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002658 test -n "$ac_ct_CC" && break
2659done
2660
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002661 if test "x$ac_ct_CC" = x; then
2662 CC=""
2663 else
2664 case $cross_compiling:$ac_tool_warned in
2665yes:)
Benny Prijonod4306432010-05-01 22:05:41 +00002666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002668ac_tool_warned=yes ;;
2669esac
2670 CC=$ac_ct_CC
2671 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002672fi
2673
2674fi
2675
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002676
Benny Prijonod4306432010-05-01 22:05:41 +00002677test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2679as_fn_error "no acceptable C compiler found in \$PATH
2680See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002681
2682# Provide some information about the compiler.
Benny Prijonod4306432010-05-01 22:05:41 +00002683$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2684set X $ac_compile
2685ac_compiler=$2
2686for ac_option in --version -v -V -qversion; do
2687 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002688case "(($ac_try" in
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2691esac
Benny Prijonod4306432010-05-01 22:05:41 +00002692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2693$as_echo "$ac_try_echo"; } >&5
2694 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002695 ac_status=$?
Benny Prijonod4306432010-05-01 22:05:41 +00002696 if test -s conftest.err; then
2697 sed '10a\
2698... rest of stderr output deleted ...
2699 10q' conftest.err >conftest.er1
2700 cat conftest.er1 >&5
Benny Prijonod4306432010-05-01 22:05:41 +00002701 fi
Benny Prijono5bbebc02010-06-15 05:21:43 +00002702 rm -f conftest.er1 conftest.err
Benny Prijonod4306432010-05-01 22:05:41 +00002703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2704 test $ac_status = 0; }
2705done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002706
Benny Prijonod4306432010-05-01 22:05:41 +00002707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002708/* end confdefs.h. */
Benny Prijono5bbebc02010-06-15 05:21:43 +00002709
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002710int
2711main ()
2712{
2713
2714 ;
2715 return 0;
2716}
2717_ACEOF
2718ac_clean_files_save=$ac_clean_files
Benny Prijono5bbebc02010-06-15 05:21:43 +00002719ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002720# Try to create an executable without -o first, disregard a.out.
2721# It will help us diagnose broken compilers, and finding out an intuition
2722# of exeext.
Benny Prijono5bbebc02010-06-15 05:21:43 +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 Prijonod4306432010-05-01 22:05:41 +00002725ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2726
2727# The possible output files:
2728ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2729
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002730ac_rmfiles=
2731for ac_file in $ac_files
2732do
2733 case $ac_file in
Benny Prijonod4306432010-05-01 22:05:41 +00002734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002735 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2736 esac
2737done
2738rm -f $ac_rmfiles
2739
Benny Prijonod4306432010-05-01 22:05:41 +00002740if { { ac_try="$ac_link_default"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002741case "(($ac_try" in
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2744esac
Benny Prijonod4306432010-05-01 22:05:41 +00002745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2746$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002747 (eval "$ac_link_default") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002748 ac_status=$?
Benny Prijonod4306432010-05-01 22:05:41 +00002749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2750 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002751 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2752# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2753# in a Makefile. We should not override ac_cv_exeext if it was cached,
2754# so that the user can short-circuit this test for compilers unknown to
2755# Autoconf.
2756for ac_file in $ac_files ''
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002757do
2758 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002759 case $ac_file in
Benny Prijonod4306432010-05-01 22:05:41 +00002760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002761 ;;
2762 [ab].out )
2763 # We found the default executable, but exeext='' is most
2764 # certainly right.
2765 break;;
2766 *.* )
Benny Prijonod4306432010-05-01 22:05:41 +00002767 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002768 then :; else
2769 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2770 fi
2771 # We set ac_cv_exeext here because the later test for it is not
2772 # safe: cross compilers may not add the suffix if given an `-o'
2773 # argument, so we may need to know it at that point already.
2774 # Even if this section looks crufty: it has the advantage of
2775 # actually working.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002776 break;;
2777 * )
2778 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002779 esac
2780done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002781test "$ac_cv_exeext" = no && ac_cv_exeext=
2782
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002783else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002784 ac_file=''
2785fi
Benny Prijonod4306432010-05-01 22:05:41 +00002786if test -z "$ac_file"; then :
Benny Prijono5bbebc02010-06-15 05:21:43 +00002787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788$as_echo "no" >&6; }
2789$as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002790sed 's/^/| /' conftest.$ac_ext >&5
2791
Benny Prijonod4306432010-05-01 22:05:41 +00002792{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2794{ as_fn_set_status 77
2795as_fn_error "C compiler cannot create executables
2796See \`config.log' for more details." "$LINENO" 5; }; }
Benny Prijono5bbebc02010-06-15 05:21:43 +00002797else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2799$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002800fi
Benny Prijono5bbebc02010-06-15 05:21:43 +00002801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2802$as_echo_n "checking for C compiler default output file name... " >&6; }
2803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2804$as_echo "$ac_file" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002805ac_exeext=$ac_cv_exeext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002806
Benny Prijono5bbebc02010-06-15 05:21:43 +00002807rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002808ac_clean_files=$ac_clean_files_save
Benny Prijonod4306432010-05-01 22:05:41 +00002809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2810$as_echo_n "checking for suffix of executables... " >&6; }
2811if { { ac_try="$ac_link"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002812case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815esac
Benny Prijonod4306432010-05-01 22:05:41 +00002816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2817$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002818 (eval "$ac_link") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002819 ac_status=$?
Benny Prijonod4306432010-05-01 22:05:41 +00002820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2821 test $ac_status = 0; }; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002822 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2823# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2824# work properly (i.e., refer to `conftest.exe'), while it won't with
2825# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002826for ac_file in conftest.exe conftest conftest.*; do
2827 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002828 case $ac_file in
Benny Prijonod4306432010-05-01 22:05:41 +00002829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002830 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002831 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002832 * ) break;;
2833 esac
2834done
2835else
Benny Prijonod4306432010-05-01 22:05:41 +00002836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2838as_fn_error "cannot compute suffix of executables: cannot compile and link
2839See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002840fi
Benny Prijono5bbebc02010-06-15 05:21:43 +00002841rm -f conftest conftest$ac_cv_exeext
Benny Prijonod4306432010-05-01 22:05:41 +00002842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2843$as_echo "$ac_cv_exeext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002844
2845rm -f conftest.$ac_ext
2846EXEEXT=$ac_cv_exeext
2847ac_exeext=$EXEEXT
Benny Prijono5bbebc02010-06-15 05:21:43 +00002848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2849/* end confdefs.h. */
2850#include <stdio.h>
2851int
2852main ()
2853{
2854FILE *f = fopen ("conftest.out", "w");
2855 return ferror (f) || fclose (f) != 0;
2856
2857 ;
2858 return 0;
2859}
2860_ACEOF
2861ac_clean_files="$ac_clean_files conftest.out"
2862# Check that the compiler produces executables we can run. If not, either
2863# the compiler is broken, or we cross compile.
2864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2865$as_echo_n "checking whether we are cross compiling... " >&6; }
2866if test "$cross_compiling" != yes; then
2867 { { ac_try="$ac_link"
2868case "(($ac_try" in
2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870 *) ac_try_echo=$ac_try;;
2871esac
2872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2873$as_echo "$ac_try_echo"; } >&5
2874 (eval "$ac_link") 2>&5
2875 ac_status=$?
2876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2877 test $ac_status = 0; }
2878 if { ac_try='./conftest$ac_cv_exeext'
2879 { { case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882esac
2883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2884$as_echo "$ac_try_echo"; } >&5
2885 (eval "$ac_try") 2>&5
2886 ac_status=$?
2887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2888 test $ac_status = 0; }; }; then
2889 cross_compiling=no
2890 else
2891 if test "$cross_compiling" = maybe; then
2892 cross_compiling=yes
2893 else
2894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2896as_fn_error "cannot run C compiled programs.
2897If you meant to cross compile, use \`--host'.
2898See \`config.log' for more details." "$LINENO" 5; }
2899 fi
2900 fi
2901fi
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2903$as_echo "$cross_compiling" >&6; }
2904
2905rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2906ac_clean_files=$ac_clean_files_save
Benny Prijonod4306432010-05-01 22:05:41 +00002907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2908$as_echo_n "checking for suffix of object files... " >&6; }
2909if test "${ac_cv_objext+set}" = set; then :
2910 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002911else
Benny Prijonod4306432010-05-01 22:05:41 +00002912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002913/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002914
2915int
2916main ()
2917{
2918
2919 ;
2920 return 0;
2921}
2922_ACEOF
2923rm -f conftest.o conftest.obj
Benny Prijonod4306432010-05-01 22:05:41 +00002924if { { ac_try="$ac_compile"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002925case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928esac
Benny Prijonod4306432010-05-01 22:05:41 +00002929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2930$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002931 (eval "$ac_compile") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002932 ac_status=$?
Benny Prijonod4306432010-05-01 22:05:41 +00002933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2934 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002935 for ac_file in conftest.o conftest.obj conftest.*; do
2936 test -f "$ac_file" || continue;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002937 case $ac_file in
Benny Prijonod4306432010-05-01 22:05:41 +00002938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002939 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2940 break;;
2941 esac
2942done
2943else
Benny Prijonod4306432010-05-01 22:05:41 +00002944 $as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002945sed 's/^/| /' conftest.$ac_ext >&5
2946
Benny Prijonod4306432010-05-01 22:05:41 +00002947{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949as_fn_error "cannot compute suffix of object files: cannot compile
2950See \`config.log' for more details." "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002951fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002952rm -f conftest.$ac_cv_objext conftest.$ac_ext
2953fi
Benny Prijonod4306432010-05-01 22:05:41 +00002954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2955$as_echo "$ac_cv_objext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002956OBJEXT=$ac_cv_objext
2957ac_objext=$OBJEXT
Benny Prijonod4306432010-05-01 22:05:41 +00002958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2959$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2960if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2961 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002962else
Benny Prijonod4306432010-05-01 22:05:41 +00002963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002964/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002965
2966int
2967main ()
2968{
2969#ifndef __GNUC__
2970 choke me
2971#endif
2972
2973 ;
2974 return 0;
2975}
2976_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00002977if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002978 ac_compiler_gnu=yes
2979else
Benny Prijonod4306432010-05-01 22:05:41 +00002980 ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002981fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002983ac_cv_c_compiler_gnu=$ac_compiler_gnu
2984
2985fi
Benny Prijonod4306432010-05-01 22:05:41 +00002986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2987$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2988if test $ac_compiler_gnu = yes; then
2989 GCC=yes
2990else
2991 GCC=
2992fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002993ac_test_CFLAGS=${CFLAGS+set}
2994ac_save_CFLAGS=$CFLAGS
Benny Prijonod4306432010-05-01 22:05:41 +00002995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2996$as_echo_n "checking whether $CC accepts -g... " >&6; }
2997if test "${ac_cv_prog_cc_g+set}" = set; then :
2998 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002999else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003000 ac_save_c_werror_flag=$ac_c_werror_flag
3001 ac_c_werror_flag=yes
3002 ac_cv_prog_cc_g=no
3003 CFLAGS="-g"
Benny Prijonod4306432010-05-01 22:05:41 +00003004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003005/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003006
3007int
3008main ()
3009{
3010
3011 ;
3012 return 0;
3013}
3014_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003015if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003016 ac_cv_prog_cc_g=yes
3017else
Benny Prijonod4306432010-05-01 22:05:41 +00003018 CFLAGS=""
3019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003020/* end confdefs.h. */
3021
3022int
3023main ()
3024{
3025
3026 ;
3027 return 0;
3028}
3029_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003030if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono46bd0842010-02-12 14:12:41 +00003031
Benny Prijonod4306432010-05-01 22:05:41 +00003032else
3033 ac_c_werror_flag=$ac_save_c_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003034 CFLAGS="-g"
Benny Prijonod4306432010-05-01 22:05:41 +00003035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003036/* end confdefs.h. */
3037
3038int
3039main ()
3040{
3041
3042 ;
3043 return 0;
3044}
3045_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003046if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003047 ac_cv_prog_cc_g=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003048fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003050fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 ac_c_werror_flag=$ac_save_c_werror_flag
3055fi
Benny Prijonod4306432010-05-01 22:05:41 +00003056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3057$as_echo "$ac_cv_prog_cc_g" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003058if test "$ac_test_CFLAGS" = set; then
3059 CFLAGS=$ac_save_CFLAGS
3060elif test $ac_cv_prog_cc_g = yes; then
3061 if test "$GCC" = yes; then
3062 CFLAGS="-g -O2"
3063 else
3064 CFLAGS="-g"
3065 fi
3066else
3067 if test "$GCC" = yes; then
3068 CFLAGS="-O2"
3069 else
3070 CFLAGS=
3071 fi
3072fi
Benny Prijonod4306432010-05-01 22:05:41 +00003073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3074$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3075if test "${ac_cv_prog_cc_c89+set}" = set; then :
3076 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003077else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003078 ac_cv_prog_cc_c89=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003079ac_save_CC=$CC
Benny Prijonod4306432010-05-01 22:05:41 +00003080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003081/* end confdefs.h. */
3082#include <stdarg.h>
3083#include <stdio.h>
3084#include <sys/types.h>
3085#include <sys/stat.h>
3086/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3087struct buf { int x; };
3088FILE * (*rcsopen) (struct buf *, struct stat *, int);
3089static char *e (p, i)
3090 char **p;
3091 int i;
3092{
3093 return p[i];
3094}
3095static char *f (char * (*g) (char **, int), char **p, ...)
3096{
3097 char *s;
3098 va_list v;
3099 va_start (v,p);
3100 s = g (p, va_arg (v,int));
3101 va_end (v);
3102 return s;
3103}
3104
3105/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3106 function prototypes and stuff, but not '\xHH' hex character constants.
3107 These don't provoke an error unfortunately, instead are silently treated
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003108 as 'x'. The following induces an error, until -std is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003109 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3110 array size at least. It's necessary to write '\x00'==0 to get something
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003111 that's true only with -std. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003112int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3113
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003114/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3115 inside strings and character constants. */
3116#define FOO(x) 'x'
3117int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3118
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003119int test (int i, double x);
3120struct s1 {int (*f) (int a);};
3121struct s2 {int (*f) (double a);};
3122int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3123int argc;
3124char **argv;
3125int
3126main ()
3127{
3128return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3129 ;
3130 return 0;
3131}
3132_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003133for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3134 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003135do
3136 CC="$ac_save_CC $ac_arg"
Benny Prijonod4306432010-05-01 22:05:41 +00003137 if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003138 ac_cv_prog_cc_c89=$ac_arg
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003139fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003140rm -f core conftest.err conftest.$ac_objext
3141 test "x$ac_cv_prog_cc_c89" != "xno" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003142done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003143rm -f conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003144CC=$ac_save_CC
3145
3146fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003147# AC_CACHE_VAL
3148case "x$ac_cv_prog_cc_c89" in
3149 x)
Benny Prijonod4306432010-05-01 22:05:41 +00003150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3151$as_echo "none needed" >&6; } ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003152 xno)
Benny Prijonod4306432010-05-01 22:05:41 +00003153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3154$as_echo "unsupported" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003155 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003156 CC="$CC $ac_cv_prog_cc_c89"
Benny Prijonod4306432010-05-01 22:05:41 +00003157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3158$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003159esac
Benny Prijonod4306432010-05-01 22:05:41 +00003160if test "x$ac_cv_prog_cc_c89" != xno; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003161
Benny Prijonod4306432010-05-01 22:05:41 +00003162fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003163
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003164ac_ext=c
3165ac_cpp='$CPP $CPPFLAGS'
3166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003170ac_ext=cpp
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003171ac_cpp='$CXXCPP $CPPFLAGS'
3172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003175if test -z "$CXX"; then
3176 if test -n "$CCC"; then
3177 CXX=$CCC
3178 else
3179 if test -n "$ac_tool_prefix"; then
3180 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 +00003181 do
3182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3183set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00003184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185$as_echo_n "checking for $ac_word... " >&6; }
3186if test "${ac_cv_prog_CXX+set}" = set; then :
3187 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003188else
3189 if test -n "$CXX"; then
3190 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3191else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193for as_dir in $PATH
3194do
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00003197 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003198 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 +00003199 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Benny Prijonod4306432010-05-01 22:05:41 +00003200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003201 break 2
3202 fi
3203done
Benny Prijonod4306432010-05-01 22:05:41 +00003204 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003205IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003206
3207fi
3208fi
3209CXX=$ac_cv_prog_CXX
3210if test -n "$CXX"; then
Benny Prijonod4306432010-05-01 22:05:41 +00003211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3212$as_echo "$CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003213else
Benny Prijonod4306432010-05-01 22:05:41 +00003214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003216fi
3217
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003218
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003219 test -n "$CXX" && break
3220 done
3221fi
3222if test -z "$CXX"; then
3223 ac_ct_CXX=$CXX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003224 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 +00003225do
3226 # Extract the first word of "$ac_prog", so it can be a program name with args.
3227set dummy $ac_prog; ac_word=$2
Benny Prijonod4306432010-05-01 22:05:41 +00003228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229$as_echo_n "checking for $ac_word... " >&6; }
3230if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3231 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003232else
3233 if test -n "$ac_ct_CXX"; then
3234 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3235else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237for as_dir in $PATH
3238do
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00003241 for ac_exec_ext in '' $ac_executable_extensions; do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003242 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 +00003243 ac_cv_prog_ac_ct_CXX="$ac_prog"
Benny Prijonod4306432010-05-01 22:05:41 +00003244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003245 break 2
3246 fi
3247done
Benny Prijonod4306432010-05-01 22:05:41 +00003248 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003249IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003250
3251fi
3252fi
3253ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3254if test -n "$ac_ct_CXX"; then
Benny Prijonod4306432010-05-01 22:05:41 +00003255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3256$as_echo "$ac_ct_CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003257else
Benny Prijonod4306432010-05-01 22:05:41 +00003258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003260fi
3261
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003262
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003263 test -n "$ac_ct_CXX" && break
3264done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003265
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003266 if test "x$ac_ct_CXX" = x; then
3267 CXX="g++"
3268 else
3269 case $cross_compiling:$ac_tool_warned in
3270yes:)
Benny Prijonod4306432010-05-01 22:05:41 +00003271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003273ac_tool_warned=yes ;;
3274esac
3275 CXX=$ac_ct_CXX
3276 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003277fi
3278
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003279 fi
3280fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003281# Provide some information about the compiler.
Benny Prijonod4306432010-05-01 22:05:41 +00003282$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3283set X $ac_compile
3284ac_compiler=$2
3285for ac_option in --version -v -V -qversion; do
3286 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003287case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290esac
Benny Prijonod4306432010-05-01 22:05:41 +00003291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292$as_echo "$ac_try_echo"; } >&5
3293 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003294 ac_status=$?
Benny Prijonod4306432010-05-01 22:05:41 +00003295 if test -s conftest.err; then
3296 sed '10a\
3297... rest of stderr output deleted ...
3298 10q' conftest.err >conftest.er1
3299 cat conftest.er1 >&5
Benny Prijonod4306432010-05-01 22:05:41 +00003300 fi
Benny Prijono5bbebc02010-06-15 05:21:43 +00003301 rm -f conftest.er1 conftest.err
Benny Prijonod4306432010-05-01 22:05:41 +00003302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3303 test $ac_status = 0; }
3304done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003305
Benny Prijonod4306432010-05-01 22:05:41 +00003306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3307$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3308if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3309 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003310else
Benny Prijonod4306432010-05-01 22:05:41 +00003311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003312/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003313
3314int
3315main ()
3316{
3317#ifndef __GNUC__
3318 choke me
3319#endif
3320
3321 ;
3322 return 0;
3323}
3324_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003325if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003326 ac_compiler_gnu=yes
3327else
Benny Prijonod4306432010-05-01 22:05:41 +00003328 ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003329fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003331ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3332
3333fi
Benny Prijonod4306432010-05-01 22:05:41 +00003334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3335$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3336if test $ac_compiler_gnu = yes; then
3337 GXX=yes
3338else
3339 GXX=
3340fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003341ac_test_CXXFLAGS=${CXXFLAGS+set}
3342ac_save_CXXFLAGS=$CXXFLAGS
Benny Prijonod4306432010-05-01 22:05:41 +00003343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3344$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3345if test "${ac_cv_prog_cxx_g+set}" = set; then :
3346 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003347else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003348 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3349 ac_cxx_werror_flag=yes
3350 ac_cv_prog_cxx_g=no
3351 CXXFLAGS="-g"
Benny Prijonod4306432010-05-01 22:05:41 +00003352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003353/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003354
3355int
3356main ()
3357{
3358
3359 ;
3360 return 0;
3361}
3362_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003363if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003364 ac_cv_prog_cxx_g=yes
3365else
Benny Prijonod4306432010-05-01 22:05:41 +00003366 CXXFLAGS=""
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003368/* end confdefs.h. */
3369
3370int
3371main ()
3372{
3373
3374 ;
3375 return 0;
3376}
3377_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003378if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijono46bd0842010-02-12 14:12:41 +00003379
Benny Prijonod4306432010-05-01 22:05:41 +00003380else
3381 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003382 CXXFLAGS="-g"
Benny Prijonod4306432010-05-01 22:05:41 +00003383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003384/* end confdefs.h. */
3385
3386int
3387main ()
3388{
3389
3390 ;
3391 return 0;
3392}
3393_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003394if ac_fn_cxx_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003395 ac_cv_prog_cxx_g=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003396fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003398fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3403fi
Benny Prijonod4306432010-05-01 22:05:41 +00003404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3405$as_echo "$ac_cv_prog_cxx_g" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003406if test "$ac_test_CXXFLAGS" = set; then
3407 CXXFLAGS=$ac_save_CXXFLAGS
3408elif test $ac_cv_prog_cxx_g = yes; then
3409 if test "$GXX" = yes; then
3410 CXXFLAGS="-g -O2"
3411 else
3412 CXXFLAGS="-g"
3413 fi
3414else
3415 if test "$GXX" = yes; then
3416 CXXFLAGS="-O2"
3417 else
3418 CXXFLAGS=
3419 fi
3420fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003421ac_ext=c
3422ac_cpp='$CPP $CPPFLAGS'
3423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003427ac_ext=c
3428ac_cpp='$CPP $CPPFLAGS'
3429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003433
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003434if test -z "$CROSS_COMPILE"; then
3435 CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'`
3436fi
3437
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003438if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003439
3440if test "$LD" = ""; then LD="$CC"; fi
3441
3442if test "$LDOUT" = ""; then LDOUT="-o"; fi
3443
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003444if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003445
3446if test "$OBJEXT" = ""; then OBJEXT='o'; fi
3447
3448if test "$LIBEXT" = ""; then LIBEXT='a'; fi
3449
3450if test "$LIBEXT2" = ""; then LIBEXT2=""; fi
3451
3452if test "$CC_OUT" = ""; then CC_OUT="-o"; fi
3453
3454if test "$CC_INC" = ""; then CC_INC="-I"; fi
3455
3456if test "$CC_DEF" = ""; then CC_DEF="-D"; fi
3457
3458if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi
3459
3460if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi
3461
3462
3463
3464
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003465
Benny Prijono0822c192008-08-21 20:59:58 +00003466
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003467
3468case $host in
Benny Prijono53847a32007-09-24 16:10:13 +00003469 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003470 if pwd -W 2&> /dev/null; then
3471 ac_pjdir=`pwd -W`
3472 else
3473 # We're probably cross-compiling mingw on Linux
3474 ac_pjdir=`pwd`
3475 fi
Benny Prijono53847a32007-09-24 16:10:13 +00003476 ;;
3477 *)
3478 ac_pjdir=`pwd`
3479 ;;
3480esac
Benny Prijono12483112007-03-12 10:44:38 +00003481
3482
Benny Prijonod4306432010-05-01 22:05:41 +00003483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
3484$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
3485if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
3486 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003487else
3488 ac_check_lib_save_LIBS=$LIBS
3489LIBS="-lpthread $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003491/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003492
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003493/* Override any GCC internal prototype to avoid an error.
3494 Use char because int might match the return type of a GCC
3495 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003496#ifdef __cplusplus
3497extern "C"
3498#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003499char pthread_create ();
3500int
3501main ()
3502{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003503return pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003504 ;
3505 return 0;
3506}
3507_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003508if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003509 ac_cv_lib_pthread_pthread_create=yes
3510else
Benny Prijonod4306432010-05-01 22:05:41 +00003511 ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003512fi
Benny Prijonod4306432010-05-01 22:05:41 +00003513rm -f core conftest.err conftest.$ac_objext \
3514 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003515LIBS=$ac_check_lib_save_LIBS
3516fi
Benny Prijonod4306432010-05-01 22:05:41 +00003517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
3518$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
3519if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003520 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003521#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003522_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003523
3524 LIBS="-lpthread $LIBS"
3525
3526fi
3527
Benny Prijonod4306432010-05-01 22:05:41 +00003528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5
3529$as_echo_n "checking for puts in -lwsock32... " >&6; }
3530if test "${ac_cv_lib_wsock32_puts+set}" = set; then :
3531 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003532else
3533 ac_check_lib_save_LIBS=$LIBS
3534LIBS="-lwsock32 $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003536/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003537
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003538/* Override any GCC internal prototype to avoid an error.
3539 Use char because int might match the return type of a GCC
3540 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003541#ifdef __cplusplus
3542extern "C"
3543#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003544char puts ();
3545int
3546main ()
3547{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003548return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003549 ;
3550 return 0;
3551}
3552_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003553if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003554 ac_cv_lib_wsock32_puts=yes
3555else
Benny Prijonod4306432010-05-01 22:05:41 +00003556 ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003557fi
Benny Prijonod4306432010-05-01 22:05:41 +00003558rm -f core conftest.err conftest.$ac_objext \
3559 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003560LIBS=$ac_check_lib_save_LIBS
3561fi
Benny Prijonod4306432010-05-01 22:05:41 +00003562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5
3563$as_echo "$ac_cv_lib_wsock32_puts" >&6; }
3564if test "x$ac_cv_lib_wsock32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003565 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003566#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003567_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003568
3569 LIBS="-lwsock32 $LIBS"
3570
3571fi
3572
Benny Prijonod4306432010-05-01 22:05:41 +00003573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5
3574$as_echo_n "checking for puts in -lws2_32... " >&6; }
3575if test "${ac_cv_lib_ws2_32_puts+set}" = set; then :
3576 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003577else
3578 ac_check_lib_save_LIBS=$LIBS
3579LIBS="-lws2_32 $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003581/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003582
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003583/* Override any GCC internal prototype to avoid an error.
3584 Use char because int might match the return type of a GCC
3585 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003586#ifdef __cplusplus
3587extern "C"
3588#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003589char puts ();
3590int
3591main ()
3592{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003593return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003594 ;
3595 return 0;
3596}
3597_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003598if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003599 ac_cv_lib_ws2_32_puts=yes
3600else
Benny Prijonod4306432010-05-01 22:05:41 +00003601 ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003602fi
Benny Prijonod4306432010-05-01 22:05:41 +00003603rm -f core conftest.err conftest.$ac_objext \
3604 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003605LIBS=$ac_check_lib_save_LIBS
3606fi
Benny Prijonod4306432010-05-01 22:05:41 +00003607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5
3608$as_echo "$ac_cv_lib_ws2_32_puts" >&6; }
3609if test "x$ac_cv_lib_ws2_32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003610 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003611#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003612_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003613
3614 LIBS="-lws2_32 $LIBS"
3615
3616fi
3617
Benny Prijonod4306432010-05-01 22:05:41 +00003618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5
3619$as_echo_n "checking for puts in -lole32... " >&6; }
3620if test "${ac_cv_lib_ole32_puts+set}" = set; then :
3621 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003622else
3623 ac_check_lib_save_LIBS=$LIBS
3624LIBS="-lole32 $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003626/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003627
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003628/* Override any GCC internal prototype to avoid an error.
3629 Use char because int might match the return type of a GCC
3630 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003631#ifdef __cplusplus
3632extern "C"
3633#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003634char puts ();
3635int
3636main ()
3637{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003638return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003639 ;
3640 return 0;
3641}
3642_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003643if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003644 ac_cv_lib_ole32_puts=yes
3645else
Benny Prijonod4306432010-05-01 22:05:41 +00003646 ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003647fi
Benny Prijonod4306432010-05-01 22:05:41 +00003648rm -f core conftest.err conftest.$ac_objext \
3649 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003650LIBS=$ac_check_lib_save_LIBS
3651fi
Benny Prijonod4306432010-05-01 22:05:41 +00003652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5
3653$as_echo "$ac_cv_lib_ole32_puts" >&6; }
3654if test "x$ac_cv_lib_ole32_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003655 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003656#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003657_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003658
3659 LIBS="-lole32 $LIBS"
3660
3661fi
3662
Benny Prijonod4306432010-05-01 22:05:41 +00003663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5
3664$as_echo_n "checking for puts in -lwinmm... " >&6; }
3665if test "${ac_cv_lib_winmm_puts+set}" = set; then :
3666 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003667else
3668 ac_check_lib_save_LIBS=$LIBS
3669LIBS="-lwinmm $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003671/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003672
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003673/* Override any GCC internal prototype to avoid an error.
3674 Use char because int might match the return type of a GCC
3675 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003676#ifdef __cplusplus
3677extern "C"
3678#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003679char puts ();
3680int
3681main ()
3682{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003683return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003684 ;
3685 return 0;
3686}
3687_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003688if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003689 ac_cv_lib_winmm_puts=yes
3690else
Benny Prijonod4306432010-05-01 22:05:41 +00003691 ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003692fi
Benny Prijonod4306432010-05-01 22:05:41 +00003693rm -f core conftest.err conftest.$ac_objext \
3694 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003695LIBS=$ac_check_lib_save_LIBS
3696fi
Benny Prijonod4306432010-05-01 22:05:41 +00003697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5
3698$as_echo "$ac_cv_lib_winmm_puts" >&6; }
3699if test "x$ac_cv_lib_winmm_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003700 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003701#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003702_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003703
3704 LIBS="-lwinmm $LIBS"
3705
3706fi
3707
Benny Prijonod4306432010-05-01 22:05:41 +00003708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5
3709$as_echo_n "checking for puts in -lsocket... " >&6; }
3710if test "${ac_cv_lib_socket_puts+set}" = set; then :
3711 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003712else
3713 ac_check_lib_save_LIBS=$LIBS
3714LIBS="-lsocket $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003716/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003717
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003718/* Override any GCC internal prototype to avoid an error.
3719 Use char because int might match the return type of a GCC
3720 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003721#ifdef __cplusplus
3722extern "C"
3723#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003724char puts ();
3725int
3726main ()
3727{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003728return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003729 ;
3730 return 0;
3731}
3732_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003733if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003734 ac_cv_lib_socket_puts=yes
3735else
Benny Prijonod4306432010-05-01 22:05:41 +00003736 ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003737fi
Benny Prijonod4306432010-05-01 22:05:41 +00003738rm -f core conftest.err conftest.$ac_objext \
3739 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003740LIBS=$ac_check_lib_save_LIBS
3741fi
Benny Prijonod4306432010-05-01 22:05:41 +00003742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5
3743$as_echo "$ac_cv_lib_socket_puts" >&6; }
3744if test "x$ac_cv_lib_socket_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003745 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003746#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003747_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003748
3749 LIBS="-lsocket $LIBS"
3750
3751fi
3752
Benny Prijonod4306432010-05-01 22:05:41 +00003753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5
3754$as_echo_n "checking for puts in -lrt... " >&6; }
3755if test "${ac_cv_lib_rt_puts+set}" = set; then :
3756 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003757else
3758 ac_check_lib_save_LIBS=$LIBS
3759LIBS="-lrt $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003761/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003762
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003763/* Override any GCC internal prototype to avoid an error.
3764 Use char because int might match the return type of a GCC
3765 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003766#ifdef __cplusplus
3767extern "C"
3768#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003769char puts ();
3770int
3771main ()
3772{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003773return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003774 ;
3775 return 0;
3776}
3777_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003778if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003779 ac_cv_lib_rt_puts=yes
3780else
Benny Prijonod4306432010-05-01 22:05:41 +00003781 ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003782fi
Benny Prijonod4306432010-05-01 22:05:41 +00003783rm -f core conftest.err conftest.$ac_objext \
3784 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003785LIBS=$ac_check_lib_save_LIBS
3786fi
Benny Prijonod4306432010-05-01 22:05:41 +00003787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5
3788$as_echo "$ac_cv_lib_rt_puts" >&6; }
3789if test "x$ac_cv_lib_rt_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003790 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003791#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003792_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003793
3794 LIBS="-lrt $LIBS"
3795
3796fi
3797
Benny Prijonod4306432010-05-01 22:05:41 +00003798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5
3799$as_echo_n "checking for puts in -lnsl... " >&6; }
3800if test "${ac_cv_lib_nsl_puts+set}" = set; then :
3801 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003802else
3803 ac_check_lib_save_LIBS=$LIBS
3804LIBS="-lnsl $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003806/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003807
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003808/* Override any GCC internal prototype to avoid an error.
3809 Use char because int might match the return type of a GCC
3810 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003811#ifdef __cplusplus
3812extern "C"
3813#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003814char puts ();
3815int
3816main ()
3817{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003818return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003819 ;
3820 return 0;
3821}
3822_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003823if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003824 ac_cv_lib_nsl_puts=yes
3825else
Benny Prijonod4306432010-05-01 22:05:41 +00003826 ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003827fi
Benny Prijonod4306432010-05-01 22:05:41 +00003828rm -f core conftest.err conftest.$ac_objext \
3829 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003830LIBS=$ac_check_lib_save_LIBS
3831fi
Benny Prijonod4306432010-05-01 22:05:41 +00003832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5
3833$as_echo "$ac_cv_lib_nsl_puts" >&6; }
3834if test "x$ac_cv_lib_nsl_puts" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003835 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003836#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003837_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003838
3839 LIBS="-lnsl $LIBS"
3840
3841fi
3842
Benny Prijonod4306432010-05-01 22:05:41 +00003843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3844$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3845if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
3846 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003847else
3848 ac_check_lib_save_LIBS=$LIBS
3849LIBS="-luuid $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003851/* end confdefs.h. */
3852
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003853/* Override any GCC internal prototype to avoid an error.
3854 Use char because int might match the return type of a GCC
3855 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003856#ifdef __cplusplus
3857extern "C"
3858#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003859char uuid_generate ();
3860int
3861main ()
3862{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003863return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003864 ;
3865 return 0;
3866}
3867_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003868if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003869 ac_cv_lib_uuid_uuid_generate=yes
3870else
Benny Prijonod4306432010-05-01 22:05:41 +00003871 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003872fi
Benny Prijonod4306432010-05-01 22:05:41 +00003873rm -f core conftest.err conftest.$ac_objext \
3874 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003875LIBS=$ac_check_lib_save_LIBS
3876fi
Benny Prijonod4306432010-05-01 22:05:41 +00003877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3878$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
3879if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003880 cat >>confdefs.h <<_ACEOF
3881#define HAVE_LIBUUID 1
3882_ACEOF
3883
3884 LIBS="-luuid $LIBS"
3885
3886fi
3887
Benny Prijonod4306432010-05-01 22:05:41 +00003888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3889$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3890if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
3891 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003892else
3893 ac_check_lib_save_LIBS=$LIBS
3894LIBS="-luuid $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00003895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003896/* end confdefs.h. */
3897
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003898/* Override any GCC internal prototype to avoid an error.
3899 Use char because int might match the return type of a GCC
3900 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003901#ifdef __cplusplus
3902extern "C"
3903#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003904char uuid_generate ();
3905int
3906main ()
3907{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003908return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003909 ;
3910 return 0;
3911}
3912_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003913if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003914 ac_cv_lib_uuid_uuid_generate=yes
3915else
Benny Prijonod4306432010-05-01 22:05:41 +00003916 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003917fi
Benny Prijonod4306432010-05-01 22:05:41 +00003918rm -f core conftest.err conftest.$ac_objext \
3919 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003920LIBS=$ac_check_lib_save_LIBS
3921fi
Benny Prijonod4306432010-05-01 22:05:41 +00003922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3923$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
3924if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003925 ac_has_uuid_lib=1
3926fi
3927
3928
Benny Prijonod4306432010-05-01 22:05:41 +00003929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5
3930$as_echo "Setting PJ_M_NAME to $target_cpu" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003931cat >>confdefs.h <<_ACEOF
3932#define PJ_M_NAME "$target_cpu"
3933_ACEOF
3934
3935
Benny Prijonod4306432010-05-01 22:05:41 +00003936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5
3937$as_echo_n "checking memory alignment... " >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003938case $target in
Benny Prijonob18e9502010-05-19 05:51:38 +00003939 sparc64-* | ia64-* | x86_64-* )
Benny Prijonod4306432010-05-01 22:05:41 +00003940 $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00003941
Benny Prijonod4306432010-05-01 22:05:41 +00003942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5
3943$as_echo "8 bytes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003944 ;;
3945 * )
Benny Prijonod4306432010-05-01 22:05:41 +00003946 $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00003947
Benny Prijonod4306432010-05-01 22:05:41 +00003948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5
3949$as_echo "4 bytes (default)" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00003950 ;;
3951esac
3952
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003953
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003954ac_ext=c
3955ac_cpp='$CPP $CPPFLAGS'
3956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijonod4306432010-05-01 22:05:41 +00003959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3960$as_echo_n "checking how to run the C preprocessor... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003961# On Suns, sometimes $CPP names a directory.
3962if test -n "$CPP" && test -d "$CPP"; then
3963 CPP=
3964fi
3965if test -z "$CPP"; then
Benny Prijonod4306432010-05-01 22:05:41 +00003966 if test "${ac_cv_prog_CPP+set}" = set; then :
3967 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003968else
3969 # Double quotes because CPP needs to be expanded
3970 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3971 do
3972 ac_preproc_ok=false
3973for ac_c_preproc_warn_flag in '' yes
3974do
3975 # Use a header file that comes with gcc, so configuring glibc
3976 # with a fresh cross-compiler works.
3977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3978 # <limits.h> exists even on freestanding compilers.
3979 # On the NeXT, cc -E runs the code through the compiler's parser,
3980 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijonod4306432010-05-01 22:05:41 +00003981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003982/* end confdefs.h. */
3983#ifdef __STDC__
3984# include <limits.h>
3985#else
3986# include <assert.h>
3987#endif
3988 Syntax error
3989_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00003990if ac_fn_c_try_cpp "$LINENO"; then :
Benny Prijono46bd0842010-02-12 14:12:41 +00003991
Benny Prijonod4306432010-05-01 22:05:41 +00003992else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003993 # Broken: fails on valid input.
3994continue
3995fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003996rm -f conftest.err conftest.$ac_ext
3997
3998 # OK, works on sane cases. Now check whether nonexistent headers
3999 # can be detected and how.
Benny Prijonod4306432010-05-01 22:05:41 +00004000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004001/* end confdefs.h. */
4002#include <ac_nonexistent.h>
4003_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004004if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004005 # Broken: success on invalid input.
4006continue
4007else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004008 # Passes both tests.
4009ac_preproc_ok=:
4010break
4011fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004012rm -f conftest.err conftest.$ac_ext
4013
4014done
4015# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4016rm -f conftest.err conftest.$ac_ext
Benny Prijonod4306432010-05-01 22:05:41 +00004017if $ac_preproc_ok; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004018 break
4019fi
4020
4021 done
4022 ac_cv_prog_CPP=$CPP
4023
4024fi
4025 CPP=$ac_cv_prog_CPP
4026else
4027 ac_cv_prog_CPP=$CPP
4028fi
Benny Prijonod4306432010-05-01 22:05:41 +00004029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4030$as_echo "$CPP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004031ac_preproc_ok=false
4032for ac_c_preproc_warn_flag in '' yes
4033do
4034 # Use a header file that comes with gcc, so configuring glibc
4035 # with a fresh cross-compiler works.
4036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4037 # <limits.h> exists even on freestanding compilers.
4038 # On the NeXT, cc -E runs the code through the compiler's parser,
4039 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijonod4306432010-05-01 22:05:41 +00004040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004041/* end confdefs.h. */
4042#ifdef __STDC__
4043# include <limits.h>
4044#else
4045# include <assert.h>
4046#endif
4047 Syntax error
4048_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004049if ac_fn_c_try_cpp "$LINENO"; then :
Benny Prijono46bd0842010-02-12 14:12:41 +00004050
Benny Prijonod4306432010-05-01 22:05:41 +00004051else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004052 # Broken: fails on valid input.
4053continue
4054fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004055rm -f conftest.err conftest.$ac_ext
4056
4057 # OK, works on sane cases. Now check whether nonexistent headers
4058 # can be detected and how.
Benny Prijonod4306432010-05-01 22:05:41 +00004059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004060/* end confdefs.h. */
4061#include <ac_nonexistent.h>
4062_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004063if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004064 # Broken: success on invalid input.
4065continue
4066else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004067 # Passes both tests.
4068ac_preproc_ok=:
4069break
4070fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004071rm -f conftest.err conftest.$ac_ext
4072
4073done
4074# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4075rm -f conftest.err conftest.$ac_ext
Benny Prijonod4306432010-05-01 22:05:41 +00004076if $ac_preproc_ok; then :
4077
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004078else
Benny Prijonod4306432010-05-01 22:05:41 +00004079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4081as_fn_error "C preprocessor \"$CPP\" fails sanity check
4082See \`config.log' for more details." "$LINENO" 5; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004083fi
4084
4085ac_ext=c
4086ac_cpp='$CPP $CPPFLAGS'
4087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090
4091
Benny Prijonod4306432010-05-01 22:05:41 +00004092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4093$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4094if test "${ac_cv_path_GREP+set}" = set; then :
4095 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004096else
Benny Prijonod4306432010-05-01 22:05:41 +00004097 if test -z "$GREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004098 ac_path_GREP_found=false
Benny Prijonod4306432010-05-01 22:05:41 +00004099 # Loop through the user's path and test for each of PROGNAME-LIST
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004101for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4102do
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00004105 for ac_prog in grep ggrep; do
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4108 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4109# Check for GNU ac_path_GREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004110 # Check for GNU $ac_path_GREP
4111case `"$ac_path_GREP" --version 2>&1` in
4112*GNU*)
4113 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4114*)
4115 ac_count=0
Benny Prijonod4306432010-05-01 22:05:41 +00004116 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004117 while :
4118 do
4119 cat "conftest.in" "conftest.in" >"conftest.tmp"
4120 mv "conftest.tmp" "conftest.in"
4121 cp "conftest.in" "conftest.nl"
Benny Prijonod4306432010-05-01 22:05:41 +00004122 $as_echo 'GREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004123 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijonod4306432010-05-01 22:05:41 +00004125 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004126 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4127 # Best one so far, save it but keep looking for a better one
4128 ac_cv_path_GREP="$ac_path_GREP"
4129 ac_path_GREP_max=$ac_count
4130 fi
4131 # 10*(2^10) chars as input seems more than enough
4132 test $ac_count -gt 10 && break
4133 done
4134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4135esac
4136
Benny Prijonod4306432010-05-01 22:05:41 +00004137 $ac_path_GREP_found && break 3
4138 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004139 done
Benny Prijonod4306432010-05-01 22:05:41 +00004140 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004141IFS=$as_save_IFS
Benny Prijonod4306432010-05-01 22:05:41 +00004142 if test -z "$ac_cv_path_GREP"; then
4143 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4144 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004145else
4146 ac_cv_path_GREP=$GREP
4147fi
4148
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004149fi
Benny Prijonod4306432010-05-01 22:05:41 +00004150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4151$as_echo "$ac_cv_path_GREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004152 GREP="$ac_cv_path_GREP"
4153
4154
Benny Prijonod4306432010-05-01 22:05:41 +00004155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4156$as_echo_n "checking for egrep... " >&6; }
4157if test "${ac_cv_path_EGREP+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004159else
4160 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4161 then ac_cv_path_EGREP="$GREP -E"
4162 else
Benny Prijonod4306432010-05-01 22:05:41 +00004163 if test -z "$EGREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004164 ac_path_EGREP_found=false
Benny Prijonod4306432010-05-01 22:05:41 +00004165 # Loop through the user's path and test for each of PROGNAME-LIST
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004167for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4168do
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00004171 for ac_prog in egrep; do
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4174 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4175# Check for GNU ac_path_EGREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004176 # Check for GNU $ac_path_EGREP
4177case `"$ac_path_EGREP" --version 2>&1` in
4178*GNU*)
4179 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4180*)
4181 ac_count=0
Benny Prijonod4306432010-05-01 22:05:41 +00004182 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004183 while :
4184 do
4185 cat "conftest.in" "conftest.in" >"conftest.tmp"
4186 mv "conftest.tmp" "conftest.in"
4187 cp "conftest.in" "conftest.nl"
Benny Prijonod4306432010-05-01 22:05:41 +00004188 $as_echo 'EGREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004189 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijonod4306432010-05-01 22:05:41 +00004191 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004192 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4193 # Best one so far, save it but keep looking for a better one
4194 ac_cv_path_EGREP="$ac_path_EGREP"
4195 ac_path_EGREP_max=$ac_count
4196 fi
4197 # 10*(2^10) chars as input seems more than enough
4198 test $ac_count -gt 10 && break
4199 done
4200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4201esac
4202
Benny Prijonod4306432010-05-01 22:05:41 +00004203 $ac_path_EGREP_found && break 3
4204 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004205 done
Benny Prijonod4306432010-05-01 22:05:41 +00004206 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004207IFS=$as_save_IFS
Benny Prijonod4306432010-05-01 22:05:41 +00004208 if test -z "$ac_cv_path_EGREP"; then
4209 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4210 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004211else
4212 ac_cv_path_EGREP=$EGREP
4213fi
4214
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004215 fi
4216fi
Benny Prijonod4306432010-05-01 22:05:41 +00004217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4218$as_echo "$ac_cv_path_EGREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004219 EGREP="$ac_cv_path_EGREP"
4220
4221
Benny Prijonod4306432010-05-01 22:05:41 +00004222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4223$as_echo_n "checking for ANSI C header files... " >&6; }
4224if test "${ac_cv_header_stdc+set}" = set; then :
4225 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004226else
Benny Prijonod4306432010-05-01 22:05:41 +00004227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004228/* end confdefs.h. */
4229#include <stdlib.h>
4230#include <stdarg.h>
4231#include <string.h>
4232#include <float.h>
4233
4234int
4235main ()
4236{
4237
4238 ;
4239 return 0;
4240}
4241_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004242if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004243 ac_cv_header_stdc=yes
4244else
Benny Prijonod4306432010-05-01 22:05:41 +00004245 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004246fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248
4249if test $ac_cv_header_stdc = yes; then
4250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Benny Prijonod4306432010-05-01 22:05:41 +00004251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004252/* end confdefs.h. */
4253#include <string.h>
4254
4255_ACEOF
4256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijonod4306432010-05-01 22:05:41 +00004257 $EGREP "memchr" >/dev/null 2>&1; then :
4258
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004259else
4260 ac_cv_header_stdc=no
4261fi
4262rm -f conftest*
4263
4264fi
4265
4266if test $ac_cv_header_stdc = yes; then
4267 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Benny Prijonod4306432010-05-01 22:05:41 +00004268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004269/* end confdefs.h. */
4270#include <stdlib.h>
4271
4272_ACEOF
4273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijonod4306432010-05-01 22:05:41 +00004274 $EGREP "free" >/dev/null 2>&1; then :
4275
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004276else
4277 ac_cv_header_stdc=no
4278fi
4279rm -f conftest*
4280
4281fi
4282
4283if test $ac_cv_header_stdc = yes; then
4284 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Benny Prijonod4306432010-05-01 22:05:41 +00004285 if test "$cross_compiling" = yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004286 :
4287else
Benny Prijonod4306432010-05-01 22:05:41 +00004288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004289/* end confdefs.h. */
4290#include <ctype.h>
4291#include <stdlib.h>
4292#if ((' ' & 0x0FF) == 0x020)
4293# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4294# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4295#else
4296# define ISLOWER(c) \
4297 (('a' <= (c) && (c) <= 'i') \
4298 || ('j' <= (c) && (c) <= 'r') \
4299 || ('s' <= (c) && (c) <= 'z'))
4300# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4301#endif
4302
4303#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4304int
4305main ()
4306{
4307 int i;
4308 for (i = 0; i < 256; i++)
4309 if (XOR (islower (i), ISLOWER (i))
4310 || toupper (i) != TOUPPER (i))
4311 return 2;
4312 return 0;
4313}
4314_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004315if ac_fn_c_try_run "$LINENO"; then :
4316
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004317else
Benny Prijonod4306432010-05-01 22:05:41 +00004318 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004319fi
Benny Prijonod4306432010-05-01 22:05:41 +00004320rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4321 conftest.$ac_objext conftest.beam conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004322fi
4323
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004324fi
4325fi
Benny Prijonod4306432010-05-01 22:05:41 +00004326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4327$as_echo "$ac_cv_header_stdc" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004328if test $ac_cv_header_stdc = yes; then
4329
Benny Prijonod4306432010-05-01 22:05:41 +00004330$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004331
4332fi
4333
4334# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004335for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4336 inttypes.h stdint.h unistd.h
Benny Prijonod4306432010-05-01 22:05:41 +00004337do :
4338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4339ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4340"
4341eval as_val=\$$as_ac_Header
4342 if test "x$as_val" = x""yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004343 cat >>confdefs.h <<_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004344#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004345_ACEOF
4346
4347fi
4348
4349done
4350
4351
Benny Prijonod4306432010-05-01 22:05:41 +00004352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4353$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4354if test "${ac_cv_c_bigendian+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004356else
Benny Prijonod4306432010-05-01 22:05:41 +00004357 ac_cv_c_bigendian=unknown
4358 # See if we're dealing with a universal compiler.
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360/* end confdefs.h. */
4361#ifndef __APPLE_CC__
4362 not a universal capable compiler
4363 #endif
4364 typedef int dummy;
4365
Benny Prijonod5233702010-01-13 13:09:45 +00004366_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004367if ac_fn_c_try_compile "$LINENO"; then :
4368
4369 # Check for potential -arch flags. It is not universal unless
4370 # there are at least two -arch flags with different values.
4371 ac_arch=
4372 ac_prev=
4373 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4374 if test -n "$ac_prev"; then
4375 case $ac_word in
4376 i?86 | x86_64 | ppc | ppc64)
4377 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4378 ac_arch=$ac_word
4379 else
4380 ac_cv_c_bigendian=universal
4381 break
4382 fi
4383 ;;
4384 esac
4385 ac_prev=
4386 elif test "x$ac_word" = "x-arch"; then
4387 ac_prev=arch
4388 fi
4389 done
4390fi
4391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392 if test $ac_cv_c_bigendian = unknown; then
4393 # See if sys/param.h defines the BYTE_ORDER macro.
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004395/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004396#include <sys/types.h>
Benny Prijonod4306432010-05-01 22:05:41 +00004397 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004398
4399int
4400main ()
4401{
Benny Prijonod4306432010-05-01 22:05:41 +00004402#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4403 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4404 && LITTLE_ENDIAN)
4405 bogus endian macros
4406 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004407
4408 ;
4409 return 0;
4410}
4411_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004412if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004413 # It does; now see whether it defined to BIG_ENDIAN or not.
Benny Prijonod4306432010-05-01 22:05:41 +00004414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004415/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004416#include <sys/types.h>
Benny Prijonod4306432010-05-01 22:05:41 +00004417 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004418
4419int
4420main ()
4421{
4422#if BYTE_ORDER != BIG_ENDIAN
Benny Prijonod4306432010-05-01 22:05:41 +00004423 not big endian
4424 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004425
4426 ;
4427 return 0;
4428}
4429_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004430if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004431 ac_cv_c_bigendian=yes
4432else
Benny Prijonod4306432010-05-01 22:05:41 +00004433 ac_cv_c_bigendian=no
Benny Prijono46bd0842010-02-12 14:12:41 +00004434fi
Benny Prijono46bd0842010-02-12 14:12:41 +00004435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonod4306432010-05-01 22:05:41 +00004436fi
4437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 fi
4439 if test $ac_cv_c_bigendian = unknown; then
4440 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono46bd0842010-02-12 14:12:41 +00004442/* end confdefs.h. */
Benny Prijonod4306432010-05-01 22:05:41 +00004443#include <limits.h>
4444
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004445int
4446main ()
4447{
Benny Prijonod4306432010-05-01 22:05:41 +00004448#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4449 bogus endian macros
4450 #endif
4451
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004452 ;
4453 return 0;
4454}
4455_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004456if ac_fn_c_try_compile "$LINENO"; then :
4457 # It does; now see whether it defined to _BIG_ENDIAN or not.
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459/* end confdefs.h. */
4460#include <limits.h>
4461
4462int
4463main ()
4464{
4465#ifndef _BIG_ENDIAN
4466 not big endian
4467 #endif
4468
4469 ;
4470 return 0;
4471}
4472_ACEOF
4473if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004474 ac_cv_c_bigendian=yes
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004475else
Benny Prijonod4306432010-05-01 22:05:41 +00004476 ac_cv_c_bigendian=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004477fi
Benny Prijonod4306432010-05-01 22:05:41 +00004478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479fi
4480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481 fi
4482 if test $ac_cv_c_bigendian = unknown; then
4483 # Compile a test program.
4484 if test "$cross_compiling" = yes; then :
4485 # Try to guess by grepping values from an object file.
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487/* end confdefs.h. */
4488short int ascii_mm[] =
4489 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4490 short int ascii_ii[] =
4491 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4492 int use_ascii (int i) {
4493 return ascii_mm[i] + ascii_ii[i];
4494 }
4495 short int ebcdic_ii[] =
4496 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4497 short int ebcdic_mm[] =
4498 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4499 int use_ebcdic (int i) {
4500 return ebcdic_mm[i] + ebcdic_ii[i];
4501 }
4502 extern int foo;
Benny Prijono46bd0842010-02-12 14:12:41 +00004503
Benny Prijonod4306432010-05-01 22:05:41 +00004504int
4505main ()
4506{
4507return use_ascii (foo) == use_ebcdic (foo);
4508 ;
4509 return 0;
4510}
4511_ACEOF
4512if ac_fn_c_try_compile "$LINENO"; then :
4513 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4514 ac_cv_c_bigendian=yes
4515 fi
4516 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4517 if test "$ac_cv_c_bigendian" = unknown; then
4518 ac_cv_c_bigendian=no
4519 else
4520 # finding both strings is unlikely to happen, but who knows?
4521 ac_cv_c_bigendian=unknown
4522 fi
4523 fi
4524fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004526else
Benny Prijonod4306432010-05-01 22:05:41 +00004527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004528/* end confdefs.h. */
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004529$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004530int
4531main ()
4532{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004533
Benny Prijonod4306432010-05-01 22:05:41 +00004534 /* Are we little or big endian? From Harbison&Steele. */
4535 union
4536 {
4537 long int l;
4538 char c[sizeof (long int)];
4539 } u;
4540 u.l = 1;
4541 return u.c[sizeof (long int) - 1] == 1;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004542
4543 ;
4544 return 0;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004545}
4546_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004547if ac_fn_c_try_run "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004548 ac_cv_c_bigendian=no
4549else
Benny Prijonod4306432010-05-01 22:05:41 +00004550 ac_cv_c_bigendian=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004551fi
Benny Prijonod4306432010-05-01 22:05:41 +00004552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4553 conftest.$ac_objext conftest.beam conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004554fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004555
Benny Prijonod4306432010-05-01 22:05:41 +00004556 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004557fi
Benny Prijonod4306432010-05-01 22:05:41 +00004558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4559$as_echo "$ac_cv_c_bigendian" >&6; }
4560 case $ac_cv_c_bigendian in #(
4561 yes)
4562 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4563;; #(
4564 no)
4565 ;; #(
4566 universal)
Benny Prijonod5233702010-01-13 13:09:45 +00004567
Benny Prijonod4306432010-05-01 22:05:41 +00004568$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Benny Prijonod5233702010-01-13 13:09:45 +00004569
Benny Prijonod4306432010-05-01 22:05:41 +00004570 ;; #(
4571 *)
4572 as_fn_error "unknown endianness
4573 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4574 esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004575
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004576
4577case $target in
4578 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonod4306432010-05-01 22:05:41 +00004579 $as_echo "#define PJ_WIN32 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004580
Benny Prijonod4306432010-05-01 22:05:41 +00004581 $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004582
Benny Prijonod4306432010-05-01 22:05:41 +00004583 $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004584
4585 ;;
4586 *darwin*)
Benny Prijonod4306432010-05-01 22:05:41 +00004587 $as_echo "#define PJ_DARWINOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004588
4589 ;;
4590 *linux*)
Benny Prijonod4306432010-05-01 22:05:41 +00004591 $as_echo "#define PJ_LINUX 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004592
4593 ;;
4594 *rtems*)
Benny Prijonod4306432010-05-01 22:05:41 +00004595 $as_echo "#define PJ_RTEMS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004596
4597 ;;
4598 *sunos* | *solaris* )
Benny Prijonod4306432010-05-01 22:05:41 +00004599 $as_echo "#define PJ_SUNOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004600
4601 ;;
4602 *)
4603 ;;
4604esac
4605
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004606
4607
4608
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004609# Check whether --enable-floating-point was given.
Benny Prijonod4306432010-05-01 22:05:41 +00004610if test "${enable_floating_point+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004611 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
Benny Prijonod4306432010-05-01 22:05:41 +00004612 $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004613
Benny Prijonod4306432010-05-01 22:05:41 +00004614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5
4615$as_echo "Checking if floating point is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004616 fi
4617else
4618
Benny Prijonod4306432010-05-01 22:05:41 +00004619 $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004620
Benny Prijonod4306432010-05-01 22:05:41 +00004621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5
4622$as_echo "Checking if floating point is disabled... no" >&6; }
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
4624$as_echo_n "checking for fmod in -lm... " >&6; }
4625if test "${ac_cv_lib_m_fmod+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004627else
4628 ac_check_lib_save_LIBS=$LIBS
4629LIBS="-lm $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00004630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004631/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004632
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004633/* Override any GCC internal prototype to avoid an error.
4634 Use char because int might match the return type of a GCC
4635 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004636#ifdef __cplusplus
4637extern "C"
4638#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004639char fmod ();
4640int
4641main ()
4642{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004643return fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004644 ;
4645 return 0;
4646}
4647_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00004648if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004649 ac_cv_lib_m_fmod=yes
4650else
Benny Prijonod4306432010-05-01 22:05:41 +00004651 ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004652fi
Benny Prijonod4306432010-05-01 22:05:41 +00004653rm -f core conftest.err conftest.$ac_objext \
4654 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004655LIBS=$ac_check_lib_save_LIBS
4656fi
Benny Prijonod4306432010-05-01 22:05:41 +00004657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
4658$as_echo "$ac_cv_lib_m_fmod" >&6; }
4659if test "x$ac_cv_lib_m_fmod" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004660 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004661#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004662_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004663
4664 LIBS="-lm $LIBS"
4665
4666fi
4667
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004668
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004669fi
4670
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004671
4672
Benny Prijonod4306432010-05-01 22:05:41 +00004673ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
4674if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
4675 $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004676
4677fi
4678
4679
Benny Prijonod4306432010-05-01 22:05:41 +00004680ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
4681if test "x$ac_cv_header_assert_h" = x""yes; then :
4682 $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004683
4684fi
4685
4686
Benny Prijonod4306432010-05-01 22:05:41 +00004687ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4688if test "x$ac_cv_header_ctype_h" = x""yes; then :
4689 $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004690
4691fi
4692
4693
4694
4695case $target in
4696 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonod4306432010-05-01 22:05:41 +00004697 $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004698
4699 ;;
4700 *)
Benny Prijonod4306432010-05-01 22:05:41 +00004701 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4702if test "x$ac_cv_header_errno_h" = x""yes; then :
4703 $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004704
4705fi
4706
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004707
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004708 ;;
4709esac
4710
Benny Prijonod4306432010-05-01 22:05:41 +00004711ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4712if test "x$ac_cv_header_fcntl_h" = x""yes; then :
4713 $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h
Benny Prijono1d481ab2008-01-24 15:27:30 +00004714
4715fi
4716
4717
Benny Prijonod4306432010-05-01 22:05:41 +00004718ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default"
4719if test "x$ac_cv_header_linux_socket_h" = x""yes; then :
4720 $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004721
4722fi
4723
4724
Benny Prijonod4306432010-05-01 22:05:41 +00004725ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4726if test "x$ac_cv_header_malloc_h" = x""yes; then :
4727 $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004728
4729fi
4730
4731
Benny Prijonod4306432010-05-01 22:05:41 +00004732ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
4733if test "x$ac_cv_header_netdb_h" = x""yes; then :
4734 $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004735
4736fi
4737
4738
Benny Prijonod4306432010-05-01 22:05:41 +00004739ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
4740if test "x$ac_cv_header_netinet_in_systm_h" = x""yes; then :
4741 $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h
Benny Prijono37fc9de2008-08-04 14:45:02 +00004742
4743fi
4744
4745
Benny Prijonod4306432010-05-01 22:05:41 +00004746ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
4747if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
4748 $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004749
4750fi
4751
4752
Benny Prijonod4306432010-05-01 22:05:41 +00004753ac_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 +00004754 # include <sys/types.h>
4755 #endif
4756 #if PJ_HAS_NETINET_IN_SYSTM_H
Benny Prijono37fc9de2008-08-04 14:45:02 +00004757 # include <netinet/in_systm.h>
4758 #endif
Benny Prijonod5233702010-01-13 13:09:45 +00004759 #if PJ_HAS_NETINET_IN_H
4760 # include <netinet/in.h>
4761 #endif
Benny Prijono37fc9de2008-08-04 14:45:02 +00004762
Benny Prijonod4306432010-05-01 22:05:41 +00004763"
4764if test "x$ac_cv_header_netinet_ip_h" = x""yes; then :
4765 $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004766
Benny Prijono46bd0842010-02-12 14:12:41 +00004767fi
4768
Benny Prijonof63a2552007-02-01 00:36:52 +00004769
Benny Prijonod4306432010-05-01 22:05:41 +00004770ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
4771if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then :
4772 $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004773
Benny Prijono46bd0842010-02-12 14:12:41 +00004774fi
4775
Benny Prijono46bd0842010-02-12 14:12:41 +00004776
Benny Prijonod4306432010-05-01 22:05:41 +00004777ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
4778if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
Benny Prijono5bbebc02010-06-15 05:21:43 +00004779 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
4780if test "x$ac_cv_func_getifaddrs" = x""yes; then :
Benny Prijonod4306432010-05-01 22:05:41 +00004781 $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004782
Benny Prijono46bd0842010-02-12 14:12:41 +00004783fi
4784
Benny Prijono5bbebc02010-06-15 05:21:43 +00004785fi
4786
Benny Prijono46bd0842010-02-12 14:12:41 +00004787
Benny Prijonod4306432010-05-01 22:05:41 +00004788ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
4789if test "x$ac_cv_header_semaphore_h" = x""yes; then :
4790 $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h
Benny Prijono1d61ba52009-10-24 00:00:40 +00004791
Benny Prijono1d61ba52009-10-24 00:00:40 +00004792fi
4793
Benny Prijono1d61ba52009-10-24 00:00:40 +00004794
Benny Prijonod4306432010-05-01 22:05:41 +00004795ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
4796if test "x$ac_cv_header_setjmp_h" = x""yes; then :
4797 $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004798
Benny Prijono46bd0842010-02-12 14:12:41 +00004799fi
4800
Benny Prijono46bd0842010-02-12 14:12:41 +00004801
Benny Prijonod4306432010-05-01 22:05:41 +00004802ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
4803if test "x$ac_cv_header_stdarg_h" = x""yes; then :
4804 $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004805
Benny Prijono46bd0842010-02-12 14:12:41 +00004806fi
4807
Benny Prijono46bd0842010-02-12 14:12:41 +00004808
Benny Prijonod4306432010-05-01 22:05:41 +00004809ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
4810if test "x$ac_cv_header_stddef_h" = x""yes; then :
4811 $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h
Benny Prijono1d61ba52009-10-24 00:00:40 +00004812
Benny Prijono1d61ba52009-10-24 00:00:40 +00004813fi
4814
Benny Prijono1d61ba52009-10-24 00:00:40 +00004815
Benny Prijonod4306432010-05-01 22:05:41 +00004816ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4817if test "x$ac_cv_header_stdio_h" = x""yes; then :
4818 $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004819
Benny Prijono46bd0842010-02-12 14:12:41 +00004820fi
4821
Benny Prijono46bd0842010-02-12 14:12:41 +00004822
Benny Prijonod4306432010-05-01 22:05:41 +00004823ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4824if test "x$ac_cv_header_stdint_h" = x""yes; then :
4825 $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004826
Benny Prijono46bd0842010-02-12 14:12:41 +00004827fi
4828
Benny Prijono46bd0842010-02-12 14:12:41 +00004829
Benny Prijonod4306432010-05-01 22:05:41 +00004830ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4831if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4832 $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h
Benny Prijono1d61ba52009-10-24 00:00:40 +00004833
4834fi
4835
4836
Benny Prijonod4306432010-05-01 22:05:41 +00004837ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4838if test "x$ac_cv_header_string_h" = x""yes; then :
4839 $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004840
Benny Prijono46bd0842010-02-12 14:12:41 +00004841fi
4842
Benny Prijono46bd0842010-02-12 14:12:41 +00004843
Benny Prijonod4306432010-05-01 22:05:41 +00004844ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4845if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
4846 $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004847
Benny Prijono46bd0842010-02-12 14:12:41 +00004848fi
4849
Benny Prijono46bd0842010-02-12 14:12:41 +00004850
Benny Prijonod4306432010-05-01 22:05:41 +00004851ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
4852if test "x$ac_cv_header_sys_select_h" = x""yes; then :
4853 $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004854
Benny Prijono46bd0842010-02-12 14:12:41 +00004855fi
Benny Prijono46bd0842010-02-12 14:12:41 +00004856
Benny Prijono1d65f702007-12-03 04:03:17 +00004857
Benny Prijonod4306432010-05-01 22:05:41 +00004858ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
4859if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
4860 $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004861
Benny Prijono46bd0842010-02-12 14:12:41 +00004862fi
Benny Prijono46bd0842010-02-12 14:12:41 +00004863
Benny Prijono46bd0842010-02-12 14:12:41 +00004864
Benny Prijonod4306432010-05-01 22:05:41 +00004865ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
4866if test "x$ac_cv_header_sys_time_h" = x""yes; then :
4867 $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004868
Benny Prijono46bd0842010-02-12 14:12:41 +00004869fi
4870
Benny Prijono46bd0842010-02-12 14:12:41 +00004871
Benny Prijonod4306432010-05-01 22:05:41 +00004872ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
4873if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
4874 $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004875
Benny Prijono46bd0842010-02-12 14:12:41 +00004876fi
Benny Prijono46bd0842010-02-12 14:12:41 +00004877
Benny Prijono1d65f702007-12-03 04:03:17 +00004878
Benny Prijonod4306432010-05-01 22:05:41 +00004879ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4880if test "x$ac_cv_header_sys_types_h" = x""yes; then :
4881 $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004882
Benny Prijono46bd0842010-02-12 14:12:41 +00004883fi
4884
Benny Prijono46bd0842010-02-12 14:12:41 +00004885
Benny Prijonod4306432010-05-01 22:05:41 +00004886ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
4887if test "x$ac_cv_header_sys_filio_h" = x""yes; then :
4888 $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004889
Benny Prijono46bd0842010-02-12 14:12:41 +00004890fi
4891
Benny Prijono46bd0842010-02-12 14:12:41 +00004892
Benny Prijonod4306432010-05-01 22:05:41 +00004893ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
4894if test "x$ac_cv_header_sys_sockio_h" = x""yes; then :
4895 $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004896
Benny Prijono46bd0842010-02-12 14:12:41 +00004897fi
Benny Prijono46bd0842010-02-12 14:12:41 +00004898
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004899
Benny Prijonod4306432010-05-01 22:05:41 +00004900ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
4901if test "x$ac_cv_header_time_h" = x""yes; then :
4902 $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004903
Benny Prijono46bd0842010-02-12 14:12:41 +00004904fi
4905
Benny Prijono46bd0842010-02-12 14:12:41 +00004906
Benny Prijonod4306432010-05-01 22:05:41 +00004907ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4908if test "x$ac_cv_header_unistd_h" = x""yes; then :
4909 $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004910
Benny Prijono46bd0842010-02-12 14:12:41 +00004911fi
4912
Benny Prijono46bd0842010-02-12 14:12:41 +00004913
Benny Prijonod4306432010-05-01 22:05:41 +00004914ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
4915if test "x$ac_cv_header_winsock_h" = x""yes; then :
4916 $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h
Benny Prijono46bd0842010-02-12 14:12:41 +00004917
Benny Prijono46bd0842010-02-12 14:12:41 +00004918fi
Benny Prijono46bd0842010-02-12 14:12:41 +00004919
Benny Prijono1c5f4e42008-02-07 13:11:39 +00004920
Benny Prijonod4306432010-05-01 22:05:41 +00004921ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4922if test "x$ac_cv_header_winsock2_h" = x""yes; then :
4923 $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00004924
Benny Prijono46bd0842010-02-12 14:12:41 +00004925fi
Benny Prijono46bd0842010-02-12 14:12:41 +00004926
Benny Prijono46bd0842010-02-12 14:12:41 +00004927
Benny Prijonod4306432010-05-01 22:05:41 +00004928ac_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 +00004929 # include <winsock2.h>
4930 #elif PJ_HAS_WINSOCK_H
4931 # include <winsock.h>
4932 #endif
4933
Benny Prijonod4306432010-05-01 22:05:41 +00004934"
4935if test "x$ac_cv_header_mswsock_h" = x""yes; then :
4936 $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h
Benny Prijonoa9948e62008-03-25 14:03:01 +00004937
4938fi
4939
4940
Benny Prijonod4306432010-05-01 22:05:41 +00004941ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
4942if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
4943 $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h
Benny Prijonoe2746132008-09-27 13:16:35 +00004944
4945fi
4946
4947
Benny Prijonod4306432010-05-01 22:05:41 +00004948ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
4949if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00004950 ac_has_uuid_h=1
4951fi
4952
4953
Benny Prijonod4306432010-05-01 22:05:41 +00004954ac_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 +00004955 # include <sys/types.h>
4956 #endif
4957 #if PJ_HAS_SYS_SOCKET_H
4958
Benny Prijono188ba7e2008-03-25 13:53:16 +00004959 # include <sys/socket.h>
4960 #endif
4961
Benny Prijonod4306432010-05-01 22:05:41 +00004962"
4963if test "x$ac_cv_header_net_if_h" = x""yes; then :
4964 $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h
Benny Prijono188ba7e2008-03-25 13:53:16 +00004965
4966fi
4967
Benny Prijono188ba7e2008-03-25 13:53:16 +00004968
Benny Prijonod4306432010-05-01 22:05:41 +00004969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5
4970$as_echo "Setting PJ_OS_NAME to $target" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004971cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004972#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004973_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004974
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004975
Benny Prijonod4306432010-05-01 22:05:41 +00004976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
4977$as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
4978$as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004979
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004980
Benny Prijonod4306432010-05-01 22:05:41 +00004981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
4982$as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
4983$as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004984
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004985
Benny Prijonod4306432010-05-01 22:05:41 +00004986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5
4987$as_echo "Setting PJ_HAS_MALLOC to 1" >&6; }
4988$as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004989
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004990
Benny Prijonod4306432010-05-01 22:05:41 +00004991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
4992$as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
4993$as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004994
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004995
Benny Prijonod4306432010-05-01 22:05:41 +00004996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
4997$as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
4998$as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004999
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005000
Benny Prijonod4306432010-05-01 22:05:41 +00005001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5
5002$as_echo_n "checking if inet_aton() is available... " >&6; }
5003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005004/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005005#include <sys/types.h>
5006 #include <sys/socket.h>
5007 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005008int
5009main ()
5010{
5011inet_aton(0, 0);
5012 ;
5013 return 0;
5014}
5015_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005016if ac_fn_c_try_compile "$LINENO"; then :
5017 $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005018
Benny Prijonod4306432010-05-01 22:05:41 +00005019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5020$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005021else
Benny Prijonod4306432010-05-01 22:05:41 +00005022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005024fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026
Benny Prijonod4306432010-05-01 22:05:41 +00005027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5
5028$as_echo_n "checking if inet_pton() is available... " >&6; }
5029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005030/* end confdefs.h. */
5031#include <sys/types.h>
5032 #include <sys/socket.h>
5033 #include <arpa/inet.h>
5034int
5035main ()
5036{
5037inet_pton(0, 0, 0);
5038 ;
5039 return 0;
5040}
5041_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005042if ac_fn_c_try_compile "$LINENO"; then :
5043 $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005044
Benny Prijonod4306432010-05-01 22:05:41 +00005045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5046$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005047else
Benny Prijonod4306432010-05-01 22:05:41 +00005048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005050fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052
Benny Prijonod4306432010-05-01 22:05:41 +00005053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5
5054$as_echo_n "checking if inet_ntop() is available... " >&6; }
5055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005056/* end confdefs.h. */
5057#include <sys/types.h>
5058 #include <sys/socket.h>
5059 #include <arpa/inet.h>
5060int
5061main ()
5062{
5063inet_ntop(0, 0, 0, 0);
5064 ;
5065 return 0;
5066}
5067_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005068if ac_fn_c_try_compile "$LINENO"; then :
5069 $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005070
Benny Prijonod4306432010-05-01 22:05:41 +00005071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5072$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005073else
Benny Prijonod4306432010-05-01 22:05:41 +00005074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005076fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078
Benny Prijonod4306432010-05-01 22:05:41 +00005079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5
5080$as_echo_n "checking if getaddrinfo() is available... " >&6; }
5081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005082/* end confdefs.h. */
5083#include <sys/types.h>
5084 #include <sys/socket.h>
5085 #include <netdb.h>
5086int
5087main ()
5088{
5089getaddrinfo(0, 0, 0, 0);
5090 ;
5091 return 0;
5092}
5093_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005094if ac_fn_c_try_compile "$LINENO"; then :
5095 $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005096
Benny Prijonod4306432010-05-01 22:05:41 +00005097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5098$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005099else
Benny Prijonod4306432010-05-01 22:05:41 +00005100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005102fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5104
Benny Prijonod4306432010-05-01 22:05:41 +00005105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5
5106$as_echo_n "checking if sockaddr_in has sin_len member... " >&6; }
5107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005108/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005109#include <sys/types.h>
5110 #include <sys/socket.h>
5111 #include <netinet/in.h>
5112 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005113int
5114main ()
5115{
5116struct sockaddr_in a; a.sin_len=0;
5117 ;
5118 return 0;
5119}
5120_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005121if ac_fn_c_try_compile "$LINENO"; then :
5122 $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005123
Benny Prijonod4306432010-05-01 22:05:41 +00005124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5125$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005126else
Benny Prijonod4306432010-05-01 22:05:41 +00005127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005129fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5131
Benny Prijonod4306432010-05-01 22:05:41 +00005132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5
5133$as_echo_n "checking if socklen_t is available... " >&6; }
5134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005135/* end confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +00005136#include <sys/types.h>
5137 #include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00005138int
5139main ()
5140{
5141socklen_t xxx = 0;
5142 ;
5143 return 0;
5144}
5145_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005146if ac_fn_c_try_compile "$LINENO"; then :
5147 $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h
Benny Prijono30f85c62006-09-09 20:05:33 +00005148
Benny Prijonod4306432010-05-01 22:05:41 +00005149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5150$as_echo "yes" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005151else
Benny Prijonod4306432010-05-01 22:05:41 +00005152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153$as_echo "no" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005154fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156
Benny Prijonod4306432010-05-01 22:05:41 +00005157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5
5158$as_echo_n "checking if SO_ERROR is available... " >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005159case $target in
5160 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonod4306432010-05-01 22:05:41 +00005161 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005162
Benny Prijonod4306432010-05-01 22:05:41 +00005163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5164$as_echo "yes" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005165 ;;
5166 *)
Benny Prijonod4306432010-05-01 22:05:41 +00005167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005168/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005169#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005170 #include <sys/socket.h>
5171 #include <netinet/in.h>
5172 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005173int
5174main ()
5175{
5176int i=SO_ERROR;
5177 ;
5178 return 0;
5179}
5180_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005181if ac_fn_c_try_compile "$LINENO"; then :
5182 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005183
Benny Prijonod4306432010-05-01 22:05:41 +00005184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5185$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005186else
Benny Prijonod4306432010-05-01 22:05:41 +00005187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005189fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005191 ;;
5192esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005193
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005194
Benny Prijonod4306432010-05-01 22:05:41 +00005195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5
5196$as_echo_n "checking if pthread_rwlock_t is available... " >&6; }
5197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005198/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005199#include <pthread.h>
5200int
5201main ()
5202{
5203pthread_rwlock_t *x;
5204 ;
5205 return 0;
5206}
5207_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005208if ac_fn_c_try_compile "$LINENO"; then :
5209 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005210
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005211 ac_rwmutex="yes"
Benny Prijonod4306432010-05-01 22:05:41 +00005212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5213$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005214else
Benny Prijonod4306432010-05-01 22:05:41 +00005215 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005216
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005217 ac_rwmutex="no"
Benny Prijonod4306432010-05-01 22:05:41 +00005218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005220fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005222
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005223if test "$ac_rwmutex" = "no"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
5225$as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; }
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005227/* end confdefs.h. */
5228#define _POSIX_READER_WRITER_LOCKS
5229 #include <pthread.h>
5230int
5231main ()
5232{
5233pthread_rwlock_t *x;
5234 ;
5235 return 0;
5236}
5237_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005238if ac_fn_c_try_compile "$LINENO"; then :
5239 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005240
5241 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Benny Prijonod4306432010-05-01 22:05:41 +00005242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5243$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005244else
Benny Prijonod4306432010-05-01 22:05:41 +00005245 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005246
Benny Prijonod4306432010-05-01 22:05:41 +00005247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005249fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251fi
5252
Benny Prijonod4306432010-05-01 22:05:41 +00005253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5
5254$as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; }
5255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005256/* end confdefs.h. */
5257#include <pthread.h>
5258int
5259main ()
5260{
5261pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
5262 ;
5263 return 0;
5264}
5265_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005266if ac_fn_c_try_compile "$LINENO"; then :
5267 $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005268
Benny Prijonod4306432010-05-01 22:05:41 +00005269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5270$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005271else
Benny Prijonod4306432010-05-01 22:05:41 +00005272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005274fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276
Benny Prijonod4306432010-05-01 22:05:41 +00005277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5
5278$as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; }
5279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005280/* end confdefs.h. */
5281#include <pthread.h>
5282int
5283main ()
5284{
5285pthread_mutexattr_t attr;
5286 attr.recursive=1;
5287 ;
5288 return 0;
5289}
5290_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005291if ac_fn_c_try_compile "$LINENO"; then :
5292 $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005293
Benny Prijonod4306432010-05-01 22:05:41 +00005294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5295$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005296else
Benny Prijonod4306432010-05-01 22:05:41 +00005297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005299fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005301
Benny Prijono99eec382008-09-18 21:22:16 +00005302
Benny Prijonod4306432010-05-01 22:05:41 +00005303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5
5304$as_echo_n "checking ioqueue backend... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005305# Check whether --enable-epoll was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005306if test "${enable_epoll+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005307 enableval=$enable_epoll;
Benny Prijono99eec382008-09-18 21:22:16 +00005308 ac_os_objs=ioqueue_epoll.o
Benny Prijonod4306432010-05-01 22:05:41 +00005309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5
5310$as_echo "/dev/epoll" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005311
5312else
5313
5314 ac_os_objs=ioqueue_select.o
Benny Prijonod4306432010-05-01 22:05:41 +00005315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5
5316$as_echo "select()" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005317
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005318fi
5319
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005320
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005321
5322case $target in
5323 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono99eec382008-09-18 21:22:16 +00005324 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 +00005325 ;;
5326 *)
Benny Prijono99eec382008-09-18 21:22:16 +00005327 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 +00005328 # UUID
5329 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
5330 ac_os_objs="$ac_os_objs guid_uuid.o"
5331 else
5332 ac_os_objs="$ac_os_objs guid_simple.o"
5333 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005334 ;;
5335esac
5336
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005337
5338
5339
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005340ac_external_speex=0
5341
5342
5343# Check whether --with-external-speex was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005344if test "${with_external_speex+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005345 withval=$with_external_speex;
5346 if test "x$with_external_speex" != "xno"; then
5347 # Test Speex installation
Benny Prijonod4306432010-05-01 22:05:41 +00005348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5
5349$as_echo_n "checking if external Speex devkit is installed... " >&6; }
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005351/* end confdefs.h. */
5352#include <speex/speex.h>
5353 #include <speex/speex_echo.h>
5354
5355int
5356main ()
5357{
5358speex_echo_state_init(0, 0); speex_encoder_init(0);
5359 ;
5360 return 0;
5361}
5362_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005363if ac_fn_c_try_compile "$LINENO"; then :
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5365$as_echo "yes!!" >&6; }
5366 $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005367
5368 ac_external_speex="1"
5369
5370else
Benny Prijonod4306432010-05-01 22:05:41 +00005371 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 +00005372fi
5373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 fi
5375
5376
5377fi
5378
5379
5380ac_external_gsm=0
5381
5382
5383# Check whether --with-external-gsm was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005384if test "${with_external_gsm+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005385 withval=$with_external_gsm;
5386 if test "x$with_external_gsm" != "xno"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005387 # Test GSM library installation
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5
5389$as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; }
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005391/* end confdefs.h. */
5392#include <gsm/gsm.h>
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005393int
5394main ()
5395{
5396gsm_create();
5397 ;
5398 return 0;
5399}
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005400_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005401if ac_fn_c_try_compile "$LINENO"; then :
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5403$as_echo "yes!!" >&6; }
5404 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005405
Benny Prijonod4306432010-05-01 22:05:41 +00005406 $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h
5407
5408 ac_external_gsm="1"
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005409
5410else
Benny Prijono46bd0842010-02-12 14:12:41 +00005411
Benny Prijonod4306432010-05-01 22:05:41 +00005412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413$as_echo "no" >&6; }
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5
5415$as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; }
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417/* end confdefs.h. */
5418#include <gsm.h>
5419int
5420main ()
5421{
5422gsm_create();
5423 ;
5424 return 0;
5425}
5426_ACEOF
5427if ac_fn_c_try_compile "$LINENO"; then :
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5429$as_echo "yes!!" >&6; }
5430 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
5431
5432 $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h
5433
5434 ac_external_gsm="1"
5435
5436else
5437 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
5438
5439
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005440fi
Benny Prijonod4306432010-05-01 22:05:41 +00005441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono46bd0842010-02-12 14:12:41 +00005442
Benny Prijonod4306432010-05-01 22:05:41 +00005443
5444fi
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446 fi
5447
5448
5449fi
5450
5451
5452
5453
Benny Prijono4e48b512007-05-16 13:41:00 +00005454
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005455# Check whether --enable-sound was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005456if test "${enable_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005457 enableval=$enable_sound; if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +00005458 ac_pjmedia_snd=null
Benny Prijonod4306432010-05-01 22:05:41 +00005459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5
5460$as_echo "Checking if sound is disabled... yes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00005461 fi
5462
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005463fi
5464
Benny Prijono1d971622006-09-10 22:27:40 +00005465
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005466ac_external_pa=0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005467
Benny Prijono27c98722007-04-09 21:28:15 +00005468
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005469# Check whether --with-external-pa was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005470if test "${with_external_pa+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005471 withval=$with_external_pa;
5472 if test "x$with_external_pa" != "xno"; then
5473 # Test PortAudio installation
Benny Prijonod4306432010-05-01 22:05:41 +00005474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5
5475$as_echo_n "checking if external PortAudio devkit is installed... " >&6; }
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005477/* end confdefs.h. */
5478#include <portaudio.h>
5479
5480int
5481main ()
5482{
5483Pa_Initialize();
5484 ;
5485 return 0;
5486}
5487_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005488if ac_fn_c_try_compile "$LINENO"; then :
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5490$as_echo "yes!!" >&6; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005491 ac_external_pa="1"
5492
5493else
Benny Prijonod4306432010-05-01 22:05:41 +00005494 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 +00005495fi
5496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonofe0c1272010-01-13 16:28:15 +00005497 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005498
Benny Prijono27c98722007-04-09 21:28:15 +00005499
5500fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005501
5502
5503
Benny Prijonod4306432010-05-01 22:05:41 +00005504ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
5505if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005506 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
5507fi
5508
5509
Benny Prijonod4306432010-05-01 22:05:41 +00005510ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
5511if test "x$ac_cv_header_linux_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005512 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
5513fi
5514
5515
Benny Prijonod4306432010-05-01 22:05:41 +00005516ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
5517if test "x$ac_cv_header_machine_soundcard_h" = x""yes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005518 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
5519fi
5520
5521
5522
Benny Prijono3e091672008-01-09 15:43:02 +00005523if test "x$ac_cv_c_bigendian" = "xyes"; then
5524 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
5525else
5526 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
5527fi
5528
Benny Prijono1d971622006-09-10 22:27:40 +00005529if test "$enable_sound" = "no"; then
5530 true;
5531else
5532 case $target in
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005533 arm-apple-darwin*)
5534 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox"
Benny Prijono2d1f1b62010-05-17 16:09:12 +00005535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5
5536$as_echo "Checking sound device backend... AudioUnit" >&6; }
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005537 ;;
Benny Prijonob466e232006-09-10 08:53:59 +00005538 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00005539 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
5540 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +00005541 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +00005542 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
5543 ac_pjmedia_snd=pa_old_darwinos
Benny Prijonod4306432010-05-01 22:05:41 +00005544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5
5545$as_echo "Checking sound device backend... old coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005546 else
5547 ac_pjmedia_snd=pa_darwinos
Benny Prijonod4306432010-05-01 22:05:41 +00005548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5
5549$as_echo "Checking sound device backend... coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005550 fi
Benny Prijonob466e232006-09-10 08:53:59 +00005551 ;;
5552 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005553 ac_pjmedia_snd=pa_win32
Benny Prijonod4306432010-05-01 22:05:41 +00005554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5
5555$as_echo "Checking sound device backend... win32 sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005556 ;;
5557 *rtems*)
5558 ac_pjmedia_snd=null
Benny Prijonod4306432010-05-01 22:05:41 +00005559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5
5560$as_echo "Checking sound device backend... null sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005561 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005562 *)
Benny Prijono0b462322008-03-12 22:44:24 +00005563 ac_pjmedia_snd=pa_unix
Benny Prijonod4306432010-05-01 22:05:41 +00005564 ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default"
5565if test "x$ac_cv_header_alsa_version_h" = x""yes; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005566 ac_pa_use_alsa=1
5567
5568 LIBS="$LIBS -lasound"
5569
5570else
5571 ac_pa_use_alsa=0
5572
5573fi
5574
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005575
Benny Prijonod4306432010-05-01 22:05:41 +00005576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5
5577$as_echo "Checking sound device backend... unix" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005578
5579 ac_pa_use_oss=1
5580
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005581 # Check whether --enable-oss was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005582if test "${enable_oss+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005583 enableval=$enable_oss;
Benny Prijono0b462322008-03-12 22:44:24 +00005584 if test "$enable_oss" = "no"; then
5585 ac_pa_use_oss=0
Benny Prijonod4306432010-05-01 22:05:41 +00005586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5
5587$as_echo "Checking if OSS audio is disabled... yes" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005588 fi
5589
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005590fi
5591
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005592 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00005593 esac
5594fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005595
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005596# Check whether --enable-ext_sound was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005597if test "${enable_ext_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005598 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
Benny Prijonoebb2c332008-07-28 23:40:58 +00005599 ac_pjmedia_snd=external
Benny Prijonod4306432010-05-01 22:05:41 +00005600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5
5601$as_echo "Checking if external sound is set... yes" >&6; }
Benny Prijonoebb2c332008-07-28 23:40:58 +00005602 fi
5603
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005604fi
Benny Prijonoebb2c332008-07-28 23:40:58 +00005605
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005606
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005607
5608# Check whether --enable-small-filter was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005609if test "${enable_small_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005610 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005611 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijonod4306432010-05-01 22:05:41 +00005612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5
5613$as_echo "Checking if small filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005614 fi
5615else
Benny Prijonod4306432010-05-01 22:05:41 +00005616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5
5617$as_echo "Checking if small filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005618fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005619
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005620
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005621
5622# Check whether --enable-large-filter was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005623if test "${enable_large_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005624 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005625 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijonod4306432010-05-01 22:05:41 +00005626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5
5627$as_echo "Checking if large filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005628 fi
5629else
Benny Prijonod4306432010-05-01 22:05:41 +00005630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5
5631$as_echo "Checking if large filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005632fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005633
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005634
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005635
5636# Check whether --enable-speex-aec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005637if test "${enable_speex_aec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005638 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005639 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijonod4306432010-05-01 22:05:41 +00005640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5
5641$as_echo "Checking if Speex AEC is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005642 fi
5643else
Benny Prijonod4306432010-05-01 22:05:41 +00005644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5
5645$as_echo "Checking if Speex AEC is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005646fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005647
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005648
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005649
5650# Check whether --enable-g711-codec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005651if test "${enable_g711_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005652 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005653 ac_no_g711_codec=1
Benny Prijonod4306432010-05-01 22:05:41 +00005654 $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005655
Benny Prijonod4306432010-05-01 22:05:41 +00005656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5
5657$as_echo "Checking if G.711 codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005658 fi
5659else
Benny Prijonod4306432010-05-01 22:05:41 +00005660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5
5661$as_echo "Checking if G.711 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005662fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005663
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005664
5665
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005666
5667# Check whether --enable-l16-codec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005668if test "${enable_l16_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005669 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005670 ac_no_l16_codec=1
Benny Prijonod4306432010-05-01 22:05:41 +00005671 $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005672
Benny Prijonod4306432010-05-01 22:05:41 +00005673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5
5674$as_echo "Checking if L16 codecs are disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005675 fi
5676else
Benny Prijonod4306432010-05-01 22:05:41 +00005677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5
5678$as_echo "Checking if L16 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005679fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005680
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005681
5682
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005683
5684# Check whether --enable-gsm-codec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005685if test "${enable_gsm_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005686 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005687 ac_no_gsm_codec=1
Benny Prijonod4306432010-05-01 22:05:41 +00005688 $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005689
Benny Prijonod4306432010-05-01 22:05:41 +00005690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5
5691$as_echo "Checking if GSM codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005692 fi
5693else
Benny Prijonod4306432010-05-01 22:05:41 +00005694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5
5695$as_echo "Checking if GSM codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005696fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005697
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005698
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005699
5700# Check whether --enable-g722-codec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005701if test "${enable_g722_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005702 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
Benny Prijono71f657d2008-03-17 14:24:21 +00005703 ac_no_g722_codec=1
Benny Prijonod4306432010-05-01 22:05:41 +00005704 $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h
Benny Prijono71f657d2008-03-17 14:24:21 +00005705
Benny Prijonod4306432010-05-01 22:05:41 +00005706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5
5707$as_echo "Checking if G.722 codec is disabled...yes" >&6; }
Benny Prijono71f657d2008-03-17 14:24:21 +00005708 fi
5709else
Benny Prijonod4306432010-05-01 22:05:41 +00005710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5
5711$as_echo "Checking if G.722 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005712fi
Benny Prijono71f657d2008-03-17 14:24:21 +00005713
5714
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005715
5716# Check whether --enable-g7221-codec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005717if test "${enable_g7221_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005718 enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
5719 ac_no_g7221_codec=1
Benny Prijonod4306432010-05-01 22:05:41 +00005720 $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005721
Benny Prijonod4306432010-05-01 22:05:41 +00005722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5
5723$as_echo "Checking if G.722.1 codec is disabled...yes" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005724 fi
5725else
Benny Prijonod4306432010-05-01 22:05:41 +00005726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5
5727$as_echo "Checking if G.722.1 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005728fi
5729
5730
5731
5732# Check whether --enable-speex-codec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005733if test "${enable_speex_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005734 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005735 ac_no_speex_codec=1
Benny Prijonod4306432010-05-01 22:05:41 +00005736 $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005737
Benny Prijonod4306432010-05-01 22:05:41 +00005738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5
5739$as_echo "Checking if Speex codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005740 fi
5741else
Benny Prijonod4306432010-05-01 22:05:41 +00005742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5
5743$as_echo "Checking if Speex codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005744fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005745
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005746
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005747
5748# Check whether --enable-ilbc-codec was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005749if test "${enable_ilbc_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005750 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005751 ac_no_ilbc_codec=1
Benny Prijonod4306432010-05-01 22:05:41 +00005752 $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005753
Benny Prijonod4306432010-05-01 22:05:41 +00005754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5
5755$as_echo "Checking if iLBC codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005756 fi
5757else
Benny Prijonod4306432010-05-01 22:05:41 +00005758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5
5759$as_echo "Checking if iLBC codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005760fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005761
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005762
5763# Check whether --enable-libsamplerate was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005764if test "${enable_libsamplerate+set}" = set; then :
5765 enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5
5766$as_echo_n "checking for src_new in -lsamplerate... " >&6; }
5767if test "${ac_cv_lib_samplerate_src_new+set}" = set; then :
5768 $as_echo_n "(cached) " >&6
Benny Prijono550a1a62007-10-16 08:54:00 +00005769else
5770 ac_check_lib_save_LIBS=$LIBS
5771LIBS="-lsamplerate $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00005772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00005773/* end confdefs.h. */
5774
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005775/* Override any GCC internal prototype to avoid an error.
5776 Use char because int might match the return type of a GCC
5777 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +00005778#ifdef __cplusplus
5779extern "C"
5780#endif
Benny Prijono550a1a62007-10-16 08:54:00 +00005781char src_new ();
5782int
5783main ()
5784{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005785return src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +00005786 ;
5787 return 0;
5788}
5789_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005790if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00005791 ac_cv_lib_samplerate_src_new=yes
5792else
Benny Prijonod4306432010-05-01 22:05:41 +00005793 ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +00005794fi
Benny Prijonod4306432010-05-01 22:05:41 +00005795rm -f core conftest.err conftest.$ac_objext \
5796 conftest$ac_exeext conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00005797LIBS=$ac_check_lib_save_LIBS
5798fi
Benny Prijonod4306432010-05-01 22:05:41 +00005799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5
5800$as_echo "$ac_cv_lib_samplerate_src_new" >&6; }
5801if test "x$ac_cv_lib_samplerate_src_new" = x""yes; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00005802 cat >>confdefs.h <<_ACEOF
5803#define HAVE_LIBSAMPLERATE 1
5804_ACEOF
5805
5806 LIBS="-lsamplerate $LIBS"
5807
5808fi
5809
5810else
Benny Prijonod4306432010-05-01 22:05:41 +00005811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5
5812$as_echo "Skipping libsamplerate detection" >&6; }
Benny Prijono550a1a62007-10-16 08:54:00 +00005813
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005814fi
Benny Prijono0822c192008-08-21 20:59:58 +00005815
5816
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005817
5818# Check whether --enable-ipp was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005819if test "${enable_ipp+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005820 enableval=$enable_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00005821else
5822 enable_ipp=no
5823
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005824fi
Benny Prijono0822c192008-08-21 20:59:58 +00005825
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005826
Benny Prijono3965f192010-02-10 18:46:05 +00005827
5828# Check whether --with-ipp was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005829if test "${with_ipp+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00005830 withval=$with_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00005831else
5832 with_ipp=no
5833
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005834fi
Benny Prijono0822c192008-08-21 20:59:58 +00005835
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005836
Benny Prijono3965f192010-02-10 18:46:05 +00005837
5838# Check whether --with-ipp-samples was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005839if test "${with_ipp_samples+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00005840 withval=$with_ipp_samples;
Benny Prijono0822c192008-08-21 20:59:58 +00005841else
5842 with_ipp_samples=no
5843
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005844fi
5845
Benny Prijono0822c192008-08-21 20:59:58 +00005846
Benny Prijono3965f192010-02-10 18:46:05 +00005847
5848# Check whether --with-ipp-arch was given.
Benny Prijonod4306432010-05-01 22:05:41 +00005849if test "${with_ipp_arch+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00005850 withval=$with_ipp_arch;
5851else
5852 with_ipp_arch=no
5853
5854fi
5855
5856
Benny Prijono0822c192008-08-21 20:59:58 +00005857if test "x$enable_ipp" != "xno"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5
5859$as_echo_n "checking Intel IPP location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005860
5861 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5
5863$as_echo "$with_ipp" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005864 IPPROOT=$with_ipp
5865 elif test "x$IPPROOT" = "x"; then
5866 if test -d /opt/intel/ipp; then
5867 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
Benny Prijonod4306432010-05-01 22:05:41 +00005868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5
5869$as_echo "autodetected in $IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005870 fi
5871 else
Benny Prijonod4306432010-05-01 22:05:41 +00005872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5
5873$as_echo "$IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005874 fi
5875
Benny Prijono3965f192010-02-10 18:46:05 +00005876 if test "x$with_ipp_arch" != "xno"; then
Benny Prijono896be292010-08-17 12:16:46 +00005877 IPP_SUFFIX=$with_ipp_arch
Benny Prijonod4306432010-05-01 22:05:41 +00005878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5
5879$as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00005880 else
5881 IPP_SUFFIX=""
Benny Prijonod4306432010-05-01 22:05:41 +00005882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5
5883$as_echo "IPP arch suffix is set to empty" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00005884 fi
5885
Benny Prijono0822c192008-08-21 20:59:58 +00005886 if test x$IPPROOT = x; then
Benny Prijonod4306432010-05-01 22:05:41 +00005887 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 +00005888 elif test ! -d $IPPROOT; then
Benny Prijonod4306432010-05-01 22:05:41 +00005889 as_fn_error "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00005890 elif test ! -d $IPPROOT/include; then
Benny Prijonod4306432010-05-01 22:05:41 +00005891 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00005892 else
5893 # IPP directory looks okay.
5894 # Remove trailing backslash
Benny Prijono3965f192010-02-10 18:46:05 +00005895 IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
Benny Prijono0822c192008-08-21 20:59:58 +00005896
5897 SAVED_CFLAGS="$CFLAGS"
5898 SAVED_LDFLAGS="$LDFLAGS"
5899 SAVED_LIBS="$LIBS"
5900
5901 IPP_CFLAGS="-I$IPPROOT/include"
Benny Prijono46bd0842010-02-12 14:12:41 +00005902 IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippsr${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
5903
5904 # Some differences between Mac OS X and Linux
5905 case $target in
5906 *darwin* )
5907 IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
5908 ;;
5909 *)
5910 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
5911 IPP_LIBS="$IPP_LIBS -lguide"
5912 ;;
5913 esac
5914
Benny Prijono0822c192008-08-21 20:59:58 +00005915 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
Benny Prijono46bd0842010-02-12 14:12:41 +00005916 #Static:
Benny Prijono0822c192008-08-21 20:59:58 +00005917 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
5918
5919 CFLAGS="$CFLAGS $IPP_CFLAGS"
5920 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
5921 LIBS="$IPP_LIBS $LIBS"
5922
5923
Benny Prijonod4306432010-05-01 22:05:41 +00005924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5
5925$as_echo_n "checking Intel IPP usability... " >&6; }
5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005927/* end confdefs.h. */
5928#include <ippcore.h>
5929
5930int
5931main ()
5932{
5933ippStaticInit();
5934 ;
5935 return 0;
5936}
5937_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00005938if ac_fn_c_try_link "$LINENO"; then :
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5940$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005941else
Benny Prijonod4306432010-05-01 22:05:41 +00005942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5944{ as_fn_set_status run with --help for more info
5945as_fn_error "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly
5946See \`config.log' for more details." "$LINENO" 5; }; }
Benny Prijono0822c192008-08-21 20:59:58 +00005947fi
Benny Prijonod4306432010-05-01 22:05:41 +00005948rm -f core conftest.err conftest.$ac_objext \
5949 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005950
5951 CFLAGS="$SAVED_CFLAGS"
5952 LDFLAGS="$SAVED_LDFLAGS"
5953 LIBS="$SAVED_LIBS"
5954 fi
5955
Benny Prijonod4306432010-05-01 22:05:41 +00005956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5
5957$as_echo_n "checking Intel IPP samples location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005958
5959 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5
5961$as_echo "$with_ipp_samples" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005962 IPPSAMPLES=$with_ipp_samples
5963 elif test "x$IPPSAMPLES" = "x"; then
5964 if test -d /opt/intel/ipp-samples; then
5965 IPPSAMPLES=/opt/intel/ipp-samples
Benny Prijonod4306432010-05-01 22:05:41 +00005966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5
5967$as_echo "autodetected in $IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005968 fi
5969 else
Benny Prijonod4306432010-05-01 22:05:41 +00005970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5
5971$as_echo "$IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00005972 fi
5973
5974 if test x$IPPSAMPLES = x; then
Benny Prijonod4306432010-05-01 22:05:41 +00005975 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 +00005976 elif test ! -d $IPPSAMPLES; then
Benny Prijonod4306432010-05-01 22:05:41 +00005977 as_fn_error "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00005978 elif test ! -d $IPPSAMPLES/speech-codecs; then
Benny Prijonod4306432010-05-01 22:05:41 +00005979 as_fn_error "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00005980 else
5981 # Remove trailing backslash
5982 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
5983
Benny Prijono3965f192010-02-10 18:46:05 +00005984 # Guess the libusc.a/libspeech.a build location
Benny Prijonod4306432010-05-01 22:05:41 +00005985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5
5986$as_echo_n "checking Intel IPP USC build location... " >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00005987 if test -d $IPPSAMPLES/speech-codecs/bin; then
5988 IPPVER=5
5989 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
5990 elif test -d $IPPSAMPLES/speech-codecs/_bin; then
5991 IPPVER=6
Benny Prijono46bd0842010-02-12 14:12:41 +00005992 if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
5993 # gcc compiler
5994 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
5995 elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
5996 # icc compiler
5997 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
5998 else
Benny Prijonod4306432010-05-01 22:05:41 +00005999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6001as_fn_error "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
6002See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono46bd0842010-02-12 14:12:41 +00006003 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006004 else
Benny Prijonod4306432010-05-01 22:05:41 +00006005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6007as_fn_error "unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?
6008See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006009 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006010
6011 # Test the directory
6012 if test ! -d $IPPSAMP_DIR; then
Benny Prijonod4306432010-05-01 22:05:41 +00006013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6014$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6015as_fn_error "There's something wrong with this script, directory $IPPSAMP_DIR does not exist
6016See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00006017 exit 1;
6018 fi
6019
6020 if test "x$IPPVER" = "x5"; then
6021 IPPSAMP_LIBS="libusc.a"
6022 IPPSAMP_LDLIBS="-lusc"
6023 elif test "x$IPPVER" = "x6"; then
6024 IPPSAMP_LIBS="libspeech.a"
6025 IPPSAMP_LDLIBS="-lspeech"
6026 else
Benny Prijonod4306432010-05-01 22:05:41 +00006027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6029as_fn_error "bug in this script: unsupported IPP version
6030See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006031 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006032
6033 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
Benny Prijonod4306432010-05-01 22:05:41 +00006034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6036as_fn_error "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
6037See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00006038 fi
6039
Benny Prijonod4306432010-05-01 22:05:41 +00006040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5
6041$as_echo "$IPPSAMP_DIR" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006042
6043 SAVED_CFLAGS="$CFLAGS"
6044 SAVED_LDFLAGS="$LDFLAGS"
6045 SAVED_LIBS="$LIBS"
6046
Benny Prijono3965f192010-02-10 18:46:05 +00006047 IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
6048 CFLAGS="$CFLAGS $IPPSAMP_INC"
6049 LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR"
6050 LIBS="$IPPSAMP_LDLIBS $LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006051
Benny Prijonod4306432010-05-01 22:05:41 +00006052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5
6053$as_echo_n "checking Intel IPP USC usability... " >&6; }
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006055/* end confdefs.h. */
6056#include <usc.h>
6057
6058int
6059main ()
6060{
6061extern USC_Fxns USC_G729AFP_Fxns;
6062 ;
6063 return 0;
6064}
6065_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00006066if ac_fn_c_try_link "$LINENO"; then :
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6068$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006069else
Benny Prijonod4306432010-05-01 22:05:41 +00006070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6072as_fn_error "failed
6073See \`config.log' for more details." "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006074fi
Benny Prijonod4306432010-05-01 22:05:41 +00006075rm -f core conftest.err conftest.$ac_objext \
6076 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006077
6078 CFLAGS="$SAVED_CFLAGS"
Benny Prijono3965f192010-02-10 18:46:05 +00006079 LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
6080 LIBS="$IPP_LIBS $SAVED_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006081
Benny Prijono3965f192010-02-10 18:46:05 +00006082 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
6083 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
6084 IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006085 fi
6086
Benny Prijono3965f192010-02-10 18:46:05 +00006087 CFLAGS="$CFLAGS $IPP_CFLAGS"
6088 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6089 LIBS="$LIBS $IPP_LIBS"
6090
Benny Prijono0822c192008-08-21 20:59:58 +00006091 ac_build_mak_vars="$ac_build_mak_vars\n\
6092export IPP_CFLAGS=$IPP_CFLAGS\n\
6093export IPP_LDFLAGS=$IPP_LDFLAGS\n\
6094export IPP_LIBS=$IPP_LIBS"
6095else
Benny Prijonod4306432010-05-01 22:05:41 +00006096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5
6097$as_echo "Skipping Intel IPP settings (not wanted)" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006098fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006099
6100
6101
6102
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006103# Check whether --enable-ssl was given.
Benny Prijonod4306432010-05-01 22:05:41 +00006104if test "${enable_ssl+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006105 enableval=$enable_ssl;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006106 if test "$enable_ssl" = "no"; then
6107 ac_no_ssl=1
Benny Prijonod4306432010-05-01 22:05:41 +00006108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5
6109$as_echo "Checking if SSL support is disabled... yes" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006110 fi
6111
6112else
6113
Benny Prijonod4306432010-05-01 22:05:41 +00006114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5
6115$as_echo "checking for OpenSSL installations.." >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006116
6117
6118
Benny Prijonod4306432010-05-01 22:05:41 +00006119 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
6120if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006121 openssl_h_present=1
6122fi
6123
6124
Benny Prijonod4306432010-05-01 22:05:41 +00006125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5
6126$as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; }
6127if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then :
6128 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006129else
6130 ac_check_lib_save_LIBS=$LIBS
6131LIBS="-lcrypto $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00006132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006133/* end confdefs.h. */
6134
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006135/* Override any GCC internal prototype to avoid an error.
6136 Use char because int might match the return type of a GCC
6137 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006138#ifdef __cplusplus
6139extern "C"
6140#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006141char ERR_load_BIO_strings ();
6142int
6143main ()
6144{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006145return ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006146 ;
6147 return 0;
6148}
6149_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00006150if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006151 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
6152else
Benny Prijonod4306432010-05-01 22:05:41 +00006153 ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006154fi
Benny Prijonod4306432010-05-01 22:05:41 +00006155rm -f core conftest.err conftest.$ac_objext \
6156 conftest$ac_exeext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006157LIBS=$ac_check_lib_save_LIBS
6158fi
Benny Prijonod4306432010-05-01 22:05:41 +00006159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
6160$as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
6161if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = x""yes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006162 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
6163fi
6164
Benny Prijonod4306432010-05-01 22:05:41 +00006165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
6166$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
6167if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
6168 $as_echo_n "(cached) " >&6
Benny Prijonod5233702010-01-13 13:09:45 +00006169else
6170 ac_check_lib_save_LIBS=$LIBS
6171LIBS="-lssl $LIBS"
Benny Prijonod4306432010-05-01 22:05:41 +00006172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00006173/* end confdefs.h. */
6174
6175/* Override any GCC internal prototype to avoid an error.
6176 Use char because int might match the return type of a GCC
6177 builtin and then its argument prototype would still apply. */
6178#ifdef __cplusplus
6179extern "C"
6180#endif
6181char SSL_library_init ();
6182int
6183main ()
6184{
6185return SSL_library_init ();
6186 ;
6187 return 0;
6188}
6189_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00006190if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonod5233702010-01-13 13:09:45 +00006191 ac_cv_lib_ssl_SSL_library_init=yes
6192else
Benny Prijonod4306432010-05-01 22:05:41 +00006193 ac_cv_lib_ssl_SSL_library_init=no
Benny Prijonod5233702010-01-13 13:09:45 +00006194fi
Benny Prijonod4306432010-05-01 22:05:41 +00006195rm -f core conftest.err conftest.$ac_objext \
6196 conftest$ac_exeext conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00006197LIBS=$ac_check_lib_save_LIBS
6198fi
Benny Prijonod4306432010-05-01 22:05:41 +00006199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6200$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
6201if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
Benny Prijonod5233702010-01-13 13:09:45 +00006202 libssl_present=1 && LIBS="$LIBS -lssl"
6203fi
6204
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006205 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 +00006206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5
6207$as_echo "OpenSSL library found, SSL support enabled" >&6; }
Nanang Izzuddin9c7616f2009-10-28 06:09:15 +00006208 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
6209 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
Benny Prijonod4306432010-05-01 22:05:41 +00006210 $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
Nanang Izzuddinea6d3c42009-10-26 15:47:52 +00006211
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006212 else
Benny Prijonod4306432010-05-01 22:05:41 +00006213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
6214$as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006215 fi
6216
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006217fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006218
6219
6220
6221
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006222
Benny Prijonod4306432010-05-01 22:05:41 +00006223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5
6224$as_echo_n "checking if select() needs correct nfds... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006225case $target in
Benny Prijonod4306432010-05-01 22:05:41 +00006226 *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006227
Benny Prijonod4306432010-05-01 22:05:41 +00006228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6229$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006230 ;;
Benny Prijonod4306432010-05-01 22:05:41 +00006231 *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006232
Benny Prijonod4306432010-05-01 22:05:41 +00006233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
6234$as_echo "no (default)" >&6; }
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
6236$as_echo "** Decided that select() doesn't need correct nfds (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006237 ;;
6238esac
6239
Benny Prijonod4306432010-05-01 22:05:41 +00006240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5
6241$as_echo_n "checking if pj_thread_create() should enforce stack size... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006242case $target in
Benny Prijonod4306432010-05-01 22:05:41 +00006243 *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006244
Benny Prijonod4306432010-05-01 22:05:41 +00006245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6246$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006247 ;;
Benny Prijonod4306432010-05-01 22:05:41 +00006248 *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006249
Benny Prijonod4306432010-05-01 22:05:41 +00006250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
6251$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006252 ;;
6253esac
6254
Benny Prijonod4306432010-05-01 22:05:41 +00006255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5
6256$as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006257case $target in
Benny Prijonod4306432010-05-01 22:05:41 +00006258 *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006259
Benny Prijonod4306432010-05-01 22:05:41 +00006260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6261$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006262 ;;
Benny Prijonod4306432010-05-01 22:05:41 +00006263 *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006264
Benny Prijonod4306432010-05-01 22:05:41 +00006265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
6266$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006267 ;;
6268esac
6269
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006270case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006271 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonod4306432010-05-01 22:05:41 +00006272 $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006273
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006274 ;;
Benny Prijonod4306432010-05-01 22:05:41 +00006275 *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006276
Benny Prijonod4306432010-05-01 22:05:41 +00006277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
6278$as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006279 ;;
6280esac
6281
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006282case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006283 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonod4306432010-05-01 22:05:41 +00006284 $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006285
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006286 ;;
Benny Prijonod4306432010-05-01 22:05:41 +00006287 *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006288
Benny Prijonod4306432010-05-01 22:05:41 +00006289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
6290$as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006291 ;;
6292esac
6293
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006294
6295
6296
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006297if test "$build" = "$host"; then
6298 ac_cross_compile=
6299else
Benny Prijono5b818b22006-09-17 22:58:51 +00006300 ac_cross_compile=${host_orig}-
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006301fi
6302ac_linux_poll=select
6303
6304ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006305
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006306
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006307case $target in
6308 *rtems*)
6309 ac_main_obj=main_rtems.o
6310 ;;
6311 *)
6312 ac_main_obj=main.o
6313 ;;
6314esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006315
Benny Prijono0822c192008-08-21 20:59:58 +00006316
6317ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006318cat >confcache <<\_ACEOF
6319# This file is a shell script that caches the results of configure
6320# tests run on this system so they can be shared between configure
6321# scripts and configure runs, see configure's option --config-cache.
6322# It is not useful on other systems. If it contains results you don't
6323# want to keep, you may remove or edit it.
6324#
6325# config.status only pays attention to the cache file if you give it
6326# the --recheck option to rerun configure.
6327#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006328# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006329# loading this file, other *unset* `ac_cv_foo' will be assigned the
6330# following values.
6331
6332_ACEOF
6333
6334# The following way of writing the cache mishandles newlines in values,
6335# but we know of no workaround that is simple, portable, and efficient.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006336# So, we kill variables containing newlines.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006337# Ultrix sh set writes to stderr and can't be redirected directly,
6338# and sets the high bit in the cache file unless we assign to the vars.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006339(
6340 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6341 eval ac_val=\$$ac_var
6342 case $ac_val in #(
6343 *${as_nl}*)
6344 case $ac_var in #(
Benny Prijonod4306432010-05-01 22:05:41 +00006345 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6346$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006347 esac
6348 case $ac_var in #(
6349 _ | IFS | as_nl) ;; #(
Benny Prijonod4306432010-05-01 22:05:41 +00006350 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6351 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006352 esac ;;
6353 esac
6354 done
6355
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006356 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006357 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6358 *${as_nl}ac_space=\ *)
Benny Prijonod4306432010-05-01 22:05:41 +00006359 # `set' does not quote correctly, so add quotes: double-quote
6360 # substitution turns \\\\ into \\, and sed turns \\ into \.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006361 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006362 "s/'/'\\\\''/g;
6363 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006364 ;; #(
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006365 *)
6366 # `set' quotes correctly as required by POSIX, so do not add quotes.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006367 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006368 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006369 esac |
6370 sort
6371) |
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006372 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006373 /^ac_cv_env_/b end
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006374 t clear
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006375 :clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006376 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6377 t end
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006378 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6379 :end' >>confcache
6380if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6381 if test -w "$cache_file"; then
6382 test "x$cache_file" != "x/dev/null" &&
Benny Prijonod4306432010-05-01 22:05:41 +00006383 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6384$as_echo "$as_me: updating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006385 cat confcache >$cache_file
6386 else
Benny Prijonod4306432010-05-01 22:05:41 +00006387 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6388$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006389 fi
6390fi
6391rm -f confcache
6392
6393test "x$prefix" = xNONE && prefix=$ac_default_prefix
6394# Let make expand exec_prefix.
6395test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6396
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006397DEFS=-DHAVE_CONFIG_H
6398
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006399ac_libobjs=
6400ac_ltlibobjs=
6401for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6402 # 1. Remove the extension, and $U if already installed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006403 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Benny Prijonod4306432010-05-01 22:05:41 +00006404 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006405 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6406 # will be set to the directory where LIBOBJS objects are built.
Benny Prijonod4306432010-05-01 22:05:41 +00006407 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6408 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006409done
6410LIBOBJS=$ac_libobjs
6411
6412LTLIBOBJS=$ac_ltlibobjs
6413
6414
6415
Benny Prijonod4306432010-05-01 22:05:41 +00006416
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006417: ${CONFIG_STATUS=./config.status}
Benny Prijonod4306432010-05-01 22:05:41 +00006418ac_write_fail=0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006419ac_clean_files_save=$ac_clean_files
6420ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijonod4306432010-05-01 22:05:41 +00006421{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6422$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6423as_write_fail=0
6424cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006425#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006426# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006427# Run this file to recreate the current configuration.
6428# Compiler output produced by configure, useful for debugging
6429# configure, is in config.log if it exists.
6430
6431debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006432ac_cs_recheck=false
6433ac_cs_silent=false
Benny Prijono46bd0842010-02-12 14:12:41 +00006434
Benny Prijonod4306432010-05-01 22:05:41 +00006435SHELL=\${CONFIG_SHELL-$SHELL}
6436export SHELL
6437_ASEOF
6438cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6439## -------------------- ##
6440## M4sh Initialization. ##
6441## -------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006442
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006443# Be more Bourne compatible
6444DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijonod4306432010-05-01 22:05:41 +00006445if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006446 emulate sh
6447 NULLCMD=:
Benny Prijonod4306432010-05-01 22:05:41 +00006448 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006449 # is contrary to our usage. Disable this feature.
6450 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006451 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +00006452else
Benny Prijonod4306432010-05-01 22:05:41 +00006453 case `(set -o) 2>/dev/null` in #(
6454 *posix*) :
6455 set -o posix ;; #(
6456 *) :
6457 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006458esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006459fi
6460
6461
Benny Prijonod4306432010-05-01 22:05:41 +00006462as_nl='
6463'
6464export as_nl
6465# Printing a long string crashes Solaris 7 /usr/bin/printf.
6466as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6467as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6468as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6469# Prefer a ksh shell builtin over an external printf program on Solaris,
6470# but without wasting forks for bash or zsh.
6471if test -z "$BASH_VERSION$ZSH_VERSION" \
6472 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6473 as_echo='print -r --'
6474 as_echo_n='print -rn --'
6475elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6476 as_echo='printf %s\n'
6477 as_echo_n='printf %s'
6478else
6479 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6480 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6481 as_echo_n='/usr/ucb/echo -n'
6482 else
6483 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6484 as_echo_n_body='eval
6485 arg=$1;
6486 case $arg in #(
6487 *"$as_nl"*)
6488 expr "X$arg" : "X\\(.*\\)$as_nl";
6489 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6490 esac;
6491 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6492 '
6493 export as_echo_n_body
6494 as_echo_n='sh -c $as_echo_n_body as_echo'
6495 fi
6496 export as_echo_body
6497 as_echo='sh -c $as_echo_body as_echo'
6498fi
Benny Prijonod5233702010-01-13 13:09:45 +00006499
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006500# The user is always right.
6501if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijonod4306432010-05-01 22:05:41 +00006502 PATH_SEPARATOR=:
6503 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6504 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6505 PATH_SEPARATOR=';'
6506 }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006507fi
6508
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006509
6510# IFS
6511# We need space, tab and new line, in precisely that order. Quoting is
6512# there to prevent editors from complaining about space-tab.
6513# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6514# splitting by setting IFS to empty value.)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006515IFS=" "" $as_nl"
6516
6517# Find who we are. Look in the path if we contain no directory separator.
Benny Prijonod4306432010-05-01 22:05:41 +00006518case $0 in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006519 *[\\/]* ) as_myself=$0 ;;
6520 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006521for as_dir in $PATH
6522do
6523 IFS=$as_save_IFS
6524 test -z "$as_dir" && as_dir=.
Benny Prijonod4306432010-05-01 22:05:41 +00006525 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6526 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006527IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006528
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006529 ;;
6530esac
6531# We did not find ourselves, most probably we were run as `sh COMMAND'
6532# in which case we are not to be found in the path.
6533if test "x$as_myself" = x; then
6534 as_myself=$0
6535fi
6536if test ! -f "$as_myself"; then
Benny Prijonod4306432010-05-01 22:05:41 +00006537 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6538 exit 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006539fi
6540
Benny Prijonod4306432010-05-01 22:05:41 +00006541# Unset variables that we do not need and which cause bugs (e.g. in
6542# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6543# suppresses any "Segmentation fault" message there. '((' could
6544# trigger a bug in pdksh 5.2.14.
6545for as_var in BASH_ENV ENV MAIL MAILPATH
6546do eval test x\${$as_var+set} = xset \
6547 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006548done
6549PS1='$ '
6550PS2='> '
6551PS4='+ '
6552
6553# NLS nuisances.
Benny Prijonod4306432010-05-01 22:05:41 +00006554LC_ALL=C
6555export LC_ALL
6556LANGUAGE=C
6557export LANGUAGE
Benny Prijonofe0c1272010-01-13 16:28:15 +00006558
Benny Prijonod4306432010-05-01 22:05:41 +00006559# CDPATH.
6560(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6561
6562
6563# as_fn_error ERROR [LINENO LOG_FD]
6564# ---------------------------------
6565# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6566# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6567# script with status $?, using 1 if that was 0.
6568as_fn_error ()
6569{
6570 as_status=$?; test $as_status -eq 0 && as_status=1
6571 if test "$3"; then
6572 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6573 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6574 fi
6575 $as_echo "$as_me: error: $1" >&2
6576 as_fn_exit $as_status
6577} # as_fn_error
6578
6579
6580# as_fn_set_status STATUS
6581# -----------------------
6582# Set $? to STATUS, without forking.
6583as_fn_set_status ()
6584{
6585 return $1
6586} # as_fn_set_status
6587
6588# as_fn_exit STATUS
6589# -----------------
6590# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6591as_fn_exit ()
6592{
6593 set +e
6594 as_fn_set_status $1
6595 exit $1
6596} # as_fn_exit
6597
6598# as_fn_unset VAR
6599# ---------------
6600# Portably unset VAR.
6601as_fn_unset ()
6602{
6603 { eval $1=; unset $1;}
6604}
6605as_unset=as_fn_unset
6606# as_fn_append VAR VALUE
6607# ----------------------
6608# Append the text in VALUE to the end of the definition contained in VAR. Take
6609# advantage of any shell optimizations that allow amortized linear growth over
6610# repeated appends, instead of the typical quadratic growth present in naive
6611# implementations.
6612if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6613 eval 'as_fn_append ()
6614 {
6615 eval $1+=\$2
6616 }'
6617else
6618 as_fn_append ()
6619 {
6620 eval $1=\$$1\$2
6621 }
6622fi # as_fn_append
6623
6624# as_fn_arith ARG...
6625# ------------------
6626# Perform arithmetic evaluation on the ARGs, and store the result in the
6627# global $as_val. Take advantage of shells that can avoid forks. The arguments
6628# must be portable across $(()) and expr.
6629if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6630 eval 'as_fn_arith ()
6631 {
6632 as_val=$(( $* ))
6633 }'
6634else
6635 as_fn_arith ()
6636 {
6637 as_val=`expr "$@" || test $? -eq 1`
6638 }
6639fi # as_fn_arith
6640
6641
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006642if expr a : '\(a\)' >/dev/null 2>&1 &&
6643 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6644 as_expr=expr
6645else
6646 as_expr=false
6647fi
6648
6649if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6650 as_basename=basename
6651else
6652 as_basename=false
6653fi
6654
Benny Prijonod4306432010-05-01 22:05:41 +00006655if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6656 as_dirname=dirname
6657else
6658 as_dirname=false
6659fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006660
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006661as_me=`$as_basename -- "$0" ||
6662$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6663 X"$0" : 'X\(//\)$' \| \
6664 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonod4306432010-05-01 22:05:41 +00006665$as_echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006666 sed '/^.*\/\([^/][^/]*\)\/*$/{
6667 s//\1/
6668 q
6669 }
6670 /^X\/\(\/\/\)$/{
6671 s//\1/
6672 q
6673 }
6674 /^X\/\(\/\).*/{
6675 s//\1/
6676 q
6677 }
6678 s/.*/./; q'`
6679
Benny Prijonod4306432010-05-01 22:05:41 +00006680# Avoid depending upon Character Ranges.
6681as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6682as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6683as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6684as_cr_digits='0123456789'
6685as_cr_alnum=$as_cr_Letters$as_cr_digits
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006686
6687ECHO_C= ECHO_N= ECHO_T=
Benny Prijonod4306432010-05-01 22:05:41 +00006688case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006689-n*)
Benny Prijonod4306432010-05-01 22:05:41 +00006690 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006691 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijonod4306432010-05-01 22:05:41 +00006692 xy) ECHO_C='\c';;
6693 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6694 ECHO_T=' ';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006695 esac;;
6696*)
6697 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006698esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006699
6700rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006701if test -d conf$$.dir; then
6702 rm -f conf$$.dir/conf$$.file
6703else
6704 rm -f conf$$.dir
Benny Prijonod4306432010-05-01 22:05:41 +00006705 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006706fi
Benny Prijonod4306432010-05-01 22:05:41 +00006707if (echo >conf$$.file) 2>/dev/null; then
6708 if ln -s conf$$.file conf$$ 2>/dev/null; then
6709 as_ln_s='ln -s'
6710 # ... but there are two gotchas:
6711 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6712 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6713 # In both cases, we have to default to `cp -p'.
6714 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6715 as_ln_s='cp -p'
6716 elif ln conf$$.file conf$$ 2>/dev/null; then
6717 as_ln_s=ln
6718 else
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006719 as_ln_s='cp -p'
Benny Prijonod4306432010-05-01 22:05:41 +00006720 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006721else
6722 as_ln_s='cp -p'
6723fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006724rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6725rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006726
Benny Prijonod4306432010-05-01 22:05:41 +00006727
6728# as_fn_mkdir_p
6729# -------------
6730# Create "$as_dir" as a directory, including parents if necessary.
6731as_fn_mkdir_p ()
6732{
6733
6734 case $as_dir in #(
6735 -*) as_dir=./$as_dir;;
6736 esac
6737 test -d "$as_dir" || eval $as_mkdir_p || {
6738 as_dirs=
6739 while :; do
6740 case $as_dir in #(
6741 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6742 *) as_qdir=$as_dir;;
6743 esac
6744 as_dirs="'$as_qdir' $as_dirs"
6745 as_dir=`$as_dirname -- "$as_dir" ||
6746$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6747 X"$as_dir" : 'X\(//\)[^/]' \| \
6748 X"$as_dir" : 'X\(//\)$' \| \
6749 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6750$as_echo X"$as_dir" |
6751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6752 s//\1/
6753 q
6754 }
6755 /^X\(\/\/\)[^/].*/{
6756 s//\1/
6757 q
6758 }
6759 /^X\(\/\/\)$/{
6760 s//\1/
6761 q
6762 }
6763 /^X\(\/\).*/{
6764 s//\1/
6765 q
6766 }
6767 s/.*/./; q'`
6768 test -d "$as_dir" && break
6769 done
6770 test -z "$as_dirs" || eval "mkdir $as_dirs"
6771 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6772
6773
6774} # as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006775if mkdir -p . 2>/dev/null; then
Benny Prijonod4306432010-05-01 22:05:41 +00006776 as_mkdir_p='mkdir -p "$as_dir"'
Benny Prijono39ae2da2006-10-13 17:57:42 +00006777else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006778 test -d ./-p && rmdir ./-p
6779 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +00006780fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00006781
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006782if test -x / >/dev/null 2>&1; then
6783 as_test_x='test -x'
6784else
6785 if ls -dL / >/dev/null 2>&1; then
6786 as_ls_L_option=L
6787 else
6788 as_ls_L_option=
6789 fi
6790 as_test_x='
6791 eval sh -c '\''
6792 if test -d "$1"; then
Benny Prijonod4306432010-05-01 22:05:41 +00006793 test -d "$1/.";
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006794 else
Benny Prijonod4306432010-05-01 22:05:41 +00006795 case $1 in #(
6796 -*)set "./$1";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006797 esac;
Benny Prijonod4306432010-05-01 22:05:41 +00006798 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006799 ???[sx]*):;;*)false;;esac;fi
6800 '\'' sh
6801 '
6802fi
6803as_executable_p=$as_test_x
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006804
6805# Sed expression to map a string onto a valid CPP name.
6806as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6807
6808# Sed expression to map a string onto a valid variable name.
6809as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6810
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006811
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006812exec 6>&1
Benny Prijonod4306432010-05-01 22:05:41 +00006813## ----------------------------------- ##
6814## Main body of $CONFIG_STATUS script. ##
6815## ----------------------------------- ##
6816_ASEOF
6817test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006818
Benny Prijonod4306432010-05-01 22:05:41 +00006819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6820# Save the log message, to keep $0 and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006821# report actual input values of CONFIG_FILES etc. instead of their
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006822# values after options handling.
6823ac_log="
Benny Prijono8a9b3b22010-01-14 14:46:54 +00006824This file was extended by pjproject $as_me 1.x, which was
Benny Prijono5bbebc02010-06-15 05:21:43 +00006825generated by GNU Autoconf 2.65. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006826
6827 CONFIG_FILES = $CONFIG_FILES
6828 CONFIG_HEADERS = $CONFIG_HEADERS
6829 CONFIG_LINKS = $CONFIG_LINKS
6830 CONFIG_COMMANDS = $CONFIG_COMMANDS
6831 $ $0 $@
6832
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006833on `(hostname || uname -n) 2>/dev/null | sed 1q`
6834"
6835
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006836_ACEOF
6837
Benny Prijonod4306432010-05-01 22:05:41 +00006838case $ac_config_files in *"
6839"*) set x $ac_config_files; shift; ac_config_files=$*;;
6840esac
6841
6842case $ac_config_headers in *"
6843"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6844esac
6845
6846
6847cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006848# Files that config.status was made for.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006849config_files="$ac_config_files"
6850config_headers="$ac_config_headers"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006851
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006852_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006853
Benny Prijonod4306432010-05-01 22:05:41 +00006854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006855ac_cs_usage="\
Benny Prijonod4306432010-05-01 22:05:41 +00006856\`$as_me' instantiates files and other configuration actions
6857from templates according to the current configuration. Unless the files
6858and actions are specified as TAGs, all are instantiated by default.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006859
Benny Prijonod4306432010-05-01 22:05:41 +00006860Usage: $0 [OPTION]... [TAG]...
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006861
6862 -h, --help print this help, then exit
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006863 -V, --version print version number and configuration settings, then exit
Benny Prijono5bbebc02010-06-15 05:21:43 +00006864 --config print configuration, then exit
Benny Prijonod4306432010-05-01 22:05:41 +00006865 -q, --quiet, --silent
6866 do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006867 -d, --debug don't remove temporary files
6868 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijonod4306432010-05-01 22:05:41 +00006869 --file=FILE[:TEMPLATE]
6870 instantiate the configuration file FILE
6871 --header=FILE[:TEMPLATE]
6872 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006873
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006874Configuration files:
6875$config_files
6876
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006877Configuration headers:
6878$config_headers
6879
Benny Prijonod4306432010-05-01 22:05:41 +00006880Report bugs to the package provider."
Benny Prijonoe2746132008-09-27 13:16:35 +00006881
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006882_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00006883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijono5bbebc02010-06-15 05:21:43 +00006884ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006885ac_cs_version="\\
Benny Prijono8a9b3b22010-01-14 14:46:54 +00006886pjproject config.status 1.x
Benny Prijono5bbebc02010-06-15 05:21:43 +00006887configured by $0, generated by GNU Autoconf 2.65,
6888 with options \\"\$ac_cs_config\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006889
Benny Prijonod4306432010-05-01 22:05:41 +00006890Copyright (C) 2009 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006891This config.status script is free software; the Free Software Foundation
6892gives unlimited permission to copy, distribute and modify it."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006893
6894ac_pwd='$ac_pwd'
6895srcdir='$srcdir'
Benny Prijonod4306432010-05-01 22:05:41 +00006896test -n "\$AWK" || AWK=awk
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006897_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006898
Benny Prijonod4306432010-05-01 22:05:41 +00006899cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6900# The default lists apply if the user does not specify any file.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006901ac_need_defaults=:
6902while test $# != 0
6903do
6904 case $1 in
6905 --*=*)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006906 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6907 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006908 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006909 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006910 *)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006911 ac_option=$1
6912 ac_optarg=$2
6913 ac_shift=shift
6914 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006915 esac
6916
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006917 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006918 # Handling of the options.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006919 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006920 ac_cs_recheck=: ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006921 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Benny Prijonod4306432010-05-01 22:05:41 +00006922 $as_echo "$ac_cs_version"; exit ;;
Benny Prijono5bbebc02010-06-15 05:21:43 +00006923 --config | --confi | --conf | --con | --co | --c )
6924 $as_echo "$ac_cs_config"; exit ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006925 --debug | --debu | --deb | --de | --d | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006926 debug=: ;;
6927 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006928 $ac_shift
Benny Prijonod4306432010-05-01 22:05:41 +00006929 case $ac_optarg in
6930 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6931 esac
6932 as_fn_append CONFIG_FILES " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006933 ac_need_defaults=false;;
6934 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006935 $ac_shift
Benny Prijonod4306432010-05-01 22:05:41 +00006936 case $ac_optarg in
6937 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6938 esac
6939 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006940 ac_need_defaults=false;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006941 --he | --h)
6942 # Conflict between --help and --header
Benny Prijonod4306432010-05-01 22:05:41 +00006943 as_fn_error "ambiguous option: \`$1'
6944Try \`$0 --help' for more information.";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006945 --help | --hel | -h )
Benny Prijonod4306432010-05-01 22:05:41 +00006946 $as_echo "$ac_cs_usage"; exit ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6948 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6949 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006950
6951 # This is an error.
Benny Prijonod4306432010-05-01 22:05:41 +00006952 -*) as_fn_error "unrecognized option: \`$1'
6953Try \`$0 --help' for more information." ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006954
Benny Prijonod4306432010-05-01 22:05:41 +00006955 *) as_fn_append ac_config_targets " $1"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006956 ac_need_defaults=false ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006957
6958 esac
6959 shift
6960done
6961
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006962ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006963
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006964if $ac_cs_silent; then
6965 exec 6>/dev/null
6966 ac_configure_extra_args="$ac_configure_extra_args --silent"
6967fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006968
6969_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00006970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006971if \$ac_cs_recheck; then
Benny Prijonod4306432010-05-01 22:05:41 +00006972 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6973 shift
6974 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6975 CONFIG_SHELL='$SHELL'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006976 export CONFIG_SHELL
Benny Prijonod4306432010-05-01 22:05:41 +00006977 exec "\$@"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006978fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006979
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006980_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00006981cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006982exec 5>>config.log
6983{
6984 echo
6985 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6986## Running $as_me. ##
6987_ASBOX
Benny Prijonod4306432010-05-01 22:05:41 +00006988 $as_echo "$ac_log"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006989} >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006990
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006991_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00006992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006993_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006994
Benny Prijonod4306432010-05-01 22:05:41 +00006995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006996
6997# Handling of arguments.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00006998for ac_config_target in $ac_config_targets
6999do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007000 case $ac_config_target in
7001 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
7002 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
7003 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
7004 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
7005 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
7006 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
7007 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
Benny Prijono8ec5eae2010-05-12 10:59:20 +00007008 "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007009 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
7010 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
7011 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
7012 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007013 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijono8a9b3b22010-01-14 14:46:54 +00007014 "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 +00007015
Benny Prijonod4306432010-05-01 22:05:41 +00007016 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007017 esac
7018done
7019
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007020
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007021# If the user did not use the arguments to specify the items to instantiate,
7022# then the envvar interface is used. Set only those that are not.
7023# We use the long form for the default assignment because of an extremely
7024# bizarre bug on SunOS 4.1.3.
7025if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007026 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007027 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7028fi
7029
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007030# Have a temporary directory for convenience. Make it in the build tree
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007031# simply because there is no reason against having it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007032# creating and moving files from /tmp can sometimes cause problems.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007033# Hook for its removal unless debugging.
7034# Note that there is a small window in which the directory will not be cleaned:
7035# after its creation but before its name has been assigned to `$tmp'.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007036$debug ||
7037{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007038 tmp=
7039 trap 'exit_status=$?
7040 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7041' 0
Benny Prijonod4306432010-05-01 22:05:41 +00007042 trap 'as_fn_exit 1' 1 2 13 15
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007043}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007044# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007045
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007046{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007047 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007048 test -n "$tmp" && test -d "$tmp"
7049} ||
7050{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007051 tmp=./conf$$-$RANDOM
7052 (umask 077 && mkdir "$tmp")
Benny Prijonod4306432010-05-01 22:05:41 +00007053} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007054
Benny Prijonod4306432010-05-01 22:05:41 +00007055# Set up the scripts for CONFIG_FILES section.
7056# No need to generate them if there are no CONFIG_FILES.
7057# This happens for instance with `./config.status config.h'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007058if test -n "$CONFIG_FILES"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007059
Benny Prijonod4306432010-05-01 22:05:41 +00007060
7061ac_cr=`echo X | tr X '\015'`
7062# On cygwin, bash can eat \r inside `` if the user requested igncr.
7063# But we know of no other shell where ac_cr would be empty at this
7064# point, so we can use a bashism as a fallback.
7065if test "x$ac_cr" = x; then
7066 eval ac_cr=\$\'\\r\'
7067fi
7068ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7069if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7070 ac_cs_awk_cr='\r'
7071else
7072 ac_cs_awk_cr=$ac_cr
7073fi
7074
7075echo 'BEGIN {' >"$tmp/subs1.awk" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007076_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007077
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007078
Benny Prijonod4306432010-05-01 22:05:41 +00007079{
7080 echo "cat >conf$$subs.awk <<_ACEOF" &&
7081 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7082 echo "_ACEOF"
7083} >conf$$subs.sh ||
7084 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7085ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007086ac_delim='%!_!# '
7087for ac_last_try in false false false false false :; do
Benny Prijonod4306432010-05-01 22:05:41 +00007088 . ./conf$$subs.sh ||
7089 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007090
Benny Prijonod4306432010-05-01 22:05:41 +00007091 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7092 if test $ac_delim_n = $ac_delim_num; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007093 break
7094 elif $ac_last_try; then
Benny Prijonod4306432010-05-01 22:05:41 +00007095 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007096 else
7097 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007098 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007099done
Benny Prijonod4306432010-05-01 22:05:41 +00007100rm -f conf$$subs.sh
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007101
Benny Prijonod4306432010-05-01 22:05:41 +00007102cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7103cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007104_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00007105sed -n '
7106h
7107s/^/S["/; s/!.*/"]=/
7108p
7109g
7110s/^[^!]*!//
7111:repl
7112t repl
7113s/'"$ac_delim"'$//
7114t delim
7115:nl
7116h
Benny Prijono5bbebc02010-06-15 05:21:43 +00007117s/\(.\{148\}\)..*/\1/
Benny Prijonod4306432010-05-01 22:05:41 +00007118t more1
7119s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7120p
7121n
7122b repl
7123:more1
7124s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7125p
7126g
7127s/.\{148\}//
7128t nl
7129:delim
7130h
Benny Prijono5bbebc02010-06-15 05:21:43 +00007131s/\(.\{148\}\)..*/\1/
Benny Prijonod4306432010-05-01 22:05:41 +00007132t more2
7133s/["\\]/\\&/g; s/^/"/; s/$/"/
7134p
7135b
7136:more2
7137s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7138p
7139g
7140s/.\{148\}//
7141t delim
7142' <conf$$subs.awk | sed '
7143/^[^""]/{
7144 N
7145 s/\n//
7146}
7147' >>$CONFIG_STATUS || ac_write_fail=1
7148rm -f conf$$subs.awk
7149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7150_ACAWK
7151cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7152 for (key in S) S_is_set[key] = 1
7153 FS = ""
Benny Prijono46bd0842010-02-12 14:12:41 +00007154
Benny Prijonod4306432010-05-01 22:05:41 +00007155}
7156{
7157 line = $ 0
7158 nfields = split(line, field, "@")
7159 substed = 0
7160 len = length(field[1])
7161 for (i = 2; i < nfields; i++) {
7162 key = field[i]
7163 keylen = length(key)
7164 if (S_is_set[key]) {
7165 value = S[key]
7166 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7167 len += length(value) + length(field[++i])
7168 substed = 1
7169 } else
7170 len += 1 + keylen
7171 }
7172
7173 print line
7174}
7175
7176_ACAWK
7177_ACEOF
7178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7179if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7180 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7181else
7182 cat
7183fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7184 || as_fn_error "could not setup config files machinery" "$LINENO" 5
7185_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007186
7187# VPATH may cause trouble with some makes, so we remove $(srcdir),
7188# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7189# trailing colons and then remove the whole line if VPATH becomes empty
7190# (actually we leave an empty line to preserve line numbers).
7191if test "x$srcdir" = x.; then
7192 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7193s/:*\$(srcdir):*/:/
7194s/:*\${srcdir}:*/:/
7195s/:*@srcdir@:*/:/
7196s/^\([^=]*=[ ]*\):*/\1/
7197s/:*$//
7198s/^[^=]*=[ ]*$//
7199}'
7200fi
7201
Benny Prijonod4306432010-05-01 22:05:41 +00007202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007203fi # test -n "$CONFIG_FILES"
7204
Benny Prijonod4306432010-05-01 22:05:41 +00007205# Set up the scripts for CONFIG_HEADERS section.
7206# No need to generate them if there are no CONFIG_HEADERS.
7207# This happens for instance with `./config.status Makefile'.
7208if test -n "$CONFIG_HEADERS"; then
7209cat >"$tmp/defines.awk" <<\_ACAWK ||
7210BEGIN {
7211_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007212
Benny Prijonod4306432010-05-01 22:05:41 +00007213# Transform confdefs.h into an awk script `defines.awk', embedded as
7214# here-document in config.status, that substitutes the proper values into
7215# config.h.in to produce config.h.
7216
7217# Create a delimiter string that does not exist in confdefs.h, to ease
7218# handling of long lines.
7219ac_delim='%!_!# '
7220for ac_last_try in false false :; do
7221 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7222 if test -z "$ac_t"; then
7223 break
7224 elif $ac_last_try; then
7225 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7226 else
7227 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7228 fi
7229done
7230
7231# For the awk script, D is an array of macro values keyed by name,
7232# likewise P contains macro parameters if any. Preserve backslash
7233# newline sequences.
7234
7235ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7236sed -n '
7237s/.\{148\}/&'"$ac_delim"'/g
7238t rset
7239:rset
7240s/^[ ]*#[ ]*define[ ][ ]*/ /
7241t def
7242d
7243:def
7244s/\\$//
7245t bsnl
7246s/["\\]/\\&/g
7247s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7248D["\1"]=" \3"/p
7249s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7250d
7251:bsnl
7252s/["\\]/\\&/g
7253s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7254D["\1"]=" \3\\\\\\n"\\/p
7255t cont
7256s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7257t cont
7258d
7259:cont
7260n
7261s/.\{148\}/&'"$ac_delim"'/g
7262t clear
7263:clear
7264s/\\$//
7265t bsnlc
7266s/["\\]/\\&/g; s/^/"/; s/$/"/p
7267d
7268:bsnlc
7269s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7270b cont
7271' <confdefs.h | sed '
7272s/'"$ac_delim"'/"\\\
7273"/g' >>$CONFIG_STATUS || ac_write_fail=1
7274
7275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7276 for (key in D) D_is_set[key] = 1
7277 FS = ""
7278}
7279/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7280 line = \$ 0
7281 split(line, arg, " ")
7282 if (arg[1] == "#") {
7283 defundef = arg[2]
7284 mac1 = arg[3]
7285 } else {
7286 defundef = substr(arg[1], 2)
7287 mac1 = arg[2]
7288 }
7289 split(mac1, mac2, "(") #)
7290 macro = mac2[1]
7291 prefix = substr(line, 1, index(line, defundef) - 1)
7292 if (D_is_set[macro]) {
7293 # Preserve the white space surrounding the "#".
7294 print prefix "define", macro P[macro] D[macro]
7295 next
7296 } else {
7297 # Replace #undef with comments. This is necessary, for example,
7298 # in the case of _POSIX_SOURCE, which is predefined and required
7299 # on some systems where configure will not decide to define it.
7300 if (defundef == "undef") {
7301 print "/*", prefix defundef, macro, "*/"
7302 next
7303 }
7304 }
7305}
7306{ print }
7307_ACAWK
7308_ACEOF
7309cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7310 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7311fi # test -n "$CONFIG_HEADERS"
7312
7313
7314eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7315shift
7316for ac_tag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007317do
7318 case $ac_tag in
7319 :[FHLC]) ac_mode=$ac_tag; continue;;
7320 esac
7321 case $ac_mode$ac_tag in
7322 :[FHL]*:*);;
Benny Prijonod4306432010-05-01 22:05:41 +00007323 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007324 :[FH]-) ac_tag=-:-;;
7325 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7326 esac
7327 ac_save_IFS=$IFS
7328 IFS=:
7329 set x $ac_tag
7330 IFS=$ac_save_IFS
7331 shift
7332 ac_file=$1
7333 shift
7334
7335 case $ac_mode in
7336 :L) ac_source=$1;;
7337 :[FH])
7338 ac_file_inputs=
7339 for ac_f
7340 do
7341 case $ac_f in
7342 -) ac_f="$tmp/stdin";;
7343 *) # Look for the file first in the build tree, then in the source tree
7344 # (if the path is not absolute). The absolute path cannot be DOS-style,
7345 # because $ac_f cannot contain `:'.
7346 test -f "$ac_f" ||
7347 case $ac_f in
7348 [\\/$]*) false;;
7349 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7350 esac ||
Benny Prijonod4306432010-05-01 22:05:41 +00007351 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007352 esac
Benny Prijonod4306432010-05-01 22:05:41 +00007353 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7354 as_fn_append ac_file_inputs " '$ac_f'"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007355 done
7356
7357 # Let's still pretend it is `configure' which instantiates (i.e., don't
7358 # use $as_me), people would be surprised to read:
7359 # /* config.h. Generated by config.status. */
Benny Prijonod4306432010-05-01 22:05:41 +00007360 configure_input='Generated from '`
7361 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7362 `' by configure.'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007363 if test x"$ac_file" != x-; then
7364 configure_input="$ac_file. $configure_input"
Benny Prijonod4306432010-05-01 22:05:41 +00007365 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7366$as_echo "$as_me: creating $ac_file" >&6;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007367 fi
Benny Prijonod4306432010-05-01 22:05:41 +00007368 # Neutralize special characters interpreted by sed in replacement strings.
7369 case $configure_input in #(
7370 *\&* | *\|* | *\\* )
7371 ac_sed_conf_input=`$as_echo "$configure_input" |
7372 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7373 *) ac_sed_conf_input=$configure_input;;
7374 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007375
7376 case $ac_tag in
Benny Prijonod4306432010-05-01 22:05:41 +00007377 *:-:* | *:-) cat >"$tmp/stdin" \
7378 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007379 esac
7380 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007381 esac
7382
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007383 ac_dir=`$as_dirname -- "$ac_file" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007384$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7385 X"$ac_file" : 'X\(//\)[^/]' \| \
7386 X"$ac_file" : 'X\(//\)$' \| \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007387 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijonod4306432010-05-01 22:05:41 +00007388$as_echo X"$ac_file" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7390 s//\1/
7391 q
7392 }
7393 /^X\(\/\/\)[^/].*/{
7394 s//\1/
7395 q
7396 }
7397 /^X\(\/\/\)$/{
7398 s//\1/
7399 q
7400 }
7401 /^X\(\/\).*/{
7402 s//\1/
7403 q
7404 }
7405 s/.*/./; q'`
Benny Prijonod4306432010-05-01 22:05:41 +00007406 as_dir="$ac_dir"; as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007407 ac_builddir=.
7408
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007409case "$ac_dir" in
7410.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7411*)
Benny Prijonod4306432010-05-01 22:05:41 +00007412 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007413 # A ".." for each directory in $ac_dir_suffix.
Benny Prijonod4306432010-05-01 22:05:41 +00007414 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007415 case $ac_top_builddir_sub in
7416 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7417 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7418 esac ;;
7419esac
7420ac_abs_top_builddir=$ac_pwd
7421ac_abs_builddir=$ac_pwd$ac_dir_suffix
7422# for backward compatibility:
7423ac_top_builddir=$ac_top_build_prefix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007424
7425case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007426 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007427 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007428 ac_top_srcdir=$ac_top_builddir_sub
7429 ac_abs_top_srcdir=$ac_pwd ;;
7430 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007431 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007432 ac_top_srcdir=$srcdir
7433 ac_abs_top_srcdir=$srcdir ;;
7434 *) # Relative name.
7435 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7436 ac_top_srcdir=$ac_top_build_prefix$srcdir
7437 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007438esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007439ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono9489e7a2008-09-19 22:18:50 +00007440
Benny Prijonoe2746132008-09-27 13:16:35 +00007441
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007442 case $ac_mode in
7443 :F)
7444 #
7445 # CONFIG_FILE
7446 #
Benny Prijonoe2746132008-09-27 13:16:35 +00007447
Benny Prijonoe2746132008-09-27 13:16:35 +00007448_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007449
Benny Prijonod4306432010-05-01 22:05:41 +00007450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007451# If the template does not know about datarootdir, expand it.
7452# FIXME: This hack should be removed a few years after 2.60.
7453ac_datarootdir_hack=; ac_datarootdir_seen=
Benny Prijonod4306432010-05-01 22:05:41 +00007454ac_sed_dataroot='
7455/datarootdir/ {
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007456 p
7457 q
7458}
7459/@datadir@/p
7460/@docdir@/p
7461/@infodir@/p
7462/@localedir@/p
Benny Prijonod4306432010-05-01 22:05:41 +00007463/@mandir@/p'
7464case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007465*datarootdir*) ac_datarootdir_seen=yes;;
7466*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Benny Prijonod4306432010-05-01 22:05:41 +00007467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7468$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007469_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00007470cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007471 ac_datarootdir_hack='
7472 s&@datadir@&$datadir&g
7473 s&@docdir@&$docdir&g
7474 s&@infodir@&$infodir&g
7475 s&@localedir@&$localedir&g
7476 s&@mandir@&$mandir&g
Benny Prijonod4306432010-05-01 22:05:41 +00007477 s&\\\${datarootdir}&$datarootdir&g' ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007478esac
7479_ACEOF
7480
7481# Neutralize VPATH when `$srcdir' = `.'.
7482# Shell code in configure.ac might set extrasub.
7483# FIXME: do we really want to maintain this feature?
Benny Prijonod4306432010-05-01 22:05:41 +00007484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7485ac_sed_extra="$ac_vpsub
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007486$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007487_ACEOF
Benny Prijonod4306432010-05-01 22:05:41 +00007488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007489:t
7490/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Benny Prijonod4306432010-05-01 22:05:41 +00007491s|@configure_input@|$ac_sed_conf_input|;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007492s&@top_builddir@&$ac_top_builddir_sub&;t t
Benny Prijonod4306432010-05-01 22:05:41 +00007493s&@top_build_prefix@&$ac_top_build_prefix&;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007494s&@srcdir@&$ac_srcdir&;t t
7495s&@abs_srcdir@&$ac_abs_srcdir&;t t
7496s&@top_srcdir@&$ac_top_srcdir&;t t
7497s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7498s&@builddir@&$ac_builddir&;t t
7499s&@abs_builddir@&$ac_abs_builddir&;t t
7500s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7501$ac_datarootdir_hack
Benny Prijonod4306432010-05-01 22:05:41 +00007502"
7503eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7504 || as_fn_error "could not create $ac_file" "$LINENO" 5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007505
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007506test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7507 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7508 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Benny Prijonod4306432010-05-01 22:05:41 +00007509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007510which seems to be undefined. Please make sure it is defined." >&5
Benny Prijonod4306432010-05-01 22:05:41 +00007511$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007512which seems to be undefined. Please make sure it is defined." >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007513
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007514 rm -f "$tmp/stdin"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007515 case $ac_file in
Benny Prijonod4306432010-05-01 22:05:41 +00007516 -) cat "$tmp/out" && rm -f "$tmp/out";;
7517 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7518 esac \
7519 || as_fn_error "could not create $ac_file" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007520 ;;
7521 :H)
7522 #
7523 # CONFIG_HEADER
7524 #
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007525 if test x"$ac_file" != x-; then
Benny Prijonod4306432010-05-01 22:05:41 +00007526 {
7527 $as_echo "/* $configure_input */" \
7528 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7529 } >"$tmp/config.h" \
7530 || as_fn_error "could not create $ac_file" "$LINENO" 5
7531 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7533$as_echo "$as_me: $ac_file is unchanged" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007534 else
Benny Prijonod4306432010-05-01 22:05:41 +00007535 rm -f "$ac_file"
7536 mv "$tmp/config.h" "$ac_file" \
7537 || as_fn_error "could not create $ac_file" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007538 fi
7539 else
Benny Prijonod4306432010-05-01 22:05:41 +00007540 $as_echo "/* $configure_input */" \
7541 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7542 || as_fn_error "could not create -" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007543 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007544 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007545
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007546
7547 esac
7548
7549done # for ac_tag
7550
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007551
Benny Prijonod4306432010-05-01 22:05:41 +00007552as_fn_exit 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007553_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007554ac_clean_files=$ac_clean_files_save
7555
Benny Prijonod4306432010-05-01 22:05:41 +00007556test $ac_write_fail = 0 ||
7557 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7558
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007559
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007560# configure is writing to config.log, and then calls config.status.
7561# config.status does its own redirection, appending to config.log.
7562# Unfortunately, on DOS this fails, as config.log is still kept open
7563# by configure, so config.status won't be able to write to it; its
7564# output is simply discarded. So we exec the FD to /dev/null,
7565# effectively closing config.log, so it can be properly (re)opened and
7566# appended to by config.status. When coming back to configure, we
7567# need to make the FD available again.
7568if test "$no_create" != yes; then
7569 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007570 ac_config_status_args=
7571 test "$silent" = yes &&
7572 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007573 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007574 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007575 exec 5>>config.log
7576 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7577 # would make configure fail if this is the last instruction.
Benny Prijonod4306432010-05-01 22:05:41 +00007578 $ac_cs_success || as_fn_exit $?
7579fi
7580if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7582$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Benny Prijonod5233702010-01-13 13:09:45 +00007583fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007584
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007585
Benny Prijonod9627842007-04-18 09:24:31 +00007586
Benny Prijonod4306432010-05-01 22:05:41 +00007587{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
Benny Prijonod9627842007-04-18 09:24:31 +00007588
Benny Prijonoc16c6e32007-11-18 14:53:47 +00007589Configurations 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 +00007590
Benny Prijonoc16c6e32007-11-18 14:53:47 +00007591Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00007592 - 'user.mak'
7593 - 'pjlib/include/pj/config_site.h'
7594
7595The next step now is to run 'make dep' and 'make'.
7596" >&5
Benny Prijonod4306432010-05-01 22:05:41 +00007597$as_echo "
Benny Prijonod9627842007-04-18 09:24:31 +00007598
Benny Prijonoc16c6e32007-11-18 14:53:47 +00007599Configurations 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 +00007600
Benny Prijonoc16c6e32007-11-18 14:53:47 +00007601Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00007602 - 'user.mak'
7603 - 'pjlib/include/pj/config_site.h'
7604
7605The next step now is to run 'make dep' and 'make'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007606" >&6; }
Benny Prijonod9627842007-04-18 09:24:31 +00007607