2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.69 for pjproject 2.x.
6
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## -------------------- ##
12
## M4sh Initialization. ##
13
## -------------------- ##
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
# is contrary to our usage. Disable this feature.
22
alias -g '${1+"$@"}'='"$@"'
25
case `(set -o) 2>/dev/null` in #(
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
as_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.
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
44
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46
as_echo_n='print -rn --'
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
55
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60
expr "X$arg" : "X\\(.*\\)$as_nl";
61
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
as_echo_n='sh -c $as_echo_n_body as_echo'
69
as_echo='sh -c $as_echo_body as_echo'
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
75
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
89
# Find who we are. Look in the path if we contain no directory separator.
92
*[\\/]* ) as_myself=$0 ;;
93
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97
test -z "$as_dir" && as_dir=.
98
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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.
106
if test "x$as_myself" = x; then
109
if test ! -f "$as_myself"; then
110
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114
# 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.
118
for as_var in BASH_ENV ENV MAIL MAILPATH
119
do eval test x\${$as_var+set} = xset \
120
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
# 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.
145
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147
*v*x* | *x*v* ) as_opts=-vx ;;
152
exec $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
158
# We don't want this to propagate to other subprocesses.
159
{ _as_can_reexec=; unset _as_can_reexec;}
160
if test "x$CONFIG_SHELL" = x; then
161
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
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+\"\$@\"}'='\"\$@\"'
169
case \`(set -o) 2>/dev/null\` in #(
177
as_required="as_fn_return () { (exit \$1); }
178
as_fn_success () { as_fn_return 0; }
179
as_fn_failure () { as_fn_return 1; }
180
as_fn_ret_success () { return 0; }
181
as_fn_ret_failure () { return 1; }
184
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
exitcode=1; echo positional parameters were not saved.
193
test x\$exitcode = x0 || exit 1
195
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
199
test \$(( 1 + 1 )) = 2 || exit 1"
200
if (eval "$as_required") 2>/dev/null; then :
205
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213
test -z "$as_dir" && as_dir=.
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 :
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
238
if test "x$CONFIG_SHELL" != x; then :
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.
246
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248
*v*x* | *x*v* ) as_opts=-vx ;;
253
exec $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
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."
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."
276
SHELL=${CONFIG_SHELL-/bin/sh}
278
# Unset more variables known to interfere with behavior of common tools.
279
CLICOLOR_FORCE= GREP_OPTIONS=
280
unset CLICOLOR_FORCE GREP_OPTIONS
282
## --------------------- ##
283
## M4sh Shell Functions. ##
284
## --------------------- ##
287
# Portably unset VAR.
290
{ eval $1=; unset $1;}
294
# as_fn_set_status STATUS
295
# -----------------------
296
# Set $? to STATUS, without forking.
304
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314
# Create "$as_dir" as a directory, including parents if necessary.
319
-*) as_dir=./$as_dir;;
321
test -d "$as_dir" || eval $as_mkdir_p || {
325
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352
test -d "$as_dir" && break
354
test -z "$as_dirs" || eval "mkdir $as_dirs"
355
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
# as_fn_executable_p FILE
361
# -----------------------
362
# Test if FILE is an executable regular file.
363
as_fn_executable_p ()
365
test -f "$1" && test -x "$1"
366
} # as_fn_executable_p
367
# 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
373
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374
eval 'as_fn_append ()
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.
390
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398
as_val=`expr "$@" || test $? -eq 1`
403
# as_fn_error STATUS ERROR [LINENO LOG_FD]
404
# ----------------------------------------
405
# 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
407
# script with STATUS, using 1 if that was 0.
410
as_status=$1; test $as_status -eq 0 && as_status=1
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
415
$as_echo "$as_me: error: $2" >&2
416
as_fn_exit $as_status
419
if expr a : '\(a\)' >/dev/null 2>&1 &&
420
test "X`expr 00001 : '.*\(...\)'`" = X001; then
426
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438
as_me=`$as_basename -- "$0" ||
439
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440
X"$0" : 'X\(//\)$' \| \
441
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443
sed '/^.*\/\([^/][^/]*\)\/*$/{
457
# Avoid depending upon Character Ranges.
458
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461
as_cr_digits='0123456789'
462
as_cr_alnum=$as_cr_Letters$as_cr_digits
465
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. :-)
481
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485
chmod +x "$as_me.lineno" ||
486
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488
# 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
492
# 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
494
# original and so on. Autoconf is especially sensitive to this).
496
# Exit status is that of the last command.
500
ECHO_C= ECHO_N= ECHO_T=
501
case `echo -n x` in #(((((
503
case `echo 'xy\c'` in
504
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
506
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513
rm -f conf$$ conf$$.exe conf$$.file
514
if test -d conf$$.dir; then
515
rm -f conf$$.dir/conf$$.file
518
mkdir conf$$.dir 2>/dev/null
520
if (echo >conf$$.file) 2>/dev/null; then
521
if ln -s conf$$.file conf$$ 2>/dev/null; then
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.
526
# In both cases, we have to default to `cp -pR'.
527
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529
elif ln conf$$.file conf$$ 2>/dev/null; then
537
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538
rmdir conf$$.dir 2>/dev/null
540
if mkdir -p . 2>/dev/null; then
541
as_mkdir_p='mkdir -p "$as_dir"'
543
test -d ./-p && rmdir ./-p
548
as_executable_p=as_fn_executable_p
550
# Sed expression to map a string onto a valid CPP name.
551
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553
# Sed expression to map a string onto a valid variable name.
554
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557
test -n "$DJDIR" || exec 7<&0 </dev/null
561
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562
# so uname gets run too.
563
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
ac_default_prefix=/usr/local
570
ac_config_libobj_dir=.
577
# Identity of this package.
578
PACKAGE_NAME='pjproject'
579
PACKAGE_TARNAME='pjproject'
580
PACKAGE_VERSION='2.x'
581
PACKAGE_STRING='pjproject 2.x'
585
# Factoring default headers for most tests.
586
ac_includes_default="\
588
#ifdef HAVE_SYS_TYPES_H
589
# include <sys/types.h>
591
#ifdef HAVE_SYS_STAT_H
592
# include <sys/stat.h>
598
# ifdef HAVE_STDLIB_H
603
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608
#ifdef HAVE_STRINGS_H
609
# include <strings.h>
611
#ifdef HAVE_INTTYPES_H
612
# include <inttypes.h>
621
ac_subst_vars='LTLIBOBJS
629
opencore_amrwb_dec_present
630
opencore_amrwb_dec_h_present
631
opencore_amrwb_enc_present
632
opencore_amrwb_enc_h_present
633
opencore_amrnb_present
634
opencore_amrnb_h_present
644
SAVED_PKG_CONFIG_PATH
663
ac_pjmedia_video_has_qt
665
ac_pjmedia_video_has_ios
742
program_transform_name
755
enable_option_checking
756
enable_floating_point
790
with_opencore_amrwbenc
795
ac_precious_vars='build_alias
809
# Initialize some variables set by options.
811
ac_init_version=false
812
ac_unrecognized_opts=
814
# The variables have the same names as the options, with
815
# dashes changed to underlines.
823
program_transform_name=s,x,x,
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.
836
# (The list follows the same order as the GNU Coding Standards.)
837
bindir='${exec_prefix}/bin'
838
sbindir='${exec_prefix}/sbin'
839
libexecdir='${exec_prefix}/libexec'
840
datarootdir='${prefix}/share'
841
datadir='${datarootdir}'
842
sysconfdir='${prefix}/etc'
843
sharedstatedir='${prefix}/com'
844
localstatedir='${prefix}/var'
845
includedir='${prefix}/include'
846
oldincludedir='/usr/include'
847
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848
infodir='${datarootdir}/info'
853
libdir='${exec_prefix}/lib'
854
localedir='${datarootdir}/locale'
855
mandir='${datarootdir}/man'
861
# If the previous option needs an argument, assign it.
862
if test -n "$ac_prev"; then
863
eval $ac_prev=\$ac_option
869
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874
# Accept the important Cygnus configure options, so we can diagnose typos.
876
case $ac_dashdash$ac_option in
880
-bindir | --bindir | --bindi | --bind | --bin | --bi)
882
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885
-build | --build | --buil | --bui | --bu)
886
ac_prev=build_alias ;;
887
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
888
build_alias=$ac_optarg ;;
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 ;;
898
cache_file=config.cache ;;
900
-datadir | --datadir | --datadi | --datad)
902
-datadir=* | --datadir=* | --datadi=* | --datad=*)
903
datadir=$ac_optarg ;;
905
-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 ;;
912
-disable-* | --disable-*)
913
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914
# Reject names that are not valid shell variable names.
915
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916
as_fn_error $? "invalid feature name: $ac_useropt"
917
ac_useropt_orig=$ac_useropt
918
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919
case $ac_user_opts in
923
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924
ac_unrecognized_sep=', ';;
926
eval enable_$ac_useropt=no ;;
928
-docdir | --docdir | --docdi | --doc | --do)
930
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938
-enable-* | --enable-*)
939
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940
# Reject names that are not valid shell variable names.
941
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942
as_fn_error $? "invalid feature name: $ac_useropt"
943
ac_useropt_orig=$ac_useropt
944
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945
case $ac_user_opts in
949
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950
ac_unrecognized_sep=', ';;
952
eval enable_$ac_useropt=\$ac_optarg ;;
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 ;;
963
-gas | --gas | --ga | --g)
964
# Obsolete; use --with-gas.
967
-help | --help | --hel | --he | -h)
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 ;;
974
-host | --host | --hos | --ho)
975
ac_prev=host_alias ;;
976
-host=* | --host=* | --hos=* | --ho=*)
977
host_alias=$ac_optarg ;;
979
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983
htmldir=$ac_optarg ;;
985
-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 ;;
992
-infodir | --infodir | --infodi | --infod | --info | --inf)
994
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995
infodir=$ac_optarg ;;
997
-libdir | --libdir | --libdi | --libd)
999
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1000
libdir=$ac_optarg ;;
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 ;;
1009
-localedir | --localedir | --localedi | --localed | --locale)
1010
ac_prev=localedir ;;
1011
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012
localedir=$ac_optarg ;;
1014
-localstatedir | --localstatedir | --localstatedi | --localstated \
1015
| --localstate | --localstat | --localsta | --localst | --locals)
1016
ac_prev=localstatedir ;;
1017
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019
localstatedir=$ac_optarg ;;
1021
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024
mandir=$ac_optarg ;;
1026
-nfp | --nfp | --nf)
1027
# Obsolete; use --without-fp.
1030
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031
| --no-cr | --no-c | -n)
1034
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
1047
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050
prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
1083
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086
pdfdir=$ac_optarg ;;
1088
-psdir | --psdir | --psdi | --psd | --ps)
1090
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094
| -silent | --silent | --silen | --sile | --sil)
1097
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101
sbindir=$ac_optarg ;;
1103
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1104
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105
| --sharedst | --shareds | --shared | --share | --shar \
1107
ac_prev=sharedstatedir ;;
1108
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112
sharedstatedir=$ac_optarg ;;
1114
-site | --site | --sit)
1116
-site=* | --site=* | --sit=*)
1119
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122
srcdir=$ac_optarg ;;
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 ;;
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 ;;
1136
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1139
-version | --version | --versio | --versi | --vers | -V)
1140
ac_init_version=: ;;
1143
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144
# Reject names that are not valid shell variable names.
1145
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146
as_fn_error $? "invalid package name: $ac_useropt"
1147
ac_useropt_orig=$ac_useropt
1148
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149
case $ac_user_opts in
1153
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154
ac_unrecognized_sep=', ';;
1156
eval with_$ac_useropt=\$ac_optarg ;;
1158
-without-* | --without-*)
1159
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160
# Reject names that are not valid shell variable names.
1161
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162
as_fn_error $? "invalid package name: $ac_useropt"
1163
ac_useropt_orig=$ac_useropt
1164
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165
case $ac_user_opts in
1169
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170
ac_unrecognized_sep=', ';;
1172
eval with_$ac_useropt=no ;;
1175
# Obsolete; use --with-x.
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 ;;
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 ;;
1192
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1193
Try \`$0 --help' for more information"
1197
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198
# Reject names that are not valid shell variable names.
1199
case $ac_envvar in #(
1200
'' | [0-9]* | *[!_$as_cr_alnum]* )
1201
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1203
eval $ac_envvar=\$ac_optarg
1204
export $ac_envvar ;;
1207
# FIXME: should be removed in autoconf 3.0.
1208
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217
if test -n "$ac_prev"; then
1218
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219
as_fn_error $? "missing argument to $ac_option"
1222
if test -n "$ac_unrecognized_opts"; then
1223
case $enable_option_checking in
1225
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230
# Check all directory arguments for consistency.
1231
for 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
1236
eval ac_val=\$$ac_var
1237
# Remove trailing slashes.
1240
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241
eval $ac_var=\$ac_val;;
1243
# Be sure to have absolute directory names.
1245
[\\/$]* | ?:[\\/]* ) continue;;
1246
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1251
# There might be people who depend on the old broken behavior: `$host'
1252
# used to hold the argument of --host etc.
1253
# FIXME: To remove some day.
1256
target=$target_alias
1258
# FIXME: To remove some day.
1259
if test "x$host_alias" != x; then
1260
if test "x$build_alias" = x; then
1261
cross_compiling=maybe
1262
elif test "x$build_alias" != "x$host_alias"; then
1268
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270
test "$silent" = yes && exec 6>/dev/null
1273
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274
ac_ls_di=`ls -di .` &&
1275
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276
as_fn_error $? "working directory cannot be determined"
1277
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278
as_fn_error $? "pwd does not report name of working directory"
1281
# Find the source files, if location was not specified.
1282
if test -z "$srcdir"; then
1283
ac_srcdir_defaulted=yes
1284
# Try the directory containing this script, then the parent directory.
1285
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" |
1291
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1309
if test ! -r "$srcdir/$ac_unique_file"; then
1313
ac_srcdir_defaulted=no
1315
if test ! -r "$srcdir/$ac_unique_file"; then
1316
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1319
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323
# When building in place, set srcdir=.
1324
if test "$ac_abs_confdir" = "$ac_pwd"; then
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.
1331
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333
for 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}
1341
# Report the --help message.
1343
if 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.
1347
\`configure' configures pjproject 2.x to adapt to many kinds of systems.
1349
Usage: $0 [OPTION]... [VAR=VALUE]...
1351
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352
VAR=VALUE. See below for descriptions of some of the useful variables.
1354
Defaults for the options are specified in brackets.
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
1361
-q, --quiet, --silent do not print \`checking ...' messages
1362
--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 \`..']
1367
Installation directories:
1368
--prefix=PREFIX install architecture-independent files in PREFIX
1369
[$ac_default_prefix]
1370
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1373
By default, \`make install' will install all the files in
1374
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1375
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376
for instance \`--prefix=\$HOME'.
1378
For better control, use the options below.
1380
Fine tuning of the installation directories:
1381
--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]
1405
--build=BUILD configure for building on BUILD [guessed]
1406
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1407
--target=TARGET configure for building compilers for TARGET [HOST]
1411
if test -n "$ac_init_help"; then
1412
case $ac_init_help in
1413
short | recursive ) echo "Configuration of pjproject 2.x:";;
1418
--disable-option-checking ignore unrecognized --enable/--with options
1419
--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
1423
--enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
1424
--disable-sound Exclude sound (i.e. use null sound)
1425
--disable-oss Disable OSS audio (default: not disabled)
1426
--disable-video Disable video feature
1427
--enable-ext-sound PJMEDIA will not provide any sound device backend
1428
--disable-small-filter Exclude small filter in resampling
1429
--disable-large-filter Exclude large filter in resampling
1430
--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
1434
--disable-g722-codec Exclude G.722 codec in the build
1435
--disable-g7221-codec Exclude G.7221 codec in the build
1436
--disable-speex-codec Exclude Speex codecs in the build
1437
--disable-ilbc-codec Exclude iLBC codec in the build
1438
--enable-libsamplerate Link with libsamplerate when available. Note that
1439
PJMEDIA_RESAMPLE_IMP must also be configured
1440
--enable-resample-dll Build libresample as shared library
1441
--disable-sdl Disable SDL (default: not disabled)
1442
--disable-ffmpeg Disable ffmpeg (default: not disabled)
1443
--disable-v4l2 Disable Video4Linux2 (default: not disabled)
1444
--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
1448
--disable-ssl Exclude SSL support the build (default: autodetect)
1450
--disable-opencore-amr Exclude OpenCORE AMR support from the build
1451
(default: autodetect)
1453
--disable-silk Exclude SILK support from the build (default:
1458
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460
--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
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
1475
--with-sdl=DIR Specify alternate libSDL prefix
1476
--with-ffmpeg=DIR Specify alternate FFMPEG prefix
1477
--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
1480
"em64t. Default is blank for IA32"
1481
--with-ssl=DIR Specify alternate libssl prefix
1482
--with-opencore-amrnb=DIR
1483
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
1488
--with-silk=DIR Specify alternate SILK prefix
1490
Some 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>
1495
LIBS libraries to pass to the linker, e.g. -l<library>
1496
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1497
you have headers in a nonstandard directory <include dir>
1498
CXX C++ compiler command
1499
CXXFLAGS C++ compiler flags
1502
Use these variables to override the choices made by `configure' or to help
1503
it to find libraries and programs with nonstandard names/locations.
1505
Report bugs to the package provider.
1510
if test "$ac_init_help" = "recursive"; then
1511
# If there are subdirs, report their specific --help.
1512
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513
test -d "$ac_dir" ||
1514
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1519
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1522
# A ".." for each directory in $ac_dir_suffix.
1523
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1524
case $ac_top_builddir_sub in
1525
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529
ac_abs_top_builddir=$ac_pwd
1530
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531
# for backward compatibility:
1532
ac_top_builddir=$ac_top_build_prefix
1535
.) # We are building in place.
1537
ac_top_srcdir=$ac_top_builddir_sub
1538
ac_abs_top_srcdir=$ac_pwd ;;
1539
[\\/]* | ?:[\\/]* ) # Absolute name.
1540
ac_srcdir=$srcdir$ac_dir_suffix;
1541
ac_top_srcdir=$srcdir
1542
ac_abs_top_srcdir=$srcdir ;;
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 ;;
1548
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550
cd "$ac_dir" || { ac_status=$?; continue; }
1551
# Check for guested configure.
1552
if test -f "$ac_srcdir/configure.gnu"; then
1554
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555
elif test -f "$ac_srcdir/configure"; then
1557
$SHELL "$ac_srcdir/configure" --help=recursive
1559
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561
cd "$ac_pwd" || { ac_status=$?; break; }
1565
test -n "$ac_init_help" && exit $ac_status
1566
if $ac_init_version; then
1568
pjproject configure 2.x
1569
generated by GNU Autoconf 2.69
1571
Copyright (C) 2012 Free Software Foundation, Inc.
1572
This configure script is free software; the Free Software Foundation
1573
gives unlimited permission to copy, distribute and modify it.
1578
## ------------------------ ##
1579
## Autoconf initialization. ##
1580
## ------------------------ ##
1582
# ac_fn_c_try_compile LINENO
1583
# --------------------------
1584
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1585
ac_fn_c_try_compile ()
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"
1591
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592
*) ac_try_echo=$ac_try;;
1594
eval 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
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
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 :
1610
$as_echo "$as_me: failed program was:" >&5
1611
sed 's/^/| /' conftest.$ac_ext >&5
1615
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616
as_fn_set_status $ac_retval
1618
} # ac_fn_c_try_compile
1620
# ac_fn_cxx_try_compile LINENO
1621
# ----------------------------
1622
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1623
ac_fn_cxx_try_compile ()
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"
1629
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630
*) ac_try_echo=$ac_try;;
1632
eval 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
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
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 :
1648
$as_echo "$as_me: failed program was:" >&5
1649
sed 's/^/| /' conftest.$ac_ext >&5
1653
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654
as_fn_set_status $ac_retval
1656
} # ac_fn_cxx_try_compile
1658
# ac_fn_c_try_link LINENO
1659
# -----------------------
1660
# Try to link conftest.$ac_ext, and return whether this succeeded.
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"
1667
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668
*) ac_try_echo=$ac_try;;
1670
eval 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
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
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 ||
1685
test -x conftest$ac_exeext
1689
$as_echo "$as_me: failed program was:" >&5
1690
sed 's/^/| /' conftest.$ac_ext >&5
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
1699
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700
as_fn_set_status $ac_retval
1702
} # ac_fn_c_try_link
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.
1710
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711
if { { ac_try="$ac_link"
1713
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714
*) ac_try_echo=$ac_try;;
1716
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717
$as_echo "$ac_try_echo"; } >&5
1718
(eval "$ac_link") 2>&5
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;;
1726
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727
$as_echo "$ac_try_echo"; } >&5
1728
(eval "$ac_try") 2>&5
1730
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731
test $ac_status = 0; }; }; then :
1734
$as_echo "$as_me: program exited with status $ac_status" >&5
1735
$as_echo "$as_me: failed program was:" >&5
1736
sed 's/^/| /' conftest.$ac_ext >&5
1738
ac_retval=$ac_status
1740
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742
as_fn_set_status $ac_retval
1746
# ac_fn_c_try_cpp LINENO
1747
# ----------------------
1748
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1751
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752
if { { ac_try="$ac_cpp conftest.$ac_ext"
1754
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755
*) ac_try_echo=$ac_try;;
1757
eval 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
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
1766
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767
test $ac_status = 0; } > conftest.i && {
1768
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1769
test ! -s conftest.err
1773
$as_echo "$as_me: failed program was:" >&5
1774
sed 's/^/| /' conftest.$ac_ext >&5
1778
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
as_fn_set_status $ac_retval
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.
1787
ac_fn_c_check_header_compile ()
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; }
1792
if eval \${$3+:} false; then :
1793
$as_echo_n "(cached) " >&6
1795
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796
/* end confdefs.h. */
1800
if ac_fn_c_try_compile "$LINENO"; then :
1805
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809
$as_echo "$ac_res" >&6; }
1810
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
} # ac_fn_c_check_header_compile
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
1819
ac_fn_c_check_header_mongrel ()
1821
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822
if eval \${$3+:} false; then :
1823
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824
$as_echo_n "checking for $2... " >&6; }
1825
if eval \${$3+:} false; then :
1826
$as_echo_n "(cached) " >&6
1829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830
$as_echo "$ac_res" >&6; }
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; }
1835
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836
/* end confdefs.h. */
1840
if ac_fn_c_try_compile "$LINENO"; then :
1841
ac_header_compiler=yes
1843
ac_header_compiler=no
1845
rm -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; }
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; }
1852
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853
/* end confdefs.h. */
1856
if ac_fn_c_try_cpp "$LINENO"; then :
1857
ac_header_preproc=yes
1859
ac_header_preproc=no
1861
rm -f conftest.err conftest.i conftest.$ac_ext
1862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1863
$as_echo "$ac_header_preproc" >&6; }
1865
# So? What about this header?
1866
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
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;}
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;}
1886
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887
$as_echo_n "checking for $2... " >&6; }
1888
if eval \${$3+:} false; then :
1889
$as_echo_n "(cached) " >&6
1891
eval "$3=\$ac_header_compiler"
1894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895
$as_echo "$ac_res" >&6; }
1897
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
} # ac_fn_c_check_header_mongrel
1901
# ac_fn_c_check_func LINENO FUNC VAR
1902
# ----------------------------------
1903
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1904
ac_fn_c_check_func ()
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; }
1909
if eval \${$3+:} false; then :
1910
$as_echo_n "(cached) " >&6
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
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. */
1924
# include <limits.h>
1926
# include <assert.h>
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. */
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
1953
if ac_fn_c_try_link "$LINENO"; then :
1958
rm -f core conftest.err conftest.$ac_objext \
1959
conftest$ac_exeext conftest.$ac_ext
1962
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963
$as_echo "$ac_res" >&6; }
1964
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966
} # ac_fn_c_check_func
1967
cat >config.log <<_ACEOF
1968
This file contains any messages produced by compilers while
1969
running configure, to aid debugging if configure makes a mistake.
1971
It was created by pjproject $as_me 2.x, which was
1972
generated by GNU Autoconf 2.69. Invocation command line was
1984
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1985
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1986
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1987
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1988
uname -v = `(uname -v) 2>/dev/null || echo unknown`
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`
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`
1996
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1997
/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`
2003
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007
test -z "$as_dir" && as_dir=.
2008
$as_echo "PATH: $as_dir"
2024
# Keep a trace of the command line.
2025
# Strip out --no-create and --no-recursion so they do not pile up.
2026
# Strip out --silent because we don't want to record it for future runs.
2027
# Also quote any args containing shell meta-characters.
2028
# Make two passes to allow for proper duplicate-argument suppression.
2032
ac_must_keep_next=false
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)
2043
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2046
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2048
as_fn_append ac_configure_args1 " '$ac_arg'"
2049
if test $ac_must_keep_next = true; then
2050
ac_must_keep_next=false # Got value, back to normal.
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 ;;
2061
-* ) ac_must_keep_next=true ;;
2064
as_fn_append ac_configure_args " '$ac_arg'"
2069
{ ac_configure_args0=; unset ac_configure_args0;}
2070
{ ac_configure_args1=; unset ac_configure_args1;}
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.
2075
# 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.
2077
trap 'exit_status=$?
2078
# Save into config.log some information that might help in debugging.
2082
$as_echo "## ---------------- ##
2083
## Cache variables. ##
2084
## ---------------- ##"
2086
# The following way of writing the cache mishandles newlines in values,
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
2093
*_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;} ;;
2097
_ | IFS | as_nl) ;; #(
2098
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2099
*) { eval $ac_var=; unset $ac_var;} ;;
2104
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2105
*${as_nl}ac_space=\ *)
2107
"s/'\''/'\''\\\\'\'''\''/g;
2108
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2111
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2118
$as_echo "## ----------------- ##
2119
## Output variables. ##
2120
## ----------------- ##"
2122
for ac_var in $ac_subst_vars
2124
eval ac_val=\$$ac_var
2126
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2128
$as_echo "$ac_var='\''$ac_val'\''"
2132
if test -n "$ac_subst_files"; then
2133
$as_echo "## ------------------- ##
2134
## File substitutions. ##
2135
## ------------------- ##"
2137
for ac_var in $ac_subst_files
2139
eval ac_val=\$$ac_var
2141
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2143
$as_echo "$ac_var='\''$ac_val'\''"
2148
if test -s confdefs.h; then
2149
$as_echo "## ----------- ##
2156
test "$ac_signal" != 0 &&
2157
$as_echo "$as_me: caught signal $ac_signal"
2158
$as_echo "$as_me: exit $exit_status"
2160
rm -f core *.core core.conftest.* &&
2161
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2164
for ac_signal in 1 2 13 15; do
2165
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2169
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2170
rm -f -r conftest* confdefs.h
2172
$as_echo "/* confdefs.h */" > confdefs.h
2174
# Predefined preprocessor variables.
2176
cat >>confdefs.h <<_ACEOF
2177
#define PACKAGE_NAME "$PACKAGE_NAME"
2180
cat >>confdefs.h <<_ACEOF
2181
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2184
cat >>confdefs.h <<_ACEOF
2185
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2188
cat >>confdefs.h <<_ACEOF
2189
#define PACKAGE_STRING "$PACKAGE_STRING"
2192
cat >>confdefs.h <<_ACEOF
2193
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2196
cat >>confdefs.h <<_ACEOF
2197
#define PACKAGE_URL "$PACKAGE_URL"
2201
# Let the site file select an alternate cache file if it wants to.
2202
# Prefer an explicitly selected file to automatically selected ones.
2205
if test -n "$CONFIG_SITE"; then
2206
# 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;;
2212
elif test "x$prefix" != xNONE; then
2213
ac_site_file1=$prefix/share/config.site
2214
ac_site_file2=$prefix/etc/config.site
2216
ac_site_file1=$ac_default_prefix/share/config.site
2217
ac_site_file2=$ac_default_prefix/etc/config.site
2219
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2221
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;}
2225
sed 's/^/| /' "$ac_site_file" >&5
2227
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2228
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2229
as_fn_error $? "failed to load site script $ac_site_file
2230
See \`config.log' for more details" "$LINENO" 5; }
2234
if test -r "$cache_file"; then
2235
# 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;}
2241
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2242
*) . "./$cache_file";;
2246
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2247
$as_echo "$as_me: creating cache $cache_file" >&6;}
2251
# Check that the precious variables saved in the cache have kept the same
2253
ac_cache_corrupted=false
2254
for ac_var in $ac_precious_vars; do
2255
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2256
eval ac_new_set=\$ac_env_${ac_var}_set
2257
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2258
eval ac_new_val=\$ac_env_${ac_var}_value
2259
case $ac_old_set,$ac_new_set in
2261
{ $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;}
2263
ac_cache_corrupted=: ;;
2265
{ $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;}
2267
ac_cache_corrupted=: ;;
2270
if test "x$ac_old_val" != "x$ac_new_val"; then
2271
# 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=:
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
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;}
2289
# Pass precious variables to config.status.
2290
if test "$ac_new_set" = set; then
2292
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2293
*) ac_arg=$ac_var=$ac_new_val ;;
2295
case " $ac_configure_args " in
2296
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2297
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2301
if $ac_cache_corrupted; then
2302
{ $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;}
2306
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2308
## -------------------- ##
2309
## Main body of script. ##
2310
## -------------------- ##
2313
ac_cpp='$CPP $CPPFLAGS'
2314
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2315
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2316
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2323
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2324
if test -f "$ac_dir/install-sh"; then
2326
ac_install_sh="$ac_aux_dir/install-sh -c"
2328
elif test -f "$ac_dir/install.sh"; then
2330
ac_install_sh="$ac_aux_dir/install.sh -c"
2332
elif test -f "$ac_dir/shtool"; then
2334
ac_install_sh="$ac_aux_dir/shtool install -c"
2338
if test -z "$ac_aux_dir"; then
2339
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
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.
2346
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2347
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2348
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2351
# Make sure we can run config.sub.
2352
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2353
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2355
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2356
$as_echo_n "checking build system type... " >&6; }
2357
if ${ac_cv_build+:} false; then :
2358
$as_echo_n "(cached) " >&6
2360
ac_build_alias=$build_alias
2361
test "x$ac_build_alias" = x &&
2362
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2363
test "x$ac_build_alias" = x &&
2364
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2365
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2366
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2370
$as_echo "$ac_cv_build" >&6; }
2371
case $ac_cv_build in
2373
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2376
ac_save_IFS=$IFS; IFS='-'
2382
# Remember, the first character of IFS is used to create $*,
2383
# except with old shells:
2386
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2389
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2390
$as_echo_n "checking host system type... " >&6; }
2391
if ${ac_cv_host+:} false; then :
2392
$as_echo_n "(cached) " >&6
2394
if test "x$host_alias" = x; then
2395
ac_cv_host=$ac_cv_build
2397
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2398
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2403
$as_echo "$ac_cv_host" >&6; }
2406
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2409
ac_save_IFS=$IFS; IFS='-'
2415
# Remember, the first character of IFS is used to create $*,
2416
# except with old shells:
2419
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2422
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2423
$as_echo_n "checking target system type... " >&6; }
2424
if ${ac_cv_target+:} false; then :
2425
$as_echo_n "(cached) " >&6
2427
if test "x$target_alias" = x; then
2428
ac_cv_target=$ac_cv_host
2430
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2431
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2436
$as_echo "$ac_cv_target" >&6; }
2437
case $ac_cv_target in
2439
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2441
target=$ac_cv_target
2442
ac_save_IFS=$IFS; IFS='-'
2448
# Remember, the first character of IFS is used to create $*,
2449
# except with old shells:
2452
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2455
# The aliases save the names the user supplied, while $host etc.
2456
# will get canonicalized.
2457
test -n "$target_alias" &&
2458
test "$program_prefix$program_suffix$program_transform_name" = \
2460
program_prefix=${target_alias}-
2461
ac_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"
2463
ac_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"
2467
if test "$CFLAGS" = ""; then
2473
CXXFLAGS="$CFLAGS $CXXFLAGS"
2476
ac_cpp='$CPP $CPPFLAGS'
2477
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2478
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2479
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2480
if 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.
2482
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2483
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2484
$as_echo_n "checking for $ac_word... " >&6; }
2485
if ${ac_cv_prog_CC+:} false; then :
2486
$as_echo_n "(cached) " >&6
2488
if test -n "$CC"; then
2489
ac_cv_prog_CC="$CC" # Let the user override the test.
2491
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495
test -z "$as_dir" && as_dir=.
2496
for ac_exec_ext in '' $ac_executable_extensions; do
2497
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2498
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2499
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2509
if test -n "$CC"; then
2510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2511
$as_echo "$CC" >&6; }
2513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2514
$as_echo "no" >&6; }
2519
if test -z "$ac_cv_prog_CC"; then
2521
# Extract the first word of "gcc", so it can be a program name with args.
2522
set dummy gcc; ac_word=$2
2523
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524
$as_echo_n "checking for $ac_word... " >&6; }
2525
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2526
$as_echo_n "(cached) " >&6
2528
if test -n "$ac_ct_CC"; then
2529
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2531
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535
test -z "$as_dir" && as_dir=.
2536
for ac_exec_ext in '' $ac_executable_extensions; do
2537
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2538
ac_cv_prog_ac_ct_CC="gcc"
2539
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2549
if test -n "$ac_ct_CC"; then
2550
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2551
$as_echo "$ac_ct_CC" >&6; }
2553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554
$as_echo "no" >&6; }
2557
if test "x$ac_ct_CC" = x; then
2560
case $cross_compiling:$ac_tool_warned in
2562
{ $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;}
2564
ac_tool_warned=yes ;;
2572
if test -z "$CC"; then
2573
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.
2575
set dummy ${ac_tool_prefix}cc; ac_word=$2
2576
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2577
$as_echo_n "checking for $ac_word... " >&6; }
2578
if ${ac_cv_prog_CC+:} false; then :
2579
$as_echo_n "(cached) " >&6
2581
if test -n "$CC"; then
2582
ac_cv_prog_CC="$CC" # Let the user override the test.
2584
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588
test -z "$as_dir" && as_dir=.
2589
for ac_exec_ext in '' $ac_executable_extensions; do
2590
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2591
ac_cv_prog_CC="${ac_tool_prefix}cc"
2592
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2602
if test -n "$CC"; then
2603
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2604
$as_echo "$CC" >&6; }
2606
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2607
$as_echo "no" >&6; }
2613
if test -z "$CC"; then
2614
# Extract the first word of "cc", so it can be a program name with args.
2615
set dummy cc; ac_word=$2
2616
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617
$as_echo_n "checking for $ac_word... " >&6; }
2618
if ${ac_cv_prog_CC+:} false; then :
2619
$as_echo_n "(cached) " >&6
2621
if test -n "$CC"; then
2622
ac_cv_prog_CC="$CC" # Let the user override the test.
2625
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629
test -z "$as_dir" && as_dir=.
2630
for ac_exec_ext in '' $ac_executable_extensions; do
2631
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2632
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2633
ac_prog_rejected=yes
2637
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644
if 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
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.
2653
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2659
if test -n "$CC"; then
2660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2661
$as_echo "$CC" >&6; }
2663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664
$as_echo "no" >&6; }
2669
if test -z "$CC"; then
2670
if test -n "$ac_tool_prefix"; then
2671
for ac_prog in cl.exe
2673
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2674
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676
$as_echo_n "checking for $ac_word... " >&6; }
2677
if ${ac_cv_prog_CC+:} false; then :
2678
$as_echo_n "(cached) " >&6
2680
if test -n "$CC"; then
2681
ac_cv_prog_CC="$CC" # Let the user override the test.
2683
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687
test -z "$as_dir" && as_dir=.
2688
for ac_exec_ext in '' $ac_executable_extensions; do
2689
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2691
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701
if test -n "$CC"; then
2702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2703
$as_echo "$CC" >&6; }
2705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706
$as_echo "no" >&6; }
2710
test -n "$CC" && break
2713
if test -z "$CC"; then
2715
for ac_prog in cl.exe
2717
# Extract the first word of "$ac_prog", so it can be a program name with args.
2718
set dummy $ac_prog; ac_word=$2
2719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720
$as_echo_n "checking for $ac_word... " >&6; }
2721
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2722
$as_echo_n "(cached) " >&6
2724
if test -n "$ac_ct_CC"; then
2725
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731
test -z "$as_dir" && as_dir=.
2732
for ac_exec_ext in '' $ac_executable_extensions; do
2733
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734
ac_cv_prog_ac_ct_CC="$ac_prog"
2735
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2745
if test -n "$ac_ct_CC"; then
2746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2747
$as_echo "$ac_ct_CC" >&6; }
2749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750
$as_echo "no" >&6; }
2754
test -n "$ac_ct_CC" && break
2757
if test "x$ac_ct_CC" = x; then
2760
case $cross_compiling:$ac_tool_warned in
2762
{ $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;}
2764
ac_tool_warned=yes ;;
2773
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2774
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2775
as_fn_error $? "no acceptable C compiler found in \$PATH
2776
See \`config.log' for more details" "$LINENO" 5; }
2778
# Provide some information about the compiler.
2779
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2782
for ac_option in --version -v -V -qversion; do
2783
{ { ac_try="$ac_compiler $ac_option >&5"
2785
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786
*) ac_try_echo=$ac_try;;
2788
eval 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
2792
if test -s conftest.err; then
2794
... rest of stderr output deleted ...
2795
10q' conftest.err >conftest.er1
2796
cat conftest.er1 >&5
2798
rm -f conftest.er1 conftest.err
2799
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2800
test $ac_status = 0; }
2803
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2804
/* end confdefs.h. */
2814
ac_clean_files_save=$ac_clean_files
2815
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2816
# Try to create an executable without -o first, disregard a.out.
2817
# It will help us diagnose broken compilers, and finding out an intuition
2819
{ $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; }
2821
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2823
# The possible output files:
2824
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2827
for ac_file in $ac_files
2830
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2831
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2836
if { { ac_try="$ac_link_default"
2838
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839
*) ac_try_echo=$ac_try;;
2841
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2842
$as_echo "$ac_try_echo"; } >&5
2843
(eval "$ac_link_default") 2>&5
2845
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2846
test $ac_status = 0; }; then :
2847
# 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
2852
for ac_file in $ac_files ''
2854
test -f "$ac_file" || continue
2856
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2859
# We found the default executable, but exeext='' is most
2863
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2865
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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
2877
test "$ac_cv_exeext" = no && ac_cv_exeext=
2882
if 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
2886
sed 's/^/| /' conftest.$ac_ext >&5
2888
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2889
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2890
as_fn_error 77 "C compiler cannot create executables
2891
See \`config.log' for more details" "$LINENO" 5; }
2893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2894
$as_echo "yes" >&6; }
2896
{ $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; }
2900
ac_exeext=$ac_cv_exeext
2902
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2903
ac_clean_files=$ac_clean_files_save
2904
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2905
$as_echo_n "checking for suffix of executables... " >&6; }
2906
if { { ac_try="$ac_link"
2908
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909
*) ac_try_echo=$ac_try;;
2911
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2912
$as_echo "$ac_try_echo"; } >&5
2913
(eval "$ac_link") 2>&5
2915
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2916
test $ac_status = 0; }; then :
2917
# 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
2921
for ac_file in conftest.exe conftest conftest.*; do
2922
test -f "$ac_file" || continue
2924
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2925
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2931
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2932
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2933
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2934
See \`config.log' for more details" "$LINENO" 5; }
2936
rm -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; }
2940
rm -f conftest.$ac_ext
2941
EXEEXT=$ac_cv_exeext
2943
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944
/* end confdefs.h. */
2949
FILE *f = fopen ("conftest.out", "w");
2950
return ferror (f) || fclose (f) != 0;
2956
ac_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; }
2961
if test "$cross_compiling" != yes; then
2962
{ { ac_try="$ac_link"
2964
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965
*) ac_try_echo=$ac_try;;
2967
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2968
$as_echo "$ac_try_echo"; } >&5
2969
(eval "$ac_link") 2>&5
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;;
2978
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2979
$as_echo "$ac_try_echo"; } >&5
2980
(eval "$ac_try") 2>&5
2982
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2983
test $ac_status = 0; }; }; then
2986
if test "$cross_compiling" = maybe; then
2989
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991
as_fn_error $? "cannot run C compiled programs.
2992
If you meant to cross compile, use \`--host'.
2993
See \`config.log' for more details" "$LINENO" 5; }
2997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2998
$as_echo "$cross_compiling" >&6; }
3000
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3001
ac_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; }
3004
if ${ac_cv_objext+:} false; then :
3005
$as_echo_n "(cached) " >&6
3007
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008
/* end confdefs.h. */
3018
rm -f conftest.o conftest.obj
3019
if { { ac_try="$ac_compile"
3021
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022
*) ac_try_echo=$ac_try;;
3024
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3025
$as_echo "$ac_try_echo"; } >&5
3026
(eval "$ac_compile") 2>&5
3028
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3029
test $ac_status = 0; }; then :
3030
for ac_file in conftest.o conftest.obj conftest.*; do
3031
test -f "$ac_file" || continue;
3033
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3034
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3039
$as_echo "$as_me: failed program was:" >&5
3040
sed 's/^/| /' conftest.$ac_ext >&5
3042
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044
as_fn_error $? "cannot compute suffix of object files: cannot compile
3045
See \`config.log' for more details" "$LINENO" 5; }
3047
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3049
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3050
$as_echo "$ac_cv_objext" >&6; }
3051
OBJEXT=$ac_cv_objext
3053
{ $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; }
3055
if ${ac_cv_c_compiler_gnu+:} false; then :
3056
$as_echo_n "(cached) " >&6
3058
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3059
/* end confdefs.h. */
3072
if ac_fn_c_try_compile "$LINENO"; then :
3077
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3078
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3081
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3082
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3083
if test $ac_compiler_gnu = yes; then
3088
ac_test_CFLAGS=${CFLAGS+set}
3089
ac_save_CFLAGS=$CFLAGS
3090
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3091
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3092
if ${ac_cv_prog_cc_g+:} false; then :
3093
$as_echo_n "(cached) " >&6
3095
ac_save_c_werror_flag=$ac_c_werror_flag
3096
ac_c_werror_flag=yes
3099
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3100
/* end confdefs.h. */
3110
if ac_fn_c_try_compile "$LINENO"; then :
3114
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3115
/* end confdefs.h. */
3125
if ac_fn_c_try_compile "$LINENO"; then :
3128
ac_c_werror_flag=$ac_save_c_werror_flag
3130
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3131
/* end confdefs.h. */
3141
if ac_fn_c_try_compile "$LINENO"; then :
3144
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3146
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3148
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3149
ac_c_werror_flag=$ac_save_c_werror_flag
3151
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3152
$as_echo "$ac_cv_prog_cc_g" >&6; }
3153
if test "$ac_test_CFLAGS" = set; then
3154
CFLAGS=$ac_save_CFLAGS
3155
elif test $ac_cv_prog_cc_g = yes; then
3156
if test "$GCC" = yes; then
3162
if test "$GCC" = yes; then
3168
{ $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; }
3170
if ${ac_cv_prog_cc_c89+:} false; then :
3171
$as_echo_n "(cached) " >&6
3173
ac_cv_prog_cc_c89=no
3175
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176
/* end confdefs.h. */
3180
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3181
struct buf { int x; };
3182
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3183
static char *e (p, i)
3189
static char *f (char * (*g) (char **, int), char **p, ...)
3194
s = g (p, va_arg (v,int));
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
3202
as 'x'. The following induces an error, until -std is added to get
3203
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
3205
that's true only with -std. */
3206
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3208
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3209
inside strings and character constants. */
3211
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3213
int test (int i, double x);
3214
struct s1 {int (*f) (int a);};
3215
struct s2 {int (*f) (double a);};
3216
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3222
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3227
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3228
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3230
CC="$ac_save_CC $ac_arg"
3231
if ac_fn_c_try_compile "$LINENO"; then :
3232
ac_cv_prog_cc_c89=$ac_arg
3234
rm -f core conftest.err conftest.$ac_objext
3235
test "x$ac_cv_prog_cc_c89" != "xno" && break
3237
rm -f conftest.$ac_ext
3242
case "x$ac_cv_prog_cc_c89" in
3244
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3245
$as_echo "none needed" >&6; } ;;
3247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3248
$as_echo "unsupported" >&6; } ;;
3250
CC="$CC $ac_cv_prog_cc_c89"
3251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3252
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3254
if test "x$ac_cv_prog_cc_c89" != xno; then :
3259
ac_cpp='$CPP $CPPFLAGS'
3260
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265
ac_cpp='$CXXCPP $CPPFLAGS'
3266
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3269
if test -z "$CXX"; then
3270
if test -n "$CCC"; then
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
3276
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3277
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3278
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279
$as_echo_n "checking for $ac_word... " >&6; }
3280
if ${ac_cv_prog_CXX+:} false; then :
3281
$as_echo_n "(cached) " >&6
3283
if test -n "$CXX"; then
3284
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3286
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290
test -z "$as_dir" && as_dir=.
3291
for ac_exec_ext in '' $ac_executable_extensions; do
3292
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3294
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304
if test -n "$CXX"; then
3305
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3306
$as_echo "$CXX" >&6; }
3308
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309
$as_echo "no" >&6; }
3313
test -n "$CXX" && break
3316
if test -z "$CXX"; then
3318
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3320
# Extract the first word of "$ac_prog", so it can be a program name with args.
3321
set dummy $ac_prog; ac_word=$2
3322
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323
$as_echo_n "checking for $ac_word... " >&6; }
3324
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3325
$as_echo_n "(cached) " >&6
3327
if test -n "$ac_ct_CXX"; then
3328
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3330
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334
test -z "$as_dir" && as_dir=.
3335
for ac_exec_ext in '' $ac_executable_extensions; do
3336
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337
ac_cv_prog_ac_ct_CXX="$ac_prog"
3338
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3348
if test -n "$ac_ct_CXX"; then
3349
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3350
$as_echo "$ac_ct_CXX" >&6; }
3352
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353
$as_echo "no" >&6; }
3357
test -n "$ac_ct_CXX" && break
3360
if test "x$ac_ct_CXX" = x; then
3363
case $cross_compiling:$ac_tool_warned in
3365
{ $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;}
3367
ac_tool_warned=yes ;;
3375
# Provide some information about the compiler.
3376
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3379
for ac_option in --version -v -V -qversion; do
3380
{ { ac_try="$ac_compiler $ac_option >&5"
3382
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383
*) ac_try_echo=$ac_try;;
3385
eval 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
3389
if test -s conftest.err; then
3391
... rest of stderr output deleted ...
3392
10q' conftest.err >conftest.er1
3393
cat conftest.er1 >&5
3395
rm -f conftest.er1 conftest.err
3396
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397
test $ac_status = 0; }
3400
{ $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; }
3402
if ${ac_cv_cxx_compiler_gnu+:} false; then :
3403
$as_echo_n "(cached) " >&6
3405
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406
/* end confdefs.h. */
3419
if ac_fn_cxx_try_compile "$LINENO"; then :
3424
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3429
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3430
if test $ac_compiler_gnu = yes; then
3435
ac_test_CXXFLAGS=${CXXFLAGS+set}
3436
ac_save_CXXFLAGS=$CXXFLAGS
3437
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3438
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3439
if ${ac_cv_prog_cxx_g+:} false; then :
3440
$as_echo_n "(cached) " >&6
3442
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3443
ac_cxx_werror_flag=yes
3446
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447
/* end confdefs.h. */
3457
if ac_fn_cxx_try_compile "$LINENO"; then :
3458
ac_cv_prog_cxx_g=yes
3461
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462
/* end confdefs.h. */
3472
if ac_fn_cxx_try_compile "$LINENO"; then :
3475
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3477
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478
/* end confdefs.h. */
3488
if ac_fn_cxx_try_compile "$LINENO"; then :
3489
ac_cv_prog_cxx_g=yes
3491
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3499
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3500
if test "$ac_test_CXXFLAGS" = set; then
3501
CXXFLAGS=$ac_save_CXXFLAGS
3502
elif test $ac_cv_prog_cxx_g = yes; then
3503
if test "$GXX" = yes; then
3509
if test "$GXX" = yes; then
3516
ac_cpp='$CPP $CPPFLAGS'
3517
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522
ac_cpp='$CPP $CPPFLAGS'
3523
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528
if test -z "$CROSS_COMPILE"; then
3529
CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'`
3532
if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
3534
if test "$LD" = ""; then LD="$CC"; fi
3536
if test "$LDOUT" = ""; then LDOUT="-o "; fi
3538
if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi
3540
if test "$OBJEXT" = ""; then OBJEXT='o'; fi
3542
if test "$LIBEXT" = ""; then LIBEXT='a'; fi
3544
if test "$LIBEXT2" = ""; then LIBEXT2=""; fi
3546
if test "$CC_OUT" = ""; then CC_OUT="-o "; fi
3548
if test "$CC_INC" = ""; then CC_INC="-I"; fi
3550
if test "$CC_DEF" = ""; then CC_DEF="-D"; fi
3552
if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi
3554
if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi
3563
*mingw* | *cygw* | *win32* | *w32* )
3564
if pwd -W 2&> /dev/null; then
3567
# We're probably cross-compiling mingw on Linux
3578
*mingw* | *cygw* | *win32* | *w32* )
3582
ac_shlib_suffix=dylib
3590
if test "$build" = "$host"; then
3593
ac_cross_compile=${host_orig}-
3597
{ $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; }
3599
if ${ac_cv_lib_pthread_pthread_create+:} false; then :
3600
$as_echo_n "(cached) " >&6
3602
ac_check_lib_save_LIBS=$LIBS
3603
LIBS="-lpthread $LIBS"
3604
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605
/* end confdefs.h. */
3607
/* 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. */
3613
char pthread_create ();
3617
return pthread_create ();
3622
if ac_fn_c_try_link "$LINENO"; then :
3623
ac_cv_lib_pthread_pthread_create=yes
3625
ac_cv_lib_pthread_pthread_create=no
3627
rm -f core conftest.err conftest.$ac_objext \
3628
conftest$ac_exeext conftest.$ac_ext
3629
LIBS=$ac_check_lib_save_LIBS
3631
{ $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; }
3633
if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
3634
cat >>confdefs.h <<_ACEOF
3635
#define HAVE_LIBPTHREAD 1
3638
LIBS="-lpthread $LIBS"
3642
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5
3643
$as_echo_n "checking for puts in -lwsock32... " >&6; }
3644
if ${ac_cv_lib_wsock32_puts+:} false; then :
3645
$as_echo_n "(cached) " >&6
3647
ac_check_lib_save_LIBS=$LIBS
3648
LIBS="-lwsock32 $LIBS"
3649
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650
/* end confdefs.h. */
3652
/* 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. */
3667
if ac_fn_c_try_link "$LINENO"; then :
3668
ac_cv_lib_wsock32_puts=yes
3670
ac_cv_lib_wsock32_puts=no
3672
rm -f core conftest.err conftest.$ac_objext \
3673
conftest$ac_exeext conftest.$ac_ext
3674
LIBS=$ac_check_lib_save_LIBS
3676
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5
3677
$as_echo "$ac_cv_lib_wsock32_puts" >&6; }
3678
if test "x$ac_cv_lib_wsock32_puts" = xyes; then :
3679
cat >>confdefs.h <<_ACEOF
3680
#define HAVE_LIBWSOCK32 1
3683
LIBS="-lwsock32 $LIBS"
3687
{ $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; }
3689
if ${ac_cv_lib_ws2_32_puts+:} false; then :
3690
$as_echo_n "(cached) " >&6
3692
ac_check_lib_save_LIBS=$LIBS
3693
LIBS="-lws2_32 $LIBS"
3694
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695
/* end confdefs.h. */
3697
/* 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. */
3712
if ac_fn_c_try_link "$LINENO"; then :
3713
ac_cv_lib_ws2_32_puts=yes
3715
ac_cv_lib_ws2_32_puts=no
3717
rm -f core conftest.err conftest.$ac_objext \
3718
conftest$ac_exeext conftest.$ac_ext
3719
LIBS=$ac_check_lib_save_LIBS
3721
{ $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; }
3723
if test "x$ac_cv_lib_ws2_32_puts" = xyes; then :
3724
cat >>confdefs.h <<_ACEOF
3725
#define HAVE_LIBWS2_32 1
3728
LIBS="-lws2_32 $LIBS"
3732
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5
3733
$as_echo_n "checking for puts in -lole32... " >&6; }
3734
if ${ac_cv_lib_ole32_puts+:} false; then :
3735
$as_echo_n "(cached) " >&6
3737
ac_check_lib_save_LIBS=$LIBS
3738
LIBS="-lole32 $LIBS"
3739
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740
/* end confdefs.h. */
3742
/* 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. */
3757
if ac_fn_c_try_link "$LINENO"; then :
3758
ac_cv_lib_ole32_puts=yes
3760
ac_cv_lib_ole32_puts=no
3762
rm -f core conftest.err conftest.$ac_objext \
3763
conftest$ac_exeext conftest.$ac_ext
3764
LIBS=$ac_check_lib_save_LIBS
3766
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5
3767
$as_echo "$ac_cv_lib_ole32_puts" >&6; }
3768
if test "x$ac_cv_lib_ole32_puts" = xyes; then :
3769
cat >>confdefs.h <<_ACEOF
3770
#define HAVE_LIBOLE32 1
3773
LIBS="-lole32 $LIBS"
3777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5
3778
$as_echo_n "checking for puts in -lwinmm... " >&6; }
3779
if ${ac_cv_lib_winmm_puts+:} false; then :
3780
$as_echo_n "(cached) " >&6
3782
ac_check_lib_save_LIBS=$LIBS
3783
LIBS="-lwinmm $LIBS"
3784
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785
/* end confdefs.h. */
3787
/* 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. */
3802
if ac_fn_c_try_link "$LINENO"; then :
3803
ac_cv_lib_winmm_puts=yes
3805
ac_cv_lib_winmm_puts=no
3807
rm -f core conftest.err conftest.$ac_objext \
3808
conftest$ac_exeext conftest.$ac_ext
3809
LIBS=$ac_check_lib_save_LIBS
3811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5
3812
$as_echo "$ac_cv_lib_winmm_puts" >&6; }
3813
if test "x$ac_cv_lib_winmm_puts" = xyes; then :
3814
cat >>confdefs.h <<_ACEOF
3815
#define HAVE_LIBWINMM 1
3818
LIBS="-lwinmm $LIBS"
3822
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5
3823
$as_echo_n "checking for puts in -lsocket... " >&6; }
3824
if ${ac_cv_lib_socket_puts+:} false; then :
3825
$as_echo_n "(cached) " >&6
3827
ac_check_lib_save_LIBS=$LIBS
3828
LIBS="-lsocket $LIBS"
3829
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830
/* end confdefs.h. */
3832
/* 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. */
3847
if ac_fn_c_try_link "$LINENO"; then :
3848
ac_cv_lib_socket_puts=yes
3850
ac_cv_lib_socket_puts=no
3852
rm -f core conftest.err conftest.$ac_objext \
3853
conftest$ac_exeext conftest.$ac_ext
3854
LIBS=$ac_check_lib_save_LIBS
3856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5
3857
$as_echo "$ac_cv_lib_socket_puts" >&6; }
3858
if test "x$ac_cv_lib_socket_puts" = xyes; then :
3859
cat >>confdefs.h <<_ACEOF
3860
#define HAVE_LIBSOCKET 1
3863
LIBS="-lsocket $LIBS"
3867
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5
3868
$as_echo_n "checking for puts in -lrt... " >&6; }
3869
if ${ac_cv_lib_rt_puts+:} false; then :
3870
$as_echo_n "(cached) " >&6
3872
ac_check_lib_save_LIBS=$LIBS
3874
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875
/* end confdefs.h. */
3877
/* 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. */
3892
if ac_fn_c_try_link "$LINENO"; then :
3893
ac_cv_lib_rt_puts=yes
3895
ac_cv_lib_rt_puts=no
3897
rm -f core conftest.err conftest.$ac_objext \
3898
conftest$ac_exeext conftest.$ac_ext
3899
LIBS=$ac_check_lib_save_LIBS
3901
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5
3902
$as_echo "$ac_cv_lib_rt_puts" >&6; }
3903
if test "x$ac_cv_lib_rt_puts" = xyes; then :
3904
cat >>confdefs.h <<_ACEOF
3905
#define HAVE_LIBRT 1
3912
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5
3913
$as_echo_n "checking for puts in -lnsl... " >&6; }
3914
if ${ac_cv_lib_nsl_puts+:} false; then :
3915
$as_echo_n "(cached) " >&6
3917
ac_check_lib_save_LIBS=$LIBS
3919
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920
/* end confdefs.h. */
3922
/* 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. */
3937
if ac_fn_c_try_link "$LINENO"; then :
3938
ac_cv_lib_nsl_puts=yes
3940
ac_cv_lib_nsl_puts=no
3942
rm -f core conftest.err conftest.$ac_objext \
3943
conftest$ac_exeext conftest.$ac_ext
3944
LIBS=$ac_check_lib_save_LIBS
3946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5
3947
$as_echo "$ac_cv_lib_nsl_puts" >&6; }
3948
if test "x$ac_cv_lib_nsl_puts" = xyes; then :
3949
cat >>confdefs.h <<_ACEOF
3950
#define HAVE_LIBNSL 1
3957
{ $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; }
3959
if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
3960
$as_echo_n "(cached) " >&6
3962
ac_check_lib_save_LIBS=$LIBS
3964
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965
/* end confdefs.h. */
3967
/* 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. */
3973
char uuid_generate ();
3977
return uuid_generate ();
3982
if ac_fn_c_try_link "$LINENO"; then :
3983
ac_cv_lib_uuid_uuid_generate=yes
3985
ac_cv_lib_uuid_uuid_generate=no
3987
rm -f core conftest.err conftest.$ac_objext \
3988
conftest$ac_exeext conftest.$ac_ext
3989
LIBS=$ac_check_lib_save_LIBS
3991
{ $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; }
3993
if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
3994
cat >>confdefs.h <<_ACEOF
3995
#define HAVE_LIBUUID 1
4002
{ $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; }
4004
if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4005
$as_echo_n "(cached) " >&6
4007
ac_check_lib_save_LIBS=$LIBS
4009
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010
/* end confdefs.h. */
4012
/* 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. */
4018
char uuid_generate ();
4022
return uuid_generate ();
4027
if ac_fn_c_try_link "$LINENO"; then :
4028
ac_cv_lib_uuid_uuid_generate=yes
4030
ac_cv_lib_uuid_uuid_generate=no
4032
rm -f core conftest.err conftest.$ac_objext \
4033
conftest$ac_exeext conftest.$ac_ext
4034
LIBS=$ac_check_lib_save_LIBS
4036
{ $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; }
4038
if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4043
{ $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; }
4045
cat >>confdefs.h <<_ACEOF
4046
#define PJ_M_NAME "$target_cpu"
4050
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5
4051
$as_echo_n "checking memory alignment... " >&6; }
4053
sparc64-* | ia64-* | x86_64-* )
4054
$as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h
4056
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5
4057
$as_echo "8 bytes" >&6; }
4060
$as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h
4062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5
4063
$as_echo "4 bytes (default)" >&6; }
4069
ac_cpp='$CPP $CPPFLAGS'
4070
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073
{ $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; }
4075
# On Suns, sometimes $CPP names a directory.
4076
if test -n "$CPP" && test -d "$CPP"; then
4079
if test -z "$CPP"; then
4080
if ${ac_cv_prog_CPP+:} false; then :
4081
$as_echo_n "(cached) " >&6
4083
# Double quotes because CPP needs to be expanded
4084
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4087
for ac_c_preproc_warn_flag in '' yes
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.
4095
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096
/* end confdefs.h. */
4098
# include <limits.h>
4100
# include <assert.h>
4104
if ac_fn_c_try_cpp "$LINENO"; then :
4107
# Broken: fails on valid input.
4110
rm -f conftest.err conftest.i conftest.$ac_ext
4112
# OK, works on sane cases. Now check whether nonexistent headers
4113
# can be detected and how.
4114
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115
/* end confdefs.h. */
4116
#include <ac_nonexistent.h>
4118
if ac_fn_c_try_cpp "$LINENO"; then :
4119
# Broken: success on invalid input.
4122
# Passes both tests.
4126
rm -f conftest.err conftest.i conftest.$ac_ext
4129
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4130
rm -f conftest.i conftest.err conftest.$ac_ext
4131
if $ac_preproc_ok; then :
4143
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4144
$as_echo "$CPP" >&6; }
4146
for ac_c_preproc_warn_flag in '' yes
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.
4154
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155
/* end confdefs.h. */
4157
# include <limits.h>
4159
# include <assert.h>
4163
if ac_fn_c_try_cpp "$LINENO"; then :
4166
# Broken: fails on valid input.
4169
rm -f conftest.err conftest.i conftest.$ac_ext
4171
# OK, works on sane cases. Now check whether nonexistent headers
4172
# can be detected and how.
4173
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174
/* end confdefs.h. */
4175
#include <ac_nonexistent.h>
4177
if ac_fn_c_try_cpp "$LINENO"; then :
4178
# Broken: success on invalid input.
4181
# Passes both tests.
4185
rm -f conftest.err conftest.i conftest.$ac_ext
4188
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4189
rm -f conftest.i conftest.err conftest.$ac_ext
4190
if $ac_preproc_ok; then :
4193
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4194
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4195
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4196
See \`config.log' for more details" "$LINENO" 5; }
4200
ac_cpp='$CPP $CPPFLAGS'
4201
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206
{ $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; }
4208
if ${ac_cv_path_GREP+:} false; then :
4209
$as_echo_n "(cached) " >&6
4211
if test -z "$GREP"; then
4212
ac_path_GREP_found=false
4213
# Loop through the user's path and test for each of PROGNAME-LIST
4214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4218
test -z "$as_dir" && as_dir=.
4219
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"
4222
as_fn_executable_p "$ac_path_GREP" || continue
4223
# Check for GNU ac_path_GREP and select it if it is found.
4224
# Check for GNU $ac_path_GREP
4225
case `"$ac_path_GREP" --version 2>&1` in
4227
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4230
$as_echo_n 0123456789 >"conftest.in"
4233
cat "conftest.in" "conftest.in" >"conftest.tmp"
4234
mv "conftest.tmp" "conftest.in"
4235
cp "conftest.in" "conftest.nl"
4236
$as_echo 'GREP' >> "conftest.nl"
4237
"$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
4239
as_fn_arith $ac_count + 1 && ac_count=$as_val
4240
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
4245
# 10*(2^10) chars as input seems more than enough
4246
test $ac_count -gt 10 && break
4248
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4251
$ac_path_GREP_found && break 3
4256
if test -z "$ac_cv_path_GREP"; then
4257
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4260
ac_cv_path_GREP=$GREP
4264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4265
$as_echo "$ac_cv_path_GREP" >&6; }
4266
GREP="$ac_cv_path_GREP"
4269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4270
$as_echo_n "checking for egrep... " >&6; }
4271
if ${ac_cv_path_EGREP+:} false; then :
4272
$as_echo_n "(cached) " >&6
4274
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4275
then ac_cv_path_EGREP="$GREP -E"
4277
if test -z "$EGREP"; then
4278
ac_path_EGREP_found=false
4279
# Loop through the user's path and test for each of PROGNAME-LIST
4280
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4284
test -z "$as_dir" && as_dir=.
4285
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"
4288
as_fn_executable_p "$ac_path_EGREP" || continue
4289
# Check for GNU ac_path_EGREP and select it if it is found.
4290
# Check for GNU $ac_path_EGREP
4291
case `"$ac_path_EGREP" --version 2>&1` in
4293
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4296
$as_echo_n 0123456789 >"conftest.in"
4299
cat "conftest.in" "conftest.in" >"conftest.tmp"
4300
mv "conftest.tmp" "conftest.in"
4301
cp "conftest.in" "conftest.nl"
4302
$as_echo 'EGREP' >> "conftest.nl"
4303
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4304
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4305
as_fn_arith $ac_count + 1 && ac_count=$as_val
4306
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
4311
# 10*(2^10) chars as input seems more than enough
4312
test $ac_count -gt 10 && break
4314
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4317
$ac_path_EGREP_found && break 3
4322
if test -z "$ac_cv_path_EGREP"; then
4323
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4326
ac_cv_path_EGREP=$EGREP
4331
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4332
$as_echo "$ac_cv_path_EGREP" >&6; }
4333
EGREP="$ac_cv_path_EGREP"
4336
{ $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; }
4338
if ${ac_cv_header_stdc+:} false; then :
4339
$as_echo_n "(cached) " >&6
4341
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342
/* end confdefs.h. */
4356
if ac_fn_c_try_compile "$LINENO"; then :
4357
ac_cv_header_stdc=yes
4359
ac_cv_header_stdc=no
4361
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363
if test $ac_cv_header_stdc = yes; then
4364
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4365
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366
/* end confdefs.h. */
4370
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4371
$EGREP "memchr" >/dev/null 2>&1; then :
4374
ac_cv_header_stdc=no
4380
if test $ac_cv_header_stdc = yes; then
4381
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4382
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383
/* end confdefs.h. */
4387
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4388
$EGREP "free" >/dev/null 2>&1; then :
4391
ac_cv_header_stdc=no
4397
if test $ac_cv_header_stdc = yes; then
4398
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4399
if test "$cross_compiling" = yes; then :
4402
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403
/* end confdefs.h. */
4406
#if ((' ' & 0x0FF) == 0x020)
4407
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4408
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
4417
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4422
for (i = 0; i < 256; i++)
4423
if (XOR (islower (i), ISLOWER (i))
4424
|| toupper (i) != TOUPPER (i))
4429
if ac_fn_c_try_run "$LINENO"; then :
4432
ac_cv_header_stdc=no
4434
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4435
conftest.$ac_objext conftest.beam conftest.$ac_ext
4440
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4441
$as_echo "$ac_cv_header_stdc" >&6; }
4442
if test $ac_cv_header_stdc = yes; then
4444
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4448
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4449
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4450
inttypes.h stdint.h unistd.h
4452
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4453
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4455
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4456
cat >>confdefs.h <<_ACEOF
4457
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4465
{ $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; }
4467
if ${ac_cv_c_bigendian+:} false; then :
4468
$as_echo_n "(cached) " >&6
4470
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
4480
if ac_fn_c_try_compile "$LINENO"; then :
4482
# Check for potential -arch flags. It is not universal unless
4483
# there are at least two -arch flags with different values.
4486
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4487
if test -n "$ac_prev"; then
4489
i?86 | x86_64 | ppc | ppc64)
4490
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4493
ac_cv_c_bigendian=universal
4499
elif test "x$ac_word" = "x-arch"; then
4504
rm -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
4508
/* end confdefs.h. */
4509
#include <sys/types.h>
4510
#include <sys/param.h>
4515
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4516
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4525
if ac_fn_c_try_compile "$LINENO"; then :
4526
# It does; now see whether it defined to BIG_ENDIAN or not.
4527
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528
/* end confdefs.h. */
4529
#include <sys/types.h>
4530
#include <sys/param.h>
4535
#if BYTE_ORDER != BIG_ENDIAN
4543
if ac_fn_c_try_compile "$LINENO"; then :
4544
ac_cv_c_bigendian=yes
4546
ac_cv_c_bigendian=no
4548
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
4555
/* end confdefs.h. */
4561
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4569
if 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. */
4586
if ac_fn_c_try_compile "$LINENO"; then :
4587
ac_cv_c_bigendian=yes
4589
ac_cv_c_bigendian=no
4591
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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. */
4601
short 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];
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];
4620
return use_ascii (foo) == use_ebcdic (foo);
4625
if ac_fn_c_try_compile "$LINENO"; then :
4626
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4627
ac_cv_c_bigendian=yes
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
4633
# finding both strings is unlikely to happen, but who knows?
4634
ac_cv_c_bigendian=unknown
4638
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641
/* end confdefs.h. */
4642
$ac_includes_default
4647
/* Are we little or big endian? From Harbison&Steele. */
4651
char c[sizeof (long int)];
4654
return u.c[sizeof (long int) - 1] == 1;
4660
if ac_fn_c_try_run "$LINENO"; then :
4661
ac_cv_c_bigendian=no
4663
ac_cv_c_bigendian=yes
4665
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4666
conftest.$ac_objext conftest.beam conftest.$ac_ext
4671
{ $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 #(
4675
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4681
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4685
as_fn_error $? "unknown endianness
4686
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4690
if test "x$ac_cv_c_bigendian" = "xyes"; then
4691
CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0"
4693
CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1"
4697
*mingw* | *cygw* | *win32* | *w32* )
4698
$as_echo "#define PJ_WIN32 1" >>confdefs.h
4700
$as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h
4702
$as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
4706
$as_echo "#define PJ_DARWINOS 1" >>confdefs.h
4710
$as_echo "#define PJ_LINUX 1" >>confdefs.h
4714
$as_echo "#define PJ_RTEMS 1" >>confdefs.h
4717
*sunos* | *solaris* )
4718
$as_echo "#define PJ_SUNOS 1" >>confdefs.h
4728
# Check whether --enable-floating-point was given.
4729
if test "${enable_floating_point+set}" = set; then :
4730
enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
4731
$as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h
4733
{ $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; }
4738
$as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h
4740
{ $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; }
4744
if ${ac_cv_lib_m_fmod+:} false; then :
4745
$as_echo_n "(cached) " >&6
4747
ac_check_lib_save_LIBS=$LIBS
4749
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750
/* end confdefs.h. */
4752
/* 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. */
4767
if ac_fn_c_try_link "$LINENO"; then :
4768
ac_cv_lib_m_fmod=yes
4772
rm -f core conftest.err conftest.$ac_objext \
4773
conftest$ac_exeext conftest.$ac_ext
4774
LIBS=$ac_check_lib_save_LIBS
4776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
4777
$as_echo "$ac_cv_lib_m_fmod" >&6; }
4778
if test "x$ac_cv_lib_m_fmod" = xyes; then :
4779
cat >>confdefs.h <<_ACEOF
4792
ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
4793
if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
4794
$as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h
4799
ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
4800
if test "x$ac_cv_header_assert_h" = xyes; then :
4801
$as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h
4806
ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4807
if test "x$ac_cv_header_ctype_h" = xyes; then :
4808
$as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h
4815
*mingw* | *cygw* | *win32* | *w32* )
4816
$as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h
4820
ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4821
if test "x$ac_cv_header_errno_h" = xyes; then :
4822
$as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h
4830
ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4831
if test "x$ac_cv_header_fcntl_h" = xyes; then :
4832
$as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h
4837
ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default"
4838
if test "x$ac_cv_header_linux_socket_h" = xyes; then :
4839
$as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h
4844
ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
4845
if test "x$ac_cv_header_limits_h" = xyes; then :
4846
$as_echo "#define PJ_HAS_LIMITS_H 1" >>confdefs.h
4851
ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4852
if test "x$ac_cv_header_malloc_h" = xyes; then :
4853
$as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h
4858
ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
4859
if test "x$ac_cv_header_netdb_h" = xyes; then :
4860
$as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h
4865
ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
4866
if test "x$ac_cv_header_netinet_in_systm_h" = xyes; then :
4867
$as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h
4872
ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
4873
if test "x$ac_cv_header_netinet_in_h" = xyes; then :
4874
$as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h
4879
ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if PJ_HAS_SYS_TYPES_H
4880
# include <sys/types.h>
4882
#if PJ_HAS_NETINET_IN_SYSTM_H
4883
# include <netinet/in_systm.h>
4885
#if PJ_HAS_NETINET_IN_H
4886
# include <netinet/in.h>
4890
if test "x$ac_cv_header_netinet_ip_h" = xyes; then :
4891
$as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h
4896
ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
4897
if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
4898
$as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h
4903
ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
4904
if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
4905
ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
4906
if test "x$ac_cv_func_getifaddrs" = xyes; then :
4907
$as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h
4914
ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
4915
if test "x$ac_cv_header_semaphore_h" = xyes; then :
4916
$as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h
4921
ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
4922
if test "x$ac_cv_header_setjmp_h" = xyes; then :
4923
$as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h
4928
ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
4929
if test "x$ac_cv_header_stdarg_h" = xyes; then :
4930
$as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h
4935
ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
4936
if test "x$ac_cv_header_stddef_h" = xyes; then :
4937
$as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h
4942
ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4943
if test "x$ac_cv_header_stdio_h" = xyes; then :
4944
$as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h
4949
ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4950
if test "x$ac_cv_header_stdint_h" = xyes; then :
4951
$as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h
4956
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4957
if test "x$ac_cv_header_stdlib_h" = xyes; then :
4958
$as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h
4963
ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4964
if test "x$ac_cv_header_string_h" = xyes; then :
4965
$as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h
4970
ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4971
if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
4972
$as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h
4977
ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
4978
if test "x$ac_cv_header_sys_select_h" = xyes; then :
4979
$as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h
4984
ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
4985
if test "x$ac_cv_header_sys_socket_h" = xyes; then :
4986
$as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h
4991
ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
4992
if test "x$ac_cv_header_sys_time_h" = xyes; then :
4993
$as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h
4998
ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
4999
if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
5000
$as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h
5005
ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
5006
if test "x$ac_cv_header_sys_types_h" = xyes; then :
5007
$as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h
5012
ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
5013
if test "x$ac_cv_header_sys_filio_h" = xyes; then :
5014
$as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h
5019
ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
5020
if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
5021
$as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h
5026
ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
5027
if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
5028
$as_echo "#define PJ_HAS_SYS_UTSNAME_H 1" >>confdefs.h
5033
ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
5034
if test "x$ac_cv_header_time_h" = xyes; then :
5035
$as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h
5040
ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5041
if test "x$ac_cv_header_unistd_h" = xyes; then :
5042
$as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h
5047
ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
5048
if test "x$ac_cv_header_winsock_h" = xyes; then :
5049
$as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h
5054
ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
5055
if test "x$ac_cv_header_winsock2_h" = xyes; then :
5056
$as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h
5061
ac_fn_c_check_header_compile "$LINENO" "mswsock.h" "ac_cv_header_mswsock_h" "#if PJ_HAS_WINSOCK2_H
5062
# include <winsock2.h>
5063
#elif PJ_HAS_WINSOCK_H
5064
# include <winsock.h>
5068
if test "x$ac_cv_header_mswsock_h" = xyes; then :
5069
$as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h
5074
ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
5075
if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
5076
$as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h
5081
ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
5082
if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
5087
ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#if PJ_HAS_SYS_TYPES_H
5088
# include <sys/types.h>
5090
#if PJ_HAS_SYS_SOCKET_H
5092
# include <sys/socket.h>
5096
if test "x$ac_cv_header_net_if_h" = xyes; then :
5097
$as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h
5102
{ $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; }
5104
cat >>confdefs.h <<_ACEOF
5105
#define PJ_OS_NAME "$target"
5109
{ $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
5114
{ $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
5119
{ $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
5124
{ $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
5129
{ $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
5134
{ $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; }
5136
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137
/* end confdefs.h. */
5138
#include <sys/types.h>
5139
#include <sys/socket.h>
5140
#include <arpa/inet.h>
5149
if ac_fn_c_try_compile "$LINENO"; then :
5150
$as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h
5152
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5153
$as_echo "yes" >&6; }
5155
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156
$as_echo "no" >&6; }
5158
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160
{ $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; }
5162
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163
/* end confdefs.h. */
5164
#include <sys/types.h>
5165
#include <sys/socket.h>
5166
#include <arpa/inet.h>
5175
if ac_fn_c_try_compile "$LINENO"; then :
5176
$as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h
5178
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5179
$as_echo "yes" >&6; }
5181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182
$as_echo "no" >&6; }
5184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186
{ $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; }
5188
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189
/* end confdefs.h. */
5190
#include <sys/types.h>
5191
#include <sys/socket.h>
5192
#include <arpa/inet.h>
5196
inet_ntop(0, 0, 0, 0);
5201
if ac_fn_c_try_compile "$LINENO"; then :
5202
$as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h
5204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5205
$as_echo "yes" >&6; }
5207
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208
$as_echo "no" >&6; }
5210
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5
5213
$as_echo_n "checking if getaddrinfo() is available... " >&6; }
5214
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215
/* end confdefs.h. */
5216
#include <sys/types.h>
5217
#include <sys/socket.h>
5222
getaddrinfo(0, 0, 0, 0);
5227
if ac_fn_c_try_compile "$LINENO"; then :
5228
$as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h
5230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5231
$as_echo "yes" >&6; }
5233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234
$as_echo "no" >&6; }
5236
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238
{ $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; }
5240
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241
/* end confdefs.h. */
5242
#include <sys/types.h>
5243
#include <sys/socket.h>
5244
#include <netinet/in.h>
5245
#include <arpa/inet.h>
5249
struct sockaddr_in a; a.sin_len=0;
5254
if ac_fn_c_try_compile "$LINENO"; then :
5255
$as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h
5257
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5258
$as_echo "yes" >&6; }
5260
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261
$as_echo "no" >&6; }
5263
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265
{ $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; }
5267
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268
/* end confdefs.h. */
5269
#include <sys/types.h>
5270
#include <sys/socket.h>
5279
if ac_fn_c_try_compile "$LINENO"; then :
5280
$as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h
5282
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5283
$as_echo "yes" >&6; }
5285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286
$as_echo "no" >&6; }
5288
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290
{ $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; }
5293
*mingw* | *cygw* | *win32* | *w32* )
5294
$as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
5296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5297
$as_echo "yes" >&6; }
5300
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301
/* end confdefs.h. */
5302
#include <sys/types.h>
5303
#include <sys/socket.h>
5304
#include <netinet/in.h>
5305
#include <arpa/inet.h>
5314
if ac_fn_c_try_compile "$LINENO"; then :
5315
$as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
5317
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5318
$as_echo "yes" >&6; }
5320
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321
$as_echo "no" >&6; }
5323
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328
{ $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; }
5330
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331
/* end confdefs.h. */
5332
#include <pthread.h>
5336
pthread_rwlock_t *x;
5341
if ac_fn_c_try_compile "$LINENO"; then :
5342
$as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
5345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5346
$as_echo "yes" >&6; }
5348
$as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
5351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352
$as_echo "no" >&6; }
5354
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356
if test "$ac_rwmutex" = "no"; then
5357
{ $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
5360
/* end confdefs.h. */
5361
#define _POSIX_READER_WRITER_LOCKS
5362
#include <pthread.h>
5366
pthread_rwlock_t *x;
5371
if ac_fn_c_try_compile "$LINENO"; then :
5372
$as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
5374
CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
5375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5376
$as_echo "yes" >&6; }
5378
$as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
5380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381
$as_echo "no" >&6; }
5383
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5386
{ $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; }
5388
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389
/* end confdefs.h. */
5390
#include <pthread.h>
5394
pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
5399
if ac_fn_c_try_compile "$LINENO"; then :
5400
$as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h
5402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5403
$as_echo "yes" >&6; }
5405
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406
$as_echo "no" >&6; }
5408
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5410
{ $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; }
5412
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413
/* end confdefs.h. */
5414
#include <pthread.h>
5418
pthread_mutexattr_t attr;
5424
if ac_fn_c_try_compile "$LINENO"; then :
5425
$as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h
5427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5428
$as_echo "yes" >&6; }
5430
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431
$as_echo "no" >&6; }
5433
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5
5437
$as_echo_n "checking ioqueue backend... " >&6; }
5438
# Check whether --enable-epoll was given.
5439
if test "${enable_epoll+set}" = set; then :
5440
enableval=$enable_epoll;
5441
ac_os_objs=ioqueue_epoll.o
5442
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5
5443
$as_echo "/dev/epoll" >&6; }
5447
ac_os_objs=ioqueue_select.o
5448
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5
5449
$as_echo "select()" >&6; }
5456
*mingw* | *cygw* | *win32* | *w32* )
5457
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"
5460
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"
5463
ac_os_objs="$ac_os_objs os_info_iphone.o"
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"
5470
ac_os_objs="$ac_os_objs guid_simple.o"
5477
ac_os_objs="$ac_os_objs os_core_darwin.o"
5485
# Check whether --with-external-speex was given.
5486
if test "${with_external_speex+set}" = set; then :
5487
withval=$with_external_speex;
5488
if test "x$with_external_speex" != "xno"; then
5489
# Test Speex installation
5490
{ $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
5493
/* end confdefs.h. */
5494
#include <speex/speex.h>
5495
#include <speex/speex_echo.h>
5500
speex_echo_state_init(0, 0); speex_encoder_init(0);
5505
if 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
5510
ac_external_speex="1"
5513
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
5515
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525
# Check whether --with-external-gsm was given.
5526
if test "${with_external_gsm+set}" = set; then :
5527
withval=$with_external_gsm;
5528
if test "x$with_external_gsm" != "xno"; then
5529
# Test GSM library installation
5530
{ $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
5533
/* end confdefs.h. */
5534
#include <gsm/gsm.h>
5543
if 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
5548
$as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h
5554
{ $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
5559
/* end confdefs.h. */
5569
if 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
5574
$as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h
5579
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
5583
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597
# Check whether --enable-sound was given.
5598
if test "${enable_sound+set}" = set; then :
5599
enableval=$enable_sound; if test "$enable_sound" = "no"; then
5601
{ $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; }
5611
# Check whether --with-external-pa was given.
5612
if test "${with_external_pa+set}" = set; then :
5613
withval=$with_external_pa;
5614
if test "x$with_external_pa" != "xno"; then
5615
# Test PortAudio installation
5616
{ $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
5619
/* end confdefs.h. */
5620
#include <portaudio.h>
5630
if ac_fn_c_try_compile "$LINENO"; then :
5631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5632
$as_echo "yes!!" >&6; }
5636
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
5638
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5646
ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
5647
if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
5648
ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
5652
ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
5653
if test "x$ac_cv_header_linux_soundcard_h" = xyes; then :
5654
ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
5658
ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
5659
if test "x$ac_cv_header_machine_soundcard_h" = xyes; then :
5660
ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
5665
if test "x$ac_cv_c_bigendian" = "xyes"; then
5666
ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
5668
ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
5671
if test "$enable_sound" = "no"; then
5676
LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit"
5677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5
5678
$as_echo "Checking sound device backend... AudioUnit" >&6; }
5681
LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
5682
if test "`uname -r`" = "6.8"; then
5683
#ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
5684
#AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
5685
ac_pjmedia_snd=pa_old_darwinos
5686
{ $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; }
5689
ac_pjmedia_snd=pa_darwinos
5690
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5
5691
$as_echo "Checking sound device backend... coreaudio" >&6; }
5695
ac_pjmedia_snd=pa_win32
5696
{ $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; }
5701
{ $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; }
5705
ac_pjmedia_snd=pa_unix
5706
ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default"
5707
if test "x$ac_cv_header_alsa_version_h" = xyes; then :
5710
LIBS="$LIBS -lasound"
5718
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5
5719
$as_echo "Checking sound device backend... unix" >&6; }
5723
# Check whether --enable-oss was given.
5724
if test "${enable_oss+set}" = set; then :
5725
enableval=$enable_oss;
5726
if test "$enable_oss" = "no"; then
5728
{ $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; }
5740
# Check whether --enable-video was given.
5741
if 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; }
5755
LIBS="$LIBS -framework UIKit"
5758
LIBS="$LIBS -framework Foundation -framework AppKit"
5762
if test "$enable_video" = "no"; then
5767
ac_pjmedia_video=iphone_os
5771
LIBS="-framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
5772
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773
/* end confdefs.h. */
5783
if ac_fn_c_try_link "$LINENO"; then :
5784
ac_pjmedia_video_has_ios=yes
5786
ac_pjmedia_video_has_ios=no
5788
rm -f core conftest.err conftest.$ac_objext \
5789
conftest$ac_exeext conftest.$ac_ext
5791
if test "$ac_pjmedia_video_has_ios" = "yes"; then
5792
ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1"
5793
LIBS="$LIBS -framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
5794
{ $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; }
5797
{ $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; }
5802
ac_pjmedia_video=mac_os
5806
LIBS="-framework QTKit"
5807
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808
/* end confdefs.h. */
5818
if ac_fn_c_try_link "$LINENO"; then :
5819
ac_pjmedia_video_has_qt=yes
5821
ac_pjmedia_video_has_qt=no
5823
rm -f core conftest.err conftest.$ac_objext \
5824
conftest$ac_exeext conftest.$ac_ext
5826
if test "$ac_pjmedia_video_has_qt" = "yes"; then
5827
ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1"
5828
LIBS="$LIBS -framework QTKit -framework QuartzCore -framework OpenGL"
5829
{ $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; }
5832
{ $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; }
5839
# Check whether --enable-ext_sound was given.
5840
if test "${enable_ext_sound+set}" = set; then :
5841
enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
5842
ac_pjmedia_snd=external
5843
{ $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; }
5851
# Check whether --enable-small-filter was given.
5852
if test "${enable_small_filter+set}" = set; then :
5853
enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
5854
ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
5855
{ $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; }
5859
{ $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; }
5865
# Check whether --enable-large-filter was given.
5866
if test "${enable_large_filter+set}" = set; then :
5867
enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
5868
ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
5869
{ $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; }
5873
{ $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; }
5879
# Check whether --enable-speex-aec was given.
5880
if test "${enable_speex_aec+set}" = set; then :
5881
enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
5882
ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
5883
{ $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; }
5887
{ $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; }
5893
# Check whether --enable-g711-codec was given.
5894
if test "${enable_g711_codec+set}" = set; then :
5895
enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
5897
$as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h
5899
{ $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; }
5903
{ $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; }
5910
# Check whether --enable-l16-codec was given.
5911
if test "${enable_l16_codec+set}" = set; then :
5912
enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
5914
$as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h
5916
{ $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; }
5920
{ $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; }
5927
# Check whether --enable-gsm-codec was given.
5928
if test "${enable_gsm_codec+set}" = set; then :
5929
enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
5931
$as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h
5933
{ $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; }
5937
{ $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; }
5943
# Check whether --enable-g722-codec was given.
5944
if test "${enable_g722_codec+set}" = set; then :
5945
enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
5947
$as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h
5949
{ $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; }
5953
{ $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; }
5959
# Check whether --enable-g7221-codec was given.
5960
if test "${enable_g7221_codec+set}" = set; then :
5961
enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
5963
$as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h
5965
{ $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; }
5969
{ $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; }
5975
# Check whether --enable-speex-codec was given.
5976
if test "${enable_speex_codec+set}" = set; then :
5977
enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
5979
$as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h
5981
{ $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; }
5985
{ $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; }
5991
# Check whether --enable-ilbc-codec was given.
5992
if test "${enable_ilbc_codec+set}" = set; then :
5993
enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
5995
$as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h
5997
{ $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; }
6001
{ $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; }
6006
# Check whether --enable-libsamplerate was given.
6007
if 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; }
6010
if ${ac_cv_lib_samplerate_src_new+:} false; then :
6011
$as_echo_n "(cached) " >&6
6013
ac_check_lib_save_LIBS=$LIBS
6014
LIBS="-lsamplerate $LIBS"
6015
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016
/* end confdefs.h. */
6018
/* 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. */
6033
if ac_fn_c_try_link "$LINENO"; then :
6034
ac_cv_lib_samplerate_src_new=yes
6036
ac_cv_lib_samplerate_src_new=no
6038
rm -f core conftest.err conftest.$ac_objext \
6039
conftest$ac_exeext conftest.$ac_ext
6040
LIBS=$ac_check_lib_save_LIBS
6042
{ $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; }
6044
if test "x$ac_cv_lib_samplerate_src_new" = xyes; then :
6045
cat >>confdefs.h <<_ACEOF
6046
#define HAVE_LIBSAMPLERATE 1
6049
LIBS="-lsamplerate $LIBS"
6054
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5
6055
$as_echo "Skipping libsamplerate detection" >&6; }
6061
# Check whether --enable-resample_dll was given.
6062
if test "${enable_resample_dll+set}" = set; then :
6063
enableval=$enable_resample_dll; if test "$enable_resample_dll" = "yes"; then
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; }
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; }
6076
# Check whether --with-sdl was given.
6077
if test "${with_sdl+set}" = set; then :
6085
if test "x$ac_cross_compile" != "x" -a "x$with_sdl" = "xno"; then
6089
# Check whether --enable-sdl was given.
6090
if test "${enable_sdl+set}" = set; then :
6091
enableval=$enable_sdl;
6092
if test "$enable_sdl" = "no"; then
6093
{ $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; }
6099
if test "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then
6100
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SDL prefix... $with_sdl" >&5
6101
$as_echo "Using SDL prefix... $with_sdl" >&6; }
6102
for ac_prog in sdl2-config sdl-config
6104
# Extract the first word of "$ac_prog", so it can be a program name with args.
6105
set 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; }
6108
if ${ac_cv_path_SDL_CONFIG+:} false; then :
6109
$as_echo_n "(cached) " >&6
6113
ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6116
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117
for as_dir in $with_sdl/bin
6120
test -z "$as_dir" && as_dir=.
6121
for ac_exec_ext in '' $ac_executable_extensions; do
6122
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6123
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
6134
SDL_CONFIG=$ac_cv_path_SDL_CONFIG
6135
if test -n "$SDL_CONFIG"; then
6136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
6137
$as_echo "$SDL_CONFIG" >&6; }
6139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140
$as_echo "no" >&6; }
6144
test -n "$SDL_CONFIG" && break
6148
for ac_prog in sdl2-config sdl-config
6150
# Extract the first word of "$ac_prog", so it can be a program name with args.
6151
set 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; }
6154
if ${ac_cv_path_SDL_CONFIG+:} false; then :
6155
$as_echo_n "(cached) " >&6
6159
ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6162
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166
test -z "$as_dir" && as_dir=.
6167
for ac_exec_ext in '' $ac_executable_extensions; do
6168
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6169
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
6180
SDL_CONFIG=$ac_cv_path_SDL_CONFIG
6181
if test -n "$SDL_CONFIG"; then
6182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
6183
$as_echo "$SDL_CONFIG" >&6; }
6185
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186
$as_echo "no" >&6; }
6190
test -n "$SDL_CONFIG" && break
6195
{ $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
6203
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"
6208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported SDL version" >&5
6209
$as_echo "Unsupported SDL version" >&6; }
6217
# Check whether --with-ffmpeg was given.
6218
if test "${with_ffmpeg+set}" = set; then :
6219
withval=$with_ffmpeg;
6226
if test "x$ac_cross_compile" != "x" -a "x$with_ffmpeg" = "xno"; then
6230
# Check whether --enable-ffmpeg was given.
6231
if test "${enable_ffmpeg+set}" = set; then :
6232
enableval=$enable_ffmpeg;
6235
if test "$enable_ffmpeg" = "no"; then
6236
{ $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; }
6247
SAVED_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
6248
if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then
6249
FFMPEG_PREFIX=$with_ffmpeg
6250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5
6251
$as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; }
6252
export PKG_CONFIG_PATH=$FFMPEG_PREFIX/lib/pkgconfig
6255
for ac_prog in pkg-config "python pkgconfig.py"
6257
# Extract the first word of "$ac_prog", so it can be a program name with args.
6258
set 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; }
6261
if ${ac_cv_prog_PKG_CONFIG+:} false; then :
6262
$as_echo_n "(cached) " >&6
6264
if test -n "$PKG_CONFIG"; then
6265
ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6267
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271
test -z "$as_dir" && as_dir=.
6272
for ac_exec_ext in '' $ac_executable_extensions; do
6273
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6274
ac_cv_prog_PKG_CONFIG="$ac_prog"
6275
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6284
PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6285
if test -n "$PKG_CONFIG"; then
6286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6287
$as_echo "$PKG_CONFIG" >&6; }
6289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290
$as_echo "no" >&6; }
6294
test -n "$PKG_CONFIG" && break
6296
test -n "$PKG_CONFIG" || PKG_CONFIG="none"
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; }
6303
if $PKG_CONFIG --exists libdevice; then
6304
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
6305
av_pkg="$av_pkg libdevice"
6307
if $PKG_CONFIG --exists libavformat; then
6308
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
6309
av_pkg="$av_pkg libavformat"
6311
if $PKG_CONFIG --exists libavcodec; then
6312
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
6313
av_pkg="$av_pkg libavcodec"
6315
if $PKG_CONFIG --exists libswscale; then
6316
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
6317
av_pkg="$av_pkg libswscale"
6319
if $PKG_CONFIG --exists libavutil; then
6320
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
6321
av_pkg="$av_pkg libavutil"
6323
if $PKG_CONFIG --exists libavcore; then
6324
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
6325
av_pkg="$av_pkg libavcore"
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; }
6332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $av_pkg" >&5
6333
$as_echo "$av_pkg" >&6; }
6336
ac_ffmpeg_cflags="$ac_ffmpeg_cflags `$PKG_CONFIG --cflags $av_pkg`"
6337
ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags `$PKG_CONFIG --libs $av_pkg`"
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; }
6344
LIBS="-L$FFMPEG_PREFIX/lib $LIBS"
6345
LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS"
6346
CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS"
6348
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&5
6349
$as_echo_n "checking for avdevice_version in -lavdevice... " >&6; }
6350
if ${ac_cv_lib_avdevice_avdevice_version+:} false; then :
6351
$as_echo_n "(cached) " >&6
6353
ac_check_lib_save_LIBS=$LIBS
6354
LIBS="-lavdevice $LIBS"
6355
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356
/* end confdefs.h. */
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. */
6364
char avdevice_version ();
6368
return avdevice_version ();
6373
if ac_fn_c_try_link "$LINENO"; then :
6374
ac_cv_lib_avdevice_avdevice_version=yes
6376
ac_cv_lib_avdevice_avdevice_version=no
6378
rm -f core conftest.err conftest.$ac_objext \
6379
conftest$ac_exeext conftest.$ac_ext
6380
LIBS=$ac_check_lib_save_LIBS
6382
{ $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; }
6384
if test "x$ac_cv_lib_avdevice_avdevice_version" = xyes; then :
6385
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
6386
ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice"
6391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_malloc in -lavutil" >&5
6392
$as_echo_n "checking for av_malloc in -lavutil... " >&6; }
6393
if ${ac_cv_lib_avutil_av_malloc+:} false; then :
6394
$as_echo_n "(cached) " >&6
6396
ac_check_lib_save_LIBS=$LIBS
6397
LIBS="-lavutil $LIBS"
6398
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399
/* end confdefs.h. */
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. */
6411
return av_malloc ();
6416
if ac_fn_c_try_link "$LINENO"; then :
6417
ac_cv_lib_avutil_av_malloc=yes
6419
ac_cv_lib_avutil_av_malloc=no
6421
rm -f core conftest.err conftest.$ac_objext \
6422
conftest$ac_exeext conftest.$ac_ext
6423
LIBS=$ac_check_lib_save_LIBS
6425
{ $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; }
6427
if test "x$ac_cv_lib_avutil_av_malloc" = xyes; then :
6428
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
6429
ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil"
6434
{ $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; }
6436
if ${ac_cv_lib_avcodec_avcodec_init+:} false; then :
6437
$as_echo_n "(cached) " >&6
6439
ac_check_lib_save_LIBS=$LIBS
6440
LIBS="-lavcodec -lavutil
6442
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443
/* end confdefs.h. */
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. */
6451
char avcodec_init ();
6455
return avcodec_init ();
6460
if ac_fn_c_try_link "$LINENO"; then :
6461
ac_cv_lib_avcodec_avcodec_init=yes
6463
ac_cv_lib_avcodec_avcodec_init=no
6465
rm -f core conftest.err conftest.$ac_objext \
6466
conftest$ac_exeext conftest.$ac_ext
6467
LIBS=$ac_check_lib_save_LIBS
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; }
6471
if test "x$ac_cv_lib_avcodec_avcodec_init" = xyes; then :
6472
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
6473
ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec"
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; }
6479
if ${ac_cv_lib_avformat_av_register_all+:} false; then :
6480
$as_echo_n "(cached) " >&6
6482
ac_check_lib_save_LIBS=$LIBS
6483
LIBS="-lavformat -lavcodec -lavutil
6485
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6486
/* end confdefs.h. */
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. */
6494
char av_register_all ();
6498
return av_register_all ();
6503
if ac_fn_c_try_link "$LINENO"; then :
6504
ac_cv_lib_avformat_av_register_all=yes
6506
ac_cv_lib_avformat_av_register_all=no
6508
rm -f core conftest.err conftest.$ac_objext \
6509
conftest$ac_exeext conftest.$ac_ext
6510
LIBS=$ac_check_lib_save_LIBS
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; }
6514
if test "x$ac_cv_lib_avformat_av_register_all" = xyes; then :
6515
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
6516
ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat"
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; }
6522
if ${ac_cv_lib_swscale_sws_scale+:} false; then :
6523
$as_echo_n "(cached) " >&6
6525
ac_check_lib_save_LIBS=$LIBS
6526
LIBS="-lswscale -lavutil
6528
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529
/* end confdefs.h. */
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. */
6541
return sws_scale ();
6546
if ac_fn_c_try_link "$LINENO"; then :
6547
ac_cv_lib_swscale_sws_scale=yes
6549
ac_cv_lib_swscale_sws_scale=no
6551
rm -f core conftest.err conftest.$ac_objext \
6552
conftest$ac_exeext conftest.$ac_ext
6553
LIBS=$ac_check_lib_save_LIBS
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; }
6557
if test "x$ac_cv_lib_swscale_sws_scale" = xyes; then :
6558
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
6559
ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale"
6563
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcore_version in -lavcore" >&5
6564
$as_echo_n "checking for avcore_version in -lavcore... " >&6; }
6565
if ${ac_cv_lib_avcore_avcore_version+:} false; then :
6566
$as_echo_n "(cached) " >&6
6568
ac_check_lib_save_LIBS=$LIBS
6569
LIBS="-lavcore $LIBS"
6570
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571
/* end confdefs.h. */
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. */
6579
char avcore_version ();
6583
return avcore_version ();
6588
if ac_fn_c_try_link "$LINENO"; then :
6589
ac_cv_lib_avcore_avcore_version=yes
6591
ac_cv_lib_avcore_avcore_version=no
6593
rm -f core conftest.err conftest.$ac_objext \
6594
conftest$ac_exeext conftest.$ac_ext
6595
LIBS=$ac_check_lib_save_LIBS
6597
{ $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; }
6599
if test "x$ac_cv_lib_avcore_avcore_version" = xyes; then :
6600
ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
6601
ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore"
6609
LIBS="$LIBS $ac_ffmpeg_ldflags"
6610
export PKG_CONFIG_PATH=$SAVED_PKG_CONFIG_PATH
6616
# Check whether --enable-v4l2 was given.
6617
if test "${enable_v4l2+set}" = set; then :
6618
enableval=$enable_v4l2;
6619
if test "$enable_v4l2" = "no"; then
6620
{ $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; }
6628
{ $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; }
6630
if ${ac_cv_lib_v4l2_v4l2_open+:} false; then :
6631
$as_echo_n "(cached) " >&6
6633
ac_check_lib_save_LIBS=$LIBS
6635
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636
/* end confdefs.h. */
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. */
6648
return v4l2_open ();
6653
if ac_fn_c_try_link "$LINENO"; then :
6654
ac_cv_lib_v4l2_v4l2_open=yes
6656
ac_cv_lib_v4l2_v4l2_open=no
6658
rm -f core conftest.err conftest.$ac_objext \
6659
conftest$ac_exeext conftest.$ac_ext
6660
LIBS=$ac_check_lib_save_LIBS
6662
{ $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; }
6664
if test "x$ac_cv_lib_v4l2_v4l2_open" = xyes; then :
6665
ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1"
6666
ac_v4l2_ldflags="-lv4l2"
6676
# Check whether --enable-ipp was given.
6677
if test "${enable_ipp+set}" = set; then :
6678
enableval=$enable_ipp;
6686
# Check whether --with-ipp was given.
6687
if test "${with_ipp+set}" = set; then :
6696
# Check whether --with-ipp-samples was given.
6697
if test "${with_ipp_samples+set}" = set; then :
6698
withval=$with_ipp_samples;
6706
# Check whether --with-ipp-arch was given.
6707
if test "${with_ipp_arch+set}" = set; then :
6708
withval=$with_ipp_arch;
6715
if test "x$enable_ipp" != "xno"; then
6716
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5
6717
$as_echo_n "checking Intel IPP location... " >&6; }
6719
if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
6720
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5
6721
$as_echo "$with_ipp" >&6; }
6723
elif test "x$IPPROOT" = "x"; then
6724
if test -d /opt/intel/ipp; then
6725
IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
6726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5
6727
$as_echo "autodetected in $IPPROOT" >&6; }
6730
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5
6731
$as_echo "$IPPROOT" >&6; }
6734
if test "x$with_ipp_arch" != "xno"; then
6735
IPP_SUFFIX=$with_ipp_arch
6736
{ $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; }
6740
{ $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; }
6744
if test x$IPPROOT = x; then
6745
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
6746
elif test ! -d $IPPROOT; then
6747
as_fn_error $? "not found" "$LINENO" 5
6748
elif test ! -d $IPPROOT/include; then
6749
as_fn_error $? "directory doesn't seem to be valid" "$LINENO" 5
6751
# IPP directory looks okay.
6752
# Remove trailing backslash
6753
IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
6755
SAVED_CFLAGS="$CFLAGS"
6756
SAVED_LDFLAGS="$LDFLAGS"
6759
IPP_CFLAGS="-I$IPPROOT/include"
6760
IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
6763
# Some differences between Mac OS X and Linux
6766
IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
6769
# Find out where the libraries live.
6771
if test -d $IPPROOT/lib/intel64; then
6773
elif test -d $IPPROOT/lib/ia32; then
6775
elif test -d $IPPROOT/lib/mic; then
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"
6785
if ! test -d $IPPROOT/../compiler; then
6786
as_fn_error $? "Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" "$LINENO" 5
6788
IPP_CFLAGS="$IPP_CFLAGS"
6789
IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH"
6790
IPP_LIBS="$IPP_LIBS -liomp5"
6795
#IPP_LDFLAGS="-L$IPPROOT/sharedlib"
6797
#IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
6799
CFLAGS="$CFLAGS $IPP_CFLAGS"
6800
LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6801
LIBS="$IPP_LIBS $LIBS"
6804
{ $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
6807
/* end confdefs.h. */
6808
#include <ippcore.h>
6818
if ac_fn_c_try_link "$LINENO"; then :
6819
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6820
$as_echo "ok" >&6; }
6822
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6823
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6824
as_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
6825
See \`config.log' for more details" "$LINENO" 5; }
6827
rm -f core conftest.err conftest.$ac_objext \
6828
conftest$ac_exeext conftest.$ac_ext
6830
CFLAGS="$SAVED_CFLAGS"
6831
LDFLAGS="$SAVED_LDFLAGS"
6835
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5
6836
$as_echo_n "checking Intel IPP samples location... " >&6; }
6838
if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
6839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5
6840
$as_echo "$with_ipp_samples" >&6; }
6841
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
6845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5
6846
$as_echo "autodetected in $IPPSAMPLES" >&6; }
6849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5
6850
$as_echo "$IPPSAMPLES" >&6; }
6853
if test x$IPPSAMPLES = x; then
6854
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
6855
elif test ! -d $IPPSAMPLES; then
6856
as_fn_error $? "not found" "$LINENO" 5
6857
elif test ! -d $IPPSAMPLES/speech-codecs; then
6858
as_fn_error $? "directory doesn't seem to be valid" "$LINENO" 5
6860
# Remove trailing backslash
6861
IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
6863
# Guess the libusc.a/libspeech.a build location
6864
{ $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; }
6866
if test -d $IPPSAMPLES/speech-codecs/bin; then
6868
IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
6869
elif test -d $IPPSAMPLES/speech-codecs/_bin; then
6871
if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
6873
IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
6874
elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
6876
IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
6878
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6879
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6880
as_fn_error $? "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
6881
See \`config.log' for more details" "$LINENO" 5; }
6884
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6885
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6886
as_fn_error $? "unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?
6887
See \`config.log' for more details" "$LINENO" 5; }
6890
# Test the directory
6891
if test ! -d $IPPSAMP_DIR; then
6892
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6893
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6894
as_fn_error $? "There's something wrong with this script, directory $IPPSAMP_DIR does not exist
6895
See \`config.log' for more details" "$LINENO" 5; }
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"
6906
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6907
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6908
as_fn_error $? "bug in this script: unsupported IPP version
6909
See \`config.log' for more details" "$LINENO" 5; }
6912
if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
6913
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6914
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6915
as_fn_error $? "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
6916
See \`config.log' for more details" "$LINENO" 5; }
6919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5
6920
$as_echo "$IPPSAMP_DIR" >&6; }
6922
SAVED_CFLAGS="$CFLAGS"
6923
SAVED_LDFLAGS="$LDFLAGS"
6926
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"
6931
{ $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
6934
/* end confdefs.h. */
6940
extern USC_Fxns USC_G729AFP_Fxns;
6945
if ac_fn_c_try_link "$LINENO"; then :
6946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6947
$as_echo "ok" >&6; }
6949
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6950
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6951
as_fn_error $? "failed
6952
See \`config.log' for more details" "$LINENO" 5; }
6954
rm -f core conftest.err conftest.$ac_objext \
6955
conftest$ac_exeext conftest.$ac_ext
6957
CFLAGS="$SAVED_CFLAGS"
6958
LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
6959
LIBS="$IPP_LIBS $SAVED_LIBS"
6961
IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
6962
IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
6963
IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
6966
CFLAGS="$CFLAGS $IPP_CFLAGS"
6967
LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6968
LIBS="$LIBS $IPP_LIBS"
6970
ac_build_mak_vars="$ac_build_mak_vars\n\
6971
export IPP_CFLAGS=$IPP_CFLAGS\n\
6972
export IPP_LDFLAGS=$IPP_LDFLAGS\n\
6973
export IPP_LIBS=$IPP_LIBS"
6975
{ $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; }
6982
# Check whether --with-ssl was given.
6983
if test "${with_ssl+set}" = set; then :
6991
if test "x$ac_cross_compile" != "x" -a "x$with_ssl" = "xno"; then
6996
# Check whether --enable-ssl was given.
6997
if test "${enable_ssl+set}" = set; then :
6998
enableval=$enable_ssl;
6999
if test "$enable_ssl" = "no"; then
7001
{ $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; }
7007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5
7008
$as_echo "checking for OpenSSL installations.." >&6; }
7009
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; }
7018
ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
7019
if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
7024
{ $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; }
7026
if ${ac_cv_lib_crypto_ERR_load_BIO_strings+:} false; then :
7027
$as_echo_n "(cached) " >&6
7029
ac_check_lib_save_LIBS=$LIBS
7030
LIBS="-lcrypto $LIBS"
7031
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032
/* end confdefs.h. */
7034
/* 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. */
7040
char ERR_load_BIO_strings ();
7044
return ERR_load_BIO_strings ();
7049
if ac_fn_c_try_link "$LINENO"; then :
7050
ac_cv_lib_crypto_ERR_load_BIO_strings=yes
7052
ac_cv_lib_crypto_ERR_load_BIO_strings=no
7054
rm -f core conftest.err conftest.$ac_objext \
7055
conftest$ac_exeext conftest.$ac_ext
7056
LIBS=$ac_check_lib_save_LIBS
7058
{ $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; }
7060
if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = xyes; then :
7061
libcrypto_present=1 && LIBS="$LIBS -lcrypto"
7064
{ $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; }
7066
if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
7067
$as_echo_n "(cached) " >&6
7069
ac_check_lib_save_LIBS=$LIBS
7071
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072
/* end confdefs.h. */
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. */
7080
char SSL_library_init ();
7084
return SSL_library_init ();
7089
if ac_fn_c_try_link "$LINENO"; then :
7090
ac_cv_lib_ssl_SSL_library_init=yes
7092
ac_cv_lib_ssl_SSL_library_init=no
7094
rm -f core conftest.err conftest.$ac_objext \
7095
conftest$ac_exeext conftest.$ac_ext
7096
LIBS=$ac_check_lib_save_LIBS
7098
{ $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; }
7100
if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
7101
libssl_present=1 && LIBS="$LIBS -lssl"
7104
if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
7105
{ $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; }
7107
# PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
7108
#AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
7109
$as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
7112
{ $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; }
7120
# Check whether --with-opencore-amrnb was given.
7121
if test "${with_opencore_amrnb+set}" = set; then :
7122
withval=$with_opencore_amrnb; as_fn_error $? "This option is obsolete and replaced by --with-opencore-amr=DIR" "$LINENO" 5
7127
# Check whether --with-opencore-amr was given.
7128
if test "${with_opencore_amr+set}" = set; then :
7129
withval=$with_opencore_amr;
7131
with_opencore_amr=no
7136
if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amr" = "xno"; then
7137
enable_opencore_amr=no
7141
# Check whether --with-opencore-amrwbenc was given.
7142
if test "${with_opencore_amrwbenc+set}" = set; then :
7143
withval=$with_opencore_amrwbenc;
7145
with_opencore_amrwbenc=no
7150
if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amrwbenc" = "xno"; then
7151
enable_opencore_amrwbenc=no
7157
# Check whether --enable-opencore_amr was given.
7158
if test "${enable_opencore_amr+set}" = set; then :
7159
enableval=$enable_opencore_amr;
7160
if test "$enable_opencore_amr" = "no"; then
7161
ac_no_opencore_amrnb=1
7162
ac_no_opencore_amrwb=1
7163
$as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
7165
$as_echo "#define PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 0" >>confdefs.h
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; }
7173
{ $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; }
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; }
7189
ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrnb/interf_enc.h" "ac_cv_header_opencore_amrnb_interf_enc_h" "$ac_includes_default"
7190
if test "x$ac_cv_header_opencore_amrnb_interf_enc_h" = xyes; then :
7191
opencore_amrnb_h_present=1
7195
{ $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; }
7197
if ${ac_cv_lib_opencore_amrnb_Encoder_Interface_init+:} false; then :
7198
$as_echo_n "(cached) " >&6
7200
ac_check_lib_save_LIBS=$LIBS
7201
LIBS="-lopencore-amrnb $LIBS"
7202
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203
/* end confdefs.h. */
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. */
7211
char Encoder_Interface_init ();
7215
return Encoder_Interface_init ();
7220
if ac_fn_c_try_link "$LINENO"; then :
7221
ac_cv_lib_opencore_amrnb_Encoder_Interface_init=yes
7223
ac_cv_lib_opencore_amrnb_Encoder_Interface_init=no
7225
rm -f core conftest.err conftest.$ac_objext \
7226
conftest$ac_exeext conftest.$ac_ext
7227
LIBS=$ac_check_lib_save_LIBS
7229
{ $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; }
7231
if test "x$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" = xyes; then :
7232
opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb"
7235
if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then
7236
{ $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
7241
ac_no_opencore_amrnb=1
7242
$as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
7249
ac_fn_c_check_header_mongrel "$LINENO" "vo-amrwbenc/enc_if.h" "ac_cv_header_vo_amrwbenc_enc_if_h" "$ac_includes_default"
7250
if test "x$ac_cv_header_vo_amrwbenc_enc_if_h" = xyes; then :
7251
opencore_amrwb_enc_h_present=1
7255
ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrwb/dec_if.h" "ac_cv_header_opencore_amrwb_dec_if_h" "$ac_includes_default"
7256
if test "x$ac_cv_header_opencore_amrwb_dec_if_h" = xyes; then :
7257
opencore_amrwb_dec_h_present=1
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; }
7263
if ${ac_cv_lib_opencore_amrwb_D_IF_init+:} false; then :
7264
$as_echo_n "(cached) " >&6
7266
ac_check_lib_save_LIBS=$LIBS
7267
LIBS="-lopencore-amrwb $LIBS"
7268
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269
/* end confdefs.h. */
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. */
7281
return D_IF_init ();
7286
if ac_fn_c_try_link "$LINENO"; then :
7287
ac_cv_lib_opencore_amrwb_D_IF_init=yes
7289
ac_cv_lib_opencore_amrwb_D_IF_init=no
7291
rm -f core conftest.err conftest.$ac_objext \
7292
conftest$ac_exeext conftest.$ac_ext
7293
LIBS=$ac_check_lib_save_LIBS
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; }
7297
if test "x$ac_cv_lib_opencore_amrwb_D_IF_init" = xyes; then :
7298
opencore_amrwb_dec_present=1 && LIBS="$LIBS -lopencore-amrwb"
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; }
7303
if ${ac_cv_lib_vo_amrwbenc_E_IF_init+:} false; then :
7304
$as_echo_n "(cached) " >&6
7306
ac_check_lib_save_LIBS=$LIBS
7307
LIBS="-lvo-amrwbenc $LIBS"
7308
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309
/* end confdefs.h. */
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. */
7321
return E_IF_init ();
7326
if ac_fn_c_try_link "$LINENO"; then :
7327
ac_cv_lib_vo_amrwbenc_E_IF_init=yes
7329
ac_cv_lib_vo_amrwbenc_E_IF_init=no
7331
rm -f core conftest.err conftest.$ac_objext \
7332
conftest$ac_exeext conftest.$ac_ext
7333
LIBS=$ac_check_lib_save_LIBS
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; }
7337
if test "x$ac_cv_lib_vo_amrwbenc_E_IF_init" = xyes; then :
7338
opencore_amrwb_enc_present=1 && LIBS="$LIBS -lvo-amrwbenc"
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
7347
ac_no_opencore_amrwb=1
7348
$as_echo "#define PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 0" >>confdefs.h
7357
# Check whether --with-silk was given.
7358
if test "${with_silk+set}" = set; then :
7366
if test "x$ac_cross_compile" != "x" -a "x$with_silk" = "xno"; then
7371
# Check whether --enable-silk was given.
7372
if test "${enable_silk+set}" = set; then :
7373
enableval=$enable_silk;
7374
if test "$enable_silk" = "no"; then
7376
$as_echo "#define PJMEDIA_HAS_SILK_CODEC 0" >>confdefs.h
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; }
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"
7388
CPPFLAGS="$CPPFLAGS -I$with_silk/interface"
7389
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; }
7395
ac_fn_c_check_header_mongrel "$LINENO" "SKP_Silk_SDK_API.h" "ac_cv_header_SKP_Silk_SDK_API_h" "$ac_includes_default"
7396
if test "x$ac_cv_header_SKP_Silk_SDK_API_h" = xyes; then :
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; }
7403
if ${ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version+:} false; then :
7404
$as_echo_n "(cached) " >&6
7406
ac_check_lib_save_LIBS=$LIBS
7407
LIBS="-lSKP_SILK_SDK $LIBS"
7408
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409
/* end confdefs.h. */
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. */
7417
char SKP_Silk_SDK_get_version ();
7421
return SKP_Silk_SDK_get_version ();
7426
if ac_fn_c_try_link "$LINENO"; then :
7427
ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version=yes
7429
ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version=no
7431
rm -f core conftest.err conftest.$ac_objext \
7432
conftest$ac_exeext conftest.$ac_ext
7433
LIBS=$ac_check_lib_save_LIBS
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; }
7437
if test "x$ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" = xyes; then :
7438
silk_present=1 && LIBS="$LIBS -lSKP_SILK_SDK"
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
7448
$as_echo "#define PJMEDIA_HAS_SILK_CODEC 0" >>confdefs.h
7458
{ $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; }
7461
*rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h
7463
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7464
$as_echo "yes" >&6; }
7466
*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h
7468
{ $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; }
7475
{ $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; }
7478
*rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h
7480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7481
$as_echo "yes" >&6; }
7483
*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h
7485
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7486
$as_echo "no (default)" >&6; }
7490
{ $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; }
7493
*rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h
7495
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7496
$as_echo "yes" >&6; }
7498
*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h
7500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7501
$as_echo "no (default)" >&6; }
7506
*mingw* | *cygw* | *win32* | *w32* )
7507
$as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
7510
*) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h
7512
{ $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; }
7518
*mingw* | *cygw* | *win32* | *w32* )
7519
$as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
7522
*) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h
7524
{ $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; }
7531
ac_linux_poll=select
7538
ac_main_obj=main_rtems.o
7546
ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
7547
cat >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.
7554
# config.status only pays attention to the cache file if you give it
7555
# the --recheck option to rerun configure.
7557
# `ac_cv_env_foo' variables (set or unset) will be overridden when
7558
# loading this file, other *unset* `ac_cv_foo' will be assigned the
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.
7565
# So, we kill variables containing newlines.
7566
# 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.
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
7574
*_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;} ;;
7578
_ | IFS | as_nl) ;; #(
7579
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7580
*) { eval $ac_var=; unset $ac_var;} ;;
7586
case $as_nl`(ac_space=' '; set) 2>&1` in #(
7587
*${as_nl}ac_space=\ *)
7588
# `set' does not quote correctly, so add quotes: double-quote
7589
# substitution turns \\\\ into \\, and sed turns \\ into \.
7592
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7595
# `set' quotes correctly as required by POSIX, so do not add quotes.
7596
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7605
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7607
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7609
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7610
if test -w "$cache_file"; then
7611
if test "x$cache_file" != "x/dev/null"; then
7612
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7613
$as_echo "$as_me: updating cache $cache_file" >&6;}
7614
if test ! -f "$cache_file" || test -h "$cache_file"; then
7615
cat confcache >"$cache_file"
7617
case $cache_file in #(
7619
mv -f confcache "$cache_file"$$ &&
7620
mv -f "$cache_file"$$ "$cache_file" ;; #(
7622
mv -f confcache "$cache_file" ;;
7627
{ $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;}
7633
test "x$prefix" = xNONE && prefix=$ac_default_prefix
7634
# Let make expand exec_prefix.
7635
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7637
DEFS=-DHAVE_CONFIG_H
7642
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7643
# 1. Remove the extension, and $U if already installed.
7644
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7645
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7646
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7647
# will be set to the directory where LIBOBJS objects are built.
7648
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7649
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7653
LTLIBOBJS=$ac_ltlibobjs
7658
: "${CONFIG_STATUS=./config.status}"
7660
ac_clean_files_save=$ac_clean_files
7661
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7662
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7663
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7665
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7667
# Generated by $as_me.
7668
# 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.
7676
SHELL=\${CONFIG_SHELL-$SHELL}
7679
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7680
## -------------------- ##
7681
## M4sh Initialization. ##
7682
## -------------------- ##
7684
# Be more Bourne compatible
7685
DUALCASE=1; export DUALCASE # for MKS sh
7686
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7689
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7690
# is contrary to our usage. Disable this feature.
7691
alias -g '${1+"$@"}'='"$@"'
7692
setopt NO_GLOB_SUBST
7694
case `(set -o) 2>/dev/null` in #(
7706
# Printing a long string crashes Solaris 7 /usr/bin/printf.
7707
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7708
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7709
as_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.
7712
if 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 --'
7716
elif (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'
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'
7724
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7725
as_echo_n_body='eval
7729
expr "X$arg" : "X\\(.*\\)$as_nl";
7730
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7732
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7734
export as_echo_n_body
7735
as_echo_n='sh -c $as_echo_n_body as_echo'
7738
as_echo='sh -c $as_echo_body as_echo'
7741
# The user is always right.
7742
if test "${PATH_SEPARATOR+set}" != set; then
7744
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7745
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
7758
# Find who we are. Look in the path if we contain no directory separator.
7761
*[\\/]* ) as_myself=$0 ;;
7762
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766
test -z "$as_dir" && as_dir=.
7767
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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.
7775
if test "x$as_myself" = x; then
7778
if test ! -f "$as_myself"; then
7779
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7783
# 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.
7787
for as_var in BASH_ENV ENV MAIL MAILPATH
7788
do eval test x\${$as_var+set} = xset \
7789
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7802
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7805
# as_fn_error STATUS ERROR [LINENO LOG_FD]
7806
# ----------------------------------------
7807
# 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
7809
# script with STATUS, using 1 if that was 0.
7812
as_status=$1; test $as_status -eq 0 && as_status=1
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
7817
$as_echo "$as_me: error: $2" >&2
7818
as_fn_exit $as_status
7822
# as_fn_set_status STATUS
7823
# -----------------------
7824
# Set $? to STATUS, without forking.
7828
} # as_fn_set_status
7832
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7842
# Portably unset VAR.
7845
{ eval $1=; unset $1;}
7847
as_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
7854
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7855
eval 'as_fn_append ()
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.
7871
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7872
eval 'as_fn_arith ()
7879
as_val=`expr "$@" || test $? -eq 1`
7884
if expr a : '\(a\)' >/dev/null 2>&1 &&
7885
test "X`expr 00001 : '.*\(...\)'`" = X001; then
7891
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7892
as_basename=basename
7897
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7903
as_me=`$as_basename -- "$0" ||
7904
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7905
X"$0" : 'X\(//\)$' \| \
7906
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7908
sed '/^.*\/\([^/][^/]*\)\/*$/{
7922
# Avoid depending upon Character Ranges.
7923
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7924
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7925
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7926
as_cr_digits='0123456789'
7927
as_cr_alnum=$as_cr_Letters$as_cr_digits
7929
ECHO_C= ECHO_N= ECHO_T=
7930
case `echo -n x` in #(((((
7932
case `echo 'xy\c'` in
7933
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
7935
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7942
rm -f conf$$ conf$$.exe conf$$.file
7943
if test -d conf$$.dir; then
7944
rm -f conf$$.dir/conf$$.file
7947
mkdir conf$$.dir 2>/dev/null
7949
if (echo >conf$$.file) 2>/dev/null; then
7950
if ln -s conf$$.file conf$$ 2>/dev/null; then
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.
7955
# In both cases, we have to default to `cp -pR'.
7956
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7958
elif ln conf$$.file conf$$ 2>/dev/null; then
7966
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7967
rmdir conf$$.dir 2>/dev/null
7972
# Create "$as_dir" as a directory, including parents if necessary.
7977
-*) as_dir=./$as_dir;;
7979
test -d "$as_dir" || eval $as_mkdir_p || {
7983
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7984
*) as_qdir=$as_dir;;
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8010
test -d "$as_dir" && break
8012
test -z "$as_dirs" || eval "mkdir $as_dirs"
8013
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8017
if mkdir -p . 2>/dev/null; then
8018
as_mkdir_p='mkdir -p "$as_dir"'
8020
test -d ./-p && rmdir ./-p
8025
# as_fn_executable_p FILE
8026
# -----------------------
8027
# Test if FILE is an executable regular file.
8028
as_fn_executable_p ()
8030
test -f "$1" && test -x "$1"
8031
} # as_fn_executable_p
8033
as_executable_p=as_fn_executable_p
8035
# Sed expression to map a string onto a valid CPP name.
8036
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8038
# Sed expression to map a string onto a valid variable name.
8039
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8043
## ----------------------------------- ##
8044
## Main body of $CONFIG_STATUS script. ##
8045
## ----------------------------------- ##
8047
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8049
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8050
# Save the log message, to keep $0 and so on meaningful, and to
8051
# report actual input values of CONFIG_FILES etc. instead of their
8052
# values after options handling.
8054
This file was extended by pjproject $as_me 2.x, which was
8055
generated by GNU Autoconf 2.69. Invocation command line was
8057
CONFIG_FILES = $CONFIG_FILES
8058
CONFIG_HEADERS = $CONFIG_HEADERS
8059
CONFIG_LINKS = $CONFIG_LINKS
8060
CONFIG_COMMANDS = $CONFIG_COMMANDS
8063
on `(hostname || uname -n) 2>/dev/null | sed 1q`
8068
case $ac_config_files in *"
8069
"*) set x $ac_config_files; shift; ac_config_files=$*;;
8072
case $ac_config_headers in *"
8073
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8077
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8078
# Files that config.status was made for.
8079
config_files="$ac_config_files"
8080
config_headers="$ac_config_headers"
8084
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8086
\`$as_me' instantiates files and other configuration actions
8087
from templates according to the current configuration. Unless the files
8088
and actions are specified as TAGs, all are instantiated by default.
8090
Usage: $0 [OPTION]... [TAG]...
8092
-h, --help print this help, then exit
8093
-V, --version print version number and configuration settings, then exit
8094
--config print configuration, then exit
8095
-q, --quiet, --silent
8096
do not print progress messages
8097
-d, --debug don't remove temporary files
8098
--recheck update $as_me by reconfiguring in the same conditions
8099
--file=FILE[:TEMPLATE]
8100
instantiate the configuration file FILE
8101
--header=FILE[:TEMPLATE]
8102
instantiate the configuration header FILE
8104
Configuration files:
8107
Configuration headers:
8110
Report bugs to the package provider."
8113
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8114
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8116
pjproject config.status 2.x
8117
configured by $0, generated by GNU Autoconf 2.69,
8118
with options \\"\$ac_cs_config\\"
8120
Copyright (C) 2012 Free Software Foundation, Inc.
8121
This config.status script is free software; the Free Software Foundation
8122
gives unlimited permission to copy, distribute and modify it."
8126
test -n "\$AWK" || AWK=awk
8129
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8130
# The default lists apply if the user does not specify any file.
8136
ac_option=`expr "X$1" : 'X\([^=]*\)='`
8137
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8141
ac_option=`expr "X$1" : 'X\([^=]*\)='`
8153
# Handling of the options.
8154
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8156
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8157
$as_echo "$ac_cs_version"; exit ;;
8158
--config | --confi | --conf | --con | --co | --c )
8159
$as_echo "$ac_cs_config"; exit ;;
8160
--debug | --debu | --deb | --de | --d | -d )
8162
--file | --fil | --fi | --f )
8165
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8166
'') as_fn_error $? "missing file argument" ;;
8168
as_fn_append CONFIG_FILES " '$ac_optarg'"
8169
ac_need_defaults=false;;
8170
--header | --heade | --head | --hea )
8173
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8175
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8176
ac_need_defaults=false;;
8178
# Conflict between --help and --header
8179
as_fn_error $? "ambiguous option: \`$1'
8180
Try \`$0 --help' for more information.";;
8181
--help | --hel | -h )
8182
$as_echo "$ac_cs_usage"; exit ;;
8183
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
8184
| -silent | --silent | --silen | --sile | --sil | --si | --s)
8188
-*) as_fn_error $? "unrecognized option: \`$1'
8189
Try \`$0 --help' for more information." ;;
8191
*) as_fn_append ac_config_targets " $1"
8192
ac_need_defaults=false ;;
8198
ac_configure_extra_args=
8200
if $ac_cs_silent; then
8202
ac_configure_extra_args="$ac_configure_extra_args --silent"
8206
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8207
if \$ac_cs_recheck; then
8208
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8210
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8211
CONFIG_SHELL='$SHELL'
8217
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8221
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8222
## Running $as_me. ##
8228
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8231
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8233
# Handling of arguments.
8234
for ac_config_target in $ac_config_targets
8236
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" ;;
8244
"build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
8245
"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" ;;
8249
"third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
8250
"third_party/build/portaudio/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;;
8252
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8257
# 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.
8261
if $ac_need_defaults; then
8262
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8263
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8266
# Have a temporary directory for convenience. Make it in the build tree
8267
# simply because there is no reason against having it here, and in addition,
8268
# creating and moving files from /tmp can sometimes cause problems.
8269
# 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'.
8275
trap 'exit_status=$?
8277
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8279
trap 'as_fn_exit 1' 1 2 13 15
8281
# Create a (secure) tmp directory for tmp files.
8284
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8288
tmp=./conf$$-$RANDOM
8289
(umask 077 && mkdir "$tmp")
8290
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8293
# 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'.
8296
if test -n "$CONFIG_FILES"; then
8299
ac_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.
8303
if test "x$ac_cr" = x; then
8304
eval ac_cr=\$\'\\r\'
8306
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8307
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8313
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8318
echo "cat >conf$$subs.awk <<_ACEOF" &&
8319
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8322
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8323
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8325
for ac_last_try in false false false false false :; do
8326
. ./conf$$subs.sh ||
8327
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8329
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
8332
elif $ac_last_try; then
8333
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8335
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8340
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8341
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8345
s/^/S["/; s/!.*/"]=/
8355
s/\(.\{148\}\)..*/\1/
8357
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8362
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8369
s/\(.\{148\}\)..*/\1/
8371
s/["\\]/\\&/g; s/^/"/; s/$/"/
8375
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8380
' <conf$$subs.awk | sed '
8385
' >>$CONFIG_STATUS || ac_write_fail=1
8386
rm -f conf$$subs.awk
8387
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8389
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8390
for (key in S) S_is_set[key] = 1
8396
nfields = split(line, field, "@")
8398
len = length(field[1])
8399
for (i = 2; i < nfields; i++) {
8401
keylen = length(key)
8402
if (S_is_set[key]) {
8404
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8405
len += length(value) + length(field[++i])
8416
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8417
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8418
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8421
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8422
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8425
# 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
8427
# trailing colons and then remove the whole line if VPATH becomes empty
8428
# (actually we leave an empty line to preserve line numbers).
8429
if test "x$srcdir" = x.; then
8430
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8448
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8449
fi # test -n "$CONFIG_FILES"
8451
# 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'.
8454
if test -n "$CONFIG_HEADERS"; then
8455
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8459
# 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.
8463
# Create a delimiter string that does not exist in confdefs.h, to ease
8464
# handling of long lines.
8466
for ac_last_try in false false :; do
8467
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8468
if test -z "$ac_tt"; then
8470
elif $ac_last_try; then
8471
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8473
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
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.
8481
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8483
s/.\{148\}/&'"$ac_delim"'/g
8486
s/^[ ]*#[ ]*define[ ][ ]*/ /
8493
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8495
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8499
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8500
D["\1"]=" \3\\\\\\n"\\/p
8502
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8507
s/.\{148\}/&'"$ac_delim"'/g
8512
s/["\\]/\\&/g; s/^/"/; s/$/"/p
8515
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8517
' <confdefs.h | sed '
8518
s/'"$ac_delim"'/"\\\
8519
"/g' >>$CONFIG_STATUS || ac_write_fail=1
8521
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8522
for (key in D) D_is_set[key] = 1
8525
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8527
split(line, arg, " ")
8528
if (arg[1] == "#") {
8532
defundef = substr(arg[1], 2)
8535
split(mac1, mac2, "(") #)
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]
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, "*/"
8555
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8556
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8557
fi # test -n "$CONFIG_HEADERS"
8560
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8565
:[FHLC]) ac_mode=$ac_tag; continue;;
8567
case $ac_mode$ac_tag in
8569
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8570
:[FH]-) ac_tag=-:-;;
8571
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8588
-) ac_f="$ac_tmp/stdin";;
8589
*) # 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 `:'.
8595
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8597
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8599
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8600
as_fn_append ac_file_inputs " '$ac_f'"
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. */
8606
configure_input='Generated from '`
8607
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8609
if test x"$ac_file" != x-; then
8610
configure_input="$ac_file. $configure_input"
8611
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8612
$as_echo "$as_me: creating $ac_file" >&6;}
8614
# 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;;
8623
*:-:* | *:-) cat >"$ac_tmp/stdin" \
8624
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8629
ac_dir=`$as_dirname -- "$ac_file" ||
8630
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8631
X"$ac_file" : 'X\(//\)[^/]' \| \
8632
X"$ac_file" : 'X\(//\)$' \| \
8633
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8634
$as_echo X"$ac_file" |
8635
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8652
as_dir="$ac_dir"; as_fn_mkdir_p
8656
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8658
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8659
# A ".." for each directory in $ac_dir_suffix.
8660
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8661
case $ac_top_builddir_sub in
8662
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8663
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8666
ac_abs_top_builddir=$ac_pwd
8667
ac_abs_builddir=$ac_pwd$ac_dir_suffix
8668
# for backward compatibility:
8669
ac_top_builddir=$ac_top_build_prefix
8672
.) # We are building in place.
8674
ac_top_srcdir=$ac_top_builddir_sub
8675
ac_abs_top_srcdir=$ac_pwd ;;
8676
[\\/]* | ?:[\\/]* ) # Absolute name.
8677
ac_srcdir=$srcdir$ac_dir_suffix;
8678
ac_top_srcdir=$srcdir
8679
ac_abs_top_srcdir=$srcdir ;;
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 ;;
8685
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8696
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8697
# If the template does not know about datarootdir, expand it.
8698
# FIXME: This hack should be removed a few years after 2.60.
8699
ac_datarootdir_hack=; ac_datarootdir_seen=
8710
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8711
*datarootdir*) ac_datarootdir_seen=yes;;
8712
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8713
{ $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;}
8716
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8717
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
8723
s&\\\${datarootdir}&$datarootdir&g' ;;
8727
# Neutralize VPATH when `$srcdir' = `.'.
8728
# Shell code in configure.ac might set extrasub.
8729
# FIXME: do we really want to maintain this feature?
8730
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8731
ac_sed_extra="$ac_vpsub
8734
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8736
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8737
s|@configure_input@|$ac_sed_conf_input|;t t
8738
s&@top_builddir@&$ac_top_builddir_sub&;t t
8739
s&@top_build_prefix@&$ac_top_build_prefix&;t t
8740
s&@srcdir@&$ac_srcdir&;t t
8741
s&@abs_srcdir@&$ac_abs_srcdir&;t t
8742
s&@top_srcdir@&$ac_top_srcdir&;t t
8743
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8744
s&@builddir@&$ac_builddir&;t t
8745
s&@abs_builddir@&$ac_abs_builddir&;t t
8746
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8747
$ac_datarootdir_hack
8749
eval 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
8752
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8753
{ 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"; } &&
8756
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8757
which seems to be undefined. Please make sure it is defined" >&5
8758
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8759
which seems to be undefined. Please make sure it is defined" >&2;}
8761
rm -f "$ac_tmp/stdin"
8763
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8764
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8766
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
8772
if test x"$ac_file" != x-; then
8774
$as_echo "/* $configure_input */" \
8775
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8776
} >"$ac_tmp/config.h" \
8777
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
8778
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8779
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8780
$as_echo "$as_me: $ac_file is unchanged" >&6;}
8783
mv "$ac_tmp/config.h" "$ac_file" \
8784
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
8787
$as_echo "/* $configure_input */" \
8788
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8789
|| as_fn_error $? "could not create -" "$LINENO" 5
8801
ac_clean_files=$ac_clean_files_save
8803
test $ac_write_fail = 0 ||
8804
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8807
# 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.
8815
if test "$no_create" != yes; then
8817
ac_config_status_args=
8818
test "$silent" = yes &&
8819
ac_config_status_args="$ac_config_status_args --quiet"
8821
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8823
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
8824
# would make configure fail if this is the last instruction.
8825
$ac_cs_success || as_fn_exit 1
8827
if 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;}
8834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
8836
Configurations 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.
8838
Further customizations can be put in:
8840
- 'pjlib/include/pj/config_site.h'
8842
The next step now is to run 'make dep' and 'make'.
8846
Configurations 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.
8848
Further customizations can be put in:
8850
- 'pjlib/include/pj/config_site.h'
8852
The next step now is to run 'make dep' and 'make'.