blob: 9d269825a6014dbfa5427761f67db2bc696003a7 [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003# Generated by GNU Autoconf 2.69 for pjproject 2.x.
Benny Prijono28d3c562012-03-30 07:10:13 +00004#
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005#
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Benny Prijono28d3c562012-03-30 07:10:13 +00007#
8#
Benny Prijonoa9b372a2006-07-24 02:07:11 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Benny Prijono28d3c562012-03-30 07:10:13 +000011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +000014
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijono28d3c562012-03-30 07:10:13 +000017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +000018 emulate sh
19 NULLCMD=:
Benny Prijono28d3c562012-03-30 07:10:13 +000020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +000021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000023 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +000024else
Benny Prijono28d3c562012-03-30 07:10:13 +000025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000030esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +000031fi
32
33
Benny Prijono28d3c562012-03-30 07:10:13 +000034as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
Benny Prijonod5233702010-01-13 13:09:45 +000071
Benny Prijono7e0d75f2006-12-25 20:34:14 +000072# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijono28d3c562012-03-30 07:10:13 +000074 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
Benny Prijonoa9b372a2006-07-24 02:07:11 +000079fi
80
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000081
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000087IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
Sauw Ming4e4ec7e2012-06-01 04:27:01 +000090as_myself=
Benny Prijono28d3c562012-03-30 07:10:13 +000091case $0 in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +000092 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +000094for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +000098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000100IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000101
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
Benny Prijono28d3c562012-03-30 07:10:13 +0000110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000112fi
113
Benny Prijono28d3c562012-03-30 07:10:13 +0000114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
Benny Prijono28d3c562012-03-30 07:10:13 +0000127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
Benny Prijonoe1105232011-10-26 06:49:34 +0000131
Benny Prijono28d3c562012-03-30 07:10:13 +0000132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
Benny Prijono28d3c562012-03-30 07:10:13 +0000160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
Benny Prijono28d3c562012-03-30 07:10:13 +0000195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
Benny Prijono28d3c562012-03-30 07:10:13 +0000258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Benny Prijono28d3c562012-03-30 07:10:13 +0000356
357
358} # as_fn_mkdir_p
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
Benny Prijono28d3c562012-03-30 07:10:13 +0000367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
Benny Prijono28d3c562012-03-30 07:10:13 +0000405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000407# script with STATUS, using 1 if that was 0.
Benny Prijono28d3c562012-03-30 07:10:13 +0000408as_fn_error ()
409{
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Benny Prijono28d3c562012-03-30 07:10:13 +0000414 fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000415 $as_echo "$as_me: error: $2" >&2
Benny Prijono28d3c562012-03-30 07:10:13 +0000416 as_fn_exit $as_status
417} # as_fn_error
418
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
Benny Prijono28d3c562012-03-30 07:10:13 +0000432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000437
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono28d3c562012-03-30 07:10:13 +0000442$as_echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
Benny Prijono28d3c562012-03-30 07:10:13 +0000457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000463
464
Benny Prijono28d3c562012-03-30 07:10:13 +0000465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000474 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000479 N
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000482 t loop
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000483 s/-\n.*//
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000484 ' >$as_me.lineno &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000485 chmod +x "$as_me.lineno" ||
Benny Prijono28d3c562012-03-30 07:10:13 +0000486 { $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 +0000487
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000496 # Exit status is that of the last command.
497 exit
498}
499
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000500ECHO_C= ECHO_N= ECHO_T=
Benny Prijono28d3c562012-03-30 07:10:13 +0000501case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000502-n*)
Benny Prijono28d3c562012-03-30 07:10:13 +0000503 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijono28d3c562012-03-30 07:10:13 +0000505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000508 esac;;
509*)
510 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000511esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000512
513rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
Benny Prijono28d3c562012-03-30 07:10:13 +0000518 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000519fi
Benny Prijono28d3c562012-03-30 07:10:13 +0000520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000526 # In both cases, we have to default to `cp -pR'.
Benny Prijono28d3c562012-03-30 07:10:13 +0000527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000528 as_ln_s='cp -pR'
Benny Prijono28d3c562012-03-30 07:10:13 +0000529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000532 as_ln_s='cp -pR'
Benny Prijono28d3c562012-03-30 07:10:13 +0000533 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000534else
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000535 as_ln_s='cp -pR'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000536fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000539
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000540if mkdir -p . 2>/dev/null; then
Benny Prijono28d3c562012-03-30 07:10:13 +0000541 as_mkdir_p='mkdir -p "$as_dir"'
Benny Prijono39ae2da2006-10-13 17:57:42 +0000542else
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +0000545fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +0000546
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000556
Benny Prijono28d3c562012-03-30 07:10:13 +0000557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000559
560# Name of the host.
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000569ac_clean_files=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000570ac_config_libobj_dir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000571LIBOBJS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000572cross_compiling=no
573subdirs=
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000574MFLAGS=
575MAKEFLAGS=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000576
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000577# Identity of this package.
578PACKAGE_NAME='pjproject'
579PACKAGE_TARNAME='pjproject'
Benny Prijono28d3c562012-03-30 07:10:13 +0000580PACKAGE_VERSION='2.x'
581PACKAGE_STRING='pjproject 2.x'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000582PACKAGE_BUGREPORT=''
Benny Prijono28d3c562012-03-30 07:10:13 +0000583PACKAGE_URL=''
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000584
585# Factoring default headers for most tests.
586ac_includes_default="\
587#include <stdio.h>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000588#ifdef HAVE_SYS_TYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000589# include <sys/types.h>
590#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000591#ifdef HAVE_SYS_STAT_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000592# include <sys/stat.h>
593#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000594#ifdef STDC_HEADERS
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000595# include <stdlib.h>
596# include <stddef.h>
597#else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000598# ifdef HAVE_STDLIB_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000599# include <stdlib.h>
600# endif
601#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000602#ifdef HAVE_STRING_H
603# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000604# include <memory.h>
605# endif
606# include <string.h>
607#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000608#ifdef HAVE_STRINGS_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000609# include <strings.h>
610#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000611#ifdef HAVE_INTTYPES_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000612# include <inttypes.h>
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000613#endif
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000614#ifdef HAVE_STDINT_H
615# include <stdint.h>
616#endif
617#ifdef HAVE_UNISTD_H
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000618# include <unistd.h>
619#endif"
620
Benny Prijono28d3c562012-03-30 07:10:13 +0000621ac_subst_vars='LTLIBOBJS
Benny Prijono36d32492011-12-28 08:42:23 +0000622LIBOBJS
Benny Prijono28d3c562012-03-30 07:10:13 +0000623ac_main_obj
624ac_host
625ac_linux_poll
Benny Prijono28d3c562012-03-30 07:10:13 +0000626opencore_amrnb_present
627opencore_amrnb_h_present
628ac_no_opencore_amrnb
629libcrypto_present
630libssl_present
631openssl_h_present
632ac_no_ssl
633ac_v4l2_ldflags
634ac_v4l2_cflags
Benny Prijonoeeebfab2012-04-23 13:46:21 +0000635PKG_CONFIG
636SAVED_PKG_CONFIG_PATH
Benny Prijono28d3c562012-03-30 07:10:13 +0000637ac_ffmpeg_ldflags
638ac_ffmpeg_cflags
639ac_has_ffmpeg
640ac_sdl_ldflags
641ac_sdl_cflags
642ac_resample_dll
643ac_no_ilbc_codec
644ac_no_speex_codec
645ac_no_g7221_codec
646ac_no_g722_codec
647ac_no_gsm_codec
648ac_no_l16_codec
649ac_no_g711_codec
650ac_no_speex_aec
651ac_no_large_filter
652ac_no_small_filter
653ac_qt_cflags
654ac_pjmedia_video_has_qt
655ac_ios_cflags
656ac_pjmedia_video_has_ios
657ac_pjmedia_video
658ac_pa_use_oss
659ac_pa_use_alsa
660ac_pa_cflags
661ac_external_pa
662ac_pjmedia_snd
663ac_external_gsm
664ac_external_speex
665ac_os_objs
666EGREP
667GREP
668CPP
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000669ac_cross_compile
Benny Prijono28d3c562012-03-30 07:10:13 +0000670ac_shlib_suffix
671ac_build_mak_vars
672ac_pjdir
673CC_CFLAGS
674CC_OPTIMIZE
675CC_DEF
676CC_INC
677CC_OUT
678LIBEXT2
679LIBEXT
680RANLIB
681LDOUT
682LD
683AR
684ac_ct_CXX
685CXXFLAGS
686CXX
687OBJEXT
688EXEEXT
689ac_ct_CC
690CPPFLAGS
691LDFLAGS
692CFLAGS
693CC
694target_os
695target_vendor
696target_cpu
697target
698host_os
699host_vendor
700host_cpu
701host
702build_os
703build_vendor
704build_cpu
705build
706target_alias
707host_alias
708build_alias
709LIBS
710ECHO_T
711ECHO_N
712ECHO_C
713DEFS
714mandir
715localedir
716libdir
717psdir
718pdfdir
719dvidir
720htmldir
721infodir
722docdir
723oldincludedir
724includedir
725localstatedir
726sharedstatedir
727sysconfdir
728datadir
729datarootdir
730libexecdir
731sbindir
732bindir
733program_transform_name
734prefix
735exec_prefix
736PACKAGE_URL
737PACKAGE_BUGREPORT
738PACKAGE_STRING
739PACKAGE_VERSION
740PACKAGE_TARNAME
741PACKAGE_NAME
742PATH_SEPARATOR
743SHELL'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000744ac_subst_files=''
Benny Prijono28d3c562012-03-30 07:10:13 +0000745ac_user_opts='
746enable_option_checking
747enable_floating_point
748enable_epoll
749with_external_speex
750with_external_gsm
751enable_sound
752with_external_pa
753enable_oss
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +0000754enable_video
Benny Prijono28d3c562012-03-30 07:10:13 +0000755enable_ext_sound
756enable_small_filter
757enable_large_filter
758enable_speex_aec
759enable_g711_codec
760enable_l16_codec
761enable_gsm_codec
762enable_g722_codec
763enable_g7221_codec
764enable_speex_codec
765enable_ilbc_codec
766enable_libsamplerate
767enable_resample_dll
768with_sdl
769enable_sdl
Benny Prijono28d3c562012-03-30 07:10:13 +0000770with_ffmpeg
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000771enable_ffmpeg
Benny Prijono28d3c562012-03-30 07:10:13 +0000772enable_v4l2
773enable_ipp
774with_ipp
775with_ipp_samples
776with_ipp_arch
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000777with_ssl
Benny Prijono28d3c562012-03-30 07:10:13 +0000778enable_ssl
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000779with_opencore_amrnb
Benny Prijono28d3c562012-03-30 07:10:13 +0000780enable_opencore_amrnb
781'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000782 ac_precious_vars='build_alias
783host_alias
784target_alias
785CC
786CFLAGS
787LDFLAGS
788LIBS
789CPPFLAGS
790CXX
791CXXFLAGS
792CCC
793CPP'
794
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000795
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000796# Initialize some variables set by options.
797ac_init_help=
798ac_init_version=false
Benny Prijono28d3c562012-03-30 07:10:13 +0000799ac_unrecognized_opts=
800ac_unrecognized_sep=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000801# The variables have the same names as the options, with
802# dashes changed to underlines.
803cache_file=/dev/null
804exec_prefix=NONE
805no_create=
806no_recursion=
807prefix=NONE
808program_prefix=NONE
809program_suffix=NONE
810program_transform_name=s,x,x,
811silent=
812site=
813srcdir=
814verbose=
815x_includes=NONE
816x_libraries=NONE
817
818# Installation directory options.
819# These are left unexpanded so users can "make install exec_prefix=/foo"
820# and all the variables that are supposed to be based on exec_prefix
821# by default will actually change.
822# Use braces instead of parens because sh, perl, etc. also accept them.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000823# (The list follows the same order as the GNU Coding Standards.)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000824bindir='${exec_prefix}/bin'
825sbindir='${exec_prefix}/sbin'
826libexecdir='${exec_prefix}/libexec'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000827datarootdir='${prefix}/share'
828datadir='${datarootdir}'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000829sysconfdir='${prefix}/etc'
830sharedstatedir='${prefix}/com'
831localstatedir='${prefix}/var'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000832includedir='${prefix}/include'
833oldincludedir='/usr/include'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000834docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835infodir='${datarootdir}/info'
836htmldir='${docdir}'
837dvidir='${docdir}'
838pdfdir='${docdir}'
839psdir='${docdir}'
840libdir='${exec_prefix}/lib'
841localedir='${datarootdir}/locale'
842mandir='${datarootdir}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000843
844ac_prev=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000845ac_dashdash=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000846for ac_option
847do
848 # If the previous option needs an argument, assign it.
849 if test -n "$ac_prev"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000850 eval $ac_prev=\$ac_option
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000851 ac_prev=
852 continue
853 fi
854
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000855 case $ac_option in
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000856 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 *=) ac_optarg= ;;
858 *) ac_optarg=yes ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000859 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000860
861 # Accept the important Cygnus configure options, so we can diagnose typos.
862
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000863 case $ac_dashdash$ac_option in
864 --)
865 ac_dashdash=yes ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000866
867 -bindir | --bindir | --bindi | --bind | --bin | --bi)
868 ac_prev=bindir ;;
869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870 bindir=$ac_optarg ;;
871
872 -build | --build | --buil | --bui | --bu)
873 ac_prev=build_alias ;;
874 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875 build_alias=$ac_optarg ;;
876
877 -cache-file | --cache-file | --cache-fil | --cache-fi \
878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879 ac_prev=cache_file ;;
880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882 cache_file=$ac_optarg ;;
883
884 --config-cache | -C)
885 cache_file=config.cache ;;
886
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000887 -datadir | --datadir | --datadi | --datad)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000888 ac_prev=datadir ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000889 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000890 datadir=$ac_optarg ;;
891
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893 | --dataroo | --dataro | --datar)
894 ac_prev=datarootdir ;;
895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897 datarootdir=$ac_optarg ;;
898
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000899 -disable-* | --disable-*)
Benny Prijono28d3c562012-03-30 07:10:13 +0000900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000901 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +0000902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000903 as_fn_error $? "invalid feature name: $ac_useropt"
Benny Prijono28d3c562012-03-30 07:10:13 +0000904 ac_useropt_orig=$ac_useropt
905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
907 *"
908"enable_$ac_useropt"
909"*) ;;
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
912 esac
913 eval enable_$ac_useropt=no ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000914
915 -docdir | --docdir | --docdi | --doc | --do)
916 ac_prev=docdir ;;
917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 docdir=$ac_optarg ;;
919
920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921 ac_prev=dvidir ;;
922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 dvidir=$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000924
925 -enable-* | --enable-*)
Benny Prijono28d3c562012-03-30 07:10:13 +0000926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000927 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +0000928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000929 as_fn_error $? "invalid feature name: $ac_useropt"
Benny Prijono28d3c562012-03-30 07:10:13 +0000930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934"enable_$ac_useropt"
935"*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000940
941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943 | --exec | --exe | --ex)
944 ac_prev=exec_prefix ;;
945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947 | --exec=* | --exe=* | --ex=*)
948 exec_prefix=$ac_optarg ;;
949
950 -gas | --gas | --ga | --g)
951 # Obsolete; use --with-gas.
952 with_gas=yes ;;
953
954 -help | --help | --hel | --he | -h)
955 ac_init_help=long ;;
956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957 ac_init_help=recursive ;;
958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959 ac_init_help=short ;;
960
961 -host | --host | --hos | --ho)
962 ac_prev=host_alias ;;
963 -host=* | --host=* | --hos=* | --ho=*)
964 host_alias=$ac_optarg ;;
965
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967 ac_prev=htmldir ;;
968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969 | --ht=*)
970 htmldir=$ac_optarg ;;
971
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000972 -includedir | --includedir | --includedi | --included | --include \
973 | --includ | --inclu | --incl | --inc)
974 ac_prev=includedir ;;
975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976 | --includ=* | --inclu=* | --incl=* | --inc=*)
977 includedir=$ac_optarg ;;
978
979 -infodir | --infodir | --infodi | --infod | --info | --inf)
980 ac_prev=infodir ;;
981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982 infodir=$ac_optarg ;;
983
984 -libdir | --libdir | --libdi | --libd)
985 ac_prev=libdir ;;
986 -libdir=* | --libdir=* | --libdi=* | --libd=*)
987 libdir=$ac_optarg ;;
988
989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990 | --libexe | --libex | --libe)
991 ac_prev=libexecdir ;;
992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993 | --libexe=* | --libex=* | --libe=*)
994 libexecdir=$ac_optarg ;;
995
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000996 -localedir | --localedir | --localedi | --localed | --locale)
997 ac_prev=localedir ;;
998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999 localedir=$ac_optarg ;;
1000
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001001 -localstatedir | --localstatedir | --localstatedi | --localstated \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001002 | --localstate | --localstat | --localsta | --localst | --locals)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001003 ac_prev=localstatedir ;;
1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001006 localstatedir=$ac_optarg ;;
1007
1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009 ac_prev=mandir ;;
1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011 mandir=$ac_optarg ;;
1012
1013 -nfp | --nfp | --nf)
1014 # Obsolete; use --without-fp.
1015 with_fp=no ;;
1016
1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001018 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001019 no_create=yes ;;
1020
1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023 no_recursion=yes ;;
1024
1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027 | --oldin | --oldi | --old | --ol | --o)
1028 ac_prev=oldincludedir ;;
1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032 oldincludedir=$ac_optarg ;;
1033
1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035 ac_prev=prefix ;;
1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037 prefix=$ac_optarg ;;
1038
1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040 | --program-pre | --program-pr | --program-p)
1041 ac_prev=program_prefix ;;
1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044 program_prefix=$ac_optarg ;;
1045
1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047 | --program-suf | --program-su | --program-s)
1048 ac_prev=program_suffix ;;
1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051 program_suffix=$ac_optarg ;;
1052
1053 -program-transform-name | --program-transform-name \
1054 | --program-transform-nam | --program-transform-na \
1055 | --program-transform-n | --program-transform- \
1056 | --program-transform | --program-transfor \
1057 | --program-transfo | --program-transf \
1058 | --program-trans | --program-tran \
1059 | --progr-tra | --program-tr | --program-t)
1060 ac_prev=program_transform_name ;;
1061 -program-transform-name=* | --program-transform-name=* \
1062 | --program-transform-nam=* | --program-transform-na=* \
1063 | --program-transform-n=* | --program-transform-=* \
1064 | --program-transform=* | --program-transfor=* \
1065 | --program-transfo=* | --program-transf=* \
1066 | --program-trans=* | --program-tran=* \
1067 | --progr-tra=* | --program-tr=* | --program-t=*)
1068 program_transform_name=$ac_optarg ;;
1069
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071 ac_prev=pdfdir ;;
1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073 pdfdir=$ac_optarg ;;
1074
1075 -psdir | --psdir | --psdi | --psd | --ps)
1076 ac_prev=psdir ;;
1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078 psdir=$ac_optarg ;;
1079
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 silent=yes ;;
1083
1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085 ac_prev=sbindir ;;
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087 | --sbi=* | --sb=*)
1088 sbindir=$ac_optarg ;;
1089
1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092 | --sharedst | --shareds | --shared | --share | --shar \
1093 | --sha | --sh)
1094 ac_prev=sharedstatedir ;;
1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098 | --sha=* | --sh=*)
1099 sharedstatedir=$ac_optarg ;;
1100
1101 -site | --site | --sit)
1102 ac_prev=site ;;
1103 -site=* | --site=* | --sit=*)
1104 site=$ac_optarg ;;
1105
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 ac_prev=srcdir ;;
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109 srcdir=$ac_optarg ;;
1110
1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112 | --syscon | --sysco | --sysc | --sys | --sy)
1113 ac_prev=sysconfdir ;;
1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116 sysconfdir=$ac_optarg ;;
1117
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
1119 ac_prev=target_alias ;;
1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121 target_alias=$ac_optarg ;;
1122
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124 verbose=yes ;;
1125
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
1128
1129 -with-* | --with-*)
Benny Prijono28d3c562012-03-30 07:10:13 +00001130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001131 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +00001132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001133 as_fn_error $? "invalid package name: $ac_useropt"
Benny Prijono28d3c562012-03-30 07:10:13 +00001134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138"with_$ac_useropt"
1139"*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001144
1145 -without-* | --without-*)
Benny Prijono28d3c562012-03-30 07:10:13 +00001146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001147 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +00001148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001149 as_fn_error $? "invalid package name: $ac_useropt"
Benny Prijono28d3c562012-03-30 07:10:13 +00001150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1153 *"
1154"with_$ac_useropt"
1155"*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=no ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001160
1161 --x)
1162 # Obsolete; use --with-x.
1163 with_x=yes ;;
1164
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1171
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1178
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001179 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180Try \`$0 --help' for more information"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001181 ;;
1182
1183 *=*)
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +00001186 case $ac_envvar in #(
1187 '' | [0-9]* | *[!_$as_cr_alnum]* )
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001188 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00001189 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001190 eval $ac_envvar=\$ac_optarg
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001191 export $ac_envvar ;;
1192
1193 *)
1194 # FIXME: should be removed in autoconf 3.0.
Benny Prijono28d3c562012-03-30 07:10:13 +00001195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijono28d3c562012-03-30 07:10:13 +00001197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001198 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001199 ;;
1200
1201 esac
1202done
1203
1204if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001206 as_fn_error $? "missing argument to $ac_option"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001207fi
1208
Benny Prijono28d3c562012-03-30 07:10:13 +00001209if test -n "$ac_unrecognized_opts"; then
1210 case $enable_option_checking in
1211 no) ;;
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001212 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00001213 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214 esac
1215fi
1216
1217# Check all directory arguments for consistency.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001218for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001222do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001223 eval ac_val=\$$ac_var
Benny Prijono28d3c562012-03-30 07:10:13 +00001224 # Remove trailing slashes.
1225 case $ac_val in
1226 */ )
1227 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228 eval $ac_var=\$ac_val;;
1229 esac
1230 # Be sure to have absolute directory names.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001231 case $ac_val in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001232 [\\/$]* | ?:[\\/]* ) continue;;
1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001234 esac
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001235 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001236done
1237
1238# There might be people who depend on the old broken behavior: `$host'
1239# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001240# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001241build=$build_alias
1242host=$host_alias
1243target=$target_alias
1244
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001245# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001246if test "x$host_alias" != x; then
1247 if test "x$build_alias" = x; then
1248 cross_compiling=maybe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001249 elif test "x$build_alias" != "x$host_alias"; then
1250 cross_compiling=yes
1251 fi
1252fi
1253
1254ac_tool_prefix=
1255test -n "$host_alias" && ac_tool_prefix=$host_alias-
1256
1257test "$silent" = yes && exec 6>/dev/null
1258
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001259
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001260ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261ac_ls_di=`ls -di .` &&
1262ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001263 as_fn_error $? "working directory cannot be determined"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001264test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001265 as_fn_error $? "pwd does not report name of working directory"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001266
1267
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001268# Find the source files, if location was not specified.
1269if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001271 # Try the directory containing this script, then the parent directory.
Benny Prijono28d3c562012-03-30 07:10:13 +00001272 ac_confdir=`$as_dirname -- "$as_myself" ||
1273$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$as_myself" : 'X\(//\)[^/]' \| \
1275 X"$as_myself" : 'X\(//\)$' \| \
1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277$as_echo X"$as_myself" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)[^/].*/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\/\)$/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\).*/{
1291 s//\1/
1292 q
1293 }
1294 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001295 srcdir=$ac_confdir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001296 if test ! -r "$srcdir/$ac_unique_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001297 srcdir=..
1298 fi
1299else
1300 ac_srcdir_defaulted=no
1301fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001302if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001304 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Benny Prijono9489e7a2008-09-19 22:18:50 +00001305fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001306ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307ac_abs_confdir=`(
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001309 pwd)`
1310# When building in place, set srcdir=.
1311if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 srcdir=.
1313fi
1314# Remove unnecessary trailing slashes from srcdir.
1315# Double slashes in file names in object file debugging info
1316# mess up M-x gdb in Emacs.
1317case $srcdir in
1318*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319esac
1320for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001326
1327#
1328# Report the --help message.
1329#
1330if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001333 cat <<_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00001334\`configure' configures pjproject 2.x to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001335
1336Usage: $0 [OPTION]... [VAR=VALUE]...
1337
1338To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339VAR=VALUE. See below for descriptions of some of the useful variables.
1340
1341Defaults for the options are specified in brackets.
1342
1343Configuration:
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001348 -q, --quiet, --silent do not print \`checking ...' messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1353
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001354Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
Benny Prijono28d3c562012-03-30 07:10:13 +00001356 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Benny Prijono28d3c562012-03-30 07:10:13 +00001358 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001359
1360By default, \`make install' will install all the files in
1361\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363for instance \`--prefix=\$HOME'.
1364
1365For better control, use the options below.
1366
1367Fine tuning of the installation directories:
Benny Prijono28d3c562012-03-30 07:10:13 +00001368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --libdir=DIR object code libraries [EPREFIX/lib]
1375 --includedir=DIR C header files [PREFIX/include]
1376 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379 --infodir=DIR info documentation [DATAROOTDIR/info]
1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381 --mandir=DIR man documentation [DATAROOTDIR/man]
1382 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001387_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001388
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001389 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001390
1391System types:
1392 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001394 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001395_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001396fi
1397
1398if test -n "$ac_init_help"; then
1399 case $ac_init_help in
Benny Prijono28d3c562012-03-30 07:10:13 +00001400 short | recursive ) echo "Configuration of pjproject 2.x:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001401 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001402 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001403
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001404Optional Features:
Benny Prijono28d3c562012-03-30 07:10:13 +00001405 --disable-option-checking ignore unrecognized --enable/--with options
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1408 --disable-floating-point
1409 Disable floating point where possible
Benny Prijono9489e7a2008-09-19 22:18:50 +00001410 --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
Benny Prijono1d971622006-09-10 22:27:40 +00001411 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijono0b462322008-03-12 22:44:24 +00001412 --disable-oss Disable OSS audio (default: not disabled)
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00001413 --disable-video Disable video feature
Benny Prijonoebb2c332008-07-28 23:40:58 +00001414 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001415 --disable-small-filter Exclude small filter in resampling
1416 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001417 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1418 --disable-g711-codec Exclude G.711 codecs from the build
1419 --disable-l16-codec Exclude Linear/L16 codec family from the build
1420 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +00001421 --disable-g722-codec Exclude G.722 codec in the build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001422 --disable-g7221-codec Exclude G.7221 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001423 --disable-speex-codec Exclude Speex codecs in the build
1424 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +00001425 --enable-libsamplerate Link with libsamplerate when available. Note that
1426 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijono28d3c562012-03-30 07:10:13 +00001427 --enable-resample-dll Build libresample as shared library
Benny Prijonoc45d9512010-12-10 11:04:30 +00001428 --disable-sdl Disable SDL (default: not disabled)
1429 --disable-ffmpeg Disable ffmpeg (default: not disabled)
1430 --disable-v4l2 Disable Video4Linux2 (default: not disabled)
Benny Prijono0822c192008-08-21 20:59:58 +00001431 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
1432 package and samples location using IPPROOT and
1433 IPPSAMPLES env var or with --with-ipp and
1434 --with-ipp-samples options
Benny Prijonoce1db762007-02-14 02:21:08 +00001435 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001436
Sauw Minge7dbbc82011-10-24 09:28:13 +00001437 --disable-opencore-amrnb
1438 Exclude OpenCORE AMR-NB support from the build
1439 (default: autodetect)
1440
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001441
Benny Prijonofe0c1272010-01-13 16:28:15 +00001442Optional Packages:
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001445 --with-external-speex Use external Speex development files, not the one in
1446 "third_party" directory. When this option is set,
1447 make sure that Speex is accessible to use (hint: use
1448 CFLAGS and LDFLAGS env var to set the include/lib
1449 paths)
1450 --with-external-gsm Use external GSM codec library, not the one in
1451 "third_party" directory. When this option is set,
1452 make sure that the GSM include/lib files are
1453 accessible to use (hint: use CFLAGS and LDFLAGS env
1454 var to set the include/lib paths)
1455 --with-external-pa Use external PortAudio development files, not the
1456 one in "third_party" directory. When this option is
1457 set, make sure that PortAudio is accessible to use
1458 (hint: use CFLAGS and LDFLAGS env var to set the
1459 include/lib paths)
Benny Prijono5b0af632011-07-20 03:16:25 +00001460 --with-sdl=DIR Specify alternate libSDL prefix
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00001461 --with-ffmpeg=DIR Specify alternate FFMPEG prefix
Benny Prijono3965f192010-02-10 18:46:05 +00001462 --with-ipp=DIR Specify the Intel IPP location
1463 --with-ipp-samples=DIR Specify the Intel IPP samples location
1464 --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or
Benny Prijono46bd0842010-02-12 14:12:41 +00001465 "em64t. Default is blank for IA32"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001466 --with-ssl=DIR Specify alternate libssl prefix
1467 --with-opencore-amrnb=DIR
1468 Specify alternate libopencore-amrnb prefix
Benny Prijonofe0c1272010-01-13 16:28:15 +00001469
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001470Some influential environment variables:
1471 CC C compiler command
1472 CFLAGS C compiler flags
1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474 nonstandard directory <lib dir>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001475 LIBS libraries to pass to the linker, e.g. -l<library>
Benny Prijono28d3c562012-03-30 07:10:13 +00001476 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001477 you have headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001478 CXX C++ compiler command
1479 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001480 CPP C preprocessor
1481
1482Use these variables to override the choices made by `configure' or to help
1483it to find libraries and programs with nonstandard names/locations.
1484
Benny Prijono28d3c562012-03-30 07:10:13 +00001485Report bugs to the package provider.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001486_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001487ac_status=$?
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001488fi
1489
1490if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Benny Prijono28d3c562012-03-30 07:10:13 +00001493 test -d "$ac_dir" ||
1494 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495 continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001496 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001497
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001498case "$ac_dir" in
1499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500*)
Benny Prijono28d3c562012-03-30 07:10:13 +00001501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001502 # A ".." for each directory in $ac_dir_suffix.
Benny Prijono28d3c562012-03-30 07:10:13 +00001503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 esac ;;
1508esac
1509ac_abs_top_builddir=$ac_pwd
1510ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511# for backward compatibility:
1512ac_top_builddir=$ac_top_build_prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001513
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001514case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001515 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001516 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001520 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1523 *) # Relative name.
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001527esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001529
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure" --help=recursive
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001538 else
Benny Prijono28d3c562012-03-30 07:10:13 +00001539 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001540 fi || ac_status=$?
1541 cd "$ac_pwd" || { ac_status=$?; break; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001542 done
1543fi
1544
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001545test -n "$ac_init_help" && exit $ac_status
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001546if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001547 cat <<\_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00001548pjproject configure 2.x
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001549generated by GNU Autoconf 2.69
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001550
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001551Copyright (C) 2012 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001552This configure script is free software; the Free Software Foundation
1553gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001554_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001555 exit
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001556fi
Benny Prijono28d3c562012-03-30 07:10:13 +00001557
1558## ------------------------ ##
1559## Autoconf initialization. ##
1560## ------------------------ ##
1561
1562# ac_fn_c_try_compile LINENO
1563# --------------------------
1564# Try to compile conftest.$ac_ext, and return whether this succeeded.
1565ac_fn_c_try_compile ()
1566{
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext
1569 if { { ac_try="$ac_compile"
1570case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573esac
1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575$as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_compile") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1582 fi
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest.$ac_objext; then :
1588 ac_retval=0
1589else
1590 $as_echo "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
1592
1593 ac_retval=1
1594fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001596 as_fn_set_status $ac_retval
1597
1598} # ac_fn_c_try_compile
1599
1600# ac_fn_cxx_try_compile LINENO
1601# ----------------------------
1602# Try to compile conftest.$ac_ext, and return whether this succeeded.
1603ac_fn_cxx_try_compile ()
1604{
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 rm -f conftest.$ac_objext
1607 if { { ac_try="$ac_compile"
1608case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1611esac
1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613$as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_compile") 2>conftest.err
1615 ac_status=$?
1616 if test -s conftest.err; then
1617 grep -v '^ *+' conftest.err >conftest.er1
1618 cat conftest.er1 >&5
1619 mv -f conftest.er1 conftest.err
1620 fi
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } && {
1623 test -z "$ac_cxx_werror_flag" ||
1624 test ! -s conftest.err
1625 } && test -s conftest.$ac_objext; then :
1626 ac_retval=0
1627else
1628 $as_echo "$as_me: failed program was:" >&5
1629sed 's/^/| /' conftest.$ac_ext >&5
1630
1631 ac_retval=1
1632fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001634 as_fn_set_status $ac_retval
1635
1636} # ac_fn_cxx_try_compile
1637
1638# ac_fn_c_try_link LINENO
1639# -----------------------
1640# Try to link conftest.$ac_ext, and return whether this succeeded.
1641ac_fn_c_try_link ()
1642{
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 rm -f conftest.$ac_objext conftest$ac_exeext
1645 if { { ac_try="$ac_link"
1646case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649esac
1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651$as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_link") 2>conftest.err
1653 ac_status=$?
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1658 fi
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } && {
1661 test -z "$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1663 } && test -s conftest$ac_exeext && {
1664 test "$cross_compiling" = yes ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001665 test -x conftest$ac_exeext
Benny Prijono28d3c562012-03-30 07:10:13 +00001666 }; then :
1667 ac_retval=0
1668else
1669 $as_echo "$as_me: failed program was:" >&5
1670sed 's/^/| /' conftest.$ac_ext >&5
1671
1672 ac_retval=1
1673fi
1674 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1675 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1676 # interfere with the next link command; also delete a directory that is
1677 # left behind by Apple's compiler. We do this before executing the actions.
1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001680 as_fn_set_status $ac_retval
1681
1682} # ac_fn_c_try_link
1683
1684# ac_fn_c_try_run LINENO
1685# ----------------------
1686# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1687# that executables *can* be run.
1688ac_fn_c_try_run ()
1689{
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if { { ac_try="$ac_link"
1692case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_link") 2>&5
1699 ac_status=$?
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1702 { { case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_try") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; }; }; then :
1712 ac_retval=0
1713else
1714 $as_echo "$as_me: program exited with status $ac_status" >&5
1715 $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=$ac_status
1719fi
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001722 as_fn_set_status $ac_retval
1723
1724} # ac_fn_c_try_run
1725
1726# ac_fn_c_try_cpp LINENO
1727# ----------------------
1728# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1729ac_fn_c_try_cpp ()
1730{
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_cpp conftest.$ac_ext"
1733case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001747 test $ac_status = 0; } > conftest.i && {
Benny Prijono28d3c562012-03-30 07:10:13 +00001748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 }; then :
1751 ac_retval=0
1752else
1753 $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001759 as_fn_set_status $ac_retval
1760
1761} # ac_fn_c_try_cpp
1762
1763# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1764# -------------------------------------------------------
1765# Tests whether HEADER exists and can be compiled using the include files in
1766# INCLUDES, setting the cache variable VAR accordingly.
1767ac_fn_c_check_header_compile ()
1768{
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771$as_echo_n "checking for $2... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001772if eval \${$3+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00001773 $as_echo_n "(cached) " >&6
1774else
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776/* end confdefs.h. */
1777$4
1778#include <$2>
1779_ACEOF
1780if ac_fn_c_try_compile "$LINENO"; then :
1781 eval "$3=yes"
1782else
1783 eval "$3=no"
1784fi
1785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786fi
1787eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789$as_echo "$ac_res" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001791
1792} # ac_fn_c_check_header_compile
1793
1794# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1795# -------------------------------------------------------
1796# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1797# the include files in INCLUDES and setting the cache variable VAR
1798# accordingly.
1799ac_fn_c_check_header_mongrel ()
1800{
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001802 if eval \${$3+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00001803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804$as_echo_n "checking for $2... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001805if eval \${$3+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00001806 $as_echo_n "(cached) " >&6
1807fi
1808eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811else
1812 # Is the header compilable?
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1814$as_echo_n "checking $2 usability... " >&6; }
1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h. */
1817$4
1818#include <$2>
1819_ACEOF
1820if ac_fn_c_try_compile "$LINENO"; then :
1821 ac_header_compiler=yes
1822else
1823 ac_header_compiler=no
1824fi
1825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1827$as_echo "$ac_header_compiler" >&6; }
1828
1829# Is the header present?
1830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1831$as_echo_n "checking $2 presence... " >&6; }
1832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h. */
1834#include <$2>
1835_ACEOF
1836if ac_fn_c_try_cpp "$LINENO"; then :
1837 ac_header_preproc=yes
1838else
1839 ac_header_preproc=no
1840fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001841rm -f conftest.err conftest.i conftest.$ac_ext
Benny Prijono28d3c562012-03-30 07:10:13 +00001842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1843$as_echo "$ac_header_preproc" >&6; }
1844
1845# So? What about this header?
1846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1847 yes:no: )
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1849$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852 ;;
1853 no:yes:* )
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1855$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1857$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1859$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1861$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864 ;;
1865esac
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867$as_echo_n "checking for $2... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001868if eval \${$3+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00001869 $as_echo_n "(cached) " >&6
1870else
1871 eval "$3=\$ac_header_compiler"
1872fi
1873eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875$as_echo "$ac_res" >&6; }
1876fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001878
1879} # ac_fn_c_check_header_mongrel
1880
1881# ac_fn_c_check_func LINENO FUNC VAR
1882# ----------------------------------
1883# Tests whether FUNC exists, setting the cache variable VAR accordingly
1884ac_fn_c_check_func ()
1885{
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888$as_echo_n "checking for $2... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001889if eval \${$3+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00001890 $as_echo_n "(cached) " >&6
1891else
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893/* end confdefs.h. */
1894/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1896#define $2 innocuous_$2
1897
1898/* System header to define __stub macros and hopefully few prototypes,
1899 which can conflict with char $2 (); below.
1900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1901 <limits.h> exists even on freestanding compilers. */
1902
1903#ifdef __STDC__
1904# include <limits.h>
1905#else
1906# include <assert.h>
1907#endif
1908
1909#undef $2
1910
1911/* Override any GCC internal prototype to avoid an error.
1912 Use char because int might match the return type of a GCC
1913 builtin and then its argument prototype would still apply. */
1914#ifdef __cplusplus
1915extern "C"
1916#endif
1917char $2 ();
1918/* The GNU C library defines this for functions which it implements
1919 to always fail with ENOSYS. Some functions are actually named
1920 something starting with __ and the normal name is an alias. */
1921#if defined __stub_$2 || defined __stub___$2
1922choke me
1923#endif
1924
1925int
1926main ()
1927{
1928return $2 ();
1929 ;
1930 return 0;
1931}
1932_ACEOF
1933if ac_fn_c_try_link "$LINENO"; then :
1934 eval "$3=yes"
1935else
1936 eval "$3=no"
1937fi
1938rm -f core conftest.err conftest.$ac_objext \
1939 conftest$ac_exeext conftest.$ac_ext
1940fi
1941eval ac_res=\$$3
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943$as_echo "$ac_res" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001945
1946} # ac_fn_c_check_func
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001947cat >config.log <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001948This file contains any messages produced by compilers while
1949running configure, to aid debugging if configure makes a mistake.
1950
Benny Prijono28d3c562012-03-30 07:10:13 +00001951It was created by pjproject $as_me 2.x, which was
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001952generated by GNU Autoconf 2.69. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001953
1954 $ $0 $@
1955
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001956_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001957exec 5>>config.log
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001958{
1959cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001960## --------- ##
1961## Platform. ##
1962## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001963
1964hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1965uname -m = `(uname -m) 2>/dev/null || echo unknown`
1966uname -r = `(uname -r) 2>/dev/null || echo unknown`
1967uname -s = `(uname -s) 2>/dev/null || echo unknown`
1968uname -v = `(uname -v) 2>/dev/null || echo unknown`
1969
1970/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1971/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1972
1973/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1974/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1975/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001976/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001977/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1978/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1979/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1980
1981_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001982
1983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984for as_dir in $PATH
1985do
1986 IFS=$as_save_IFS
1987 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00001988 $as_echo "PATH: $as_dir"
1989 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001990IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001991
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001992} >&5
1993
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001994cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001995
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001996
1997## ----------- ##
1998## Core tests. ##
1999## ----------- ##
2000
2001_ACEOF
2002
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002003
2004# Keep a trace of the command line.
2005# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002006# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002007# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002008# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002009ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002010ac_configure_args0=
2011ac_configure_args1=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002012ac_must_keep_next=false
2013for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002014do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002015 for ac_arg
2016 do
2017 case $ac_arg in
2018 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2020 | -silent | --silent | --silen | --sile | --sil)
2021 continue ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002022 *\'*)
Benny Prijono28d3c562012-03-30 07:10:13 +00002023 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002024 esac
2025 case $ac_pass in
Benny Prijono28d3c562012-03-30 07:10:13 +00002026 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002027 2)
Benny Prijono28d3c562012-03-30 07:10:13 +00002028 as_fn_append ac_configure_args1 " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002029 if test $ac_must_keep_next = true; then
2030 ac_must_keep_next=false # Got value, back to normal.
2031 else
2032 case $ac_arg in
2033 *=* | --config-cache | -C | -disable-* | --disable-* \
2034 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2035 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2036 | -with-* | --with-* | -without-* | --without-* | --x)
2037 case "$ac_configure_args0 " in
2038 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2039 esac
2040 ;;
2041 -* ) ac_must_keep_next=true ;;
2042 esac
2043 fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002044 as_fn_append ac_configure_args " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002045 ;;
2046 esac
2047 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002048done
Benny Prijono28d3c562012-03-30 07:10:13 +00002049{ ac_configure_args0=; unset ac_configure_args0;}
2050{ ac_configure_args1=; unset ac_configure_args1;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002051
2052# When interrupted or exit'd, cleanup temporary files, and complete
2053# config.log. We remove comments because anyway the quotes in there
2054# would cause problems or look ugly.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002055# WARNING: Use '\'' to represent an apostrophe within the trap.
2056# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002057trap 'exit_status=$?
2058 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002059 {
2060 echo
2061
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002062 $as_echo "## ---------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002063## Cache variables. ##
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002064## ---------------- ##"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002065 echo
2066 # The following way of writing the cache mishandles newlines in values,
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002067(
2068 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2069 eval ac_val=\$$ac_var
2070 case $ac_val in #(
2071 *${as_nl}*)
2072 case $ac_var in #(
Benny Prijono28d3c562012-03-30 07:10:13 +00002073 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2074$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002075 esac
2076 case $ac_var in #(
2077 _ | IFS | as_nl) ;; #(
Benny Prijono28d3c562012-03-30 07:10:13 +00002078 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2079 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002080 esac ;;
2081 esac
2082 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002083 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002084 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2085 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002086 sed -n \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002087 "s/'\''/'\''\\\\'\'''\''/g;
2088 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2089 ;; #(
Benny Prijonoe2746132008-09-27 13:16:35 +00002090 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002091 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoe2746132008-09-27 13:16:35 +00002092 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002093 esac |
2094 sort
2095)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002096 echo
2097
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002098 $as_echo "## ----------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002099## Output variables. ##
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002100## ----------------- ##"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002101 echo
2102 for ac_var in $ac_subst_vars
2103 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002104 eval ac_val=\$$ac_var
2105 case $ac_val in
Benny Prijono28d3c562012-03-30 07:10:13 +00002106 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002107 esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002108 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002109 done | sort
2110 echo
2111
2112 if test -n "$ac_subst_files"; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002113 $as_echo "## ------------------- ##
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002114## File substitutions. ##
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002115## ------------------- ##"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002116 echo
2117 for ac_var in $ac_subst_files
2118 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002119 eval ac_val=\$$ac_var
2120 case $ac_val in
Benny Prijono28d3c562012-03-30 07:10:13 +00002121 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002122 esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002123 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002124 done | sort
2125 echo
2126 fi
2127
2128 if test -s confdefs.h; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002129 $as_echo "## ----------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002130## confdefs.h. ##
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002131## ----------- ##"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002132 echo
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002133 cat confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002134 echo
2135 fi
2136 test "$ac_signal" != 0 &&
Benny Prijono28d3c562012-03-30 07:10:13 +00002137 $as_echo "$as_me: caught signal $ac_signal"
2138 $as_echo "$as_me: exit $exit_status"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002139 } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002140 rm -f core *.core core.conftest.* &&
2141 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002142 exit $exit_status
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002143' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002144for ac_signal in 1 2 13 15; do
Benny Prijono28d3c562012-03-30 07:10:13 +00002145 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002146done
2147ac_signal=0
2148
2149# confdefs.h avoids OS command line length limits that DEFS can exceed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002150rm -f -r conftest* confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002151
Benny Prijono28d3c562012-03-30 07:10:13 +00002152$as_echo "/* confdefs.h */" > confdefs.h
2153
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002154# Predefined preprocessor variables.
2155
2156cat >>confdefs.h <<_ACEOF
2157#define PACKAGE_NAME "$PACKAGE_NAME"
2158_ACEOF
2159
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002160cat >>confdefs.h <<_ACEOF
2161#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2162_ACEOF
2163
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002164cat >>confdefs.h <<_ACEOF
2165#define PACKAGE_VERSION "$PACKAGE_VERSION"
2166_ACEOF
2167
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002168cat >>confdefs.h <<_ACEOF
2169#define PACKAGE_STRING "$PACKAGE_STRING"
2170_ACEOF
2171
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002172cat >>confdefs.h <<_ACEOF
2173#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2174_ACEOF
2175
Benny Prijono28d3c562012-03-30 07:10:13 +00002176cat >>confdefs.h <<_ACEOF
2177#define PACKAGE_URL "$PACKAGE_URL"
2178_ACEOF
2179
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002180
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002181# Let the site file select an alternate cache file if it wants to.
Benny Prijono28d3c562012-03-30 07:10:13 +00002182# Prefer an explicitly selected file to automatically selected ones.
2183ac_site_file1=NONE
2184ac_site_file2=NONE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002185if test -n "$CONFIG_SITE"; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002186 # We do not want a PATH search for config.site.
2187 case $CONFIG_SITE in #((
2188 -*) ac_site_file1=./$CONFIG_SITE;;
2189 */*) ac_site_file1=$CONFIG_SITE;;
2190 *) ac_site_file1=./$CONFIG_SITE;;
2191 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002192elif test "x$prefix" != xNONE; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002193 ac_site_file1=$prefix/share/config.site
2194 ac_site_file2=$prefix/etc/config.site
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002195else
Benny Prijono28d3c562012-03-30 07:10:13 +00002196 ac_site_file1=$ac_default_prefix/share/config.site
2197 ac_site_file2=$ac_default_prefix/etc/config.site
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002198fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002199for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002200do
Benny Prijono28d3c562012-03-30 07:10:13 +00002201 test "x$ac_site_file" = xNONE && continue
2202 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2204$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002205 sed 's/^/| /' "$ac_site_file" >&5
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002206 . "$ac_site_file" \
2207 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2209as_fn_error $? "failed to load site script $ac_site_file
2210See \`config.log' for more details" "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002211 fi
2212done
2213
2214if test -r "$cache_file"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002215 # Some versions of bash will fail to source /dev/null (special files
2216 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2217 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2219$as_echo "$as_me: loading cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002220 case $cache_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002221 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2222 *) . "./$cache_file";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002223 esac
2224 fi
2225else
Benny Prijono28d3c562012-03-30 07:10:13 +00002226 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2227$as_echo "$as_me: creating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002228 >$cache_file
2229fi
2230
2231# Check that the precious variables saved in the cache have kept the same
2232# value.
2233ac_cache_corrupted=false
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002234for ac_var in $ac_precious_vars; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002235 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2236 eval ac_new_set=\$ac_env_${ac_var}_set
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002237 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2238 eval ac_new_val=\$ac_env_${ac_var}_value
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002239 case $ac_old_set,$ac_new_set in
2240 set,)
Benny Prijono28d3c562012-03-30 07:10:13 +00002241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2242$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 +00002243 ac_cache_corrupted=: ;;
2244 ,set)
Benny Prijono28d3c562012-03-30 07:10:13 +00002245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2246$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002247 ac_cache_corrupted=: ;;
2248 ,);;
2249 *)
2250 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002251 # differences in whitespace do not lead to failure.
2252 ac_old_val_w=`echo x $ac_old_val`
2253 ac_new_val_w=`echo x $ac_new_val`
2254 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2256$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2257 ac_cache_corrupted=:
2258 else
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2260$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2261 eval $ac_var=\$ac_old_val
2262 fi
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2264$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2266$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002267 fi;;
2268 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002269 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002270 if test "$ac_new_set" = set; then
2271 case $ac_new_val in
Benny Prijono28d3c562012-03-30 07:10:13 +00002272 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002273 *) ac_arg=$ac_var=$ac_new_val ;;
2274 esac
2275 case " $ac_configure_args " in
2276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Benny Prijono28d3c562012-03-30 07:10:13 +00002277 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002278 esac
2279 fi
2280done
2281if $ac_cache_corrupted; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2285$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002286 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002287fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002288## -------------------- ##
2289## Main body of script. ##
2290## -------------------- ##
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002291
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002292ac_ext=c
2293ac_cpp='$CPP $CPPFLAGS'
2294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2296ac_compiler_gnu=$ac_cv_c_compiler_gnu
2297
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002298
2299
Benny Prijono5b818b22006-09-17 22:58:51 +00002300host_orig="$host"
2301
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002302ac_aux_dir=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002303for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002304 if test -f "$ac_dir/install-sh"; then
2305 ac_aux_dir=$ac_dir
2306 ac_install_sh="$ac_aux_dir/install-sh -c"
2307 break
2308 elif test -f "$ac_dir/install.sh"; then
2309 ac_aux_dir=$ac_dir
2310 ac_install_sh="$ac_aux_dir/install.sh -c"
2311 break
2312 elif test -f "$ac_dir/shtool"; then
2313 ac_aux_dir=$ac_dir
2314 ac_install_sh="$ac_aux_dir/shtool install -c"
2315 break
2316 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002317done
2318if test -z "$ac_aux_dir"; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002319 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002320fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002321
2322# These three variables are undocumented and unsupported,
2323# and are intended to be withdrawn in a future Autoconf release.
2324# They can cause serious problems if a builder's source tree is in a directory
2325# whose full name contains unusual characters.
2326ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2327ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2328ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2329
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002330
2331# Make sure we can run config.sub.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002332$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002333 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002334
Benny Prijono28d3c562012-03-30 07:10:13 +00002335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2336$as_echo_n "checking build system type... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002337if ${ac_cv_build+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002338 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002339else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002340 ac_build_alias=$build_alias
2341test "x$ac_build_alias" = x &&
2342 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2343test "x$ac_build_alias" = x &&
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002344 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002345ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002346 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002347
2348fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2350$as_echo "$ac_cv_build" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002351case $ac_cv_build in
2352*-*-*) ;;
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002353*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002354esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002355build=$ac_cv_build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002356ac_save_IFS=$IFS; IFS='-'
2357set x $ac_cv_build
2358shift
2359build_cpu=$1
2360build_vendor=$2
2361shift; shift
2362# Remember, the first character of IFS is used to create $*,
2363# except with old shells:
2364build_os=$*
2365IFS=$ac_save_IFS
2366case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002367
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002368
Benny Prijono28d3c562012-03-30 07:10:13 +00002369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2370$as_echo_n "checking host system type... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002371if ${ac_cv_host+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002372 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002373else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002374 if test "x$host_alias" = x; then
2375 ac_cv_host=$ac_cv_build
2376else
2377 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002378 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002379fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002380
2381fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2383$as_echo "$ac_cv_host" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002384case $ac_cv_host in
2385*-*-*) ;;
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002386*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002387esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002388host=$ac_cv_host
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002389ac_save_IFS=$IFS; IFS='-'
2390set x $ac_cv_host
2391shift
2392host_cpu=$1
2393host_vendor=$2
2394shift; shift
2395# Remember, the first character of IFS is used to create $*,
2396# except with old shells:
2397host_os=$*
2398IFS=$ac_save_IFS
2399case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002400
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002401
Benny Prijono28d3c562012-03-30 07:10:13 +00002402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2403$as_echo_n "checking target system type... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002404if ${ac_cv_target+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002405 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002406else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002407 if test "x$target_alias" = x; then
2408 ac_cv_target=$ac_cv_host
2409else
2410 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002411 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002412fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002413
2414fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2416$as_echo "$ac_cv_target" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002417case $ac_cv_target in
2418*-*-*) ;;
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002419*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002420esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002421target=$ac_cv_target
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002422ac_save_IFS=$IFS; IFS='-'
2423set x $ac_cv_target
2424shift
2425target_cpu=$1
2426target_vendor=$2
2427shift; shift
2428# Remember, the first character of IFS is used to create $*,
2429# except with old shells:
2430target_os=$*
2431IFS=$ac_save_IFS
2432case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002433
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002434
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002435# The aliases save the names the user supplied, while $host etc.
2436# will get canonicalized.
2437test -n "$target_alias" &&
2438 test "$program_prefix$program_suffix$program_transform_name" = \
2439 NONENONEs,x,x, &&
2440 program_prefix=${target_alias}-
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002441ac_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 +00002442
Benny Prijono8ec5eae2010-05-12 10:59:20 +00002443ac_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 +00002444
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002445
Benny Prijono12483112007-03-12 10:44:38 +00002446
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002447if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00002448 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002449else
2450 CFLAGS="$CFLAGS"
2451fi
2452
2453CXXFLAGS="$CFLAGS $CXXFLAGS"
2454
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002455ac_ext=c
2456ac_cpp='$CPP $CPPFLAGS'
2457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2459ac_compiler_gnu=$ac_cv_c_compiler_gnu
2460if test -n "$ac_tool_prefix"; then
2461 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2462set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2464$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002465if ${ac_cv_prog_CC+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002466 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002467else
2468 if test -n "$CC"; then
2469 ac_cv_prog_CC="$CC" # Let the user override the test.
2470else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472for as_dir in $PATH
2473do
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002476 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002478 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002480 break 2
2481 fi
2482done
Benny Prijono28d3c562012-03-30 07:10:13 +00002483 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002484IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002485
2486fi
2487fi
2488CC=$ac_cv_prog_CC
2489if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2491$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002492else
Benny Prijono28d3c562012-03-30 07:10:13 +00002493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2494$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002495fi
2496
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002497
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002498fi
2499if test -z "$ac_cv_prog_CC"; then
2500 ac_ct_CC=$CC
2501 # Extract the first word of "gcc", so it can be a program name with args.
2502set dummy gcc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2504$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002505if ${ac_cv_prog_ac_ct_CC+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002506 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002507else
2508 if test -n "$ac_ct_CC"; then
2509 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2510else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512for as_dir in $PATH
2513do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002516 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002518 ac_cv_prog_ac_ct_CC="gcc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002520 break 2
2521 fi
2522done
Benny Prijono28d3c562012-03-30 07:10:13 +00002523 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002524IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002525
2526fi
2527fi
2528ac_ct_CC=$ac_cv_prog_ac_ct_CC
2529if test -n "$ac_ct_CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2531$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002532else
Benny Prijono28d3c562012-03-30 07:10:13 +00002533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2534$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002535fi
2536
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002537 if test "x$ac_ct_CC" = x; then
2538 CC=""
2539 else
2540 case $cross_compiling:$ac_tool_warned in
2541yes:)
Benny Prijono28d3c562012-03-30 07:10:13 +00002542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002544ac_tool_warned=yes ;;
2545esac
2546 CC=$ac_ct_CC
2547 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002548else
2549 CC="$ac_cv_prog_CC"
2550fi
2551
2552if test -z "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002553 if test -n "$ac_tool_prefix"; then
2554 # 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 +00002555set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002558if ${ac_cv_prog_CC+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002559 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002560else
2561 if test -n "$CC"; then
2562 ac_cv_prog_CC="$CC" # Let the user override the test.
2563else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002569 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002571 ac_cv_prog_CC="${ac_tool_prefix}cc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002573 break 2
2574 fi
2575done
Benny Prijono28d3c562012-03-30 07:10:13 +00002576 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002577IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002578
2579fi
2580fi
2581CC=$ac_cv_prog_CC
2582if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2584$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002585else
Benny Prijono28d3c562012-03-30 07:10:13 +00002586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002588fi
2589
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002590
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002591 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002592fi
2593if test -z "$CC"; then
2594 # Extract the first word of "cc", so it can be a program name with args.
2595set dummy cc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002598if ${ac_cv_prog_CC+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002599 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002600else
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
2603else
2604 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606for as_dir in $PATH
2607do
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002610 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002612 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2613 ac_prog_rejected=yes
2614 continue
2615 fi
2616 ac_cv_prog_CC="cc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002618 break 2
2619 fi
2620done
Benny Prijono28d3c562012-03-30 07:10:13 +00002621 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002622IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002623
2624if test $ac_prog_rejected = yes; then
2625 # We found a bogon in the path, so make sure we never use it.
2626 set dummy $ac_cv_prog_CC
2627 shift
2628 if test $# != 0; then
2629 # We chose a different compiler from the bogus one.
2630 # However, it has the same basename, so the bogon will be chosen
2631 # first if we set CC to just the basename; use the full file name.
2632 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002634 fi
2635fi
2636fi
2637fi
2638CC=$ac_cv_prog_CC
2639if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2641$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002642else
Benny Prijono28d3c562012-03-30 07:10:13 +00002643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002645fi
2646
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002647
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002648fi
2649if test -z "$CC"; then
2650 if test -n "$ac_tool_prefix"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002651 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002652 do
2653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2654set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002657if ${ac_cv_prog_CC+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002658 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002659else
2660 if test -n "$CC"; then
2661 ac_cv_prog_CC="$CC" # Let the user override the test.
2662else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664for as_dir in $PATH
2665do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002668 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00002671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002672 break 2
2673 fi
2674done
Benny Prijono28d3c562012-03-30 07:10:13 +00002675 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002676IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002677
2678fi
2679fi
2680CC=$ac_cv_prog_CC
2681if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2683$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002684else
Benny Prijono28d3c562012-03-30 07:10:13 +00002685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002687fi
2688
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002689
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002690 test -n "$CC" && break
2691 done
2692fi
2693if test -z "$CC"; then
2694 ac_ct_CC=$CC
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002695 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002696do
2697 # Extract the first word of "$ac_prog", so it can be a program name with args.
2698set dummy $ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002701if ${ac_cv_prog_ac_ct_CC+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002702 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002703else
2704 if test -n "$ac_ct_CC"; then
2705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2706else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708for as_dir in $PATH
2709do
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002712 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002714 ac_cv_prog_ac_ct_CC="$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00002715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002716 break 2
2717 fi
2718done
Benny Prijono28d3c562012-03-30 07:10:13 +00002719 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002720IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002721
2722fi
2723fi
2724ac_ct_CC=$ac_cv_prog_ac_ct_CC
2725if test -n "$ac_ct_CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2727$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002728else
Benny Prijono28d3c562012-03-30 07:10:13 +00002729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002731fi
2732
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002733
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002734 test -n "$ac_ct_CC" && break
2735done
2736
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002737 if test "x$ac_ct_CC" = x; then
2738 CC=""
2739 else
2740 case $cross_compiling:$ac_tool_warned in
2741yes:)
Benny Prijono28d3c562012-03-30 07:10:13 +00002742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002744ac_tool_warned=yes ;;
2745esac
2746 CC=$ac_ct_CC
2747 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002748fi
2749
2750fi
2751
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002752
Benny Prijono28d3c562012-03-30 07:10:13 +00002753test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002755as_fn_error $? "no acceptable C compiler found in \$PATH
2756See \`config.log' for more details" "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002757
2758# Provide some information about the compiler.
Benny Prijono28d3c562012-03-30 07:10:13 +00002759$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2760set X $ac_compile
2761ac_compiler=$2
2762for ac_option in --version -v -V -qversion; do
2763 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002764case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2767esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2769$as_echo "$ac_try_echo"; } >&5
2770 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002771 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00002772 if test -s conftest.err; then
2773 sed '10a\
2774... rest of stderr output deleted ...
2775 10q' conftest.err >conftest.er1
2776 cat conftest.er1 >&5
2777 fi
2778 rm -f conftest.er1 conftest.err
2779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2780 test $ac_status = 0; }
2781done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002782
Benny Prijono28d3c562012-03-30 07:10:13 +00002783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002784/* end confdefs.h. */
Benny Prijono5bbebc02010-06-15 05:21:43 +00002785
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002786int
2787main ()
2788{
2789
2790 ;
2791 return 0;
2792}
2793_ACEOF
2794ac_clean_files_save=$ac_clean_files
Benny Prijono28d3c562012-03-30 07:10:13 +00002795ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002796# Try to create an executable without -o first, disregard a.out.
2797# It will help us diagnose broken compilers, and finding out an intuition
2798# of exeext.
Benny Prijono28d3c562012-03-30 07:10:13 +00002799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2800$as_echo_n "checking whether the C compiler works... " >&6; }
2801ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2802
2803# The possible output files:
2804ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2805
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002806ac_rmfiles=
2807for ac_file in $ac_files
2808do
2809 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00002810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002811 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2812 esac
2813done
2814rm -f $ac_rmfiles
2815
Benny Prijono28d3c562012-03-30 07:10:13 +00002816if { { ac_try="$ac_link_default"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002817case "(($ac_try" in
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2820esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2822$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002823 (eval "$ac_link_default") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002824 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00002825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2826 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002827 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2828# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2829# in a Makefile. We should not override ac_cv_exeext if it was cached,
2830# so that the user can short-circuit this test for compilers unknown to
2831# Autoconf.
2832for ac_file in $ac_files ''
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002833do
2834 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002835 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00002836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002837 ;;
2838 [ab].out )
2839 # We found the default executable, but exeext='' is most
2840 # certainly right.
2841 break;;
2842 *.* )
Benny Prijono28d3c562012-03-30 07:10:13 +00002843 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002844 then :; else
2845 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2846 fi
2847 # We set ac_cv_exeext here because the later test for it is not
2848 # safe: cross compilers may not add the suffix if given an `-o'
2849 # argument, so we may need to know it at that point already.
2850 # Even if this section looks crufty: it has the advantage of
2851 # actually working.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002852 break;;
2853 * )
2854 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002855 esac
2856done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002857test "$ac_cv_exeext" = no && ac_cv_exeext=
2858
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002859else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002860 ac_file=''
2861fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002862if test -z "$ac_file"; then :
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864$as_echo "no" >&6; }
2865$as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002866sed 's/^/| /' conftest.$ac_ext >&5
2867
Benny Prijono28d3c562012-03-30 07:10:13 +00002868{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002870as_fn_error 77 "C compiler cannot create executables
2871See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono28d3c562012-03-30 07:10:13 +00002872else
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2874$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002875fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2877$as_echo_n "checking for C compiler default output file name... " >&6; }
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2879$as_echo "$ac_file" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002880ac_exeext=$ac_cv_exeext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002881
Benny Prijono28d3c562012-03-30 07:10:13 +00002882rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002883ac_clean_files=$ac_clean_files_save
Benny Prijono28d3c562012-03-30 07:10:13 +00002884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2885$as_echo_n "checking for suffix of executables... " >&6; }
2886if { { ac_try="$ac_link"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002887case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2892$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002893 (eval "$ac_link") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002894 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00002895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2896 test $ac_status = 0; }; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002897 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2898# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2899# work properly (i.e., refer to `conftest.exe'), while it won't with
2900# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002901for ac_file in conftest.exe conftest conftest.*; do
2902 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002903 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00002904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002905 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002906 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002907 * ) break;;
2908 esac
2909done
2910else
Benny Prijono28d3c562012-03-30 07:10:13 +00002911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002913as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2914See \`config.log' for more details" "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002915fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002916rm -f conftest conftest$ac_cv_exeext
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2918$as_echo "$ac_cv_exeext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002919
2920rm -f conftest.$ac_ext
2921EXEEXT=$ac_cv_exeext
2922ac_exeext=$EXEEXT
Benny Prijono28d3c562012-03-30 07:10:13 +00002923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2924/* end confdefs.h. */
2925#include <stdio.h>
2926int
2927main ()
2928{
2929FILE *f = fopen ("conftest.out", "w");
2930 return ferror (f) || fclose (f) != 0;
2931
2932 ;
2933 return 0;
2934}
Benny Prijono36d32492011-12-28 08:42:23 +00002935_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00002936ac_clean_files="$ac_clean_files conftest.out"
2937# Check that the compiler produces executables we can run. If not, either
2938# the compiler is broken, or we cross compile.
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2940$as_echo_n "checking whether we are cross compiling... " >&6; }
2941if test "$cross_compiling" != yes; then
2942 { { ac_try="$ac_link"
2943case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946esac
2947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2948$as_echo "$ac_try_echo"; } >&5
2949 (eval "$ac_link") 2>&5
2950 ac_status=$?
2951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2952 test $ac_status = 0; }
2953 if { ac_try='./conftest$ac_cv_exeext'
2954 { { case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957esac
2958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959$as_echo "$ac_try_echo"; } >&5
2960 (eval "$ac_try") 2>&5
2961 ac_status=$?
2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963 test $ac_status = 0; }; }; then
2964 cross_compiling=no
2965 else
2966 if test "$cross_compiling" = maybe; then
2967 cross_compiling=yes
2968 else
2969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002971as_fn_error $? "cannot run C compiled programs.
Benny Prijono28d3c562012-03-30 07:10:13 +00002972If you meant to cross compile, use \`--host'.
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002973See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono28d3c562012-03-30 07:10:13 +00002974 fi
2975 fi
2976fi
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2978$as_echo "$cross_compiling" >&6; }
2979
2980rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2981ac_clean_files=$ac_clean_files_save
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2983$as_echo_n "checking for suffix of object files... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002984if ${ac_cv_objext+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002985 $as_echo_n "(cached) " >&6
2986else
2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002988/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002989
2990int
2991main ()
2992{
2993
2994 ;
2995 return 0;
2996}
2997_ACEOF
2998rm -f conftest.o conftest.obj
Benny Prijono28d3c562012-03-30 07:10:13 +00002999if { { ac_try="$ac_compile"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003000case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003esac
Benny Prijono28d3c562012-03-30 07:10:13 +00003004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003006 (eval "$ac_compile") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003007 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00003008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003010 for ac_file in conftest.o conftest.obj conftest.*; do
3011 test -f "$ac_file" || continue;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003012 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00003013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003014 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3015 break;;
3016 esac
3017done
3018else
Benny Prijono28d3c562012-03-30 07:10:13 +00003019 $as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003020sed 's/^/| /' conftest.$ac_ext >&5
3021
Benny Prijono28d3c562012-03-30 07:10:13 +00003022{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003024as_fn_error $? "cannot compute suffix of object files: cannot compile
3025See \`config.log' for more details" "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003026fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003027rm -f conftest.$ac_cv_objext conftest.$ac_ext
3028fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3030$as_echo "$ac_cv_objext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003031OBJEXT=$ac_cv_objext
3032ac_objext=$OBJEXT
Benny Prijono28d3c562012-03-30 07:10:13 +00003033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3034$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003035if ${ac_cv_c_compiler_gnu+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003036 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003037else
Benny Prijono28d3c562012-03-30 07:10:13 +00003038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003039/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003040
3041int
3042main ()
3043{
3044#ifndef __GNUC__
3045 choke me
3046#endif
3047
3048 ;
3049 return 0;
3050}
3051_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003052if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003053 ac_compiler_gnu=yes
3054else
Benny Prijono28d3c562012-03-30 07:10:13 +00003055 ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003056fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003058ac_cv_c_compiler_gnu=$ac_compiler_gnu
3059
3060fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3062$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3063if test $ac_compiler_gnu = yes; then
3064 GCC=yes
3065else
3066 GCC=
3067fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003068ac_test_CFLAGS=${CFLAGS+set}
3069ac_save_CFLAGS=$CFLAGS
Benny Prijono28d3c562012-03-30 07:10:13 +00003070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3071$as_echo_n "checking whether $CC accepts -g... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003072if ${ac_cv_prog_cc_g+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003073 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003074else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003075 ac_save_c_werror_flag=$ac_c_werror_flag
3076 ac_c_werror_flag=yes
3077 ac_cv_prog_cc_g=no
3078 CFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003080/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003081
3082int
3083main ()
3084{
3085
3086 ;
3087 return 0;
3088}
3089_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003090if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003091 ac_cv_prog_cc_g=yes
3092else
Benny Prijono28d3c562012-03-30 07:10:13 +00003093 CFLAGS=""
3094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003095/* end confdefs.h. */
3096
3097int
3098main ()
3099{
3100
3101 ;
3102 return 0;
3103}
3104_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003105if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00003106
Benny Prijono28d3c562012-03-30 07:10:13 +00003107else
3108 ac_c_werror_flag=$ac_save_c_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003109 CFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003111/* end confdefs.h. */
3112
3113int
3114main ()
3115{
3116
3117 ;
3118 return 0;
3119}
3120_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003121if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003122 ac_cv_prog_cc_g=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003123fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003125fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129 ac_c_werror_flag=$ac_save_c_werror_flag
3130fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3132$as_echo "$ac_cv_prog_cc_g" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003133if test "$ac_test_CFLAGS" = set; then
3134 CFLAGS=$ac_save_CFLAGS
3135elif test $ac_cv_prog_cc_g = yes; then
3136 if test "$GCC" = yes; then
3137 CFLAGS="-g -O2"
3138 else
3139 CFLAGS="-g"
3140 fi
3141else
3142 if test "$GCC" = yes; then
3143 CFLAGS="-O2"
3144 else
3145 CFLAGS=
3146 fi
3147fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3149$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003150if ${ac_cv_prog_cc_c89+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003151 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003152else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003153 ac_cv_prog_cc_c89=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003154ac_save_CC=$CC
Benny Prijono28d3c562012-03-30 07:10:13 +00003155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003156/* end confdefs.h. */
3157#include <stdarg.h>
3158#include <stdio.h>
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003159struct stat;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003160/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3161struct buf { int x; };
3162FILE * (*rcsopen) (struct buf *, struct stat *, int);
3163static char *e (p, i)
3164 char **p;
3165 int i;
3166{
3167 return p[i];
3168}
3169static char *f (char * (*g) (char **, int), char **p, ...)
3170{
3171 char *s;
3172 va_list v;
3173 va_start (v,p);
3174 s = g (p, va_arg (v,int));
3175 va_end (v);
3176 return s;
3177}
3178
3179/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3180 function prototypes and stuff, but not '\xHH' hex character constants.
3181 These don't provoke an error unfortunately, instead are silently treated
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003182 as 'x'. The following induces an error, until -std is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003183 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3184 array size at least. It's necessary to write '\x00'==0 to get something
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003185 that's true only with -std. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003186int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3187
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003188/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3189 inside strings and character constants. */
3190#define FOO(x) 'x'
3191int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3192
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003193int test (int i, double x);
3194struct s1 {int (*f) (int a);};
3195struct s2 {int (*f) (double a);};
3196int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3197int argc;
3198char **argv;
3199int
3200main ()
3201{
3202return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3203 ;
3204 return 0;
3205}
3206_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003207for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3208 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003209do
3210 CC="$ac_save_CC $ac_arg"
Benny Prijono28d3c562012-03-30 07:10:13 +00003211 if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003212 ac_cv_prog_cc_c89=$ac_arg
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003213fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003214rm -f core conftest.err conftest.$ac_objext
3215 test "x$ac_cv_prog_cc_c89" != "xno" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003216done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003217rm -f conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003218CC=$ac_save_CC
3219
3220fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003221# AC_CACHE_VAL
3222case "x$ac_cv_prog_cc_c89" in
3223 x)
Benny Prijono28d3c562012-03-30 07:10:13 +00003224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3225$as_echo "none needed" >&6; } ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003226 xno)
Benny Prijono28d3c562012-03-30 07:10:13 +00003227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3228$as_echo "unsupported" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003229 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003230 CC="$CC $ac_cv_prog_cc_c89"
Benny Prijono28d3c562012-03-30 07:10:13 +00003231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3232$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003233esac
Benny Prijono28d3c562012-03-30 07:10:13 +00003234if test "x$ac_cv_prog_cc_c89" != xno; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003235
Benny Prijono28d3c562012-03-30 07:10:13 +00003236fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003237
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003238ac_ext=c
3239ac_cpp='$CPP $CPPFLAGS'
3240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003244ac_ext=cpp
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003245ac_cpp='$CXXCPP $CPPFLAGS'
3246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003249if test -z "$CXX"; then
3250 if test -n "$CCC"; then
3251 CXX=$CCC
3252 else
3253 if test -n "$ac_tool_prefix"; then
3254 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 +00003255 do
3256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3257set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00003258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003260if ${ac_cv_prog_CXX+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003261 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003262else
3263 if test -n "$CXX"; then
3264 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3265else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267for as_dir in $PATH
3268do
3269 IFS=$as_save_IFS
3270 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00003271 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003273 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00003274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003275 break 2
3276 fi
3277done
Benny Prijono28d3c562012-03-30 07:10:13 +00003278 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003279IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003280
3281fi
3282fi
3283CXX=$ac_cv_prog_CXX
3284if test -n "$CXX"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00003285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3286$as_echo "$CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003287else
Benny Prijono28d3c562012-03-30 07:10:13 +00003288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003290fi
3291
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003292
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003293 test -n "$CXX" && break
3294 done
3295fi
3296if test -z "$CXX"; then
3297 ac_ct_CXX=$CXX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003298 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 +00003299do
3300 # Extract the first word of "$ac_prog", so it can be a program name with args.
3301set dummy $ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00003302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003304if ${ac_cv_prog_ac_ct_CXX+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003305 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003306else
3307 if test -n "$ac_ct_CXX"; then
3308 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3309else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311for as_dir in $PATH
3312do
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00003315 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003317 ac_cv_prog_ac_ct_CXX="$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00003318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003319 break 2
3320 fi
3321done
Benny Prijono28d3c562012-03-30 07:10:13 +00003322 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003323IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003324
3325fi
3326fi
3327ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3328if test -n "$ac_ct_CXX"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00003329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3330$as_echo "$ac_ct_CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003331else
Benny Prijono28d3c562012-03-30 07:10:13 +00003332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003334fi
3335
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003336
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003337 test -n "$ac_ct_CXX" && break
3338done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003339
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003340 if test "x$ac_ct_CXX" = x; then
3341 CXX="g++"
3342 else
3343 case $cross_compiling:$ac_tool_warned in
3344yes:)
Benny Prijono28d3c562012-03-30 07:10:13 +00003345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003347ac_tool_warned=yes ;;
3348esac
3349 CXX=$ac_ct_CXX
3350 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003351fi
3352
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003353 fi
3354fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003355# Provide some information about the compiler.
Benny Prijono28d3c562012-03-30 07:10:13 +00003356$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3357set X $ac_compile
3358ac_compiler=$2
3359for ac_option in --version -v -V -qversion; do
3360 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003361case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364esac
Benny Prijono28d3c562012-03-30 07:10:13 +00003365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366$as_echo "$ac_try_echo"; } >&5
3367 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003368 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00003369 if test -s conftest.err; then
3370 sed '10a\
3371... rest of stderr output deleted ...
3372 10q' conftest.err >conftest.er1
3373 cat conftest.er1 >&5
3374 fi
3375 rm -f conftest.er1 conftest.err
3376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3377 test $ac_status = 0; }
3378done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003379
Benny Prijono28d3c562012-03-30 07:10:13 +00003380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3381$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003382if ${ac_cv_cxx_compiler_gnu+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003383 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003384else
Benny Prijono28d3c562012-03-30 07:10:13 +00003385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003386/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003387
3388int
3389main ()
3390{
3391#ifndef __GNUC__
3392 choke me
3393#endif
3394
3395 ;
3396 return 0;
3397}
3398_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003399if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003400 ac_compiler_gnu=yes
3401else
Benny Prijono28d3c562012-03-30 07:10:13 +00003402 ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003403fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003405ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3406
3407fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3409$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3410if test $ac_compiler_gnu = yes; then
3411 GXX=yes
3412else
3413 GXX=
3414fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003415ac_test_CXXFLAGS=${CXXFLAGS+set}
3416ac_save_CXXFLAGS=$CXXFLAGS
Benny Prijono28d3c562012-03-30 07:10:13 +00003417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3418$as_echo_n "checking whether $CXX accepts -g... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003419if ${ac_cv_prog_cxx_g+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003420 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003421else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003422 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3423 ac_cxx_werror_flag=yes
3424 ac_cv_prog_cxx_g=no
3425 CXXFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003427/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003428
3429int
3430main ()
3431{
3432
3433 ;
3434 return 0;
3435}
3436_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003437if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003438 ac_cv_prog_cxx_g=yes
3439else
Benny Prijono28d3c562012-03-30 07:10:13 +00003440 CXXFLAGS=""
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003442/* end confdefs.h. */
3443
3444int
3445main ()
3446{
3447
3448 ;
3449 return 0;
3450}
3451_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003452if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00003453
Benny Prijono28d3c562012-03-30 07:10:13 +00003454else
3455 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003456 CXXFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003458/* end confdefs.h. */
3459
3460int
3461main ()
3462{
3463
3464 ;
3465 return 0;
3466}
3467_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003468if ac_fn_cxx_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003469 ac_cv_prog_cxx_g=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003470fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003472fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3477fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3479$as_echo "$ac_cv_prog_cxx_g" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003480if test "$ac_test_CXXFLAGS" = set; then
3481 CXXFLAGS=$ac_save_CXXFLAGS
3482elif test $ac_cv_prog_cxx_g = yes; then
3483 if test "$GXX" = yes; then
3484 CXXFLAGS="-g -O2"
3485 else
3486 CXXFLAGS="-g"
3487 fi
3488else
3489 if test "$GXX" = yes; then
3490 CXXFLAGS="-O2"
3491 else
3492 CXXFLAGS=
3493 fi
3494fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003495ac_ext=c
3496ac_cpp='$CPP $CPPFLAGS'
3497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003501ac_ext=c
3502ac_cpp='$CPP $CPPFLAGS'
3503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505ac_compiler_gnu=$ac_cv_c_compiler_gnu
3506
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003507
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003508if test -z "$CROSS_COMPILE"; then
3509 CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'`
3510fi
3511
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003512if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003513
3514if test "$LD" = ""; then LD="$CC"; fi
3515
Sauw Minge7dbbc82011-10-24 09:28:13 +00003516if test "$LDOUT" = ""; then LDOUT="-o "; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003517
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003518if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003519
3520if test "$OBJEXT" = ""; then OBJEXT='o'; fi
3521
3522if test "$LIBEXT" = ""; then LIBEXT='a'; fi
3523
3524if test "$LIBEXT2" = ""; then LIBEXT2=""; fi
3525
Sauw Minge7dbbc82011-10-24 09:28:13 +00003526if test "$CC_OUT" = ""; then CC_OUT="-o "; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003527
3528if test "$CC_INC" = ""; then CC_INC="-I"; fi
3529
3530if test "$CC_DEF" = ""; then CC_DEF="-D"; fi
3531
3532if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi
3533
3534if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi
3535
3536
3537
3538
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003539
Benny Prijono0822c192008-08-21 20:59:58 +00003540
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003541
3542case $host in
Benny Prijono53847a32007-09-24 16:10:13 +00003543 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003544 if pwd -W 2&> /dev/null; then
3545 ac_pjdir=`pwd -W`
3546 else
3547 # We're probably cross-compiling mingw on Linux
3548 ac_pjdir=`pwd`
3549 fi
Benny Prijono53847a32007-09-24 16:10:13 +00003550 ;;
3551 *)
3552 ac_pjdir=`pwd`
3553 ;;
3554esac
Benny Prijono12483112007-03-12 10:44:38 +00003555
3556
Benny Prijono28d3c562012-03-30 07:10:13 +00003557case $target in
3558 *mingw* | *cygw* | *win32* | *w32* )
3559 ac_shlib_suffix=dll
3560 ;;
3561 *darwin*)
3562 ac_shlib_suffix=dylib
3563 ;;
3564 *)
3565 ac_shlib_suffix=so
3566 ;;
3567esac
Benny Prijono36d32492011-12-28 08:42:23 +00003568
Benny Prijono28d3c562012-03-30 07:10:13 +00003569
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003570if test "$build" = "$host"; then
3571 ac_cross_compile=
3572else
3573 ac_cross_compile=${host_orig}-
3574fi
3575
3576
Benny Prijono28d3c562012-03-30 07:10:13 +00003577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
3578$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003579if ${ac_cv_lib_pthread_pthread_create+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003580 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003581else
3582 ac_check_lib_save_LIBS=$LIBS
3583LIBS="-lpthread $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003585/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003586
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003587/* Override any GCC internal prototype to avoid an error.
3588 Use char because int might match the return type of a GCC
3589 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003590#ifdef __cplusplus
3591extern "C"
3592#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003593char pthread_create ();
3594int
3595main ()
3596{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003597return pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003598 ;
3599 return 0;
3600}
3601_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003602if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003603 ac_cv_lib_pthread_pthread_create=yes
3604else
Benny Prijono28d3c562012-03-30 07:10:13 +00003605 ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003606fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003607rm -f core conftest.err conftest.$ac_objext \
3608 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003609LIBS=$ac_check_lib_save_LIBS
3610fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
3612$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003613if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003614 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003615#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003616_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003617
3618 LIBS="-lpthread $LIBS"
3619
3620fi
3621
Benny Prijono28d3c562012-03-30 07:10:13 +00003622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5
3623$as_echo_n "checking for puts in -lwsock32... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003624if ${ac_cv_lib_wsock32_puts+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003625 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003626else
3627 ac_check_lib_save_LIBS=$LIBS
3628LIBS="-lwsock32 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003630/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003631
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003632/* Override any GCC internal prototype to avoid an error.
3633 Use char because int might match the return type of a GCC
3634 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003635#ifdef __cplusplus
3636extern "C"
3637#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003638char puts ();
3639int
3640main ()
3641{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003642return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003643 ;
3644 return 0;
3645}
3646_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003647if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003648 ac_cv_lib_wsock32_puts=yes
3649else
Benny Prijono28d3c562012-03-30 07:10:13 +00003650 ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003651fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003652rm -f core conftest.err conftest.$ac_objext \
3653 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003654LIBS=$ac_check_lib_save_LIBS
3655fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5
3657$as_echo "$ac_cv_lib_wsock32_puts" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003658if test "x$ac_cv_lib_wsock32_puts" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003659 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003660#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003661_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003662
3663 LIBS="-lwsock32 $LIBS"
3664
3665fi
3666
Benny Prijono28d3c562012-03-30 07:10:13 +00003667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5
3668$as_echo_n "checking for puts in -lws2_32... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003669if ${ac_cv_lib_ws2_32_puts+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003670 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003671else
3672 ac_check_lib_save_LIBS=$LIBS
3673LIBS="-lws2_32 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003675/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003676
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003677/* Override any GCC internal prototype to avoid an error.
3678 Use char because int might match the return type of a GCC
3679 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003680#ifdef __cplusplus
3681extern "C"
3682#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003683char puts ();
3684int
3685main ()
3686{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003687return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003688 ;
3689 return 0;
3690}
3691_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003692if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003693 ac_cv_lib_ws2_32_puts=yes
3694else
Benny Prijono28d3c562012-03-30 07:10:13 +00003695 ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003696fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003697rm -f core conftest.err conftest.$ac_objext \
3698 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003699LIBS=$ac_check_lib_save_LIBS
3700fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5
3702$as_echo "$ac_cv_lib_ws2_32_puts" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003703if test "x$ac_cv_lib_ws2_32_puts" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003704 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003705#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003706_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003707
3708 LIBS="-lws2_32 $LIBS"
3709
3710fi
3711
Benny Prijono28d3c562012-03-30 07:10:13 +00003712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5
3713$as_echo_n "checking for puts in -lole32... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003714if ${ac_cv_lib_ole32_puts+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003715 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003716else
3717 ac_check_lib_save_LIBS=$LIBS
3718LIBS="-lole32 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003720/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003721
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003722/* Override any GCC internal prototype to avoid an error.
3723 Use char because int might match the return type of a GCC
3724 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003725#ifdef __cplusplus
3726extern "C"
3727#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003728char puts ();
3729int
3730main ()
3731{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003732return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003733 ;
3734 return 0;
3735}
3736_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003737if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003738 ac_cv_lib_ole32_puts=yes
3739else
Benny Prijono28d3c562012-03-30 07:10:13 +00003740 ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003741fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003742rm -f core conftest.err conftest.$ac_objext \
3743 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003744LIBS=$ac_check_lib_save_LIBS
3745fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5
3747$as_echo "$ac_cv_lib_ole32_puts" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003748if test "x$ac_cv_lib_ole32_puts" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003749 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003750#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003751_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003752
3753 LIBS="-lole32 $LIBS"
3754
3755fi
3756
Benny Prijono28d3c562012-03-30 07:10:13 +00003757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5
3758$as_echo_n "checking for puts in -lwinmm... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003759if ${ac_cv_lib_winmm_puts+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003760 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003761else
3762 ac_check_lib_save_LIBS=$LIBS
3763LIBS="-lwinmm $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003765/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003766
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003767/* Override any GCC internal prototype to avoid an error.
3768 Use char because int might match the return type of a GCC
3769 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003770#ifdef __cplusplus
3771extern "C"
3772#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003773char puts ();
3774int
3775main ()
3776{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003777return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003778 ;
3779 return 0;
3780}
3781_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003782if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003783 ac_cv_lib_winmm_puts=yes
3784else
Benny Prijono28d3c562012-03-30 07:10:13 +00003785 ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003786fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003787rm -f core conftest.err conftest.$ac_objext \
3788 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003789LIBS=$ac_check_lib_save_LIBS
3790fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5
3792$as_echo "$ac_cv_lib_winmm_puts" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003793if test "x$ac_cv_lib_winmm_puts" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003794 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003795#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003796_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003797
3798 LIBS="-lwinmm $LIBS"
3799
3800fi
3801
Benny Prijono28d3c562012-03-30 07:10:13 +00003802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5
3803$as_echo_n "checking for puts in -lsocket... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003804if ${ac_cv_lib_socket_puts+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003805 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003806else
3807 ac_check_lib_save_LIBS=$LIBS
3808LIBS="-lsocket $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003810/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003811
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003812/* Override any GCC internal prototype to avoid an error.
3813 Use char because int might match the return type of a GCC
3814 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003815#ifdef __cplusplus
3816extern "C"
3817#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003818char puts ();
3819int
3820main ()
3821{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003822return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003823 ;
3824 return 0;
3825}
3826_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003827if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003828 ac_cv_lib_socket_puts=yes
3829else
Benny Prijono28d3c562012-03-30 07:10:13 +00003830 ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003831fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003832rm -f core conftest.err conftest.$ac_objext \
3833 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003834LIBS=$ac_check_lib_save_LIBS
3835fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5
3837$as_echo "$ac_cv_lib_socket_puts" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003838if test "x$ac_cv_lib_socket_puts" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003839 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003840#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003841_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003842
3843 LIBS="-lsocket $LIBS"
3844
3845fi
3846
Benny Prijono28d3c562012-03-30 07:10:13 +00003847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5
3848$as_echo_n "checking for puts in -lrt... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003849if ${ac_cv_lib_rt_puts+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003850 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003851else
3852 ac_check_lib_save_LIBS=$LIBS
3853LIBS="-lrt $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003855/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003856
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003857/* Override any GCC internal prototype to avoid an error.
3858 Use char because int might match the return type of a GCC
3859 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003860#ifdef __cplusplus
3861extern "C"
3862#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003863char puts ();
3864int
3865main ()
3866{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003867return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003868 ;
3869 return 0;
3870}
3871_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003872if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003873 ac_cv_lib_rt_puts=yes
3874else
Benny Prijono28d3c562012-03-30 07:10:13 +00003875 ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003876fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003877rm -f core conftest.err conftest.$ac_objext \
3878 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003879LIBS=$ac_check_lib_save_LIBS
3880fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5
3882$as_echo "$ac_cv_lib_rt_puts" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003883if test "x$ac_cv_lib_rt_puts" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003884 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003885#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003886_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003887
3888 LIBS="-lrt $LIBS"
3889
3890fi
3891
Benny Prijono28d3c562012-03-30 07:10:13 +00003892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5
3893$as_echo_n "checking for puts in -lnsl... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003894if ${ac_cv_lib_nsl_puts+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003895 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003896else
3897 ac_check_lib_save_LIBS=$LIBS
3898LIBS="-lnsl $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003900/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003901
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003902/* Override any GCC internal prototype to avoid an error.
3903 Use char because int might match the return type of a GCC
3904 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003905#ifdef __cplusplus
3906extern "C"
3907#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003908char puts ();
3909int
3910main ()
3911{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003912return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003913 ;
3914 return 0;
3915}
3916_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003917if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003918 ac_cv_lib_nsl_puts=yes
3919else
Benny Prijono28d3c562012-03-30 07:10:13 +00003920 ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003921fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003922rm -f core conftest.err conftest.$ac_objext \
3923 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003924LIBS=$ac_check_lib_save_LIBS
3925fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5
3927$as_echo "$ac_cv_lib_nsl_puts" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003928if test "x$ac_cv_lib_nsl_puts" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003929 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003930#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003931_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003932
3933 LIBS="-lnsl $LIBS"
3934
3935fi
3936
Benny Prijono28d3c562012-03-30 07:10:13 +00003937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3938$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003939if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003940 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003941else
3942 ac_check_lib_save_LIBS=$LIBS
3943LIBS="-luuid $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003945/* end confdefs.h. */
3946
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003947/* Override any GCC internal prototype to avoid an error.
3948 Use char because int might match the return type of a GCC
3949 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003950#ifdef __cplusplus
3951extern "C"
3952#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003953char uuid_generate ();
3954int
3955main ()
3956{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003957return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003958 ;
3959 return 0;
3960}
3961_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003962if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003963 ac_cv_lib_uuid_uuid_generate=yes
3964else
Benny Prijono28d3c562012-03-30 07:10:13 +00003965 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003966fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003967rm -f core conftest.err conftest.$ac_objext \
3968 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003969LIBS=$ac_check_lib_save_LIBS
3970fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3972$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003973if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003974 cat >>confdefs.h <<_ACEOF
3975#define HAVE_LIBUUID 1
3976_ACEOF
3977
3978 LIBS="-luuid $LIBS"
3979
3980fi
3981
Benny Prijono28d3c562012-03-30 07:10:13 +00003982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3983$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003984if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003985 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003986else
3987 ac_check_lib_save_LIBS=$LIBS
3988LIBS="-luuid $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003990/* end confdefs.h. */
3991
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003992/* Override any GCC internal prototype to avoid an error.
3993 Use char because int might match the return type of a GCC
3994 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003995#ifdef __cplusplus
3996extern "C"
3997#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003998char uuid_generate ();
3999int
4000main ()
4001{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004002return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00004003 ;
4004 return 0;
4005}
4006_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004007if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00004008 ac_cv_lib_uuid_uuid_generate=yes
4009else
Benny Prijono28d3c562012-03-30 07:10:13 +00004010 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00004011fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004012rm -f core conftest.err conftest.$ac_objext \
4013 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00004014LIBS=$ac_check_lib_save_LIBS
4015fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4017$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004018if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00004019 ac_has_uuid_lib=1
4020fi
4021
4022
Benny Prijono28d3c562012-03-30 07:10:13 +00004023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5
4024$as_echo "Setting PJ_M_NAME to $target_cpu" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004025cat >>confdefs.h <<_ACEOF
4026#define PJ_M_NAME "$target_cpu"
4027_ACEOF
4028
4029
Benny Prijono28d3c562012-03-30 07:10:13 +00004030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5
4031$as_echo_n "checking memory alignment... " >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004032case $target in
Benny Prijonob18e9502010-05-19 05:51:38 +00004033 sparc64-* | ia64-* | x86_64-* )
Benny Prijono28d3c562012-03-30 07:10:13 +00004034 $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00004035
Benny Prijono28d3c562012-03-30 07:10:13 +00004036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5
4037$as_echo "8 bytes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004038 ;;
4039 * )
Benny Prijono28d3c562012-03-30 07:10:13 +00004040 $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00004041
Benny Prijono28d3c562012-03-30 07:10:13 +00004042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5
4043$as_echo "4 bytes (default)" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004044 ;;
4045esac
4046
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004047
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004048ac_ext=c
4049ac_cpp='$CPP $CPPFLAGS'
4050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijono28d3c562012-03-30 07:10:13 +00004053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4054$as_echo_n "checking how to run the C preprocessor... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004055# On Suns, sometimes $CPP names a directory.
4056if test -n "$CPP" && test -d "$CPP"; then
4057 CPP=
4058fi
4059if test -z "$CPP"; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004060 if ${ac_cv_prog_CPP+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004061 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004062else
4063 # Double quotes because CPP needs to be expanded
4064 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4065 do
4066 ac_preproc_ok=false
4067for ac_c_preproc_warn_flag in '' yes
4068do
4069 # Use a header file that comes with gcc, so configuring glibc
4070 # with a fresh cross-compiler works.
4071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4072 # <limits.h> exists even on freestanding compilers.
4073 # On the NeXT, cc -E runs the code through the compiler's parser,
4074 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijono28d3c562012-03-30 07:10:13 +00004075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004076/* end confdefs.h. */
4077#ifdef __STDC__
4078# include <limits.h>
4079#else
4080# include <assert.h>
4081#endif
4082 Syntax error
4083_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004084if ac_fn_c_try_cpp "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00004085
Benny Prijono28d3c562012-03-30 07:10:13 +00004086else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004087 # Broken: fails on valid input.
4088continue
4089fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004090rm -f conftest.err conftest.i conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004091
4092 # OK, works on sane cases. Now check whether nonexistent headers
4093 # can be detected and how.
Benny Prijono28d3c562012-03-30 07:10:13 +00004094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004095/* end confdefs.h. */
4096#include <ac_nonexistent.h>
4097_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004098if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004099 # Broken: success on invalid input.
4100continue
4101else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004102 # Passes both tests.
4103ac_preproc_ok=:
4104break
4105fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004106rm -f conftest.err conftest.i conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004107
4108done
4109# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004110rm -f conftest.i conftest.err conftest.$ac_ext
Benny Prijono28d3c562012-03-30 07:10:13 +00004111if $ac_preproc_ok; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004112 break
4113fi
4114
4115 done
4116 ac_cv_prog_CPP=$CPP
4117
4118fi
4119 CPP=$ac_cv_prog_CPP
4120else
4121 ac_cv_prog_CPP=$CPP
4122fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4124$as_echo "$CPP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004125ac_preproc_ok=false
4126for ac_c_preproc_warn_flag in '' yes
4127do
4128 # Use a header file that comes with gcc, so configuring glibc
4129 # with a fresh cross-compiler works.
4130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4131 # <limits.h> exists even on freestanding compilers.
4132 # On the NeXT, cc -E runs the code through the compiler's parser,
4133 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijono28d3c562012-03-30 07:10:13 +00004134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004135/* end confdefs.h. */
4136#ifdef __STDC__
4137# include <limits.h>
4138#else
4139# include <assert.h>
4140#endif
4141 Syntax error
4142_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004143if ac_fn_c_try_cpp "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00004144
Benny Prijono28d3c562012-03-30 07:10:13 +00004145else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004146 # Broken: fails on valid input.
4147continue
4148fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004149rm -f conftest.err conftest.i conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004150
4151 # OK, works on sane cases. Now check whether nonexistent headers
4152 # can be detected and how.
Benny Prijono28d3c562012-03-30 07:10:13 +00004153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004154/* end confdefs.h. */
4155#include <ac_nonexistent.h>
4156_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004157if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004158 # Broken: success on invalid input.
4159continue
4160else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004161 # Passes both tests.
4162ac_preproc_ok=:
4163break
4164fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004165rm -f conftest.err conftest.i conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004166
4167done
4168# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004169rm -f conftest.i conftest.err conftest.$ac_ext
Benny Prijono28d3c562012-03-30 07:10:13 +00004170if $ac_preproc_ok; then :
4171
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004172else
Benny Prijono28d3c562012-03-30 07:10:13 +00004173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004175as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4176See \`config.log' for more details" "$LINENO" 5; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004177fi
4178
4179ac_ext=c
4180ac_cpp='$CPP $CPPFLAGS'
4181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184
4185
Benny Prijono28d3c562012-03-30 07:10:13 +00004186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4187$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004188if ${ac_cv_path_GREP+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004189 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004190else
Benny Prijono28d3c562012-03-30 07:10:13 +00004191 if test -z "$GREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004192 ac_path_GREP_found=false
Benny Prijono28d3c562012-03-30 07:10:13 +00004193 # Loop through the user's path and test for each of PROGNAME-LIST
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004195for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4196do
4197 IFS=$as_save_IFS
4198 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00004199 for ac_prog in grep ggrep; do
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004202 as_fn_executable_p "$ac_path_GREP" || continue
Benny Prijono28d3c562012-03-30 07:10:13 +00004203# Check for GNU ac_path_GREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004204 # Check for GNU $ac_path_GREP
4205case `"$ac_path_GREP" --version 2>&1` in
4206*GNU*)
4207 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4208*)
4209 ac_count=0
Benny Prijono28d3c562012-03-30 07:10:13 +00004210 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004211 while :
4212 do
4213 cat "conftest.in" "conftest.in" >"conftest.tmp"
4214 mv "conftest.tmp" "conftest.in"
4215 cp "conftest.in" "conftest.nl"
Benny Prijono28d3c562012-03-30 07:10:13 +00004216 $as_echo 'GREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004217 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijono28d3c562012-03-30 07:10:13 +00004219 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004220 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4221 # Best one so far, save it but keep looking for a better one
4222 ac_cv_path_GREP="$ac_path_GREP"
4223 ac_path_GREP_max=$ac_count
4224 fi
4225 # 10*(2^10) chars as input seems more than enough
4226 test $ac_count -gt 10 && break
4227 done
4228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4229esac
4230
Benny Prijono28d3c562012-03-30 07:10:13 +00004231 $ac_path_GREP_found && break 3
4232 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004233 done
Benny Prijono28d3c562012-03-30 07:10:13 +00004234 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004235IFS=$as_save_IFS
Benny Prijono28d3c562012-03-30 07:10:13 +00004236 if test -z "$ac_cv_path_GREP"; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004237 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Benny Prijono28d3c562012-03-30 07:10:13 +00004238 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004239else
4240 ac_cv_path_GREP=$GREP
4241fi
4242
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004243fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4245$as_echo "$ac_cv_path_GREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004246 GREP="$ac_cv_path_GREP"
4247
4248
Benny Prijono28d3c562012-03-30 07:10:13 +00004249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4250$as_echo_n "checking for egrep... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004251if ${ac_cv_path_EGREP+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004252 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004253else
4254 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4255 then ac_cv_path_EGREP="$GREP -E"
4256 else
Benny Prijono28d3c562012-03-30 07:10:13 +00004257 if test -z "$EGREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004258 ac_path_EGREP_found=false
Benny Prijono28d3c562012-03-30 07:10:13 +00004259 # Loop through the user's path and test for each of PROGNAME-LIST
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004261for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4262do
4263 IFS=$as_save_IFS
4264 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00004265 for ac_prog in egrep; do
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004268 as_fn_executable_p "$ac_path_EGREP" || continue
Benny Prijono28d3c562012-03-30 07:10:13 +00004269# Check for GNU ac_path_EGREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004270 # Check for GNU $ac_path_EGREP
4271case `"$ac_path_EGREP" --version 2>&1` in
4272*GNU*)
4273 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4274*)
4275 ac_count=0
Benny Prijono28d3c562012-03-30 07:10:13 +00004276 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004277 while :
4278 do
4279 cat "conftest.in" "conftest.in" >"conftest.tmp"
4280 mv "conftest.tmp" "conftest.in"
4281 cp "conftest.in" "conftest.nl"
Benny Prijono28d3c562012-03-30 07:10:13 +00004282 $as_echo 'EGREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004283 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijono28d3c562012-03-30 07:10:13 +00004285 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004286 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4287 # Best one so far, save it but keep looking for a better one
4288 ac_cv_path_EGREP="$ac_path_EGREP"
4289 ac_path_EGREP_max=$ac_count
4290 fi
4291 # 10*(2^10) chars as input seems more than enough
4292 test $ac_count -gt 10 && break
4293 done
4294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4295esac
4296
Benny Prijono28d3c562012-03-30 07:10:13 +00004297 $ac_path_EGREP_found && break 3
4298 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004299 done
Benny Prijono28d3c562012-03-30 07:10:13 +00004300 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004301IFS=$as_save_IFS
Benny Prijono28d3c562012-03-30 07:10:13 +00004302 if test -z "$ac_cv_path_EGREP"; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004303 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Benny Prijono28d3c562012-03-30 07:10:13 +00004304 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004305else
4306 ac_cv_path_EGREP=$EGREP
4307fi
4308
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004309 fi
4310fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4312$as_echo "$ac_cv_path_EGREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004313 EGREP="$ac_cv_path_EGREP"
4314
4315
Benny Prijono28d3c562012-03-30 07:10:13 +00004316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4317$as_echo_n "checking for ANSI C header files... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004318if ${ac_cv_header_stdc+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004319 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004320else
Benny Prijono28d3c562012-03-30 07:10:13 +00004321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004322/* end confdefs.h. */
4323#include <stdlib.h>
4324#include <stdarg.h>
4325#include <string.h>
4326#include <float.h>
4327
4328int
4329main ()
4330{
4331
4332 ;
4333 return 0;
4334}
4335_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004336if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004337 ac_cv_header_stdc=yes
4338else
Benny Prijono28d3c562012-03-30 07:10:13 +00004339 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004340fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342
4343if test $ac_cv_header_stdc = yes; then
4344 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Benny Prijono28d3c562012-03-30 07:10:13 +00004345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004346/* end confdefs.h. */
4347#include <string.h>
4348
4349_ACEOF
4350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijono28d3c562012-03-30 07:10:13 +00004351 $EGREP "memchr" >/dev/null 2>&1; then :
4352
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004353else
4354 ac_cv_header_stdc=no
4355fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004356rm -f conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004357
4358fi
4359
4360if test $ac_cv_header_stdc = yes; then
4361 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Benny Prijono28d3c562012-03-30 07:10:13 +00004362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004363/* end confdefs.h. */
4364#include <stdlib.h>
4365
4366_ACEOF
4367if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijono28d3c562012-03-30 07:10:13 +00004368 $EGREP "free" >/dev/null 2>&1; then :
4369
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004370else
4371 ac_cv_header_stdc=no
4372fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004373rm -f conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004374
4375fi
4376
4377if test $ac_cv_header_stdc = yes; then
4378 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Benny Prijono28d3c562012-03-30 07:10:13 +00004379 if test "$cross_compiling" = yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004380 :
4381else
Benny Prijono28d3c562012-03-30 07:10:13 +00004382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004383/* end confdefs.h. */
4384#include <ctype.h>
4385#include <stdlib.h>
4386#if ((' ' & 0x0FF) == 0x020)
4387# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4388# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4389#else
4390# define ISLOWER(c) \
4391 (('a' <= (c) && (c) <= 'i') \
4392 || ('j' <= (c) && (c) <= 'r') \
4393 || ('s' <= (c) && (c) <= 'z'))
4394# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4395#endif
4396
4397#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4398int
4399main ()
4400{
4401 int i;
4402 for (i = 0; i < 256; i++)
4403 if (XOR (islower (i), ISLOWER (i))
4404 || toupper (i) != TOUPPER (i))
4405 return 2;
4406 return 0;
4407}
4408_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004409if ac_fn_c_try_run "$LINENO"; then :
4410
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004411else
Benny Prijono28d3c562012-03-30 07:10:13 +00004412 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004413fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4415 conftest.$ac_objext conftest.beam conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004416fi
4417
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004418fi
4419fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4421$as_echo "$ac_cv_header_stdc" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004422if test $ac_cv_header_stdc = yes; then
4423
Benny Prijono28d3c562012-03-30 07:10:13 +00004424$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004425
4426fi
4427
4428# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004429for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4430 inttypes.h stdint.h unistd.h
Benny Prijono28d3c562012-03-30 07:10:13 +00004431do :
4432 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4433ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4434"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004435if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004436 cat >>confdefs.h <<_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004437#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004438_ACEOF
4439
4440fi
4441
4442done
4443
4444
Benny Prijono28d3c562012-03-30 07:10:13 +00004445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4446$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004447if ${ac_cv_c_bigendian+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004448 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004449else
Benny Prijono28d3c562012-03-30 07:10:13 +00004450 ac_cv_c_bigendian=unknown
4451 # See if we're dealing with a universal compiler.
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453/* end confdefs.h. */
4454#ifndef __APPLE_CC__
4455 not a universal capable compiler
4456 #endif
4457 typedef int dummy;
4458
Benny Prijonod5233702010-01-13 13:09:45 +00004459_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004460if ac_fn_c_try_compile "$LINENO"; then :
4461
4462 # Check for potential -arch flags. It is not universal unless
4463 # there are at least two -arch flags with different values.
4464 ac_arch=
4465 ac_prev=
4466 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4467 if test -n "$ac_prev"; then
4468 case $ac_word in
4469 i?86 | x86_64 | ppc | ppc64)
4470 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4471 ac_arch=$ac_word
4472 else
4473 ac_cv_c_bigendian=universal
4474 break
4475 fi
4476 ;;
4477 esac
4478 ac_prev=
4479 elif test "x$ac_word" = "x-arch"; then
4480 ac_prev=arch
4481 fi
4482 done
4483fi
4484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485 if test $ac_cv_c_bigendian = unknown; then
4486 # See if sys/param.h defines the BYTE_ORDER macro.
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004488/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004489#include <sys/types.h>
Benny Prijono28d3c562012-03-30 07:10:13 +00004490 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004491
4492int
4493main ()
4494{
Benny Prijono28d3c562012-03-30 07:10:13 +00004495#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4496 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4497 && LITTLE_ENDIAN)
4498 bogus endian macros
4499 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004500
4501 ;
4502 return 0;
4503}
4504_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004505if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004506 # It does; now see whether it defined to BIG_ENDIAN or not.
Benny Prijono28d3c562012-03-30 07:10:13 +00004507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004508/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004509#include <sys/types.h>
Benny Prijono28d3c562012-03-30 07:10:13 +00004510 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004511
4512int
4513main ()
4514{
4515#if BYTE_ORDER != BIG_ENDIAN
Benny Prijono28d3c562012-03-30 07:10:13 +00004516 not big endian
4517 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004518
4519 ;
4520 return 0;
4521}
4522_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004523if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004524 ac_cv_c_bigendian=yes
4525else
Benny Prijono28d3c562012-03-30 07:10:13 +00004526 ac_cv_c_bigendian=no
Benny Prijono36d32492011-12-28 08:42:23 +00004527fi
Benny Prijono36d32492011-12-28 08:42:23 +00004528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono28d3c562012-03-30 07:10:13 +00004529fi
4530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531 fi
4532 if test $ac_cv_c_bigendian = unknown; then
4533 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono36d32492011-12-28 08:42:23 +00004535/* end confdefs.h. */
Benny Prijono28d3c562012-03-30 07:10:13 +00004536#include <limits.h>
4537
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004538int
4539main ()
4540{
Benny Prijono28d3c562012-03-30 07:10:13 +00004541#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4542 bogus endian macros
4543 #endif
4544
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004545 ;
4546 return 0;
4547}
4548_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004549if ac_fn_c_try_compile "$LINENO"; then :
4550 # It does; now see whether it defined to _BIG_ENDIAN or not.
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552/* end confdefs.h. */
4553#include <limits.h>
4554
4555int
4556main ()
4557{
4558#ifndef _BIG_ENDIAN
4559 not big endian
4560 #endif
4561
4562 ;
4563 return 0;
4564}
4565_ACEOF
4566if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004567 ac_cv_c_bigendian=yes
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004568else
Benny Prijono28d3c562012-03-30 07:10:13 +00004569 ac_cv_c_bigendian=no
Benny Prijonoe1105232011-10-26 06:49:34 +00004570fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572fi
4573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 fi
4575 if test $ac_cv_c_bigendian = unknown; then
4576 # Compile a test program.
4577 if test "$cross_compiling" = yes; then :
4578 # Try to guess by grepping values from an object file.
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580/* end confdefs.h. */
4581short int ascii_mm[] =
4582 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4583 short int ascii_ii[] =
4584 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4585 int use_ascii (int i) {
4586 return ascii_mm[i] + ascii_ii[i];
4587 }
4588 short int ebcdic_ii[] =
4589 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4590 short int ebcdic_mm[] =
4591 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4592 int use_ebcdic (int i) {
4593 return ebcdic_mm[i] + ebcdic_ii[i];
4594 }
4595 extern int foo;
Benny Prijono36d32492011-12-28 08:42:23 +00004596
Benny Prijono28d3c562012-03-30 07:10:13 +00004597int
4598main ()
4599{
4600return use_ascii (foo) == use_ebcdic (foo);
4601 ;
4602 return 0;
4603}
4604_ACEOF
4605if ac_fn_c_try_compile "$LINENO"; then :
4606 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4607 ac_cv_c_bigendian=yes
4608 fi
4609 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4610 if test "$ac_cv_c_bigendian" = unknown; then
4611 ac_cv_c_bigendian=no
4612 else
4613 # finding both strings is unlikely to happen, but who knows?
4614 ac_cv_c_bigendian=unknown
4615 fi
4616 fi
4617fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004619else
Benny Prijono28d3c562012-03-30 07:10:13 +00004620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004621/* end confdefs.h. */
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004622$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004623int
4624main ()
4625{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004626
Benny Prijono28d3c562012-03-30 07:10:13 +00004627 /* Are we little or big endian? From Harbison&Steele. */
4628 union
4629 {
4630 long int l;
4631 char c[sizeof (long int)];
4632 } u;
4633 u.l = 1;
4634 return u.c[sizeof (long int) - 1] == 1;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004635
4636 ;
4637 return 0;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004638}
4639_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004640if ac_fn_c_try_run "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004641 ac_cv_c_bigendian=no
4642else
Benny Prijono28d3c562012-03-30 07:10:13 +00004643 ac_cv_c_bigendian=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004644fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4646 conftest.$ac_objext conftest.beam conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004647fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004648
Benny Prijono28d3c562012-03-30 07:10:13 +00004649 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004650fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4652$as_echo "$ac_cv_c_bigendian" >&6; }
4653 case $ac_cv_c_bigendian in #(
4654 yes)
4655 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4656;; #(
4657 no)
4658 ;; #(
4659 universal)
Benny Prijonod5233702010-01-13 13:09:45 +00004660
Benny Prijono28d3c562012-03-30 07:10:13 +00004661$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Benny Prijonod5233702010-01-13 13:09:45 +00004662
Benny Prijono28d3c562012-03-30 07:10:13 +00004663 ;; #(
4664 *)
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004665 as_fn_error $? "unknown endianness
Benny Prijono28d3c562012-03-30 07:10:13 +00004666 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4667 esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004668
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004669
Sauw Minge7dbbc82011-10-24 09:28:13 +00004670if test "x$ac_cv_c_bigendian" = "xyes"; then
4671 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0"
4672else
4673 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1"
4674fi
4675
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004676case $target in
Sauw Ming6d3b4272012-07-03 07:46:49 +00004677 *android*)
4678 $as_echo "#define PJ_ANDROID 1" >>confdefs.h
4679
4680 ;;
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004681 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00004682 $as_echo "#define PJ_WIN32 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004683
Benny Prijono28d3c562012-03-30 07:10:13 +00004684 $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004685
Benny Prijono28d3c562012-03-30 07:10:13 +00004686 $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004687
4688 ;;
4689 *darwin*)
Benny Prijono28d3c562012-03-30 07:10:13 +00004690 $as_echo "#define PJ_DARWINOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004691
4692 ;;
4693 *linux*)
Benny Prijono28d3c562012-03-30 07:10:13 +00004694 $as_echo "#define PJ_LINUX 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004695
4696 ;;
4697 *rtems*)
Benny Prijono28d3c562012-03-30 07:10:13 +00004698 $as_echo "#define PJ_RTEMS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004699
4700 ;;
4701 *sunos* | *solaris* )
Benny Prijono28d3c562012-03-30 07:10:13 +00004702 $as_echo "#define PJ_SUNOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004703
4704 ;;
4705 *)
4706 ;;
4707esac
4708
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004709
4710
4711
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004712# Check whether --enable-floating-point was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00004713if test "${enable_floating_point+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004714 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00004715 $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004716
Benny Prijono28d3c562012-03-30 07:10:13 +00004717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5
4718$as_echo "Checking if floating point is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004719 fi
4720else
4721
Benny Prijono28d3c562012-03-30 07:10:13 +00004722 $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004723
Benny Prijono28d3c562012-03-30 07:10:13 +00004724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5
4725$as_echo "Checking if floating point is disabled... no" >&6; }
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
4727$as_echo_n "checking for fmod in -lm... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004728if ${ac_cv_lib_m_fmod+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004729 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004730else
4731 ac_check_lib_save_LIBS=$LIBS
4732LIBS="-lm $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00004733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004734/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004735
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004736/* Override any GCC internal prototype to avoid an error.
4737 Use char because int might match the return type of a GCC
4738 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004739#ifdef __cplusplus
4740extern "C"
4741#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004742char fmod ();
4743int
4744main ()
4745{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004746return fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004747 ;
4748 return 0;
4749}
4750_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004751if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004752 ac_cv_lib_m_fmod=yes
4753else
Benny Prijono28d3c562012-03-30 07:10:13 +00004754 ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004755fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004756rm -f core conftest.err conftest.$ac_objext \
4757 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004758LIBS=$ac_check_lib_save_LIBS
4759fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
4761$as_echo "$ac_cv_lib_m_fmod" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004762if test "x$ac_cv_lib_m_fmod" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004763 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004764#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004765_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004766
4767 LIBS="-lm $LIBS"
4768
4769fi
4770
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004771
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004772fi
4773
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004774
4775
Benny Prijono28d3c562012-03-30 07:10:13 +00004776ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004777if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004778 $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004779
4780fi
4781
4782
Benny Prijono28d3c562012-03-30 07:10:13 +00004783ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004784if test "x$ac_cv_header_assert_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004785 $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004786
4787fi
4788
4789
Benny Prijono28d3c562012-03-30 07:10:13 +00004790ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004791if test "x$ac_cv_header_ctype_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004792 $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004793
4794fi
4795
4796
4797
4798case $target in
4799 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00004800 $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004801
4802 ;;
4803 *)
Benny Prijono28d3c562012-03-30 07:10:13 +00004804 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004805if test "x$ac_cv_header_errno_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004806 $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004807
4808fi
4809
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004810
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004811 ;;
4812esac
4813
Benny Prijono28d3c562012-03-30 07:10:13 +00004814ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004815if test "x$ac_cv_header_fcntl_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004816 $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h
Benny Prijono1d481ab2008-01-24 15:27:30 +00004817
4818fi
4819
4820
Benny Prijono28d3c562012-03-30 07:10:13 +00004821ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004822if test "x$ac_cv_header_linux_socket_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004823 $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004824
4825fi
4826
4827
Benny Prijono28d3c562012-03-30 07:10:13 +00004828ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004829if test "x$ac_cv_header_limits_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004830 $as_echo "#define PJ_HAS_LIMITS_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004831
4832fi
4833
4834
Benny Prijono28d3c562012-03-30 07:10:13 +00004835ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004836if test "x$ac_cv_header_malloc_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004837 $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004838
4839fi
4840
4841
Benny Prijono28d3c562012-03-30 07:10:13 +00004842ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004843if test "x$ac_cv_header_netdb_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004844 $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h
Benny Prijono37fc9de2008-08-04 14:45:02 +00004845
4846fi
4847
4848
Benny Prijono28d3c562012-03-30 07:10:13 +00004849ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004850if test "x$ac_cv_header_netinet_in_systm_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004851 $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004852
4853fi
4854
4855
Benny Prijono28d3c562012-03-30 07:10:13 +00004856ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004857if test "x$ac_cv_header_netinet_in_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004858 $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h
Benny Prijonoe3e65802011-02-28 07:44:19 +00004859
4860fi
4861
4862
Benny Prijono28d3c562012-03-30 07:10:13 +00004863ac_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 +00004864 # include <sys/types.h>
4865 #endif
4866 #if PJ_HAS_NETINET_IN_SYSTM_H
Benny Prijono37fc9de2008-08-04 14:45:02 +00004867 # include <netinet/in_systm.h>
4868 #endif
Benny Prijonod5233702010-01-13 13:09:45 +00004869 #if PJ_HAS_NETINET_IN_H
4870 # include <netinet/in.h>
4871 #endif
Benny Prijono37fc9de2008-08-04 14:45:02 +00004872
Benny Prijono28d3c562012-03-30 07:10:13 +00004873"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004874if test "x$ac_cv_header_netinet_ip_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004875 $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004876
Benny Prijono36d32492011-12-28 08:42:23 +00004877fi
4878
Sauw Minge7dbbc82011-10-24 09:28:13 +00004879
Benny Prijono28d3c562012-03-30 07:10:13 +00004880ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004881if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004882 $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004883
Benny Prijono36d32492011-12-28 08:42:23 +00004884fi
4885
Benny Prijono36d32492011-12-28 08:42:23 +00004886
Benny Prijono28d3c562012-03-30 07:10:13 +00004887ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004888if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004889 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004890if test "x$ac_cv_func_getifaddrs" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004891 $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004892
4893fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004894
Sauw Minge7dbbc82011-10-24 09:28:13 +00004895fi
4896
Sauw Minge7dbbc82011-10-24 09:28:13 +00004897
Benny Prijono28d3c562012-03-30 07:10:13 +00004898ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004899if test "x$ac_cv_header_semaphore_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004900 $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004901
Benny Prijono36d32492011-12-28 08:42:23 +00004902fi
4903
Benny Prijono36d32492011-12-28 08:42:23 +00004904
Benny Prijono28d3c562012-03-30 07:10:13 +00004905ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004906if test "x$ac_cv_header_setjmp_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004907 $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004908
Benny Prijono36d32492011-12-28 08:42:23 +00004909fi
4910
Benny Prijono36d32492011-12-28 08:42:23 +00004911
Benny Prijono28d3c562012-03-30 07:10:13 +00004912ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004913if test "x$ac_cv_header_stdarg_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004914 $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004915
4916fi
Benny Prijono36d32492011-12-28 08:42:23 +00004917
Benny Prijono36d32492011-12-28 08:42:23 +00004918
Benny Prijono28d3c562012-03-30 07:10:13 +00004919ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004920if test "x$ac_cv_header_stddef_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004921 $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004922
Benny Prijono36d32492011-12-28 08:42:23 +00004923fi
4924
Sauw Minge7dbbc82011-10-24 09:28:13 +00004925
Benny Prijono28d3c562012-03-30 07:10:13 +00004926ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004927if test "x$ac_cv_header_stdio_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004928 $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004929
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004930fi
4931
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004932
Benny Prijono28d3c562012-03-30 07:10:13 +00004933ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004934if test "x$ac_cv_header_stdint_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004935 $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004936
Benny Prijono36d32492011-12-28 08:42:23 +00004937fi
4938
Benny Prijono36d32492011-12-28 08:42:23 +00004939
Benny Prijono28d3c562012-03-30 07:10:13 +00004940ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004941if test "x$ac_cv_header_stdlib_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004942 $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004943
Benny Prijono36d32492011-12-28 08:42:23 +00004944fi
4945
Benny Prijono36d32492011-12-28 08:42:23 +00004946
Benny Prijono28d3c562012-03-30 07:10:13 +00004947ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004948if test "x$ac_cv_header_string_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004949 $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004950
Sauw Minge7dbbc82011-10-24 09:28:13 +00004951fi
4952
Sauw Minge7dbbc82011-10-24 09:28:13 +00004953
Benny Prijono28d3c562012-03-30 07:10:13 +00004954ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004955if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004956 $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004957
Benny Prijono36d32492011-12-28 08:42:23 +00004958fi
4959
Benny Prijono36d32492011-12-28 08:42:23 +00004960
Benny Prijono28d3c562012-03-30 07:10:13 +00004961ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004962if test "x$ac_cv_header_sys_select_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004963 $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004964
Benny Prijono36d32492011-12-28 08:42:23 +00004965fi
4966
Benny Prijono36d32492011-12-28 08:42:23 +00004967
Benny Prijono28d3c562012-03-30 07:10:13 +00004968ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004969if test "x$ac_cv_header_sys_socket_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004970 $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004971
4972fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004973
Sauw Minge7dbbc82011-10-24 09:28:13 +00004974
Benny Prijono28d3c562012-03-30 07:10:13 +00004975ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004976if test "x$ac_cv_header_sys_time_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004977 $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004978
Benny Prijono36d32492011-12-28 08:42:23 +00004979fi
Benny Prijono36d32492011-12-28 08:42:23 +00004980
Benny Prijono36d32492011-12-28 08:42:23 +00004981
Benny Prijono28d3c562012-03-30 07:10:13 +00004982ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004983if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004984 $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004985
Benny Prijono36d32492011-12-28 08:42:23 +00004986fi
4987
Benny Prijono36d32492011-12-28 08:42:23 +00004988
Benny Prijono28d3c562012-03-30 07:10:13 +00004989ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004990if test "x$ac_cv_header_sys_types_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004991 $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004992
Benny Prijono36d32492011-12-28 08:42:23 +00004993fi
Benny Prijono36d32492011-12-28 08:42:23 +00004994
Sauw Minge7dbbc82011-10-24 09:28:13 +00004995
Benny Prijono28d3c562012-03-30 07:10:13 +00004996ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004997if test "x$ac_cv_header_sys_filio_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004998 $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004999
Benny Prijono36d32492011-12-28 08:42:23 +00005000fi
5001
Benny Prijono36d32492011-12-28 08:42:23 +00005002
Benny Prijono28d3c562012-03-30 07:10:13 +00005003ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005004if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005005 $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00005006
Benny Prijono36d32492011-12-28 08:42:23 +00005007fi
5008
Benny Prijono36d32492011-12-28 08:42:23 +00005009
Benny Prijono28d3c562012-03-30 07:10:13 +00005010ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005011if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005012 $as_echo "#define PJ_HAS_SYS_UTSNAME_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00005013
5014fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00005015
Sauw Minge7dbbc82011-10-24 09:28:13 +00005016
Benny Prijono28d3c562012-03-30 07:10:13 +00005017ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005018if test "x$ac_cv_header_time_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005019 $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h
Sauw Mingd8aa67c2011-08-09 04:31:41 +00005020
Benny Prijono36d32492011-12-28 08:42:23 +00005021fi
Benny Prijono36d32492011-12-28 08:42:23 +00005022
Benny Prijono36d32492011-12-28 08:42:23 +00005023
Benny Prijono28d3c562012-03-30 07:10:13 +00005024ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005025if test "x$ac_cv_header_unistd_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005026 $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00005027
Benny Prijono36d32492011-12-28 08:42:23 +00005028fi
5029
Benny Prijono36d32492011-12-28 08:42:23 +00005030
Benny Prijono28d3c562012-03-30 07:10:13 +00005031ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005032if test "x$ac_cv_header_winsock_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005033 $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00005034
Benny Prijono36d32492011-12-28 08:42:23 +00005035fi
Benny Prijono36d32492011-12-28 08:42:23 +00005036
Sauw Ming68c14572011-07-20 03:00:48 +00005037
Benny Prijono28d3c562012-03-30 07:10:13 +00005038ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005039if test "x$ac_cv_header_winsock2_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005040 $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h
Sauw Ming68c14572011-07-20 03:00:48 +00005041
Benny Prijono36d32492011-12-28 08:42:23 +00005042fi
Benny Prijono36d32492011-12-28 08:42:23 +00005043
Benny Prijono36d32492011-12-28 08:42:23 +00005044
Benny Prijono28d3c562012-03-30 07:10:13 +00005045ac_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 +00005046 # include <winsock2.h>
5047 #elif PJ_HAS_WINSOCK_H
5048 # include <winsock.h>
5049 #endif
5050
Benny Prijono28d3c562012-03-30 07:10:13 +00005051"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005052if test "x$ac_cv_header_mswsock_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005053 $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h
Benny Prijonoa9948e62008-03-25 14:03:01 +00005054
5055fi
5056
5057
Benny Prijono28d3c562012-03-30 07:10:13 +00005058ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005059if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005060 $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h
Benny Prijonoe2746132008-09-27 13:16:35 +00005061
5062fi
5063
5064
Benny Prijono28d3c562012-03-30 07:10:13 +00005065ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005066if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00005067 ac_has_uuid_h=1
5068fi
5069
5070
Benny Prijono28d3c562012-03-30 07:10:13 +00005071ac_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 +00005072 # include <sys/types.h>
5073 #endif
5074 #if PJ_HAS_SYS_SOCKET_H
5075
Benny Prijono188ba7e2008-03-25 13:53:16 +00005076 # include <sys/socket.h>
5077 #endif
5078
Benny Prijono28d3c562012-03-30 07:10:13 +00005079"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005080if test "x$ac_cv_header_net_if_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005081 $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h
Benny Prijono188ba7e2008-03-25 13:53:16 +00005082
5083fi
5084
Benny Prijono188ba7e2008-03-25 13:53:16 +00005085
Benny Prijono28d3c562012-03-30 07:10:13 +00005086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5
5087$as_echo "Setting PJ_OS_NAME to $target" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005088cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005089#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005090_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005091
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005092
Benny Prijono28d3c562012-03-30 07:10:13 +00005093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
5094$as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
5095$as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005096
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005097
Benny Prijono28d3c562012-03-30 07:10:13 +00005098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
5099$as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
5100$as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005101
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005102
Benny Prijono28d3c562012-03-30 07:10:13 +00005103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5
5104$as_echo "Setting PJ_HAS_MALLOC to 1" >&6; }
5105$as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005106
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005107
Benny Prijono28d3c562012-03-30 07:10:13 +00005108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
5109$as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
5110$as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005111
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005112
Benny Prijono28d3c562012-03-30 07:10:13 +00005113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
5114$as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
5115$as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005116
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005117
Benny Prijono28d3c562012-03-30 07:10:13 +00005118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5
5119$as_echo_n "checking if inet_aton() is available... " >&6; }
5120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005121/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005122#include <sys/types.h>
5123 #include <sys/socket.h>
5124 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005125int
5126main ()
5127{
5128inet_aton(0, 0);
5129 ;
5130 return 0;
5131}
5132_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005133if ac_fn_c_try_compile "$LINENO"; then :
5134 $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005135
Benny Prijono28d3c562012-03-30 07:10:13 +00005136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5137$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005138else
Benny Prijono28d3c562012-03-30 07:10:13 +00005139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005141fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5143
Benny Prijono28d3c562012-03-30 07:10:13 +00005144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5
5145$as_echo_n "checking if inet_pton() is available... " >&6; }
5146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005147/* end confdefs.h. */
5148#include <sys/types.h>
5149 #include <sys/socket.h>
5150 #include <arpa/inet.h>
5151int
5152main ()
5153{
5154inet_pton(0, 0, 0);
5155 ;
5156 return 0;
5157}
5158_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005159if ac_fn_c_try_compile "$LINENO"; then :
5160 $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005161
Benny Prijono28d3c562012-03-30 07:10:13 +00005162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5163$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005164else
Benny Prijono28d3c562012-03-30 07:10:13 +00005165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005167fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5169
Benny Prijono28d3c562012-03-30 07:10:13 +00005170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5
5171$as_echo_n "checking if inet_ntop() is available... " >&6; }
5172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005173/* end confdefs.h. */
5174#include <sys/types.h>
5175 #include <sys/socket.h>
5176 #include <arpa/inet.h>
5177int
5178main ()
5179{
5180inet_ntop(0, 0, 0, 0);
5181 ;
5182 return 0;
5183}
5184_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005185if ac_fn_c_try_compile "$LINENO"; then :
5186 $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005187
Benny Prijono28d3c562012-03-30 07:10:13 +00005188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5189$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005190else
Benny Prijono28d3c562012-03-30 07:10:13 +00005191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005193fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5195
Benny Prijono28d3c562012-03-30 07:10:13 +00005196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5
5197$as_echo_n "checking if getaddrinfo() is available... " >&6; }
5198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005199/* end confdefs.h. */
5200#include <sys/types.h>
5201 #include <sys/socket.h>
5202 #include <netdb.h>
5203int
5204main ()
5205{
5206getaddrinfo(0, 0, 0, 0);
5207 ;
5208 return 0;
5209}
5210_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005211if ac_fn_c_try_compile "$LINENO"; then :
5212 $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005213
Benny Prijono28d3c562012-03-30 07:10:13 +00005214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5215$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005216else
Benny Prijono28d3c562012-03-30 07:10:13 +00005217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005219fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221
Benny Prijono28d3c562012-03-30 07:10:13 +00005222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5
5223$as_echo_n "checking if sockaddr_in has sin_len member... " >&6; }
5224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005225/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005226#include <sys/types.h>
5227 #include <sys/socket.h>
5228 #include <netinet/in.h>
5229 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005230int
5231main ()
5232{
5233struct sockaddr_in a; a.sin_len=0;
5234 ;
5235 return 0;
5236}
5237_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005238if ac_fn_c_try_compile "$LINENO"; then :
5239 $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005240
Benny Prijono28d3c562012-03-30 07:10:13 +00005241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5242$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005243else
Benny Prijono28d3c562012-03-30 07:10:13 +00005244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005246fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5248
Benny Prijono28d3c562012-03-30 07:10:13 +00005249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5
5250$as_echo_n "checking if socklen_t is available... " >&6; }
5251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005252/* end confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +00005253#include <sys/types.h>
5254 #include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00005255int
5256main ()
5257{
5258socklen_t xxx = 0;
5259 ;
5260 return 0;
5261}
5262_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005263if ac_fn_c_try_compile "$LINENO"; then :
5264 $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h
Benny Prijono30f85c62006-09-09 20:05:33 +00005265
Benny Prijono28d3c562012-03-30 07:10:13 +00005266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5267$as_echo "yes" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005268else
Benny Prijono28d3c562012-03-30 07:10:13 +00005269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270$as_echo "no" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005271fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273
Benny Prijono28d3c562012-03-30 07:10:13 +00005274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5
5275$as_echo_n "checking if SO_ERROR is available... " >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005276case $target in
5277 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00005278 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005279
Benny Prijono28d3c562012-03-30 07:10:13 +00005280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5281$as_echo "yes" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005282 ;;
5283 *)
Benny Prijono28d3c562012-03-30 07:10:13 +00005284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005285/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005286#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005287 #include <sys/socket.h>
5288 #include <netinet/in.h>
5289 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005290int
5291main ()
5292{
5293int i=SO_ERROR;
5294 ;
5295 return 0;
5296}
5297_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005298if ac_fn_c_try_compile "$LINENO"; then :
5299 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005300
Benny Prijono28d3c562012-03-30 07:10:13 +00005301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5302$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005303else
Benny Prijono28d3c562012-03-30 07:10:13 +00005304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005306fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005308 ;;
5309esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005310
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005311
Benny Prijono28d3c562012-03-30 07:10:13 +00005312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5
5313$as_echo_n "checking if pthread_rwlock_t is available... " >&6; }
5314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005315/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005316#include <pthread.h>
5317int
5318main ()
5319{
5320pthread_rwlock_t *x;
5321 ;
5322 return 0;
5323}
5324_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005325if ac_fn_c_try_compile "$LINENO"; then :
5326 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005327
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005328 ac_rwmutex="yes"
Benny Prijono28d3c562012-03-30 07:10:13 +00005329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5330$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005331else
Benny Prijono28d3c562012-03-30 07:10:13 +00005332 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005333
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005334 ac_rwmutex="no"
Benny Prijono28d3c562012-03-30 07:10:13 +00005335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005337fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005339
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005340if test "$ac_rwmutex" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00005341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
5342$as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; }
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005344/* end confdefs.h. */
5345#define _POSIX_READER_WRITER_LOCKS
5346 #include <pthread.h>
5347int
5348main ()
5349{
5350pthread_rwlock_t *x;
5351 ;
5352 return 0;
5353}
5354_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005355if ac_fn_c_try_compile "$LINENO"; then :
5356 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005357
5358 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Benny Prijono28d3c562012-03-30 07:10:13 +00005359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5360$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005361else
Benny Prijono28d3c562012-03-30 07:10:13 +00005362 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005363
Benny Prijono28d3c562012-03-30 07:10:13 +00005364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005366fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5368fi
5369
Benny Prijono28d3c562012-03-30 07:10:13 +00005370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5
5371$as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; }
5372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005373/* end confdefs.h. */
5374#include <pthread.h>
5375int
5376main ()
5377{
5378pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
5379 ;
5380 return 0;
5381}
5382_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005383if ac_fn_c_try_compile "$LINENO"; then :
5384 $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005385
Benny Prijono28d3c562012-03-30 07:10:13 +00005386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5387$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005388else
Benny Prijono28d3c562012-03-30 07:10:13 +00005389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005391fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5393
Benny Prijono28d3c562012-03-30 07:10:13 +00005394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5
5395$as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; }
5396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005397/* end confdefs.h. */
5398#include <pthread.h>
5399int
5400main ()
5401{
5402pthread_mutexattr_t attr;
5403 attr.recursive=1;
5404 ;
5405 return 0;
5406}
5407_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005408if ac_fn_c_try_compile "$LINENO"; then :
5409 $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005410
Benny Prijono28d3c562012-03-30 07:10:13 +00005411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5412$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005413else
Benny Prijono28d3c562012-03-30 07:10:13 +00005414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005416fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005418
Benny Prijono99eec382008-09-18 21:22:16 +00005419
Benny Prijono28d3c562012-03-30 07:10:13 +00005420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5
5421$as_echo_n "checking ioqueue backend... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005422# Check whether --enable-epoll was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005423if test "${enable_epoll+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005424 enableval=$enable_epoll;
Benny Prijono99eec382008-09-18 21:22:16 +00005425 ac_os_objs=ioqueue_epoll.o
Benny Prijono28d3c562012-03-30 07:10:13 +00005426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5
5427$as_echo "/dev/epoll" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005428
5429else
5430
5431 ac_os_objs=ioqueue_select.o
Benny Prijono28d3c562012-03-30 07:10:13 +00005432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5
5433$as_echo "select()" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005434
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005435fi
5436
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005437
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005438
5439case $target in
5440 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono99eec382008-09-18 21:22:16 +00005441 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 +00005442 ;;
5443 *)
Benny Prijono99eec382008-09-18 21:22:16 +00005444 ac_os_objs="$ac_os_objs file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o"
Sauw Ming6a970a32011-03-01 05:25:27 +00005445 case $target in
5446 arm-apple-darwin*)
Sauw Mingfe42f0c2011-03-01 10:42:11 +00005447 ac_os_objs="$ac_os_objs os_info_iphone.o"
Sauw Ming6a970a32011-03-01 05:25:27 +00005448 ;;
5449 esac
Benny Prijono4e48b512007-05-16 13:41:00 +00005450 # UUID
5451 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
5452 ac_os_objs="$ac_os_objs guid_uuid.o"
5453 else
5454 ac_os_objs="$ac_os_objs guid_simple.o"
5455 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005456 ;;
5457esac
5458
Sauw Ming68c14572011-07-20 03:00:48 +00005459case $target in
5460 *darwin*)
5461 ac_os_objs="$ac_os_objs os_core_darwin.o"
5462 ;;
5463esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005464
5465
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005466ac_external_speex=0
5467
5468
5469# Check whether --with-external-speex was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005470if test "${with_external_speex+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005471 withval=$with_external_speex;
5472 if test "x$with_external_speex" != "xno"; then
5473 # Test Speex installation
Benny Prijono28d3c562012-03-30 07:10:13 +00005474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5
5475$as_echo_n "checking if external Speex 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 <speex/speex.h>
5479 #include <speex/speex_echo.h>
5480
5481int
5482main ()
5483{
5484speex_echo_state_init(0, 0); speex_encoder_init(0);
5485 ;
5486 return 0;
5487}
5488_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005489if ac_fn_c_try_compile "$LINENO"; then :
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5491$as_echo "yes!!" >&6; }
5492 $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005493
5494 ac_external_speex="1"
5495
5496else
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005497 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 +00005498fi
5499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 fi
5501
5502
5503fi
5504
5505
5506ac_external_gsm=0
5507
5508
5509# Check whether --with-external-gsm was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005510if test "${with_external_gsm+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005511 withval=$with_external_gsm;
5512 if test "x$with_external_gsm" != "xno"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005513 # Test GSM library installation
Benny Prijono28d3c562012-03-30 07:10:13 +00005514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5
5515$as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; }
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005517/* end confdefs.h. */
5518#include <gsm/gsm.h>
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005519int
5520main ()
5521{
5522gsm_create();
5523 ;
5524 return 0;
5525}
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005526_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005527if ac_fn_c_try_compile "$LINENO"; then :
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5529$as_echo "yes!!" >&6; }
5530 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005531
Benny Prijono28d3c562012-03-30 07:10:13 +00005532 $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005533
5534 ac_external_gsm="1"
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005535
5536else
Benny Prijono46bd0842010-02-12 14:12:41 +00005537
Benny Prijono28d3c562012-03-30 07:10:13 +00005538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539$as_echo "no" >&6; }
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5
5541$as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; }
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod4306432010-05-01 22:05:41 +00005543/* end confdefs.h. */
5544#include <gsm.h>
5545int
5546main ()
5547{
5548gsm_create();
5549 ;
5550 return 0;
5551}
5552_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005553if ac_fn_c_try_compile "$LINENO"; then :
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5555$as_echo "yes!!" >&6; }
5556 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005557
Benny Prijono28d3c562012-03-30 07:10:13 +00005558 $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005559
5560 ac_external_gsm="1"
5561
5562else
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005563 as_fn_error $? "Unable to use external GSM library. If GSM development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5
Benny Prijonod4306432010-05-01 22:05:41 +00005564
5565
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005566fi
Benny Prijonod4306432010-05-01 22:05:41 +00005567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono46bd0842010-02-12 14:12:41 +00005568
Benny Prijonod4306432010-05-01 22:05:41 +00005569
5570fi
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 fi
5573
5574
5575fi
5576
5577
5578
5579
Benny Prijono4e48b512007-05-16 13:41:00 +00005580
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005581# Check whether --enable-sound was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005582if test "${enable_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005583 enableval=$enable_sound; if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +00005584 ac_pjmedia_snd=null
Benny Prijono28d3c562012-03-30 07:10:13 +00005585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5
5586$as_echo "Checking if sound is disabled... yes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00005587 fi
5588
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005589fi
5590
Benny Prijono1d971622006-09-10 22:27:40 +00005591
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005592ac_external_pa=0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005593
Benny Prijono27c98722007-04-09 21:28:15 +00005594
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005595# Check whether --with-external-pa was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005596if test "${with_external_pa+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005597 withval=$with_external_pa;
5598 if test "x$with_external_pa" != "xno"; then
5599 # Test PortAudio installation
Benny Prijono28d3c562012-03-30 07:10:13 +00005600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5
5601$as_echo_n "checking if external PortAudio devkit is installed... " >&6; }
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005603/* end confdefs.h. */
5604#include <portaudio.h>
5605
5606int
5607main ()
5608{
5609Pa_Initialize();
5610 ;
5611 return 0;
5612}
5613_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005614if ac_fn_c_try_compile "$LINENO"; then :
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5616$as_echo "yes!!" >&6; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005617 ac_external_pa="1"
5618
5619else
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005620 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 +00005621fi
5622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonofe0c1272010-01-13 16:28:15 +00005623 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005624
Benny Prijono27c98722007-04-09 21:28:15 +00005625
5626fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005627
5628
5629
Benny Prijono28d3c562012-03-30 07:10:13 +00005630ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005631if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005632 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
5633fi
5634
5635
Benny Prijono28d3c562012-03-30 07:10:13 +00005636ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005637if test "x$ac_cv_header_linux_soundcard_h" = xyes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005638 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
5639fi
5640
5641
Benny Prijono28d3c562012-03-30 07:10:13 +00005642ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005643if test "x$ac_cv_header_machine_soundcard_h" = xyes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005644 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
5645fi
5646
5647
5648
Benny Prijono3e091672008-01-09 15:43:02 +00005649if test "x$ac_cv_c_bigendian" = "xyes"; then
5650 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
5651else
5652 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
5653fi
5654
Benny Prijono1d971622006-09-10 22:27:40 +00005655if test "$enable_sound" = "no"; then
5656 true;
5657else
5658 case $target in
Sauw Ming6d3b4272012-07-03 07:46:49 +00005659 *android*)
5660 LIBS="$LIBS -lOpenSLES"
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... OpenSL ES" >&5
5662$as_echo "Checking sound device backend... OpenSL ES" >&6; }
5663 ;;
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005664 arm-apple-darwin*)
Sauw Ming6a970a32011-03-01 05:25:27 +00005665 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit"
Benny Prijono28d3c562012-03-30 07:10:13 +00005666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5
5667$as_echo "Checking sound device backend... AudioUnit" >&6; }
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005668 ;;
Benny Prijonob466e232006-09-10 08:53:59 +00005669 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00005670 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
5671 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +00005672 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +00005673 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
5674 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono28d3c562012-03-30 07:10:13 +00005675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5
5676$as_echo "Checking sound device backend... old coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005677 else
5678 ac_pjmedia_snd=pa_darwinos
Benny Prijono28d3c562012-03-30 07:10:13 +00005679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5
5680$as_echo "Checking sound device backend... coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005681 fi
Benny Prijonob466e232006-09-10 08:53:59 +00005682 ;;
5683 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005684 ac_pjmedia_snd=pa_win32
Benny Prijono28d3c562012-03-30 07:10:13 +00005685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5
5686$as_echo "Checking sound device backend... win32 sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005687 ;;
5688 *rtems*)
5689 ac_pjmedia_snd=null
Benny Prijono28d3c562012-03-30 07:10:13 +00005690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5
5691$as_echo "Checking sound device backend... null sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005692 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005693 *)
Benny Prijono0b462322008-03-12 22:44:24 +00005694 ac_pjmedia_snd=pa_unix
Benny Prijono28d3c562012-03-30 07:10:13 +00005695 ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005696if test "x$ac_cv_header_alsa_version_h" = xyes; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005697 ac_pa_use_alsa=1
5698
5699 LIBS="$LIBS -lasound"
5700
5701else
5702 ac_pa_use_alsa=0
5703
5704fi
5705
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005706
Benny Prijono28d3c562012-03-30 07:10:13 +00005707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5
5708$as_echo "Checking sound device backend... unix" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005709
5710 ac_pa_use_oss=1
5711
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005712 # Check whether --enable-oss was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005713if test "${enable_oss+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005714 enableval=$enable_oss;
Benny Prijono0b462322008-03-12 22:44:24 +00005715 if test "$enable_oss" = "no"; then
5716 ac_pa_use_oss=0
Benny Prijono28d3c562012-03-30 07:10:13 +00005717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5
5718$as_echo "Checking if OSS audio is disabled... yes" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005719 fi
5720
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005721fi
5722
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005723 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00005724 esac
5725fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005726
Sauw Ming6e6c2152010-12-14 13:03:10 +00005727
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00005728
5729# Check whether --enable-video was given.
5730if test "${enable_video+set}" = set; then :
5731 enableval=$enable_video; if test "$enable_video" = "no"; then
5732 #AC_DEFINE(PJMEDIA_HAS_VIDEO,0)
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Video is disabled" >&5
5734$as_echo "Video is disabled" >&6; }
5735 enable_sdl="no"
5736 enable_ffmpeg="no"
5737 enable_v4l2="no"
5738 fi
5739fi
5740
5741
5742case $target in
Sauw Ming6d3b4272012-07-03 07:46:49 +00005743 *android*)
5744 LIBS="$LIBS -llog -lgcc"
5745 ;;
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00005746 arm-apple-darwin*)
5747 LIBS="$LIBS -framework UIKit"
5748 ;;
5749 *darwin*)
5750 LIBS="$LIBS -framework Foundation -framework AppKit"
5751 ;;
5752esac
5753
Sauw Ming6e6c2152010-12-14 13:03:10 +00005754if test "$enable_video" = "no"; then
5755 true;
5756else
5757 case $target in
5758 arm-apple-darwin*)
5759 ac_pjmedia_video=iphone_os
5760
Sauw Ming24c39a32011-08-16 05:44:46 +00005761
5762 SAVED_LIBS="$LIBS"
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00005763 LIBS="-framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
Benny Prijono28d3c562012-03-30 07:10:13 +00005764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Ming24c39a32011-08-16 05:44:46 +00005765/* end confdefs.h. */
5766
5767int
5768main ()
5769{
5770
5771 ;
5772 return 0;
5773}
5774_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005775if ac_fn_c_try_link "$LINENO"; then :
Sauw Ming24c39a32011-08-16 05:44:46 +00005776 ac_pjmedia_video_has_ios=yes
5777else
Benny Prijono28d3c562012-03-30 07:10:13 +00005778 ac_pjmedia_video_has_ios=no
Sauw Ming24c39a32011-08-16 05:44:46 +00005779fi
Benny Prijono28d3c562012-03-30 07:10:13 +00005780rm -f core conftest.err conftest.$ac_objext \
5781 conftest$ac_exeext conftest.$ac_ext
Sauw Ming24c39a32011-08-16 05:44:46 +00005782 LIBS="$SAVED_LIBS"
5783 if test "$ac_pjmedia_video_has_ios" = "yes"; then
5784 ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1"
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00005785 LIBS="$LIBS -framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
Benny Prijono28d3c562012-03-30 07:10:13 +00005786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... yes" >&5
5787$as_echo "Checking if AVFoundation framework is available... yes" >&6; }
Sauw Ming24c39a32011-08-16 05:44:46 +00005788 else
Benny Prijono28d3c562012-03-30 07:10:13 +00005789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... no" >&5
5790$as_echo "Checking if AVFoundation framework is available... no" >&6; }
Sauw Ming24c39a32011-08-16 05:44:46 +00005791 fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00005792 ;;
5793 *darwin*)
5794 ac_pjmedia_video=mac_os
5795
5796
5797 SAVED_LIBS="$LIBS"
5798 LIBS="-framework QTKit"
Benny Prijono28d3c562012-03-30 07:10:13 +00005799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Ming6e6c2152010-12-14 13:03:10 +00005800/* end confdefs.h. */
5801
5802int
5803main ()
5804{
5805
5806 ;
5807 return 0;
5808}
5809_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005810if ac_fn_c_try_link "$LINENO"; then :
Sauw Ming6e6c2152010-12-14 13:03:10 +00005811 ac_pjmedia_video_has_qt=yes
5812else
Benny Prijono28d3c562012-03-30 07:10:13 +00005813 ac_pjmedia_video_has_qt=no
Sauw Ming6e6c2152010-12-14 13:03:10 +00005814fi
Benny Prijono28d3c562012-03-30 07:10:13 +00005815rm -f core conftest.err conftest.$ac_objext \
5816 conftest$ac_exeext conftest.$ac_ext
Sauw Ming6e6c2152010-12-14 13:03:10 +00005817 LIBS="$SAVED_LIBS"
5818 if test "$ac_pjmedia_video_has_qt" = "yes"; then
5819 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1"
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00005820 LIBS="$LIBS -framework QTKit -framework QuartzCore -framework OpenGL"
Benny Prijono28d3c562012-03-30 07:10:13 +00005821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... yes" >&5
5822$as_echo "Checking if QTKit framework is available... yes" >&6; }
Sauw Ming6e6c2152010-12-14 13:03:10 +00005823 else
Benny Prijono28d3c562012-03-30 07:10:13 +00005824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... no" >&5
5825$as_echo "Checking if QTKit framework is available... no" >&6; }
Sauw Ming6e6c2152010-12-14 13:03:10 +00005826 fi
5827 ;;
5828 esac
5829fi
5830
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005831# Check whether --enable-ext_sound was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005832if test "${enable_ext_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005833 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
Benny Prijonoebb2c332008-07-28 23:40:58 +00005834 ac_pjmedia_snd=external
Benny Prijono28d3c562012-03-30 07:10:13 +00005835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5
5836$as_echo "Checking if external sound is set... yes" >&6; }
Benny Prijonoebb2c332008-07-28 23:40:58 +00005837 fi
5838
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005839fi
Benny Prijonoebb2c332008-07-28 23:40:58 +00005840
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005841
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005842
5843# Check whether --enable-small-filter was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005844if test "${enable_small_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005845 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005846 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono28d3c562012-03-30 07:10:13 +00005847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5
5848$as_echo "Checking if small filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005849 fi
5850else
Benny Prijono28d3c562012-03-30 07:10:13 +00005851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5
5852$as_echo "Checking if small filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005853fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005854
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005855
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005856
5857# Check whether --enable-large-filter was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005858if test "${enable_large_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005859 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005860 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono28d3c562012-03-30 07:10:13 +00005861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5
5862$as_echo "Checking if large filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005863 fi
5864else
Benny Prijono28d3c562012-03-30 07:10:13 +00005865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5
5866$as_echo "Checking if large filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005867fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005868
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005869
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005870
5871# Check whether --enable-speex-aec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005872if test "${enable_speex_aec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005873 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005874 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono28d3c562012-03-30 07:10:13 +00005875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5
5876$as_echo "Checking if Speex AEC is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005877 fi
5878else
Benny Prijono28d3c562012-03-30 07:10:13 +00005879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5
5880$as_echo "Checking if Speex AEC is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005881fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005882
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005883
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005884
5885# Check whether --enable-g711-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005886if test "${enable_g711_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005887 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005888 ac_no_g711_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005889 $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005890
Benny Prijono28d3c562012-03-30 07:10:13 +00005891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5
5892$as_echo "Checking if G.711 codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005893 fi
5894else
Benny Prijono28d3c562012-03-30 07:10:13 +00005895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5
5896$as_echo "Checking if G.711 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005897fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005898
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005899
5900
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005901
5902# Check whether --enable-l16-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005903if test "${enable_l16_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005904 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005905 ac_no_l16_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005906 $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005907
Benny Prijono28d3c562012-03-30 07:10:13 +00005908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5
5909$as_echo "Checking if L16 codecs are disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005910 fi
5911else
Benny Prijono28d3c562012-03-30 07:10:13 +00005912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5
5913$as_echo "Checking if L16 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005914fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005915
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005916
5917
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005918
5919# Check whether --enable-gsm-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005920if test "${enable_gsm_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005921 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005922 ac_no_gsm_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005923 $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005924
Benny Prijono28d3c562012-03-30 07:10:13 +00005925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5
5926$as_echo "Checking if GSM codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005927 fi
5928else
Benny Prijono28d3c562012-03-30 07:10:13 +00005929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5
5930$as_echo "Checking if GSM codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005931fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005932
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005933
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005934
5935# Check whether --enable-g722-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005936if test "${enable_g722_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005937 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
Benny Prijono71f657d2008-03-17 14:24:21 +00005938 ac_no_g722_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005939 $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h
Benny Prijono71f657d2008-03-17 14:24:21 +00005940
Benny Prijono28d3c562012-03-30 07:10:13 +00005941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5
5942$as_echo "Checking if G.722 codec is disabled...yes" >&6; }
Benny Prijono71f657d2008-03-17 14:24:21 +00005943 fi
5944else
Benny Prijono28d3c562012-03-30 07:10:13 +00005945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5
5946$as_echo "Checking if G.722 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005947fi
Benny Prijono71f657d2008-03-17 14:24:21 +00005948
5949
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005950
5951# Check whether --enable-g7221-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005952if test "${enable_g7221_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005953 enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
5954 ac_no_g7221_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005955 $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005956
Benny Prijono28d3c562012-03-30 07:10:13 +00005957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5
5958$as_echo "Checking if G.722.1 codec is disabled...yes" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005959 fi
5960else
Benny Prijono28d3c562012-03-30 07:10:13 +00005961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5
5962$as_echo "Checking if G.722.1 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005963fi
5964
5965
5966
5967# Check whether --enable-speex-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005968if test "${enable_speex_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005969 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005970 ac_no_speex_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005971 $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005972
Benny Prijono28d3c562012-03-30 07:10:13 +00005973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5
5974$as_echo "Checking if Speex codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005975 fi
5976else
Benny Prijono28d3c562012-03-30 07:10:13 +00005977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5
5978$as_echo "Checking if Speex codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005979fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005980
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005981
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005982
5983# Check whether --enable-ilbc-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005984if test "${enable_ilbc_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005985 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005986 ac_no_ilbc_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005987 $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005988
Benny Prijono28d3c562012-03-30 07:10:13 +00005989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5
5990$as_echo "Checking if iLBC codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005991 fi
5992else
Benny Prijono28d3c562012-03-30 07:10:13 +00005993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5
5994$as_echo "Checking if iLBC codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005995fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005996
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005997
5998# Check whether --enable-libsamplerate was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005999if test "${enable_libsamplerate+set}" = set; then :
6000 enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5
6001$as_echo_n "checking for src_new in -lsamplerate... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006002if ${ac_cv_lib_samplerate_src_new+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00006003 $as_echo_n "(cached) " >&6
Benny Prijono550a1a62007-10-16 08:54:00 +00006004else
6005 ac_check_lib_save_LIBS=$LIBS
6006LIBS="-lsamplerate $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00006008/* end confdefs.h. */
6009
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006010/* Override any GCC internal prototype to avoid an error.
6011 Use char because int might match the return type of a GCC
6012 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +00006013#ifdef __cplusplus
6014extern "C"
6015#endif
Benny Prijono550a1a62007-10-16 08:54:00 +00006016char src_new ();
6017int
6018main ()
6019{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006020return src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +00006021 ;
6022 return 0;
6023}
6024_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006025if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00006026 ac_cv_lib_samplerate_src_new=yes
6027else
Benny Prijono28d3c562012-03-30 07:10:13 +00006028 ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +00006029fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006030rm -f core conftest.err conftest.$ac_objext \
6031 conftest$ac_exeext conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00006032LIBS=$ac_check_lib_save_LIBS
6033fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5
6035$as_echo "$ac_cv_lib_samplerate_src_new" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006036if test "x$ac_cv_lib_samplerate_src_new" = xyes; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00006037 cat >>confdefs.h <<_ACEOF
6038#define HAVE_LIBSAMPLERATE 1
6039_ACEOF
6040
6041 LIBS="-lsamplerate $LIBS"
6042
6043fi
6044
6045else
Benny Prijono28d3c562012-03-30 07:10:13 +00006046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5
6047$as_echo "Skipping libsamplerate detection" >&6; }
6048
6049fi
6050
6051
6052
6053# Check whether --enable-resample_dll was given.
6054if test "${enable_resample_dll+set}" = set; then :
6055 enableval=$enable_resample_dll; if test "$enable_resample_dll" = "yes"; then
6056 ac_resample_dll=1
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... yes" >&5
6058$as_echo "Building libresample as shared library... yes" >&6; }
6059 fi
6060else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... no" >&5
6062$as_echo "Building libresample as shared library... no" >&6; }
Benny Prijono5b0af632011-07-20 03:16:25 +00006063
6064fi
6065
6066
6067
6068# Check whether --with-sdl was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006069if test "${with_sdl+set}" = set; then :
Benny Prijono5b0af632011-07-20 03:16:25 +00006070 withval=$with_sdl;
6071else
6072 with_sdl=no
Benny Prijono550a1a62007-10-16 08:54:00 +00006073
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006074fi
Benny Prijono0822c192008-08-21 20:59:58 +00006075
6076
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006077if test "x$ac_cross_compile" != "x" -a "x$with_sdl" = "xno"; then
6078 enable_sdl=no
6079fi
6080
Benny Prijonoc45d9512010-12-10 11:04:30 +00006081# Check whether --enable-sdl was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006082if test "${enable_sdl+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006083 enableval=$enable_sdl;
6084 if test "$enable_sdl" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SDL is disabled... yes" >&5
6086$as_echo "Checking if SDL is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006087 fi
6088
6089else
6090
Benny Prijono5b0af632011-07-20 03:16:25 +00006091 SDL_CONFIG="sdl-config"
6092 if test "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then
6093 SDL_CONFIG=$with_sdl/bin/sdl-config
Benny Prijono28d3c562012-03-30 07:10:13 +00006094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SDL prefix... $with_sdl" >&5
6095$as_echo "Using SDL prefix... $with_sdl" >&6; }
Benny Prijono5b0af632011-07-20 03:16:25 +00006096 fi
6097
Benny Prijono28d3c562012-03-30 07:10:13 +00006098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL availability.." >&5
6099$as_echo_n "checking SDL availability..... " >&6; }
Sauw Ming1d8ceb12011-08-24 05:54:25 +00006100 if (sh -c "$SDL_CONFIG --version" | grep 1.3) then
Benny Prijonoc45d9512010-12-10 11:04:30 +00006101
6102
Benny Prijono5b0af632011-07-20 03:16:25 +00006103 ac_sdl_cflags=`$SDL_CONFIG --cflags`
Benny Prijonoc45d9512010-12-10 11:04:30 +00006104 ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags"
Benny Prijono5b0af632011-07-20 03:16:25 +00006105 ac_sdl_ldflags=`$SDL_CONFIG --libs`
Benny Prijono69b1f822010-12-10 11:33:01 +00006106 LIBS="$LIBS $ac_sdl_ldflags"
Sauw Ming1d8ceb12011-08-24 05:54:25 +00006107 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported SDL version" >&5
6109$as_echo "Unsupported SDL version" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006110 fi
Benny Prijono550a1a62007-10-16 08:54:00 +00006111
Benny Prijono0822c192008-08-21 20:59:58 +00006112fi
6113
6114
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006115
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006116
6117# Check whether --with-ffmpeg was given.
6118if test "${with_ffmpeg+set}" = set; then :
6119 withval=$with_ffmpeg;
6120else
6121 with_ffmpeg=no
6122
6123fi
6124
6125
6126if test "x$ac_cross_compile" != "x" -a "x$with_ffmpeg" = "xno"; then
6127 enable_ffmpeg=no
6128fi
6129
Benny Prijonoc45d9512010-12-10 11:04:30 +00006130# Check whether --enable-ffmpeg was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006131if test "${enable_ffmpeg+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006132 enableval=$enable_ffmpeg;
6133 ac_has_ffmpeg=0
6134
6135 if test "$enable_ffmpeg" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if ffmpeg is disabled... yes" >&5
6137$as_echo "Checking if ffmpeg is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006138 fi
6139
6140else
6141
6142
6143
6144
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006145 FFMPEG_PREFIX=""
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006146
6147 SAVED_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006148 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then
6149 FFMPEG_PREFIX=$with_ffmpeg
Benny Prijono28d3c562012-03-30 07:10:13 +00006150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5
6151$as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; }
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00006152 export PKG_CONFIG_PATH=$FFMPEG_PREFIX/lib/pkgconfig
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006153 fi
6154
6155 for ac_prog in pkg-config "python pkgconfig.py"
6156do
6157 # Extract the first word of "$ac_prog", so it can be a program name with args.
6158set dummy $ac_prog; ac_word=$2
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006161if ${ac_cv_prog_PKG_CONFIG+:} false; then :
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006162 $as_echo_n "(cached) " >&6
6163else
6164 if test -n "$PKG_CONFIG"; then
6165 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6166else
6167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168for as_dir in $PATH
6169do
6170 IFS=$as_save_IFS
6171 test -z "$as_dir" && as_dir=.
6172 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006174 ac_cv_prog_PKG_CONFIG="$ac_prog"
6175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 break 2
6177 fi
6178done
6179 done
6180IFS=$as_save_IFS
6181
6182fi
6183fi
6184PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6185if test -n "$PKG_CONFIG"; then
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6187$as_echo "$PKG_CONFIG" >&6; }
6188else
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6190$as_echo "no" >&6; }
6191fi
6192
6193
6194 test -n "$PKG_CONFIG" && break
6195done
6196test -n "$PKG_CONFIG" || PKG_CONFIG="none"
6197
6198
6199 if test "$PKG_CONFIG" != "none"; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ffmpeg packages" >&5
6201$as_echo_n "checking ffmpeg packages... " >&6; }
6202 av_pkg=""
6203 if $PKG_CONFIG --exists libdevice; then
6204 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
6205 av_pkg="$av_pkg libdevice"
6206 fi
6207 if $PKG_CONFIG --exists libavformat; then
6208 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
6209 av_pkg="$av_pkg libavformat"
6210 fi
6211 if $PKG_CONFIG --exists libavcodec; then
6212 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
6213 av_pkg="$av_pkg libavcodec"
6214 fi
6215 if $PKG_CONFIG --exists libswscale; then
6216 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
6217 av_pkg="$av_pkg libswscale"
6218 fi
6219 if $PKG_CONFIG --exists libavutil; then
6220 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
6221 av_pkg="$av_pkg libavutil"
6222 fi
6223 if $PKG_CONFIG --exists libavcore; then
6224 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
6225 av_pkg="$av_pkg libavcore"
6226 fi
6227
6228 if test "x$av_pkg" == "x"; then
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none detected (check the prefix)! **" >&5
6230$as_echo "none detected (check the prefix)! **" >&6; }
6231 else
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $av_pkg" >&5
6233$as_echo "$av_pkg" >&6; }
6234 fi
6235
6236 ac_ffmpeg_cflags="$ac_ffmpeg_cflags `$PKG_CONFIG --cflags $av_pkg`"
6237 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags `$PKG_CONFIG --libs $av_pkg`"
6238
6239 else
6240
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Warning: neither pkg-config nor python is available, ffmpeg dependency cannot be calculated. If ffmpeg libraries are not detected, you need to specify the correct CFLAGS and LDFLAGS settings for ffmpeg prior to invoking configure ***" >&5
6242$as_echo "*** Warning: neither pkg-config nor python is available, ffmpeg dependency cannot be calculated. If ffmpeg libraries are not detected, you need to specify the correct CFLAGS and LDFLAGS settings for ffmpeg prior to invoking configure ***" >&6; }
6243
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006244 LIBS="-L$FFMPEG_PREFIX/lib $LIBS"
Sauw Ming01095d82011-07-14 08:46:19 +00006245 LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS"
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006246 CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS"
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006247
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00006249$as_echo_n "checking for avdevice_version in -lavdevice... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006250if ${ac_cv_lib_avdevice_avdevice_version+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00006251 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006252else
6253 ac_check_lib_save_LIBS=$LIBS
6254LIBS="-lavdevice $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006256/* end confdefs.h. */
6257
6258/* Override any GCC internal prototype to avoid an error.
6259 Use char because int might match the return type of a GCC
6260 builtin and then its argument prototype would still apply. */
6261#ifdef __cplusplus
6262extern "C"
6263#endif
6264char avdevice_version ();
6265int
6266main ()
6267{
6268return avdevice_version ();
6269 ;
6270 return 0;
6271}
6272_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006273if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006274 ac_cv_lib_avdevice_avdevice_version=yes
6275else
Benny Prijono28d3c562012-03-30 07:10:13 +00006276 ac_cv_lib_avdevice_avdevice_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006277fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006278rm -f core conftest.err conftest.$ac_objext \
6279 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006280LIBS=$ac_check_lib_save_LIBS
6281fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avdevice_avdevice_version" >&5
6283$as_echo "$ac_cv_lib_avdevice_avdevice_version" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006284if test "x$ac_cv_lib_avdevice_avdevice_version" = xyes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006285 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006286 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006287
6288
6289fi
6290
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_malloc in -lavutil" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00006292$as_echo_n "checking for av_malloc in -lavutil... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006293if ${ac_cv_lib_avutil_av_malloc+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00006294 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006295else
6296 ac_check_lib_save_LIBS=$LIBS
6297LIBS="-lavutil $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006299/* end confdefs.h. */
6300
6301/* Override any GCC internal prototype to avoid an error.
6302 Use char because int might match the return type of a GCC
6303 builtin and then its argument prototype would still apply. */
6304#ifdef __cplusplus
6305extern "C"
6306#endif
6307char av_malloc ();
6308int
6309main ()
6310{
6311return av_malloc ();
6312 ;
6313 return 0;
6314}
6315_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006316if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006317 ac_cv_lib_avutil_av_malloc=yes
6318else
Benny Prijono28d3c562012-03-30 07:10:13 +00006319 ac_cv_lib_avutil_av_malloc=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006320fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006321rm -f core conftest.err conftest.$ac_objext \
6322 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006323LIBS=$ac_check_lib_save_LIBS
6324fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_malloc" >&5
6326$as_echo "$ac_cv_lib_avutil_av_malloc" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006327if test "x$ac_cv_lib_avutil_av_malloc" = xyes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006328 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006329 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006330
6331
6332fi
6333
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_init in -lavcodec" >&5
6335$as_echo_n "checking for avcodec_init in -lavcodec... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006336if ${ac_cv_lib_avcodec_avcodec_init+:} false; then :
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006337 $as_echo_n "(cached) " >&6
6338else
6339 ac_check_lib_save_LIBS=$LIBS
6340LIBS="-lavcodec -lavutil
6341 $LIBS"
6342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343/* end confdefs.h. */
6344
6345/* Override any GCC internal prototype to avoid an error.
6346 Use char because int might match the return type of a GCC
6347 builtin and then its argument prototype would still apply. */
6348#ifdef __cplusplus
6349extern "C"
6350#endif
6351char avcodec_init ();
6352int
6353main ()
6354{
6355return avcodec_init ();
6356 ;
6357 return 0;
6358}
6359_ACEOF
6360if ac_fn_c_try_link "$LINENO"; then :
6361 ac_cv_lib_avcodec_avcodec_init=yes
6362else
6363 ac_cv_lib_avcodec_avcodec_init=no
6364fi
6365rm -f core conftest.err conftest.$ac_objext \
6366 conftest$ac_exeext conftest.$ac_ext
6367LIBS=$ac_check_lib_save_LIBS
6368fi
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_init" >&5
6370$as_echo "$ac_cv_lib_avcodec_avcodec_init" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006371if test "x$ac_cv_lib_avcodec_avcodec_init" = xyes; then :
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006372 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
6373 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec"
6374
6375fi
6376
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_all in -lavformat" >&5
6378$as_echo_n "checking for av_register_all in -lavformat... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006379if ${ac_cv_lib_avformat_av_register_all+:} false; then :
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006380 $as_echo_n "(cached) " >&6
6381else
6382 ac_check_lib_save_LIBS=$LIBS
6383LIBS="-lavformat -lavcodec -lavutil
6384 $LIBS"
6385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386/* end confdefs.h. */
6387
6388/* Override any GCC internal prototype to avoid an error.
6389 Use char because int might match the return type of a GCC
6390 builtin and then its argument prototype would still apply. */
6391#ifdef __cplusplus
6392extern "C"
6393#endif
6394char av_register_all ();
6395int
6396main ()
6397{
6398return av_register_all ();
6399 ;
6400 return 0;
6401}
6402_ACEOF
6403if ac_fn_c_try_link "$LINENO"; then :
6404 ac_cv_lib_avformat_av_register_all=yes
6405else
6406 ac_cv_lib_avformat_av_register_all=no
6407fi
6408rm -f core conftest.err conftest.$ac_objext \
6409 conftest$ac_exeext conftest.$ac_ext
6410LIBS=$ac_check_lib_save_LIBS
6411fi
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_register_all" >&5
6413$as_echo "$ac_cv_lib_avformat_av_register_all" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006414if test "x$ac_cv_lib_avformat_av_register_all" = xyes; then :
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006415 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
6416 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat"
6417
6418fi
6419
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5
6421$as_echo_n "checking for sws_scale in -lswscale... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006422if ${ac_cv_lib_swscale_sws_scale+:} false; then :
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006423 $as_echo_n "(cached) " >&6
6424else
6425 ac_check_lib_save_LIBS=$LIBS
6426LIBS="-lswscale -lavutil
6427 $LIBS"
6428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429/* end confdefs.h. */
6430
6431/* Override any GCC internal prototype to avoid an error.
6432 Use char because int might match the return type of a GCC
6433 builtin and then its argument prototype would still apply. */
6434#ifdef __cplusplus
6435extern "C"
6436#endif
6437char sws_scale ();
6438int
6439main ()
6440{
6441return sws_scale ();
6442 ;
6443 return 0;
6444}
6445_ACEOF
6446if ac_fn_c_try_link "$LINENO"; then :
6447 ac_cv_lib_swscale_sws_scale=yes
6448else
6449 ac_cv_lib_swscale_sws_scale=no
6450fi
6451rm -f core conftest.err conftest.$ac_objext \
6452 conftest$ac_exeext conftest.$ac_ext
6453LIBS=$ac_check_lib_save_LIBS
6454fi
6455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5
6456$as_echo "$ac_cv_lib_swscale_sws_scale" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006457if test "x$ac_cv_lib_swscale_sws_scale" = xyes; then :
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006458 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
6459 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale"
6460
6461fi
6462
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcore_version in -lavcore" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00006464$as_echo_n "checking for avcore_version in -lavcore... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006465if ${ac_cv_lib_avcore_avcore_version+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00006466 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006467else
6468 ac_check_lib_save_LIBS=$LIBS
6469LIBS="-lavcore $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006471/* end confdefs.h. */
6472
6473/* Override any GCC internal prototype to avoid an error.
6474 Use char because int might match the return type of a GCC
6475 builtin and then its argument prototype would still apply. */
6476#ifdef __cplusplus
6477extern "C"
6478#endif
6479char avcore_version ();
6480int
6481main ()
6482{
6483return avcore_version ();
6484 ;
6485 return 0;
6486}
6487_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006488if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006489 ac_cv_lib_avcore_avcore_version=yes
6490else
Benny Prijono28d3c562012-03-30 07:10:13 +00006491 ac_cv_lib_avcore_avcore_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006492fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006493rm -f core conftest.err conftest.$ac_objext \
6494 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006495LIBS=$ac_check_lib_save_LIBS
6496fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcore_avcore_version" >&5
6498$as_echo "$ac_cv_lib_avcore_avcore_version" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006499if test "x$ac_cv_lib_avcore_avcore_version" = xyes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006500 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006501 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006502
6503
6504fi
6505
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006506
6507 fi
6508
Benny Prijono69b1f822010-12-10 11:33:01 +00006509 LIBS="$LIBS $ac_ffmpeg_ldflags"
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00006510 export PKG_CONFIG_PATH=$SAVED_PKG_CONFIG_PATH
Benny Prijonoc45d9512010-12-10 11:04:30 +00006511
6512
6513fi
6514
6515
6516# Check whether --enable-v4l2 was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006517if test "${enable_v4l2+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006518 enableval=$enable_v4l2;
6519 if test "$enable_v4l2" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if V4L2 is disabled... yes" >&5
6521$as_echo "Checking if V4L2 is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006522 fi
6523
6524else
6525
6526
6527
Benny Prijono28d3c562012-03-30 07:10:13 +00006528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5
6529$as_echo_n "checking for v4l2_open in -lv4l2... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006530if ${ac_cv_lib_v4l2_v4l2_open+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00006531 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006532else
6533 ac_check_lib_save_LIBS=$LIBS
6534LIBS="-lv4l2 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006536/* end confdefs.h. */
6537
6538/* Override any GCC internal prototype to avoid an error.
6539 Use char because int might match the return type of a GCC
6540 builtin and then its argument prototype would still apply. */
6541#ifdef __cplusplus
6542extern "C"
6543#endif
6544char v4l2_open ();
6545int
6546main ()
6547{
6548return v4l2_open ();
6549 ;
6550 return 0;
6551}
6552_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006553if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006554 ac_cv_lib_v4l2_v4l2_open=yes
6555else
Benny Prijono28d3c562012-03-30 07:10:13 +00006556 ac_cv_lib_v4l2_v4l2_open=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006557fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006558rm -f core conftest.err conftest.$ac_objext \
6559 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006560LIBS=$ac_check_lib_save_LIBS
6561fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5
6563$as_echo "$ac_cv_lib_v4l2_v4l2_open" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006564if test "x$ac_cv_lib_v4l2_v4l2_open" = xyes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006565 ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1"
6566 ac_v4l2_ldflags="-lv4l2"
Benny Prijono69b1f822010-12-10 11:33:01 +00006567 LIBS="$LIBS -lv4l2"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006568
6569
6570fi
6571
6572
6573fi
6574
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006575
6576# Check whether --enable-ipp was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006577if test "${enable_ipp+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006578 enableval=$enable_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00006579else
6580 enable_ipp=no
6581
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006582fi
Benny Prijono0822c192008-08-21 20:59:58 +00006583
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006584
Benny Prijono3965f192010-02-10 18:46:05 +00006585
6586# Check whether --with-ipp was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006587if test "${with_ipp+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006588 withval=$with_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00006589else
6590 with_ipp=no
6591
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006592fi
Benny Prijono0822c192008-08-21 20:59:58 +00006593
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006594
Benny Prijono3965f192010-02-10 18:46:05 +00006595
6596# Check whether --with-ipp-samples was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006597if test "${with_ipp_samples+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006598 withval=$with_ipp_samples;
Benny Prijono0822c192008-08-21 20:59:58 +00006599else
6600 with_ipp_samples=no
6601
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006602fi
6603
Benny Prijono0822c192008-08-21 20:59:58 +00006604
Benny Prijono3965f192010-02-10 18:46:05 +00006605
6606# Check whether --with-ipp-arch was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006607if test "${with_ipp_arch+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006608 withval=$with_ipp_arch;
6609else
6610 with_ipp_arch=no
6611
6612fi
6613
6614
Benny Prijono0822c192008-08-21 20:59:58 +00006615if test "x$enable_ipp" != "xno"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5
6617$as_echo_n "checking Intel IPP location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006618
6619 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5
6621$as_echo "$with_ipp" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006622 IPPROOT=$with_ipp
6623 elif test "x$IPPROOT" = "x"; then
6624 if test -d /opt/intel/ipp; then
6625 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
Benny Prijono28d3c562012-03-30 07:10:13 +00006626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5
6627$as_echo "autodetected in $IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006628 fi
6629 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5
6631$as_echo "$IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006632 fi
6633
Benny Prijono3965f192010-02-10 18:46:05 +00006634 if test "x$with_ipp_arch" != "xno"; then
Benny Prijono896be292010-08-17 12:16:46 +00006635 IPP_SUFFIX=$with_ipp_arch
Benny Prijono28d3c562012-03-30 07:10:13 +00006636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5
6637$as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006638 else
6639 IPP_SUFFIX=""
Benny Prijono28d3c562012-03-30 07:10:13 +00006640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5
6641$as_echo "IPP arch suffix is set to empty" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006642 fi
6643
Benny Prijono0822c192008-08-21 20:59:58 +00006644 if test x$IPPROOT = x; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006645 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 +00006646 elif test ! -d $IPPROOT; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006647 as_fn_error $? "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006648 elif test ! -d $IPPROOT/include; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006649 as_fn_error $? "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006650 else
6651 # IPP directory looks okay.
6652 # Remove trailing backslash
Benny Prijono3965f192010-02-10 18:46:05 +00006653 IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
Benny Prijono0822c192008-08-21 20:59:58 +00006654
6655 SAVED_CFLAGS="$CFLAGS"
6656 SAVED_LDFLAGS="$LDFLAGS"
6657 SAVED_LIBS="$LIBS"
6658
6659 IPP_CFLAGS="-I$IPPROOT/include"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006660 IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
Benny Prijono46bd0842010-02-12 14:12:41 +00006661
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006662#
Benny Prijono46bd0842010-02-12 14:12:41 +00006663 # Some differences between Mac OS X and Linux
6664 case $target in
6665 *darwin* )
6666 IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
6667 ;;
6668 *)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006669 # Find out where the libraries live.
6670 IPP7_ARCH=""
6671 if test -d $IPPROOT/lib/intel64; then
6672 IPP7_ARCH="intel64"
6673 elif test -d $IPPROOT/lib/ia32; then
6674 IPP7_ARCH="ia32"
6675 elif test -d $IPPROOT/lib/mic; then
6676 IPP7_ARCH="mic"
6677 fi
6678
6679 if test -z "$IPP7_ARCH"; then
6680 # IPP6 (and possibly below)
6681 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
6682 IPP_LIBS="$IPP_LIBS -lippsr${IPP_SUFFIX} -lguide"
6683 else
6684 # IPP7
6685 if ! test -d $IPPROOT/../compiler; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006686 as_fn_error $? "Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" "$LINENO" 5
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006687 fi
6688 IPP_CFLAGS="$IPP_CFLAGS"
6689 IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH"
6690 IPP_LIBS="$IPP_LIBS -liomp5"
6691 fi
Benny Prijono46bd0842010-02-12 14:12:41 +00006692 ;;
6693 esac
6694
Benny Prijono0822c192008-08-21 20:59:58 +00006695 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
Benny Prijono46bd0842010-02-12 14:12:41 +00006696 #Static:
Benny Prijono0822c192008-08-21 20:59:58 +00006697 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
6698
6699 CFLAGS="$CFLAGS $IPP_CFLAGS"
6700 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6701 LIBS="$IPP_LIBS $LIBS"
6702
6703
Benny Prijono28d3c562012-03-30 07:10:13 +00006704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5
6705$as_echo_n "checking Intel IPP usability... " >&6; }
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006707/* end confdefs.h. */
6708#include <ippcore.h>
6709
6710int
6711main ()
6712{
6713ippStaticInit();
6714 ;
6715 return 0;
6716}
6717_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006718if ac_fn_c_try_link "$LINENO"; then :
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6720$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006721else
Benny Prijono28d3c562012-03-30 07:10:13 +00006722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006724as_fn_error $? "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly, run with --help for more info
6725See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006726fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006727rm -f core conftest.err conftest.$ac_objext \
6728 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006729
6730 CFLAGS="$SAVED_CFLAGS"
6731 LDFLAGS="$SAVED_LDFLAGS"
6732 LIBS="$SAVED_LIBS"
6733 fi
6734
Benny Prijono28d3c562012-03-30 07:10:13 +00006735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5
6736$as_echo_n "checking Intel IPP samples location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006737
6738 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5
6740$as_echo "$with_ipp_samples" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006741 IPPSAMPLES=$with_ipp_samples
6742 elif test "x$IPPSAMPLES" = "x"; then
6743 if test -d /opt/intel/ipp-samples; then
6744 IPPSAMPLES=/opt/intel/ipp-samples
Benny Prijono28d3c562012-03-30 07:10:13 +00006745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5
6746$as_echo "autodetected in $IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006747 fi
6748 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5
6750$as_echo "$IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006751 fi
6752
6753 if test x$IPPSAMPLES = x; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006754 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 +00006755 elif test ! -d $IPPSAMPLES; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006756 as_fn_error $? "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006757 elif test ! -d $IPPSAMPLES/speech-codecs; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006758 as_fn_error $? "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006759 else
6760 # Remove trailing backslash
6761 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
6762
Benny Prijono3965f192010-02-10 18:46:05 +00006763 # Guess the libusc.a/libspeech.a build location
Benny Prijono28d3c562012-03-30 07:10:13 +00006764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5
6765$as_echo_n "checking Intel IPP USC build location... " >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006766 if test -d $IPPSAMPLES/speech-codecs/bin; then
6767 IPPVER=5
6768 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
6769 elif test -d $IPPSAMPLES/speech-codecs/_bin; then
6770 IPPVER=6
Benny Prijono46bd0842010-02-12 14:12:41 +00006771 if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
6772 # gcc compiler
6773 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
6774 elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
6775 # icc compiler
6776 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
6777 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006780as_fn_error $? "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
6781See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono46bd0842010-02-12 14:12:41 +00006782 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006783 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006786as_fn_error $? "unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?
6787See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006788 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006789
6790 # Test the directory
6791 if test ! -d $IPPSAMP_DIR; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006794as_fn_error $? "There's something wrong with this script, directory $IPPSAMP_DIR does not exist
6795See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00006796 exit 1;
6797 fi
6798
6799 if test "x$IPPVER" = "x5"; then
6800 IPPSAMP_LIBS="libusc.a"
6801 IPPSAMP_LDLIBS="-lusc"
6802 elif test "x$IPPVER" = "x6"; then
6803 IPPSAMP_LIBS="libspeech.a"
6804 IPPSAMP_LDLIBS="-lspeech"
6805 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6807$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006808as_fn_error $? "bug in this script: unsupported IPP version
6809See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006810 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006811
6812 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006815as_fn_error $? "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
6816See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00006817 fi
6818
Benny Prijono28d3c562012-03-30 07:10:13 +00006819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5
6820$as_echo "$IPPSAMP_DIR" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006821
6822 SAVED_CFLAGS="$CFLAGS"
6823 SAVED_LDFLAGS="$LDFLAGS"
6824 SAVED_LIBS="$LIBS"
6825
Benny Prijono3965f192010-02-10 18:46:05 +00006826 IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
6827 CFLAGS="$CFLAGS $IPPSAMP_INC"
6828 LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR"
6829 LIBS="$IPPSAMP_LDLIBS $LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006830
Benny Prijono28d3c562012-03-30 07:10:13 +00006831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5
6832$as_echo_n "checking Intel IPP USC usability... " >&6; }
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006834/* end confdefs.h. */
6835#include <usc.h>
6836
6837int
6838main ()
6839{
6840extern USC_Fxns USC_G729AFP_Fxns;
6841 ;
6842 return 0;
6843}
6844_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006845if ac_fn_c_try_link "$LINENO"; then :
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6847$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006848else
Benny Prijono28d3c562012-03-30 07:10:13 +00006849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006851as_fn_error $? "failed
6852See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006853fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006854rm -f core conftest.err conftest.$ac_objext \
6855 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006856
6857 CFLAGS="$SAVED_CFLAGS"
Benny Prijono3965f192010-02-10 18:46:05 +00006858 LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
6859 LIBS="$IPP_LIBS $SAVED_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006860
Benny Prijono3965f192010-02-10 18:46:05 +00006861 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
6862 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
6863 IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006864 fi
6865
Benny Prijono3965f192010-02-10 18:46:05 +00006866 CFLAGS="$CFLAGS $IPP_CFLAGS"
6867 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6868 LIBS="$LIBS $IPP_LIBS"
6869
Benny Prijono0822c192008-08-21 20:59:58 +00006870 ac_build_mak_vars="$ac_build_mak_vars\n\
6871export IPP_CFLAGS=$IPP_CFLAGS\n\
6872export IPP_LDFLAGS=$IPP_LDFLAGS\n\
6873export IPP_LIBS=$IPP_LIBS"
6874else
Benny Prijono28d3c562012-03-30 07:10:13 +00006875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5
6876$as_echo "Skipping Intel IPP settings (not wanted)" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006877fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006878
6879
6880
6881
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006882# Check whether --with-ssl was given.
6883if test "${with_ssl+set}" = set; then :
6884 withval=$with_ssl;
6885else
6886 with_ssl=no
6887
6888fi
6889
6890
6891if test "x$ac_cross_compile" != "x" -a "x$with_ssl" = "xno"; then
6892 enable_ssl=no
6893fi
6894
6895
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006896# Check whether --enable-ssl was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006897if test "${enable_ssl+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006898 enableval=$enable_ssl;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006899 if test "$enable_ssl" = "no"; then
6900 ac_no_ssl=1
Benny Prijono28d3c562012-03-30 07:10:13 +00006901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5
6902$as_echo "Checking if SSL support is disabled... yes" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006903 fi
6904
6905else
6906
Benny Prijono28d3c562012-03-30 07:10:13 +00006907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5
6908$as_echo "checking for OpenSSL installations.." >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006909 if test "x$with_ssl" != "xno" -a "x$with_ssl" != "x"; then
6910 CFLAGS="$CFLAGS -I$with_ssl/include"
6911 LDFLAGS="$LDFLAGS -L$with_ssl/lib"
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSL prefix... $with_ssl" >&5
6913$as_echo "Using SSL prefix... $with_ssl" >&6; }
6914 fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006915
6916
6917
Benny Prijono28d3c562012-03-30 07:10:13 +00006918 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006919if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006920 openssl_h_present=1
6921fi
6922
6923
Benny Prijono28d3c562012-03-30 07:10:13 +00006924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5
6925$as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006926if ${ac_cv_lib_crypto_ERR_load_BIO_strings+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00006927 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006928else
6929 ac_check_lib_save_LIBS=$LIBS
6930LIBS="-lcrypto $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006932/* end confdefs.h. */
6933
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006934/* Override any GCC internal prototype to avoid an error.
6935 Use char because int might match the return type of a GCC
6936 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006937#ifdef __cplusplus
6938extern "C"
6939#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006940char ERR_load_BIO_strings ();
6941int
6942main ()
6943{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006944return ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006945 ;
6946 return 0;
6947}
6948_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006949if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006950 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
6951else
Benny Prijono28d3c562012-03-30 07:10:13 +00006952 ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006953fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006954rm -f core conftest.err conftest.$ac_objext \
6955 conftest$ac_exeext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006956LIBS=$ac_check_lib_save_LIBS
6957fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
6959$as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006960if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006961 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
6962fi
6963
Benny Prijono28d3c562012-03-30 07:10:13 +00006964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
6965$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006966if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00006967 $as_echo_n "(cached) " >&6
Benny Prijonod5233702010-01-13 13:09:45 +00006968else
6969 ac_check_lib_save_LIBS=$LIBS
6970LIBS="-lssl $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00006972/* end confdefs.h. */
6973
6974/* Override any GCC internal prototype to avoid an error.
6975 Use char because int might match the return type of a GCC
6976 builtin and then its argument prototype would still apply. */
6977#ifdef __cplusplus
6978extern "C"
6979#endif
6980char SSL_library_init ();
6981int
6982main ()
6983{
6984return SSL_library_init ();
6985 ;
6986 return 0;
6987}
6988_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006989if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonod5233702010-01-13 13:09:45 +00006990 ac_cv_lib_ssl_SSL_library_init=yes
6991else
Benny Prijono28d3c562012-03-30 07:10:13 +00006992 ac_cv_lib_ssl_SSL_library_init=no
Benny Prijonod5233702010-01-13 13:09:45 +00006993fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006994rm -f core conftest.err conftest.$ac_objext \
6995 conftest$ac_exeext conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00006996LIBS=$ac_check_lib_save_LIBS
6997fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6999$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007000if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
Benny Prijonod5233702010-01-13 13:09:45 +00007001 libssl_present=1 && LIBS="$LIBS -lssl"
7002fi
7003
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007004 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5
7006$as_echo "OpenSSL library found, SSL support enabled" >&6; }
Nanang Izzuddin9c7616f2009-10-28 06:09:15 +00007007 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
7008 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
Benny Prijono28d3c562012-03-30 07:10:13 +00007009 $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
Nanang Izzuddinea6d3c42009-10-26 15:47:52 +00007010
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007011 else
Benny Prijono28d3c562012-03-30 07:10:13 +00007012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
7013$as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; }
Sauw Minge7dbbc82011-10-24 09:28:13 +00007014 fi
7015
7016fi
7017
7018
7019
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007020# Check whether --with-opencore-amrnb was given.
7021if test "${with_opencore_amrnb+set}" = set; then :
7022 withval=$with_opencore_amrnb;
7023else
7024 with_opencore_amrnb=no
7025
7026fi
7027
7028
7029if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amrnb" = "xno"; then
7030 enable_opencore_amrnb=no
7031fi
7032
7033
Sauw Minge7dbbc82011-10-24 09:28:13 +00007034# Check whether --enable-opencore_amrnb was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00007035if test "${enable_opencore_amrnb+set}" = set; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00007036 enableval=$enable_opencore_amrnb;
7037 if test "$enable_opencore_amrnb" = "no"; then
7038 ac_no_opencore_amrnb=1
Benny Prijono28d3c562012-03-30 07:10:13 +00007039 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00007040
Benny Prijono28d3c562012-03-30 07:10:13 +00007041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OpenCORE AMR-NB support is disabled... yes" >&5
7042$as_echo "Checking if OpenCORE AMR-NB support is disabled... yes" >&6; }
Sauw Minge7dbbc82011-10-24 09:28:13 +00007043 fi
7044
7045else
7046
Benny Prijono28d3c562012-03-30 07:10:13 +00007047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenCORE AMR-NB installations.." >&5
7048$as_echo "checking for OpenCORE AMR-NB installations.." >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007049 if test "x$with_opencore_amrnb" != "xno" -a "x$with_opencore_amrnb" != "x"; then
7050 CFLAGS="$CFLAGS -I$with_opencore_amrnb/include"
7051 LDFLAGS="$LDFLAGS -L$with_opencore_amrnb/lib"
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OpenCORE AMR-NB prefix... $with_opencore_amrnb" >&5
7053$as_echo "Using OpenCORE AMR-NB prefix... $with_opencore_amrnb" >&6; }
7054 fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00007055
7056
Benny Prijono28d3c562012-03-30 07:10:13 +00007057 ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrnb/interf_enc.h" "ac_cv_header_opencore_amrnb_interf_enc_h" "$ac_includes_default"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007058if test "x$ac_cv_header_opencore_amrnb_interf_enc_h" = xyes; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00007059 opencore_amrnb_h_present=1
7060fi
7061
7062
Benny Prijono28d3c562012-03-30 07:10:13 +00007063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Encoder_Interface_init in -lopencore-amrnb" >&5
7064$as_echo_n "checking for Encoder_Interface_init in -lopencore-amrnb... " >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007065if ${ac_cv_lib_opencore_amrnb_Encoder_Interface_init+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00007066 $as_echo_n "(cached) " >&6
Sauw Minge7dbbc82011-10-24 09:28:13 +00007067else
7068 ac_check_lib_save_LIBS=$LIBS
7069LIBS="-lopencore-amrnb $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00007070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Minge7dbbc82011-10-24 09:28:13 +00007071/* end confdefs.h. */
7072
7073/* Override any GCC internal prototype to avoid an error.
7074 Use char because int might match the return type of a GCC
7075 builtin and then its argument prototype would still apply. */
7076#ifdef __cplusplus
7077extern "C"
7078#endif
7079char Encoder_Interface_init ();
7080int
7081main ()
7082{
7083return Encoder_Interface_init ();
7084 ;
7085 return 0;
7086}
7087_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007088if ac_fn_c_try_link "$LINENO"; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00007089 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=yes
7090else
Benny Prijono28d3c562012-03-30 07:10:13 +00007091 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=no
Sauw Minge7dbbc82011-10-24 09:28:13 +00007092fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007093rm -f core conftest.err conftest.$ac_objext \
7094 conftest$ac_exeext conftest.$ac_ext
Sauw Minge7dbbc82011-10-24 09:28:13 +00007095LIBS=$ac_check_lib_save_LIBS
7096fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&5
7098$as_echo "$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007099if test "x$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" = xyes; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00007100 opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb"
7101fi
7102
7103 if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-NB library found, AMR-NB support enabled" >&5
7105$as_echo "OpenCORE AMR-NB library found, AMR-NB support enabled" >&6; }
7106 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00007107
7108 else
7109 ac_no_opencore_amrnb=1
Benny Prijono28d3c562012-03-30 07:10:13 +00007110 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00007111
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007112 fi
7113
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007114fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007115
7116
7117
7118
Benny Prijono28d3c562012-03-30 07:10:13 +00007119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5
7120$as_echo_n "checking if select() needs correct nfds... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007121case $target in
Benny Prijono28d3c562012-03-30 07:10:13 +00007122 *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007123
Benny Prijono28d3c562012-03-30 07:10:13 +00007124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7125$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007126 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007127 *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007128
Benny Prijono28d3c562012-03-30 07:10:13 +00007129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7130$as_echo "no (default)" >&6; }
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
7132$as_echo "** Decided that select() doesn't need correct nfds (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007133 ;;
7134esac
7135
Benny Prijono28d3c562012-03-30 07:10:13 +00007136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5
7137$as_echo_n "checking if pj_thread_create() should enforce stack size... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007138case $target in
Benny Prijono28d3c562012-03-30 07:10:13 +00007139 *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007140
Benny Prijono28d3c562012-03-30 07:10:13 +00007141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7142$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007143 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007144 *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007145
Benny Prijono28d3c562012-03-30 07:10:13 +00007146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7147$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007148 ;;
7149esac
7150
Benny Prijono28d3c562012-03-30 07:10:13 +00007151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5
7152$as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007153case $target in
Benny Prijono28d3c562012-03-30 07:10:13 +00007154 *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007155
Benny Prijono28d3c562012-03-30 07:10:13 +00007156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7157$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007158 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007159 *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007160
Benny Prijono28d3c562012-03-30 07:10:13 +00007161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7162$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007163 ;;
7164esac
7165
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007166case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007167 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00007168 $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007169
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007170 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007171 *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007172
Benny Prijono28d3c562012-03-30 07:10:13 +00007173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
7174$as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007175 ;;
7176esac
7177
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007178case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007179 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00007180 $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007181
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007182 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007183 *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007184
Benny Prijono28d3c562012-03-30 07:10:13 +00007185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
7186$as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007187 ;;
7188esac
7189
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007190
7191
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007192ac_linux_poll=select
7193
7194ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007195
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007196
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007197case $target in
7198 *rtems*)
7199 ac_main_obj=main_rtems.o
7200 ;;
7201 *)
7202 ac_main_obj=main.o
7203 ;;
7204esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007205
Benny Prijono0822c192008-08-21 20:59:58 +00007206
7207ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007208cat >confcache <<\_ACEOF
7209# This file is a shell script that caches the results of configure
7210# tests run on this system so they can be shared between configure
7211# scripts and configure runs, see configure's option --config-cache.
7212# It is not useful on other systems. If it contains results you don't
7213# want to keep, you may remove or edit it.
7214#
7215# config.status only pays attention to the cache file if you give it
7216# the --recheck option to rerun configure.
7217#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007218# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007219# loading this file, other *unset* `ac_cv_foo' will be assigned the
7220# following values.
7221
7222_ACEOF
7223
7224# The following way of writing the cache mishandles newlines in values,
7225# but we know of no workaround that is simple, portable, and efficient.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007226# So, we kill variables containing newlines.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007227# Ultrix sh set writes to stderr and can't be redirected directly,
7228# and sets the high bit in the cache file unless we assign to the vars.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007229(
7230 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7231 eval ac_val=\$$ac_var
7232 case $ac_val in #(
7233 *${as_nl}*)
7234 case $ac_var in #(
Benny Prijono28d3c562012-03-30 07:10:13 +00007235 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7236$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007237 esac
7238 case $ac_var in #(
7239 _ | IFS | as_nl) ;; #(
Benny Prijono28d3c562012-03-30 07:10:13 +00007240 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7241 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007242 esac ;;
7243 esac
7244 done
7245
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007246 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007247 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7248 *${as_nl}ac_space=\ *)
Benny Prijono28d3c562012-03-30 07:10:13 +00007249 # `set' does not quote correctly, so add quotes: double-quote
7250 # substitution turns \\\\ into \\, and sed turns \\ into \.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007251 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007252 "s/'/'\\\\''/g;
7253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007254 ;; #(
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007255 *)
7256 # `set' quotes correctly as required by POSIX, so do not add quotes.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007257 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007258 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007259 esac |
7260 sort
7261) |
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007262 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007263 /^ac_cv_env_/b end
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007264 t clear
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007265 :clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007266 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7267 t end
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007268 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7269 :end' >>confcache
7270if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7271 if test -w "$cache_file"; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007272 if test "x$cache_file" != "x/dev/null"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007273 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7274$as_echo "$as_me: updating cache $cache_file" >&6;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007275 if test ! -f "$cache_file" || test -h "$cache_file"; then
7276 cat confcache >"$cache_file"
7277 else
7278 case $cache_file in #(
7279 */* | ?:*)
7280 mv -f confcache "$cache_file"$$ &&
7281 mv -f "$cache_file"$$ "$cache_file" ;; #(
7282 *)
7283 mv -f confcache "$cache_file" ;;
7284 esac
7285 fi
7286 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007287 else
Benny Prijono28d3c562012-03-30 07:10:13 +00007288 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7289$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007290 fi
7291fi
7292rm -f confcache
7293
7294test "x$prefix" = xNONE && prefix=$ac_default_prefix
7295# Let make expand exec_prefix.
7296test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7297
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007298DEFS=-DHAVE_CONFIG_H
7299
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007300ac_libobjs=
7301ac_ltlibobjs=
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007302U=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007303for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7304 # 1. Remove the extension, and $U if already installed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007305 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Benny Prijono28d3c562012-03-30 07:10:13 +00007306 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007307 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7308 # will be set to the directory where LIBOBJS objects are built.
Benny Prijono28d3c562012-03-30 07:10:13 +00007309 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7310 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007311done
7312LIBOBJS=$ac_libobjs
7313
7314LTLIBOBJS=$ac_ltlibobjs
7315
7316
7317
Benny Prijono28d3c562012-03-30 07:10:13 +00007318
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007319: "${CONFIG_STATUS=./config.status}"
Benny Prijono28d3c562012-03-30 07:10:13 +00007320ac_write_fail=0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007321ac_clean_files_save=$ac_clean_files
7322ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono28d3c562012-03-30 07:10:13 +00007323{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7324$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7325as_write_fail=0
7326cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007327#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007328# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007329# Run this file to recreate the current configuration.
7330# Compiler output produced by configure, useful for debugging
7331# configure, is in config.log if it exists.
7332
7333debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007334ac_cs_recheck=false
7335ac_cs_silent=false
Benny Prijono36d32492011-12-28 08:42:23 +00007336
Benny Prijono28d3c562012-03-30 07:10:13 +00007337SHELL=\${CONFIG_SHELL-$SHELL}
7338export SHELL
7339_ASEOF
7340cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7341## -------------------- ##
7342## M4sh Initialization. ##
7343## -------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007344
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007345# Be more Bourne compatible
7346DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijono28d3c562012-03-30 07:10:13 +00007347if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007348 emulate sh
7349 NULLCMD=:
Benny Prijono28d3c562012-03-30 07:10:13 +00007350 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007351 # is contrary to our usage. Disable this feature.
7352 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007353 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +00007354else
Benny Prijono28d3c562012-03-30 07:10:13 +00007355 case `(set -o) 2>/dev/null` in #(
7356 *posix*) :
7357 set -o posix ;; #(
7358 *) :
7359 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007360esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007361fi
7362
7363
Benny Prijono28d3c562012-03-30 07:10:13 +00007364as_nl='
7365'
7366export as_nl
7367# Printing a long string crashes Solaris 7 /usr/bin/printf.
7368as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7369as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7370as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7371# Prefer a ksh shell builtin over an external printf program on Solaris,
7372# but without wasting forks for bash or zsh.
7373if test -z "$BASH_VERSION$ZSH_VERSION" \
7374 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7375 as_echo='print -r --'
7376 as_echo_n='print -rn --'
7377elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7378 as_echo='printf %s\n'
7379 as_echo_n='printf %s'
7380else
7381 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7382 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7383 as_echo_n='/usr/ucb/echo -n'
7384 else
7385 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7386 as_echo_n_body='eval
7387 arg=$1;
7388 case $arg in #(
7389 *"$as_nl"*)
7390 expr "X$arg" : "X\\(.*\\)$as_nl";
7391 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7392 esac;
7393 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7394 '
7395 export as_echo_n_body
7396 as_echo_n='sh -c $as_echo_n_body as_echo'
7397 fi
7398 export as_echo_body
7399 as_echo='sh -c $as_echo_body as_echo'
7400fi
Benny Prijonod5233702010-01-13 13:09:45 +00007401
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007402# The user is always right.
7403if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007404 PATH_SEPARATOR=:
7405 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7406 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7407 PATH_SEPARATOR=';'
7408 }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007409fi
7410
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007411
7412# IFS
7413# We need space, tab and new line, in precisely that order. Quoting is
7414# there to prevent editors from complaining about space-tab.
7415# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7416# splitting by setting IFS to empty value.)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007417IFS=" "" $as_nl"
7418
7419# Find who we are. Look in the path if we contain no directory separator.
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007420as_myself=
Benny Prijono28d3c562012-03-30 07:10:13 +00007421case $0 in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007422 *[\\/]* ) as_myself=$0 ;;
7423 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007424for as_dir in $PATH
7425do
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00007428 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7429 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007430IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007431
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007432 ;;
7433esac
7434# We did not find ourselves, most probably we were run as `sh COMMAND'
7435# in which case we are not to be found in the path.
7436if test "x$as_myself" = x; then
7437 as_myself=$0
7438fi
7439if test ! -f "$as_myself"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007440 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7441 exit 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007442fi
7443
Benny Prijono28d3c562012-03-30 07:10:13 +00007444# Unset variables that we do not need and which cause bugs (e.g. in
7445# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7446# suppresses any "Segmentation fault" message there. '((' could
7447# trigger a bug in pdksh 5.2.14.
7448for as_var in BASH_ENV ENV MAIL MAILPATH
7449do eval test x\${$as_var+set} = xset \
7450 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007451done
7452PS1='$ '
7453PS2='> '
7454PS4='+ '
7455
7456# NLS nuisances.
Benny Prijono28d3c562012-03-30 07:10:13 +00007457LC_ALL=C
7458export LC_ALL
7459LANGUAGE=C
7460export LANGUAGE
Benny Prijonoe1105232011-10-26 06:49:34 +00007461
Benny Prijono28d3c562012-03-30 07:10:13 +00007462# CDPATH.
7463(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7464
7465
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007466# as_fn_error STATUS ERROR [LINENO LOG_FD]
7467# ----------------------------------------
Benny Prijono28d3c562012-03-30 07:10:13 +00007468# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7469# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007470# script with STATUS, using 1 if that was 0.
Benny Prijono28d3c562012-03-30 07:10:13 +00007471as_fn_error ()
7472{
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007473 as_status=$1; test $as_status -eq 0 && as_status=1
7474 if test "$4"; then
7475 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7476 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Benny Prijono28d3c562012-03-30 07:10:13 +00007477 fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007478 $as_echo "$as_me: error: $2" >&2
Benny Prijono28d3c562012-03-30 07:10:13 +00007479 as_fn_exit $as_status
7480} # as_fn_error
7481
7482
7483# as_fn_set_status STATUS
7484# -----------------------
7485# Set $? to STATUS, without forking.
7486as_fn_set_status ()
7487{
7488 return $1
7489} # as_fn_set_status
7490
7491# as_fn_exit STATUS
7492# -----------------
7493# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7494as_fn_exit ()
7495{
7496 set +e
7497 as_fn_set_status $1
7498 exit $1
7499} # as_fn_exit
7500
7501# as_fn_unset VAR
7502# ---------------
7503# Portably unset VAR.
7504as_fn_unset ()
7505{
7506 { eval $1=; unset $1;}
7507}
7508as_unset=as_fn_unset
7509# as_fn_append VAR VALUE
7510# ----------------------
7511# Append the text in VALUE to the end of the definition contained in VAR. Take
7512# advantage of any shell optimizations that allow amortized linear growth over
7513# repeated appends, instead of the typical quadratic growth present in naive
7514# implementations.
7515if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7516 eval 'as_fn_append ()
7517 {
7518 eval $1+=\$2
7519 }'
7520else
7521 as_fn_append ()
7522 {
7523 eval $1=\$$1\$2
7524 }
7525fi # as_fn_append
7526
7527# as_fn_arith ARG...
7528# ------------------
7529# Perform arithmetic evaluation on the ARGs, and store the result in the
7530# global $as_val. Take advantage of shells that can avoid forks. The arguments
7531# must be portable across $(()) and expr.
7532if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7533 eval 'as_fn_arith ()
7534 {
7535 as_val=$(( $* ))
7536 }'
7537else
7538 as_fn_arith ()
7539 {
7540 as_val=`expr "$@" || test $? -eq 1`
7541 }
7542fi # as_fn_arith
7543
7544
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007545if expr a : '\(a\)' >/dev/null 2>&1 &&
7546 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7547 as_expr=expr
7548else
7549 as_expr=false
7550fi
7551
7552if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7553 as_basename=basename
7554else
7555 as_basename=false
7556fi
7557
Benny Prijono28d3c562012-03-30 07:10:13 +00007558if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7559 as_dirname=dirname
7560else
7561 as_dirname=false
7562fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007563
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007564as_me=`$as_basename -- "$0" ||
7565$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7566 X"$0" : 'X\(//\)$' \| \
7567 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono28d3c562012-03-30 07:10:13 +00007568$as_echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007569 sed '/^.*\/\([^/][^/]*\)\/*$/{
7570 s//\1/
7571 q
7572 }
7573 /^X\/\(\/\/\)$/{
7574 s//\1/
7575 q
7576 }
7577 /^X\/\(\/\).*/{
7578 s//\1/
7579 q
7580 }
7581 s/.*/./; q'`
7582
Benny Prijono28d3c562012-03-30 07:10:13 +00007583# Avoid depending upon Character Ranges.
7584as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7585as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7586as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7587as_cr_digits='0123456789'
7588as_cr_alnum=$as_cr_Letters$as_cr_digits
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007589
7590ECHO_C= ECHO_N= ECHO_T=
Benny Prijono28d3c562012-03-30 07:10:13 +00007591case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007592-n*)
Benny Prijono28d3c562012-03-30 07:10:13 +00007593 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007594 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijono28d3c562012-03-30 07:10:13 +00007595 xy) ECHO_C='\c';;
7596 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7597 ECHO_T=' ';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007598 esac;;
7599*)
7600 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007601esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007602
7603rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007604if test -d conf$$.dir; then
7605 rm -f conf$$.dir/conf$$.file
7606else
7607 rm -f conf$$.dir
Benny Prijono28d3c562012-03-30 07:10:13 +00007608 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007609fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007610if (echo >conf$$.file) 2>/dev/null; then
7611 if ln -s conf$$.file conf$$ 2>/dev/null; then
7612 as_ln_s='ln -s'
7613 # ... but there are two gotchas:
7614 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7615 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007616 # In both cases, we have to default to `cp -pR'.
Benny Prijono28d3c562012-03-30 07:10:13 +00007617 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007618 as_ln_s='cp -pR'
Benny Prijono28d3c562012-03-30 07:10:13 +00007619 elif ln conf$$.file conf$$ 2>/dev/null; then
7620 as_ln_s=ln
7621 else
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007622 as_ln_s='cp -pR'
Benny Prijono28d3c562012-03-30 07:10:13 +00007623 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007624else
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007625 as_ln_s='cp -pR'
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007626fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007627rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7628rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007629
Benny Prijono28d3c562012-03-30 07:10:13 +00007630
7631# as_fn_mkdir_p
7632# -------------
7633# Create "$as_dir" as a directory, including parents if necessary.
7634as_fn_mkdir_p ()
7635{
7636
7637 case $as_dir in #(
7638 -*) as_dir=./$as_dir;;
7639 esac
7640 test -d "$as_dir" || eval $as_mkdir_p || {
7641 as_dirs=
7642 while :; do
7643 case $as_dir in #(
7644 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7645 *) as_qdir=$as_dir;;
7646 esac
7647 as_dirs="'$as_qdir' $as_dirs"
7648 as_dir=`$as_dirname -- "$as_dir" ||
7649$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7650 X"$as_dir" : 'X\(//\)[^/]' \| \
7651 X"$as_dir" : 'X\(//\)$' \| \
7652 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7653$as_echo X"$as_dir" |
7654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7655 s//\1/
7656 q
7657 }
7658 /^X\(\/\/\)[^/].*/{
7659 s//\1/
7660 q
7661 }
7662 /^X\(\/\/\)$/{
7663 s//\1/
7664 q
7665 }
7666 /^X\(\/\).*/{
7667 s//\1/
7668 q
7669 }
7670 s/.*/./; q'`
7671 test -d "$as_dir" && break
7672 done
7673 test -z "$as_dirs" || eval "mkdir $as_dirs"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007674 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Benny Prijono28d3c562012-03-30 07:10:13 +00007675
7676
7677} # as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007678if mkdir -p . 2>/dev/null; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007679 as_mkdir_p='mkdir -p "$as_dir"'
Benny Prijono39ae2da2006-10-13 17:57:42 +00007680else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007681 test -d ./-p && rmdir ./-p
7682 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +00007683fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007684
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007685
7686# as_fn_executable_p FILE
7687# -----------------------
7688# Test if FILE is an executable regular file.
7689as_fn_executable_p ()
7690{
7691 test -f "$1" && test -x "$1"
7692} # as_fn_executable_p
7693as_test_x='test -x'
7694as_executable_p=as_fn_executable_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007695
7696# Sed expression to map a string onto a valid CPP name.
7697as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7698
7699# Sed expression to map a string onto a valid variable name.
7700as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7701
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007702
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007703exec 6>&1
Benny Prijono28d3c562012-03-30 07:10:13 +00007704## ----------------------------------- ##
7705## Main body of $CONFIG_STATUS script. ##
7706## ----------------------------------- ##
7707_ASEOF
7708test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007709
Benny Prijono28d3c562012-03-30 07:10:13 +00007710cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7711# Save the log message, to keep $0 and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007712# report actual input values of CONFIG_FILES etc. instead of their
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007713# values after options handling.
7714ac_log="
Benny Prijono28d3c562012-03-30 07:10:13 +00007715This file was extended by pjproject $as_me 2.x, which was
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007716generated by GNU Autoconf 2.69. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007717
7718 CONFIG_FILES = $CONFIG_FILES
7719 CONFIG_HEADERS = $CONFIG_HEADERS
7720 CONFIG_LINKS = $CONFIG_LINKS
7721 CONFIG_COMMANDS = $CONFIG_COMMANDS
7722 $ $0 $@
7723
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007724on `(hostname || uname -n) 2>/dev/null | sed 1q`
7725"
7726
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007727_ACEOF
7728
Benny Prijono28d3c562012-03-30 07:10:13 +00007729case $ac_config_files in *"
7730"*) set x $ac_config_files; shift; ac_config_files=$*;;
7731esac
7732
7733case $ac_config_headers in *"
7734"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7735esac
7736
7737
7738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007739# Files that config.status was made for.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007740config_files="$ac_config_files"
7741config_headers="$ac_config_headers"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007742
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007743_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007744
Benny Prijono28d3c562012-03-30 07:10:13 +00007745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007746ac_cs_usage="\
Benny Prijono28d3c562012-03-30 07:10:13 +00007747\`$as_me' instantiates files and other configuration actions
7748from templates according to the current configuration. Unless the files
7749and actions are specified as TAGs, all are instantiated by default.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007750
Benny Prijono28d3c562012-03-30 07:10:13 +00007751Usage: $0 [OPTION]... [TAG]...
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007752
7753 -h, --help print this help, then exit
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007754 -V, --version print version number and configuration settings, then exit
Benny Prijono28d3c562012-03-30 07:10:13 +00007755 --config print configuration, then exit
7756 -q, --quiet, --silent
7757 do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007758 -d, --debug don't remove temporary files
7759 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijono28d3c562012-03-30 07:10:13 +00007760 --file=FILE[:TEMPLATE]
7761 instantiate the configuration file FILE
7762 --header=FILE[:TEMPLATE]
7763 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007764
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007765Configuration files:
7766$config_files
7767
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007768Configuration headers:
7769$config_headers
7770
Benny Prijono28d3c562012-03-30 07:10:13 +00007771Report bugs to the package provider."
Benny Prijonoe2746132008-09-27 13:16:35 +00007772
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007773_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7775ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007776ac_cs_version="\\
Benny Prijono28d3c562012-03-30 07:10:13 +00007777pjproject config.status 2.x
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007778configured by $0, generated by GNU Autoconf 2.69,
Benny Prijono28d3c562012-03-30 07:10:13 +00007779 with options \\"\$ac_cs_config\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007780
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007781Copyright (C) 2012 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007782This config.status script is free software; the Free Software Foundation
7783gives unlimited permission to copy, distribute and modify it."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007784
7785ac_pwd='$ac_pwd'
7786srcdir='$srcdir'
Benny Prijono28d3c562012-03-30 07:10:13 +00007787test -n "\$AWK" || AWK=awk
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007788_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007789
Benny Prijono28d3c562012-03-30 07:10:13 +00007790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7791# The default lists apply if the user does not specify any file.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007792ac_need_defaults=:
7793while test $# != 0
7794do
7795 case $1 in
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007796 --*=?*)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007797 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7798 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007799 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007800 ;;
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007801 --*=)
7802 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7803 ac_optarg=
7804 ac_shift=:
7805 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007806 *)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007807 ac_option=$1
7808 ac_optarg=$2
7809 ac_shift=shift
7810 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007811 esac
7812
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007813 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007814 # Handling of the options.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007815 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007816 ac_cs_recheck=: ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007817 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Benny Prijono28d3c562012-03-30 07:10:13 +00007818 $as_echo "$ac_cs_version"; exit ;;
7819 --config | --confi | --conf | --con | --co | --c )
7820 $as_echo "$ac_cs_config"; exit ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007821 --debug | --debu | --deb | --de | --d | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007822 debug=: ;;
7823 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007824 $ac_shift
Benny Prijono28d3c562012-03-30 07:10:13 +00007825 case $ac_optarg in
7826 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007827 '') as_fn_error $? "missing file argument" ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007828 esac
7829 as_fn_append CONFIG_FILES " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007830 ac_need_defaults=false;;
7831 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007832 $ac_shift
Benny Prijono28d3c562012-03-30 07:10:13 +00007833 case $ac_optarg in
7834 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7835 esac
7836 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007837 ac_need_defaults=false;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007838 --he | --h)
7839 # Conflict between --help and --header
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007840 as_fn_error $? "ambiguous option: \`$1'
Benny Prijono28d3c562012-03-30 07:10:13 +00007841Try \`$0 --help' for more information.";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007842 --help | --hel | -h )
Benny Prijono28d3c562012-03-30 07:10:13 +00007843 $as_echo "$ac_cs_usage"; exit ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007844 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7845 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7846 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007847
7848 # This is an error.
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007849 -*) as_fn_error $? "unrecognized option: \`$1'
Benny Prijono28d3c562012-03-30 07:10:13 +00007850Try \`$0 --help' for more information." ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007851
Benny Prijono28d3c562012-03-30 07:10:13 +00007852 *) as_fn_append ac_config_targets " $1"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007853 ac_need_defaults=false ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007854
7855 esac
7856 shift
7857done
7858
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007859ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007860
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007861if $ac_cs_silent; then
7862 exec 6>/dev/null
7863 ac_configure_extra_args="$ac_configure_extra_args --silent"
7864fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007865
7866_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007867cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007868if \$ac_cs_recheck; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007869 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Benny Prijono28d3c562012-03-30 07:10:13 +00007870 shift
7871 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7872 CONFIG_SHELL='$SHELL'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007873 export CONFIG_SHELL
Benny Prijono28d3c562012-03-30 07:10:13 +00007874 exec "\$@"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007875fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007876
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007877_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007879exec 5>>config.log
7880{
7881 echo
7882 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7883## Running $as_me. ##
7884_ASBOX
Benny Prijono28d3c562012-03-30 07:10:13 +00007885 $as_echo "$ac_log"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007886} >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007887
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007888_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007890_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007891
Benny Prijono28d3c562012-03-30 07:10:13 +00007892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007893
7894# Handling of arguments.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007895for ac_config_target in $ac_config_targets
7896do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007897 case $ac_config_target in
7898 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
7899 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
7900 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
7901 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
7902 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
7903 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
7904 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
Benny Prijono8ec5eae2010-05-12 10:59:20 +00007905 "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007906 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
7907 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
7908 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
7909 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007910 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijono8a9b3b22010-01-14 14:46:54 +00007911 "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 +00007912
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007913 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007914 esac
7915done
7916
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007917
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007918# If the user did not use the arguments to specify the items to instantiate,
7919# then the envvar interface is used. Set only those that are not.
7920# We use the long form for the default assignment because of an extremely
7921# bizarre bug on SunOS 4.1.3.
7922if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007923 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007924 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7925fi
7926
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007927# Have a temporary directory for convenience. Make it in the build tree
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007928# simply because there is no reason against having it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007929# creating and moving files from /tmp can sometimes cause problems.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007930# Hook for its removal unless debugging.
7931# Note that there is a small window in which the directory will not be cleaned:
7932# after its creation but before its name has been assigned to `$tmp'.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007933$debug ||
7934{
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007935 tmp= ac_tmp=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007936 trap 'exit_status=$?
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007937 : "${ac_tmp:=$tmp}"
7938 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007939' 0
Benny Prijono28d3c562012-03-30 07:10:13 +00007940 trap 'as_fn_exit 1' 1 2 13 15
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007941}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007942# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007943
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007944{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007945 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007946 test -d "$tmp"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007947} ||
7948{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007949 tmp=./conf$$-$RANDOM
7950 (umask 077 && mkdir "$tmp")
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007951} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7952ac_tmp=$tmp
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007953
Benny Prijono28d3c562012-03-30 07:10:13 +00007954# Set up the scripts for CONFIG_FILES section.
7955# No need to generate them if there are no CONFIG_FILES.
7956# This happens for instance with `./config.status config.h'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007957if test -n "$CONFIG_FILES"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007958
Benny Prijono28d3c562012-03-30 07:10:13 +00007959
7960ac_cr=`echo X | tr X '\015'`
7961# On cygwin, bash can eat \r inside `` if the user requested igncr.
7962# But we know of no other shell where ac_cr would be empty at this
7963# point, so we can use a bashism as a fallback.
7964if test "x$ac_cr" = x; then
7965 eval ac_cr=\$\'\\r\'
7966fi
7967ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7968if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007969 ac_cs_awk_cr='\\r'
Benny Prijono28d3c562012-03-30 07:10:13 +00007970else
7971 ac_cs_awk_cr=$ac_cr
7972fi
7973
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007974echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007975_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007976
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007977
Benny Prijono28d3c562012-03-30 07:10:13 +00007978{
7979 echo "cat >conf$$subs.awk <<_ACEOF" &&
7980 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7981 echo "_ACEOF"
7982} >conf$$subs.sh ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007983 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7984ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007985ac_delim='%!_!# '
7986for ac_last_try in false false false false false :; do
Benny Prijono28d3c562012-03-30 07:10:13 +00007987 . ./conf$$subs.sh ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007988 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007989
Benny Prijono28d3c562012-03-30 07:10:13 +00007990 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7991 if test $ac_delim_n = $ac_delim_num; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007992 break
7993 elif $ac_last_try; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007994 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007995 else
7996 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007997 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007998done
Benny Prijono28d3c562012-03-30 07:10:13 +00007999rm -f conf$$subs.sh
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008000
Benny Prijono28d3c562012-03-30 07:10:13 +00008001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008002cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008003_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008004sed -n '
8005h
8006s/^/S["/; s/!.*/"]=/
8007p
8008g
8009s/^[^!]*!//
8010:repl
8011t repl
8012s/'"$ac_delim"'$//
8013t delim
8014:nl
8015h
8016s/\(.\{148\}\)..*/\1/
8017t more1
8018s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8019p
8020n
8021b repl
8022:more1
8023s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8024p
8025g
8026s/.\{148\}//
8027t nl
8028:delim
8029h
8030s/\(.\{148\}\)..*/\1/
8031t more2
8032s/["\\]/\\&/g; s/^/"/; s/$/"/
8033p
8034b
8035:more2
8036s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8037p
8038g
8039s/.\{148\}//
8040t delim
8041' <conf$$subs.awk | sed '
8042/^[^""]/{
8043 N
8044 s/\n//
8045}
8046' >>$CONFIG_STATUS || ac_write_fail=1
8047rm -f conf$$subs.awk
8048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8049_ACAWK
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008050cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Benny Prijono28d3c562012-03-30 07:10:13 +00008051 for (key in S) S_is_set[key] = 1
8052 FS = ""
8053
8054}
8055{
8056 line = $ 0
8057 nfields = split(line, field, "@")
8058 substed = 0
8059 len = length(field[1])
8060 for (i = 2; i < nfields; i++) {
8061 key = field[i]
8062 keylen = length(key)
8063 if (S_is_set[key]) {
8064 value = S[key]
8065 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8066 len += length(value) + length(field[++i])
8067 substed = 1
8068 } else
8069 len += 1 + keylen
8070 }
8071
8072 print line
8073}
8074
8075_ACAWK
Benny Prijonod4306432010-05-01 22:05:41 +00008076_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8078if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8079 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8080else
8081 cat
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008082fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8083 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Benny Prijonod4306432010-05-01 22:05:41 +00008084_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008085
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008086# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8087# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008088# trailing colons and then remove the whole line if VPATH becomes empty
8089# (actually we leave an empty line to preserve line numbers).
8090if test "x$srcdir" = x.; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008091 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8092h
8093s///
8094s/^/:/
8095s/[ ]*$/:/
8096s/:\$(srcdir):/:/g
8097s/:\${srcdir}:/:/g
8098s/:@srcdir@:/:/g
8099s/^:*//
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008100s/:*$//
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008101x
8102s/\(=[ ]*\).*/\1/
8103G
8104s/\n//
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008105s/^[^=]*=[ ]*$//
8106}'
8107fi
8108
Benny Prijono28d3c562012-03-30 07:10:13 +00008109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008110fi # test -n "$CONFIG_FILES"
8111
Benny Prijono28d3c562012-03-30 07:10:13 +00008112# Set up the scripts for CONFIG_HEADERS section.
8113# No need to generate them if there are no CONFIG_HEADERS.
8114# This happens for instance with `./config.status Makefile'.
8115if test -n "$CONFIG_HEADERS"; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008116cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Benny Prijono28d3c562012-03-30 07:10:13 +00008117BEGIN {
8118_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008119
Benny Prijono28d3c562012-03-30 07:10:13 +00008120# Transform confdefs.h into an awk script `defines.awk', embedded as
8121# here-document in config.status, that substitutes the proper values into
8122# config.h.in to produce config.h.
8123
8124# Create a delimiter string that does not exist in confdefs.h, to ease
8125# handling of long lines.
8126ac_delim='%!_!# '
8127for ac_last_try in false false :; do
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008128 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8129 if test -z "$ac_tt"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00008130 break
8131 elif $ac_last_try; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008132 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Benny Prijono28d3c562012-03-30 07:10:13 +00008133 else
8134 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8135 fi
8136done
8137
8138# For the awk script, D is an array of macro values keyed by name,
8139# likewise P contains macro parameters if any. Preserve backslash
8140# newline sequences.
8141
8142ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8143sed -n '
8144s/.\{148\}/&'"$ac_delim"'/g
8145t rset
8146:rset
8147s/^[ ]*#[ ]*define[ ][ ]*/ /
8148t def
8149d
8150:def
8151s/\\$//
8152t bsnl
8153s/["\\]/\\&/g
8154s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8155D["\1"]=" \3"/p
8156s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8157d
8158:bsnl
8159s/["\\]/\\&/g
8160s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8161D["\1"]=" \3\\\\\\n"\\/p
8162t cont
8163s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8164t cont
8165d
8166:cont
8167n
8168s/.\{148\}/&'"$ac_delim"'/g
8169t clear
8170:clear
8171s/\\$//
8172t bsnlc
8173s/["\\]/\\&/g; s/^/"/; s/$/"/p
8174d
8175:bsnlc
8176s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8177b cont
8178' <confdefs.h | sed '
8179s/'"$ac_delim"'/"\\\
8180"/g' >>$CONFIG_STATUS || ac_write_fail=1
8181
8182cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8183 for (key in D) D_is_set[key] = 1
8184 FS = ""
8185}
8186/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8187 line = \$ 0
8188 split(line, arg, " ")
8189 if (arg[1] == "#") {
8190 defundef = arg[2]
8191 mac1 = arg[3]
8192 } else {
8193 defundef = substr(arg[1], 2)
8194 mac1 = arg[2]
8195 }
8196 split(mac1, mac2, "(") #)
8197 macro = mac2[1]
8198 prefix = substr(line, 1, index(line, defundef) - 1)
8199 if (D_is_set[macro]) {
8200 # Preserve the white space surrounding the "#".
8201 print prefix "define", macro P[macro] D[macro]
8202 next
8203 } else {
8204 # Replace #undef with comments. This is necessary, for example,
8205 # in the case of _POSIX_SOURCE, which is predefined and required
8206 # on some systems where configure will not decide to define it.
8207 if (defundef == "undef") {
8208 print "/*", prefix defundef, macro, "*/"
8209 next
8210 }
8211 }
8212}
8213{ print }
8214_ACAWK
8215_ACEOF
8216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008217 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Benny Prijono28d3c562012-03-30 07:10:13 +00008218fi # test -n "$CONFIG_HEADERS"
8219
8220
8221eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8222shift
8223for ac_tag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008224do
8225 case $ac_tag in
8226 :[FHLC]) ac_mode=$ac_tag; continue;;
8227 esac
8228 case $ac_mode$ac_tag in
8229 :[FHL]*:*);;
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008230 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008231 :[FH]-) ac_tag=-:-;;
8232 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8233 esac
8234 ac_save_IFS=$IFS
8235 IFS=:
8236 set x $ac_tag
8237 IFS=$ac_save_IFS
8238 shift
8239 ac_file=$1
8240 shift
8241
8242 case $ac_mode in
8243 :L) ac_source=$1;;
8244 :[FH])
8245 ac_file_inputs=
8246 for ac_f
8247 do
8248 case $ac_f in
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008249 -) ac_f="$ac_tmp/stdin";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008250 *) # Look for the file first in the build tree, then in the source tree
8251 # (if the path is not absolute). The absolute path cannot be DOS-style,
8252 # because $ac_f cannot contain `:'.
8253 test -f "$ac_f" ||
8254 case $ac_f in
8255 [\\/$]*) false;;
8256 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8257 esac ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008258 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008259 esac
Benny Prijono28d3c562012-03-30 07:10:13 +00008260 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8261 as_fn_append ac_file_inputs " '$ac_f'"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008262 done
8263
8264 # Let's still pretend it is `configure' which instantiates (i.e., don't
8265 # use $as_me), people would be surprised to read:
8266 # /* config.h. Generated by config.status. */
Benny Prijono28d3c562012-03-30 07:10:13 +00008267 configure_input='Generated from '`
8268 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8269 `' by configure.'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008270 if test x"$ac_file" != x-; then
8271 configure_input="$ac_file. $configure_input"
Benny Prijono28d3c562012-03-30 07:10:13 +00008272 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8273$as_echo "$as_me: creating $ac_file" >&6;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008274 fi
Benny Prijono28d3c562012-03-30 07:10:13 +00008275 # Neutralize special characters interpreted by sed in replacement strings.
8276 case $configure_input in #(
8277 *\&* | *\|* | *\\* )
8278 ac_sed_conf_input=`$as_echo "$configure_input" |
8279 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8280 *) ac_sed_conf_input=$configure_input;;
8281 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008282
8283 case $ac_tag in
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008284 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8285 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008286 esac
8287 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008288 esac
8289
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008290 ac_dir=`$as_dirname -- "$ac_file" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008291$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8292 X"$ac_file" : 'X\(//\)[^/]' \| \
8293 X"$ac_file" : 'X\(//\)$' \| \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008294 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono28d3c562012-03-30 07:10:13 +00008295$as_echo X"$ac_file" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8297 s//\1/
8298 q
8299 }
8300 /^X\(\/\/\)[^/].*/{
8301 s//\1/
8302 q
8303 }
8304 /^X\(\/\/\)$/{
8305 s//\1/
8306 q
8307 }
8308 /^X\(\/\).*/{
8309 s//\1/
8310 q
8311 }
8312 s/.*/./; q'`
Benny Prijono28d3c562012-03-30 07:10:13 +00008313 as_dir="$ac_dir"; as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008314 ac_builddir=.
8315
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008316case "$ac_dir" in
8317.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8318*)
Benny Prijono28d3c562012-03-30 07:10:13 +00008319 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008320 # A ".." for each directory in $ac_dir_suffix.
Benny Prijono28d3c562012-03-30 07:10:13 +00008321 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008322 case $ac_top_builddir_sub in
8323 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8324 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8325 esac ;;
8326esac
8327ac_abs_top_builddir=$ac_pwd
8328ac_abs_builddir=$ac_pwd$ac_dir_suffix
8329# for backward compatibility:
8330ac_top_builddir=$ac_top_build_prefix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008331
8332case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008333 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008334 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008335 ac_top_srcdir=$ac_top_builddir_sub
8336 ac_abs_top_srcdir=$ac_pwd ;;
8337 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008338 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008339 ac_top_srcdir=$srcdir
8340 ac_abs_top_srcdir=$srcdir ;;
8341 *) # Relative name.
8342 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8343 ac_top_srcdir=$ac_top_build_prefix$srcdir
8344 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008345esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008346ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono9489e7a2008-09-19 22:18:50 +00008347
Benny Prijonoe2746132008-09-27 13:16:35 +00008348
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008349 case $ac_mode in
8350 :F)
8351 #
8352 # CONFIG_FILE
8353 #
Benny Prijonoe2746132008-09-27 13:16:35 +00008354
Benny Prijonoe2746132008-09-27 13:16:35 +00008355_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008356
Benny Prijono28d3c562012-03-30 07:10:13 +00008357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008358# If the template does not know about datarootdir, expand it.
8359# FIXME: This hack should be removed a few years after 2.60.
8360ac_datarootdir_hack=; ac_datarootdir_seen=
Benny Prijono28d3c562012-03-30 07:10:13 +00008361ac_sed_dataroot='
8362/datarootdir/ {
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008363 p
8364 q
8365}
8366/@datadir@/p
8367/@docdir@/p
8368/@infodir@/p
8369/@localedir@/p
Benny Prijono28d3c562012-03-30 07:10:13 +00008370/@mandir@/p'
8371case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008372*datarootdir*) ac_datarootdir_seen=yes;;
8373*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Benny Prijono28d3c562012-03-30 07:10:13 +00008374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8375$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008376_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008378 ac_datarootdir_hack='
8379 s&@datadir@&$datadir&g
8380 s&@docdir@&$docdir&g
8381 s&@infodir@&$infodir&g
8382 s&@localedir@&$localedir&g
8383 s&@mandir@&$mandir&g
Benny Prijono28d3c562012-03-30 07:10:13 +00008384 s&\\\${datarootdir}&$datarootdir&g' ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008385esac
8386_ACEOF
8387
8388# Neutralize VPATH when `$srcdir' = `.'.
8389# Shell code in configure.ac might set extrasub.
8390# FIXME: do we really want to maintain this feature?
Benny Prijono28d3c562012-03-30 07:10:13 +00008391cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8392ac_sed_extra="$ac_vpsub
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008393$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008394_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008396:t
8397/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Benny Prijono28d3c562012-03-30 07:10:13 +00008398s|@configure_input@|$ac_sed_conf_input|;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008399s&@top_builddir@&$ac_top_builddir_sub&;t t
Benny Prijono28d3c562012-03-30 07:10:13 +00008400s&@top_build_prefix@&$ac_top_build_prefix&;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008401s&@srcdir@&$ac_srcdir&;t t
8402s&@abs_srcdir@&$ac_abs_srcdir&;t t
8403s&@top_srcdir@&$ac_top_srcdir&;t t
8404s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8405s&@builddir@&$ac_builddir&;t t
8406s&@abs_builddir@&$ac_abs_builddir&;t t
8407s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8408$ac_datarootdir_hack
Benny Prijono28d3c562012-03-30 07:10:13 +00008409"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008410eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8411 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008412
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008413test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008414 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8415 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8416 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Benny Prijono28d3c562012-03-30 07:10:13 +00008417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008418which seems to be undefined. Please make sure it is defined" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00008419$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008420which seems to be undefined. Please make sure it is defined" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008421
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008422 rm -f "$ac_tmp/stdin"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008423 case $ac_file in
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008424 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8425 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Benny Prijono28d3c562012-03-30 07:10:13 +00008426 esac \
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008427 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008428 ;;
8429 :H)
8430 #
8431 # CONFIG_HEADER
8432 #
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008433 if test x"$ac_file" != x-; then
Benny Prijono28d3c562012-03-30 07:10:13 +00008434 {
8435 $as_echo "/* $configure_input */" \
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008436 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8437 } >"$ac_tmp/config.h" \
8438 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8439 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Benny Prijono28d3c562012-03-30 07:10:13 +00008440 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8441$as_echo "$as_me: $ac_file is unchanged" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008442 else
Benny Prijono28d3c562012-03-30 07:10:13 +00008443 rm -f "$ac_file"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008444 mv "$ac_tmp/config.h" "$ac_file" \
8445 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008446 fi
8447 else
Benny Prijono28d3c562012-03-30 07:10:13 +00008448 $as_echo "/* $configure_input */" \
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008449 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8450 || as_fn_error $? "could not create -" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008451 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008452 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008453
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008454
8455 esac
8456
8457done # for ac_tag
8458
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008459
Benny Prijono28d3c562012-03-30 07:10:13 +00008460as_fn_exit 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008461_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008462ac_clean_files=$ac_clean_files_save
8463
Benny Prijono28d3c562012-03-30 07:10:13 +00008464test $ac_write_fail = 0 ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008465 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Benny Prijono28d3c562012-03-30 07:10:13 +00008466
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008467
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008468# configure is writing to config.log, and then calls config.status.
8469# config.status does its own redirection, appending to config.log.
8470# Unfortunately, on DOS this fails, as config.log is still kept open
8471# by configure, so config.status won't be able to write to it; its
8472# output is simply discarded. So we exec the FD to /dev/null,
8473# effectively closing config.log, so it can be properly (re)opened and
8474# appended to by config.status. When coming back to configure, we
8475# need to make the FD available again.
8476if test "$no_create" != yes; then
8477 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008478 ac_config_status_args=
8479 test "$silent" = yes &&
8480 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008481 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008482 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008483 exec 5>>config.log
8484 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8485 # would make configure fail if this is the last instruction.
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008486 $ac_cs_success || as_fn_exit 1
Benny Prijono28d3c562012-03-30 07:10:13 +00008487fi
8488if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8490$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Benny Prijonod5233702010-01-13 13:09:45 +00008491fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008492
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008493
Benny Prijonod9627842007-04-18 09:24:31 +00008494
Benny Prijono28d3c562012-03-30 07:10:13 +00008495{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
Benny Prijonod9627842007-04-18 09:24:31 +00008496
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008497Configurations 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 +00008498
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008499Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00008500 - 'user.mak'
8501 - 'pjlib/include/pj/config_site.h'
8502
8503The next step now is to run 'make dep' and 'make'.
8504" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00008505$as_echo "
Benny Prijonod9627842007-04-18 09:24:31 +00008506
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008507Configurations 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 +00008508
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008509Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00008510 - 'user.mak'
8511 - 'pjlib/include/pj/config_site.h'
8512
8513The next step now is to run 'make dep' and 'make'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008514" >&6; }
Benny Prijonod9627842007-04-18 09:24:31 +00008515