blob: 33ed0be2e89915f0d03ca44268921c7438d37e4e [file] [log] [blame]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Sauw Ming2f91da02012-06-07 02:24:51 +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 Ming2f91da02012-06-07 02:24:51 +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 Ming2f91da02012-06-07 02:24:51 +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 Ming2f91da02012-06-07 02:24:51 +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 Ming2f91da02012-06-07 02:24:51 +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 Ming2f91da02012-06-07 02:24:51 +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 Ming2f91da02012-06-07 02:24:51 +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 Ming2f91da02012-06-07 02:24:51 +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 Ming2f91da02012-06-07 02:24:51 +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 Ming2f91da02012-06-07 02:24:51 +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 Ming2f91da02012-06-07 02:24:51 +0000532 as_ln_s='cp -pR'
Benny Prijono28d3c562012-03-30 07:10:13 +0000533 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000534else
Sauw Ming2f91da02012-06-07 02:24:51 +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 Ming2f91da02012-06-07 02:24:51 +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
Sauw Ming03df4242012-09-25 02:23:06 +0000626silk_present
627silk_h_present
628ac_no_silk
Sauw Ming2f67f472013-01-23 06:18:18 +0000629opencore_amrwb_dec_present
630opencore_amrwb_dec_h_present
631opencore_amrwb_enc_present
632opencore_amrwb_enc_h_present
Benny Prijono28d3c562012-03-30 07:10:13 +0000633opencore_amrnb_present
634opencore_amrnb_h_present
Sauw Ming2f67f472013-01-23 06:18:18 +0000635ac_no_opencore_amrwb
Benny Prijono28d3c562012-03-30 07:10:13 +0000636ac_no_opencore_amrnb
637libcrypto_present
638libssl_present
639openssl_h_present
640ac_no_ssl
641ac_v4l2_ldflags
642ac_v4l2_cflags
Benny Prijonoeeebfab2012-04-23 13:46:21 +0000643PKG_CONFIG
644SAVED_PKG_CONFIG_PATH
Benny Prijono28d3c562012-03-30 07:10:13 +0000645ac_ffmpeg_ldflags
646ac_ffmpeg_cflags
647ac_has_ffmpeg
648ac_sdl_ldflags
649ac_sdl_cflags
Nanang Izzuddin08b20fe2012-06-06 09:37:25 +0000650SDL_CONFIG
Benny Prijono28d3c562012-03-30 07:10:13 +0000651ac_resample_dll
652ac_no_ilbc_codec
653ac_no_speex_codec
654ac_no_g7221_codec
655ac_no_g722_codec
656ac_no_gsm_codec
657ac_no_l16_codec
658ac_no_g711_codec
659ac_no_speex_aec
660ac_no_large_filter
661ac_no_small_filter
662ac_qt_cflags
663ac_pjmedia_video_has_qt
664ac_ios_cflags
665ac_pjmedia_video_has_ios
666ac_pjmedia_video
667ac_pa_use_oss
668ac_pa_use_alsa
669ac_pa_cflags
670ac_external_pa
671ac_pjmedia_snd
672ac_external_gsm
673ac_external_speex
674ac_os_objs
675EGREP
676GREP
677CPP
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000678ac_cross_compile
Benny Prijono28d3c562012-03-30 07:10:13 +0000679ac_shlib_suffix
680ac_build_mak_vars
681ac_pjdir
682CC_CFLAGS
683CC_OPTIMIZE
684CC_DEF
685CC_INC
686CC_OUT
687LIBEXT2
688LIBEXT
689RANLIB
690LDOUT
691LD
692AR
693ac_ct_CXX
694CXXFLAGS
695CXX
696OBJEXT
697EXEEXT
698ac_ct_CC
699CPPFLAGS
700LDFLAGS
701CFLAGS
702CC
703target_os
704target_vendor
705target_cpu
706target
707host_os
708host_vendor
709host_cpu
710host
711build_os
712build_vendor
713build_cpu
714build
715target_alias
716host_alias
717build_alias
718LIBS
719ECHO_T
720ECHO_N
721ECHO_C
722DEFS
723mandir
724localedir
725libdir
726psdir
727pdfdir
728dvidir
729htmldir
730infodir
731docdir
732oldincludedir
733includedir
734localstatedir
735sharedstatedir
736sysconfdir
737datadir
738datarootdir
739libexecdir
740sbindir
741bindir
742program_transform_name
743prefix
744exec_prefix
745PACKAGE_URL
746PACKAGE_BUGREPORT
747PACKAGE_STRING
748PACKAGE_VERSION
749PACKAGE_TARNAME
750PACKAGE_NAME
751PATH_SEPARATOR
752SHELL'
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000753ac_subst_files=''
Benny Prijono28d3c562012-03-30 07:10:13 +0000754ac_user_opts='
755enable_option_checking
756enable_floating_point
757enable_epoll
758with_external_speex
759with_external_gsm
760enable_sound
761with_external_pa
762enable_oss
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +0000763enable_video
Benny Prijono28d3c562012-03-30 07:10:13 +0000764enable_ext_sound
765enable_small_filter
766enable_large_filter
767enable_speex_aec
768enable_g711_codec
769enable_l16_codec
770enable_gsm_codec
771enable_g722_codec
772enable_g7221_codec
773enable_speex_codec
774enable_ilbc_codec
775enable_libsamplerate
776enable_resample_dll
777with_sdl
778enable_sdl
Benny Prijono28d3c562012-03-30 07:10:13 +0000779with_ffmpeg
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000780enable_ffmpeg
Benny Prijono28d3c562012-03-30 07:10:13 +0000781enable_v4l2
782enable_ipp
783with_ipp
784with_ipp_samples
785with_ipp_arch
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000786with_ssl
Benny Prijono28d3c562012-03-30 07:10:13 +0000787enable_ssl
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000788with_opencore_amrnb
Sauw Ming2f67f472013-01-23 06:18:18 +0000789with_opencore_amr
790with_opencore_amrwbenc
791enable_opencore_amr
Sauw Ming03df4242012-09-25 02:23:06 +0000792with_silk
793enable_silk
Benny Prijono28d3c562012-03-30 07:10:13 +0000794'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000795 ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801LIBS
802CPPFLAGS
803CXX
804CXXFLAGS
805CCC
806CPP'
807
Benny Prijono7e0d75f2006-12-25 20:34:14 +0000808
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000809# Initialize some variables set by options.
810ac_init_help=
811ac_init_version=false
Benny Prijono28d3c562012-03-30 07:10:13 +0000812ac_unrecognized_opts=
813ac_unrecognized_sep=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000814# The variables have the same names as the options, with
815# dashes changed to underlines.
816cache_file=/dev/null
817exec_prefix=NONE
818no_create=
819no_recursion=
820prefix=NONE
821program_prefix=NONE
822program_suffix=NONE
823program_transform_name=s,x,x,
824silent=
825site=
826srcdir=
827verbose=
828x_includes=NONE
829x_libraries=NONE
830
831# Installation directory options.
832# These are left unexpanded so users can "make install exec_prefix=/foo"
833# and all the variables that are supposed to be based on exec_prefix
834# by default will actually change.
835# Use braces instead of parens because sh, perl, etc. also accept them.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000836# (The list follows the same order as the GNU Coding Standards.)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000837bindir='${exec_prefix}/bin'
838sbindir='${exec_prefix}/sbin'
839libexecdir='${exec_prefix}/libexec'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000840datarootdir='${prefix}/share'
841datadir='${datarootdir}'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000842sysconfdir='${prefix}/etc'
843sharedstatedir='${prefix}/com'
844localstatedir='${prefix}/var'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000845includedir='${prefix}/include'
846oldincludedir='/usr/include'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000847docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848infodir='${datarootdir}/info'
849htmldir='${docdir}'
850dvidir='${docdir}'
851pdfdir='${docdir}'
852psdir='${docdir}'
853libdir='${exec_prefix}/lib'
854localedir='${datarootdir}/locale'
855mandir='${datarootdir}/man'
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000856
857ac_prev=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000858ac_dashdash=
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000859for ac_option
860do
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000863 eval $ac_prev=\$ac_option
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000864 ac_prev=
865 continue
866 fi
867
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000868 case $ac_option in
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 *=) ac_optarg= ;;
871 *) ac_optarg=yes ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000872 esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000873
874 # Accept the important Cygnus configure options, so we can diagnose typos.
875
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000876 case $ac_dashdash$ac_option in
877 --)
878 ac_dashdash=yes ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000879
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 ac_prev=bindir ;;
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883 bindir=$ac_optarg ;;
884
885 -build | --build | --buil | --bui | --bu)
886 ac_prev=build_alias ;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias=$ac_optarg ;;
889
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file=$ac_optarg ;;
896
897 --config-cache | -C)
898 cache_file=config.cache ;;
899
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000900 -datadir | --datadir | --datadi | --datad)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000901 ac_prev=datadir ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000903 datadir=$ac_optarg ;;
904
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
911
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000912 -disable-* | --disable-*)
Benny Prijono28d3c562012-03-30 07:10:13 +0000913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000914 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +0000915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000916 as_fn_error $? "invalid feature name: $ac_useropt"
Benny Prijono28d3c562012-03-30 07:10:13 +0000917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921"enable_$ac_useropt"
922"*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=no ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000937
938 -enable-* | --enable-*)
Benny Prijono28d3c562012-03-30 07:10:13 +0000939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000940 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +0000941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Sauw Ming4e4ec7e2012-06-01 04:27:01 +0000942 as_fn_error $? "invalid feature name: $ac_useropt"
Benny Prijono28d3c562012-03-30 07:10:13 +0000943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947"enable_$ac_useropt"
948"*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000953
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
962
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
965 with_gas=yes ;;
966
967 -help | --help | --hel | --he | -h)
968 ac_init_help=long ;;
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
973
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
978
Nanang Izzuddin56e380a2009-04-15 14:45:41 +0000979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 ac_prev=htmldir ;;
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 | --ht=*)
983 htmldir=$ac_optarg ;;
984
Benny Prijonoa9b372a2006-07-24 02:07:11 +0000985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
991
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 ac_prev=infodir ;;
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
996
997 -libdir | --libdir | --libdi | --libd)
998 ac_prev=libdir ;;
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1001
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1008
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1013
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001014 -localstatedir | --localstatedir | --localstatedi | --localstated \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001015 | --localstate | --localstat | --localsta | --localst | --locals)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001019 localstatedir=$ac_optarg ;;
1020
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 ac_prev=mandir ;;
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1025
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1028 with_fp=no ;;
1029
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001031 | --no-cr | --no-c | -n)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001032 no_create=yes ;;
1033
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 no_recursion=yes ;;
1037
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1046
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 ac_prev=prefix ;;
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1051
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1058
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1065
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name=$ac_optarg ;;
1082
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 ac_prev=pdfdir ;;
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1087
1088 -psdir | --psdir | --psdi | --psd | --ps)
1089 ac_prev=psdir ;;
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 psdir=$ac_optarg ;;
1092
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 silent=yes ;;
1096
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
1101 sbindir=$ac_optarg ;;
1102
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
1112 sharedstatedir=$ac_optarg ;;
1113
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
1117 site=$ac_optarg ;;
1118
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1123
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1130
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1135
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1138
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1141
1142 -with-* | --with-*)
Benny Prijono28d3c562012-03-30 07:10:13 +00001143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001144 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +00001145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001146 as_fn_error $? "invalid package name: $ac_useropt"
Benny Prijono28d3c562012-03-30 07:10:13 +00001147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151"with_$ac_useropt"
1152"*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=\$ac_optarg ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001157
1158 -without-* | --without-*)
Benny Prijono28d3c562012-03-30 07:10:13 +00001159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001160 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +00001161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001162 as_fn_error $? "invalid package name: $ac_useropt"
Benny Prijono28d3c562012-03-30 07:10:13 +00001163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167"with_$ac_useropt"
1168"*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001173
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1177
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1184
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1191
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001192 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193Try \`$0 --help' for more information"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001194 ;;
1195
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
Benny Prijono28d3c562012-03-30 07:10:13 +00001199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00001202 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001203 eval $ac_envvar=\$ac_optarg
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001204 export $ac_envvar ;;
1205
1206 *)
1207 # FIXME: should be removed in autoconf 3.0.
Benny Prijono28d3c562012-03-30 07:10:13 +00001208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Benny Prijono28d3c562012-03-30 07:10:13 +00001210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Sauw Ming2f91da02012-06-07 02:24:51 +00001211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001212 ;;
1213
1214 esac
1215done
1216
1217if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001219 as_fn_error $? "missing argument to $ac_option"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001220fi
1221
Benny Prijono28d3c562012-03-30 07:10:13 +00001222if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00001226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 esac
1228fi
1229
1230# Check all directory arguments for consistency.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001231for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001235do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001236 eval ac_val=\$$ac_var
Benny Prijono28d3c562012-03-30 07:10:13 +00001237 # Remove trailing slashes.
1238 case $ac_val in
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1242 esac
1243 # Be sure to have absolute directory names.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001244 case $ac_val in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001247 esac
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001249done
1250
1251# There might be people who depend on the old broken behavior: `$host'
1252# used to hold the argument of --host etc.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001253# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001254build=$build_alias
1255host=$host_alias
1256target=$target_alias
1257
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001258# FIXME: To remove some day.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001259if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001262 elif test "x$build_alias" != "x$host_alias"; then
1263 cross_compiling=yes
1264 fi
1265fi
1266
1267ac_tool_prefix=
1268test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270test "$silent" = yes && exec 6>/dev/null
1271
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001272
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001273ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274ac_ls_di=`ls -di .` &&
1275ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001276 as_fn_error $? "working directory cannot be determined"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001277test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001278 as_fn_error $? "pwd does not report name of working directory"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001279
1280
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001281# Find the source files, if location was not specified.
1282if test -z "$srcdir"; then
1283 ac_srcdir_defaulted=yes
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001284 # Try the directory containing this script, then the parent directory.
Benny Prijono28d3c562012-03-30 07:10:13 +00001285 ac_confdir=`$as_dirname -- "$as_myself" ||
1286$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290$as_echo X"$as_myself" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)[^/].*/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)$/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\).*/{
1304 s//\1/
1305 q
1306 }
1307 s/.*/./; q'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001308 srcdir=$ac_confdir
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001309 if test ! -r "$srcdir/$ac_unique_file"; then
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001310 srcdir=..
1311 fi
1312else
1313 ac_srcdir_defaulted=no
1314fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001315if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Benny Prijono9489e7a2008-09-19 22:18:50 +00001318fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001319ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320ac_abs_confdir=`(
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001322 pwd)`
1323# When building in place, set srcdir=.
1324if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 srcdir=.
1326fi
1327# Remove unnecessary trailing slashes from srcdir.
1328# Double slashes in file names in object file debugging info
1329# mess up M-x gdb in Emacs.
1330case $srcdir in
1331*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332esac
1333for ac_var in $ac_precious_vars; do
1334 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_env_${ac_var}_value=\$${ac_var}
1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001339
1340#
1341# Report the --help message.
1342#
1343if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001346 cat <<_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00001347\`configure' configures pjproject 2.x to adapt to many kinds of systems.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001348
1349Usage: $0 [OPTION]... [VAR=VALUE]...
1350
1351To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352VAR=VALUE. See below for descriptions of some of the useful variables.
1353
1354Defaults for the options are specified in brackets.
1355
1356Configuration:
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001361 -q, --quiet, --silent do not print \`checking ...' messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for \`--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1366
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001367Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
Benny Prijono28d3c562012-03-30 07:10:13 +00001369 [$ac_default_prefix]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Benny Prijono28d3c562012-03-30 07:10:13 +00001371 [PREFIX]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001372
1373By default, \`make install' will install all the files in
1374\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1375an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376for instance \`--prefix=\$HOME'.
1377
1378For better control, use the options below.
1379
1380Fine tuning of the installation directories:
Benny Prijono28d3c562012-03-30 07:10:13 +00001381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --libdir=DIR object code libraries [EPREFIX/lib]
1388 --includedir=DIR C header files [PREFIX/include]
1389 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1392 --infodir=DIR info documentation [DATAROOTDIR/info]
1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1394 --mandir=DIR man documentation [DATAROOTDIR/man]
1395 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1396 --htmldir=DIR html documentation [DOCDIR]
1397 --dvidir=DIR dvi documentation [DOCDIR]
1398 --pdfdir=DIR pdf documentation [DOCDIR]
1399 --psdir=DIR ps documentation [DOCDIR]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001400_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001401
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001402 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001403
1404System types:
1405 --build=BUILD configure for building on BUILD [guessed]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001406 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001407 --target=TARGET configure for building compilers for TARGET [HOST]
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001408_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001409fi
1410
1411if test -n "$ac_init_help"; then
1412 case $ac_init_help in
Benny Prijono28d3c562012-03-30 07:10:13 +00001413 short | recursive ) echo "Configuration of pjproject 2.x:";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001414 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001415 cat <<\_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001416
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001417Optional Features:
Benny Prijono28d3c562012-03-30 07:10:13 +00001418 --disable-option-checking ignore unrecognized --enable/--with options
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001419 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1420 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1421 --disable-floating-point
1422 Disable floating point where possible
Benny Prijono9489e7a2008-09-19 22:18:50 +00001423 --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
Benny Prijono1d971622006-09-10 22:27:40 +00001424 --disable-sound Exclude sound (i.e. use null sound)
Benny Prijono0b462322008-03-12 22:44:24 +00001425 --disable-oss Disable OSS audio (default: not disabled)
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00001426 --disable-video Disable video feature
Benny Prijonoebb2c332008-07-28 23:40:58 +00001427 --enable-ext-sound PJMEDIA will not provide any sound device backend
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001428 --disable-small-filter Exclude small filter in resampling
1429 --disable-large-filter Exclude large filter in resampling
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001430 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1431 --disable-g711-codec Exclude G.711 codecs from the build
1432 --disable-l16-codec Exclude Linear/L16 codec family from the build
1433 --disable-gsm-codec Exclude GSM codec in the build
Benny Prijono71f657d2008-03-17 14:24:21 +00001434 --disable-g722-codec Exclude G.722 codec in the build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001435 --disable-g7221-codec Exclude G.7221 codec in the build
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001436 --disable-speex-codec Exclude Speex codecs in the build
1437 --disable-ilbc-codec Exclude iLBC codec in the build
Benny Prijono550a1a62007-10-16 08:54:00 +00001438 --enable-libsamplerate Link with libsamplerate when available. Note that
1439 PJMEDIA_RESAMPLE_IMP must also be configured
Benny Prijono28d3c562012-03-30 07:10:13 +00001440 --enable-resample-dll Build libresample as shared library
Benny Prijonoc45d9512010-12-10 11:04:30 +00001441 --disable-sdl Disable SDL (default: not disabled)
1442 --disable-ffmpeg Disable ffmpeg (default: not disabled)
1443 --disable-v4l2 Disable Video4Linux2 (default: not disabled)
Benny Prijono0822c192008-08-21 20:59:58 +00001444 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
1445 package and samples location using IPPROOT and
1446 IPPSAMPLES env var or with --with-ipp and
1447 --with-ipp-samples options
Benny Prijonoce1db762007-02-14 02:21:08 +00001448 --disable-ssl Exclude SSL support the build (default: autodetect)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001449
Sauw Ming2f67f472013-01-23 06:18:18 +00001450 --disable-opencore-amr Exclude OpenCORE AMR support from the build
Sauw Minge7dbbc82011-10-24 09:28:13 +00001451 (default: autodetect)
1452
Sauw Ming03df4242012-09-25 02:23:06 +00001453 --disable-silk Exclude SILK support from the build (default:
1454 autodetect)
1455
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001456
Benny Prijonofe0c1272010-01-13 16:28:15 +00001457Optional Packages:
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Benny Prijono8a9b3b22010-01-14 14:46:54 +00001460 --with-external-speex Use external Speex development files, not the one in
1461 "third_party" directory. When this option is set,
1462 make sure that Speex is accessible to use (hint: use
1463 CFLAGS and LDFLAGS env var to set the include/lib
1464 paths)
1465 --with-external-gsm Use external GSM codec library, not the one in
1466 "third_party" directory. When this option is set,
1467 make sure that the GSM include/lib files are
1468 accessible to use (hint: use CFLAGS and LDFLAGS env
1469 var to set the include/lib paths)
1470 --with-external-pa Use external PortAudio development files, not the
1471 one in "third_party" directory. When this option is
1472 set, make sure that PortAudio is accessible to use
1473 (hint: use CFLAGS and LDFLAGS env var to set the
1474 include/lib paths)
Benny Prijono5b0af632011-07-20 03:16:25 +00001475 --with-sdl=DIR Specify alternate libSDL prefix
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00001476 --with-ffmpeg=DIR Specify alternate FFMPEG prefix
Benny Prijono3965f192010-02-10 18:46:05 +00001477 --with-ipp=DIR Specify the Intel IPP location
1478 --with-ipp-samples=DIR Specify the Intel IPP samples location
1479 --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or
Benny Prijono46bd0842010-02-12 14:12:41 +00001480 "em64t. Default is blank for IA32"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001481 --with-ssl=DIR Specify alternate libssl prefix
1482 --with-opencore-amrnb=DIR
Sauw Ming2f67f472013-01-23 06:18:18 +00001483 This option is obsolete and replaced by
1484 --with-opencore-amr=DIR
1485 --with-opencore-amr=DIR Specify alternate libopencore-amr prefix
1486 --with-opencore-amrwbenc=DIR
1487 Specify alternate libvo-amrwbenc prefix
Sauw Ming03df4242012-09-25 02:23:06 +00001488 --with-silk=DIR Specify alternate SILK prefix
Benny Prijonofe0c1272010-01-13 16:28:15 +00001489
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001490Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001495 LIBS libraries to pass to the linker, e.g. -l<library>
Benny Prijono28d3c562012-03-30 07:10:13 +00001496 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001497 you have headers in a nonstandard directory <include dir>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00001498 CXX C++ compiler command
1499 CXXFLAGS C++ compiler flags
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001500 CPP C preprocessor
1501
1502Use these variables to override the choices made by `configure' or to help
1503it to find libraries and programs with nonstandard names/locations.
1504
Benny Prijono28d3c562012-03-30 07:10:13 +00001505Report bugs to the package provider.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001506_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001507ac_status=$?
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001508fi
1509
1510if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Benny Prijono28d3c562012-03-30 07:10:13 +00001513 test -d "$ac_dir" ||
1514 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1515 continue
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001516 ac_builddir=.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001517
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001518case "$ac_dir" in
1519.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520*)
Benny Prijono28d3c562012-03-30 07:10:13 +00001521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001522 # A ".." for each directory in $ac_dir_suffix.
Benny Prijono28d3c562012-03-30 07:10:13 +00001523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 esac ;;
1528esac
1529ac_abs_top_builddir=$ac_pwd
1530ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531# for backward compatibility:
1532ac_top_builddir=$ac_top_build_prefix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001533
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001534case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001535 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001536 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001540 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1543 *) # Relative name.
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001547esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001548ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001549
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure" --help=recursive
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001558 else
Benny Prijono28d3c562012-03-30 07:10:13 +00001559 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001560 fi || ac_status=$?
1561 cd "$ac_pwd" || { ac_status=$?; break; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001562 done
1563fi
1564
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001565test -n "$ac_init_help" && exit $ac_status
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001566if $ac_init_version; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001567 cat <<\_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00001568pjproject configure 2.x
Sauw Ming2f91da02012-06-07 02:24:51 +00001569generated by GNU Autoconf 2.69
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001570
Sauw Ming2f91da02012-06-07 02:24:51 +00001571Copyright (C) 2012 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001572This configure script is free software; the Free Software Foundation
1573gives unlimited permission to copy, distribute and modify it.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001574_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001575 exit
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001576fi
Benny Prijono28d3c562012-03-30 07:10:13 +00001577
1578## ------------------------ ##
1579## Autoconf initialization. ##
1580## ------------------------ ##
1581
1582# ac_fn_c_try_compile LINENO
1583# --------------------------
1584# Try to compile conftest.$ac_ext, and return whether this succeeded.
1585ac_fn_c_try_compile ()
1586{
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext
1589 if { { ac_try="$ac_compile"
1590case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593esac
1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595$as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_compile") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1602 fi
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest.$ac_objext; then :
1608 ac_retval=0
1609else
1610 $as_echo "$as_me: failed program was:" >&5
1611sed 's/^/| /' conftest.$ac_ext >&5
1612
1613 ac_retval=1
1614fi
Sauw Ming2f91da02012-06-07 02:24:51 +00001615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001616 as_fn_set_status $ac_retval
1617
1618} # ac_fn_c_try_compile
1619
1620# ac_fn_cxx_try_compile LINENO
1621# ----------------------------
1622# Try to compile conftest.$ac_ext, and return whether this succeeded.
1623ac_fn_cxx_try_compile ()
1624{
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 rm -f conftest.$ac_objext
1627 if { { ac_try="$ac_compile"
1628case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631esac
1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633$as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_compile") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1640 fi
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_cxx_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest.$ac_objext; then :
1646 ac_retval=0
1647else
1648 $as_echo "$as_me: failed program was:" >&5
1649sed 's/^/| /' conftest.$ac_ext >&5
1650
1651 ac_retval=1
1652fi
Sauw Ming2f91da02012-06-07 02:24:51 +00001653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001654 as_fn_set_status $ac_retval
1655
1656} # ac_fn_cxx_try_compile
1657
1658# ac_fn_c_try_link LINENO
1659# -----------------------
1660# Try to link conftest.$ac_ext, and return whether this succeeded.
1661ac_fn_c_try_link ()
1662{
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext conftest$ac_exeext
1665 if { { ac_try="$ac_link"
1666case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669esac
1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671$as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest$ac_exeext && {
1684 test "$cross_compiling" = yes ||
Sauw Ming2f91da02012-06-07 02:24:51 +00001685 test -x conftest$ac_exeext
Benny Prijono28d3c562012-03-30 07:10:13 +00001686 }; then :
1687 ac_retval=0
1688else
1689 $as_echo "$as_me: failed program was:" >&5
1690sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 ac_retval=1
1693fi
1694 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1696 # interfere with the next link command; also delete a directory that is
1697 # left behind by Apple's compiler. We do this before executing the actions.
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Sauw Ming2f91da02012-06-07 02:24:51 +00001699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001700 as_fn_set_status $ac_retval
1701
1702} # ac_fn_c_try_link
1703
1704# ac_fn_c_try_run LINENO
1705# ----------------------
1706# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1707# that executables *can* be run.
1708ac_fn_c_try_run ()
1709{
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_link"
1712case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_link") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1722 { { case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_try") 2>&5
1729 ac_status=$?
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; }; }; then :
1732 ac_retval=0
1733else
1734 $as_echo "$as_me: program exited with status $ac_status" >&5
1735 $as_echo "$as_me: failed program was:" >&5
1736sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 ac_retval=$ac_status
1739fi
1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Sauw Ming2f91da02012-06-07 02:24:51 +00001741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001742 as_fn_set_status $ac_retval
1743
1744} # ac_fn_c_try_run
1745
1746# ac_fn_c_try_cpp LINENO
1747# ----------------------
1748# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1749ac_fn_c_try_cpp ()
1750{
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 if { { ac_try="$ac_cpp conftest.$ac_ext"
1753case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756esac
1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758$as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1765 fi
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001767 test $ac_status = 0; } > conftest.i && {
Benny Prijono28d3c562012-03-30 07:10:13 +00001768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1770 }; then :
1771 ac_retval=0
1772else
1773 $as_echo "$as_me: failed program was:" >&5
1774sed 's/^/| /' conftest.$ac_ext >&5
1775
1776 ac_retval=1
1777fi
Sauw Ming2f91da02012-06-07 02:24:51 +00001778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001779 as_fn_set_status $ac_retval
1780
1781} # ac_fn_c_try_cpp
1782
1783# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1784# -------------------------------------------------------
1785# Tests whether HEADER exists and can be compiled using the include files in
1786# INCLUDES, setting the cache variable VAR accordingly.
1787ac_fn_c_check_header_compile ()
1788{
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791$as_echo_n "checking for $2... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00001792if eval \${$3+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00001793 $as_echo_n "(cached) " >&6
1794else
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796/* end confdefs.h. */
1797$4
1798#include <$2>
1799_ACEOF
1800if ac_fn_c_try_compile "$LINENO"; then :
1801 eval "$3=yes"
1802else
1803 eval "$3=no"
1804fi
1805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806fi
1807eval ac_res=\$$3
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809$as_echo "$ac_res" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00001810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001811
1812} # ac_fn_c_check_header_compile
1813
1814# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1815# -------------------------------------------------------
1816# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1817# the include files in INCLUDES and setting the cache variable VAR
1818# accordingly.
1819ac_fn_c_check_header_mongrel ()
1820{
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Sauw Ming2f91da02012-06-07 02:24:51 +00001822 if eval \${$3+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00001823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824$as_echo_n "checking for $2... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00001825if eval \${$3+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00001826 $as_echo_n "(cached) " >&6
1827fi
1828eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830$as_echo "$ac_res" >&6; }
1831else
1832 # Is the header compilable?
1833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1834$as_echo_n "checking $2 usability... " >&6; }
1835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836/* end confdefs.h. */
1837$4
1838#include <$2>
1839_ACEOF
1840if ac_fn_c_try_compile "$LINENO"; then :
1841 ac_header_compiler=yes
1842else
1843 ac_header_compiler=no
1844fi
1845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1847$as_echo "$ac_header_compiler" >&6; }
1848
1849# Is the header present?
1850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1851$as_echo_n "checking $2 presence... " >&6; }
1852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853/* end confdefs.h. */
1854#include <$2>
1855_ACEOF
1856if ac_fn_c_try_cpp "$LINENO"; then :
1857 ac_header_preproc=yes
1858else
1859 ac_header_preproc=no
1860fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00001861rm -f conftest.err conftest.i conftest.$ac_ext
Benny Prijono28d3c562012-03-30 07:10:13 +00001862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1863$as_echo "$ac_header_preproc" >&6; }
1864
1865# So? What about this header?
1866case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1867 yes:no: )
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1869$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1871$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1872 ;;
1873 no:yes:* )
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1875$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1877$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1879$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1881$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1883$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1884 ;;
1885esac
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887$as_echo_n "checking for $2... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00001888if eval \${$3+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00001889 $as_echo_n "(cached) " >&6
1890else
1891 eval "$3=\$ac_header_compiler"
1892fi
1893eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895$as_echo "$ac_res" >&6; }
1896fi
Sauw Ming2f91da02012-06-07 02:24:51 +00001897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001898
1899} # ac_fn_c_check_header_mongrel
1900
1901# ac_fn_c_check_func LINENO FUNC VAR
1902# ----------------------------------
1903# Tests whether FUNC exists, setting the cache variable VAR accordingly
1904ac_fn_c_check_func ()
1905{
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908$as_echo_n "checking for $2... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00001909if eval \${$3+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00001910 $as_echo_n "(cached) " >&6
1911else
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913/* end confdefs.h. */
1914/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1916#define $2 innocuous_$2
1917
1918/* System header to define __stub macros and hopefully few prototypes,
1919 which can conflict with char $2 (); below.
1920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1921 <limits.h> exists even on freestanding compilers. */
1922
1923#ifdef __STDC__
1924# include <limits.h>
1925#else
1926# include <assert.h>
1927#endif
1928
1929#undef $2
1930
1931/* Override any GCC internal prototype to avoid an error.
1932 Use char because int might match the return type of a GCC
1933 builtin and then its argument prototype would still apply. */
1934#ifdef __cplusplus
1935extern "C"
1936#endif
1937char $2 ();
1938/* The GNU C library defines this for functions which it implements
1939 to always fail with ENOSYS. Some functions are actually named
1940 something starting with __ and the normal name is an alias. */
1941#if defined __stub_$2 || defined __stub___$2
1942choke me
1943#endif
1944
1945int
1946main ()
1947{
1948return $2 ();
1949 ;
1950 return 0;
1951}
1952_ACEOF
1953if ac_fn_c_try_link "$LINENO"; then :
1954 eval "$3=yes"
1955else
1956 eval "$3=no"
1957fi
1958rm -f core conftest.err conftest.$ac_objext \
1959 conftest$ac_exeext conftest.$ac_ext
1960fi
1961eval ac_res=\$$3
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963$as_echo "$ac_res" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00001964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Benny Prijono28d3c562012-03-30 07:10:13 +00001965
1966} # ac_fn_c_check_func
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001967cat >config.log <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001968This file contains any messages produced by compilers while
1969running configure, to aid debugging if configure makes a mistake.
1970
Benny Prijono28d3c562012-03-30 07:10:13 +00001971It was created by pjproject $as_me 2.x, which was
Sauw Ming2f91da02012-06-07 02:24:51 +00001972generated by GNU Autoconf 2.69. Invocation command line was
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001973
1974 $ $0 $@
1975
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001976_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001977exec 5>>config.log
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001978{
1979cat <<_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00001980## --------- ##
1981## Platform. ##
1982## --------- ##
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001983
1984hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1985uname -m = `(uname -m) 2>/dev/null || echo unknown`
1986uname -r = `(uname -r) 2>/dev/null || echo unknown`
1987uname -s = `(uname -s) 2>/dev/null || echo unknown`
1988uname -v = `(uname -v) 2>/dev/null || echo unknown`
1989
1990/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1991/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1992
1993/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1994/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1995/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00001996/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00001997/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1998/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1999/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2000
2001_ASUNAME
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002002
2003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004for as_dir in $PATH
2005do
2006 IFS=$as_save_IFS
2007 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002008 $as_echo "PATH: $as_dir"
2009 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002010IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002011
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002012} >&5
2013
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002014cat >&5 <<_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002015
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002016
2017## ----------- ##
2018## Core tests. ##
2019## ----------- ##
2020
2021_ACEOF
2022
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002023
2024# Keep a trace of the command line.
2025# Strip out --no-create and --no-recursion so they do not pile up.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002026# Strip out --silent because we don't want to record it for future runs.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002027# Also quote any args containing shell meta-characters.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002028# Make two passes to allow for proper duplicate-argument suppression.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002029ac_configure_args=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002030ac_configure_args0=
2031ac_configure_args1=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002032ac_must_keep_next=false
2033for ac_pass in 1 2
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002034do
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002035 for ac_arg
2036 do
2037 case $ac_arg in
2038 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2040 | -silent | --silent | --silen | --sile | --sil)
2041 continue ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002042 *\'*)
Benny Prijono28d3c562012-03-30 07:10:13 +00002043 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002044 esac
2045 case $ac_pass in
Benny Prijono28d3c562012-03-30 07:10:13 +00002046 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002047 2)
Benny Prijono28d3c562012-03-30 07:10:13 +00002048 as_fn_append ac_configure_args1 " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002049 if test $ac_must_keep_next = true; then
2050 ac_must_keep_next=false # Got value, back to normal.
2051 else
2052 case $ac_arg in
2053 *=* | --config-cache | -C | -disable-* | --disable-* \
2054 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2055 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2056 | -with-* | --with-* | -without-* | --without-* | --x)
2057 case "$ac_configure_args0 " in
2058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2059 esac
2060 ;;
2061 -* ) ac_must_keep_next=true ;;
2062 esac
2063 fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002064 as_fn_append ac_configure_args " '$ac_arg'"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002065 ;;
2066 esac
2067 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002068done
Benny Prijono28d3c562012-03-30 07:10:13 +00002069{ ac_configure_args0=; unset ac_configure_args0;}
2070{ ac_configure_args1=; unset ac_configure_args1;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002071
2072# When interrupted or exit'd, cleanup temporary files, and complete
2073# config.log. We remove comments because anyway the quotes in there
2074# would cause problems or look ugly.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002075# WARNING: Use '\'' to represent an apostrophe within the trap.
2076# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002077trap 'exit_status=$?
2078 # Save into config.log some information that might help in debugging.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002079 {
2080 echo
2081
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002082 $as_echo "## ---------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002083## Cache variables. ##
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002084## ---------------- ##"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002085 echo
2086 # The following way of writing the cache mishandles newlines in values,
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002087(
2088 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2089 eval ac_val=\$$ac_var
2090 case $ac_val in #(
2091 *${as_nl}*)
2092 case $ac_var in #(
Benny Prijono28d3c562012-03-30 07:10:13 +00002093 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2094$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002095 esac
2096 case $ac_var in #(
2097 _ | IFS | as_nl) ;; #(
Benny Prijono28d3c562012-03-30 07:10:13 +00002098 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2099 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002100 esac ;;
2101 esac
2102 done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002103 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002104 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2105 *${as_nl}ac_space=\ *)
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002106 sed -n \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002107 "s/'\''/'\''\\\\'\'''\''/g;
2108 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2109 ;; #(
Benny Prijonoe2746132008-09-27 13:16:35 +00002110 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002111 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoe2746132008-09-27 13:16:35 +00002112 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002113 esac |
2114 sort
2115)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002116 echo
2117
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002118 $as_echo "## ----------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002119## Output variables. ##
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002120## ----------------- ##"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002121 echo
2122 for ac_var in $ac_subst_vars
2123 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002124 eval ac_val=\$$ac_var
2125 case $ac_val in
Benny Prijono28d3c562012-03-30 07:10:13 +00002126 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002127 esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002128 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002129 done | sort
2130 echo
2131
2132 if test -n "$ac_subst_files"; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002133 $as_echo "## ------------------- ##
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002134## File substitutions. ##
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002135## ------------------- ##"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002136 echo
2137 for ac_var in $ac_subst_files
2138 do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002139 eval ac_val=\$$ac_var
2140 case $ac_val in
Benny Prijono28d3c562012-03-30 07:10:13 +00002141 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002142 esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002143 $as_echo "$ac_var='\''$ac_val'\''"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002144 done | sort
2145 echo
2146 fi
2147
2148 if test -s confdefs.h; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002149 $as_echo "## ----------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002150## confdefs.h. ##
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002151## ----------- ##"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002152 echo
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002153 cat confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002154 echo
2155 fi
2156 test "$ac_signal" != 0 &&
Benny Prijono28d3c562012-03-30 07:10:13 +00002157 $as_echo "$as_me: caught signal $ac_signal"
2158 $as_echo "$as_me: exit $exit_status"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002159 } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002160 rm -f core *.core core.conftest.* &&
2161 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002162 exit $exit_status
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002163' 0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002164for ac_signal in 1 2 13 15; do
Benny Prijono28d3c562012-03-30 07:10:13 +00002165 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002166done
2167ac_signal=0
2168
2169# confdefs.h avoids OS command line length limits that DEFS can exceed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002170rm -f -r conftest* confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002171
Benny Prijono28d3c562012-03-30 07:10:13 +00002172$as_echo "/* confdefs.h */" > confdefs.h
2173
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002174# Predefined preprocessor variables.
2175
2176cat >>confdefs.h <<_ACEOF
2177#define PACKAGE_NAME "$PACKAGE_NAME"
2178_ACEOF
2179
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002180cat >>confdefs.h <<_ACEOF
2181#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2182_ACEOF
2183
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002184cat >>confdefs.h <<_ACEOF
2185#define PACKAGE_VERSION "$PACKAGE_VERSION"
2186_ACEOF
2187
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002188cat >>confdefs.h <<_ACEOF
2189#define PACKAGE_STRING "$PACKAGE_STRING"
2190_ACEOF
2191
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002192cat >>confdefs.h <<_ACEOF
2193#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2194_ACEOF
2195
Benny Prijono28d3c562012-03-30 07:10:13 +00002196cat >>confdefs.h <<_ACEOF
2197#define PACKAGE_URL "$PACKAGE_URL"
2198_ACEOF
2199
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002200
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002201# Let the site file select an alternate cache file if it wants to.
Benny Prijono28d3c562012-03-30 07:10:13 +00002202# Prefer an explicitly selected file to automatically selected ones.
2203ac_site_file1=NONE
2204ac_site_file2=NONE
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002205if test -n "$CONFIG_SITE"; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002206 # We do not want a PATH search for config.site.
2207 case $CONFIG_SITE in #((
2208 -*) ac_site_file1=./$CONFIG_SITE;;
2209 */*) ac_site_file1=$CONFIG_SITE;;
2210 *) ac_site_file1=./$CONFIG_SITE;;
2211 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002212elif test "x$prefix" != xNONE; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002213 ac_site_file1=$prefix/share/config.site
2214 ac_site_file2=$prefix/etc/config.site
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002215else
Benny Prijono28d3c562012-03-30 07:10:13 +00002216 ac_site_file1=$ac_default_prefix/share/config.site
2217 ac_site_file2=$ac_default_prefix/etc/config.site
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002218fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002219for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002220do
Benny Prijono28d3c562012-03-30 07:10:13 +00002221 test "x$ac_site_file" = xNONE && continue
2222 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2224$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002225 sed 's/^/| /' "$ac_site_file" >&5
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002226 . "$ac_site_file" \
2227 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2229as_fn_error $? "failed to load site script $ac_site_file
Sauw Ming2f91da02012-06-07 02:24:51 +00002230See \`config.log' for more details" "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002231 fi
2232done
2233
2234if test -r "$cache_file"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002235 # Some versions of bash will fail to source /dev/null (special files
2236 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2237 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2239$as_echo "$as_me: loading cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002240 case $cache_file in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002241 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2242 *) . "./$cache_file";;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002243 esac
2244 fi
2245else
Benny Prijono28d3c562012-03-30 07:10:13 +00002246 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2247$as_echo "$as_me: creating cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002248 >$cache_file
2249fi
2250
2251# Check that the precious variables saved in the cache have kept the same
2252# value.
2253ac_cache_corrupted=false
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002254for ac_var in $ac_precious_vars; do
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002255 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2256 eval ac_new_set=\$ac_env_${ac_var}_set
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002257 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2258 eval ac_new_val=\$ac_env_${ac_var}_value
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002259 case $ac_old_set,$ac_new_set in
2260 set,)
Benny Prijono28d3c562012-03-30 07:10:13 +00002261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2262$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 +00002263 ac_cache_corrupted=: ;;
2264 ,set)
Benny Prijono28d3c562012-03-30 07:10:13 +00002265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2266$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002267 ac_cache_corrupted=: ;;
2268 ,);;
2269 *)
2270 if test "x$ac_old_val" != "x$ac_new_val"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002271 # differences in whitespace do not lead to failure.
2272 ac_old_val_w=`echo x $ac_old_val`
2273 ac_new_val_w=`echo x $ac_new_val`
2274 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2276$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2277 ac_cache_corrupted=:
2278 else
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2280$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2281 eval $ac_var=\$ac_old_val
2282 fi
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2284$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2286$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002287 fi;;
2288 esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002289 # Pass precious variables to config.status.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002290 if test "$ac_new_set" = set; then
2291 case $ac_new_val in
Benny Prijono28d3c562012-03-30 07:10:13 +00002292 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002293 *) ac_arg=$ac_var=$ac_new_val ;;
2294 esac
2295 case " $ac_configure_args " in
2296 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Benny Prijono28d3c562012-03-30 07:10:13 +00002297 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002298 esac
2299 fi
2300done
2301if $ac_cache_corrupted; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2305$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002306 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002307fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002308## -------------------- ##
2309## Main body of script. ##
2310## -------------------- ##
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002311
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002312ac_ext=c
2313ac_cpp='$CPP $CPPFLAGS'
2314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2316ac_compiler_gnu=$ac_cv_c_compiler_gnu
2317
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002318
2319
Benny Prijono5b818b22006-09-17 22:58:51 +00002320host_orig="$host"
2321
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002322ac_aux_dir=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002323for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002324 if test -f "$ac_dir/install-sh"; then
2325 ac_aux_dir=$ac_dir
2326 ac_install_sh="$ac_aux_dir/install-sh -c"
2327 break
2328 elif test -f "$ac_dir/install.sh"; then
2329 ac_aux_dir=$ac_dir
2330 ac_install_sh="$ac_aux_dir/install.sh -c"
2331 break
2332 elif test -f "$ac_dir/shtool"; then
2333 ac_aux_dir=$ac_dir
2334 ac_install_sh="$ac_aux_dir/shtool install -c"
2335 break
2336 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002337done
2338if test -z "$ac_aux_dir"; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002339 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002340fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002341
2342# These three variables are undocumented and unsupported,
2343# and are intended to be withdrawn in a future Autoconf release.
2344# They can cause serious problems if a builder's source tree is in a directory
2345# whose full name contains unusual characters.
2346ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2347ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2348ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2349
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002350
2351# Make sure we can run config.sub.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002352$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002353 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002354
Benny Prijono28d3c562012-03-30 07:10:13 +00002355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2356$as_echo_n "checking build system type... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00002357if ${ac_cv_build+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002358 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002359else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002360 ac_build_alias=$build_alias
2361test "x$ac_build_alias" = x &&
2362 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2363test "x$ac_build_alias" = x &&
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002364 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002365ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002366 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002367
2368fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2370$as_echo "$ac_cv_build" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002371case $ac_cv_build in
2372*-*-*) ;;
Sauw Ming2f91da02012-06-07 02:24:51 +00002373*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002374esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002375build=$ac_cv_build
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002376ac_save_IFS=$IFS; IFS='-'
2377set x $ac_cv_build
2378shift
2379build_cpu=$1
2380build_vendor=$2
2381shift; shift
2382# Remember, the first character of IFS is used to create $*,
2383# except with old shells:
2384build_os=$*
2385IFS=$ac_save_IFS
2386case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002387
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002388
Benny Prijono28d3c562012-03-30 07:10:13 +00002389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2390$as_echo_n "checking host system type... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00002391if ${ac_cv_host+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002392 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002393else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002394 if test "x$host_alias" = x; then
2395 ac_cv_host=$ac_cv_build
2396else
2397 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002398 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002399fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002400
2401fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2403$as_echo "$ac_cv_host" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002404case $ac_cv_host in
2405*-*-*) ;;
Sauw Ming2f91da02012-06-07 02:24:51 +00002406*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002407esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002408host=$ac_cv_host
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002409ac_save_IFS=$IFS; IFS='-'
2410set x $ac_cv_host
2411shift
2412host_cpu=$1
2413host_vendor=$2
2414shift; shift
2415# Remember, the first character of IFS is used to create $*,
2416# except with old shells:
2417host_os=$*
2418IFS=$ac_save_IFS
2419case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002420
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002421
Benny Prijono28d3c562012-03-30 07:10:13 +00002422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2423$as_echo_n "checking target system type... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00002424if ${ac_cv_target+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002425 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002426else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002427 if test "x$target_alias" = x; then
2428 ac_cv_target=$ac_cv_host
2429else
2430 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002431 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002432fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002433
2434fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2436$as_echo "$ac_cv_target" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002437case $ac_cv_target in
2438*-*-*) ;;
Sauw Ming2f91da02012-06-07 02:24:51 +00002439*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002440esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002441target=$ac_cv_target
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002442ac_save_IFS=$IFS; IFS='-'
2443set x $ac_cv_target
2444shift
2445target_cpu=$1
2446target_vendor=$2
2447shift; shift
2448# Remember, the first character of IFS is used to create $*,
2449# except with old shells:
2450target_os=$*
2451IFS=$ac_save_IFS
2452case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002453
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002454
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002455# The aliases save the names the user supplied, while $host etc.
2456# will get canonicalized.
2457test -n "$target_alias" &&
2458 test "$program_prefix$program_suffix$program_transform_name" = \
2459 NONENONEs,x,x, &&
2460 program_prefix=${target_alias}-
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002461ac_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 +00002462
Benny Prijono8ec5eae2010-05-12 10:59:20 +00002463ac_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 +00002464
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002465
Benny Prijono12483112007-03-12 10:44:38 +00002466
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002467if test "$CFLAGS" = ""; then
Benny Prijonod1459822006-10-04 20:56:39 +00002468 CFLAGS="-O2"
Benny Prijonoc1fe23d2006-09-13 09:38:06 +00002469else
2470 CFLAGS="$CFLAGS"
2471fi
2472
2473CXXFLAGS="$CFLAGS $CXXFLAGS"
2474
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002475ac_ext=c
2476ac_cpp='$CPP $CPPFLAGS'
2477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2479ac_compiler_gnu=$ac_cv_c_compiler_gnu
2480if test -n "$ac_tool_prefix"; then
2481 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2482set dummy ${ac_tool_prefix}gcc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2484$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00002485if ${ac_cv_prog_CC+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002486 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002487else
2488 if test -n "$CC"; then
2489 ac_cv_prog_CC="$CC" # Let the user override the test.
2490else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492for as_dir in $PATH
2493do
2494 IFS=$as_save_IFS
2495 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002496 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00002497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002498 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002500 break 2
2501 fi
2502done
Benny Prijono28d3c562012-03-30 07:10:13 +00002503 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002504IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002505
2506fi
2507fi
2508CC=$ac_cv_prog_CC
2509if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2511$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002512else
Benny Prijono28d3c562012-03-30 07:10:13 +00002513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2514$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002515fi
2516
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002517
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002518fi
2519if test -z "$ac_cv_prog_CC"; then
2520 ac_ct_CC=$CC
2521 # Extract the first word of "gcc", so it can be a program name with args.
2522set dummy gcc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00002525if ${ac_cv_prog_ac_ct_CC+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002526 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002527else
2528 if test -n "$ac_ct_CC"; then
2529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2530else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532for as_dir in $PATH
2533do
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002536 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00002537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002538 ac_cv_prog_ac_ct_CC="gcc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002540 break 2
2541 fi
2542done
Benny Prijono28d3c562012-03-30 07:10:13 +00002543 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002544IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002545
2546fi
2547fi
2548ac_ct_CC=$ac_cv_prog_ac_ct_CC
2549if test -n "$ac_ct_CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2551$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002552else
Benny Prijono28d3c562012-03-30 07:10:13 +00002553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002555fi
2556
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002557 if test "x$ac_ct_CC" = x; then
2558 CC=""
2559 else
2560 case $cross_compiling:$ac_tool_warned in
2561yes:)
Benny Prijono28d3c562012-03-30 07:10:13 +00002562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002564ac_tool_warned=yes ;;
2565esac
2566 CC=$ac_ct_CC
2567 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002568else
2569 CC="$ac_cv_prog_CC"
2570fi
2571
2572if test -z "$CC"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002573 if test -n "$ac_tool_prefix"; then
2574 # 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 +00002575set dummy ${ac_tool_prefix}cc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2577$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00002578if ${ac_cv_prog_CC+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002579 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002580else
2581 if test -n "$CC"; then
2582 ac_cv_prog_CC="$CC" # Let the user override the test.
2583else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002589 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00002590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002591 ac_cv_prog_CC="${ac_tool_prefix}cc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002593 break 2
2594 fi
2595done
Benny Prijono28d3c562012-03-30 07:10:13 +00002596 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002597IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002598
2599fi
2600fi
2601CC=$ac_cv_prog_CC
2602if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2604$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002605else
Benny Prijono28d3c562012-03-30 07:10:13 +00002606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2607$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002608fi
2609
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002610
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002611 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002612fi
2613if test -z "$CC"; then
2614 # Extract the first word of "cc", so it can be a program name with args.
2615set dummy cc; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00002618if ${ac_cv_prog_CC+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002619 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002620else
2621 if test -n "$CC"; then
2622 ac_cv_prog_CC="$CC" # Let the user override the test.
2623else
2624 ac_prog_rejected=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626for as_dir in $PATH
2627do
2628 IFS=$as_save_IFS
2629 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002630 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00002631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002632 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2633 ac_prog_rejected=yes
2634 continue
2635 fi
2636 ac_cv_prog_CC="cc"
Benny Prijono28d3c562012-03-30 07:10:13 +00002637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002638 break 2
2639 fi
2640done
Benny Prijono28d3c562012-03-30 07:10:13 +00002641 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002642IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002643
2644if test $ac_prog_rejected = yes; then
2645 # We found a bogon in the path, so make sure we never use it.
2646 set dummy $ac_cv_prog_CC
2647 shift
2648 if test $# != 0; then
2649 # We chose a different compiler from the bogus one.
2650 # However, it has the same basename, so the bogon will be chosen
2651 # first if we set CC to just the basename; use the full file name.
2652 shift
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002653 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002654 fi
2655fi
2656fi
2657fi
2658CC=$ac_cv_prog_CC
2659if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2661$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002662else
Benny Prijono28d3c562012-03-30 07:10:13 +00002663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002665fi
2666
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002667
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002668fi
2669if test -z "$CC"; then
2670 if test -n "$ac_tool_prefix"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002671 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002672 do
2673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2674set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00002677if ${ac_cv_prog_CC+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002678 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002679else
2680 if test -n "$CC"; then
2681 ac_cv_prog_CC="$CC" # Let the user override the test.
2682else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002688 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00002689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002690 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00002691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002692 break 2
2693 fi
2694done
Benny Prijono28d3c562012-03-30 07:10:13 +00002695 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002696IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002697
2698fi
2699fi
2700CC=$ac_cv_prog_CC
2701if test -n "$CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2703$as_echo "$CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002704else
Benny Prijono28d3c562012-03-30 07:10:13 +00002705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002707fi
2708
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002709
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002710 test -n "$CC" && break
2711 done
2712fi
2713if test -z "$CC"; then
2714 ac_ct_CC=$CC
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002715 for ac_prog in cl.exe
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002716do
2717 # Extract the first word of "$ac_prog", so it can be a program name with args.
2718set dummy $ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00002719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00002721if ${ac_cv_prog_ac_ct_CC+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00002722 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002723else
2724 if test -n "$ac_ct_CC"; then
2725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00002732 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00002733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002734 ac_cv_prog_ac_ct_CC="$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00002735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002736 break 2
2737 fi
2738done
Benny Prijono28d3c562012-03-30 07:10:13 +00002739 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002740IFS=$as_save_IFS
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002741
2742fi
2743fi
2744ac_ct_CC=$ac_cv_prog_ac_ct_CC
2745if test -n "$ac_ct_CC"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00002746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2747$as_echo "$ac_ct_CC" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002748else
Benny Prijono28d3c562012-03-30 07:10:13 +00002749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002751fi
2752
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002753
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002754 test -n "$ac_ct_CC" && break
2755done
2756
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002757 if test "x$ac_ct_CC" = x; then
2758 CC=""
2759 else
2760 case $cross_compiling:$ac_tool_warned in
2761yes:)
Benny Prijono28d3c562012-03-30 07:10:13 +00002762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002764ac_tool_warned=yes ;;
2765esac
2766 CC=$ac_ct_CC
2767 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002768fi
2769
2770fi
2771
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002772
Benny Prijono28d3c562012-03-30 07:10:13 +00002773test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002775as_fn_error $? "no acceptable C compiler found in \$PATH
Sauw Ming2f91da02012-06-07 02:24:51 +00002776See \`config.log' for more details" "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002777
2778# Provide some information about the compiler.
Benny Prijono28d3c562012-03-30 07:10:13 +00002779$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2780set X $ac_compile
2781ac_compiler=$2
2782for ac_option in --version -v -V -qversion; do
2783 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002784case "(($ac_try" in
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2787esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2789$as_echo "$ac_try_echo"; } >&5
2790 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002791 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00002792 if test -s conftest.err; then
2793 sed '10a\
2794... rest of stderr output deleted ...
2795 10q' conftest.err >conftest.er1
2796 cat conftest.er1 >&5
2797 fi
2798 rm -f conftest.er1 conftest.err
2799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2800 test $ac_status = 0; }
2801done
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002802
Benny Prijono28d3c562012-03-30 07:10:13 +00002803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002804/* end confdefs.h. */
Benny Prijono5bbebc02010-06-15 05:21:43 +00002805
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002806int
2807main ()
2808{
2809
2810 ;
2811 return 0;
2812}
2813_ACEOF
2814ac_clean_files_save=$ac_clean_files
Benny Prijono28d3c562012-03-30 07:10:13 +00002815ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002816# Try to create an executable without -o first, disregard a.out.
2817# It will help us diagnose broken compilers, and finding out an intuition
2818# of exeext.
Benny Prijono28d3c562012-03-30 07:10:13 +00002819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2820$as_echo_n "checking whether the C compiler works... " >&6; }
2821ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2822
2823# The possible output files:
2824ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2825
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002826ac_rmfiles=
2827for ac_file in $ac_files
2828do
2829 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00002830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002831 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2832 esac
2833done
2834rm -f $ac_rmfiles
2835
Benny Prijono28d3c562012-03-30 07:10:13 +00002836if { { ac_try="$ac_link_default"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002837case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2840esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2842$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002843 (eval "$ac_link_default") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002844 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00002845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2846 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002847 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2848# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2849# in a Makefile. We should not override ac_cv_exeext if it was cached,
2850# so that the user can short-circuit this test for compilers unknown to
2851# Autoconf.
2852for ac_file in $ac_files ''
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002853do
2854 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002855 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00002856 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002857 ;;
2858 [ab].out )
2859 # We found the default executable, but exeext='' is most
2860 # certainly right.
2861 break;;
2862 *.* )
Benny Prijono28d3c562012-03-30 07:10:13 +00002863 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002864 then :; else
2865 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2866 fi
2867 # We set ac_cv_exeext here because the later test for it is not
2868 # safe: cross compilers may not add the suffix if given an `-o'
2869 # argument, so we may need to know it at that point already.
2870 # Even if this section looks crufty: it has the advantage of
2871 # actually working.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002872 break;;
2873 * )
2874 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002875 esac
2876done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002877test "$ac_cv_exeext" = no && ac_cv_exeext=
2878
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002879else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002880 ac_file=''
2881fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002882if test -z "$ac_file"; then :
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884$as_echo "no" >&6; }
2885$as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002886sed 's/^/| /' conftest.$ac_ext >&5
2887
Benny Prijono28d3c562012-03-30 07:10:13 +00002888{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002890as_fn_error 77 "C compiler cannot create executables
Sauw Ming2f91da02012-06-07 02:24:51 +00002891See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono28d3c562012-03-30 07:10:13 +00002892else
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2894$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002895fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2897$as_echo_n "checking for C compiler default output file name... " >&6; }
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2899$as_echo "$ac_file" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002900ac_exeext=$ac_cv_exeext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002901
Benny Prijono28d3c562012-03-30 07:10:13 +00002902rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002903ac_clean_files=$ac_clean_files_save
Benny Prijono28d3c562012-03-30 07:10:13 +00002904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2905$as_echo_n "checking for suffix of executables... " >&6; }
2906if { { ac_try="$ac_link"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002907case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910esac
Benny Prijono28d3c562012-03-30 07:10:13 +00002911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2912$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00002913 (eval "$ac_link") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002914 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00002915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2916 test $ac_status = 0; }; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002917 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2918# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2919# work properly (i.e., refer to `conftest.exe'), while it won't with
2920# `rm'.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002921for ac_file in conftest.exe conftest conftest.*; do
2922 test -f "$ac_file" || continue
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002923 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00002924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002925 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00002926 break;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002927 * ) break;;
2928 esac
2929done
2930else
Benny Prijono28d3c562012-03-30 07:10:13 +00002931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002933as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Sauw Ming2f91da02012-06-07 02:24:51 +00002934See \`config.log' for more details" "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002935fi
Benny Prijono28d3c562012-03-30 07:10:13 +00002936rm -f conftest conftest$ac_cv_exeext
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2938$as_echo "$ac_cv_exeext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00002939
2940rm -f conftest.$ac_ext
2941EXEEXT=$ac_cv_exeext
2942ac_exeext=$EXEEXT
Benny Prijono28d3c562012-03-30 07:10:13 +00002943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944/* end confdefs.h. */
2945#include <stdio.h>
2946int
2947main ()
2948{
2949FILE *f = fopen ("conftest.out", "w");
2950 return ferror (f) || fclose (f) != 0;
2951
2952 ;
2953 return 0;
2954}
Benny Prijono36d32492011-12-28 08:42:23 +00002955_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00002956ac_clean_files="$ac_clean_files conftest.out"
2957# Check that the compiler produces executables we can run. If not, either
2958# the compiler is broken, or we cross compile.
2959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2960$as_echo_n "checking whether we are cross compiling... " >&6; }
2961if test "$cross_compiling" != yes; then
2962 { { ac_try="$ac_link"
2963case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2966esac
2967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2968$as_echo "$ac_try_echo"; } >&5
2969 (eval "$ac_link") 2>&5
2970 ac_status=$?
2971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2972 test $ac_status = 0; }
2973 if { ac_try='./conftest$ac_cv_exeext'
2974 { { case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2977esac
2978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2979$as_echo "$ac_try_echo"; } >&5
2980 (eval "$ac_try") 2>&5
2981 ac_status=$?
2982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2983 test $ac_status = 0; }; }; then
2984 cross_compiling=no
2985 else
2986 if test "$cross_compiling" = maybe; then
2987 cross_compiling=yes
2988 else
2989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00002991as_fn_error $? "cannot run C compiled programs.
Benny Prijono28d3c562012-03-30 07:10:13 +00002992If you meant to cross compile, use \`--host'.
Sauw Ming2f91da02012-06-07 02:24:51 +00002993See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono28d3c562012-03-30 07:10:13 +00002994 fi
2995 fi
2996fi
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2998$as_echo "$cross_compiling" >&6; }
2999
3000rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3001ac_clean_files=$ac_clean_files_save
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3003$as_echo_n "checking for suffix of object files... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003004if ${ac_cv_objext+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003005 $as_echo_n "(cached) " >&6
3006else
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003008/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003009
3010int
3011main ()
3012{
3013
3014 ;
3015 return 0;
3016}
3017_ACEOF
3018rm -f conftest.o conftest.obj
Benny Prijono28d3c562012-03-30 07:10:13 +00003019if { { ac_try="$ac_compile"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003020case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
Benny Prijono28d3c562012-03-30 07:10:13 +00003024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3025$as_echo "$ac_try_echo"; } >&5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003026 (eval "$ac_compile") 2>&5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003027 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00003028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3029 test $ac_status = 0; }; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003030 for ac_file in conftest.o conftest.obj conftest.*; do
3031 test -f "$ac_file" || continue;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003032 case $ac_file in
Benny Prijono28d3c562012-03-30 07:10:13 +00003033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003034 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3035 break;;
3036 esac
3037done
3038else
Benny Prijono28d3c562012-03-30 07:10:13 +00003039 $as_echo "$as_me: failed program was:" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003040sed 's/^/| /' conftest.$ac_ext >&5
3041
Benny Prijono28d3c562012-03-30 07:10:13 +00003042{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003044as_fn_error $? "cannot compute suffix of object files: cannot compile
Sauw Ming2f91da02012-06-07 02:24:51 +00003045See \`config.log' for more details" "$LINENO" 5; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003046fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003047rm -f conftest.$ac_cv_objext conftest.$ac_ext
3048fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3050$as_echo "$ac_cv_objext" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003051OBJEXT=$ac_cv_objext
3052ac_objext=$OBJEXT
Benny Prijono28d3c562012-03-30 07:10:13 +00003053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3054$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003055if ${ac_cv_c_compiler_gnu+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003056 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003057else
Benny Prijono28d3c562012-03-30 07:10:13 +00003058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003059/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003060
3061int
3062main ()
3063{
3064#ifndef __GNUC__
3065 choke me
3066#endif
3067
3068 ;
3069 return 0;
3070}
3071_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003072if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003073 ac_compiler_gnu=yes
3074else
Benny Prijono28d3c562012-03-30 07:10:13 +00003075 ac_compiler_gnu=no
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003076fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003078ac_cv_c_compiler_gnu=$ac_compiler_gnu
3079
3080fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3082$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3083if test $ac_compiler_gnu = yes; then
3084 GCC=yes
3085else
3086 GCC=
3087fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003088ac_test_CFLAGS=${CFLAGS+set}
3089ac_save_CFLAGS=$CFLAGS
Benny Prijono28d3c562012-03-30 07:10:13 +00003090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3091$as_echo_n "checking whether $CC accepts -g... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003092if ${ac_cv_prog_cc_g+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003093 $as_echo_n "(cached) " >&6
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003094else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003095 ac_save_c_werror_flag=$ac_c_werror_flag
3096 ac_c_werror_flag=yes
3097 ac_cv_prog_cc_g=no
3098 CFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003100/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003101
3102int
3103main ()
3104{
3105
3106 ;
3107 return 0;
3108}
3109_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003110if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003111 ac_cv_prog_cc_g=yes
3112else
Benny Prijono28d3c562012-03-30 07:10:13 +00003113 CFLAGS=""
3114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003115/* end confdefs.h. */
3116
3117int
3118main ()
3119{
3120
3121 ;
3122 return 0;
3123}
3124_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003125if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00003126
Benny Prijono28d3c562012-03-30 07:10:13 +00003127else
3128 ac_c_werror_flag=$ac_save_c_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003129 CFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003131/* end confdefs.h. */
3132
3133int
3134main ()
3135{
3136
3137 ;
3138 return 0;
3139}
3140_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003141if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003142 ac_cv_prog_cc_g=yes
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003143fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003145fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3149 ac_c_werror_flag=$ac_save_c_werror_flag
3150fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3152$as_echo "$ac_cv_prog_cc_g" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003153if test "$ac_test_CFLAGS" = set; then
3154 CFLAGS=$ac_save_CFLAGS
3155elif test $ac_cv_prog_cc_g = yes; then
3156 if test "$GCC" = yes; then
3157 CFLAGS="-g -O2"
3158 else
3159 CFLAGS="-g"
3160 fi
3161else
3162 if test "$GCC" = yes; then
3163 CFLAGS="-O2"
3164 else
3165 CFLAGS=
3166 fi
3167fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3169$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003170if ${ac_cv_prog_cc_c89+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003171 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003172else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003173 ac_cv_prog_cc_c89=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003174ac_save_CC=$CC
Benny Prijono28d3c562012-03-30 07:10:13 +00003175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003176/* end confdefs.h. */
3177#include <stdarg.h>
3178#include <stdio.h>
Sauw Ming2f91da02012-06-07 02:24:51 +00003179struct stat;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003180/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3181struct buf { int x; };
3182FILE * (*rcsopen) (struct buf *, struct stat *, int);
3183static char *e (p, i)
3184 char **p;
3185 int i;
3186{
3187 return p[i];
3188}
3189static char *f (char * (*g) (char **, int), char **p, ...)
3190{
3191 char *s;
3192 va_list v;
3193 va_start (v,p);
3194 s = g (p, va_arg (v,int));
3195 va_end (v);
3196 return s;
3197}
3198
3199/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3200 function prototypes and stuff, but not '\xHH' hex character constants.
3201 These don't provoke an error unfortunately, instead are silently treated
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003202 as 'x'. The following induces an error, until -std is added to get
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003203 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3204 array size at least. It's necessary to write '\x00'==0 to get something
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003205 that's true only with -std. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003206int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3207
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003208/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3209 inside strings and character constants. */
3210#define FOO(x) 'x'
3211int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3212
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003213int test (int i, double x);
3214struct s1 {int (*f) (int a);};
3215struct s2 {int (*f) (double a);};
3216int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3217int argc;
3218char **argv;
3219int
3220main ()
3221{
3222return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3223 ;
3224 return 0;
3225}
3226_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003227for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3228 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003229do
3230 CC="$ac_save_CC $ac_arg"
Benny Prijono28d3c562012-03-30 07:10:13 +00003231 if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003232 ac_cv_prog_cc_c89=$ac_arg
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003233fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003234rm -f core conftest.err conftest.$ac_objext
3235 test "x$ac_cv_prog_cc_c89" != "xno" && break
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003236done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003237rm -f conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003238CC=$ac_save_CC
3239
3240fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003241# AC_CACHE_VAL
3242case "x$ac_cv_prog_cc_c89" in
3243 x)
Benny Prijono28d3c562012-03-30 07:10:13 +00003244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3245$as_echo "none needed" >&6; } ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003246 xno)
Benny Prijono28d3c562012-03-30 07:10:13 +00003247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3248$as_echo "unsupported" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003249 *)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003250 CC="$CC $ac_cv_prog_cc_c89"
Benny Prijono28d3c562012-03-30 07:10:13 +00003251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3252$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003253esac
Benny Prijono28d3c562012-03-30 07:10:13 +00003254if test "x$ac_cv_prog_cc_c89" != xno; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003255
Benny Prijono28d3c562012-03-30 07:10:13 +00003256fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003257
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003258ac_ext=c
3259ac_cpp='$CPP $CPPFLAGS'
3260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003264ac_ext=cpp
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003265ac_cpp='$CXXCPP $CPPFLAGS'
3266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003269if test -z "$CXX"; then
3270 if test -n "$CCC"; then
3271 CXX=$CCC
3272 else
3273 if test -n "$ac_tool_prefix"; then
3274 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 +00003275 do
3276 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3277set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00003278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003280if ${ac_cv_prog_CXX+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003281 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003282else
3283 if test -n "$CXX"; then
3284 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3285else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287for as_dir in $PATH
3288do
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00003291 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00003292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003293 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00003294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003295 break 2
3296 fi
3297done
Benny Prijono28d3c562012-03-30 07:10:13 +00003298 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003299IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003300
3301fi
3302fi
3303CXX=$ac_cv_prog_CXX
3304if test -n "$CXX"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00003305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3306$as_echo "$CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003307else
Benny Prijono28d3c562012-03-30 07:10:13 +00003308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003310fi
3311
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003312
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003313 test -n "$CXX" && break
3314 done
3315fi
3316if test -z "$CXX"; then
3317 ac_ct_CXX=$CXX
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003318 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 +00003319do
3320 # Extract the first word of "$ac_prog", so it can be a program name with args.
3321set dummy $ac_prog; ac_word=$2
Benny Prijono28d3c562012-03-30 07:10:13 +00003322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003324if ${ac_cv_prog_ac_ct_CXX+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003325 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003326else
3327 if test -n "$ac_ct_CXX"; then
3328 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3329else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331for as_dir in $PATH
3332do
3333 IFS=$as_save_IFS
3334 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00003335 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00003336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003337 ac_cv_prog_ac_ct_CXX="$ac_prog"
Benny Prijono28d3c562012-03-30 07:10:13 +00003338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003339 break 2
3340 fi
3341done
Benny Prijono28d3c562012-03-30 07:10:13 +00003342 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003343IFS=$as_save_IFS
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003344
3345fi
3346fi
3347ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3348if test -n "$ac_ct_CXX"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00003349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3350$as_echo "$ac_ct_CXX" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003351else
Benny Prijono28d3c562012-03-30 07:10:13 +00003352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353$as_echo "no" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003354fi
3355
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003356
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003357 test -n "$ac_ct_CXX" && break
3358done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003359
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003360 if test "x$ac_ct_CXX" = x; then
3361 CXX="g++"
3362 else
3363 case $cross_compiling:$ac_tool_warned in
3364yes:)
Benny Prijono28d3c562012-03-30 07:10:13 +00003365{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003367ac_tool_warned=yes ;;
3368esac
3369 CXX=$ac_ct_CXX
3370 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003371fi
3372
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003373 fi
3374fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003375# Provide some information about the compiler.
Benny Prijono28d3c562012-03-30 07:10:13 +00003376$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3377set X $ac_compile
3378ac_compiler=$2
3379for ac_option in --version -v -V -qversion; do
3380 { { ac_try="$ac_compiler $ac_option >&5"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003381case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384esac
Benny Prijono28d3c562012-03-30 07:10:13 +00003385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386$as_echo "$ac_try_echo"; } >&5
3387 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003388 ac_status=$?
Benny Prijono28d3c562012-03-30 07:10:13 +00003389 if test -s conftest.err; then
3390 sed '10a\
3391... rest of stderr output deleted ...
3392 10q' conftest.err >conftest.er1
3393 cat conftest.er1 >&5
3394 fi
3395 rm -f conftest.er1 conftest.err
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }
3398done
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003399
Benny Prijono28d3c562012-03-30 07:10:13 +00003400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3401$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003402if ${ac_cv_cxx_compiler_gnu+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003403 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003404else
Benny Prijono28d3c562012-03-30 07:10:13 +00003405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003406/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003407
3408int
3409main ()
3410{
3411#ifndef __GNUC__
3412 choke me
3413#endif
3414
3415 ;
3416 return 0;
3417}
3418_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003419if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003420 ac_compiler_gnu=yes
3421else
Benny Prijono28d3c562012-03-30 07:10:13 +00003422 ac_compiler_gnu=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003423fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003425ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3426
3427fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3429$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3430if test $ac_compiler_gnu = yes; then
3431 GXX=yes
3432else
3433 GXX=
3434fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003435ac_test_CXXFLAGS=${CXXFLAGS+set}
3436ac_save_CXXFLAGS=$CXXFLAGS
Benny Prijono28d3c562012-03-30 07:10:13 +00003437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3438$as_echo_n "checking whether $CXX accepts -g... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003439if ${ac_cv_prog_cxx_g+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003440 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003441else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003442 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3443 ac_cxx_werror_flag=yes
3444 ac_cv_prog_cxx_g=no
3445 CXXFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003447/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003448
3449int
3450main ()
3451{
3452
3453 ;
3454 return 0;
3455}
3456_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003457if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003458 ac_cv_prog_cxx_g=yes
3459else
Benny Prijono28d3c562012-03-30 07:10:13 +00003460 CXXFLAGS=""
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003462/* end confdefs.h. */
3463
3464int
3465main ()
3466{
3467
3468 ;
3469 return 0;
3470}
3471_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003472if ac_fn_cxx_try_compile "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00003473
Benny Prijono28d3c562012-03-30 07:10:13 +00003474else
3475 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003476 CXXFLAGS="-g"
Benny Prijono28d3c562012-03-30 07:10:13 +00003477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003478/* end confdefs.h. */
3479
3480int
3481main ()
3482{
3483
3484 ;
3485 return 0;
3486}
3487_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003488if ac_fn_cxx_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003489 ac_cv_prog_cxx_g=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003490fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003492fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3497fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3499$as_echo "$ac_cv_prog_cxx_g" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003500if test "$ac_test_CXXFLAGS" = set; then
3501 CXXFLAGS=$ac_save_CXXFLAGS
3502elif test $ac_cv_prog_cxx_g = yes; then
3503 if test "$GXX" = yes; then
3504 CXXFLAGS="-g -O2"
3505 else
3506 CXXFLAGS="-g"
3507 fi
3508else
3509 if test "$GXX" = yes; then
3510 CXXFLAGS="-O2"
3511 else
3512 CXXFLAGS=
3513 fi
3514fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00003515ac_ext=c
3516ac_cpp='$CPP $CPPFLAGS'
3517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003521ac_ext=c
3522ac_cpp='$CPP $CPPFLAGS'
3523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003527
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003528if test -z "$CROSS_COMPILE"; then
3529 CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'`
3530fi
3531
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003532if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003533
3534if test "$LD" = ""; then LD="$CC"; fi
3535
Sauw Minge7dbbc82011-10-24 09:28:13 +00003536if test "$LDOUT" = ""; then LDOUT="-o "; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003537
Benny Prijono2d1f1b62010-05-17 16:09:12 +00003538if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003539
3540if test "$OBJEXT" = ""; then OBJEXT='o'; fi
3541
3542if test "$LIBEXT" = ""; then LIBEXT='a'; fi
3543
3544if test "$LIBEXT2" = ""; then LIBEXT2=""; fi
3545
Sauw Minge7dbbc82011-10-24 09:28:13 +00003546if test "$CC_OUT" = ""; then CC_OUT="-o "; fi
Benny Prijono8ec5eae2010-05-12 10:59:20 +00003547
3548if test "$CC_INC" = ""; then CC_INC="-I"; fi
3549
3550if test "$CC_DEF" = ""; then CC_DEF="-D"; fi
3551
3552if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi
3553
3554if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi
3555
3556
3557
3558
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003559
Benny Prijono0822c192008-08-21 20:59:58 +00003560
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003561
3562case $host in
Benny Prijono53847a32007-09-24 16:10:13 +00003563 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijonofe3bf0e2010-08-05 06:27:20 +00003564 if pwd -W 2&> /dev/null; then
3565 ac_pjdir=`pwd -W`
3566 else
3567 # We're probably cross-compiling mingw on Linux
3568 ac_pjdir=`pwd`
3569 fi
Benny Prijono53847a32007-09-24 16:10:13 +00003570 ;;
3571 *)
3572 ac_pjdir=`pwd`
3573 ;;
3574esac
Benny Prijono12483112007-03-12 10:44:38 +00003575
3576
Benny Prijono28d3c562012-03-30 07:10:13 +00003577case $target in
3578 *mingw* | *cygw* | *win32* | *w32* )
3579 ac_shlib_suffix=dll
3580 ;;
3581 *darwin*)
3582 ac_shlib_suffix=dylib
3583 ;;
3584 *)
3585 ac_shlib_suffix=so
3586 ;;
3587esac
Benny Prijono36d32492011-12-28 08:42:23 +00003588
Benny Prijono28d3c562012-03-30 07:10:13 +00003589
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00003590if test "$build" = "$host"; then
3591 ac_cross_compile=
3592else
3593 ac_cross_compile=${host_orig}-
3594fi
3595
3596
Benny Prijono28d3c562012-03-30 07:10:13 +00003597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
3598$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003599if ${ac_cv_lib_pthread_pthread_create+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003600 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003601else
3602 ac_check_lib_save_LIBS=$LIBS
3603LIBS="-lpthread $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003605/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003606
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003607/* Override any GCC internal prototype to avoid an error.
3608 Use char because int might match the return type of a GCC
3609 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003610#ifdef __cplusplus
3611extern "C"
3612#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003613char pthread_create ();
3614int
3615main ()
3616{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003617return pthread_create ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003618 ;
3619 return 0;
3620}
3621_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003622if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003623 ac_cv_lib_pthread_pthread_create=yes
3624else
Benny Prijono28d3c562012-03-30 07:10:13 +00003625 ac_cv_lib_pthread_pthread_create=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003626fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003627rm -f core conftest.err conftest.$ac_objext \
3628 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003629LIBS=$ac_check_lib_save_LIBS
3630fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
3632$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003633if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003634 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003635#define HAVE_LIBPTHREAD 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003636_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00003637
3638 LIBS="-lpthread $LIBS"
3639
3640fi
3641
Benny Prijono28d3c562012-03-30 07:10:13 +00003642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5
3643$as_echo_n "checking for puts in -lwsock32... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003644if ${ac_cv_lib_wsock32_puts+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003645 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003646else
3647 ac_check_lib_save_LIBS=$LIBS
3648LIBS="-lwsock32 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003650/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003651
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003652/* Override any GCC internal prototype to avoid an error.
3653 Use char because int might match the return type of a GCC
3654 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003655#ifdef __cplusplus
3656extern "C"
3657#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003658char puts ();
3659int
3660main ()
3661{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003662return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003663 ;
3664 return 0;
3665}
3666_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003667if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003668 ac_cv_lib_wsock32_puts=yes
3669else
Benny Prijono28d3c562012-03-30 07:10:13 +00003670 ac_cv_lib_wsock32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003671fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003672rm -f core conftest.err conftest.$ac_objext \
3673 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003674LIBS=$ac_check_lib_save_LIBS
3675fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5
3677$as_echo "$ac_cv_lib_wsock32_puts" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003678if test "x$ac_cv_lib_wsock32_puts" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003679 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003680#define HAVE_LIBWSOCK32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003681_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003682
3683 LIBS="-lwsock32 $LIBS"
3684
3685fi
3686
Benny Prijono28d3c562012-03-30 07:10:13 +00003687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5
3688$as_echo_n "checking for puts in -lws2_32... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003689if ${ac_cv_lib_ws2_32_puts+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003690 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003691else
3692 ac_check_lib_save_LIBS=$LIBS
3693LIBS="-lws2_32 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003695/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003696
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003697/* Override any GCC internal prototype to avoid an error.
3698 Use char because int might match the return type of a GCC
3699 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003700#ifdef __cplusplus
3701extern "C"
3702#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003703char puts ();
3704int
3705main ()
3706{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003707return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003708 ;
3709 return 0;
3710}
3711_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003712if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003713 ac_cv_lib_ws2_32_puts=yes
3714else
Benny Prijono28d3c562012-03-30 07:10:13 +00003715 ac_cv_lib_ws2_32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003716fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003717rm -f core conftest.err conftest.$ac_objext \
3718 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003719LIBS=$ac_check_lib_save_LIBS
3720fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5
3722$as_echo "$ac_cv_lib_ws2_32_puts" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003723if test "x$ac_cv_lib_ws2_32_puts" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003724 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003725#define HAVE_LIBWS2_32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003726_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003727
3728 LIBS="-lws2_32 $LIBS"
3729
3730fi
3731
Benny Prijono28d3c562012-03-30 07:10:13 +00003732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5
3733$as_echo_n "checking for puts in -lole32... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003734if ${ac_cv_lib_ole32_puts+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003735 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003736else
3737 ac_check_lib_save_LIBS=$LIBS
3738LIBS="-lole32 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003740/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003741
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003742/* Override any GCC internal prototype to avoid an error.
3743 Use char because int might match the return type of a GCC
3744 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003745#ifdef __cplusplus
3746extern "C"
3747#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003748char puts ();
3749int
3750main ()
3751{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003752return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003753 ;
3754 return 0;
3755}
3756_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003757if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003758 ac_cv_lib_ole32_puts=yes
3759else
Benny Prijono28d3c562012-03-30 07:10:13 +00003760 ac_cv_lib_ole32_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003761fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003762rm -f core conftest.err conftest.$ac_objext \
3763 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003764LIBS=$ac_check_lib_save_LIBS
3765fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5
3767$as_echo "$ac_cv_lib_ole32_puts" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003768if test "x$ac_cv_lib_ole32_puts" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003769 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003770#define HAVE_LIBOLE32 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003771_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003772
3773 LIBS="-lole32 $LIBS"
3774
3775fi
3776
Benny Prijono28d3c562012-03-30 07:10:13 +00003777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5
3778$as_echo_n "checking for puts in -lwinmm... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003779if ${ac_cv_lib_winmm_puts+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003780 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003781else
3782 ac_check_lib_save_LIBS=$LIBS
3783LIBS="-lwinmm $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003785/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003786
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003787/* Override any GCC internal prototype to avoid an error.
3788 Use char because int might match the return type of a GCC
3789 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003790#ifdef __cplusplus
3791extern "C"
3792#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003793char puts ();
3794int
3795main ()
3796{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003797return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003798 ;
3799 return 0;
3800}
3801_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003802if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003803 ac_cv_lib_winmm_puts=yes
3804else
Benny Prijono28d3c562012-03-30 07:10:13 +00003805 ac_cv_lib_winmm_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003806fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003807rm -f core conftest.err conftest.$ac_objext \
3808 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003809LIBS=$ac_check_lib_save_LIBS
3810fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5
3812$as_echo "$ac_cv_lib_winmm_puts" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003813if test "x$ac_cv_lib_winmm_puts" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003814 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003815#define HAVE_LIBWINMM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003816_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003817
3818 LIBS="-lwinmm $LIBS"
3819
3820fi
3821
Benny Prijono28d3c562012-03-30 07:10:13 +00003822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5
3823$as_echo_n "checking for puts in -lsocket... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003824if ${ac_cv_lib_socket_puts+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003825 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003826else
3827 ac_check_lib_save_LIBS=$LIBS
3828LIBS="-lsocket $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003830/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003831
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003832/* Override any GCC internal prototype to avoid an error.
3833 Use char because int might match the return type of a GCC
3834 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003835#ifdef __cplusplus
3836extern "C"
3837#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003838char puts ();
3839int
3840main ()
3841{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003842return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003843 ;
3844 return 0;
3845}
3846_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003847if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003848 ac_cv_lib_socket_puts=yes
3849else
Benny Prijono28d3c562012-03-30 07:10:13 +00003850 ac_cv_lib_socket_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003851fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003852rm -f core conftest.err conftest.$ac_objext \
3853 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003854LIBS=$ac_check_lib_save_LIBS
3855fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5
3857$as_echo "$ac_cv_lib_socket_puts" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003858if test "x$ac_cv_lib_socket_puts" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003859 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003860#define HAVE_LIBSOCKET 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003861_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003862
3863 LIBS="-lsocket $LIBS"
3864
3865fi
3866
Benny Prijono28d3c562012-03-30 07:10:13 +00003867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5
3868$as_echo_n "checking for puts in -lrt... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003869if ${ac_cv_lib_rt_puts+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003870 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003871else
3872 ac_check_lib_save_LIBS=$LIBS
3873LIBS="-lrt $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003875/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003876
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003877/* Override any GCC internal prototype to avoid an error.
3878 Use char because int might match the return type of a GCC
3879 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003880#ifdef __cplusplus
3881extern "C"
3882#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003883char puts ();
3884int
3885main ()
3886{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003887return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003888 ;
3889 return 0;
3890}
3891_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003892if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003893 ac_cv_lib_rt_puts=yes
3894else
Benny Prijono28d3c562012-03-30 07:10:13 +00003895 ac_cv_lib_rt_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003896fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003897rm -f core conftest.err conftest.$ac_objext \
3898 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003899LIBS=$ac_check_lib_save_LIBS
3900fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5
3902$as_echo "$ac_cv_lib_rt_puts" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003903if test "x$ac_cv_lib_rt_puts" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003904 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003905#define HAVE_LIBRT 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003906_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003907
3908 LIBS="-lrt $LIBS"
3909
3910fi
3911
Benny Prijono28d3c562012-03-30 07:10:13 +00003912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5
3913$as_echo_n "checking for puts in -lnsl... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003914if ${ac_cv_lib_nsl_puts+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003915 $as_echo_n "(cached) " >&6
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003916else
3917 ac_check_lib_save_LIBS=$LIBS
3918LIBS="-lnsl $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003920/* end confdefs.h. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003921
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003922/* Override any GCC internal prototype to avoid an error.
3923 Use char because int might match the return type of a GCC
3924 builtin and then its argument prototype would still apply. */
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003925#ifdef __cplusplus
3926extern "C"
3927#endif
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003928char puts ();
3929int
3930main ()
3931{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003932return puts ();
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003933 ;
3934 return 0;
3935}
3936_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003937if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003938 ac_cv_lib_nsl_puts=yes
3939else
Benny Prijono28d3c562012-03-30 07:10:13 +00003940 ac_cv_lib_nsl_puts=no
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003941fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003942rm -f core conftest.err conftest.$ac_objext \
3943 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003944LIBS=$ac_check_lib_save_LIBS
3945fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5
3947$as_echo "$ac_cv_lib_nsl_puts" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003948if test "x$ac_cv_lib_nsl_puts" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003949 cat >>confdefs.h <<_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003950#define HAVE_LIBNSL 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00003951_ACEOF
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00003952
3953 LIBS="-lnsl $LIBS"
3954
3955fi
3956
Benny Prijono28d3c562012-03-30 07:10:13 +00003957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3958$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003959if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00003960 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00003961else
3962 ac_check_lib_save_LIBS=$LIBS
3963LIBS="-luuid $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00003964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003965/* end confdefs.h. */
3966
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003967/* Override any GCC internal prototype to avoid an error.
3968 Use char because int might match the return type of a GCC
3969 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00003970#ifdef __cplusplus
3971extern "C"
3972#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00003973char uuid_generate ();
3974int
3975main ()
3976{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00003977return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00003978 ;
3979 return 0;
3980}
3981_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00003982if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003983 ac_cv_lib_uuid_uuid_generate=yes
3984else
Benny Prijono28d3c562012-03-30 07:10:13 +00003985 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00003986fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003987rm -f core conftest.err conftest.$ac_objext \
3988 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00003989LIBS=$ac_check_lib_save_LIBS
3990fi
Benny Prijono28d3c562012-03-30 07:10:13 +00003991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3992$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00003993if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00003994 cat >>confdefs.h <<_ACEOF
3995#define HAVE_LIBUUID 1
3996_ACEOF
3997
3998 LIBS="-luuid $LIBS"
3999
4000fi
4001
Benny Prijono28d3c562012-03-30 07:10:13 +00004002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4003$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00004004if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004005 $as_echo_n "(cached) " >&6
Benny Prijono4e48b512007-05-16 13:41:00 +00004006else
4007 ac_check_lib_save_LIBS=$LIBS
4008LIBS="-luuid $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00004009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00004010/* end confdefs.h. */
4011
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004012/* Override any GCC internal prototype to avoid an error.
4013 Use char because int might match the return type of a GCC
4014 builtin and then its argument prototype would still apply. */
Benny Prijono4e48b512007-05-16 13:41:00 +00004015#ifdef __cplusplus
4016extern "C"
4017#endif
Benny Prijono4e48b512007-05-16 13:41:00 +00004018char uuid_generate ();
4019int
4020main ()
4021{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004022return uuid_generate ();
Benny Prijono4e48b512007-05-16 13:41:00 +00004023 ;
4024 return 0;
4025}
4026_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004027if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00004028 ac_cv_lib_uuid_uuid_generate=yes
4029else
Benny Prijono28d3c562012-03-30 07:10:13 +00004030 ac_cv_lib_uuid_uuid_generate=no
Benny Prijono4e48b512007-05-16 13:41:00 +00004031fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004032rm -f core conftest.err conftest.$ac_objext \
4033 conftest$ac_exeext conftest.$ac_ext
Benny Prijono4e48b512007-05-16 13:41:00 +00004034LIBS=$ac_check_lib_save_LIBS
4035fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4037$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00004038if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00004039 ac_has_uuid_lib=1
4040fi
4041
4042
Benny Prijono28d3c562012-03-30 07:10:13 +00004043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5
4044$as_echo "Setting PJ_M_NAME to $target_cpu" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004045cat >>confdefs.h <<_ACEOF
4046#define PJ_M_NAME "$target_cpu"
4047_ACEOF
4048
4049
Benny Prijono28d3c562012-03-30 07:10:13 +00004050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5
4051$as_echo_n "checking memory alignment... " >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004052case $target in
Benny Prijonob18e9502010-05-19 05:51:38 +00004053 sparc64-* | ia64-* | x86_64-* )
Benny Prijono28d3c562012-03-30 07:10:13 +00004054 $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00004055
Benny Prijono28d3c562012-03-30 07:10:13 +00004056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5
4057$as_echo "8 bytes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004058 ;;
4059 * )
Benny Prijono28d3c562012-03-30 07:10:13 +00004060 $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h
Benny Prijono1d971622006-09-10 22:27:40 +00004061
Benny Prijono28d3c562012-03-30 07:10:13 +00004062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5
4063$as_echo "4 bytes (default)" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00004064 ;;
4065esac
4066
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004067
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004068ac_ext=c
4069ac_cpp='$CPP $CPPFLAGS'
4070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072ac_compiler_gnu=$ac_cv_c_compiler_gnu
Benny Prijono28d3c562012-03-30 07:10:13 +00004073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4074$as_echo_n "checking how to run the C preprocessor... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004075# On Suns, sometimes $CPP names a directory.
4076if test -n "$CPP" && test -d "$CPP"; then
4077 CPP=
4078fi
4079if test -z "$CPP"; then
Sauw Ming2f91da02012-06-07 02:24:51 +00004080 if ${ac_cv_prog_CPP+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004081 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004082else
4083 # Double quotes because CPP needs to be expanded
4084 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4085 do
4086 ac_preproc_ok=false
4087for ac_c_preproc_warn_flag in '' yes
4088do
4089 # Use a header file that comes with gcc, so configuring glibc
4090 # with a fresh cross-compiler works.
4091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4092 # <limits.h> exists even on freestanding compilers.
4093 # On the NeXT, cc -E runs the code through the compiler's parser,
4094 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijono28d3c562012-03-30 07:10:13 +00004095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004096/* end confdefs.h. */
4097#ifdef __STDC__
4098# include <limits.h>
4099#else
4100# include <assert.h>
4101#endif
4102 Syntax error
4103_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004104if ac_fn_c_try_cpp "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00004105
Benny Prijono28d3c562012-03-30 07:10:13 +00004106else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004107 # Broken: fails on valid input.
4108continue
4109fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004110rm -f conftest.err conftest.i conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004111
4112 # OK, works on sane cases. Now check whether nonexistent headers
4113 # can be detected and how.
Benny Prijono28d3c562012-03-30 07:10:13 +00004114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004115/* end confdefs.h. */
4116#include <ac_nonexistent.h>
4117_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004118if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004119 # Broken: success on invalid input.
4120continue
4121else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004122 # Passes both tests.
4123ac_preproc_ok=:
4124break
4125fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004126rm -f conftest.err conftest.i conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004127
4128done
4129# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004130rm -f conftest.i conftest.err conftest.$ac_ext
Benny Prijono28d3c562012-03-30 07:10:13 +00004131if $ac_preproc_ok; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004132 break
4133fi
4134
4135 done
4136 ac_cv_prog_CPP=$CPP
4137
4138fi
4139 CPP=$ac_cv_prog_CPP
4140else
4141 ac_cv_prog_CPP=$CPP
4142fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4144$as_echo "$CPP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004145ac_preproc_ok=false
4146for ac_c_preproc_warn_flag in '' yes
4147do
4148 # Use a header file that comes with gcc, so configuring glibc
4149 # with a fresh cross-compiler works.
4150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4151 # <limits.h> exists even on freestanding compilers.
4152 # On the NeXT, cc -E runs the code through the compiler's parser,
4153 # not just through cpp. "Syntax error" is here to catch this case.
Benny Prijono28d3c562012-03-30 07:10:13 +00004154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004155/* end confdefs.h. */
4156#ifdef __STDC__
4157# include <limits.h>
4158#else
4159# include <assert.h>
4160#endif
4161 Syntax error
4162_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004163if ac_fn_c_try_cpp "$LINENO"; then :
Benny Prijono36d32492011-12-28 08:42:23 +00004164
Benny Prijono28d3c562012-03-30 07:10:13 +00004165else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004166 # Broken: fails on valid input.
4167continue
4168fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004169rm -f conftest.err conftest.i conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004170
4171 # OK, works on sane cases. Now check whether nonexistent headers
4172 # can be detected and how.
Benny Prijono28d3c562012-03-30 07:10:13 +00004173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004174/* end confdefs.h. */
4175#include <ac_nonexistent.h>
4176_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004177if ac_fn_c_try_cpp "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004178 # Broken: success on invalid input.
4179continue
4180else
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004181 # Passes both tests.
4182ac_preproc_ok=:
4183break
4184fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004185rm -f conftest.err conftest.i conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004186
4187done
4188# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004189rm -f conftest.i conftest.err conftest.$ac_ext
Benny Prijono28d3c562012-03-30 07:10:13 +00004190if $ac_preproc_ok; then :
4191
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004192else
Benny Prijono28d3c562012-03-30 07:10:13 +00004193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004195as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Sauw Ming2f91da02012-06-07 02:24:51 +00004196See \`config.log' for more details" "$LINENO" 5; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004197fi
4198
4199ac_ext=c
4200ac_cpp='$CPP $CPPFLAGS'
4201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203ac_compiler_gnu=$ac_cv_c_compiler_gnu
4204
4205
Benny Prijono28d3c562012-03-30 07:10:13 +00004206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4207$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00004208if ${ac_cv_path_GREP+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004209 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004210else
Benny Prijono28d3c562012-03-30 07:10:13 +00004211 if test -z "$GREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004212 ac_path_GREP_found=false
Benny Prijono28d3c562012-03-30 07:10:13 +00004213 # Loop through the user's path and test for each of PROGNAME-LIST
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004215for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4216do
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00004219 for ac_prog in grep ggrep; do
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Sauw Ming2f91da02012-06-07 02:24:51 +00004222 as_fn_executable_p "$ac_path_GREP" || continue
Benny Prijono28d3c562012-03-30 07:10:13 +00004223# Check for GNU ac_path_GREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004224 # Check for GNU $ac_path_GREP
4225case `"$ac_path_GREP" --version 2>&1` in
4226*GNU*)
4227 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4228*)
4229 ac_count=0
Benny Prijono28d3c562012-03-30 07:10:13 +00004230 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004231 while :
4232 do
4233 cat "conftest.in" "conftest.in" >"conftest.tmp"
4234 mv "conftest.tmp" "conftest.in"
4235 cp "conftest.in" "conftest.nl"
Benny Prijono28d3c562012-03-30 07:10:13 +00004236 $as_echo 'GREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004237 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijono28d3c562012-03-30 07:10:13 +00004239 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004240 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4241 # Best one so far, save it but keep looking for a better one
4242 ac_cv_path_GREP="$ac_path_GREP"
4243 ac_path_GREP_max=$ac_count
4244 fi
4245 # 10*(2^10) chars as input seems more than enough
4246 test $ac_count -gt 10 && break
4247 done
4248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4249esac
4250
Benny Prijono28d3c562012-03-30 07:10:13 +00004251 $ac_path_GREP_found && break 3
4252 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004253 done
Benny Prijono28d3c562012-03-30 07:10:13 +00004254 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004255IFS=$as_save_IFS
Benny Prijono28d3c562012-03-30 07:10:13 +00004256 if test -z "$ac_cv_path_GREP"; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004257 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 +00004258 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004259else
4260 ac_cv_path_GREP=$GREP
4261fi
4262
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004263fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4265$as_echo "$ac_cv_path_GREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004266 GREP="$ac_cv_path_GREP"
4267
4268
Benny Prijono28d3c562012-03-30 07:10:13 +00004269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4270$as_echo_n "checking for egrep... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00004271if ${ac_cv_path_EGREP+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004272 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004273else
4274 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4275 then ac_cv_path_EGREP="$GREP -E"
4276 else
Benny Prijono28d3c562012-03-30 07:10:13 +00004277 if test -z "$EGREP"; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004278 ac_path_EGREP_found=false
Benny Prijono28d3c562012-03-30 07:10:13 +00004279 # Loop through the user's path and test for each of PROGNAME-LIST
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004281for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4282do
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00004285 for ac_prog in egrep; do
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Sauw Ming2f91da02012-06-07 02:24:51 +00004288 as_fn_executable_p "$ac_path_EGREP" || continue
Benny Prijono28d3c562012-03-30 07:10:13 +00004289# Check for GNU ac_path_EGREP and select it if it is found.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004290 # Check for GNU $ac_path_EGREP
4291case `"$ac_path_EGREP" --version 2>&1` in
4292*GNU*)
4293 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4294*)
4295 ac_count=0
Benny Prijono28d3c562012-03-30 07:10:13 +00004296 $as_echo_n 0123456789 >"conftest.in"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004297 while :
4298 do
4299 cat "conftest.in" "conftest.in" >"conftest.tmp"
4300 mv "conftest.tmp" "conftest.in"
4301 cp "conftest.in" "conftest.nl"
Benny Prijono28d3c562012-03-30 07:10:13 +00004302 $as_echo 'EGREP' >> "conftest.nl"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004303 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Benny Prijono28d3c562012-03-30 07:10:13 +00004305 as_fn_arith $ac_count + 1 && ac_count=$as_val
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004306 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4307 # Best one so far, save it but keep looking for a better one
4308 ac_cv_path_EGREP="$ac_path_EGREP"
4309 ac_path_EGREP_max=$ac_count
4310 fi
4311 # 10*(2^10) chars as input seems more than enough
4312 test $ac_count -gt 10 && break
4313 done
4314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4315esac
4316
Benny Prijono28d3c562012-03-30 07:10:13 +00004317 $ac_path_EGREP_found && break 3
4318 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004319 done
Benny Prijono28d3c562012-03-30 07:10:13 +00004320 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004321IFS=$as_save_IFS
Benny Prijono28d3c562012-03-30 07:10:13 +00004322 if test -z "$ac_cv_path_EGREP"; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004323 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 +00004324 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004325else
4326 ac_cv_path_EGREP=$EGREP
4327fi
4328
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004329 fi
4330fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4332$as_echo "$ac_cv_path_EGREP" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004333 EGREP="$ac_cv_path_EGREP"
4334
4335
Benny Prijono28d3c562012-03-30 07:10:13 +00004336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4337$as_echo_n "checking for ANSI C header files... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00004338if ${ac_cv_header_stdc+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004339 $as_echo_n "(cached) " >&6
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004340else
Benny Prijono28d3c562012-03-30 07:10:13 +00004341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004342/* end confdefs.h. */
4343#include <stdlib.h>
4344#include <stdarg.h>
4345#include <string.h>
4346#include <float.h>
4347
4348int
4349main ()
4350{
4351
4352 ;
4353 return 0;
4354}
4355_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004356if ac_fn_c_try_compile "$LINENO"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004357 ac_cv_header_stdc=yes
4358else
Benny Prijono28d3c562012-03-30 07:10:13 +00004359 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004360fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362
4363if test $ac_cv_header_stdc = yes; then
4364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Benny Prijono28d3c562012-03-30 07:10:13 +00004365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004366/* end confdefs.h. */
4367#include <string.h>
4368
4369_ACEOF
4370if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijono28d3c562012-03-30 07:10:13 +00004371 $EGREP "memchr" >/dev/null 2>&1; then :
4372
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004373else
4374 ac_cv_header_stdc=no
4375fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004376rm -f conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004377
4378fi
4379
4380if test $ac_cv_header_stdc = yes; then
4381 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
4385
4386_ACEOF
4387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Benny Prijono28d3c562012-03-30 07:10:13 +00004388 $EGREP "free" >/dev/null 2>&1; then :
4389
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004390else
4391 ac_cv_header_stdc=no
4392fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004393rm -f conftest*
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004394
4395fi
4396
4397if test $ac_cv_header_stdc = yes; then
4398 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Benny Prijono28d3c562012-03-30 07:10:13 +00004399 if test "$cross_compiling" = yes; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004400 :
4401else
Benny Prijono28d3c562012-03-30 07:10:13 +00004402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004403/* end confdefs.h. */
4404#include <ctype.h>
4405#include <stdlib.h>
4406#if ((' ' & 0x0FF) == 0x020)
4407# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4408# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4409#else
4410# define ISLOWER(c) \
4411 (('a' <= (c) && (c) <= 'i') \
4412 || ('j' <= (c) && (c) <= 'r') \
4413 || ('s' <= (c) && (c) <= 'z'))
4414# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4415#endif
4416
4417#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4418int
4419main ()
4420{
4421 int i;
4422 for (i = 0; i < 256; i++)
4423 if (XOR (islower (i), ISLOWER (i))
4424 || toupper (i) != TOUPPER (i))
4425 return 2;
4426 return 0;
4427}
4428_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004429if ac_fn_c_try_run "$LINENO"; then :
4430
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004431else
Benny Prijono28d3c562012-03-30 07:10:13 +00004432 ac_cv_header_stdc=no
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004433fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4435 conftest.$ac_objext conftest.beam conftest.$ac_ext
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004436fi
4437
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004438fi
4439fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4441$as_echo "$ac_cv_header_stdc" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004442if test $ac_cv_header_stdc = yes; then
4443
Benny Prijono28d3c562012-03-30 07:10:13 +00004444$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004445
4446fi
4447
4448# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004449for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4450 inttypes.h stdint.h unistd.h
Benny Prijono28d3c562012-03-30 07:10:13 +00004451do :
4452 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4453ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4454"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004455if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004456 cat >>confdefs.h <<_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004457#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004458_ACEOF
4459
4460fi
4461
4462done
4463
4464
Benny Prijono28d3c562012-03-30 07:10:13 +00004465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4466$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00004467if ${ac_cv_c_bigendian+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004468 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004469else
Benny Prijono28d3c562012-03-30 07:10:13 +00004470 ac_cv_c_bigendian=unknown
4471 # See if we're dealing with a universal compiler.
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473/* end confdefs.h. */
4474#ifndef __APPLE_CC__
4475 not a universal capable compiler
4476 #endif
4477 typedef int dummy;
4478
Benny Prijonod5233702010-01-13 13:09:45 +00004479_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004480if ac_fn_c_try_compile "$LINENO"; then :
4481
4482 # Check for potential -arch flags. It is not universal unless
4483 # there are at least two -arch flags with different values.
4484 ac_arch=
4485 ac_prev=
4486 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4487 if test -n "$ac_prev"; then
4488 case $ac_word in
4489 i?86 | x86_64 | ppc | ppc64)
4490 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4491 ac_arch=$ac_word
4492 else
4493 ac_cv_c_bigendian=universal
4494 break
4495 fi
4496 ;;
4497 esac
4498 ac_prev=
4499 elif test "x$ac_word" = "x-arch"; then
4500 ac_prev=arch
4501 fi
4502 done
4503fi
4504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505 if test $ac_cv_c_bigendian = unknown; then
4506 # See if sys/param.h defines the BYTE_ORDER macro.
4507 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{
Benny Prijono28d3c562012-03-30 07:10:13 +00004515#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4516 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4517 && LITTLE_ENDIAN)
4518 bogus endian macros
4519 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004520
4521 ;
4522 return 0;
4523}
4524_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004525if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004526 # It does; now see whether it defined to BIG_ENDIAN or not.
Benny Prijono28d3c562012-03-30 07:10:13 +00004527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004528/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004529#include <sys/types.h>
Benny Prijono28d3c562012-03-30 07:10:13 +00004530 #include <sys/param.h>
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004531
4532int
4533main ()
4534{
4535#if BYTE_ORDER != BIG_ENDIAN
Benny Prijono28d3c562012-03-30 07:10:13 +00004536 not big endian
4537 #endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004538
4539 ;
4540 return 0;
4541}
4542_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004543if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004544 ac_cv_c_bigendian=yes
4545else
Benny Prijono28d3c562012-03-30 07:10:13 +00004546 ac_cv_c_bigendian=no
Benny Prijono36d32492011-12-28 08:42:23 +00004547fi
Benny Prijono36d32492011-12-28 08:42:23 +00004548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono28d3c562012-03-30 07:10:13 +00004549fi
4550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 fi
4552 if test $ac_cv_c_bigendian = unknown; then
4553 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono36d32492011-12-28 08:42:23 +00004555/* end confdefs.h. */
Benny Prijono28d3c562012-03-30 07:10:13 +00004556#include <limits.h>
4557
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004558int
4559main ()
4560{
Benny Prijono28d3c562012-03-30 07:10:13 +00004561#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4562 bogus endian macros
4563 #endif
4564
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004565 ;
4566 return 0;
4567}
4568_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004569if ac_fn_c_try_compile "$LINENO"; then :
4570 # It does; now see whether it defined to _BIG_ENDIAN or not.
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572/* end confdefs.h. */
4573#include <limits.h>
4574
4575int
4576main ()
4577{
4578#ifndef _BIG_ENDIAN
4579 not big endian
4580 #endif
4581
4582 ;
4583 return 0;
4584}
4585_ACEOF
4586if ac_fn_c_try_compile "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004587 ac_cv_c_bigendian=yes
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004588else
Benny Prijono28d3c562012-03-30 07:10:13 +00004589 ac_cv_c_bigendian=no
Benny Prijonoe1105232011-10-26 06:49:34 +00004590fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592fi
4593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594 fi
4595 if test $ac_cv_c_bigendian = unknown; then
4596 # Compile a test program.
4597 if test "$cross_compiling" = yes; then :
4598 # Try to guess by grepping values from an object file.
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600/* end confdefs.h. */
4601short int ascii_mm[] =
4602 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4603 short int ascii_ii[] =
4604 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4605 int use_ascii (int i) {
4606 return ascii_mm[i] + ascii_ii[i];
4607 }
4608 short int ebcdic_ii[] =
4609 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4610 short int ebcdic_mm[] =
4611 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4612 int use_ebcdic (int i) {
4613 return ebcdic_mm[i] + ebcdic_ii[i];
4614 }
4615 extern int foo;
Benny Prijono36d32492011-12-28 08:42:23 +00004616
Benny Prijono28d3c562012-03-30 07:10:13 +00004617int
4618main ()
4619{
4620return use_ascii (foo) == use_ebcdic (foo);
4621 ;
4622 return 0;
4623}
4624_ACEOF
4625if ac_fn_c_try_compile "$LINENO"; then :
4626 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4627 ac_cv_c_bigendian=yes
4628 fi
4629 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4630 if test "$ac_cv_c_bigendian" = unknown; then
4631 ac_cv_c_bigendian=no
4632 else
4633 # finding both strings is unlikely to happen, but who knows?
4634 ac_cv_c_bigendian=unknown
4635 fi
4636 fi
4637fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004639else
Benny Prijono28d3c562012-03-30 07:10:13 +00004640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004641/* end confdefs.h. */
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004642$ac_includes_default
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004643int
4644main ()
4645{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004646
Benny Prijono28d3c562012-03-30 07:10:13 +00004647 /* Are we little or big endian? From Harbison&Steele. */
4648 union
4649 {
4650 long int l;
4651 char c[sizeof (long int)];
4652 } u;
4653 u.l = 1;
4654 return u.c[sizeof (long int) - 1] == 1;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004655
4656 ;
4657 return 0;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004658}
4659_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004660if ac_fn_c_try_run "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004661 ac_cv_c_bigendian=no
4662else
Benny Prijono28d3c562012-03-30 07:10:13 +00004663 ac_cv_c_bigendian=yes
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004664fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004665rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4666 conftest.$ac_objext conftest.beam conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004667fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004668
Benny Prijono28d3c562012-03-30 07:10:13 +00004669 fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004670fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4672$as_echo "$ac_cv_c_bigendian" >&6; }
4673 case $ac_cv_c_bigendian in #(
4674 yes)
4675 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4676;; #(
4677 no)
4678 ;; #(
4679 universal)
Benny Prijonod5233702010-01-13 13:09:45 +00004680
Benny Prijono28d3c562012-03-30 07:10:13 +00004681$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Benny Prijonod5233702010-01-13 13:09:45 +00004682
Benny Prijono28d3c562012-03-30 07:10:13 +00004683 ;; #(
4684 *)
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00004685 as_fn_error $? "unknown endianness
Sauw Ming2f91da02012-06-07 02:24:51 +00004686 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00004687 esac
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004688
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004689
Sauw Minge7dbbc82011-10-24 09:28:13 +00004690if test "x$ac_cv_c_bigendian" = "xyes"; then
4691 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0"
4692else
4693 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1"
4694fi
4695
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004696case $target in
4697 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00004698 $as_echo "#define PJ_WIN32 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004699
Benny Prijono28d3c562012-03-30 07:10:13 +00004700 $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004701
Benny Prijono28d3c562012-03-30 07:10:13 +00004702 $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004703
4704 ;;
4705 *darwin*)
Benny Prijono28d3c562012-03-30 07:10:13 +00004706 $as_echo "#define PJ_DARWINOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004707
4708 ;;
4709 *linux*)
Benny Prijono28d3c562012-03-30 07:10:13 +00004710 $as_echo "#define PJ_LINUX 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004711
4712 ;;
4713 *rtems*)
Benny Prijono28d3c562012-03-30 07:10:13 +00004714 $as_echo "#define PJ_RTEMS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004715
4716 ;;
4717 *sunos* | *solaris* )
Benny Prijono28d3c562012-03-30 07:10:13 +00004718 $as_echo "#define PJ_SUNOS 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004719
4720 ;;
4721 *)
4722 ;;
4723esac
4724
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004725
4726
4727
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004728# Check whether --enable-floating-point was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00004729if test "${enable_floating_point+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004730 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00004731 $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004732
Benny Prijono28d3c562012-03-30 07:10:13 +00004733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5
4734$as_echo "Checking if floating point is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004735 fi
4736else
4737
Benny Prijono28d3c562012-03-30 07:10:13 +00004738 $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004739
Benny Prijono28d3c562012-03-30 07:10:13 +00004740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5
4741$as_echo "Checking if floating point is disabled... no" >&6; }
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
4743$as_echo_n "checking for fmod in -lm... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00004744if ${ac_cv_lib_m_fmod+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004745 $as_echo_n "(cached) " >&6
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004746else
4747 ac_check_lib_save_LIBS=$LIBS
4748LIBS="-lm $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00004749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004750/* end confdefs.h. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004751
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004752/* Override any GCC internal prototype to avoid an error.
4753 Use char because int might match the return type of a GCC
4754 builtin and then its argument prototype would still apply. */
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004755#ifdef __cplusplus
4756extern "C"
4757#endif
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004758char fmod ();
4759int
4760main ()
4761{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00004762return fmod ();
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004763 ;
4764 return 0;
4765}
4766_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00004767if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004768 ac_cv_lib_m_fmod=yes
4769else
Benny Prijono28d3c562012-03-30 07:10:13 +00004770 ac_cv_lib_m_fmod=no
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004771fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004772rm -f core conftest.err conftest.$ac_objext \
4773 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004774LIBS=$ac_check_lib_save_LIBS
4775fi
Benny Prijono28d3c562012-03-30 07:10:13 +00004776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
4777$as_echo "$ac_cv_lib_m_fmod" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00004778if test "x$ac_cv_lib_m_fmod" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004779 cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004780#define HAVE_LIBM 1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004781_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00004782
4783 LIBS="-lm $LIBS"
4784
4785fi
4786
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004787
Benny Prijonoa9b372a2006-07-24 02:07:11 +00004788fi
4789
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004790
4791
Benny Prijono28d3c562012-03-30 07:10:13 +00004792ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004793if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004794 $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004795
4796fi
4797
4798
Benny Prijono28d3c562012-03-30 07:10:13 +00004799ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004800if test "x$ac_cv_header_assert_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004801 $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004802
4803fi
4804
4805
Benny Prijono28d3c562012-03-30 07:10:13 +00004806ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004807if test "x$ac_cv_header_ctype_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004808 $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004809
4810fi
4811
4812
4813
4814case $target in
4815 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00004816 $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004817
4818 ;;
4819 *)
Benny Prijono28d3c562012-03-30 07:10:13 +00004820 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004821if test "x$ac_cv_header_errno_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004822 $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004823
4824fi
4825
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004826
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00004827 ;;
4828esac
4829
Benny Prijono28d3c562012-03-30 07:10:13 +00004830ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004831if test "x$ac_cv_header_fcntl_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004832 $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h
Benny Prijono1d481ab2008-01-24 15:27:30 +00004833
4834fi
4835
4836
Benny Prijono28d3c562012-03-30 07:10:13 +00004837ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004838if test "x$ac_cv_header_linux_socket_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004839 $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004840
4841fi
4842
4843
Benny Prijono28d3c562012-03-30 07:10:13 +00004844ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004845if test "x$ac_cv_header_limits_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004846 $as_echo "#define PJ_HAS_LIMITS_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004847
4848fi
4849
4850
Benny Prijono28d3c562012-03-30 07:10:13 +00004851ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004852if test "x$ac_cv_header_malloc_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004853 $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004854
4855fi
4856
4857
Benny Prijono28d3c562012-03-30 07:10:13 +00004858ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004859if test "x$ac_cv_header_netdb_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004860 $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h
Benny Prijono37fc9de2008-08-04 14:45:02 +00004861
4862fi
4863
4864
Benny Prijono28d3c562012-03-30 07:10:13 +00004865ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004866if test "x$ac_cv_header_netinet_in_systm_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004867 $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00004868
4869fi
4870
4871
Benny Prijono28d3c562012-03-30 07:10:13 +00004872ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004873if test "x$ac_cv_header_netinet_in_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004874 $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h
Benny Prijonoe3e65802011-02-28 07:44:19 +00004875
4876fi
4877
4878
Benny Prijono28d3c562012-03-30 07:10:13 +00004879ac_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 +00004880 # include <sys/types.h>
4881 #endif
4882 #if PJ_HAS_NETINET_IN_SYSTM_H
Benny Prijono37fc9de2008-08-04 14:45:02 +00004883 # include <netinet/in_systm.h>
4884 #endif
Benny Prijonod5233702010-01-13 13:09:45 +00004885 #if PJ_HAS_NETINET_IN_H
4886 # include <netinet/in.h>
4887 #endif
Benny Prijono37fc9de2008-08-04 14:45:02 +00004888
Benny Prijono28d3c562012-03-30 07:10:13 +00004889"
Sauw Ming2f91da02012-06-07 02:24:51 +00004890if test "x$ac_cv_header_netinet_ip_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004891 $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004892
Benny Prijono36d32492011-12-28 08:42:23 +00004893fi
4894
Sauw Minge7dbbc82011-10-24 09:28:13 +00004895
Benny Prijono28d3c562012-03-30 07:10:13 +00004896ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004897if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004898 $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004899
Benny Prijono36d32492011-12-28 08:42:23 +00004900fi
4901
Benny Prijono36d32492011-12-28 08:42:23 +00004902
Benny Prijono28d3c562012-03-30 07:10:13 +00004903ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004904if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004905 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
Sauw Ming2f91da02012-06-07 02:24:51 +00004906if test "x$ac_cv_func_getifaddrs" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004907 $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004908
4909fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004910
Sauw Minge7dbbc82011-10-24 09:28:13 +00004911fi
4912
Sauw Minge7dbbc82011-10-24 09:28:13 +00004913
Benny Prijono28d3c562012-03-30 07:10:13 +00004914ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004915if test "x$ac_cv_header_semaphore_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004916 $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004917
Benny Prijono36d32492011-12-28 08:42:23 +00004918fi
4919
Benny Prijono36d32492011-12-28 08:42:23 +00004920
Benny Prijono28d3c562012-03-30 07:10:13 +00004921ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004922if test "x$ac_cv_header_setjmp_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004923 $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004924
Benny Prijono36d32492011-12-28 08:42:23 +00004925fi
4926
Benny Prijono36d32492011-12-28 08:42:23 +00004927
Benny Prijono28d3c562012-03-30 07:10:13 +00004928ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004929if test "x$ac_cv_header_stdarg_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004930 $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004931
4932fi
Benny Prijono36d32492011-12-28 08:42:23 +00004933
Benny Prijono36d32492011-12-28 08:42:23 +00004934
Benny Prijono28d3c562012-03-30 07:10:13 +00004935ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004936if test "x$ac_cv_header_stddef_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004937 $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004938
Benny Prijono36d32492011-12-28 08:42:23 +00004939fi
4940
Sauw Minge7dbbc82011-10-24 09:28:13 +00004941
Benny Prijono28d3c562012-03-30 07:10:13 +00004942ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004943if test "x$ac_cv_header_stdio_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004944 $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004945
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004946fi
4947
Sauw Mingd8aa67c2011-08-09 04:31:41 +00004948
Benny Prijono28d3c562012-03-30 07:10:13 +00004949ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004950if test "x$ac_cv_header_stdint_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004951 $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004952
Benny Prijono36d32492011-12-28 08:42:23 +00004953fi
4954
Benny Prijono36d32492011-12-28 08:42:23 +00004955
Benny Prijono28d3c562012-03-30 07:10:13 +00004956ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004957if test "x$ac_cv_header_stdlib_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004958 $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004959
Benny Prijono36d32492011-12-28 08:42:23 +00004960fi
4961
Benny Prijono36d32492011-12-28 08:42:23 +00004962
Benny Prijono28d3c562012-03-30 07:10:13 +00004963ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004964if test "x$ac_cv_header_string_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004965 $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004966
Sauw Minge7dbbc82011-10-24 09:28:13 +00004967fi
4968
Sauw Minge7dbbc82011-10-24 09:28:13 +00004969
Benny Prijono28d3c562012-03-30 07:10:13 +00004970ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004971if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004972 $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004973
Benny Prijono36d32492011-12-28 08:42:23 +00004974fi
4975
Benny Prijono36d32492011-12-28 08:42:23 +00004976
Benny Prijono28d3c562012-03-30 07:10:13 +00004977ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004978if test "x$ac_cv_header_sys_select_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004979 $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004980
Benny Prijono36d32492011-12-28 08:42:23 +00004981fi
4982
Benny Prijono36d32492011-12-28 08:42:23 +00004983
Benny Prijono28d3c562012-03-30 07:10:13 +00004984ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004985if test "x$ac_cv_header_sys_socket_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004986 $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00004987
4988fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00004989
Sauw Minge7dbbc82011-10-24 09:28:13 +00004990
Benny Prijono28d3c562012-03-30 07:10:13 +00004991ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004992if test "x$ac_cv_header_sys_time_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00004993 $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00004994
Benny Prijono36d32492011-12-28 08:42:23 +00004995fi
Benny Prijono36d32492011-12-28 08:42:23 +00004996
Benny Prijono36d32492011-12-28 08:42:23 +00004997
Benny Prijono28d3c562012-03-30 07:10:13 +00004998ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00004999if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005000 $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00005001
Benny Prijono36d32492011-12-28 08:42:23 +00005002fi
5003
Benny Prijono36d32492011-12-28 08:42:23 +00005004
Benny Prijono28d3c562012-03-30 07:10:13 +00005005ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005006if test "x$ac_cv_header_sys_types_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005007 $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00005008
Benny Prijono36d32492011-12-28 08:42:23 +00005009fi
Benny Prijono36d32492011-12-28 08:42:23 +00005010
Sauw Minge7dbbc82011-10-24 09:28:13 +00005011
Benny Prijono28d3c562012-03-30 07:10:13 +00005012ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005013if test "x$ac_cv_header_sys_filio_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005014 $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00005015
Benny Prijono36d32492011-12-28 08:42:23 +00005016fi
5017
Benny Prijono36d32492011-12-28 08:42:23 +00005018
Benny Prijono28d3c562012-03-30 07:10:13 +00005019ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005020if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005021 $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00005022
Benny Prijono36d32492011-12-28 08:42:23 +00005023fi
5024
Benny Prijono36d32492011-12-28 08:42:23 +00005025
Benny Prijono28d3c562012-03-30 07:10:13 +00005026ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005027if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005028 $as_echo "#define PJ_HAS_SYS_UTSNAME_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00005029
5030fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00005031
Sauw Minge7dbbc82011-10-24 09:28:13 +00005032
Benny Prijono28d3c562012-03-30 07:10:13 +00005033ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005034if test "x$ac_cv_header_time_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005035 $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h
Sauw Mingd8aa67c2011-08-09 04:31:41 +00005036
Benny Prijono36d32492011-12-28 08:42:23 +00005037fi
Benny Prijono36d32492011-12-28 08:42:23 +00005038
Benny Prijono36d32492011-12-28 08:42:23 +00005039
Benny Prijono28d3c562012-03-30 07:10:13 +00005040ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005041if test "x$ac_cv_header_unistd_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005042 $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00005043
Benny Prijono36d32492011-12-28 08:42:23 +00005044fi
5045
Benny Prijono36d32492011-12-28 08:42:23 +00005046
Benny Prijono28d3c562012-03-30 07:10:13 +00005047ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005048if test "x$ac_cv_header_winsock_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005049 $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h
Benny Prijono36d32492011-12-28 08:42:23 +00005050
Benny Prijono36d32492011-12-28 08:42:23 +00005051fi
Benny Prijono36d32492011-12-28 08:42:23 +00005052
Sauw Ming68c14572011-07-20 03:00:48 +00005053
Benny Prijono28d3c562012-03-30 07:10:13 +00005054ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005055if test "x$ac_cv_header_winsock2_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005056 $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h
Sauw Ming68c14572011-07-20 03:00:48 +00005057
Benny Prijono36d32492011-12-28 08:42:23 +00005058fi
Benny Prijono36d32492011-12-28 08:42:23 +00005059
Benny Prijono36d32492011-12-28 08:42:23 +00005060
Benny Prijono28d3c562012-03-30 07:10:13 +00005061ac_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 +00005062 # include <winsock2.h>
5063 #elif PJ_HAS_WINSOCK_H
5064 # include <winsock.h>
5065 #endif
5066
Benny Prijono28d3c562012-03-30 07:10:13 +00005067"
Sauw Ming2f91da02012-06-07 02:24:51 +00005068if test "x$ac_cv_header_mswsock_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005069 $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h
Benny Prijonoa9948e62008-03-25 14:03:01 +00005070
5071fi
5072
5073
Benny Prijono28d3c562012-03-30 07:10:13 +00005074ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005075if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005076 $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h
Benny Prijonoe2746132008-09-27 13:16:35 +00005077
5078fi
5079
5080
Benny Prijono28d3c562012-03-30 07:10:13 +00005081ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005082if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
Benny Prijono4e48b512007-05-16 13:41:00 +00005083 ac_has_uuid_h=1
5084fi
5085
5086
Benny Prijono28d3c562012-03-30 07:10:13 +00005087ac_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 +00005088 # include <sys/types.h>
5089 #endif
5090 #if PJ_HAS_SYS_SOCKET_H
5091
Benny Prijono188ba7e2008-03-25 13:53:16 +00005092 # include <sys/socket.h>
5093 #endif
5094
Benny Prijono28d3c562012-03-30 07:10:13 +00005095"
Sauw Ming2f91da02012-06-07 02:24:51 +00005096if test "x$ac_cv_header_net_if_h" = xyes; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00005097 $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h
Benny Prijono188ba7e2008-03-25 13:53:16 +00005098
5099fi
5100
Benny Prijono188ba7e2008-03-25 13:53:16 +00005101
Benny Prijono28d3c562012-03-30 07:10:13 +00005102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5
5103$as_echo "Setting PJ_OS_NAME to $target" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005104cat >>confdefs.h <<_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005105#define PJ_OS_NAME "$target"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005106_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005107
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005108
Benny Prijono28d3c562012-03-30 07:10:13 +00005109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
5110$as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
5111$as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005112
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005113
Benny Prijono28d3c562012-03-30 07:10:13 +00005114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
5115$as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
5116$as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005117
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005118
Benny Prijono28d3c562012-03-30 07:10:13 +00005119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5
5120$as_echo "Setting PJ_HAS_MALLOC to 1" >&6; }
5121$as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005122
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005123
Benny Prijono28d3c562012-03-30 07:10:13 +00005124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
5125$as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
5126$as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005127
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005128
Benny Prijono28d3c562012-03-30 07:10:13 +00005129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
5130$as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
5131$as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005132
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005133
Benny Prijono28d3c562012-03-30 07:10:13 +00005134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5
5135$as_echo_n "checking if inet_aton() is available... " >&6; }
5136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005137/* end confdefs.h. */
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005138#include <sys/types.h>
5139 #include <sys/socket.h>
5140 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005141int
5142main ()
5143{
5144inet_aton(0, 0);
5145 ;
5146 return 0;
5147}
5148_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005149if ac_fn_c_try_compile "$LINENO"; then :
5150 $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005151
Benny Prijono28d3c562012-03-30 07:10:13 +00005152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5153$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005154else
Benny Prijono28d3c562012-03-30 07:10:13 +00005155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005157fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159
Benny Prijono28d3c562012-03-30 07:10:13 +00005160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5
5161$as_echo_n "checking if inet_pton() is available... " >&6; }
5162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005163/* end confdefs.h. */
5164#include <sys/types.h>
5165 #include <sys/socket.h>
5166 #include <arpa/inet.h>
5167int
5168main ()
5169{
5170inet_pton(0, 0, 0);
5171 ;
5172 return 0;
5173}
5174_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005175if ac_fn_c_try_compile "$LINENO"; then :
5176 $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005177
Benny Prijono28d3c562012-03-30 07:10:13 +00005178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5179$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005180else
Benny Prijono28d3c562012-03-30 07:10:13 +00005181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005183fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5185
Benny Prijono28d3c562012-03-30 07:10:13 +00005186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5
5187$as_echo_n "checking if inet_ntop() is available... " >&6; }
5188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005189/* end confdefs.h. */
5190#include <sys/types.h>
5191 #include <sys/socket.h>
5192 #include <arpa/inet.h>
5193int
5194main ()
5195{
5196inet_ntop(0, 0, 0, 0);
5197 ;
5198 return 0;
5199}
5200_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005201if ac_fn_c_try_compile "$LINENO"; then :
5202 $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005203
Benny Prijono28d3c562012-03-30 07:10:13 +00005204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5205$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005206else
Benny Prijono28d3c562012-03-30 07:10:13 +00005207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005209fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211
Benny Prijono28d3c562012-03-30 07:10:13 +00005212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5
5213$as_echo_n "checking if getaddrinfo() is available... " >&6; }
5214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005215/* end confdefs.h. */
5216#include <sys/types.h>
5217 #include <sys/socket.h>
5218 #include <netdb.h>
5219int
5220main ()
5221{
5222getaddrinfo(0, 0, 0, 0);
5223 ;
5224 return 0;
5225}
5226_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005227if ac_fn_c_try_compile "$LINENO"; then :
5228 $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005229
Benny Prijono28d3c562012-03-30 07:10:13 +00005230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5231$as_echo "yes" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005232else
Benny Prijono28d3c562012-03-30 07:10:13 +00005233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234$as_echo "no" >&6; }
Benny Prijonoc16c6e32007-11-18 14:53:47 +00005235fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5237
Benny Prijono28d3c562012-03-30 07:10:13 +00005238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5
5239$as_echo_n "checking if sockaddr_in has sin_len member... " >&6; }
5240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005241/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005242#include <sys/types.h>
5243 #include <sys/socket.h>
5244 #include <netinet/in.h>
5245 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005246int
5247main ()
5248{
5249struct sockaddr_in a; a.sin_len=0;
5250 ;
5251 return 0;
5252}
5253_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005254if ac_fn_c_try_compile "$LINENO"; then :
5255 $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005256
Benny Prijono28d3c562012-03-30 07:10:13 +00005257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5258$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005259else
Benny Prijono28d3c562012-03-30 07:10:13 +00005260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005262fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264
Benny Prijono28d3c562012-03-30 07:10:13 +00005265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5
5266$as_echo_n "checking if socklen_t is available... " >&6; }
5267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005268/* end confdefs.h. */
Benny Prijonod5233702010-01-13 13:09:45 +00005269#include <sys/types.h>
5270 #include <sys/socket.h>
Benny Prijono30f85c62006-09-09 20:05:33 +00005271int
5272main ()
5273{
5274socklen_t xxx = 0;
5275 ;
5276 return 0;
5277}
5278_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005279if ac_fn_c_try_compile "$LINENO"; then :
5280 $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h
Benny Prijono30f85c62006-09-09 20:05:33 +00005281
Benny Prijono28d3c562012-03-30 07:10:13 +00005282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5283$as_echo "yes" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005284else
Benny Prijono28d3c562012-03-30 07:10:13 +00005285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286$as_echo "no" >&6; }
Benny Prijono30f85c62006-09-09 20:05:33 +00005287fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289
Benny Prijono28d3c562012-03-30 07:10:13 +00005290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5
5291$as_echo_n "checking if SO_ERROR is available... " >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005292case $target in
5293 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00005294 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005295
Benny Prijono28d3c562012-03-30 07:10:13 +00005296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5297$as_echo "yes" >&6; }
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005298 ;;
5299 *)
Benny Prijono28d3c562012-03-30 07:10:13 +00005300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005301/* end confdefs.h. */
Benny Prijonob466e232006-09-10 08:53:59 +00005302#include <sys/types.h>
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005303 #include <sys/socket.h>
5304 #include <netinet/in.h>
5305 #include <arpa/inet.h>
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005306int
5307main ()
5308{
5309int i=SO_ERROR;
5310 ;
5311 return 0;
5312}
5313_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005314if ac_fn_c_try_compile "$LINENO"; then :
5315 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005316
Benny Prijono28d3c562012-03-30 07:10:13 +00005317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5318$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005319else
Benny Prijono28d3c562012-03-30 07:10:13 +00005320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005322fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005324 ;;
5325esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005326
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005327
Benny Prijono28d3c562012-03-30 07:10:13 +00005328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5
5329$as_echo_n "checking if pthread_rwlock_t is available... " >&6; }
5330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005331/* end confdefs.h. */
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005332#include <pthread.h>
5333int
5334main ()
5335{
5336pthread_rwlock_t *x;
5337 ;
5338 return 0;
5339}
5340_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005341if ac_fn_c_try_compile "$LINENO"; then :
5342 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005343
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005344 ac_rwmutex="yes"
Benny Prijono28d3c562012-03-30 07:10:13 +00005345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5346$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005347else
Benny Prijono28d3c562012-03-30 07:10:13 +00005348 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005349
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005350 ac_rwmutex="no"
Benny Prijono28d3c562012-03-30 07:10:13 +00005351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352$as_echo "no" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00005353fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005355
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005356if test "$ac_rwmutex" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00005357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
5358$as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; }
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005360/* end confdefs.h. */
5361#define _POSIX_READER_WRITER_LOCKS
5362 #include <pthread.h>
5363int
5364main ()
5365{
5366pthread_rwlock_t *x;
5367 ;
5368 return 0;
5369}
5370_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005371if ac_fn_c_try_compile "$LINENO"; then :
5372 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005373
5374 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
Benny Prijono28d3c562012-03-30 07:10:13 +00005375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5376$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005377else
Benny Prijono28d3c562012-03-30 07:10:13 +00005378 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005379
Benny Prijono28d3c562012-03-30 07:10:13 +00005380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005382fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384fi
5385
Benny Prijono28d3c562012-03-30 07:10:13 +00005386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5
5387$as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; }
5388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005389/* end confdefs.h. */
5390#include <pthread.h>
5391int
5392main ()
5393{
5394pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
5395 ;
5396 return 0;
5397}
5398_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005399if ac_fn_c_try_compile "$LINENO"; then :
5400 $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005401
Benny Prijono28d3c562012-03-30 07:10:13 +00005402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5403$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005404else
Benny Prijono28d3c562012-03-30 07:10:13 +00005405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005407fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409
Benny Prijono28d3c562012-03-30 07:10:13 +00005410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5
5411$as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; }
5412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005413/* end confdefs.h. */
5414#include <pthread.h>
5415int
5416main ()
5417{
5418pthread_mutexattr_t attr;
5419 attr.recursive=1;
5420 ;
5421 return 0;
5422}
5423_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005424if ac_fn_c_try_compile "$LINENO"; then :
5425 $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005426
Benny Prijono28d3c562012-03-30 07:10:13 +00005427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5428$as_echo "yes" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005429else
Benny Prijono28d3c562012-03-30 07:10:13 +00005430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431$as_echo "no" >&6; }
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005432fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00005434
Benny Prijono99eec382008-09-18 21:22:16 +00005435
Benny Prijono28d3c562012-03-30 07:10:13 +00005436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5
5437$as_echo_n "checking ioqueue backend... " >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005438# Check whether --enable-epoll was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005439if test "${enable_epoll+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005440 enableval=$enable_epoll;
Benny Prijono99eec382008-09-18 21:22:16 +00005441 ac_os_objs=ioqueue_epoll.o
Benny Prijono28d3c562012-03-30 07:10:13 +00005442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5
5443$as_echo "/dev/epoll" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005444
5445else
5446
5447 ac_os_objs=ioqueue_select.o
Benny Prijono28d3c562012-03-30 07:10:13 +00005448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5
5449$as_echo "select()" >&6; }
Benny Prijono99eec382008-09-18 21:22:16 +00005450
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005451fi
5452
Benny Prijono1c5f4e42008-02-07 13:11:39 +00005453
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005454
5455case $target in
5456 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono99eec382008-09-18 21:22:16 +00005457 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 +00005458 ;;
5459 *)
Benny Prijono99eec382008-09-18 21:22:16 +00005460 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 +00005461 case $target in
5462 arm-apple-darwin*)
Sauw Mingfe42f0c2011-03-01 10:42:11 +00005463 ac_os_objs="$ac_os_objs os_info_iphone.o"
Sauw Ming6a970a32011-03-01 05:25:27 +00005464 ;;
5465 esac
Benny Prijono4e48b512007-05-16 13:41:00 +00005466 # UUID
5467 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
5468 ac_os_objs="$ac_os_objs guid_uuid.o"
5469 else
5470 ac_os_objs="$ac_os_objs guid_simple.o"
5471 fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00005472 ;;
5473esac
5474
Sauw Ming68c14572011-07-20 03:00:48 +00005475case $target in
5476 *darwin*)
5477 ac_os_objs="$ac_os_objs os_core_darwin.o"
5478 ;;
5479esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005480
5481
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005482ac_external_speex=0
5483
5484
5485# Check whether --with-external-speex was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005486if test "${with_external_speex+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005487 withval=$with_external_speex;
5488 if test "x$with_external_speex" != "xno"; then
5489 # Test Speex installation
Benny Prijono28d3c562012-03-30 07:10:13 +00005490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5
5491$as_echo_n "checking if external Speex devkit is installed... " >&6; }
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005493/* end confdefs.h. */
5494#include <speex/speex.h>
5495 #include <speex/speex_echo.h>
5496
5497int
5498main ()
5499{
5500speex_echo_state_init(0, 0); speex_encoder_init(0);
5501 ;
5502 return 0;
5503}
5504_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005505if ac_fn_c_try_compile "$LINENO"; then :
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5507$as_echo "yes!!" >&6; }
5508 $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005509
5510 ac_external_speex="1"
5511
5512else
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005513 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 +00005514fi
5515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 fi
5517
5518
5519fi
5520
5521
5522ac_external_gsm=0
5523
5524
5525# Check whether --with-external-gsm was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005526if test "${with_external_gsm+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005527 withval=$with_external_gsm;
5528 if test "x$with_external_gsm" != "xno"; then
Benny Prijonod4306432010-05-01 22:05:41 +00005529 # Test GSM library installation
Benny Prijono28d3c562012-03-30 07:10:13 +00005530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5
5531$as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; }
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005533/* end confdefs.h. */
5534#include <gsm/gsm.h>
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005535int
5536main ()
5537{
5538gsm_create();
5539 ;
5540 return 0;
5541}
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005542_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005543if ac_fn_c_try_compile "$LINENO"; then :
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5545$as_echo "yes!!" >&6; }
5546 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005547
Benny Prijono28d3c562012-03-30 07:10:13 +00005548 $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005549
5550 ac_external_gsm="1"
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005551
5552else
Benny Prijono46bd0842010-02-12 14:12:41 +00005553
Benny Prijono28d3c562012-03-30 07:10:13 +00005554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555$as_echo "no" >&6; }
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5
5557$as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; }
5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod4306432010-05-01 22:05:41 +00005559/* end confdefs.h. */
5560#include <gsm.h>
5561int
5562main ()
5563{
5564gsm_create();
5565 ;
5566 return 0;
5567}
5568_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005569if ac_fn_c_try_compile "$LINENO"; then :
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5571$as_echo "yes!!" >&6; }
5572 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005573
Benny Prijono28d3c562012-03-30 07:10:13 +00005574 $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h
Benny Prijonod4306432010-05-01 22:05:41 +00005575
5576 ac_external_gsm="1"
5577
5578else
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005579 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 +00005580
5581
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005582fi
Benny Prijonod4306432010-05-01 22:05:41 +00005583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijono46bd0842010-02-12 14:12:41 +00005584
Benny Prijonod4306432010-05-01 22:05:41 +00005585
5586fi
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 fi
5589
5590
5591fi
5592
5593
5594
5595
Benny Prijono4e48b512007-05-16 13:41:00 +00005596
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005597# Check whether --enable-sound was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005598if test "${enable_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005599 enableval=$enable_sound; if test "$enable_sound" = "no"; then
Benny Prijono1d971622006-09-10 22:27:40 +00005600 ac_pjmedia_snd=null
Benny Prijono28d3c562012-03-30 07:10:13 +00005601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5
5602$as_echo "Checking if sound is disabled... yes" >&6; }
Benny Prijono1d971622006-09-10 22:27:40 +00005603 fi
5604
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005605fi
5606
Benny Prijono1d971622006-09-10 22:27:40 +00005607
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005608ac_external_pa=0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005609
Benny Prijono27c98722007-04-09 21:28:15 +00005610
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005611# Check whether --with-external-pa was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005612if test "${with_external_pa+set}" = set; then :
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005613 withval=$with_external_pa;
5614 if test "x$with_external_pa" != "xno"; then
5615 # Test PortAudio installation
Benny Prijono28d3c562012-03-30 07:10:13 +00005616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5
5617$as_echo_n "checking if external PortAudio devkit is installed... " >&6; }
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005619/* end confdefs.h. */
5620#include <portaudio.h>
5621
5622int
5623main ()
5624{
5625Pa_Initialize();
5626 ;
5627 return 0;
5628}
5629_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005630if ac_fn_c_try_compile "$LINENO"; then :
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5632$as_echo "yes!!" >&6; }
Benny Prijono8a9b3b22010-01-14 14:46:54 +00005633 ac_external_pa="1"
5634
5635else
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00005636 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 +00005637fi
5638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benny Prijonofe0c1272010-01-13 16:28:15 +00005639 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005640
Benny Prijono27c98722007-04-09 21:28:15 +00005641
5642fi
Benny Prijonofe0c1272010-01-13 16:28:15 +00005643
5644
5645
Benny Prijono28d3c562012-03-30 07:10:13 +00005646ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005647if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005648 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
5649fi
5650
5651
Benny Prijono28d3c562012-03-30 07:10:13 +00005652ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005653if test "x$ac_cv_header_linux_soundcard_h" = xyes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005654 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
5655fi
5656
5657
Benny Prijono28d3c562012-03-30 07:10:13 +00005658ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005659if test "x$ac_cv_header_machine_soundcard_h" = xyes; then :
Benny Prijono27c98722007-04-09 21:28:15 +00005660 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
5661fi
5662
5663
5664
Benny Prijono3e091672008-01-09 15:43:02 +00005665if test "x$ac_cv_c_bigendian" = "xyes"; then
5666 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
5667else
5668 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
5669fi
5670
Benny Prijono1d971622006-09-10 22:27:40 +00005671if test "$enable_sound" = "no"; then
5672 true;
5673else
5674 case $target in
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005675 arm-apple-darwin*)
Sauw Ming6a970a32011-03-01 05:25:27 +00005676 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit"
Benny Prijono28d3c562012-03-30 07:10:13 +00005677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5
5678$as_echo "Checking sound device backend... AudioUnit" >&6; }
Benny Prijono8ec5eae2010-05-12 10:59:20 +00005679 ;;
Benny Prijonob466e232006-09-10 08:53:59 +00005680 *darwin*)
Benny Prijono39ae2da2006-10-13 17:57:42 +00005681 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
5682 if test "`uname -r`" = "6.8"; then
Benny Prijono27c98722007-04-09 21:28:15 +00005683 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
Benny Prijono39ae2da2006-10-13 17:57:42 +00005684 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
5685 ac_pjmedia_snd=pa_old_darwinos
Benny Prijono28d3c562012-03-30 07:10:13 +00005686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5
5687$as_echo "Checking sound device backend... old coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005688 else
5689 ac_pjmedia_snd=pa_darwinos
Benny Prijono28d3c562012-03-30 07:10:13 +00005690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5
5691$as_echo "Checking sound device backend... coreaudio" >&6; }
Benny Prijono39ae2da2006-10-13 17:57:42 +00005692 fi
Benny Prijonob466e232006-09-10 08:53:59 +00005693 ;;
5694 *cygwin* | *mingw*)
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005695 ac_pjmedia_snd=pa_win32
Benny Prijono28d3c562012-03-30 07:10:13 +00005696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5
5697$as_echo "Checking sound device backend... win32 sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005698 ;;
5699 *rtems*)
5700 ac_pjmedia_snd=null
Benny Prijono28d3c562012-03-30 07:10:13 +00005701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5
5702$as_echo "Checking sound device backend... null sound" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005703 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005704 *)
Benny Prijono0b462322008-03-12 22:44:24 +00005705 ac_pjmedia_snd=pa_unix
Benny Prijono28d3c562012-03-30 07:10:13 +00005706 ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00005707if test "x$ac_cv_header_alsa_version_h" = xyes; then :
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005708 ac_pa_use_alsa=1
5709
5710 LIBS="$LIBS -lasound"
5711
5712else
5713 ac_pa_use_alsa=0
5714
5715fi
5716
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005717
Benny Prijono28d3c562012-03-30 07:10:13 +00005718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5
5719$as_echo "Checking sound device backend... unix" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005720
5721 ac_pa_use_oss=1
5722
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005723 # Check whether --enable-oss was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005724if test "${enable_oss+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005725 enableval=$enable_oss;
Benny Prijono0b462322008-03-12 22:44:24 +00005726 if test "$enable_oss" = "no"; then
5727 ac_pa_use_oss=0
Benny Prijono28d3c562012-03-30 07:10:13 +00005728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5
5729$as_echo "Checking if OSS audio is disabled... yes" >&6; }
Benny Prijono0b462322008-03-12 22:44:24 +00005730 fi
5731
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005732fi
5733
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005734 ;;
Benny Prijono1d971622006-09-10 22:27:40 +00005735 esac
5736fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005737
Sauw Ming6e6c2152010-12-14 13:03:10 +00005738
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00005739
5740# Check whether --enable-video was given.
5741if test "${enable_video+set}" = set; then :
5742 enableval=$enable_video; if test "$enable_video" = "no"; then
5743 #AC_DEFINE(PJMEDIA_HAS_VIDEO,0)
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Video is disabled" >&5
5745$as_echo "Video is disabled" >&6; }
5746 enable_sdl="no"
5747 enable_ffmpeg="no"
5748 enable_v4l2="no"
5749 fi
5750fi
5751
5752
5753case $target in
5754 arm-apple-darwin*)
5755 LIBS="$LIBS -framework UIKit"
5756 ;;
5757 *darwin*)
5758 LIBS="$LIBS -framework Foundation -framework AppKit"
5759 ;;
5760esac
5761
Sauw Ming6e6c2152010-12-14 13:03:10 +00005762if test "$enable_video" = "no"; then
5763 true;
5764else
5765 case $target in
5766 arm-apple-darwin*)
5767 ac_pjmedia_video=iphone_os
5768
Sauw Ming24c39a32011-08-16 05:44:46 +00005769
5770 SAVED_LIBS="$LIBS"
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00005771 LIBS="-framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
Benny Prijono28d3c562012-03-30 07:10:13 +00005772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Ming24c39a32011-08-16 05:44:46 +00005773/* end confdefs.h. */
5774
5775int
5776main ()
5777{
5778
5779 ;
5780 return 0;
5781}
5782_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005783if ac_fn_c_try_link "$LINENO"; then :
Sauw Ming24c39a32011-08-16 05:44:46 +00005784 ac_pjmedia_video_has_ios=yes
5785else
Benny Prijono28d3c562012-03-30 07:10:13 +00005786 ac_pjmedia_video_has_ios=no
Sauw Ming24c39a32011-08-16 05:44:46 +00005787fi
Benny Prijono28d3c562012-03-30 07:10:13 +00005788rm -f core conftest.err conftest.$ac_objext \
5789 conftest$ac_exeext conftest.$ac_ext
Sauw Ming24c39a32011-08-16 05:44:46 +00005790 LIBS="$SAVED_LIBS"
5791 if test "$ac_pjmedia_video_has_ios" = "yes"; then
5792 ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1"
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00005793 LIBS="$LIBS -framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
Benny Prijono28d3c562012-03-30 07:10:13 +00005794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... yes" >&5
5795$as_echo "Checking if AVFoundation framework is available... yes" >&6; }
Sauw Ming24c39a32011-08-16 05:44:46 +00005796 else
Benny Prijono28d3c562012-03-30 07:10:13 +00005797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... no" >&5
5798$as_echo "Checking if AVFoundation framework is available... no" >&6; }
Sauw Ming24c39a32011-08-16 05:44:46 +00005799 fi
Sauw Ming6e6c2152010-12-14 13:03:10 +00005800 ;;
5801 *darwin*)
5802 ac_pjmedia_video=mac_os
5803
5804
5805 SAVED_LIBS="$LIBS"
5806 LIBS="-framework QTKit"
Benny Prijono28d3c562012-03-30 07:10:13 +00005807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Ming6e6c2152010-12-14 13:03:10 +00005808/* end confdefs.h. */
5809
5810int
5811main ()
5812{
5813
5814 ;
5815 return 0;
5816}
5817_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00005818if ac_fn_c_try_link "$LINENO"; then :
Sauw Ming6e6c2152010-12-14 13:03:10 +00005819 ac_pjmedia_video_has_qt=yes
5820else
Benny Prijono28d3c562012-03-30 07:10:13 +00005821 ac_pjmedia_video_has_qt=no
Sauw Ming6e6c2152010-12-14 13:03:10 +00005822fi
Benny Prijono28d3c562012-03-30 07:10:13 +00005823rm -f core conftest.err conftest.$ac_objext \
5824 conftest$ac_exeext conftest.$ac_ext
Sauw Ming6e6c2152010-12-14 13:03:10 +00005825 LIBS="$SAVED_LIBS"
5826 if test "$ac_pjmedia_video_has_qt" = "yes"; then
5827 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1"
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00005828 LIBS="$LIBS -framework QTKit -framework QuartzCore -framework OpenGL"
Benny Prijono28d3c562012-03-30 07:10:13 +00005829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... yes" >&5
5830$as_echo "Checking if QTKit framework is available... yes" >&6; }
Sauw Ming6e6c2152010-12-14 13:03:10 +00005831 else
Benny Prijono28d3c562012-03-30 07:10:13 +00005832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... no" >&5
5833$as_echo "Checking if QTKit framework is available... no" >&6; }
Sauw Ming6e6c2152010-12-14 13:03:10 +00005834 fi
5835 ;;
5836 esac
5837fi
5838
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005839# Check whether --enable-ext_sound was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005840if test "${enable_ext_sound+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005841 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
Benny Prijonoebb2c332008-07-28 23:40:58 +00005842 ac_pjmedia_snd=external
Benny Prijono28d3c562012-03-30 07:10:13 +00005843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5
5844$as_echo "Checking if external sound is set... yes" >&6; }
Benny Prijonoebb2c332008-07-28 23:40:58 +00005845 fi
5846
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005847fi
Benny Prijonoebb2c332008-07-28 23:40:58 +00005848
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005849
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005850
5851# Check whether --enable-small-filter was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005852if test "${enable_small_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005853 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005854 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
Benny Prijono28d3c562012-03-30 07:10:13 +00005855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5
5856$as_echo "Checking if small filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005857 fi
5858else
Benny Prijono28d3c562012-03-30 07:10:13 +00005859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5
5860$as_echo "Checking if small filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005861fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005862
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005863
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005864
5865# Check whether --enable-large-filter was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005866if test "${enable_large_filter+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005867 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005868 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
Benny Prijono28d3c562012-03-30 07:10:13 +00005869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5
5870$as_echo "Checking if large filter is disabled... yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005871 fi
5872else
Benny Prijono28d3c562012-03-30 07:10:13 +00005873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5
5874$as_echo "Checking if large filter is disabled... no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005875fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005876
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005877
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005878
5879# Check whether --enable-speex-aec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005880if test "${enable_speex_aec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005881 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005882 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
Benny Prijono28d3c562012-03-30 07:10:13 +00005883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5
5884$as_echo "Checking if Speex AEC is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005885 fi
5886else
Benny Prijono28d3c562012-03-30 07:10:13 +00005887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5
5888$as_echo "Checking if Speex AEC is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005889fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005890
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005891
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005892
5893# Check whether --enable-g711-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005894if test "${enable_g711_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005895 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005896 ac_no_g711_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005897 $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005898
Benny Prijono28d3c562012-03-30 07:10:13 +00005899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5
5900$as_echo "Checking if G.711 codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005901 fi
5902else
Benny Prijono28d3c562012-03-30 07:10:13 +00005903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5
5904$as_echo "Checking if G.711 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005905fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005906
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005907
5908
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005909
5910# Check whether --enable-l16-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005911if test "${enable_l16_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005912 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005913 ac_no_l16_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005914 $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005915
Benny Prijono28d3c562012-03-30 07:10:13 +00005916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5
5917$as_echo "Checking if L16 codecs are disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005918 fi
5919else
Benny Prijono28d3c562012-03-30 07:10:13 +00005920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5
5921$as_echo "Checking if L16 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005922fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005923
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005924
5925
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005926
5927# Check whether --enable-gsm-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005928if test "${enable_gsm_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005929 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005930 ac_no_gsm_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005931 $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005932
Benny Prijono28d3c562012-03-30 07:10:13 +00005933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5
5934$as_echo "Checking if GSM codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005935 fi
5936else
Benny Prijono28d3c562012-03-30 07:10:13 +00005937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5
5938$as_echo "Checking if GSM codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005939fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005940
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005941
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005942
5943# Check whether --enable-g722-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005944if test "${enable_g722_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005945 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
Benny Prijono71f657d2008-03-17 14:24:21 +00005946 ac_no_g722_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005947 $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h
Benny Prijono71f657d2008-03-17 14:24:21 +00005948
Benny Prijono28d3c562012-03-30 07:10:13 +00005949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5
5950$as_echo "Checking if G.722 codec is disabled...yes" >&6; }
Benny Prijono71f657d2008-03-17 14:24:21 +00005951 fi
5952else
Benny Prijono28d3c562012-03-30 07:10:13 +00005953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5
5954$as_echo "Checking if G.722 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005955fi
Benny Prijono71f657d2008-03-17 14:24:21 +00005956
5957
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005958
5959# Check whether --enable-g7221-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005960if test "${enable_g7221_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005961 enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
5962 ac_no_g7221_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005963 $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005964
Benny Prijono28d3c562012-03-30 07:10:13 +00005965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5
5966$as_echo "Checking if G.722.1 codec is disabled...yes" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005967 fi
5968else
Benny Prijono28d3c562012-03-30 07:10:13 +00005969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5
5970$as_echo "Checking if G.722.1 codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005971fi
5972
5973
5974
5975# Check whether --enable-speex-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005976if test "${enable_speex_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005977 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005978 ac_no_speex_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005979 $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005980
Benny Prijono28d3c562012-03-30 07:10:13 +00005981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5
5982$as_echo "Checking if Speex codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005983 fi
5984else
Benny Prijono28d3c562012-03-30 07:10:13 +00005985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5
5986$as_echo "Checking if Speex codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005987fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005988
Benny Prijono7e0d75f2006-12-25 20:34:14 +00005989
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005990
5991# Check whether --enable-ilbc-codec was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00005992if test "${enable_ilbc_codec+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00005993 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005994 ac_no_ilbc_codec=1
Benny Prijono28d3c562012-03-30 07:10:13 +00005995 $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h
Benny Prijono06d1d0e2007-01-27 18:09:28 +00005996
Benny Prijono28d3c562012-03-30 07:10:13 +00005997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5
5998$as_echo "Checking if iLBC codec is disabled...yes" >&6; }
Benny Prijonoc4c61d02006-08-20 20:47:34 +00005999 fi
6000else
Benny Prijono28d3c562012-03-30 07:10:13 +00006001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5
6002$as_echo "Checking if iLBC codec is disabled...no" >&6; }
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006003fi
Benny Prijonoc4c61d02006-08-20 20:47:34 +00006004
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006005
6006# Check whether --enable-libsamplerate was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006007if test "${enable_libsamplerate+set}" = set; then :
6008 enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5
6009$as_echo_n "checking for src_new in -lsamplerate... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006010if ${ac_cv_lib_samplerate_src_new+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00006011 $as_echo_n "(cached) " >&6
Benny Prijono550a1a62007-10-16 08:54:00 +00006012else
6013 ac_check_lib_save_LIBS=$LIBS
6014LIBS="-lsamplerate $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00006016/* end confdefs.h. */
6017
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006018/* Override any GCC internal prototype to avoid an error.
6019 Use char because int might match the return type of a GCC
6020 builtin and then its argument prototype would still apply. */
Benny Prijono550a1a62007-10-16 08:54:00 +00006021#ifdef __cplusplus
6022extern "C"
6023#endif
Benny Prijono550a1a62007-10-16 08:54:00 +00006024char src_new ();
6025int
6026main ()
6027{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006028return src_new ();
Benny Prijono550a1a62007-10-16 08:54:00 +00006029 ;
6030 return 0;
6031}
6032_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006033if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00006034 ac_cv_lib_samplerate_src_new=yes
6035else
Benny Prijono28d3c562012-03-30 07:10:13 +00006036 ac_cv_lib_samplerate_src_new=no
Benny Prijono550a1a62007-10-16 08:54:00 +00006037fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006038rm -f core conftest.err conftest.$ac_objext \
6039 conftest$ac_exeext conftest.$ac_ext
Benny Prijono550a1a62007-10-16 08:54:00 +00006040LIBS=$ac_check_lib_save_LIBS
6041fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5
6043$as_echo "$ac_cv_lib_samplerate_src_new" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006044if test "x$ac_cv_lib_samplerate_src_new" = xyes; then :
Benny Prijono550a1a62007-10-16 08:54:00 +00006045 cat >>confdefs.h <<_ACEOF
6046#define HAVE_LIBSAMPLERATE 1
6047_ACEOF
6048
6049 LIBS="-lsamplerate $LIBS"
6050
6051fi
6052
6053else
Benny Prijono28d3c562012-03-30 07:10:13 +00006054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5
6055$as_echo "Skipping libsamplerate detection" >&6; }
6056
6057fi
6058
6059
6060
6061# Check whether --enable-resample_dll was given.
6062if test "${enable_resample_dll+set}" = set; then :
6063 enableval=$enable_resample_dll; if test "$enable_resample_dll" = "yes"; then
6064 ac_resample_dll=1
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... yes" >&5
6066$as_echo "Building libresample as shared library... yes" >&6; }
6067 fi
6068else
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... no" >&5
6070$as_echo "Building libresample as shared library... no" >&6; }
Benny Prijono5b0af632011-07-20 03:16:25 +00006071
6072fi
6073
6074
6075
6076# Check whether --with-sdl was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006077if test "${with_sdl+set}" = set; then :
Benny Prijono5b0af632011-07-20 03:16:25 +00006078 withval=$with_sdl;
6079else
6080 with_sdl=no
Benny Prijono550a1a62007-10-16 08:54:00 +00006081
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006082fi
Benny Prijono0822c192008-08-21 20:59:58 +00006083
6084
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006085if test "x$ac_cross_compile" != "x" -a "x$with_sdl" = "xno"; then
6086 enable_sdl=no
6087fi
6088
Benny Prijonoc45d9512010-12-10 11:04:30 +00006089# Check whether --enable-sdl was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006090if test "${enable_sdl+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006091 enableval=$enable_sdl;
6092 if test "$enable_sdl" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SDL is disabled... yes" >&5
6094$as_echo "Checking if SDL is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006095 fi
6096
6097else
6098
Benny Prijono5b0af632011-07-20 03:16:25 +00006099 if test "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SDL prefix... $with_sdl" >&5
6101$as_echo "Using SDL prefix... $with_sdl" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006102 for ac_prog in sdl2-config sdl-config
Nanang Izzuddin08b20fe2012-06-06 09:37:25 +00006103do
6104 # Extract the first word of "$ac_prog", so it can be a program name with args.
6105set dummy $ac_prog; ac_word=$2
6106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006108if ${ac_cv_path_SDL_CONFIG+:} false; then :
Nanang Izzuddin08b20fe2012-06-06 09:37:25 +00006109 $as_echo_n "(cached) " >&6
6110else
6111 case $SDL_CONFIG in
6112 [\\/]* | ?:[\\/]*)
6113 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6114 ;;
6115 *)
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117for as_dir in $with_sdl/bin
6118do
6119 IFS=$as_save_IFS
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00006122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Nanang Izzuddin08b20fe2012-06-06 09:37:25 +00006123 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 break 2
6126 fi
6127done
6128 done
6129IFS=$as_save_IFS
6130
6131 ;;
6132esac
6133fi
6134SDL_CONFIG=$ac_cv_path_SDL_CONFIG
6135if test -n "$SDL_CONFIG"; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
6137$as_echo "$SDL_CONFIG" >&6; }
6138else
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140$as_echo "no" >&6; }
6141fi
6142
6143
6144 test -n "$SDL_CONFIG" && break
6145done
6146
6147 else
Sauw Ming2f91da02012-06-07 02:24:51 +00006148 for ac_prog in sdl2-config sdl-config
Nanang Izzuddin08b20fe2012-06-06 09:37:25 +00006149do
6150 # Extract the first word of "$ac_prog", so it can be a program name with args.
6151set dummy $ac_prog; ac_word=$2
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006154if ${ac_cv_path_SDL_CONFIG+:} false; then :
Nanang Izzuddin08b20fe2012-06-06 09:37:25 +00006155 $as_echo_n "(cached) " >&6
6156else
6157 case $SDL_CONFIG in
6158 [\\/]* | ?:[\\/]*)
6159 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6160 ;;
6161 *)
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163for as_dir in $PATH
6164do
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00006168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Nanang Izzuddin08b20fe2012-06-06 09:37:25 +00006169 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 break 2
6172 fi
6173done
6174 done
6175IFS=$as_save_IFS
6176
6177 ;;
6178esac
6179fi
6180SDL_CONFIG=$ac_cv_path_SDL_CONFIG
6181if test -n "$SDL_CONFIG"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
6183$as_echo "$SDL_CONFIG" >&6; }
6184else
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186$as_echo "no" >&6; }
6187fi
6188
6189
6190 test -n "$SDL_CONFIG" && break
6191done
6192
Benny Prijono5b0af632011-07-20 03:16:25 +00006193 fi
6194
Nanang Izzuddin08b20fe2012-06-06 09:37:25 +00006195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL availability" >&5
6196$as_echo_n "checking SDL availability... " >&6; }
6197 if test "x$SDL_CONFIG" = "x"; then
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6199$as_echo "not found" >&6; }
6200 elif (sh -c "$SDL_CONFIG --version" | grep -e '^1\.3' -e '^2\.') then
Benny Prijonoc45d9512010-12-10 11:04:30 +00006201
6202
Nanang Izzuddin08b20fe2012-06-06 09:37:25 +00006203 ac_sdl_cflags=`$SDL_CONFIG --cflags`
6204 ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags"
6205 ac_sdl_ldflags=`$SDL_CONFIG --libs`
6206 LIBS="$LIBS $ac_sdl_ldflags"
6207 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported SDL version" >&5
6209$as_echo "Unsupported SDL version" >&6; }
Nanang Izzuddin08b20fe2012-06-06 09:37:25 +00006210 fi
Benny Prijono550a1a62007-10-16 08:54:00 +00006211
Benny Prijono0822c192008-08-21 20:59:58 +00006212fi
6213
6214
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006215
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006216
6217# Check whether --with-ffmpeg was given.
6218if test "${with_ffmpeg+set}" = set; then :
6219 withval=$with_ffmpeg;
6220else
6221 with_ffmpeg=no
6222
6223fi
6224
6225
6226if test "x$ac_cross_compile" != "x" -a "x$with_ffmpeg" = "xno"; then
6227 enable_ffmpeg=no
6228fi
6229
Benny Prijonoc45d9512010-12-10 11:04:30 +00006230# Check whether --enable-ffmpeg was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006231if test "${enable_ffmpeg+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006232 enableval=$enable_ffmpeg;
6233 ac_has_ffmpeg=0
6234
6235 if test "$enable_ffmpeg" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if ffmpeg is disabled... yes" >&5
6237$as_echo "Checking if ffmpeg is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006238 fi
6239
6240else
6241
6242
6243
6244
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006245 FFMPEG_PREFIX=""
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006246
6247 SAVED_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006248 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then
6249 FFMPEG_PREFIX=$with_ffmpeg
Benny Prijono28d3c562012-03-30 07:10:13 +00006250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5
6251$as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; }
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00006252 export PKG_CONFIG_PATH=$FFMPEG_PREFIX/lib/pkgconfig
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006253 fi
6254
6255 for ac_prog in pkg-config "python pkgconfig.py"
6256do
6257 # Extract the first word of "$ac_prog", so it can be a program name with args.
6258set dummy $ac_prog; ac_word=$2
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260$as_echo_n "checking for $ac_word... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006261if ${ac_cv_prog_PKG_CONFIG+:} false; then :
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006262 $as_echo_n "(cached) " >&6
6263else
6264 if test -n "$PKG_CONFIG"; then
6265 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6266else
6267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268for as_dir in $PATH
6269do
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
Sauw Ming2f91da02012-06-07 02:24:51 +00006273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006274 ac_cv_prog_PKG_CONFIG="$ac_prog"
6275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 break 2
6277 fi
6278done
6279 done
6280IFS=$as_save_IFS
6281
6282fi
6283fi
6284PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6285if test -n "$PKG_CONFIG"; then
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6287$as_echo "$PKG_CONFIG" >&6; }
6288else
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290$as_echo "no" >&6; }
6291fi
6292
6293
6294 test -n "$PKG_CONFIG" && break
6295done
6296test -n "$PKG_CONFIG" || PKG_CONFIG="none"
6297
6298
6299 if test "$PKG_CONFIG" != "none"; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ffmpeg packages" >&5
6301$as_echo_n "checking ffmpeg packages... " >&6; }
6302 av_pkg=""
6303 if $PKG_CONFIG --exists libdevice; then
6304 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
6305 av_pkg="$av_pkg libdevice"
6306 fi
6307 if $PKG_CONFIG --exists libavformat; then
6308 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
6309 av_pkg="$av_pkg libavformat"
6310 fi
6311 if $PKG_CONFIG --exists libavcodec; then
6312 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
6313 av_pkg="$av_pkg libavcodec"
6314 fi
6315 if $PKG_CONFIG --exists libswscale; then
6316 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
6317 av_pkg="$av_pkg libswscale"
6318 fi
6319 if $PKG_CONFIG --exists libavutil; then
6320 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
6321 av_pkg="$av_pkg libavutil"
6322 fi
6323 if $PKG_CONFIG --exists libavcore; then
6324 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
6325 av_pkg="$av_pkg libavcore"
6326 fi
6327
6328 if test "x$av_pkg" == "x"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none detected (check the prefix)! **" >&5
6330$as_echo "none detected (check the prefix)! **" >&6; }
6331 else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $av_pkg" >&5
6333$as_echo "$av_pkg" >&6; }
6334 fi
6335
6336 ac_ffmpeg_cflags="$ac_ffmpeg_cflags `$PKG_CONFIG --cflags $av_pkg`"
6337 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags `$PKG_CONFIG --libs $av_pkg`"
6338
6339 else
6340
6341 { $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
6342$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; }
6343
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006344 LIBS="-L$FFMPEG_PREFIX/lib $LIBS"
Sauw Ming01095d82011-07-14 08:46:19 +00006345 LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS"
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006346 CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS"
Benny Prijonoc8ef0ac2011-04-13 19:13:56 +00006347
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00006349$as_echo_n "checking for avdevice_version in -lavdevice... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006350if ${ac_cv_lib_avdevice_avdevice_version+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00006351 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006352else
6353 ac_check_lib_save_LIBS=$LIBS
6354LIBS="-lavdevice $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006356/* end confdefs.h. */
6357
6358/* Override any GCC internal prototype to avoid an error.
6359 Use char because int might match the return type of a GCC
6360 builtin and then its argument prototype would still apply. */
6361#ifdef __cplusplus
6362extern "C"
6363#endif
6364char avdevice_version ();
6365int
6366main ()
6367{
6368return avdevice_version ();
6369 ;
6370 return 0;
6371}
6372_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006373if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006374 ac_cv_lib_avdevice_avdevice_version=yes
6375else
Benny Prijono28d3c562012-03-30 07:10:13 +00006376 ac_cv_lib_avdevice_avdevice_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006377fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006378rm -f core conftest.err conftest.$ac_objext \
6379 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006380LIBS=$ac_check_lib_save_LIBS
6381fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avdevice_avdevice_version" >&5
6383$as_echo "$ac_cv_lib_avdevice_avdevice_version" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006384if test "x$ac_cv_lib_avdevice_avdevice_version" = xyes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006385 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006386 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006387
6388
6389fi
6390
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_malloc in -lavutil" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00006392$as_echo_n "checking for av_malloc in -lavutil... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006393if ${ac_cv_lib_avutil_av_malloc+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00006394 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006395else
6396 ac_check_lib_save_LIBS=$LIBS
6397LIBS="-lavutil $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006399/* end confdefs.h. */
6400
6401/* Override any GCC internal prototype to avoid an error.
6402 Use char because int might match the return type of a GCC
6403 builtin and then its argument prototype would still apply. */
6404#ifdef __cplusplus
6405extern "C"
6406#endif
6407char av_malloc ();
6408int
6409main ()
6410{
6411return av_malloc ();
6412 ;
6413 return 0;
6414}
6415_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006416if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006417 ac_cv_lib_avutil_av_malloc=yes
6418else
Benny Prijono28d3c562012-03-30 07:10:13 +00006419 ac_cv_lib_avutil_av_malloc=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006420fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006421rm -f core conftest.err conftest.$ac_objext \
6422 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006423LIBS=$ac_check_lib_save_LIBS
6424fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_malloc" >&5
6426$as_echo "$ac_cv_lib_avutil_av_malloc" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006427if test "x$ac_cv_lib_avutil_av_malloc" = xyes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006428 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006429 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006430
6431
6432fi
6433
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_init in -lavcodec" >&5
6435$as_echo_n "checking for avcodec_init in -lavcodec... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006436if ${ac_cv_lib_avcodec_avcodec_init+:} false; then :
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006437 $as_echo_n "(cached) " >&6
6438else
6439 ac_check_lib_save_LIBS=$LIBS
6440LIBS="-lavcodec -lavutil
6441 $LIBS"
6442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443/* end confdefs.h. */
6444
6445/* Override any GCC internal prototype to avoid an error.
6446 Use char because int might match the return type of a GCC
6447 builtin and then its argument prototype would still apply. */
6448#ifdef __cplusplus
6449extern "C"
6450#endif
6451char avcodec_init ();
6452int
6453main ()
6454{
6455return avcodec_init ();
6456 ;
6457 return 0;
6458}
6459_ACEOF
6460if ac_fn_c_try_link "$LINENO"; then :
6461 ac_cv_lib_avcodec_avcodec_init=yes
6462else
6463 ac_cv_lib_avcodec_avcodec_init=no
6464fi
6465rm -f core conftest.err conftest.$ac_objext \
6466 conftest$ac_exeext conftest.$ac_ext
6467LIBS=$ac_check_lib_save_LIBS
6468fi
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_init" >&5
6470$as_echo "$ac_cv_lib_avcodec_avcodec_init" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006471if test "x$ac_cv_lib_avcodec_avcodec_init" = xyes; then :
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006472 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
6473 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec"
6474
6475fi
6476
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_all in -lavformat" >&5
6478$as_echo_n "checking for av_register_all in -lavformat... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006479if ${ac_cv_lib_avformat_av_register_all+:} false; then :
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006480 $as_echo_n "(cached) " >&6
6481else
6482 ac_check_lib_save_LIBS=$LIBS
6483LIBS="-lavformat -lavcodec -lavutil
6484 $LIBS"
6485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6486/* end confdefs.h. */
6487
6488/* Override any GCC internal prototype to avoid an error.
6489 Use char because int might match the return type of a GCC
6490 builtin and then its argument prototype would still apply. */
6491#ifdef __cplusplus
6492extern "C"
6493#endif
6494char av_register_all ();
6495int
6496main ()
6497{
6498return av_register_all ();
6499 ;
6500 return 0;
6501}
6502_ACEOF
6503if ac_fn_c_try_link "$LINENO"; then :
6504 ac_cv_lib_avformat_av_register_all=yes
6505else
6506 ac_cv_lib_avformat_av_register_all=no
6507fi
6508rm -f core conftest.err conftest.$ac_objext \
6509 conftest$ac_exeext conftest.$ac_ext
6510LIBS=$ac_check_lib_save_LIBS
6511fi
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_register_all" >&5
6513$as_echo "$ac_cv_lib_avformat_av_register_all" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006514if test "x$ac_cv_lib_avformat_av_register_all" = xyes; then :
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006515 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
6516 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat"
6517
6518fi
6519
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5
6521$as_echo_n "checking for sws_scale in -lswscale... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006522if ${ac_cv_lib_swscale_sws_scale+:} false; then :
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006523 $as_echo_n "(cached) " >&6
6524else
6525 ac_check_lib_save_LIBS=$LIBS
6526LIBS="-lswscale -lavutil
6527 $LIBS"
6528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529/* end confdefs.h. */
6530
6531/* Override any GCC internal prototype to avoid an error.
6532 Use char because int might match the return type of a GCC
6533 builtin and then its argument prototype would still apply. */
6534#ifdef __cplusplus
6535extern "C"
6536#endif
6537char sws_scale ();
6538int
6539main ()
6540{
6541return sws_scale ();
6542 ;
6543 return 0;
6544}
6545_ACEOF
6546if ac_fn_c_try_link "$LINENO"; then :
6547 ac_cv_lib_swscale_sws_scale=yes
6548else
6549 ac_cv_lib_swscale_sws_scale=no
6550fi
6551rm -f core conftest.err conftest.$ac_objext \
6552 conftest$ac_exeext conftest.$ac_ext
6553LIBS=$ac_check_lib_save_LIBS
6554fi
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5
6556$as_echo "$ac_cv_lib_swscale_sws_scale" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006557if test "x$ac_cv_lib_swscale_sws_scale" = xyes; then :
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006558 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
6559 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale"
6560
6561fi
6562
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcore_version in -lavcore" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00006564$as_echo_n "checking for avcore_version in -lavcore... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006565if ${ac_cv_lib_avcore_avcore_version+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00006566 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006567else
6568 ac_check_lib_save_LIBS=$LIBS
6569LIBS="-lavcore $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006571/* end confdefs.h. */
6572
6573/* Override any GCC internal prototype to avoid an error.
6574 Use char because int might match the return type of a GCC
6575 builtin and then its argument prototype would still apply. */
6576#ifdef __cplusplus
6577extern "C"
6578#endif
6579char avcore_version ();
6580int
6581main ()
6582{
6583return avcore_version ();
6584 ;
6585 return 0;
6586}
6587_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006588if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006589 ac_cv_lib_avcore_avcore_version=yes
6590else
Benny Prijono28d3c562012-03-30 07:10:13 +00006591 ac_cv_lib_avcore_avcore_version=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006592fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006593rm -f core conftest.err conftest.$ac_objext \
6594 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006595LIBS=$ac_check_lib_save_LIBS
6596fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcore_avcore_version" >&5
6598$as_echo "$ac_cv_lib_avcore_avcore_version" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006599if test "x$ac_cv_lib_avcore_avcore_version" = xyes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006600 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006601 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006602
6603
6604fi
6605
Benny Prijonoeeebfab2012-04-23 13:46:21 +00006606
6607 fi
6608
Benny Prijono69b1f822010-12-10 11:33:01 +00006609 LIBS="$LIBS $ac_ffmpeg_ldflags"
Nanang Izzuddin6898bfd2012-05-17 11:23:41 +00006610 export PKG_CONFIG_PATH=$SAVED_PKG_CONFIG_PATH
Benny Prijonoc45d9512010-12-10 11:04:30 +00006611
6612
6613fi
6614
6615
6616# Check whether --enable-v4l2 was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006617if test "${enable_v4l2+set}" = set; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006618 enableval=$enable_v4l2;
6619 if test "$enable_v4l2" = "no"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if V4L2 is disabled... yes" >&5
6621$as_echo "Checking if V4L2 is disabled... yes" >&6; }
Benny Prijonoc45d9512010-12-10 11:04:30 +00006622 fi
6623
6624else
6625
6626
6627
Benny Prijono28d3c562012-03-30 07:10:13 +00006628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5
6629$as_echo_n "checking for v4l2_open in -lv4l2... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006630if ${ac_cv_lib_v4l2_v4l2_open+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00006631 $as_echo_n "(cached) " >&6
Benny Prijonoc45d9512010-12-10 11:04:30 +00006632else
6633 ac_check_lib_save_LIBS=$LIBS
6634LIBS="-lv4l2 $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00006635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006636/* end confdefs.h. */
6637
6638/* Override any GCC internal prototype to avoid an error.
6639 Use char because int might match the return type of a GCC
6640 builtin and then its argument prototype would still apply. */
6641#ifdef __cplusplus
6642extern "C"
6643#endif
6644char v4l2_open ();
6645int
6646main ()
6647{
6648return v4l2_open ();
6649 ;
6650 return 0;
6651}
6652_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006653if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006654 ac_cv_lib_v4l2_v4l2_open=yes
6655else
Benny Prijono28d3c562012-03-30 07:10:13 +00006656 ac_cv_lib_v4l2_v4l2_open=no
Benny Prijonoc45d9512010-12-10 11:04:30 +00006657fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006658rm -f core conftest.err conftest.$ac_objext \
6659 conftest$ac_exeext conftest.$ac_ext
Benny Prijonoc45d9512010-12-10 11:04:30 +00006660LIBS=$ac_check_lib_save_LIBS
6661fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5
6663$as_echo "$ac_cv_lib_v4l2_v4l2_open" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00006664if test "x$ac_cv_lib_v4l2_v4l2_open" = xyes; then :
Benny Prijonoc45d9512010-12-10 11:04:30 +00006665 ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1"
6666 ac_v4l2_ldflags="-lv4l2"
Benny Prijono69b1f822010-12-10 11:33:01 +00006667 LIBS="$LIBS -lv4l2"
Benny Prijonoc45d9512010-12-10 11:04:30 +00006668
6669
6670fi
6671
6672
6673fi
6674
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006675
6676# Check whether --enable-ipp was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006677if test "${enable_ipp+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006678 enableval=$enable_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00006679else
6680 enable_ipp=no
6681
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006682fi
Benny Prijono0822c192008-08-21 20:59:58 +00006683
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006684
Benny Prijono3965f192010-02-10 18:46:05 +00006685
6686# Check whether --with-ipp was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006687if test "${with_ipp+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006688 withval=$with_ipp;
Benny Prijono0822c192008-08-21 20:59:58 +00006689else
6690 with_ipp=no
6691
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006692fi
Benny Prijono0822c192008-08-21 20:59:58 +00006693
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006694
Benny Prijono3965f192010-02-10 18:46:05 +00006695
6696# Check whether --with-ipp-samples was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006697if test "${with_ipp_samples+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006698 withval=$with_ipp_samples;
Benny Prijono0822c192008-08-21 20:59:58 +00006699else
6700 with_ipp_samples=no
6701
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006702fi
6703
Benny Prijono0822c192008-08-21 20:59:58 +00006704
Benny Prijono3965f192010-02-10 18:46:05 +00006705
6706# Check whether --with-ipp-arch was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006707if test "${with_ipp_arch+set}" = set; then :
Benny Prijono3965f192010-02-10 18:46:05 +00006708 withval=$with_ipp_arch;
6709else
6710 with_ipp_arch=no
6711
6712fi
6713
6714
Benny Prijono0822c192008-08-21 20:59:58 +00006715if test "x$enable_ipp" != "xno"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5
6717$as_echo_n "checking Intel IPP location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006718
6719 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5
6721$as_echo "$with_ipp" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006722 IPPROOT=$with_ipp
6723 elif test "x$IPPROOT" = "x"; then
6724 if test -d /opt/intel/ipp; then
6725 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
Benny Prijono28d3c562012-03-30 07:10:13 +00006726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5
6727$as_echo "autodetected in $IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006728 fi
6729 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5
6731$as_echo "$IPPROOT" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006732 fi
6733
Benny Prijono3965f192010-02-10 18:46:05 +00006734 if test "x$with_ipp_arch" != "xno"; then
Benny Prijono896be292010-08-17 12:16:46 +00006735 IPP_SUFFIX=$with_ipp_arch
Benny Prijono28d3c562012-03-30 07:10:13 +00006736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5
6737$as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006738 else
6739 IPP_SUFFIX=""
Benny Prijono28d3c562012-03-30 07:10:13 +00006740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5
6741$as_echo "IPP arch suffix is set to empty" >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006742 fi
6743
Benny Prijono0822c192008-08-21 20:59:58 +00006744 if test x$IPPROOT = x; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006745 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 +00006746 elif test ! -d $IPPROOT; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006747 as_fn_error $? "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006748 elif test ! -d $IPPROOT/include; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006749 as_fn_error $? "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006750 else
6751 # IPP directory looks okay.
6752 # Remove trailing backslash
Benny Prijono3965f192010-02-10 18:46:05 +00006753 IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
Benny Prijono0822c192008-08-21 20:59:58 +00006754
6755 SAVED_CFLAGS="$CFLAGS"
6756 SAVED_LDFLAGS="$LDFLAGS"
6757 SAVED_LIBS="$LIBS"
6758
6759 IPP_CFLAGS="-I$IPPROOT/include"
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006760 IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
Benny Prijono46bd0842010-02-12 14:12:41 +00006761
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006762#
Benny Prijono46bd0842010-02-12 14:12:41 +00006763 # Some differences between Mac OS X and Linux
6764 case $target in
6765 *darwin* )
6766 IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
6767 ;;
6768 *)
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006769 # Find out where the libraries live.
6770 IPP7_ARCH=""
6771 if test -d $IPPROOT/lib/intel64; then
6772 IPP7_ARCH="intel64"
6773 elif test -d $IPPROOT/lib/ia32; then
6774 IPP7_ARCH="ia32"
6775 elif test -d $IPPROOT/lib/mic; then
6776 IPP7_ARCH="mic"
6777 fi
6778
6779 if test -z "$IPP7_ARCH"; then
6780 # IPP6 (and possibly below)
6781 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
6782 IPP_LIBS="$IPP_LIBS -lippsr${IPP_SUFFIX} -lguide"
6783 else
6784 # IPP7
6785 if ! test -d $IPPROOT/../compiler; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006786 as_fn_error $? "Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" "$LINENO" 5
Benny Prijonocd62c4e2011-03-18 08:33:29 +00006787 fi
6788 IPP_CFLAGS="$IPP_CFLAGS"
6789 IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH"
6790 IPP_LIBS="$IPP_LIBS -liomp5"
6791 fi
Benny Prijono46bd0842010-02-12 14:12:41 +00006792 ;;
6793 esac
6794
Benny Prijono0822c192008-08-21 20:59:58 +00006795 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
Benny Prijono46bd0842010-02-12 14:12:41 +00006796 #Static:
Benny Prijono0822c192008-08-21 20:59:58 +00006797 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
6798
6799 CFLAGS="$CFLAGS $IPP_CFLAGS"
6800 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6801 LIBS="$IPP_LIBS $LIBS"
6802
6803
Benny Prijono28d3c562012-03-30 07:10:13 +00006804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5
6805$as_echo_n "checking Intel IPP usability... " >&6; }
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006807/* end confdefs.h. */
6808#include <ippcore.h>
6809
6810int
6811main ()
6812{
6813ippStaticInit();
6814 ;
6815 return 0;
6816}
6817_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006818if ac_fn_c_try_link "$LINENO"; then :
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6820$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006821else
Benny Prijono28d3c562012-03-30 07:10:13 +00006822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006824as_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
Sauw Ming2f91da02012-06-07 02:24:51 +00006825See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006826fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006827rm -f core conftest.err conftest.$ac_objext \
6828 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006829
6830 CFLAGS="$SAVED_CFLAGS"
6831 LDFLAGS="$SAVED_LDFLAGS"
6832 LIBS="$SAVED_LIBS"
6833 fi
6834
Benny Prijono28d3c562012-03-30 07:10:13 +00006835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5
6836$as_echo_n "checking Intel IPP samples location... " >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006837
6838 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5
6840$as_echo "$with_ipp_samples" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006841 IPPSAMPLES=$with_ipp_samples
6842 elif test "x$IPPSAMPLES" = "x"; then
6843 if test -d /opt/intel/ipp-samples; then
6844 IPPSAMPLES=/opt/intel/ipp-samples
Benny Prijono28d3c562012-03-30 07:10:13 +00006845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5
6846$as_echo "autodetected in $IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006847 fi
6848 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5
6850$as_echo "$IPPSAMPLES" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006851 fi
6852
6853 if test x$IPPSAMPLES = x; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006854 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 +00006855 elif test ! -d $IPPSAMPLES; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006856 as_fn_error $? "not found" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006857 elif test ! -d $IPPSAMPLES/speech-codecs; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006858 as_fn_error $? "directory doesn't seem to be valid" "$LINENO" 5
Benny Prijono0822c192008-08-21 20:59:58 +00006859 else
6860 # Remove trailing backslash
6861 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
6862
Benny Prijono3965f192010-02-10 18:46:05 +00006863 # Guess the libusc.a/libspeech.a build location
Benny Prijono28d3c562012-03-30 07:10:13 +00006864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5
6865$as_echo_n "checking Intel IPP USC build location... " >&6; }
Benny Prijono3965f192010-02-10 18:46:05 +00006866 if test -d $IPPSAMPLES/speech-codecs/bin; then
6867 IPPVER=5
6868 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
6869 elif test -d $IPPSAMPLES/speech-codecs/_bin; then
6870 IPPVER=6
Benny Prijono46bd0842010-02-12 14:12:41 +00006871 if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
6872 # gcc compiler
6873 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
6874 elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
6875 # icc compiler
6876 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
6877 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6879$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006880as_fn_error $? "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
Sauw Ming2f91da02012-06-07 02:24:51 +00006881See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono46bd0842010-02-12 14:12:41 +00006882 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006883 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006886as_fn_error $? "unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?
Sauw Ming2f91da02012-06-07 02:24:51 +00006887See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006888 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006889
6890 # Test the directory
6891 if test ! -d $IPPSAMP_DIR; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006894as_fn_error $? "There's something wrong with this script, directory $IPPSAMP_DIR does not exist
Sauw Ming2f91da02012-06-07 02:24:51 +00006895See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00006896 exit 1;
6897 fi
6898
6899 if test "x$IPPVER" = "x5"; then
6900 IPPSAMP_LIBS="libusc.a"
6901 IPPSAMP_LDLIBS="-lusc"
6902 elif test "x$IPPVER" = "x6"; then
6903 IPPSAMP_LIBS="libspeech.a"
6904 IPPSAMP_LDLIBS="-lspeech"
6905 else
Benny Prijono28d3c562012-03-30 07:10:13 +00006906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006908as_fn_error $? "bug in this script: unsupported IPP version
Sauw Ming2f91da02012-06-07 02:24:51 +00006909See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006910 fi
Benny Prijono3965f192010-02-10 18:46:05 +00006911
6912 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
Benny Prijono28d3c562012-03-30 07:10:13 +00006913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006915as_fn_error $? "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
Sauw Ming2f91da02012-06-07 02:24:51 +00006916See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono3965f192010-02-10 18:46:05 +00006917 fi
6918
Benny Prijono28d3c562012-03-30 07:10:13 +00006919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5
6920$as_echo "$IPPSAMP_DIR" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006921
6922 SAVED_CFLAGS="$CFLAGS"
6923 SAVED_LDFLAGS="$LDFLAGS"
6924 SAVED_LIBS="$LIBS"
6925
Benny Prijono3965f192010-02-10 18:46:05 +00006926 IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
6927 CFLAGS="$CFLAGS $IPPSAMP_INC"
6928 LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR"
6929 LIBS="$IPPSAMP_LDLIBS $LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006930
Benny Prijono28d3c562012-03-30 07:10:13 +00006931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5
6932$as_echo_n "checking Intel IPP USC usability... " >&6; }
6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006934/* end confdefs.h. */
6935#include <usc.h>
6936
6937int
6938main ()
6939{
6940extern USC_Fxns USC_G729AFP_Fxns;
6941 ;
6942 return 0;
6943}
6944_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00006945if ac_fn_c_try_link "$LINENO"; then :
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6947$as_echo "ok" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006948else
Benny Prijono28d3c562012-03-30 07:10:13 +00006949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006951as_fn_error $? "failed
Sauw Ming2f91da02012-06-07 02:24:51 +00006952See \`config.log' for more details" "$LINENO" 5; }
Benny Prijono0822c192008-08-21 20:59:58 +00006953fi
Benny Prijono28d3c562012-03-30 07:10:13 +00006954rm -f core conftest.err conftest.$ac_objext \
6955 conftest$ac_exeext conftest.$ac_ext
Benny Prijono0822c192008-08-21 20:59:58 +00006956
6957 CFLAGS="$SAVED_CFLAGS"
Benny Prijono3965f192010-02-10 18:46:05 +00006958 LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
6959 LIBS="$IPP_LIBS $SAVED_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006960
Benny Prijono3965f192010-02-10 18:46:05 +00006961 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
6962 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
6963 IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
Benny Prijono0822c192008-08-21 20:59:58 +00006964 fi
6965
Benny Prijono3965f192010-02-10 18:46:05 +00006966 CFLAGS="$CFLAGS $IPP_CFLAGS"
6967 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6968 LIBS="$LIBS $IPP_LIBS"
6969
Benny Prijono0822c192008-08-21 20:59:58 +00006970 ac_build_mak_vars="$ac_build_mak_vars\n\
6971export IPP_CFLAGS=$IPP_CFLAGS\n\
6972export IPP_LDFLAGS=$IPP_LDFLAGS\n\
6973export IPP_LIBS=$IPP_LIBS"
6974else
Benny Prijono28d3c562012-03-30 07:10:13 +00006975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5
6976$as_echo "Skipping Intel IPP settings (not wanted)" >&6; }
Benny Prijono0822c192008-08-21 20:59:58 +00006977fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006978
6979
6980
6981
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00006982# Check whether --with-ssl was given.
6983if test "${with_ssl+set}" = set; then :
6984 withval=$with_ssl;
6985else
6986 with_ssl=no
6987
6988fi
6989
6990
6991if test "x$ac_cross_compile" != "x" -a "x$with_ssl" = "xno"; then
6992 enable_ssl=no
6993fi
6994
6995
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006996# Check whether --enable-ssl was given.
Benny Prijono28d3c562012-03-30 07:10:13 +00006997if test "${enable_ssl+set}" = set; then :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00006998 enableval=$enable_ssl;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00006999 if test "$enable_ssl" = "no"; then
7000 ac_no_ssl=1
Benny Prijono28d3c562012-03-30 07:10:13 +00007001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5
7002$as_echo "Checking if SSL support is disabled... yes" >&6; }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007003 fi
7004
7005else
7006
Benny Prijono28d3c562012-03-30 07:10:13 +00007007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5
7008$as_echo "checking for OpenSSL installations.." >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007009 if test "x$with_ssl" != "xno" -a "x$with_ssl" != "x"; then
7010 CFLAGS="$CFLAGS -I$with_ssl/include"
7011 LDFLAGS="$LDFLAGS -L$with_ssl/lib"
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSL prefix... $with_ssl" >&5
7013$as_echo "Using SSL prefix... $with_ssl" >&6; }
7014 fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007015
7016
7017
Benny Prijono28d3c562012-03-30 07:10:13 +00007018 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00007019if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007020 openssl_h_present=1
7021fi
7022
7023
Benny Prijono28d3c562012-03-30 07:10:13 +00007024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5
7025$as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00007026if ${ac_cv_lib_crypto_ERR_load_BIO_strings+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00007027 $as_echo_n "(cached) " >&6
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007028else
7029 ac_check_lib_save_LIBS=$LIBS
7030LIBS="-lcrypto $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00007031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007032/* end confdefs.h. */
7033
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007034/* Override any GCC internal prototype to avoid an error.
7035 Use char because int might match the return type of a GCC
7036 builtin and then its argument prototype would still apply. */
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007037#ifdef __cplusplus
7038extern "C"
7039#endif
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007040char ERR_load_BIO_strings ();
7041int
7042main ()
7043{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007044return ERR_load_BIO_strings ();
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007045 ;
7046 return 0;
7047}
7048_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007049if ac_fn_c_try_link "$LINENO"; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007050 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
7051else
Benny Prijono28d3c562012-03-30 07:10:13 +00007052 ac_cv_lib_crypto_ERR_load_BIO_strings=no
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007053fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007054rm -f core conftest.err conftest.$ac_objext \
7055 conftest$ac_exeext conftest.$ac_ext
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007056LIBS=$ac_check_lib_save_LIBS
7057fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
7059$as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00007060if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = xyes; then :
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007061 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
7062fi
7063
Benny Prijono28d3c562012-03-30 07:10:13 +00007064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
7065$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00007066if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00007067 $as_echo_n "(cached) " >&6
Benny Prijonod5233702010-01-13 13:09:45 +00007068else
7069 ac_check_lib_save_LIBS=$LIBS
7070LIBS="-lssl $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00007071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00007072/* end confdefs.h. */
7073
7074/* Override any GCC internal prototype to avoid an error.
7075 Use char because int might match the return type of a GCC
7076 builtin and then its argument prototype would still apply. */
7077#ifdef __cplusplus
7078extern "C"
7079#endif
7080char SSL_library_init ();
7081int
7082main ()
7083{
7084return SSL_library_init ();
7085 ;
7086 return 0;
7087}
7088_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007089if ac_fn_c_try_link "$LINENO"; then :
Benny Prijonod5233702010-01-13 13:09:45 +00007090 ac_cv_lib_ssl_SSL_library_init=yes
7091else
Benny Prijono28d3c562012-03-30 07:10:13 +00007092 ac_cv_lib_ssl_SSL_library_init=no
Benny Prijonod5233702010-01-13 13:09:45 +00007093fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007094rm -f core conftest.err conftest.$ac_objext \
7095 conftest$ac_exeext conftest.$ac_ext
Benny Prijonod5233702010-01-13 13:09:45 +00007096LIBS=$ac_check_lib_save_LIBS
7097fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7099$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00007100if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
Benny Prijonod5233702010-01-13 13:09:45 +00007101 libssl_present=1 && LIBS="$LIBS -lssl"
7102fi
7103
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007104 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 +00007105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5
7106$as_echo "OpenSSL library found, SSL support enabled" >&6; }
Nanang Izzuddin9c7616f2009-10-28 06:09:15 +00007107 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
7108 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
Benny Prijono28d3c562012-03-30 07:10:13 +00007109 $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
Nanang Izzuddinea6d3c42009-10-26 15:47:52 +00007110
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007111 else
Benny Prijono28d3c562012-03-30 07:10:13 +00007112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
7113$as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; }
Sauw Minge7dbbc82011-10-24 09:28:13 +00007114 fi
7115
7116fi
7117
7118
7119
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007120# Check whether --with-opencore-amrnb was given.
7121if test "${with_opencore_amrnb+set}" = set; then :
Sauw Ming2f67f472013-01-23 06:18:18 +00007122 withval=$with_opencore_amrnb; as_fn_error $? "This option is obsolete and replaced by --with-opencore-amr=DIR" "$LINENO" 5
7123fi
7124
7125
7126
7127# Check whether --with-opencore-amr was given.
7128if test "${with_opencore_amr+set}" = set; then :
7129 withval=$with_opencore_amr;
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007130else
Sauw Ming2f67f472013-01-23 06:18:18 +00007131 with_opencore_amr=no
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007132
7133fi
7134
7135
Sauw Ming2f67f472013-01-23 06:18:18 +00007136if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amr" = "xno"; then
7137 enable_opencore_amr=no
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007138fi
7139
7140
Sauw Ming2f67f472013-01-23 06:18:18 +00007141# Check whether --with-opencore-amrwbenc was given.
7142if test "${with_opencore_amrwbenc+set}" = set; then :
7143 withval=$with_opencore_amrwbenc;
7144else
7145 with_opencore_amrwbenc=no
7146
7147fi
7148
7149
7150if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amrwbenc" = "xno"; then
7151 enable_opencore_amrwbenc=no
7152fi
7153
7154
7155
7156
7157# Check whether --enable-opencore_amr was given.
7158if test "${enable_opencore_amr+set}" = set; then :
7159 enableval=$enable_opencore_amr;
7160 if test "$enable_opencore_amr" = "no"; then
Sauw Minge7dbbc82011-10-24 09:28:13 +00007161 ac_no_opencore_amrnb=1
Sauw Ming2f67f472013-01-23 06:18:18 +00007162 ac_no_opencore_amrwb=1
Benny Prijono28d3c562012-03-30 07:10:13 +00007163 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00007164
Sauw Ming2f67f472013-01-23 06:18:18 +00007165 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 0" >>confdefs.h
7166
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OpenCORE AMR support is disabled... yes" >&5
7168$as_echo "Checking if OpenCORE AMR support is disabled... yes" >&6; }
Sauw Minge7dbbc82011-10-24 09:28:13 +00007169 fi
7170
7171else
7172
Sauw Ming2f67f472013-01-23 06:18:18 +00007173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenCORE AMR installations.." >&5
7174$as_echo "checking for OpenCORE AMR installations.." >&6; }
7175 if test "x$with_opencore_amr" != "xno" -a "x$with_opencore_amr" != "x"; then
7176 CFLAGS="$CFLAGS -I$with_opencore_amr/include"
7177 LDFLAGS="$LDFLAGS -L$with_opencore_amr/lib"
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OpenCORE AMR prefix... $with_opencore_amr" >&5
7179$as_echo "Using OpenCORE AMR prefix... $with_opencore_amr" >&6; }
7180 fi
7181 if test "x$with_opencore_amrwbenc" != "xno" -a "x$with_opencore_amrwbenc" != "x"; then
7182 CFLAGS="$CFLAGS -I$with_opencore_amrwbenc/include"
7183 LDFLAGS="$LDFLAGS -L$with_opencore_amrwbenc/lib"
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OpenCORE AMRWB-enc prefix... $with_opencore_amrwbenc" >&5
7185$as_echo "Using OpenCORE AMRWB-enc prefix... $with_opencore_amrwbenc" >&6; }
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007186 fi
Sauw Minge7dbbc82011-10-24 09:28:13 +00007187
7188
Benny Prijono28d3c562012-03-30 07:10:13 +00007189 ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrnb/interf_enc.h" "ac_cv_header_opencore_amrnb_interf_enc_h" "$ac_includes_default"
Sauw Ming2f91da02012-06-07 02:24:51 +00007190if test "x$ac_cv_header_opencore_amrnb_interf_enc_h" = xyes; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00007191 opencore_amrnb_h_present=1
7192fi
7193
7194
Benny Prijono28d3c562012-03-30 07:10:13 +00007195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Encoder_Interface_init in -lopencore-amrnb" >&5
7196$as_echo_n "checking for Encoder_Interface_init in -lopencore-amrnb... " >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00007197if ${ac_cv_lib_opencore_amrnb_Encoder_Interface_init+:} false; then :
Benny Prijono28d3c562012-03-30 07:10:13 +00007198 $as_echo_n "(cached) " >&6
Sauw Minge7dbbc82011-10-24 09:28:13 +00007199else
7200 ac_check_lib_save_LIBS=$LIBS
7201LIBS="-lopencore-amrnb $LIBS"
Benny Prijono28d3c562012-03-30 07:10:13 +00007202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Sauw Minge7dbbc82011-10-24 09:28:13 +00007203/* end confdefs.h. */
7204
7205/* Override any GCC internal prototype to avoid an error.
7206 Use char because int might match the return type of a GCC
7207 builtin and then its argument prototype would still apply. */
7208#ifdef __cplusplus
7209extern "C"
7210#endif
7211char Encoder_Interface_init ();
7212int
7213main ()
7214{
7215return Encoder_Interface_init ();
7216 ;
7217 return 0;
7218}
7219_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00007220if ac_fn_c_try_link "$LINENO"; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00007221 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=yes
7222else
Benny Prijono28d3c562012-03-30 07:10:13 +00007223 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=no
Sauw Minge7dbbc82011-10-24 09:28:13 +00007224fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007225rm -f core conftest.err conftest.$ac_objext \
7226 conftest$ac_exeext conftest.$ac_ext
Sauw Minge7dbbc82011-10-24 09:28:13 +00007227LIBS=$ac_check_lib_save_LIBS
7228fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&5
7230$as_echo "$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&6; }
Sauw Ming2f91da02012-06-07 02:24:51 +00007231if test "x$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" = xyes; then :
Sauw Minge7dbbc82011-10-24 09:28:13 +00007232 opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb"
7233fi
7234
7235 if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-NB library found, AMR-NB support enabled" >&5
7237$as_echo "OpenCORE AMR-NB library found, AMR-NB support enabled" >&6; }
7238 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00007239
7240 else
7241 ac_no_opencore_amrnb=1
Sauw Mingec02c082012-10-01 11:08:08 +00007242 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
Sauw Minge7dbbc82011-10-24 09:28:13 +00007243
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007244 fi
7245
Sauw Ming2f67f472013-01-23 06:18:18 +00007246
7247
7248
7249 ac_fn_c_check_header_mongrel "$LINENO" "vo-amrwbenc/enc_if.h" "ac_cv_header_vo_amrwbenc_enc_if_h" "$ac_includes_default"
7250if test "x$ac_cv_header_vo_amrwbenc_enc_if_h" = xyes; then :
7251 opencore_amrwb_enc_h_present=1
7252fi
7253
7254
7255 ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrwb/dec_if.h" "ac_cv_header_opencore_amrwb_dec_if_h" "$ac_includes_default"
7256if test "x$ac_cv_header_opencore_amrwb_dec_if_h" = xyes; then :
7257 opencore_amrwb_dec_h_present=1
7258fi
7259
7260
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D_IF_init in -lopencore-amrwb" >&5
7262$as_echo_n "checking for D_IF_init in -lopencore-amrwb... " >&6; }
7263if ${ac_cv_lib_opencore_amrwb_D_IF_init+:} false; then :
7264 $as_echo_n "(cached) " >&6
7265else
7266 ac_check_lib_save_LIBS=$LIBS
7267LIBS="-lopencore-amrwb $LIBS"
7268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269/* end confdefs.h. */
7270
7271/* Override any GCC internal prototype to avoid an error.
7272 Use char because int might match the return type of a GCC
7273 builtin and then its argument prototype would still apply. */
7274#ifdef __cplusplus
7275extern "C"
7276#endif
7277char D_IF_init ();
7278int
7279main ()
7280{
7281return D_IF_init ();
7282 ;
7283 return 0;
7284}
7285_ACEOF
7286if ac_fn_c_try_link "$LINENO"; then :
7287 ac_cv_lib_opencore_amrwb_D_IF_init=yes
7288else
7289 ac_cv_lib_opencore_amrwb_D_IF_init=no
7290fi
7291rm -f core conftest.err conftest.$ac_objext \
7292 conftest$ac_exeext conftest.$ac_ext
7293LIBS=$ac_check_lib_save_LIBS
7294fi
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrwb_D_IF_init" >&5
7296$as_echo "$ac_cv_lib_opencore_amrwb_D_IF_init" >&6; }
7297if test "x$ac_cv_lib_opencore_amrwb_D_IF_init" = xyes; then :
7298 opencore_amrwb_dec_present=1 && LIBS="$LIBS -lopencore-amrwb"
7299fi
7300
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for E_IF_init in -lvo-amrwbenc" >&5
7302$as_echo_n "checking for E_IF_init in -lvo-amrwbenc... " >&6; }
7303if ${ac_cv_lib_vo_amrwbenc_E_IF_init+:} false; then :
7304 $as_echo_n "(cached) " >&6
7305else
7306 ac_check_lib_save_LIBS=$LIBS
7307LIBS="-lvo-amrwbenc $LIBS"
7308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309/* end confdefs.h. */
7310
7311/* Override any GCC internal prototype to avoid an error.
7312 Use char because int might match the return type of a GCC
7313 builtin and then its argument prototype would still apply. */
7314#ifdef __cplusplus
7315extern "C"
7316#endif
7317char E_IF_init ();
7318int
7319main ()
7320{
7321return E_IF_init ();
7322 ;
7323 return 0;
7324}
7325_ACEOF
7326if ac_fn_c_try_link "$LINENO"; then :
7327 ac_cv_lib_vo_amrwbenc_E_IF_init=yes
7328else
7329 ac_cv_lib_vo_amrwbenc_E_IF_init=no
7330fi
7331rm -f core conftest.err conftest.$ac_objext \
7332 conftest$ac_exeext conftest.$ac_ext
7333LIBS=$ac_check_lib_save_LIBS
7334fi
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vo_amrwbenc_E_IF_init" >&5
7336$as_echo "$ac_cv_lib_vo_amrwbenc_E_IF_init" >&6; }
7337if test "x$ac_cv_lib_vo_amrwbenc_E_IF_init" = xyes; then :
7338 opencore_amrwb_enc_present=1 && LIBS="$LIBS -lvo-amrwbenc"
7339fi
7340
7341 if test "x$opencore_amrwb_enc_h_present" = "x1" -a "x$opencore_amrwb_dec_h_present" = "x1" -a "x$opencore_amrwb_enc_present" = "x1" -a "x$opencore_amrwb_dec_present" = "x1"; then
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-WB library found, AMR-WB support enabled" >&5
7343$as_echo "OpenCORE AMR-WB library found, AMR-WB support enabled" >&6; }
7344 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 1" >>confdefs.h
7345
7346 else
7347 ac_no_opencore_amrwb=1
7348 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 0" >>confdefs.h
7349
7350 fi
7351
7352
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007353fi
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007354
7355
7356
Sauw Ming03df4242012-09-25 02:23:06 +00007357# Check whether --with-silk was given.
7358if test "${with_silk+set}" = set; then :
7359 withval=$with_silk;
7360else
7361 with_silk=no
7362
7363fi
7364
7365
7366if test "x$ac_cross_compile" != "x" -a "x$with_silk" = "xno"; then
7367 enable_silk=no
7368fi
7369
7370
7371# Check whether --enable-silk was given.
7372if test "${enable_silk+set}" = set; then :
7373 enableval=$enable_silk;
7374 if test "$enable_silk" = "no"; then
7375 ac_no_silk=1
7376 $as_echo "#define PJMEDIA_HAS_SILK_CODEC 0" >>confdefs.h
7377
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SILK support is disabled... yes" >&5
7379$as_echo "Checking if SILK support is disabled... yes" >&6; }
7380 fi
7381
7382else
7383
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for SILK installations.." >&5
7385$as_echo "checking for SILK installations.." >&6; }
7386 if test "x$with_silk" != "xno" -a "x$with_silk" != "x"; then
7387 CFLAGS="$CFLAGS -I$with_silk/interface"
Sauw Mingec02c082012-10-01 11:08:08 +00007388 CPPFLAGS="$CPPFLAGS -I$with_silk/interface"
Sauw Ming03df4242012-09-25 02:23:06 +00007389 LDFLAGS="$LDFLAGS -L$with_silk"
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SILK prefix... $with_silk" >&5
7391$as_echo "Using SILK prefix... $with_silk" >&6; }
7392 fi
7393
7394
7395 ac_fn_c_check_header_mongrel "$LINENO" "SKP_Silk_SDK_API.h" "ac_cv_header_SKP_Silk_SDK_API_h" "$ac_includes_default"
7396if test "x$ac_cv_header_SKP_Silk_SDK_API_h" = xyes; then :
7397 silk_h_present=1
7398fi
7399
7400
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SKP_Silk_SDK_get_version in -lSKP_SILK_SDK" >&5
7402$as_echo_n "checking for SKP_Silk_SDK_get_version in -lSKP_SILK_SDK... " >&6; }
7403if ${ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version+:} false; then :
7404 $as_echo_n "(cached) " >&6
7405else
7406 ac_check_lib_save_LIBS=$LIBS
7407LIBS="-lSKP_SILK_SDK $LIBS"
7408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409/* end confdefs.h. */
7410
7411/* Override any GCC internal prototype to avoid an error.
7412 Use char because int might match the return type of a GCC
7413 builtin and then its argument prototype would still apply. */
7414#ifdef __cplusplus
7415extern "C"
7416#endif
7417char SKP_Silk_SDK_get_version ();
7418int
7419main ()
7420{
7421return SKP_Silk_SDK_get_version ();
7422 ;
7423 return 0;
7424}
7425_ACEOF
7426if ac_fn_c_try_link "$LINENO"; then :
7427 ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version=yes
7428else
7429 ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version=no
7430fi
7431rm -f core conftest.err conftest.$ac_objext \
7432 conftest$ac_exeext conftest.$ac_ext
7433LIBS=$ac_check_lib_save_LIBS
7434fi
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" >&5
7436$as_echo "$ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" >&6; }
7437if test "x$ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" = xyes; then :
7438 silk_present=1 && LIBS="$LIBS -lSKP_SILK_SDK"
7439fi
7440
7441 if test "x$silk_h_present" = "x1" -a "x$silk_present" = "x1"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SILK library found, SILK support enabled" >&5
7443$as_echo "SILK library found, SILK support enabled" >&6; }
7444 $as_echo "#define PJMEDIA_HAS_SILK_CODEC 1" >>confdefs.h
7445
7446 else
7447 ac_no_silk=1
7448 $as_echo "#define PJMEDIA_HAS_SILK_CODEC 0" >>confdefs.h
7449
7450 fi
7451
7452fi
7453
7454
7455
7456
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007457
Benny Prijono28d3c562012-03-30 07:10:13 +00007458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5
7459$as_echo_n "checking if select() needs correct nfds... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007460case $target in
Benny Prijono28d3c562012-03-30 07:10:13 +00007461 *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007462
Benny Prijono28d3c562012-03-30 07:10:13 +00007463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7464$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007465 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007466 *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007467
Benny Prijono28d3c562012-03-30 07:10:13 +00007468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7469$as_echo "no (default)" >&6; }
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
7471$as_echo "** Decided that select() doesn't need correct nfds (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007472 ;;
7473esac
7474
Benny Prijono28d3c562012-03-30 07:10:13 +00007475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5
7476$as_echo_n "checking if pj_thread_create() should enforce stack size... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007477case $target in
Benny Prijono28d3c562012-03-30 07:10:13 +00007478 *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007479
Benny Prijono28d3c562012-03-30 07:10:13 +00007480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7481$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007482 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007483 *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007484
Benny Prijono28d3c562012-03-30 07:10:13 +00007485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7486$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007487 ;;
7488esac
7489
Benny Prijono28d3c562012-03-30 07:10:13 +00007490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5
7491$as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007492case $target in
Benny Prijono28d3c562012-03-30 07:10:13 +00007493 *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007494
Benny Prijono28d3c562012-03-30 07:10:13 +00007495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7496$as_echo "yes" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007497 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007498 *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007499
Benny Prijono28d3c562012-03-30 07:10:13 +00007500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7501$as_echo "no (default)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007502 ;;
7503esac
7504
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007505case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007506 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00007507 $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007508
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007509 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007510 *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007511
Benny Prijono28d3c562012-03-30 07:10:13 +00007512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
7513$as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007514 ;;
7515esac
7516
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007517case $target in
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007518 *mingw* | *cygw* | *win32* | *w32* )
Benny Prijono28d3c562012-03-30 07:10:13 +00007519 $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007520
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007521 ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00007522 *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00007523
Benny Prijono28d3c562012-03-30 07:10:13 +00007524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
7525$as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007526 ;;
7527esac
7528
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007529
7530
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007531ac_linux_poll=select
7532
7533ac_host=unix
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007534
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007535
Benny Prijonoc4c61d02006-08-20 20:47:34 +00007536case $target in
7537 *rtems*)
7538 ac_main_obj=main_rtems.o
7539 ;;
7540 *)
7541 ac_main_obj=main.o
7542 ;;
7543esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007544
Benny Prijono0822c192008-08-21 20:59:58 +00007545
7546ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007547cat >confcache <<\_ACEOF
7548# This file is a shell script that caches the results of configure
7549# tests run on this system so they can be shared between configure
7550# scripts and configure runs, see configure's option --config-cache.
7551# It is not useful on other systems. If it contains results you don't
7552# want to keep, you may remove or edit it.
7553#
7554# config.status only pays attention to the cache file if you give it
7555# the --recheck option to rerun configure.
7556#
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007557# `ac_cv_env_foo' variables (set or unset) will be overridden when
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007558# loading this file, other *unset* `ac_cv_foo' will be assigned the
7559# following values.
7560
7561_ACEOF
7562
7563# The following way of writing the cache mishandles newlines in values,
7564# but we know of no workaround that is simple, portable, and efficient.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007565# So, we kill variables containing newlines.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007566# Ultrix sh set writes to stderr and can't be redirected directly,
7567# and sets the high bit in the cache file unless we assign to the vars.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007568(
7569 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7570 eval ac_val=\$$ac_var
7571 case $ac_val in #(
7572 *${as_nl}*)
7573 case $ac_var in #(
Benny Prijono28d3c562012-03-30 07:10:13 +00007574 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7575$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007576 esac
7577 case $ac_var in #(
7578 _ | IFS | as_nl) ;; #(
Benny Prijono28d3c562012-03-30 07:10:13 +00007579 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7580 *) { eval $ac_var=; unset $ac_var;} ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007581 esac ;;
7582 esac
7583 done
7584
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007585 (set) 2>&1 |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007586 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7587 *${as_nl}ac_space=\ *)
Benny Prijono28d3c562012-03-30 07:10:13 +00007588 # `set' does not quote correctly, so add quotes: double-quote
7589 # substitution turns \\\\ into \\, and sed turns \\ into \.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007590 sed -n \
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007591 "s/'/'\\\\''/g;
7592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007593 ;; #(
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007594 *)
7595 # `set' quotes correctly as required by POSIX, so do not add quotes.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007597 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007598 esac |
7599 sort
7600) |
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007601 sed '
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007602 /^ac_cv_env_/b end
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007603 t clear
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007604 :clear
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007605 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7606 t end
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007607 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7608 :end' >>confcache
7609if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7610 if test -w "$cache_file"; then
Sauw Ming2f91da02012-06-07 02:24:51 +00007611 if test "x$cache_file" != "x/dev/null"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007612 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7613$as_echo "$as_me: updating cache $cache_file" >&6;}
Sauw Ming2f91da02012-06-07 02:24:51 +00007614 if test ! -f "$cache_file" || test -h "$cache_file"; then
7615 cat confcache >"$cache_file"
7616 else
7617 case $cache_file in #(
7618 */* | ?:*)
7619 mv -f confcache "$cache_file"$$ &&
7620 mv -f "$cache_file"$$ "$cache_file" ;; #(
7621 *)
7622 mv -f confcache "$cache_file" ;;
7623 esac
7624 fi
7625 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007626 else
Benny Prijono28d3c562012-03-30 07:10:13 +00007627 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7628$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007629 fi
7630fi
7631rm -f confcache
7632
7633test "x$prefix" = xNONE && prefix=$ac_default_prefix
7634# Let make expand exec_prefix.
7635test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7636
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007637DEFS=-DHAVE_CONFIG_H
7638
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007639ac_libobjs=
7640ac_ltlibobjs=
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007641U=
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007642for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7643 # 1. Remove the extension, and $U if already installed.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007644 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Benny Prijono28d3c562012-03-30 07:10:13 +00007645 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007646 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7647 # will be set to the directory where LIBOBJS objects are built.
Benny Prijono28d3c562012-03-30 07:10:13 +00007648 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7649 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007650done
7651LIBOBJS=$ac_libobjs
7652
7653LTLIBOBJS=$ac_ltlibobjs
7654
7655
7656
Benny Prijono28d3c562012-03-30 07:10:13 +00007657
Sauw Ming2f91da02012-06-07 02:24:51 +00007658: "${CONFIG_STATUS=./config.status}"
Benny Prijono28d3c562012-03-30 07:10:13 +00007659ac_write_fail=0
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007660ac_clean_files_save=$ac_clean_files
7661ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Benny Prijono28d3c562012-03-30 07:10:13 +00007662{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7663$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7664as_write_fail=0
7665cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007666#! $SHELL
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007667# Generated by $as_me.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007668# Run this file to recreate the current configuration.
7669# Compiler output produced by configure, useful for debugging
7670# configure, is in config.log if it exists.
7671
7672debug=false
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007673ac_cs_recheck=false
7674ac_cs_silent=false
Benny Prijono36d32492011-12-28 08:42:23 +00007675
Benny Prijono28d3c562012-03-30 07:10:13 +00007676SHELL=\${CONFIG_SHELL-$SHELL}
7677export SHELL
7678_ASEOF
7679cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7680## -------------------- ##
7681## M4sh Initialization. ##
7682## -------------------- ##
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007683
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007684# Be more Bourne compatible
7685DUALCASE=1; export DUALCASE # for MKS sh
Benny Prijono28d3c562012-03-30 07:10:13 +00007686if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007687 emulate sh
7688 NULLCMD=:
Benny Prijono28d3c562012-03-30 07:10:13 +00007689 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007690 # is contrary to our usage. Disable this feature.
7691 alias -g '${1+"$@"}'='"$@"'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007692 setopt NO_GLOB_SUBST
Benny Prijonoe2746132008-09-27 13:16:35 +00007693else
Benny Prijono28d3c562012-03-30 07:10:13 +00007694 case `(set -o) 2>/dev/null` in #(
7695 *posix*) :
7696 set -o posix ;; #(
7697 *) :
7698 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007699esac
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007700fi
7701
7702
Benny Prijono28d3c562012-03-30 07:10:13 +00007703as_nl='
7704'
7705export as_nl
7706# Printing a long string crashes Solaris 7 /usr/bin/printf.
7707as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7708as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7709as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7710# Prefer a ksh shell builtin over an external printf program on Solaris,
7711# but without wasting forks for bash or zsh.
7712if test -z "$BASH_VERSION$ZSH_VERSION" \
7713 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7714 as_echo='print -r --'
7715 as_echo_n='print -rn --'
7716elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7717 as_echo='printf %s\n'
7718 as_echo_n='printf %s'
7719else
7720 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7721 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7722 as_echo_n='/usr/ucb/echo -n'
7723 else
7724 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7725 as_echo_n_body='eval
7726 arg=$1;
7727 case $arg in #(
7728 *"$as_nl"*)
7729 expr "X$arg" : "X\\(.*\\)$as_nl";
7730 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7731 esac;
7732 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7733 '
7734 export as_echo_n_body
7735 as_echo_n='sh -c $as_echo_n_body as_echo'
7736 fi
7737 export as_echo_body
7738 as_echo='sh -c $as_echo_body as_echo'
7739fi
Benny Prijonod5233702010-01-13 13:09:45 +00007740
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007741# The user is always right.
7742if test "${PATH_SEPARATOR+set}" != set; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007743 PATH_SEPARATOR=:
7744 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7745 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7746 PATH_SEPARATOR=';'
7747 }
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007748fi
7749
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007750
7751# IFS
7752# We need space, tab and new line, in precisely that order. Quoting is
7753# there to prevent editors from complaining about space-tab.
7754# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7755# splitting by setting IFS to empty value.)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007756IFS=" "" $as_nl"
7757
7758# Find who we are. Look in the path if we contain no directory separator.
Sauw Ming2f91da02012-06-07 02:24:51 +00007759as_myself=
Benny Prijono28d3c562012-03-30 07:10:13 +00007760case $0 in #((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007761 *[\\/]* ) as_myself=$0 ;;
7762 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007763for as_dir in $PATH
7764do
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
Benny Prijono28d3c562012-03-30 07:10:13 +00007767 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7768 done
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007769IFS=$as_save_IFS
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007770
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007771 ;;
7772esac
7773# We did not find ourselves, most probably we were run as `sh COMMAND'
7774# in which case we are not to be found in the path.
7775if test "x$as_myself" = x; then
7776 as_myself=$0
7777fi
7778if test ! -f "$as_myself"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00007779 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7780 exit 1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007781fi
7782
Benny Prijono28d3c562012-03-30 07:10:13 +00007783# Unset variables that we do not need and which cause bugs (e.g. in
7784# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7785# suppresses any "Segmentation fault" message there. '((' could
7786# trigger a bug in pdksh 5.2.14.
7787for as_var in BASH_ENV ENV MAIL MAILPATH
7788do eval test x\${$as_var+set} = xset \
7789 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007790done
7791PS1='$ '
7792PS2='> '
7793PS4='+ '
7794
7795# NLS nuisances.
Benny Prijono28d3c562012-03-30 07:10:13 +00007796LC_ALL=C
7797export LC_ALL
7798LANGUAGE=C
7799export LANGUAGE
Benny Prijonoe1105232011-10-26 06:49:34 +00007800
Benny Prijono28d3c562012-03-30 07:10:13 +00007801# CDPATH.
7802(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7803
7804
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007805# as_fn_error STATUS ERROR [LINENO LOG_FD]
7806# ----------------------------------------
Benny Prijono28d3c562012-03-30 07:10:13 +00007807# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7808# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007809# script with STATUS, using 1 if that was 0.
Benny Prijono28d3c562012-03-30 07:10:13 +00007810as_fn_error ()
7811{
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007812 as_status=$1; test $as_status -eq 0 && as_status=1
7813 if test "$4"; then
7814 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7815 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Benny Prijono28d3c562012-03-30 07:10:13 +00007816 fi
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00007817 $as_echo "$as_me: error: $2" >&2
Benny Prijono28d3c562012-03-30 07:10:13 +00007818 as_fn_exit $as_status
7819} # as_fn_error
7820
7821
7822# as_fn_set_status STATUS
7823# -----------------------
7824# Set $? to STATUS, without forking.
7825as_fn_set_status ()
7826{
7827 return $1
7828} # as_fn_set_status
7829
7830# as_fn_exit STATUS
7831# -----------------
7832# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7833as_fn_exit ()
7834{
7835 set +e
7836 as_fn_set_status $1
7837 exit $1
7838} # as_fn_exit
7839
7840# as_fn_unset VAR
7841# ---------------
7842# Portably unset VAR.
7843as_fn_unset ()
7844{
7845 { eval $1=; unset $1;}
7846}
7847as_unset=as_fn_unset
7848# as_fn_append VAR VALUE
7849# ----------------------
7850# Append the text in VALUE to the end of the definition contained in VAR. Take
7851# advantage of any shell optimizations that allow amortized linear growth over
7852# repeated appends, instead of the typical quadratic growth present in naive
7853# implementations.
7854if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7855 eval 'as_fn_append ()
7856 {
7857 eval $1+=\$2
7858 }'
7859else
7860 as_fn_append ()
7861 {
7862 eval $1=\$$1\$2
7863 }
7864fi # as_fn_append
7865
7866# as_fn_arith ARG...
7867# ------------------
7868# Perform arithmetic evaluation on the ARGs, and store the result in the
7869# global $as_val. Take advantage of shells that can avoid forks. The arguments
7870# must be portable across $(()) and expr.
7871if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7872 eval 'as_fn_arith ()
7873 {
7874 as_val=$(( $* ))
7875 }'
7876else
7877 as_fn_arith ()
7878 {
7879 as_val=`expr "$@" || test $? -eq 1`
7880 }
7881fi # as_fn_arith
7882
7883
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007884if expr a : '\(a\)' >/dev/null 2>&1 &&
7885 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7886 as_expr=expr
7887else
7888 as_expr=false
7889fi
7890
7891if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7892 as_basename=basename
7893else
7894 as_basename=false
7895fi
7896
Benny Prijono28d3c562012-03-30 07:10:13 +00007897if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7898 as_dirname=dirname
7899else
7900 as_dirname=false
7901fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007902
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007903as_me=`$as_basename -- "$0" ||
7904$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7905 X"$0" : 'X\(//\)$' \| \
7906 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono28d3c562012-03-30 07:10:13 +00007907$as_echo X/"$0" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007908 sed '/^.*\/\([^/][^/]*\)\/*$/{
7909 s//\1/
7910 q
7911 }
7912 /^X\/\(\/\/\)$/{
7913 s//\1/
7914 q
7915 }
7916 /^X\/\(\/\).*/{
7917 s//\1/
7918 q
7919 }
7920 s/.*/./; q'`
7921
Benny Prijono28d3c562012-03-30 07:10:13 +00007922# Avoid depending upon Character Ranges.
7923as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7924as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7925as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7926as_cr_digits='0123456789'
7927as_cr_alnum=$as_cr_Letters$as_cr_digits
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007928
7929ECHO_C= ECHO_N= ECHO_T=
Benny Prijono28d3c562012-03-30 07:10:13 +00007930case `echo -n x` in #(((((
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007931-n*)
Benny Prijono28d3c562012-03-30 07:10:13 +00007932 case `echo 'xy\c'` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007933 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Benny Prijono28d3c562012-03-30 07:10:13 +00007934 xy) ECHO_C='\c';;
7935 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7936 ECHO_T=' ';;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007937 esac;;
7938*)
7939 ECHO_N='-n';;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00007940esac
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007941
7942rm -f conf$$ conf$$.exe conf$$.file
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007943if test -d conf$$.dir; then
7944 rm -f conf$$.dir/conf$$.file
7945else
7946 rm -f conf$$.dir
Benny Prijono28d3c562012-03-30 07:10:13 +00007947 mkdir conf$$.dir 2>/dev/null
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007948fi
Benny Prijono28d3c562012-03-30 07:10:13 +00007949if (echo >conf$$.file) 2>/dev/null; then
7950 if ln -s conf$$.file conf$$ 2>/dev/null; then
7951 as_ln_s='ln -s'
7952 # ... but there are two gotchas:
7953 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7954 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Sauw Ming2f91da02012-06-07 02:24:51 +00007955 # In both cases, we have to default to `cp -pR'.
Benny Prijono28d3c562012-03-30 07:10:13 +00007956 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Sauw Ming2f91da02012-06-07 02:24:51 +00007957 as_ln_s='cp -pR'
Benny Prijono28d3c562012-03-30 07:10:13 +00007958 elif ln conf$$.file conf$$ 2>/dev/null; then
7959 as_ln_s=ln
7960 else
Sauw Ming2f91da02012-06-07 02:24:51 +00007961 as_ln_s='cp -pR'
Benny Prijono28d3c562012-03-30 07:10:13 +00007962 fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007963else
Sauw Ming2f91da02012-06-07 02:24:51 +00007964 as_ln_s='cp -pR'
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007965fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00007966rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7967rmdir conf$$.dir 2>/dev/null
Benny Prijonoa9b372a2006-07-24 02:07:11 +00007968
Benny Prijono28d3c562012-03-30 07:10:13 +00007969
7970# as_fn_mkdir_p
7971# -------------
7972# Create "$as_dir" as a directory, including parents if necessary.
7973as_fn_mkdir_p ()
7974{
7975
7976 case $as_dir in #(
7977 -*) as_dir=./$as_dir;;
7978 esac
7979 test -d "$as_dir" || eval $as_mkdir_p || {
7980 as_dirs=
7981 while :; do
7982 case $as_dir in #(
7983 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7984 *) as_qdir=$as_dir;;
7985 esac
7986 as_dirs="'$as_qdir' $as_dirs"
7987 as_dir=`$as_dirname -- "$as_dir" ||
7988$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7989 X"$as_dir" : 'X\(//\)[^/]' \| \
7990 X"$as_dir" : 'X\(//\)$' \| \
7991 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7992$as_echo X"$as_dir" |
7993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7994 s//\1/
7995 q
7996 }
7997 /^X\(\/\/\)[^/].*/{
7998 s//\1/
7999 q
8000 }
8001 /^X\(\/\/\)$/{
8002 s//\1/
8003 q
8004 }
8005 /^X\(\/\).*/{
8006 s//\1/
8007 q
8008 }
8009 s/.*/./; q'`
8010 test -d "$as_dir" && break
8011 done
8012 test -z "$as_dirs" || eval "mkdir $as_dirs"
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008013 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Benny Prijono28d3c562012-03-30 07:10:13 +00008014
8015
8016} # as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008017if mkdir -p . 2>/dev/null; then
Benny Prijono28d3c562012-03-30 07:10:13 +00008018 as_mkdir_p='mkdir -p "$as_dir"'
Benny Prijono39ae2da2006-10-13 17:57:42 +00008019else
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008020 test -d ./-p && rmdir ./-p
8021 as_mkdir_p=false
Benny Prijono39ae2da2006-10-13 17:57:42 +00008022fi
Benny Prijonoc5b6dbf2006-09-10 16:33:48 +00008023
Sauw Ming2f91da02012-06-07 02:24:51 +00008024
8025# as_fn_executable_p FILE
8026# -----------------------
8027# Test if FILE is an executable regular file.
8028as_fn_executable_p ()
8029{
8030 test -f "$1" && test -x "$1"
8031} # as_fn_executable_p
8032as_test_x='test -x'
8033as_executable_p=as_fn_executable_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008034
8035# Sed expression to map a string onto a valid CPP name.
8036as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8037
8038# Sed expression to map a string onto a valid variable name.
8039as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8040
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008041
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008042exec 6>&1
Benny Prijono28d3c562012-03-30 07:10:13 +00008043## ----------------------------------- ##
8044## Main body of $CONFIG_STATUS script. ##
8045## ----------------------------------- ##
8046_ASEOF
8047test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008048
Benny Prijono28d3c562012-03-30 07:10:13 +00008049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8050# Save the log message, to keep $0 and so on meaningful, and to
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008051# report actual input values of CONFIG_FILES etc. instead of their
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008052# values after options handling.
8053ac_log="
Benny Prijono28d3c562012-03-30 07:10:13 +00008054This file was extended by pjproject $as_me 2.x, which was
Sauw Ming2f91da02012-06-07 02:24:51 +00008055generated by GNU Autoconf 2.69. Invocation command line was
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008056
8057 CONFIG_FILES = $CONFIG_FILES
8058 CONFIG_HEADERS = $CONFIG_HEADERS
8059 CONFIG_LINKS = $CONFIG_LINKS
8060 CONFIG_COMMANDS = $CONFIG_COMMANDS
8061 $ $0 $@
8062
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008063on `(hostname || uname -n) 2>/dev/null | sed 1q`
8064"
8065
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008066_ACEOF
8067
Benny Prijono28d3c562012-03-30 07:10:13 +00008068case $ac_config_files in *"
8069"*) set x $ac_config_files; shift; ac_config_files=$*;;
8070esac
8071
8072case $ac_config_headers in *"
8073"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8074esac
8075
8076
8077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008078# Files that config.status was made for.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008079config_files="$ac_config_files"
8080config_headers="$ac_config_headers"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008081
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008082_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008083
Benny Prijono28d3c562012-03-30 07:10:13 +00008084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008085ac_cs_usage="\
Benny Prijono28d3c562012-03-30 07:10:13 +00008086\`$as_me' instantiates files and other configuration actions
8087from templates according to the current configuration. Unless the files
8088and actions are specified as TAGs, all are instantiated by default.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008089
Benny Prijono28d3c562012-03-30 07:10:13 +00008090Usage: $0 [OPTION]... [TAG]...
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008091
8092 -h, --help print this help, then exit
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008093 -V, --version print version number and configuration settings, then exit
Benny Prijono28d3c562012-03-30 07:10:13 +00008094 --config print configuration, then exit
8095 -q, --quiet, --silent
8096 do not print progress messages
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008097 -d, --debug don't remove temporary files
8098 --recheck update $as_me by reconfiguring in the same conditions
Benny Prijono28d3c562012-03-30 07:10:13 +00008099 --file=FILE[:TEMPLATE]
8100 instantiate the configuration file FILE
8101 --header=FILE[:TEMPLATE]
8102 instantiate the configuration header FILE
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008103
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008104Configuration files:
8105$config_files
8106
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008107Configuration headers:
8108$config_headers
8109
Benny Prijono28d3c562012-03-30 07:10:13 +00008110Report bugs to the package provider."
Benny Prijonoe2746132008-09-27 13:16:35 +00008111
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008112_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8114ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008115ac_cs_version="\\
Benny Prijono28d3c562012-03-30 07:10:13 +00008116pjproject config.status 2.x
Sauw Ming2f91da02012-06-07 02:24:51 +00008117configured by $0, generated by GNU Autoconf 2.69,
Benny Prijono28d3c562012-03-30 07:10:13 +00008118 with options \\"\$ac_cs_config\\"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008119
Sauw Ming2f91da02012-06-07 02:24:51 +00008120Copyright (C) 2012 Free Software Foundation, Inc.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008121This config.status script is free software; the Free Software Foundation
8122gives unlimited permission to copy, distribute and modify it."
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008123
8124ac_pwd='$ac_pwd'
8125srcdir='$srcdir'
Benny Prijono28d3c562012-03-30 07:10:13 +00008126test -n "\$AWK" || AWK=awk
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008127_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008128
Benny Prijono28d3c562012-03-30 07:10:13 +00008129cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8130# The default lists apply if the user does not specify any file.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008131ac_need_defaults=:
8132while test $# != 0
8133do
8134 case $1 in
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008135 --*=?*)
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008136 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8137 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008138 ac_shift=:
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008139 ;;
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008140 --*=)
8141 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8142 ac_optarg=
8143 ac_shift=:
8144 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008145 *)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008146 ac_option=$1
8147 ac_optarg=$2
8148 ac_shift=shift
8149 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008150 esac
8151
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008152 case $ac_option in
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008153 # Handling of the options.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008154 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008155 ac_cs_recheck=: ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008156 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Benny Prijono28d3c562012-03-30 07:10:13 +00008157 $as_echo "$ac_cs_version"; exit ;;
8158 --config | --confi | --conf | --con | --co | --c )
8159 $as_echo "$ac_cs_config"; exit ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008160 --debug | --debu | --deb | --de | --d | -d )
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008161 debug=: ;;
8162 --file | --fil | --fi | --f )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008163 $ac_shift
Benny Prijono28d3c562012-03-30 07:10:13 +00008164 case $ac_optarg in
8165 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008166 '') as_fn_error $? "missing file argument" ;;
Benny Prijono28d3c562012-03-30 07:10:13 +00008167 esac
8168 as_fn_append CONFIG_FILES " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008169 ac_need_defaults=false;;
8170 --header | --heade | --head | --hea )
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008171 $ac_shift
Benny Prijono28d3c562012-03-30 07:10:13 +00008172 case $ac_optarg in
8173 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8174 esac
8175 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008176 ac_need_defaults=false;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008177 --he | --h)
8178 # Conflict between --help and --header
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008179 as_fn_error $? "ambiguous option: \`$1'
Benny Prijono28d3c562012-03-30 07:10:13 +00008180Try \`$0 --help' for more information.";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008181 --help | --hel | -h )
Benny Prijono28d3c562012-03-30 07:10:13 +00008182 $as_echo "$ac_cs_usage"; exit ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8184 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8185 ac_cs_silent=: ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008186
8187 # This is an error.
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008188 -*) as_fn_error $? "unrecognized option: \`$1'
Benny Prijono28d3c562012-03-30 07:10:13 +00008189Try \`$0 --help' for more information." ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008190
Benny Prijono28d3c562012-03-30 07:10:13 +00008191 *) as_fn_append ac_config_targets " $1"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008192 ac_need_defaults=false ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008193
8194 esac
8195 shift
8196done
8197
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008198ac_configure_extra_args=
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008199
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008200if $ac_cs_silent; then
8201 exec 6>/dev/null
8202 ac_configure_extra_args="$ac_configure_extra_args --silent"
8203fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008204
8205_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008207if \$ac_cs_recheck; then
Sauw Ming2f91da02012-06-07 02:24:51 +00008208 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Benny Prijono28d3c562012-03-30 07:10:13 +00008209 shift
8210 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8211 CONFIG_SHELL='$SHELL'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008212 export CONFIG_SHELL
Benny Prijono28d3c562012-03-30 07:10:13 +00008213 exec "\$@"
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008214fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008215
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008216_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008217cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008218exec 5>>config.log
8219{
8220 echo
8221 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8222## Running $as_me. ##
8223_ASBOX
Benny Prijono28d3c562012-03-30 07:10:13 +00008224 $as_echo "$ac_log"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008225} >&5
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008226
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008227_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008228cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008229_ACEOF
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008230
Benny Prijono28d3c562012-03-30 07:10:13 +00008231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008232
8233# Handling of arguments.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008234for ac_config_target in $ac_config_targets
8235do
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008236 case $ac_config_target in
8237 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
8238 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
8239 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
8240 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
8241 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
8242 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
8243 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
Benny Prijono8ec5eae2010-05-12 10:59:20 +00008244 "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008245 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
8246 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
8247 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
8248 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008249 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
Benny Prijono8a9b3b22010-01-14 14:46:54 +00008250 "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 +00008251
Sauw Ming2f91da02012-06-07 02:24:51 +00008252 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008253 esac
8254done
8255
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008256
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008257# If the user did not use the arguments to specify the items to instantiate,
8258# then the envvar interface is used. Set only those that are not.
8259# We use the long form for the default assignment because of an extremely
8260# bizarre bug on SunOS 4.1.3.
8261if $ac_need_defaults; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008262 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008263 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8264fi
8265
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008266# Have a temporary directory for convenience. Make it in the build tree
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008267# simply because there is no reason against having it here, and in addition,
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008268# creating and moving files from /tmp can sometimes cause problems.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008269# Hook for its removal unless debugging.
8270# Note that there is a small window in which the directory will not be cleaned:
8271# after its creation but before its name has been assigned to `$tmp'.
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008272$debug ||
8273{
Sauw Ming2f91da02012-06-07 02:24:51 +00008274 tmp= ac_tmp=
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008275 trap 'exit_status=$?
Sauw Ming2f91da02012-06-07 02:24:51 +00008276 : "${ac_tmp:=$tmp}"
8277 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008278' 0
Benny Prijono28d3c562012-03-30 07:10:13 +00008279 trap 'as_fn_exit 1' 1 2 13 15
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008280}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008281# Create a (secure) tmp directory for tmp files.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008282
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008283{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008284 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Sauw Ming2f91da02012-06-07 02:24:51 +00008285 test -d "$tmp"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008286} ||
8287{
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008288 tmp=./conf$$-$RANDOM
8289 (umask 077 && mkdir "$tmp")
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008290} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Sauw Ming2f91da02012-06-07 02:24:51 +00008291ac_tmp=$tmp
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008292
Benny Prijono28d3c562012-03-30 07:10:13 +00008293# Set up the scripts for CONFIG_FILES section.
8294# No need to generate them if there are no CONFIG_FILES.
8295# This happens for instance with `./config.status config.h'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008296if test -n "$CONFIG_FILES"; then
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008297
Benny Prijono28d3c562012-03-30 07:10:13 +00008298
8299ac_cr=`echo X | tr X '\015'`
8300# On cygwin, bash can eat \r inside `` if the user requested igncr.
8301# But we know of no other shell where ac_cr would be empty at this
8302# point, so we can use a bashism as a fallback.
8303if test "x$ac_cr" = x; then
8304 eval ac_cr=\$\'\\r\'
8305fi
8306ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8307if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008308 ac_cs_awk_cr='\\r'
Benny Prijono28d3c562012-03-30 07:10:13 +00008309else
8310 ac_cs_awk_cr=$ac_cr
8311fi
8312
Sauw Ming2f91da02012-06-07 02:24:51 +00008313echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008314_ACEOF
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008315
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008316
Benny Prijono28d3c562012-03-30 07:10:13 +00008317{
8318 echo "cat >conf$$subs.awk <<_ACEOF" &&
8319 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8320 echo "_ACEOF"
8321} >conf$$subs.sh ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008322 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8323ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008324ac_delim='%!_!# '
8325for ac_last_try in false false false false false :; do
Benny Prijono28d3c562012-03-30 07:10:13 +00008326 . ./conf$$subs.sh ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008327 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008328
Benny Prijono28d3c562012-03-30 07:10:13 +00008329 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8330 if test $ac_delim_n = $ac_delim_num; then
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008331 break
8332 elif $ac_last_try; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008333 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008334 else
8335 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008336 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008337done
Benny Prijono28d3c562012-03-30 07:10:13 +00008338rm -f conf$$subs.sh
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008339
Benny Prijono28d3c562012-03-30 07:10:13 +00008340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Sauw Ming2f91da02012-06-07 02:24:51 +00008341cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008342_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008343sed -n '
8344h
8345s/^/S["/; s/!.*/"]=/
8346p
8347g
8348s/^[^!]*!//
8349:repl
8350t repl
8351s/'"$ac_delim"'$//
8352t delim
8353:nl
8354h
8355s/\(.\{148\}\)..*/\1/
8356t more1
8357s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8358p
8359n
8360b repl
8361:more1
8362s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8363p
8364g
8365s/.\{148\}//
8366t nl
8367:delim
8368h
8369s/\(.\{148\}\)..*/\1/
8370t more2
8371s/["\\]/\\&/g; s/^/"/; s/$/"/
8372p
8373b
8374:more2
8375s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8376p
8377g
8378s/.\{148\}//
8379t delim
8380' <conf$$subs.awk | sed '
8381/^[^""]/{
8382 N
8383 s/\n//
8384}
8385' >>$CONFIG_STATUS || ac_write_fail=1
8386rm -f conf$$subs.awk
8387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8388_ACAWK
Sauw Ming2f91da02012-06-07 02:24:51 +00008389cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Benny Prijono28d3c562012-03-30 07:10:13 +00008390 for (key in S) S_is_set[key] = 1
8391 FS = ""
8392
8393}
8394{
8395 line = $ 0
8396 nfields = split(line, field, "@")
8397 substed = 0
8398 len = length(field[1])
8399 for (i = 2; i < nfields; i++) {
8400 key = field[i]
8401 keylen = length(key)
8402 if (S_is_set[key]) {
8403 value = S[key]
8404 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8405 len += length(value) + length(field[++i])
8406 substed = 1
8407 } else
8408 len += 1 + keylen
8409 }
8410
8411 print line
8412}
8413
8414_ACAWK
Benny Prijonod4306432010-05-01 22:05:41 +00008415_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8417if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8418 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8419else
8420 cat
Sauw Ming2f91da02012-06-07 02:24:51 +00008421fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008422 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Benny Prijonod4306432010-05-01 22:05:41 +00008423_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008424
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008425# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8426# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008427# trailing colons and then remove the whole line if VPATH becomes empty
8428# (actually we leave an empty line to preserve line numbers).
8429if test "x$srcdir" = x.; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008430 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8431h
8432s///
8433s/^/:/
8434s/[ ]*$/:/
8435s/:\$(srcdir):/:/g
8436s/:\${srcdir}:/:/g
8437s/:@srcdir@:/:/g
8438s/^:*//
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008439s/:*$//
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008440x
8441s/\(=[ ]*\).*/\1/
8442G
8443s/\n//
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008444s/^[^=]*=[ ]*$//
8445}'
8446fi
8447
Benny Prijono28d3c562012-03-30 07:10:13 +00008448cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008449fi # test -n "$CONFIG_FILES"
8450
Benny Prijono28d3c562012-03-30 07:10:13 +00008451# Set up the scripts for CONFIG_HEADERS section.
8452# No need to generate them if there are no CONFIG_HEADERS.
8453# This happens for instance with `./config.status Makefile'.
8454if test -n "$CONFIG_HEADERS"; then
Sauw Ming2f91da02012-06-07 02:24:51 +00008455cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Benny Prijono28d3c562012-03-30 07:10:13 +00008456BEGIN {
8457_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008458
Benny Prijono28d3c562012-03-30 07:10:13 +00008459# Transform confdefs.h into an awk script `defines.awk', embedded as
8460# here-document in config.status, that substitutes the proper values into
8461# config.h.in to produce config.h.
8462
8463# Create a delimiter string that does not exist in confdefs.h, to ease
8464# handling of long lines.
8465ac_delim='%!_!# '
8466for ac_last_try in false false :; do
Sauw Ming2f91da02012-06-07 02:24:51 +00008467 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8468 if test -z "$ac_tt"; then
Benny Prijono28d3c562012-03-30 07:10:13 +00008469 break
8470 elif $ac_last_try; then
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008471 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Benny Prijono28d3c562012-03-30 07:10:13 +00008472 else
8473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8474 fi
8475done
8476
8477# For the awk script, D is an array of macro values keyed by name,
8478# likewise P contains macro parameters if any. Preserve backslash
8479# newline sequences.
8480
8481ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8482sed -n '
8483s/.\{148\}/&'"$ac_delim"'/g
8484t rset
8485:rset
8486s/^[ ]*#[ ]*define[ ][ ]*/ /
8487t def
8488d
8489:def
8490s/\\$//
8491t bsnl
8492s/["\\]/\\&/g
8493s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8494D["\1"]=" \3"/p
8495s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8496d
8497:bsnl
8498s/["\\]/\\&/g
8499s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8500D["\1"]=" \3\\\\\\n"\\/p
8501t cont
8502s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8503t cont
8504d
8505:cont
8506n
8507s/.\{148\}/&'"$ac_delim"'/g
8508t clear
8509:clear
8510s/\\$//
8511t bsnlc
8512s/["\\]/\\&/g; s/^/"/; s/$/"/p
8513d
8514:bsnlc
8515s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8516b cont
8517' <confdefs.h | sed '
8518s/'"$ac_delim"'/"\\\
8519"/g' >>$CONFIG_STATUS || ac_write_fail=1
8520
8521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8522 for (key in D) D_is_set[key] = 1
8523 FS = ""
8524}
8525/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8526 line = \$ 0
8527 split(line, arg, " ")
8528 if (arg[1] == "#") {
8529 defundef = arg[2]
8530 mac1 = arg[3]
8531 } else {
8532 defundef = substr(arg[1], 2)
8533 mac1 = arg[2]
8534 }
8535 split(mac1, mac2, "(") #)
8536 macro = mac2[1]
8537 prefix = substr(line, 1, index(line, defundef) - 1)
8538 if (D_is_set[macro]) {
8539 # Preserve the white space surrounding the "#".
8540 print prefix "define", macro P[macro] D[macro]
8541 next
8542 } else {
8543 # Replace #undef with comments. This is necessary, for example,
8544 # in the case of _POSIX_SOURCE, which is predefined and required
8545 # on some systems where configure will not decide to define it.
8546 if (defundef == "undef") {
8547 print "/*", prefix defundef, macro, "*/"
8548 next
8549 }
8550 }
8551}
8552{ print }
8553_ACAWK
8554_ACEOF
8555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008556 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Benny Prijono28d3c562012-03-30 07:10:13 +00008557fi # test -n "$CONFIG_HEADERS"
8558
8559
8560eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8561shift
8562for ac_tag
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008563do
8564 case $ac_tag in
8565 :[FHLC]) ac_mode=$ac_tag; continue;;
8566 esac
8567 case $ac_mode$ac_tag in
8568 :[FHL]*:*);;
Sauw Ming2f91da02012-06-07 02:24:51 +00008569 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008570 :[FH]-) ac_tag=-:-;;
8571 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8572 esac
8573 ac_save_IFS=$IFS
8574 IFS=:
8575 set x $ac_tag
8576 IFS=$ac_save_IFS
8577 shift
8578 ac_file=$1
8579 shift
8580
8581 case $ac_mode in
8582 :L) ac_source=$1;;
8583 :[FH])
8584 ac_file_inputs=
8585 for ac_f
8586 do
8587 case $ac_f in
Sauw Ming2f91da02012-06-07 02:24:51 +00008588 -) ac_f="$ac_tmp/stdin";;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008589 *) # Look for the file first in the build tree, then in the source tree
8590 # (if the path is not absolute). The absolute path cannot be DOS-style,
8591 # because $ac_f cannot contain `:'.
8592 test -f "$ac_f" ||
8593 case $ac_f in
8594 [\\/$]*) false;;
8595 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8596 esac ||
Sauw Ming2f91da02012-06-07 02:24:51 +00008597 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008598 esac
Benny Prijono28d3c562012-03-30 07:10:13 +00008599 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8600 as_fn_append ac_file_inputs " '$ac_f'"
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008601 done
8602
8603 # Let's still pretend it is `configure' which instantiates (i.e., don't
8604 # use $as_me), people would be surprised to read:
8605 # /* config.h. Generated by config.status. */
Benny Prijono28d3c562012-03-30 07:10:13 +00008606 configure_input='Generated from '`
8607 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8608 `' by configure.'
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008609 if test x"$ac_file" != x-; then
8610 configure_input="$ac_file. $configure_input"
Benny Prijono28d3c562012-03-30 07:10:13 +00008611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8612$as_echo "$as_me: creating $ac_file" >&6;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008613 fi
Benny Prijono28d3c562012-03-30 07:10:13 +00008614 # Neutralize special characters interpreted by sed in replacement strings.
8615 case $configure_input in #(
8616 *\&* | *\|* | *\\* )
8617 ac_sed_conf_input=`$as_echo "$configure_input" |
8618 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8619 *) ac_sed_conf_input=$configure_input;;
8620 esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008621
8622 case $ac_tag in
Sauw Ming2f91da02012-06-07 02:24:51 +00008623 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8624 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008625 esac
8626 ;;
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008627 esac
8628
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008629 ac_dir=`$as_dirname -- "$ac_file" ||
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008630$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8631 X"$ac_file" : 'X\(//\)[^/]' \| \
8632 X"$ac_file" : 'X\(//\)$' \| \
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008633 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Benny Prijono28d3c562012-03-30 07:10:13 +00008634$as_echo X"$ac_file" |
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8636 s//\1/
8637 q
8638 }
8639 /^X\(\/\/\)[^/].*/{
8640 s//\1/
8641 q
8642 }
8643 /^X\(\/\/\)$/{
8644 s//\1/
8645 q
8646 }
8647 /^X\(\/\).*/{
8648 s//\1/
8649 q
8650 }
8651 s/.*/./; q'`
Benny Prijono28d3c562012-03-30 07:10:13 +00008652 as_dir="$ac_dir"; as_fn_mkdir_p
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008653 ac_builddir=.
8654
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008655case "$ac_dir" in
8656.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8657*)
Benny Prijono28d3c562012-03-30 07:10:13 +00008658 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008659 # A ".." for each directory in $ac_dir_suffix.
Benny Prijono28d3c562012-03-30 07:10:13 +00008660 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008661 case $ac_top_builddir_sub in
8662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8664 esac ;;
8665esac
8666ac_abs_top_builddir=$ac_pwd
8667ac_abs_builddir=$ac_pwd$ac_dir_suffix
8668# for backward compatibility:
8669ac_top_builddir=$ac_top_build_prefix
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008670
8671case $srcdir in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008672 .) # We are building in place.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008673 ac_srcdir=.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008674 ac_top_srcdir=$ac_top_builddir_sub
8675 ac_abs_top_srcdir=$ac_pwd ;;
8676 [\\/]* | ?:[\\/]* ) # Absolute name.
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008677 ac_srcdir=$srcdir$ac_dir_suffix;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008678 ac_top_srcdir=$srcdir
8679 ac_abs_top_srcdir=$srcdir ;;
8680 *) # Relative name.
8681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8682 ac_top_srcdir=$ac_top_build_prefix$srcdir
8683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008684esac
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008685ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Benny Prijono9489e7a2008-09-19 22:18:50 +00008686
Benny Prijonoe2746132008-09-27 13:16:35 +00008687
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008688 case $ac_mode in
8689 :F)
8690 #
8691 # CONFIG_FILE
8692 #
Benny Prijonoe2746132008-09-27 13:16:35 +00008693
Benny Prijonoe2746132008-09-27 13:16:35 +00008694_ACEOF
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008695
Benny Prijono28d3c562012-03-30 07:10:13 +00008696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008697# If the template does not know about datarootdir, expand it.
8698# FIXME: This hack should be removed a few years after 2.60.
8699ac_datarootdir_hack=; ac_datarootdir_seen=
Benny Prijono28d3c562012-03-30 07:10:13 +00008700ac_sed_dataroot='
8701/datarootdir/ {
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008702 p
8703 q
8704}
8705/@datadir@/p
8706/@docdir@/p
8707/@infodir@/p
8708/@localedir@/p
Benny Prijono28d3c562012-03-30 07:10:13 +00008709/@mandir@/p'
8710case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008711*datarootdir*) ac_datarootdir_seen=yes;;
8712*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Benny Prijono28d3c562012-03-30 07:10:13 +00008713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8714$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008715_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008717 ac_datarootdir_hack='
8718 s&@datadir@&$datadir&g
8719 s&@docdir@&$docdir&g
8720 s&@infodir@&$infodir&g
8721 s&@localedir@&$localedir&g
8722 s&@mandir@&$mandir&g
Benny Prijono28d3c562012-03-30 07:10:13 +00008723 s&\\\${datarootdir}&$datarootdir&g' ;;
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008724esac
8725_ACEOF
8726
8727# Neutralize VPATH when `$srcdir' = `.'.
8728# Shell code in configure.ac might set extrasub.
8729# FIXME: do we really want to maintain this feature?
Benny Prijono28d3c562012-03-30 07:10:13 +00008730cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8731ac_sed_extra="$ac_vpsub
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008732$extrasub
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008733_ACEOF
Benny Prijono28d3c562012-03-30 07:10:13 +00008734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008735:t
8736/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Benny Prijono28d3c562012-03-30 07:10:13 +00008737s|@configure_input@|$ac_sed_conf_input|;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008738s&@top_builddir@&$ac_top_builddir_sub&;t t
Benny Prijono28d3c562012-03-30 07:10:13 +00008739s&@top_build_prefix@&$ac_top_build_prefix&;t t
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008740s&@srcdir@&$ac_srcdir&;t t
8741s&@abs_srcdir@&$ac_abs_srcdir&;t t
8742s&@top_srcdir@&$ac_top_srcdir&;t t
8743s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8744s&@builddir@&$ac_builddir&;t t
8745s&@abs_builddir@&$ac_abs_builddir&;t t
8746s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8747$ac_datarootdir_hack
Benny Prijono28d3c562012-03-30 07:10:13 +00008748"
Sauw Ming2f91da02012-06-07 02:24:51 +00008749eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8750 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Benny Prijonoc4c61d02006-08-20 20:47:34 +00008751
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008752test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Sauw Ming2f91da02012-06-07 02:24:51 +00008753 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8754 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8755 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Benny Prijono28d3c562012-03-30 07:10:13 +00008756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008757which seems to be undefined. Please make sure it is defined" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00008758$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008759which seems to be undefined. Please make sure it is defined" >&2;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008760
Sauw Ming2f91da02012-06-07 02:24:51 +00008761 rm -f "$ac_tmp/stdin"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008762 case $ac_file in
Sauw Ming2f91da02012-06-07 02:24:51 +00008763 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8764 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Benny Prijono28d3c562012-03-30 07:10:13 +00008765 esac \
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008766 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008767 ;;
8768 :H)
8769 #
8770 # CONFIG_HEADER
8771 #
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008772 if test x"$ac_file" != x-; then
Benny Prijono28d3c562012-03-30 07:10:13 +00008773 {
8774 $as_echo "/* $configure_input */" \
Sauw Ming2f91da02012-06-07 02:24:51 +00008775 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8776 } >"$ac_tmp/config.h" \
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008777 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Sauw Ming2f91da02012-06-07 02:24:51 +00008778 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Benny Prijono28d3c562012-03-30 07:10:13 +00008779 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8780$as_echo "$as_me: $ac_file is unchanged" >&6;}
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008781 else
Benny Prijono28d3c562012-03-30 07:10:13 +00008782 rm -f "$ac_file"
Sauw Ming2f91da02012-06-07 02:24:51 +00008783 mv "$ac_tmp/config.h" "$ac_file" \
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008785 fi
8786 else
Benny Prijono28d3c562012-03-30 07:10:13 +00008787 $as_echo "/* $configure_input */" \
Sauw Ming2f91da02012-06-07 02:24:51 +00008788 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008789 || as_fn_error $? "could not create -" "$LINENO" 5
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008790 fi
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008791 ;;
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008792
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008793
8794 esac
8795
8796done # for ac_tag
8797
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008798
Benny Prijono28d3c562012-03-30 07:10:13 +00008799as_fn_exit 0
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008800_ACEOF
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008801ac_clean_files=$ac_clean_files_save
8802
Benny Prijono28d3c562012-03-30 07:10:13 +00008803test $ac_write_fail = 0 ||
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008804 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Benny Prijono28d3c562012-03-30 07:10:13 +00008805
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008806
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008807# configure is writing to config.log, and then calls config.status.
8808# config.status does its own redirection, appending to config.log.
8809# Unfortunately, on DOS this fails, as config.log is still kept open
8810# by configure, so config.status won't be able to write to it; its
8811# output is simply discarded. So we exec the FD to /dev/null,
8812# effectively closing config.log, so it can be properly (re)opened and
8813# appended to by config.status. When coming back to configure, we
8814# need to make the FD available again.
8815if test "$no_create" != yes; then
8816 ac_cs_success=:
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008817 ac_config_status_args=
8818 test "$silent" = yes &&
8819 ac_config_status_args="$ac_config_status_args --quiet"
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008820 exec 5>/dev/null
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008821 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008822 exec 5>>config.log
8823 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8824 # would make configure fail if this is the last instruction.
Sauw Ming4e4ec7e2012-06-01 04:27:01 +00008825 $ac_cs_success || as_fn_exit 1
Benny Prijono28d3c562012-03-30 07:10:13 +00008826fi
8827if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8829$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Benny Prijonod5233702010-01-13 13:09:45 +00008830fi
Benny Prijonoa9b372a2006-07-24 02:07:11 +00008831
Benny Prijono7e0d75f2006-12-25 20:34:14 +00008832
Benny Prijonod9627842007-04-18 09:24:31 +00008833
Benny Prijono28d3c562012-03-30 07:10:13 +00008834{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
Benny Prijonod9627842007-04-18 09:24:31 +00008835
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008836Configurations 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 +00008837
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008838Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00008839 - 'user.mak'
8840 - 'pjlib/include/pj/config_site.h'
8841
8842The next step now is to run 'make dep' and 'make'.
8843" >&5
Benny Prijono28d3c562012-03-30 07:10:13 +00008844$as_echo "
Benny Prijonod9627842007-04-18 09:24:31 +00008845
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008846Configurations 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 +00008847
Benny Prijonoc16c6e32007-11-18 14:53:47 +00008848Further customizations can be put in:
Benny Prijonod9627842007-04-18 09:24:31 +00008849 - 'user.mak'
8850 - 'pjlib/include/pj/config_site.h'
8851
8852The next step now is to run 'make dep' and 'make'.
Nanang Izzuddin56e380a2009-04-15 14:45:41 +00008853" >&6; }
Benny Prijonod9627842007-04-18 09:24:31 +00008854