blob: 57eb0bce057c6e0aed7de874248049d664324c13 [file] [log] [blame]
Tristan Matthews0a329cc2013-07-17 13:20:14 -04001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Alexandre Lision8af73cb2013-12-10 14:11:20 -05003# Generated by GNU Autoconf 2.68 for pjproject 2.x.
Tristan Matthews0a329cc2013-07-17 13:20:14 -04004#
5#
Alexandre Lision8af73cb2013-12-10 14:11:20 -05006# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
Tristan Matthews0a329cc2013-07-17 13:20:14 -04009#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
Tristan Matthews0a329cc2013-07-17 13:20:14 -0400137if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151esac
152fi
153"
154 as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168 exitcode=1; echo positional parameters were not saved.
169fi
Alexandre Lision8af73cb2013-12-10 14:11:20 -0500170test x\$exitcode = x0 || exit 1"
Tristan Matthews0a329cc2013-07-17 13:20:14 -0400171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185as_found=false
186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201fi
202fi
203 done;;
204 esac
205 as_found=false
206done
207$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210fi; }
211IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
Alexandre Lision8af73cb2013-12-10 14:11:20 -0500215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
Tristan Matthews0a329cc2013-07-17 13:20:14 -0400230fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240$0: including any error possibly output before this
241$0: message. Then install a modern shell, or manually run
242$0: the script under such a shell if you do have one."
243 fi
244 exit 1
245fi
246fi
247fi
248SHELL=${CONFIG_SHELL-/bin/sh}
249export SHELL
250# Unset more variables known to interfere with behavior of common tools.
251CLICOLOR_FORCE= GREP_OPTIONS=
252unset CLICOLOR_FORCE GREP_OPTIONS
253
254## --------------------- ##
255## M4sh Shell Functions. ##
256## --------------------- ##
257# as_fn_unset VAR
258# ---------------
259# Portably unset VAR.
260as_fn_unset ()
261{
262 { eval $1=; unset $1;}
263}
264as_unset=as_fn_unset
265
266# as_fn_set_status STATUS
267# -----------------------
268# Set $? to STATUS, without forking.
269as_fn_set_status ()
270{
271 return $1
272} # as_fn_set_status
273
274# as_fn_exit STATUS
275# -----------------
276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277as_fn_exit ()
278{
279 set +e
280 as_fn_set_status $1
281 exit $1
282} # as_fn_exit
283
284# as_fn_mkdir_p
285# -------------
286# Create "$as_dir" as a directory, including parents if necessary.
287as_fn_mkdir_p ()
288{
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306$as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330} # as_fn_mkdir_p
Tristan Matthews0a329cc2013-07-17 13:20:14 -0400331# as_fn_append VAR VALUE
332# ----------------------
333# Append the text in VALUE to the end of the definition contained in VAR. Take
334# advantage of any shell optimizations that allow amortized linear growth over
335# repeated appends, instead of the typical quadratic growth present in naive
336# implementations.
337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347fi # as_fn_append
348
349# as_fn_arith ARG...
350# ------------------
351# Perform arithmetic evaluation on the ARGs, and store the result in the
352# global $as_val. Take advantage of shells that can avoid forks. The arguments
353# must be portable across $(()) and expr.
354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364fi # as_fn_arith
365
366
367# as_fn_error STATUS ERROR [LINENO LOG_FD]
368# ----------------------------------------
369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371# script with STATUS, using 1 if that was 0.
372as_fn_error ()
373{
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378 fi
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381} # as_fn_error
382
383if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386else
387 as_expr=false
388fi
389
390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392else
393 as_basename=false
394fi
395
396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398else
399 as_dirname=false
400fi
401
402as_me=`$as_basename -- "$0" ||
403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406$as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421# Avoid depending upon Character Ranges.
422as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425as_cr_digits='0123456789'
426as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
Tristan Matthews0a329cc2013-07-17 13:20:14 -0400452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458}
459
460ECHO_C= ECHO_N= ECHO_T=
461case `echo -n x` in #(((((
462-n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469*)
470 ECHO_N='-n';;
471esac
472
473rm -f conf$$ conf$$.exe conf$$.file
474if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479fi
480if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Alexandre Lision8af73cb2013-12-10 14:11:20 -0500486 # In both cases, we have to default to `cp -p'.
Tristan Matthews0a329cc2013-07-17 13:20:14 -0400487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Alexandre Lision8af73cb2013-12-10 14:11:20 -0500488 as_ln_s='cp -p'
Tristan Matthews0a329cc2013-07-17 13:20:14 -0400489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
Alexandre Lision8af73cb2013-12-10 14:11:20 -0500492 as_ln_s='cp -p'
Tristan Matthews0a329cc2013-07-17 13:20:14 -0400493 fi
494else
Alexandre Lision8af73cb2013-12-10 14:11:20 -0500495 as_ln_s='cp -p'
Tristan Matthews0a329cc2013-07-17 13:20:14 -0400496fi
497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498rmdir conf$$.dir 2>/dev/null
499
500if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505fi
506
Alexandre Lision8af73cb2013-12-10 14:11:20 -0500507if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527fi
528as_executable_p=$as_test_x
Tristan Matthews0a329cc2013-07-17 13:20:14 -0400529
530# Sed expression to map a string onto a valid CPP name.
531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533# Sed expression to map a string onto a valid variable name.
534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537test -n "$DJDIR" || exec 7<&0 </dev/null
538exec 6>&1
539
540# Name of the host.
541# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542# so uname gets run too.
543ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545#
546# Initializations.
547#
548ac_default_prefix=/usr/local
549ac_clean_files=
550ac_config_libobj_dir=.
551LIBOBJS=
552cross_compiling=no
553subdirs=
554MFLAGS=
555MAKEFLAGS=
556
557# Identity of this package.
558PACKAGE_NAME='pjproject'
559PACKAGE_TARNAME='pjproject'
560PACKAGE_VERSION='2.x'
561PACKAGE_STRING='pjproject 2.x'
562PACKAGE_BUGREPORT=''
563PACKAGE_URL=''
564
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#ifdef HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#ifdef HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#ifdef STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# ifdef HAVE_STDLIB_H
579# include <stdlib.h>
580# endif
581#endif
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
588#ifdef HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#ifdef HAVE_INTTYPES_H
592# include <inttypes.h>
593#endif
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
601ac_subst_vars='LTLIBOBJS
602LIBOBJS
603ac_main_obj
604ac_host
605ac_linux_poll
606silk_present
607silk_h_present
608ac_no_silk
609opencore_amrwb_dec_present
610opencore_amrwb_dec_h_present
611opencore_amrwb_enc_present
612opencore_amrwb_enc_h_present
613opencore_amrnb_present
614opencore_amrnb_h_present
615ac_no_opencore_amrwb
616ac_no_opencore_amrnb
617libcrypto_present
618libssl_present
619openssl_h_present
620ac_no_ssl
621ac_v4l2_ldflags
622ac_v4l2_cflags
623PKG_CONFIG
624SAVED_PKG_CONFIG_PATH
625ac_ffmpeg_ldflags
626ac_ffmpeg_cflags
627ac_has_ffmpeg
628ac_sdl_ldflags
629ac_sdl_cflags
630SDL_CONFIG
631ac_resample_dll
632ac_no_ilbc_codec
633ac_no_speex_codec
634ac_no_g7221_codec
635ac_no_g722_codec
636ac_no_gsm_codec
637ac_no_l16_codec
638ac_no_g711_codec
639ac_no_speex_aec
640ac_no_large_filter
641ac_no_small_filter
642ac_qt_cflags
643ac_pjmedia_video_has_qt
644ac_ios_cflags
645ac_pjmedia_video_has_ios
646ac_pjmedia_video
647ac_pa_use_oss
648ac_pa_use_alsa
Alexandre Lision8af73cb2013-12-10 14:11:20 -0500649ac_pjmedia_audiodev_objs
Tristan Matthews0a329cc2013-07-17 13:20:14 -0400650ac_pa_cflags
651ac_external_pa
652ac_pjmedia_snd
Alexandre Lision0e143012014-01-22 11:02:46 -0500653ac_pjmedia_resample
654ac_external_srtp
Tristan Matthews0a329cc2013-07-17 13:20:14 -0400655ac_external_gsm
656ac_external_speex
Alexandre Lision8af73cb2013-12-10 14:11:20 -0500657ac_shared_libraries
Tristan Matthews0a329cc2013-07-17 13:20:14 -0400658ac_os_objs
659EGREP
660GREP
661CPP
662ac_cross_compile
663ac_shlib_suffix
664ac_build_mak_vars
665ac_pjdir
666CC_CFLAGS
667CC_OPTIMIZE
668CC_DEF
669CC_INC
670CC_OUT
671LIBEXT2
672LIBEXT
Tristan Matthews0a329cc2013-07-17 13:20:14 -0400673LDOUT
674LD
Alexandre Lision8af73cb2013-12-10 14:11:20 -0500675AR_FLAGS
676ac_ct_AR
Tristan Matthews0a329cc2013-07-17 13:20:14 -0400677AR
Alexandre Lision8af73cb2013-12-10 14:11:20 -0500678RANLIB
Tristan Matthews0a329cc2013-07-17 13:20:14 -0400679ac_ct_CXX
680CXXFLAGS
681CXX
682OBJEXT
683EXEEXT
684ac_ct_CC
685CPPFLAGS
686LDFLAGS
687CFLAGS
688CC
689target_os
690target_vendor
691target_cpu
692target
693host_os
694host_vendor
695host_cpu
696host
697build_os
698build_vendor
699build_cpu
700build
701target_alias
702host_alias
703build_alias
704LIBS
705ECHO_T
706ECHO_N
707ECHO_C
708DEFS
709mandir
710localedir
711libdir
712psdir
713pdfdir
714dvidir
715htmldir
716infodir
717docdir
718oldincludedir
719includedir
720localstatedir
721sharedstatedir
722sysconfdir
723datadir
724datarootdir
725libexecdir
726sbindir
727bindir
728program_transform_name
729prefix
730exec_prefix
731PACKAGE_URL
732PACKAGE_BUGREPORT
733PACKAGE_STRING
734PACKAGE_VERSION
735PACKAGE_TARNAME
736PACKAGE_NAME
737PATH_SEPARATOR
738SHELL'
739ac_subst_files=''
740ac_user_opts='
741enable_option_checking
742enable_floating_point
743enable_epoll
Alexandre Lision8af73cb2013-12-10 14:11:20 -0500744enable_shared
Tristan Matthews0a329cc2013-07-17 13:20:14 -0400745with_external_speex
746with_external_gsm
Alexandre Lision0e143012014-01-22 11:02:46 -0500747with_external_srtp
748enable_resample
Tristan Matthews0a329cc2013-07-17 13:20:14 -0400749enable_sound
750with_external_pa
751enable_oss
752enable_video
753enable_ext_sound
754enable_small_filter
755enable_large_filter
756enable_speex_aec
757enable_g711_codec
758enable_l16_codec
759enable_gsm_codec
760enable_g722_codec
761enable_g7221_codec
762enable_speex_codec
763enable_ilbc_codec
764enable_libsamplerate
765enable_resample_dll
766with_sdl
767enable_sdl
768with_ffmpeg
769enable_ffmpeg
770enable_v4l2
771enable_ipp
772with_ipp
773with_ipp_samples
774with_ipp_arch
775with_ssl
776enable_ssl
777with_opencore_amrnb
778with_opencore_amr
779with_opencore_amrwbenc
780enable_opencore_amr
781with_silk
782enable_silk
783'
784 ac_precious_vars='build_alias
785host_alias
786target_alias
787CC
788CFLAGS
789LDFLAGS
790LIBS
791CPPFLAGS
792CXX
793CXXFLAGS
794CCC
795CPP'
796
797
798# Initialize some variables set by options.
799ac_init_help=
800ac_init_version=false
801ac_unrecognized_opts=
802ac_unrecognized_sep=
803# The variables have the same names as the options, with
804# dashes changed to underlines.
805cache_file=/dev/null
806exec_prefix=NONE
807no_create=
808no_recursion=
809prefix=NONE
810program_prefix=NONE
811program_suffix=NONE
812program_transform_name=s,x,x,
813silent=
814site=
815srcdir=
816verbose=
817x_includes=NONE
818x_libraries=NONE
819
820# Installation directory options.
821# These are left unexpanded so users can "make install exec_prefix=/foo"
822# and all the variables that are supposed to be based on exec_prefix
823# by default will actually change.
824# Use braces instead of parens because sh, perl, etc. also accept them.
825# (The list follows the same order as the GNU Coding Standards.)
826bindir='${exec_prefix}/bin'
827sbindir='${exec_prefix}/sbin'
828libexecdir='${exec_prefix}/libexec'
829datarootdir='${prefix}/share'
830datadir='${datarootdir}'
831sysconfdir='${prefix}/etc'
832sharedstatedir='${prefix}/com'
833localstatedir='${prefix}/var'
834includedir='${prefix}/include'
835oldincludedir='/usr/include'
836docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837infodir='${datarootdir}/info'
838htmldir='${docdir}'
839dvidir='${docdir}'
840pdfdir='${docdir}'
841psdir='${docdir}'
842libdir='${exec_prefix}/lib'
843localedir='${datarootdir}/locale'
844mandir='${datarootdir}/man'
845
846ac_prev=
847ac_dashdash=
848for ac_option
849do
850 # If the previous option needs an argument, assign it.
851 if test -n "$ac_prev"; then
852 eval $ac_prev=\$ac_option
853 ac_prev=
854 continue
855 fi
856
857 case $ac_option in
858 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859 *=) ac_optarg= ;;
860 *) ac_optarg=yes ;;
861 esac
862
863 # Accept the important Cygnus configure options, so we can diagnose typos.
864
865 case $ac_dashdash$ac_option in
866 --)
867 ac_dashdash=yes ;;
868
869 -bindir | --bindir | --bindi | --bind | --bin | --bi)
870 ac_prev=bindir ;;
871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872 bindir=$ac_optarg ;;
873
874 -build | --build | --buil | --bui | --bu)
875 ac_prev=build_alias ;;
876 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877 build_alias=$ac_optarg ;;
878
879 -cache-file | --cache-file | --cache-fil | --cache-fi \
880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881 ac_prev=cache_file ;;
882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884 cache_file=$ac_optarg ;;
885
886 --config-cache | -C)
887 cache_file=config.cache ;;
888
889 -datadir | --datadir | --datadi | --datad)
890 ac_prev=datadir ;;
891 -datadir=* | --datadir=* | --datadi=* | --datad=*)
892 datadir=$ac_optarg ;;
893
894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895 | --dataroo | --dataro | --datar)
896 ac_prev=datarootdir ;;
897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899 datarootdir=$ac_optarg ;;
900
901 -disable-* | --disable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
909 *"
910"enable_$ac_useropt"
911"*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=no ;;
916
917 -docdir | --docdir | --docdi | --doc | --do)
918 ac_prev=docdir ;;
919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920 docdir=$ac_optarg ;;
921
922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923 ac_prev=dvidir ;;
924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925 dvidir=$ac_optarg ;;
926
927 -enable-* | --enable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error $? "invalid feature name: $ac_useropt"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
935 *"
936"enable_$ac_useropt"
937"*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=\$ac_optarg ;;
942
943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945 | --exec | --exe | --ex)
946 ac_prev=exec_prefix ;;
947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949 | --exec=* | --exe=* | --ex=*)
950 exec_prefix=$ac_optarg ;;
951
952 -gas | --gas | --ga | --g)
953 # Obsolete; use --with-gas.
954 with_gas=yes ;;
955
956 -help | --help | --hel | --he | -h)
957 ac_init_help=long ;;
958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959 ac_init_help=recursive ;;
960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961 ac_init_help=short ;;
962
963 -host | --host | --hos | --ho)
964 ac_prev=host_alias ;;
965 -host=* | --host=* | --hos=* | --ho=*)
966 host_alias=$ac_optarg ;;
967
968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969 ac_prev=htmldir ;;
970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971 | --ht=*)
972 htmldir=$ac_optarg ;;
973
974 -includedir | --includedir | --includedi | --included | --include \
975 | --includ | --inclu | --incl | --inc)
976 ac_prev=includedir ;;
977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978 | --includ=* | --inclu=* | --incl=* | --inc=*)
979 includedir=$ac_optarg ;;
980
981 -infodir | --infodir | --infodi | --infod | --info | --inf)
982 ac_prev=infodir ;;
983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984 infodir=$ac_optarg ;;
985
986 -libdir | --libdir | --libdi | --libd)
987 ac_prev=libdir ;;
988 -libdir=* | --libdir=* | --libdi=* | --libd=*)
989 libdir=$ac_optarg ;;
990
991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992 | --libexe | --libex | --libe)
993 ac_prev=libexecdir ;;
994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995 | --libexe=* | --libex=* | --libe=*)
996 libexecdir=$ac_optarg ;;
997
998 -localedir | --localedir | --localedi | --localed | --locale)
999 ac_prev=localedir ;;
1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001 localedir=$ac_optarg ;;
1002
1003 -localstatedir | --localstatedir | --localstatedi | --localstated \
1004 | --localstate | --localstat | --localsta | --localst | --locals)
1005 ac_prev=localstatedir ;;
1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008 localstatedir=$ac_optarg ;;
1009
1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011 ac_prev=mandir ;;
1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013 mandir=$ac_optarg ;;
1014
1015 -nfp | --nfp | --nf)
1016 # Obsolete; use --without-fp.
1017 with_fp=no ;;
1018
1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020 | --no-cr | --no-c | -n)
1021 no_create=yes ;;
1022
1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025 no_recursion=yes ;;
1026
1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029 | --oldin | --oldi | --old | --ol | --o)
1030 ac_prev=oldincludedir ;;
1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034 oldincludedir=$ac_optarg ;;
1035
1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037 ac_prev=prefix ;;
1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039 prefix=$ac_optarg ;;
1040
1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042 | --program-pre | --program-pr | --program-p)
1043 ac_prev=program_prefix ;;
1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046 program_prefix=$ac_optarg ;;
1047
1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049 | --program-suf | --program-su | --program-s)
1050 ac_prev=program_suffix ;;
1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053 program_suffix=$ac_optarg ;;
1054
1055 -program-transform-name | --program-transform-name \
1056 | --program-transform-nam | --program-transform-na \
1057 | --program-transform-n | --program-transform- \
1058 | --program-transform | --program-transfor \
1059 | --program-transfo | --program-transf \
1060 | --program-trans | --program-tran \
1061 | --progr-tra | --program-tr | --program-t)
1062 ac_prev=program_transform_name ;;
1063 -program-transform-name=* | --program-transform-name=* \
1064 | --program-transform-nam=* | --program-transform-na=* \
1065 | --program-transform-n=* | --program-transform-=* \
1066 | --program-transform=* | --program-transfor=* \
1067 | --program-transfo=* | --program-transf=* \
1068 | --program-trans=* | --program-tran=* \
1069 | --progr-tra=* | --program-tr=* | --program-t=*)
1070 program_transform_name=$ac_optarg ;;
1071
1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073 ac_prev=pdfdir ;;
1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075 pdfdir=$ac_optarg ;;
1076
1077 -psdir | --psdir | --psdi | --psd | --ps)
1078 ac_prev=psdir ;;
1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080 psdir=$ac_optarg ;;
1081
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1084 silent=yes ;;
1085
1086 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1087 ac_prev=sbindir ;;
1088 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1089 | --sbi=* | --sb=*)
1090 sbindir=$ac_optarg ;;
1091
1092 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1093 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1094 | --sharedst | --shareds | --shared | --share | --shar \
1095 | --sha | --sh)
1096 ac_prev=sharedstatedir ;;
1097 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1098 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1099 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1100 | --sha=* | --sh=*)
1101 sharedstatedir=$ac_optarg ;;
1102
1103 -site | --site | --sit)
1104 ac_prev=site ;;
1105 -site=* | --site=* | --sit=*)
1106 site=$ac_optarg ;;
1107
1108 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1109 ac_prev=srcdir ;;
1110 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1111 srcdir=$ac_optarg ;;
1112
1113 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1114 | --syscon | --sysco | --sysc | --sys | --sy)
1115 ac_prev=sysconfdir ;;
1116 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1117 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1118 sysconfdir=$ac_optarg ;;
1119
1120 -target | --target | --targe | --targ | --tar | --ta | --t)
1121 ac_prev=target_alias ;;
1122 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1123 target_alias=$ac_optarg ;;
1124
1125 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126 verbose=yes ;;
1127
1128 -version | --version | --versio | --versi | --vers | -V)
1129 ac_init_version=: ;;
1130
1131 -with-* | --with-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140"with_$ac_useropt"
1141"*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=\$ac_optarg ;;
1146
1147 -without-* | --without-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156"with_$ac_useropt"
1157"*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=no ;;
1162
1163 --x)
1164 # Obsolete; use --with-x.
1165 with_x=yes ;;
1166
1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168 | --x-incl | --x-inc | --x-in | --x-i)
1169 ac_prev=x_includes ;;
1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172 x_includes=$ac_optarg ;;
1173
1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176 ac_prev=x_libraries ;;
1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179 x_libraries=$ac_optarg ;;
1180
1181 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1182Try \`$0 --help' for more information"
1183 ;;
1184
1185 *=*)
1186 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187 # Reject names that are not valid shell variable names.
1188 case $ac_envvar in #(
1189 '' | [0-9]* | *[!_$as_cr_alnum]* )
1190 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1191 esac
1192 eval $ac_envvar=\$ac_optarg
1193 export $ac_envvar ;;
1194
1195 *)
1196 # FIXME: should be removed in autoconf 3.0.
1197 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1201 ;;
1202
1203 esac
1204done
1205
1206if test -n "$ac_prev"; then
1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208 as_fn_error $? "missing argument to $ac_option"
1209fi
1210
1211if test -n "$ac_unrecognized_opts"; then
1212 case $enable_option_checking in
1213 no) ;;
1214 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1215 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1216 esac
1217fi
1218
1219# Check all directory arguments for consistency.
1220for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221 datadir sysconfdir sharedstatedir localstatedir includedir \
1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223 libdir localedir mandir
1224do
1225 eval ac_val=\$$ac_var
1226 # Remove trailing slashes.
1227 case $ac_val in
1228 */ )
1229 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1230 eval $ac_var=\$ac_val;;
1231 esac
1232 # Be sure to have absolute directory names.
1233 case $ac_val in
1234 [\\/$]* | ?:[\\/]* ) continue;;
1235 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1236 esac
1237 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1238done
1239
1240# There might be people who depend on the old broken behavior: `$host'
1241# used to hold the argument of --host etc.
1242# FIXME: To remove some day.
1243build=$build_alias
1244host=$host_alias
1245target=$target_alias
1246
1247# FIXME: To remove some day.
1248if test "x$host_alias" != x; then
1249 if test "x$build_alias" = x; then
1250 cross_compiling=maybe
Alexandre Lision8af73cb2013-12-10 14:11:20 -05001251 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1252 If a cross compiler is detected then cross compile mode will be used" >&2
Tristan Matthews0a329cc2013-07-17 13:20:14 -04001253 elif test "x$build_alias" != "x$host_alias"; then
1254 cross_compiling=yes
1255 fi
1256fi
1257
1258ac_tool_prefix=
1259test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260
1261test "$silent" = yes && exec 6>/dev/null
1262
1263
1264ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265ac_ls_di=`ls -di .` &&
1266ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267 as_fn_error $? "working directory cannot be determined"
1268test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269 as_fn_error $? "pwd does not report name of working directory"
1270
1271
1272# Find the source files, if location was not specified.
1273if test -z "$srcdir"; then
1274 ac_srcdir_defaulted=yes
1275 # Try the directory containing this script, then the parent directory.
1276 ac_confdir=`$as_dirname -- "$as_myself" ||
1277$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278 X"$as_myself" : 'X\(//\)[^/]' \| \
1279 X"$as_myself" : 'X\(//\)$' \| \
1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281$as_echo X"$as_myself" |
1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\/\)[^/].*/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\/\)$/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\).*/{
1295 s//\1/
1296 q
1297 }
1298 s/.*/./; q'`
1299 srcdir=$ac_confdir
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 srcdir=..
1302 fi
1303else
1304 ac_srcdir_defaulted=no
1305fi
1306if test ! -r "$srcdir/$ac_unique_file"; then
1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309fi
1310ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311ac_abs_confdir=`(
1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313 pwd)`
1314# When building in place, set srcdir=.
1315if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 srcdir=.
1317fi
1318# Remove unnecessary trailing slashes from srcdir.
1319# Double slashes in file names in object file debugging info
1320# mess up M-x gdb in Emacs.
1321case $srcdir in
1322*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323esac
1324for ac_var in $ac_precious_vars; do
1325 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_env_${ac_var}_value=\$${ac_var}
1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329done
1330
1331#
1332# Report the --help message.
1333#
1334if test "$ac_init_help" = "long"; then
1335 # Omit some internal or obsolete options to make the list less imposing.
1336 # This message is too long to be a string in the A/UX 3.1 sh.
1337 cat <<_ACEOF
1338\`configure' configures pjproject 2.x to adapt to many kinds of systems.
1339
1340Usage: $0 [OPTION]... [VAR=VALUE]...
1341
1342To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343VAR=VALUE. See below for descriptions of some of the useful variables.
1344
1345Defaults for the options are specified in brackets.
1346
1347Configuration:
1348 -h, --help display this help and exit
1349 --help=short display options specific to this package
1350 --help=recursive display the short help of all the included packages
1351 -V, --version display version information and exit
1352 -q, --quiet, --silent do not print \`checking ...' messages
1353 --cache-file=FILE cache test results in FILE [disabled]
1354 -C, --config-cache alias for \`--cache-file=config.cache'
1355 -n, --no-create do not create output files
1356 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1357
1358Installation directories:
1359 --prefix=PREFIX install architecture-independent files in PREFIX
1360 [$ac_default_prefix]
1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 [PREFIX]
1363
1364By default, \`make install' will install all the files in
1365\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1366an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1367for instance \`--prefix=\$HOME'.
1368
1369For better control, use the options below.
1370
1371Fine tuning of the installation directories:
1372 --bindir=DIR user executables [EPREFIX/bin]
1373 --sbindir=DIR system admin executables [EPREFIX/sbin]
1374 --libexecdir=DIR program executables [EPREFIX/libexec]
1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1378 --libdir=DIR object code libraries [EPREFIX/lib]
1379 --includedir=DIR C header files [PREFIX/include]
1380 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1381 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1382 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1383 --infodir=DIR info documentation [DATAROOTDIR/info]
1384 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1385 --mandir=DIR man documentation [DATAROOTDIR/man]
1386 --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject]
1387 --htmldir=DIR html documentation [DOCDIR]
1388 --dvidir=DIR dvi documentation [DOCDIR]
1389 --pdfdir=DIR pdf documentation [DOCDIR]
1390 --psdir=DIR ps documentation [DOCDIR]
1391_ACEOF
1392
1393 cat <<\_ACEOF
1394
1395System types:
1396 --build=BUILD configure for building on BUILD [guessed]
1397 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1398 --target=TARGET configure for building compilers for TARGET [HOST]
1399_ACEOF
1400fi
1401
1402if test -n "$ac_init_help"; then
1403 case $ac_init_help in
1404 short | recursive ) echo "Configuration of pjproject 2.x:";;
1405 esac
1406 cat <<\_ACEOF
1407
1408Optional Features:
1409 --disable-option-checking ignore unrecognized --enable/--with options
1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1412 --disable-floating-point
1413 Disable floating point where possible
1414 --enable-epoll Use /dev/epoll ioqueue on Linux (experimental)
Alexandre Lision8af73cb2013-12-10 14:11:20 -05001415 --enable-shared Build shared libraries
Alexandre Lision0e143012014-01-22 11:02:46 -05001416 --disable-resample Disable resampling implementations
Tristan Matthews0a329cc2013-07-17 13:20:14 -04001417 --disable-sound Exclude sound (i.e. use null sound)
1418 --disable-oss Disable OSS audio (default: not disabled)
1419 --disable-video Disable video feature
1420 --enable-ext-sound PJMEDIA will not provide any sound device backend
1421 --disable-small-filter Exclude small filter in resampling
1422 --disable-large-filter Exclude large filter in resampling
1423 --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC
1424 --disable-g711-codec Exclude G.711 codecs from the build
1425 --disable-l16-codec Exclude Linear/L16 codec family from the build
1426 --disable-gsm-codec Exclude GSM codec in the build
1427 --disable-g722-codec Exclude G.722 codec in the build
1428 --disable-g7221-codec Exclude G.7221 codec in the build
1429 --disable-speex-codec Exclude Speex codecs in the build
1430 --disable-ilbc-codec Exclude iLBC codec in the build
Alexandre Lision0e143012014-01-22 11:02:46 -05001431 --enable-libsamplerate Link with libsamplerate when available.
Tristan Matthews0a329cc2013-07-17 13:20:14 -04001432 --enable-resample-dll Build libresample as shared library
1433 --disable-sdl Disable SDL (default: not disabled)
1434 --disable-ffmpeg Disable ffmpeg (default: not disabled)
1435 --disable-v4l2 Disable Video4Linux2 (default: not disabled)
1436 --enable-ipp Enable Intel IPP support. Specify the Intel IPP
1437 package and samples location using IPPROOT and
1438 IPPSAMPLES env var or with --with-ipp and
1439 --with-ipp-samples options
1440 --disable-ssl Exclude SSL support the build (default: autodetect)
1441
1442 --disable-opencore-amr Exclude OpenCORE AMR support from the build
1443 (default: autodetect)
1444
1445 --disable-silk Exclude SILK support from the build (default:
1446 autodetect)
1447
1448
1449Optional Packages:
1450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1452 --with-external-speex Use external Speex development files, not the one in
1453 "third_party" directory. When this option is set,
1454 make sure that Speex is accessible to use (hint: use
1455 CFLAGS and LDFLAGS env var to set the include/lib
1456 paths)
1457 --with-external-gsm Use external GSM codec library, not the one in
1458 "third_party" directory. When this option is set,
1459 make sure that the GSM include/lib files are
1460 accessible to use (hint: use CFLAGS and LDFLAGS env
1461 var to set the include/lib paths)
Alexandre Lision0e143012014-01-22 11:02:46 -05001462 --with-external-srtp Use external SRTP development files, not the one in
1463 "third_party" directory. When this option is set,
1464 make sure that SRTP is accessible to use (hint: use
1465 CFLAGS and LDFLAGS env var to set the include/lib
1466 paths)
Tristan Matthews0a329cc2013-07-17 13:20:14 -04001467 --with-external-pa Use external PortAudio development files, not the
1468 one in "third_party" directory. When this option is
1469 set, make sure that PortAudio is accessible to use
1470 (hint: use CFLAGS and LDFLAGS env var to set the
1471 include/lib paths)
1472 --with-sdl=DIR Specify alternate libSDL prefix
1473 --with-ffmpeg=DIR Specify alternate FFMPEG prefix
1474 --with-ipp=DIR Specify the Intel IPP location
1475 --with-ipp-samples=DIR Specify the Intel IPP samples location
1476 --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or
1477 "em64t. Default is blank for IA32"
1478 --with-ssl=DIR Specify alternate libssl prefix
1479 --with-opencore-amrnb=DIR
1480 This option is obsolete and replaced by
1481 --with-opencore-amr=DIR
1482 --with-opencore-amr=DIR Specify alternate libopencore-amr prefix
1483 --with-opencore-amrwbenc=DIR
1484 Specify alternate libvo-amrwbenc prefix
1485 --with-silk=DIR Specify alternate SILK prefix
1486
1487Some influential environment variables:
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
1492 LIBS libraries to pass to the linker, e.g. -l<library>
1493 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1495 CXX C++ compiler command
1496 CXXFLAGS C++ compiler flags
1497 CPP C preprocessor
1498
1499Use these variables to override the choices made by `configure' or to help
1500it to find libraries and programs with nonstandard names/locations.
1501
1502Report bugs to the package provider.
1503_ACEOF
1504ac_status=$?
1505fi
1506
1507if test "$ac_init_help" = "recursive"; then
1508 # If there are subdirs, report their specific --help.
1509 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510 test -d "$ac_dir" ||
1511 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1512 continue
1513 ac_builddir=.
1514
1515case "$ac_dir" in
1516.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517*)
1518 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1519 # A ".." for each directory in $ac_dir_suffix.
1520 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1521 case $ac_top_builddir_sub in
1522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524 esac ;;
1525esac
1526ac_abs_top_builddir=$ac_pwd
1527ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528# for backward compatibility:
1529ac_top_builddir=$ac_top_build_prefix
1530
1531case $srcdir in
1532 .) # We are building in place.
1533 ac_srcdir=.
1534 ac_top_srcdir=$ac_top_builddir_sub
1535 ac_abs_top_srcdir=$ac_pwd ;;
1536 [\\/]* | ?:[\\/]* ) # Absolute name.
1537 ac_srcdir=$srcdir$ac_dir_suffix;
1538 ac_top_srcdir=$srcdir
1539 ac_abs_top_srcdir=$srcdir ;;
1540 *) # Relative name.
1541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542 ac_top_srcdir=$ac_top_build_prefix$srcdir
1543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544esac
1545ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546
1547 cd "$ac_dir" || { ac_status=$?; continue; }
1548 # Check for guested configure.
1549 if test -f "$ac_srcdir/configure.gnu"; then
1550 echo &&
1551 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552 elif test -f "$ac_srcdir/configure"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure" --help=recursive
1555 else
1556 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557 fi || ac_status=$?
1558 cd "$ac_pwd" || { ac_status=$?; break; }
1559 done
1560fi
1561
1562test -n "$ac_init_help" && exit $ac_status
1563if $ac_init_version; then
1564 cat <<\_ACEOF
1565pjproject configure 2.x
Alexandre Lision8af73cb2013-12-10 14:11:20 -05001566generated by GNU Autoconf 2.68
Tristan Matthews0a329cc2013-07-17 13:20:14 -04001567
Alexandre Lision8af73cb2013-12-10 14:11:20 -05001568Copyright (C) 2010 Free Software Foundation, Inc.
Tristan Matthews0a329cc2013-07-17 13:20:14 -04001569This configure script is free software; the Free Software Foundation
1570gives unlimited permission to copy, distribute and modify it.
1571_ACEOF
1572 exit
1573fi
1574
1575## ------------------------ ##
1576## Autoconf initialization. ##
1577## ------------------------ ##
1578
1579# ac_fn_c_try_compile LINENO
1580# --------------------------
1581# Try to compile conftest.$ac_ext, and return whether this succeeded.
1582ac_fn_c_try_compile ()
1583{
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 rm -f conftest.$ac_objext
1586 if { { ac_try="$ac_compile"
1587case "(($ac_try" in
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1590esac
1591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592$as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_compile") 2>conftest.err
1594 ac_status=$?
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1599 fi
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && {
1602 test -z "$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1604 } && test -s conftest.$ac_objext; then :
1605 ac_retval=0
1606else
1607 $as_echo "$as_me: failed program was:" >&5
1608sed 's/^/| /' conftest.$ac_ext >&5
1609
1610 ac_retval=1
1611fi
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615} # ac_fn_c_try_compile
1616
1617# ac_fn_cxx_try_compile LINENO
1618# ----------------------------
1619# Try to compile conftest.$ac_ext, and return whether this succeeded.
1620ac_fn_cxx_try_compile ()
1621{
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext
1624 if { { ac_try="$ac_compile"
1625case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628esac
1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630$as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_compile") 2>conftest.err
1632 ac_status=$?
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1637 fi
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
1640 test -z "$ac_cxx_werror_flag" ||
1641 test ! -s conftest.err
1642 } && test -s conftest.$ac_objext; then :
1643 ac_retval=0
1644else
1645 $as_echo "$as_me: failed program was:" >&5
1646sed 's/^/| /' conftest.$ac_ext >&5
1647
1648 ac_retval=1
1649fi
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1652
1653} # ac_fn_cxx_try_compile
1654
1655# ac_fn_c_try_link LINENO
1656# -----------------------
1657# Try to link conftest.$ac_ext, and return whether this succeeded.
1658ac_fn_c_try_link ()
1659{
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext conftest$ac_exeext
1662 if { { ac_try="$ac_link"
1663case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668$as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_link") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
1678 test -z "$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 } && test -s conftest$ac_exeext && {
1681 test "$cross_compiling" = yes ||
Alexandre Lision8af73cb2013-12-10 14:11:20 -05001682 $as_test_x conftest$ac_exeext
Tristan Matthews0a329cc2013-07-17 13:20:14 -04001683 }; then :
1684 ac_retval=0
1685else
1686 $as_echo "$as_me: failed program was:" >&5
1687sed 's/^/| /' conftest.$ac_ext >&5
1688
1689 ac_retval=1
1690fi
1691 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1692 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1693 # interfere with the next link command; also delete a directory that is
1694 # left behind by Apple's compiler. We do this before executing the actions.
1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1698
1699} # ac_fn_c_try_link
1700
1701# ac_fn_c_try_run LINENO
1702# ----------------------
1703# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1704# that executables *can* be run.
1705ac_fn_c_try_run ()
1706{
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_link"
1709case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714$as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_link") 2>&5
1716 ac_status=$?
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1719 { { case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_try") 2>&5
1726 ac_status=$?
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; }; }; then :
1729 ac_retval=0
1730else
1731 $as_echo "$as_me: program exited with status $ac_status" >&5
1732 $as_echo "$as_me: failed program was:" >&5
1733sed 's/^/| /' conftest.$ac_ext >&5
1734
1735 ac_retval=$ac_status
1736fi
1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1740
1741} # ac_fn_c_try_run
1742
1743# ac_fn_c_try_cpp LINENO
1744# ----------------------
1745# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1746ac_fn_c_try_cpp ()
1747{
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 if { { ac_try="$ac_cpp conftest.$ac_ext"
1750case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753esac
1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755$as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1757 ac_status=$?
1758 if test -s conftest.err; then
1759 grep -v '^ *+' conftest.err >conftest.er1
1760 cat conftest.er1 >&5
1761 mv -f conftest.er1 conftest.err
1762 fi
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } > conftest.i && {
1765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1766 test ! -s conftest.err
1767 }; then :
1768 ac_retval=0
1769else
1770 $as_echo "$as_me: failed program was:" >&5
1771sed 's/^/| /' conftest.$ac_ext >&5
1772
1773 ac_retval=1
1774fi
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 as_fn_set_status $ac_retval
1777
1778} # ac_fn_c_try_cpp
1779
1780# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1781# -------------------------------------------------------
1782# Tests whether HEADER exists and can be compiled using the include files in
1783# INCLUDES, setting the cache variable VAR accordingly.
1784ac_fn_c_check_header_compile ()
1785{
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788$as_echo_n "checking for $2... " >&6; }
1789if eval \${$3+:} false; then :
1790 $as_echo_n "(cached) " >&6
1791else
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793/* end confdefs.h. */
1794$4
1795#include <$2>
1796_ACEOF
1797if ac_fn_c_try_compile "$LINENO"; then :
1798 eval "$3=yes"
1799else
1800 eval "$3=no"
1801fi
1802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803fi
1804eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808
1809} # ac_fn_c_check_header_compile
1810
1811# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1812# -------------------------------------------------------
1813# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1814# the include files in INCLUDES and setting the cache variable VAR
1815# accordingly.
1816ac_fn_c_check_header_mongrel ()
1817{
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 if eval \${$3+:} false; then :
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821$as_echo_n "checking for $2... " >&6; }
1822if eval \${$3+:} false; then :
1823 $as_echo_n "(cached) " >&6
1824fi
1825eval ac_res=\$$3
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827$as_echo "$ac_res" >&6; }
1828else
1829 # Is the header compilable?
1830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1831$as_echo_n "checking $2 usability... " >&6; }
1832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h. */
1834$4
1835#include <$2>
1836_ACEOF
1837if ac_fn_c_try_compile "$LINENO"; then :
1838 ac_header_compiler=yes
1839else
1840 ac_header_compiler=no
1841fi
1842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1844$as_echo "$ac_header_compiler" >&6; }
1845
1846# Is the header present?
1847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1848$as_echo_n "checking $2 presence... " >&6; }
1849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850/* end confdefs.h. */
1851#include <$2>
1852_ACEOF
1853if ac_fn_c_try_cpp "$LINENO"; then :
1854 ac_header_preproc=yes
1855else
1856 ac_header_preproc=no
1857fi
1858rm -f conftest.err conftest.i conftest.$ac_ext
1859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1860$as_echo "$ac_header_preproc" >&6; }
1861
1862# So? What about this header?
1863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1864 yes:no: )
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1866$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1868$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869 ;;
1870 no:yes:* )
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1872$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1874$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1876$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1878$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1880$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1881 ;;
1882esac
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884$as_echo_n "checking for $2... " >&6; }
1885if eval \${$3+:} false; then :
1886 $as_echo_n "(cached) " >&6
1887else
1888 eval "$3=\$ac_header_compiler"
1889fi
1890eval ac_res=\$$3
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892$as_echo "$ac_res" >&6; }
1893fi
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896} # ac_fn_c_check_header_mongrel
1897
1898# ac_fn_c_check_func LINENO FUNC VAR
1899# ----------------------------------
1900# Tests whether FUNC exists, setting the cache variable VAR accordingly
1901ac_fn_c_check_func ()
1902{
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905$as_echo_n "checking for $2... " >&6; }
1906if eval \${$3+:} false; then :
1907 $as_echo_n "(cached) " >&6
1908else
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h. */
1911/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1913#define $2 innocuous_$2
1914
1915/* System header to define __stub macros and hopefully few prototypes,
1916 which can conflict with char $2 (); below.
1917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1918 <limits.h> exists even on freestanding compilers. */
1919
1920#ifdef __STDC__
1921# include <limits.h>
1922#else
1923# include <assert.h>
1924#endif
1925
1926#undef $2
1927
1928/* Override any GCC internal prototype to avoid an error.
1929 Use char because int might match the return type of a GCC
1930 builtin and then its argument prototype would still apply. */
1931#ifdef __cplusplus
1932extern "C"
1933#endif
1934char $2 ();
1935/* The GNU C library defines this for functions which it implements
1936 to always fail with ENOSYS. Some functions are actually named
1937 something starting with __ and the normal name is an alias. */
1938#if defined __stub_$2 || defined __stub___$2
1939choke me
1940#endif
1941
1942int
1943main ()
1944{
1945return $2 ();
1946 ;
1947 return 0;
1948}
1949_ACEOF
1950if ac_fn_c_try_link "$LINENO"; then :
1951 eval "$3=yes"
1952else
1953 eval "$3=no"
1954fi
1955rm -f core conftest.err conftest.$ac_objext \
1956 conftest$ac_exeext conftest.$ac_ext
1957fi
1958eval ac_res=\$$3
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960$as_echo "$ac_res" >&6; }
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962
1963} # ac_fn_c_check_func
1964cat >config.log <<_ACEOF
1965This file contains any messages produced by compilers while
1966running configure, to aid debugging if configure makes a mistake.
1967
1968It was created by pjproject $as_me 2.x, which was
Alexandre Lision8af73cb2013-12-10 14:11:20 -05001969generated by GNU Autoconf 2.68. Invocation command line was
Tristan Matthews0a329cc2013-07-17 13:20:14 -04001970
1971 $ $0 $@
1972
1973_ACEOF
1974exec 5>>config.log
1975{
1976cat <<_ASUNAME
1977## --------- ##
1978## Platform. ##
1979## --------- ##
1980
1981hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1982uname -m = `(uname -m) 2>/dev/null || echo unknown`
1983uname -r = `(uname -r) 2>/dev/null || echo unknown`
1984uname -s = `(uname -s) 2>/dev/null || echo unknown`
1985uname -v = `(uname -v) 2>/dev/null || echo unknown`
1986
1987/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1988/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1989
1990/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1991/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1992/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1993/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1994/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1995/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1996/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1997
1998_ASUNAME
1999
2000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001for as_dir in $PATH
2002do
2003 IFS=$as_save_IFS
2004 test -z "$as_dir" && as_dir=.
2005 $as_echo "PATH: $as_dir"
2006 done
2007IFS=$as_save_IFS
2008
2009} >&5
2010
2011cat >&5 <<_ACEOF
2012
2013
2014## ----------- ##
2015## Core tests. ##
2016## ----------- ##
2017
2018_ACEOF
2019
2020
2021# Keep a trace of the command line.
2022# Strip out --no-create and --no-recursion so they do not pile up.
2023# Strip out --silent because we don't want to record it for future runs.
2024# Also quote any args containing shell meta-characters.
2025# Make two passes to allow for proper duplicate-argument suppression.
2026ac_configure_args=
2027ac_configure_args0=
2028ac_configure_args1=
2029ac_must_keep_next=false
2030for ac_pass in 1 2
2031do
2032 for ac_arg
2033 do
2034 case $ac_arg in
2035 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2037 | -silent | --silent | --silen | --sile | --sil)
2038 continue ;;
2039 *\'*)
2040 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2041 esac
2042 case $ac_pass in
2043 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2044 2)
2045 as_fn_append ac_configure_args1 " '$ac_arg'"
2046 if test $ac_must_keep_next = true; then
2047 ac_must_keep_next=false # Got value, back to normal.
2048 else
2049 case $ac_arg in
2050 *=* | --config-cache | -C | -disable-* | --disable-* \
2051 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2052 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2053 | -with-* | --with-* | -without-* | --without-* | --x)
2054 case "$ac_configure_args0 " in
2055 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2056 esac
2057 ;;
2058 -* ) ac_must_keep_next=true ;;
2059 esac
2060 fi
2061 as_fn_append ac_configure_args " '$ac_arg'"
2062 ;;
2063 esac
2064 done
2065done
2066{ ac_configure_args0=; unset ac_configure_args0;}
2067{ ac_configure_args1=; unset ac_configure_args1;}
2068
2069# When interrupted or exit'd, cleanup temporary files, and complete
2070# config.log. We remove comments because anyway the quotes in there
2071# would cause problems or look ugly.
2072# WARNING: Use '\'' to represent an apostrophe within the trap.
2073# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2074trap 'exit_status=$?
2075 # Save into config.log some information that might help in debugging.
2076 {
2077 echo
2078
2079 $as_echo "## ---------------- ##
2080## Cache variables. ##
2081## ---------------- ##"
2082 echo
2083 # The following way of writing the cache mishandles newlines in values,
2084(
2085 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2086 eval ac_val=\$$ac_var
2087 case $ac_val in #(
2088 *${as_nl}*)
2089 case $ac_var in #(
2090 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2091$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2092 esac
2093 case $ac_var in #(
2094 _ | IFS | as_nl) ;; #(
2095 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2096 *) { eval $ac_var=; unset $ac_var;} ;;
2097 esac ;;
2098 esac
2099 done
2100 (set) 2>&1 |
2101 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2102 *${as_nl}ac_space=\ *)
2103 sed -n \
2104 "s/'\''/'\''\\\\'\'''\''/g;
2105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2106 ;; #(
2107 *)
2108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2109 ;;
2110 esac |
2111 sort
2112)
2113 echo
2114
2115 $as_echo "## ----------------- ##
2116## Output variables. ##
2117## ----------------- ##"
2118 echo
2119 for ac_var in $ac_subst_vars
2120 do
2121 eval ac_val=\$$ac_var
2122 case $ac_val in
2123 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124 esac
2125 $as_echo "$ac_var='\''$ac_val'\''"
2126 done | sort
2127 echo
2128
2129 if test -n "$ac_subst_files"; then
2130 $as_echo "## ------------------- ##
2131## File substitutions. ##
2132## ------------------- ##"
2133 echo
2134 for ac_var in $ac_subst_files
2135 do
2136 eval ac_val=\$$ac_var
2137 case $ac_val in
2138 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2139 esac
2140 $as_echo "$ac_var='\''$ac_val'\''"
2141 done | sort
2142 echo
2143 fi
2144
2145 if test -s confdefs.h; then
2146 $as_echo "## ----------- ##
2147## confdefs.h. ##
2148## ----------- ##"
2149 echo
2150 cat confdefs.h
2151 echo
2152 fi
2153 test "$ac_signal" != 0 &&
2154 $as_echo "$as_me: caught signal $ac_signal"
2155 $as_echo "$as_me: exit $exit_status"
2156 } >&5
2157 rm -f core *.core core.conftest.* &&
2158 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2159 exit $exit_status
2160' 0
2161for ac_signal in 1 2 13 15; do
2162 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2163done
2164ac_signal=0
2165
2166# confdefs.h avoids OS command line length limits that DEFS can exceed.
2167rm -f -r conftest* confdefs.h
2168
2169$as_echo "/* confdefs.h */" > confdefs.h
2170
2171# Predefined preprocessor variables.
2172
2173cat >>confdefs.h <<_ACEOF
2174#define PACKAGE_NAME "$PACKAGE_NAME"
2175_ACEOF
2176
2177cat >>confdefs.h <<_ACEOF
2178#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2179_ACEOF
2180
2181cat >>confdefs.h <<_ACEOF
2182#define PACKAGE_VERSION "$PACKAGE_VERSION"
2183_ACEOF
2184
2185cat >>confdefs.h <<_ACEOF
2186#define PACKAGE_STRING "$PACKAGE_STRING"
2187_ACEOF
2188
2189cat >>confdefs.h <<_ACEOF
2190#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2191_ACEOF
2192
2193cat >>confdefs.h <<_ACEOF
2194#define PACKAGE_URL "$PACKAGE_URL"
2195_ACEOF
2196
2197
2198# Let the site file select an alternate cache file if it wants to.
2199# Prefer an explicitly selected file to automatically selected ones.
2200ac_site_file1=NONE
2201ac_site_file2=NONE
2202if test -n "$CONFIG_SITE"; then
2203 # We do not want a PATH search for config.site.
2204 case $CONFIG_SITE in #((
2205 -*) ac_site_file1=./$CONFIG_SITE;;
2206 */*) ac_site_file1=$CONFIG_SITE;;
2207 *) ac_site_file1=./$CONFIG_SITE;;
2208 esac
2209elif test "x$prefix" != xNONE; then
2210 ac_site_file1=$prefix/share/config.site
2211 ac_site_file2=$prefix/etc/config.site
2212else
2213 ac_site_file1=$ac_default_prefix/share/config.site
2214 ac_site_file2=$ac_default_prefix/etc/config.site
2215fi
2216for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2217do
2218 test "x$ac_site_file" = xNONE && continue
2219 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2221$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2222 sed 's/^/| /' "$ac_site_file" >&5
2223 . "$ac_site_file" \
2224 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2226as_fn_error $? "failed to load site script $ac_site_file
2227See \`config.log' for more details" "$LINENO" 5; }
2228 fi
2229done
2230
2231if test -r "$cache_file"; then
2232 # Some versions of bash will fail to source /dev/null (special files
2233 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2234 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2236$as_echo "$as_me: loading cache $cache_file" >&6;}
2237 case $cache_file in
2238 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2239 *) . "./$cache_file";;
2240 esac
2241 fi
2242else
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2244$as_echo "$as_me: creating cache $cache_file" >&6;}
2245 >$cache_file
2246fi
2247
2248# Check that the precious variables saved in the cache have kept the same
2249# value.
2250ac_cache_corrupted=false
2251for ac_var in $ac_precious_vars; do
2252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2253 eval ac_new_set=\$ac_env_${ac_var}_set
2254 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2255 eval ac_new_val=\$ac_env_${ac_var}_value
2256 case $ac_old_set,$ac_new_set in
2257 set,)
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2259$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2260 ac_cache_corrupted=: ;;
2261 ,set)
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2263$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2264 ac_cache_corrupted=: ;;
2265 ,);;
2266 *)
2267 if test "x$ac_old_val" != "x$ac_new_val"; then
2268 # differences in whitespace do not lead to failure.
2269 ac_old_val_w=`echo x $ac_old_val`
2270 ac_new_val_w=`echo x $ac_new_val`
2271 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2273$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2274 ac_cache_corrupted=:
2275 else
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2277$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2278 eval $ac_var=\$ac_old_val
2279 fi
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2281$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2283$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2284 fi;;
2285 esac
2286 # Pass precious variables to config.status.
2287 if test "$ac_new_set" = set; then
2288 case $ac_new_val in
2289 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2290 *) ac_arg=$ac_var=$ac_new_val ;;
2291 esac
2292 case " $ac_configure_args " in
2293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2294 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2295 esac
2296 fi
2297done
2298if $ac_cache_corrupted; then
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2302$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2303 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2304fi
2305## -------------------- ##
2306## Main body of script. ##
2307## -------------------- ##
2308
2309ac_ext=c
2310ac_cpp='$CPP $CPPFLAGS'
2311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314
2315
2316
2317host_orig="$host"
2318
2319ac_aux_dir=
2320for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2321 if test -f "$ac_dir/install-sh"; then
2322 ac_aux_dir=$ac_dir
2323 ac_install_sh="$ac_aux_dir/install-sh -c"
2324 break
2325 elif test -f "$ac_dir/install.sh"; then
2326 ac_aux_dir=$ac_dir
2327 ac_install_sh="$ac_aux_dir/install.sh -c"
2328 break
2329 elif test -f "$ac_dir/shtool"; then
2330 ac_aux_dir=$ac_dir
2331 ac_install_sh="$ac_aux_dir/shtool install -c"
2332 break
2333 fi
2334done
2335if test -z "$ac_aux_dir"; then
2336 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2337fi
2338
2339# These three variables are undocumented and unsupported,
2340# and are intended to be withdrawn in a future Autoconf release.
2341# They can cause serious problems if a builder's source tree is in a directory
2342# whose full name contains unusual characters.
2343ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2344ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2345ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2346
2347
2348# Make sure we can run config.sub.
2349$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2350 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2351
2352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2353$as_echo_n "checking build system type... " >&6; }
2354if ${ac_cv_build+:} false; then :
2355 $as_echo_n "(cached) " >&6
2356else
2357 ac_build_alias=$build_alias
2358test "x$ac_build_alias" = x &&
2359 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2360test "x$ac_build_alias" = x &&
2361 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2362ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2363 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2364
2365fi
2366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2367$as_echo "$ac_cv_build" >&6; }
2368case $ac_cv_build in
2369*-*-*) ;;
2370*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2371esac
2372build=$ac_cv_build
2373ac_save_IFS=$IFS; IFS='-'
2374set x $ac_cv_build
2375shift
2376build_cpu=$1
2377build_vendor=$2
2378shift; shift
2379# Remember, the first character of IFS is used to create $*,
2380# except with old shells:
2381build_os=$*
2382IFS=$ac_save_IFS
2383case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2384
2385
2386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2387$as_echo_n "checking host system type... " >&6; }
2388if ${ac_cv_host+:} false; then :
2389 $as_echo_n "(cached) " >&6
2390else
2391 if test "x$host_alias" = x; then
2392 ac_cv_host=$ac_cv_build
2393else
2394 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2395 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2396fi
2397
2398fi
2399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2400$as_echo "$ac_cv_host" >&6; }
2401case $ac_cv_host in
2402*-*-*) ;;
2403*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2404esac
2405host=$ac_cv_host
2406ac_save_IFS=$IFS; IFS='-'
2407set x $ac_cv_host
2408shift
2409host_cpu=$1
2410host_vendor=$2
2411shift; shift
2412# Remember, the first character of IFS is used to create $*,
2413# except with old shells:
2414host_os=$*
2415IFS=$ac_save_IFS
2416case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2417
2418
2419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2420$as_echo_n "checking target system type... " >&6; }
2421if ${ac_cv_target+:} false; then :
2422 $as_echo_n "(cached) " >&6
2423else
2424 if test "x$target_alias" = x; then
2425 ac_cv_target=$ac_cv_host
2426else
2427 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2428 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2429fi
2430
2431fi
2432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2433$as_echo "$ac_cv_target" >&6; }
2434case $ac_cv_target in
2435*-*-*) ;;
2436*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2437esac
2438target=$ac_cv_target
2439ac_save_IFS=$IFS; IFS='-'
2440set x $ac_cv_target
2441shift
2442target_cpu=$1
2443target_vendor=$2
2444shift; shift
2445# Remember, the first character of IFS is used to create $*,
2446# except with old shells:
2447target_os=$*
2448IFS=$ac_save_IFS
2449case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2450
2451
2452# The aliases save the names the user supplied, while $host etc.
2453# will get canonicalized.
2454test -n "$target_alias" &&
2455 test "$program_prefix$program_suffix$program_transform_name" = \
2456 NONENONEs,x,x, &&
2457 program_prefix=${target_alias}-
2458ac_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"
2459
2460ac_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"
2461
2462
2463
2464if test "$CFLAGS" = ""; then
2465 CFLAGS="-O2"
2466else
2467 CFLAGS="$CFLAGS"
2468fi
2469
2470CXXFLAGS="$CFLAGS $CXXFLAGS"
2471
2472ac_ext=c
2473ac_cpp='$CPP $CPPFLAGS'
2474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476ac_compiler_gnu=$ac_cv_c_compiler_gnu
2477if test -n "$ac_tool_prefix"; then
2478 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2479set dummy ${ac_tool_prefix}gcc; ac_word=$2
2480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2481$as_echo_n "checking for $ac_word... " >&6; }
2482if ${ac_cv_prog_CC+:} false; then :
2483 $as_echo_n "(cached) " >&6
2484else
2485 if test -n "$CC"; then
2486 ac_cv_prog_CC="$CC" # Let the user override the test.
2487else
2488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489for as_dir in $PATH
2490do
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lision8af73cb2013-12-10 14:11:20 -05002494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Tristan Matthews0a329cc2013-07-17 13:20:14 -04002495 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 break 2
2498 fi
2499done
2500 done
2501IFS=$as_save_IFS
2502
2503fi
2504fi
2505CC=$ac_cv_prog_CC
2506if test -n "$CC"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2508$as_echo "$CC" >&6; }
2509else
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2511$as_echo "no" >&6; }
2512fi
2513
2514
2515fi
2516if test -z "$ac_cv_prog_CC"; then
2517 ac_ct_CC=$CC
2518 # Extract the first word of "gcc", so it can be a program name with args.
2519set dummy gcc; ac_word=$2
2520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2521$as_echo_n "checking for $ac_word... " >&6; }
2522if ${ac_cv_prog_ac_ct_CC+:} false; then :
2523 $as_echo_n "(cached) " >&6
2524else
2525 if test -n "$ac_ct_CC"; then
2526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2527else
2528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529for as_dir in $PATH
2530do
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lision8af73cb2013-12-10 14:11:20 -05002534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Tristan Matthews0a329cc2013-07-17 13:20:14 -04002535 ac_cv_prog_ac_ct_CC="gcc"
2536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 break 2
2538 fi
2539done
2540 done
2541IFS=$as_save_IFS
2542
2543fi
2544fi
2545ac_ct_CC=$ac_cv_prog_ac_ct_CC
2546if test -n "$ac_ct_CC"; then
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2548$as_echo "$ac_ct_CC" >&6; }
2549else
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2551$as_echo "no" >&6; }
2552fi
2553
2554 if test "x$ac_ct_CC" = x; then
2555 CC=""
2556 else
2557 case $cross_compiling:$ac_tool_warned in
2558yes:)
2559{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2561ac_tool_warned=yes ;;
2562esac
2563 CC=$ac_ct_CC
2564 fi
2565else
2566 CC="$ac_cv_prog_CC"
2567fi
2568
2569if test -z "$CC"; then
2570 if test -n "$ac_tool_prefix"; then
2571 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2572set dummy ${ac_tool_prefix}cc; ac_word=$2
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574$as_echo_n "checking for $ac_word... " >&6; }
2575if ${ac_cv_prog_CC+:} false; then :
2576 $as_echo_n "(cached) " >&6
2577else
2578 if test -n "$CC"; then
2579 ac_cv_prog_CC="$CC" # Let the user override the test.
2580else
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lision8af73cb2013-12-10 14:11:20 -05002587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Tristan Matthews0a329cc2013-07-17 13:20:14 -04002588 ac_cv_prog_CC="${ac_tool_prefix}cc"
2589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2591 fi
2592done
2593 done
2594IFS=$as_save_IFS
2595
2596fi
2597fi
2598CC=$ac_cv_prog_CC
2599if test -n "$CC"; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2601$as_echo "$CC" >&6; }
2602else
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604$as_echo "no" >&6; }
2605fi
2606
2607
2608 fi
2609fi
2610if test -z "$CC"; then
2611 # Extract the first word of "cc", so it can be a program name with args.
2612set dummy cc; ac_word=$2
2613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614$as_echo_n "checking for $ac_word... " >&6; }
2615if ${ac_cv_prog_CC+:} false; then :
2616 $as_echo_n "(cached) " >&6
2617else
2618 if test -n "$CC"; then
2619 ac_cv_prog_CC="$CC" # Let the user override the test.
2620else
2621 ac_prog_rejected=no
2622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623for as_dir in $PATH
2624do
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lision8af73cb2013-12-10 14:11:20 -05002628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Tristan Matthews0a329cc2013-07-17 13:20:14 -04002629 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2630 ac_prog_rejected=yes
2631 continue
2632 fi
2633 ac_cv_prog_CC="cc"
2634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 break 2
2636 fi
2637done
2638 done
2639IFS=$as_save_IFS
2640
2641if test $ac_prog_rejected = yes; then
2642 # We found a bogon in the path, so make sure we never use it.
2643 set dummy $ac_cv_prog_CC
2644 shift
2645 if test $# != 0; then
2646 # We chose a different compiler from the bogus one.
2647 # However, it has the same basename, so the bogon will be chosen
2648 # first if we set CC to just the basename; use the full file name.
2649 shift
2650 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2651 fi
2652fi
2653fi
2654fi
2655CC=$ac_cv_prog_CC
2656if test -n "$CC"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2658$as_echo "$CC" >&6; }
2659else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661$as_echo "no" >&6; }
2662fi
2663
2664
2665fi
2666if test -z "$CC"; then
2667 if test -n "$ac_tool_prefix"; then
2668 for ac_prog in cl.exe
2669 do
2670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2671set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673$as_echo_n "checking for $ac_word... " >&6; }
2674if ${ac_cv_prog_CC+:} false; then :
2675 $as_echo_n "(cached) " >&6
2676else
2677 if test -n "$CC"; then
2678 ac_cv_prog_CC="$CC" # Let the user override the test.
2679else
2680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681for as_dir in $PATH
2682do
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lision8af73cb2013-12-10 14:11:20 -05002686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Tristan Matthews0a329cc2013-07-17 13:20:14 -04002687 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2690 fi
2691done
2692 done
2693IFS=$as_save_IFS
2694
2695fi
2696fi
2697CC=$ac_cv_prog_CC
2698if test -n "$CC"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2700$as_echo "$CC" >&6; }
2701else
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703$as_echo "no" >&6; }
2704fi
2705
2706
2707 test -n "$CC" && break
2708 done
2709fi
2710if test -z "$CC"; then
2711 ac_ct_CC=$CC
2712 for ac_prog in cl.exe
2713do
2714 # Extract the first word of "$ac_prog", so it can be a program name with args.
2715set dummy $ac_prog; ac_word=$2
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717$as_echo_n "checking for $ac_word... " >&6; }
2718if ${ac_cv_prog_ac_ct_CC+:} false; then :
2719 $as_echo_n "(cached) " >&6
2720else
2721 if test -n "$ac_ct_CC"; then
2722 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2723else
2724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725for as_dir in $PATH
2726do
2727 IFS=$as_save_IFS
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lision8af73cb2013-12-10 14:11:20 -05002730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Tristan Matthews0a329cc2013-07-17 13:20:14 -04002731 ac_cv_prog_ac_ct_CC="$ac_prog"
2732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 break 2
2734 fi
2735done
2736 done
2737IFS=$as_save_IFS
2738
2739fi
2740fi
2741ac_ct_CC=$ac_cv_prog_ac_ct_CC
2742if test -n "$ac_ct_CC"; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2744$as_echo "$ac_ct_CC" >&6; }
2745else
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747$as_echo "no" >&6; }
2748fi
2749
2750
2751 test -n "$ac_ct_CC" && break
2752done
2753
2754 if test "x$ac_ct_CC" = x; then
2755 CC=""
2756 else
2757 case $cross_compiling:$ac_tool_warned in
2758yes:)
2759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2761ac_tool_warned=yes ;;
2762esac
2763 CC=$ac_ct_CC
2764 fi
2765fi
2766
2767fi
2768
2769
2770test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2772as_fn_error $? "no acceptable C compiler found in \$PATH
2773See \`config.log' for more details" "$LINENO" 5; }
2774
2775# Provide some information about the compiler.
2776$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2777set X $ac_compile
2778ac_compiler=$2
2779for ac_option in --version -v -V -qversion; do
2780 { { ac_try="$ac_compiler $ac_option >&5"
2781case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2784esac
2785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2786$as_echo "$ac_try_echo"; } >&5
2787 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2788 ac_status=$?
2789 if test -s conftest.err; then
2790 sed '10a\
2791... rest of stderr output deleted ...
2792 10q' conftest.err >conftest.er1
2793 cat conftest.er1 >&5
2794 fi
2795 rm -f conftest.er1 conftest.err
2796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2797 test $ac_status = 0; }
2798done
2799
2800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2801/* end confdefs.h. */
2802
2803int
2804main ()
2805{
2806
2807 ;
2808 return 0;
2809}
2810_ACEOF
2811ac_clean_files_save=$ac_clean_files
2812ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2813# Try to create an executable without -o first, disregard a.out.
2814# It will help us diagnose broken compilers, and finding out an intuition
2815# of exeext.
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2817$as_echo_n "checking whether the C compiler works... " >&6; }
2818ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2819
2820# The possible output files:
2821ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2822
2823ac_rmfiles=
2824for ac_file in $ac_files
2825do
2826 case $ac_file in
2827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2828 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2829 esac
2830done
2831rm -f $ac_rmfiles
2832
2833if { { ac_try="$ac_link_default"
2834case "(($ac_try" in
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2837esac
2838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2839$as_echo "$ac_try_echo"; } >&5
2840 (eval "$ac_link_default") 2>&5
2841 ac_status=$?
2842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2843 test $ac_status = 0; }; then :
2844 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2845# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2846# in a Makefile. We should not override ac_cv_exeext if it was cached,
2847# so that the user can short-circuit this test for compilers unknown to
2848# Autoconf.
2849for ac_file in $ac_files ''
2850do
2851 test -f "$ac_file" || continue
2852 case $ac_file in
2853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2854 ;;
2855 [ab].out )
2856 # We found the default executable, but exeext='' is most
2857 # certainly right.
2858 break;;
2859 *.* )
2860 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2861 then :; else
2862 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2863 fi
2864 # We set ac_cv_exeext here because the later test for it is not
2865 # safe: cross compilers may not add the suffix if given an `-o'
2866 # argument, so we may need to know it at that point already.
2867 # Even if this section looks crufty: it has the advantage of
2868 # actually working.
2869 break;;
2870 * )
2871 break;;
2872 esac
2873done
2874test "$ac_cv_exeext" = no && ac_cv_exeext=
2875
2876else
2877 ac_file=''
2878fi
2879if test -z "$ac_file"; then :
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881$as_echo "no" >&6; }
2882$as_echo "$as_me: failed program was:" >&5
2883sed 's/^/| /' conftest.$ac_ext >&5
2884
2885{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2887as_fn_error 77 "C compiler cannot create executables
2888See \`config.log' for more details" "$LINENO" 5; }
2889else
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2891$as_echo "yes" >&6; }
2892fi
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2894$as_echo_n "checking for C compiler default output file name... " >&6; }
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2896$as_echo "$ac_file" >&6; }
2897ac_exeext=$ac_cv_exeext
2898
2899rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2900ac_clean_files=$ac_clean_files_save
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2902$as_echo_n "checking for suffix of executables... " >&6; }
2903if { { ac_try="$ac_link"
2904case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907esac
2908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2909$as_echo "$ac_try_echo"; } >&5
2910 (eval "$ac_link") 2>&5
2911 ac_status=$?
2912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2913 test $ac_status = 0; }; then :
2914 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2915# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2916# work properly (i.e., refer to `conftest.exe'), while it won't with
2917# `rm'.
2918for ac_file in conftest.exe conftest conftest.*; do
2919 test -f "$ac_file" || continue
2920 case $ac_file in
2921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2922 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2923 break;;
2924 * ) break;;
2925 esac
2926done
2927else
2928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2930as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2931See \`config.log' for more details" "$LINENO" 5; }
2932fi
2933rm -f conftest conftest$ac_cv_exeext
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2935$as_echo "$ac_cv_exeext" >&6; }
2936
2937rm -f conftest.$ac_ext
2938EXEEXT=$ac_cv_exeext
2939ac_exeext=$EXEEXT
2940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941/* end confdefs.h. */
2942#include <stdio.h>
2943int
2944main ()
2945{
2946FILE *f = fopen ("conftest.out", "w");
2947 return ferror (f) || fclose (f) != 0;
2948
2949 ;
2950 return 0;
2951}
2952_ACEOF
2953ac_clean_files="$ac_clean_files conftest.out"
2954# Check that the compiler produces executables we can run. If not, either
2955# the compiler is broken, or we cross compile.
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2957$as_echo_n "checking whether we are cross compiling... " >&6; }
2958if test "$cross_compiling" != yes; then
2959 { { ac_try="$ac_link"
2960case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963esac
2964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2965$as_echo "$ac_try_echo"; } >&5
2966 (eval "$ac_link") 2>&5
2967 ac_status=$?
2968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2969 test $ac_status = 0; }
2970 if { ac_try='./conftest$ac_cv_exeext'
2971 { { case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974esac
2975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2976$as_echo "$ac_try_echo"; } >&5
2977 (eval "$ac_try") 2>&5
2978 ac_status=$?
2979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2980 test $ac_status = 0; }; }; then
2981 cross_compiling=no
2982 else
2983 if test "$cross_compiling" = maybe; then
2984 cross_compiling=yes
2985 else
2986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2988as_fn_error $? "cannot run C compiled programs.
2989If you meant to cross compile, use \`--host'.
2990See \`config.log' for more details" "$LINENO" 5; }
2991 fi
2992 fi
2993fi
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2995$as_echo "$cross_compiling" >&6; }
2996
2997rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2998ac_clean_files=$ac_clean_files_save
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3000$as_echo_n "checking for suffix of object files... " >&6; }
3001if ${ac_cv_objext+:} false; then :
3002 $as_echo_n "(cached) " >&6
3003else
3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005/* end confdefs.h. */
3006
3007int
3008main ()
3009{
3010
3011 ;
3012 return 0;
3013}
3014_ACEOF
3015rm -f conftest.o conftest.obj
3016if { { ac_try="$ac_compile"
3017case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020esac
3021eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3022$as_echo "$ac_try_echo"; } >&5
3023 (eval "$ac_compile") 2>&5
3024 ac_status=$?
3025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3026 test $ac_status = 0; }; then :
3027 for ac_file in conftest.o conftest.obj conftest.*; do
3028 test -f "$ac_file" || continue;
3029 case $ac_file in
3030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3031 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3032 break;;
3033 esac
3034done
3035else
3036 $as_echo "$as_me: failed program was:" >&5
3037sed 's/^/| /' conftest.$ac_ext >&5
3038
3039{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3041as_fn_error $? "cannot compute suffix of object files: cannot compile
3042See \`config.log' for more details" "$LINENO" 5; }
3043fi
3044rm -f conftest.$ac_cv_objext conftest.$ac_ext
3045fi
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3047$as_echo "$ac_cv_objext" >&6; }
3048OBJEXT=$ac_cv_objext
3049ac_objext=$OBJEXT
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3051$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3052if ${ac_cv_c_compiler_gnu+:} false; then :
3053 $as_echo_n "(cached) " >&6
3054else
3055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056/* end confdefs.h. */
3057
3058int
3059main ()
3060{
3061#ifndef __GNUC__
3062 choke me
3063#endif
3064
3065 ;
3066 return 0;
3067}
3068_ACEOF
3069if ac_fn_c_try_compile "$LINENO"; then :
3070 ac_compiler_gnu=yes
3071else
3072 ac_compiler_gnu=no
3073fi
3074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3075ac_cv_c_compiler_gnu=$ac_compiler_gnu
3076
3077fi
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3079$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3080if test $ac_compiler_gnu = yes; then
3081 GCC=yes
3082else
3083 GCC=
3084fi
3085ac_test_CFLAGS=${CFLAGS+set}
3086ac_save_CFLAGS=$CFLAGS
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3088$as_echo_n "checking whether $CC accepts -g... " >&6; }
3089if ${ac_cv_prog_cc_g+:} false; then :
3090 $as_echo_n "(cached) " >&6
3091else
3092 ac_save_c_werror_flag=$ac_c_werror_flag
3093 ac_c_werror_flag=yes
3094 ac_cv_prog_cc_g=no
3095 CFLAGS="-g"
3096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3097/* end confdefs.h. */
3098
3099int
3100main ()
3101{
3102
3103 ;
3104 return 0;
3105}
3106_ACEOF
3107if ac_fn_c_try_compile "$LINENO"; then :
3108 ac_cv_prog_cc_g=yes
3109else
3110 CFLAGS=""
3111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112/* end confdefs.h. */
3113
3114int
3115main ()
3116{
3117
3118 ;
3119 return 0;
3120}
3121_ACEOF
3122if ac_fn_c_try_compile "$LINENO"; then :
3123
3124else
3125 ac_c_werror_flag=$ac_save_c_werror_flag
3126 CFLAGS="-g"
3127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3128/* end confdefs.h. */
3129
3130int
3131main ()
3132{
3133
3134 ;
3135 return 0;
3136}
3137_ACEOF
3138if ac_fn_c_try_compile "$LINENO"; then :
3139 ac_cv_prog_cc_g=yes
3140fi
3141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142fi
3143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3144fi
3145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3146 ac_c_werror_flag=$ac_save_c_werror_flag
3147fi
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3149$as_echo "$ac_cv_prog_cc_g" >&6; }
3150if test "$ac_test_CFLAGS" = set; then
3151 CFLAGS=$ac_save_CFLAGS
3152elif test $ac_cv_prog_cc_g = yes; then
3153 if test "$GCC" = yes; then
3154 CFLAGS="-g -O2"
3155 else
3156 CFLAGS="-g"
3157 fi
3158else
3159 if test "$GCC" = yes; then
3160 CFLAGS="-O2"
3161 else
3162 CFLAGS=
3163 fi
3164fi
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3166$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3167if ${ac_cv_prog_cc_c89+:} false; then :
3168 $as_echo_n "(cached) " >&6
3169else
3170 ac_cv_prog_cc_c89=no
3171ac_save_CC=$CC
3172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173/* end confdefs.h. */
3174#include <stdarg.h>
3175#include <stdio.h>
Alexandre Lision8af73cb2013-12-10 14:11:20 -05003176#include <sys/types.h>
3177#include <sys/stat.h>
Tristan Matthews0a329cc2013-07-17 13:20:14 -04003178/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3179struct buf { int x; };
3180FILE * (*rcsopen) (struct buf *, struct stat *, int);
3181static char *e (p, i)
3182 char **p;
3183 int i;
3184{
3185 return p[i];
3186}
3187static char *f (char * (*g) (char **, int), char **p, ...)
3188{
3189 char *s;
3190 va_list v;
3191 va_start (v,p);
3192 s = g (p, va_arg (v,int));
3193 va_end (v);
3194 return s;
3195}
3196
3197/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3198 function prototypes and stuff, but not '\xHH' hex character constants.
3199 These don't provoke an error unfortunately, instead are silently treated
3200 as 'x'. The following induces an error, until -std is added to get
3201 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3202 array size at least. It's necessary to write '\x00'==0 to get something
3203 that's true only with -std. */
3204int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3205
3206/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3207 inside strings and character constants. */
3208#define FOO(x) 'x'
3209int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3210
3211int test (int i, double x);
3212struct s1 {int (*f) (int a);};
3213struct s2 {int (*f) (double a);};
3214int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3215int argc;
3216char **argv;
3217int
3218main ()
3219{
3220return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3221 ;
3222 return 0;
3223}
3224_ACEOF
3225for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3227do
3228 CC="$ac_save_CC $ac_arg"
3229 if ac_fn_c_try_compile "$LINENO"; then :
3230 ac_cv_prog_cc_c89=$ac_arg
3231fi
3232rm -f core conftest.err conftest.$ac_objext
3233 test "x$ac_cv_prog_cc_c89" != "xno" && break
3234done
3235rm -f conftest.$ac_ext
3236CC=$ac_save_CC
3237
3238fi
3239# AC_CACHE_VAL
3240case "x$ac_cv_prog_cc_c89" in
3241 x)
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3243$as_echo "none needed" >&6; } ;;
3244 xno)
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3246$as_echo "unsupported" >&6; } ;;
3247 *)
3248 CC="$CC $ac_cv_prog_cc_c89"
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3250$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3251esac
3252if test "x$ac_cv_prog_cc_c89" != xno; then :
3253
3254fi
3255
3256ac_ext=c
3257ac_cpp='$CPP $CPPFLAGS'
3258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3260ac_compiler_gnu=$ac_cv_c_compiler_gnu
3261
3262ac_ext=cpp
3263ac_cpp='$CXXCPP $CPPFLAGS'
3264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3267if test -z "$CXX"; then
3268 if test -n "$CCC"; then
3269 CXX=$CCC
3270 else
3271 if test -n "$ac_tool_prefix"; then
3272 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3273 do
3274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3275set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277$as_echo_n "checking for $ac_word... " >&6; }
3278if ${ac_cv_prog_CXX+:} false; then :
3279 $as_echo_n "(cached) " >&6
3280else
3281 if test -n "$CXX"; then
3282 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3283else
3284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285for as_dir in $PATH
3286do
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lision8af73cb2013-12-10 14:11:20 -05003290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Tristan Matthews0a329cc2013-07-17 13:20:14 -04003291 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
3294 fi
3295done
3296 done
3297IFS=$as_save_IFS
3298
3299fi
3300fi
3301CXX=$ac_cv_prog_CXX
3302if test -n "$CXX"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3304$as_echo "$CXX" >&6; }
3305else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307$as_echo "no" >&6; }
3308fi
3309
3310
3311 test -n "$CXX" && break
3312 done
3313fi
3314if test -z "$CXX"; then
3315 ac_ct_CXX=$CXX
3316 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3317do
3318 # Extract the first word of "$ac_prog", so it can be a program name with args.
3319set dummy $ac_prog; ac_word=$2
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321$as_echo_n "checking for $ac_word... " >&6; }
3322if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3323 $as_echo_n "(cached) " >&6
3324else
3325 if test -n "$ac_ct_CXX"; then
3326 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3327else
3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329for as_dir in $PATH
3330do
3331 IFS=$as_save_IFS
3332 test -z "$as_dir" && as_dir=.
3333 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lision8af73cb2013-12-10 14:11:20 -05003334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Tristan Matthews0a329cc2013-07-17 13:20:14 -04003335 ac_cv_prog_ac_ct_CXX="$ac_prog"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 break 2
3338 fi
3339done
3340 done
3341IFS=$as_save_IFS
3342
3343fi
3344fi
3345ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3346if test -n "$ac_ct_CXX"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3348$as_echo "$ac_ct_CXX" >&6; }
3349else
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351$as_echo "no" >&6; }
3352fi
3353
3354
3355 test -n "$ac_ct_CXX" && break
3356done
3357
3358 if test "x$ac_ct_CXX" = x; then
3359 CXX="g++"
3360 else
3361 case $cross_compiling:$ac_tool_warned in
3362yes:)
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3365ac_tool_warned=yes ;;
3366esac
3367 CXX=$ac_ct_CXX
3368 fi
3369fi
3370
3371 fi
3372fi
3373# Provide some information about the compiler.
3374$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3375set X $ac_compile
3376ac_compiler=$2
3377for ac_option in --version -v -V -qversion; do
3378 { { ac_try="$ac_compiler $ac_option >&5"
3379case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382esac
3383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384$as_echo "$ac_try_echo"; } >&5
3385 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3386 ac_status=$?
3387 if test -s conftest.err; then
3388 sed '10a\
3389... rest of stderr output deleted ...
3390 10q' conftest.err >conftest.er1
3391 cat conftest.er1 >&5
3392 fi
3393 rm -f conftest.er1 conftest.err
3394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395 test $ac_status = 0; }
3396done
3397
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3399$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3400if ${ac_cv_cxx_compiler_gnu+:} false; then :
3401 $as_echo_n "(cached) " >&6
3402else
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404/* end confdefs.h. */
3405
3406int
3407main ()
3408{
3409#ifndef __GNUC__
3410 choke me
3411#endif
3412
3413 ;
3414 return 0;
3415}
3416_ACEOF
3417if ac_fn_cxx_try_compile "$LINENO"; then :
3418 ac_compiler_gnu=yes
3419else
3420 ac_compiler_gnu=no
3421fi
3422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3424
3425fi
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3427$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3428if test $ac_compiler_gnu = yes; then
3429 GXX=yes
3430else
3431 GXX=
3432fi
3433ac_test_CXXFLAGS=${CXXFLAGS+set}
3434ac_save_CXXFLAGS=$CXXFLAGS
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3436$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3437if ${ac_cv_prog_cxx_g+:} false; then :
3438 $as_echo_n "(cached) " >&6
3439else
3440 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3441 ac_cxx_werror_flag=yes
3442 ac_cv_prog_cxx_g=no
3443 CXXFLAGS="-g"
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445/* end confdefs.h. */
3446
3447int
3448main ()
3449{
3450
3451 ;
3452 return 0;
3453}
3454_ACEOF
3455if ac_fn_cxx_try_compile "$LINENO"; then :
3456 ac_cv_prog_cxx_g=yes
3457else
3458 CXXFLAGS=""
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460/* end confdefs.h. */
3461
3462int
3463main ()
3464{
3465
3466 ;
3467 return 0;
3468}
3469_ACEOF
3470if ac_fn_cxx_try_compile "$LINENO"; then :
3471
3472else
3473 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3474 CXXFLAGS="-g"
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476/* end confdefs.h. */
3477
3478int
3479main ()
3480{
3481
3482 ;
3483 return 0;
3484}
3485_ACEOF
3486if ac_fn_cxx_try_compile "$LINENO"; then :
3487 ac_cv_prog_cxx_g=yes
3488fi
3489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3490fi
3491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492fi
3493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3495fi
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3497$as_echo "$ac_cv_prog_cxx_g" >&6; }
3498if test "$ac_test_CXXFLAGS" = set; then
3499 CXXFLAGS=$ac_save_CXXFLAGS
3500elif test $ac_cv_prog_cxx_g = yes; then
3501 if test "$GXX" = yes; then
3502 CXXFLAGS="-g -O2"
3503 else
3504 CXXFLAGS="-g"
3505 fi
3506else
3507 if test "$GXX" = yes; then
3508 CXXFLAGS="-O2"
3509 else
3510 CXXFLAGS=
3511 fi
3512fi
3513ac_ext=c
3514ac_cpp='$CPP $CPPFLAGS'
3515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517ac_compiler_gnu=$ac_cv_c_compiler_gnu
3518
3519ac_ext=c
3520ac_cpp='$CPP $CPPFLAGS'
3521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3523ac_compiler_gnu=$ac_cv_c_compiler_gnu
3524
3525
Alexandre Lision8af73cb2013-12-10 14:11:20 -05003526if test -n "$ac_tool_prefix"; then
3527 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3528set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530$as_echo_n "checking for $ac_word... " >&6; }
3531if ${ac_cv_prog_RANLIB+:} false; then :
3532 $as_echo_n "(cached) " >&6
3533else
3534 if test -n "$RANLIB"; then
3535 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3536else
3537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538for as_dir in $PATH
3539do
3540 IFS=$as_save_IFS
3541 test -z "$as_dir" && as_dir=.
3542 for ac_exec_ext in '' $ac_executable_extensions; do
3543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3544 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3546 break 2
3547 fi
3548done
3549 done
3550IFS=$as_save_IFS
3551
3552fi
3553fi
3554RANLIB=$ac_cv_prog_RANLIB
3555if test -n "$RANLIB"; then
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3557$as_echo "$RANLIB" >&6; }
3558else
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560$as_echo "no" >&6; }
Tristan Matthews0a329cc2013-07-17 13:20:14 -04003561fi
3562
Alexandre Lision8af73cb2013-12-10 14:11:20 -05003563
3564fi
3565if test -z "$ac_cv_prog_RANLIB"; then
3566 ac_ct_RANLIB=$RANLIB
3567 # Extract the first word of "ranlib", so it can be a program name with args.
3568set dummy ranlib; ac_word=$2
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570$as_echo_n "checking for $ac_word... " >&6; }
3571if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3572 $as_echo_n "(cached) " >&6
3573else
3574 if test -n "$ac_ct_RANLIB"; then
3575 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3576else
3577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578for as_dir in $PATH
3579do
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584 ac_cv_prog_ac_ct_RANLIB="ranlib"
3585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3586 break 2
3587 fi
3588done
3589 done
3590IFS=$as_save_IFS
3591
3592fi
3593fi
3594ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3595if test -n "$ac_ct_RANLIB"; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3597$as_echo "$ac_ct_RANLIB" >&6; }
3598else
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600$as_echo "no" >&6; }
3601fi
3602
3603 if test "x$ac_ct_RANLIB" = x; then
3604 RANLIB=":"
3605 else
3606 case $cross_compiling:$ac_tool_warned in
3607yes:)
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3610ac_tool_warned=yes ;;
3611esac
3612 RANLIB=$ac_ct_RANLIB
3613 fi
3614else
3615 RANLIB="$ac_cv_prog_RANLIB"
3616fi
3617
3618if test -n "$ac_tool_prefix"; then
3619 for ac_prog in ar gar
3620 do
3621 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3622set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624$as_echo_n "checking for $ac_word... " >&6; }
3625if ${ac_cv_prog_AR+:} false; then :
3626 $as_echo_n "(cached) " >&6
3627else
3628 if test -n "$AR"; then
3629 ac_cv_prog_AR="$AR" # Let the user override the test.
3630else
3631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632for as_dir in $PATH
3633do
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3638 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 break 2
3641 fi
3642done
3643 done
3644IFS=$as_save_IFS
3645
3646fi
3647fi
3648AR=$ac_cv_prog_AR
3649if test -n "$AR"; then
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3651$as_echo "$AR" >&6; }
3652else
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654$as_echo "no" >&6; }
3655fi
3656
3657
3658 test -n "$AR" && break
3659 done
3660fi
3661if test -z "$AR"; then
3662 ac_ct_AR=$AR
3663 for ac_prog in ar gar
3664do
3665 # Extract the first word of "$ac_prog", so it can be a program name with args.
3666set dummy $ac_prog; ac_word=$2
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668$as_echo_n "checking for $ac_word... " >&6; }
3669if ${ac_cv_prog_ac_ct_AR+:} false; then :
3670 $as_echo_n "(cached) " >&6
3671else
3672 if test -n "$ac_ct_AR"; then
3673 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3674else
3675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3682 ac_cv_prog_ac_ct_AR="$ac_prog"
3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 break 2
3685 fi
3686done
3687 done
3688IFS=$as_save_IFS
3689
3690fi
3691fi
3692ac_ct_AR=$ac_cv_prog_ac_ct_AR
3693if test -n "$ac_ct_AR"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3695$as_echo "$ac_ct_AR" >&6; }
3696else
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698$as_echo "no" >&6; }
3699fi
3700
3701
3702 test -n "$ac_ct_AR" && break
3703done
3704
3705 if test "x$ac_ct_AR" = x; then
3706 AR=":"
3707 else
3708 case $cross_compiling:$ac_tool_warned in
3709yes:)
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3712ac_tool_warned=yes ;;
3713esac
3714 AR=$ac_ct_AR
3715 fi
3716fi
3717
3718
3719if test "$AR_FLAGS" = ""; then AR_FLAGS="rv"; fi
Tristan Matthews0a329cc2013-07-17 13:20:14 -04003720
3721if test "$LD" = ""; then LD="$CC"; fi
3722
3723if test "$LDOUT" = ""; then LDOUT="-o "; fi
3724
Tristan Matthews0a329cc2013-07-17 13:20:14 -04003725if test "$OBJEXT" = ""; then OBJEXT='o'; fi
3726
3727if test "$LIBEXT" = ""; then LIBEXT='a'; fi
3728
3729if test "$LIBEXT2" = ""; then LIBEXT2=""; fi
3730
3731if test "$CC_OUT" = ""; then CC_OUT="-o "; fi
3732
3733if test "$CC_INC" = ""; then CC_INC="-I"; fi
3734
3735if test "$CC_DEF" = ""; then CC_DEF="-D"; fi
3736
3737if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi
3738
3739if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi
3740
3741
3742
3743
3744
3745
3746
3747case $host in
3748 *mingw* | *cygw* | *win32* | *w32* )
3749 if pwd -W 2&> /dev/null; then
3750 ac_pjdir=`pwd -W`
3751 else
3752 # We're probably cross-compiling mingw on Linux
3753 ac_pjdir=`pwd`
3754 fi
3755 ;;
3756 *)
3757 ac_pjdir=`pwd`
3758 ;;
3759esac
3760
3761
3762case $target in
3763 *mingw* | *cygw* | *win32* | *w32* )
3764 ac_shlib_suffix=dll
3765 ;;
3766 *darwin*)
3767 ac_shlib_suffix=dylib
3768 ;;
3769 *)
3770 ac_shlib_suffix=so
3771 ;;
3772esac
3773
3774
3775if test "$build" = "$host"; then
3776 ac_cross_compile=
3777else
3778 ac_cross_compile=${host_orig}-
3779fi
3780
3781
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
3783$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
3784if ${ac_cv_lib_pthread_pthread_create+:} false; then :
3785 $as_echo_n "(cached) " >&6
3786else
3787 ac_check_lib_save_LIBS=$LIBS
3788LIBS="-lpthread $LIBS"
3789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790/* end confdefs.h. */
3791
3792/* Override any GCC internal prototype to avoid an error.
3793 Use char because int might match the return type of a GCC
3794 builtin and then its argument prototype would still apply. */
3795#ifdef __cplusplus
3796extern "C"
3797#endif
3798char pthread_create ();
3799int
3800main ()
3801{
3802return pthread_create ();
3803 ;
3804 return 0;
3805}
3806_ACEOF
3807if ac_fn_c_try_link "$LINENO"; then :
3808 ac_cv_lib_pthread_pthread_create=yes
3809else
3810 ac_cv_lib_pthread_pthread_create=no
3811fi
3812rm -f core conftest.err conftest.$ac_objext \
3813 conftest$ac_exeext conftest.$ac_ext
3814LIBS=$ac_check_lib_save_LIBS
3815fi
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
3817$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
3818if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
3819 cat >>confdefs.h <<_ACEOF
3820#define HAVE_LIBPTHREAD 1
3821_ACEOF
3822
3823 LIBS="-lpthread $LIBS"
3824
3825fi
3826
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5
3828$as_echo_n "checking for puts in -lwsock32... " >&6; }
3829if ${ac_cv_lib_wsock32_puts+:} false; then :
3830 $as_echo_n "(cached) " >&6
3831else
3832 ac_check_lib_save_LIBS=$LIBS
3833LIBS="-lwsock32 $LIBS"
3834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h. */
3836
3837/* Override any GCC internal prototype to avoid an error.
3838 Use char because int might match the return type of a GCC
3839 builtin and then its argument prototype would still apply. */
3840#ifdef __cplusplus
3841extern "C"
3842#endif
3843char puts ();
3844int
3845main ()
3846{
3847return puts ();
3848 ;
3849 return 0;
3850}
3851_ACEOF
3852if ac_fn_c_try_link "$LINENO"; then :
3853 ac_cv_lib_wsock32_puts=yes
3854else
3855 ac_cv_lib_wsock32_puts=no
3856fi
3857rm -f core conftest.err conftest.$ac_objext \
3858 conftest$ac_exeext conftest.$ac_ext
3859LIBS=$ac_check_lib_save_LIBS
3860fi
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5
3862$as_echo "$ac_cv_lib_wsock32_puts" >&6; }
3863if test "x$ac_cv_lib_wsock32_puts" = xyes; then :
3864 cat >>confdefs.h <<_ACEOF
3865#define HAVE_LIBWSOCK32 1
3866_ACEOF
3867
3868 LIBS="-lwsock32 $LIBS"
3869
3870fi
3871
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5
3873$as_echo_n "checking for puts in -lws2_32... " >&6; }
3874if ${ac_cv_lib_ws2_32_puts+:} false; then :
3875 $as_echo_n "(cached) " >&6
3876else
3877 ac_check_lib_save_LIBS=$LIBS
3878LIBS="-lws2_32 $LIBS"
3879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880/* end confdefs.h. */
3881
3882/* Override any GCC internal prototype to avoid an error.
3883 Use char because int might match the return type of a GCC
3884 builtin and then its argument prototype would still apply. */
3885#ifdef __cplusplus
3886extern "C"
3887#endif
3888char puts ();
3889int
3890main ()
3891{
3892return puts ();
3893 ;
3894 return 0;
3895}
3896_ACEOF
3897if ac_fn_c_try_link "$LINENO"; then :
3898 ac_cv_lib_ws2_32_puts=yes
3899else
3900 ac_cv_lib_ws2_32_puts=no
3901fi
3902rm -f core conftest.err conftest.$ac_objext \
3903 conftest$ac_exeext conftest.$ac_ext
3904LIBS=$ac_check_lib_save_LIBS
3905fi
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5
3907$as_echo "$ac_cv_lib_ws2_32_puts" >&6; }
3908if test "x$ac_cv_lib_ws2_32_puts" = xyes; then :
3909 cat >>confdefs.h <<_ACEOF
3910#define HAVE_LIBWS2_32 1
3911_ACEOF
3912
3913 LIBS="-lws2_32 $LIBS"
3914
3915fi
3916
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5
3918$as_echo_n "checking for puts in -lole32... " >&6; }
3919if ${ac_cv_lib_ole32_puts+:} false; then :
3920 $as_echo_n "(cached) " >&6
3921else
3922 ac_check_lib_save_LIBS=$LIBS
3923LIBS="-lole32 $LIBS"
3924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925/* end confdefs.h. */
3926
3927/* Override any GCC internal prototype to avoid an error.
3928 Use char because int might match the return type of a GCC
3929 builtin and then its argument prototype would still apply. */
3930#ifdef __cplusplus
3931extern "C"
3932#endif
3933char puts ();
3934int
3935main ()
3936{
3937return puts ();
3938 ;
3939 return 0;
3940}
3941_ACEOF
3942if ac_fn_c_try_link "$LINENO"; then :
3943 ac_cv_lib_ole32_puts=yes
3944else
3945 ac_cv_lib_ole32_puts=no
3946fi
3947rm -f core conftest.err conftest.$ac_objext \
3948 conftest$ac_exeext conftest.$ac_ext
3949LIBS=$ac_check_lib_save_LIBS
3950fi
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5
3952$as_echo "$ac_cv_lib_ole32_puts" >&6; }
3953if test "x$ac_cv_lib_ole32_puts" = xyes; then :
3954 cat >>confdefs.h <<_ACEOF
3955#define HAVE_LIBOLE32 1
3956_ACEOF
3957
3958 LIBS="-lole32 $LIBS"
3959
3960fi
3961
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5
3963$as_echo_n "checking for puts in -lwinmm... " >&6; }
3964if ${ac_cv_lib_winmm_puts+:} false; then :
3965 $as_echo_n "(cached) " >&6
3966else
3967 ac_check_lib_save_LIBS=$LIBS
3968LIBS="-lwinmm $LIBS"
3969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970/* end confdefs.h. */
3971
3972/* Override any GCC internal prototype to avoid an error.
3973 Use char because int might match the return type of a GCC
3974 builtin and then its argument prototype would still apply. */
3975#ifdef __cplusplus
3976extern "C"
3977#endif
3978char puts ();
3979int
3980main ()
3981{
3982return puts ();
3983 ;
3984 return 0;
3985}
3986_ACEOF
3987if ac_fn_c_try_link "$LINENO"; then :
3988 ac_cv_lib_winmm_puts=yes
3989else
3990 ac_cv_lib_winmm_puts=no
3991fi
3992rm -f core conftest.err conftest.$ac_objext \
3993 conftest$ac_exeext conftest.$ac_ext
3994LIBS=$ac_check_lib_save_LIBS
3995fi
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5
3997$as_echo "$ac_cv_lib_winmm_puts" >&6; }
3998if test "x$ac_cv_lib_winmm_puts" = xyes; then :
3999 cat >>confdefs.h <<_ACEOF
4000#define HAVE_LIBWINMM 1
4001_ACEOF
4002
4003 LIBS="-lwinmm $LIBS"
4004
4005fi
4006
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5
4008$as_echo_n "checking for puts in -lsocket... " >&6; }
4009if ${ac_cv_lib_socket_puts+:} false; then :
4010 $as_echo_n "(cached) " >&6
4011else
4012 ac_check_lib_save_LIBS=$LIBS
4013LIBS="-lsocket $LIBS"
4014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015/* end confdefs.h. */
4016
4017/* Override any GCC internal prototype to avoid an error.
4018 Use char because int might match the return type of a GCC
4019 builtin and then its argument prototype would still apply. */
4020#ifdef __cplusplus
4021extern "C"
4022#endif
4023char puts ();
4024int
4025main ()
4026{
4027return puts ();
4028 ;
4029 return 0;
4030}
4031_ACEOF
4032if ac_fn_c_try_link "$LINENO"; then :
4033 ac_cv_lib_socket_puts=yes
4034else
4035 ac_cv_lib_socket_puts=no
4036fi
4037rm -f core conftest.err conftest.$ac_objext \
4038 conftest$ac_exeext conftest.$ac_ext
4039LIBS=$ac_check_lib_save_LIBS
4040fi
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5
4042$as_echo "$ac_cv_lib_socket_puts" >&6; }
4043if test "x$ac_cv_lib_socket_puts" = xyes; then :
4044 cat >>confdefs.h <<_ACEOF
4045#define HAVE_LIBSOCKET 1
4046_ACEOF
4047
4048 LIBS="-lsocket $LIBS"
4049
4050fi
4051
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5
4053$as_echo_n "checking for puts in -lrt... " >&6; }
4054if ${ac_cv_lib_rt_puts+:} false; then :
4055 $as_echo_n "(cached) " >&6
4056else
4057 ac_check_lib_save_LIBS=$LIBS
4058LIBS="-lrt $LIBS"
4059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060/* end confdefs.h. */
4061
4062/* Override any GCC internal prototype to avoid an error.
4063 Use char because int might match the return type of a GCC
4064 builtin and then its argument prototype would still apply. */
4065#ifdef __cplusplus
4066extern "C"
4067#endif
4068char puts ();
4069int
4070main ()
4071{
4072return puts ();
4073 ;
4074 return 0;
4075}
4076_ACEOF
4077if ac_fn_c_try_link "$LINENO"; then :
4078 ac_cv_lib_rt_puts=yes
4079else
4080 ac_cv_lib_rt_puts=no
4081fi
4082rm -f core conftest.err conftest.$ac_objext \
4083 conftest$ac_exeext conftest.$ac_ext
4084LIBS=$ac_check_lib_save_LIBS
4085fi
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5
4087$as_echo "$ac_cv_lib_rt_puts" >&6; }
4088if test "x$ac_cv_lib_rt_puts" = xyes; then :
4089 cat >>confdefs.h <<_ACEOF
4090#define HAVE_LIBRT 1
4091_ACEOF
4092
4093 LIBS="-lrt $LIBS"
4094
4095fi
4096
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5
4098$as_echo_n "checking for puts in -lnsl... " >&6; }
4099if ${ac_cv_lib_nsl_puts+:} false; then :
4100 $as_echo_n "(cached) " >&6
4101else
4102 ac_check_lib_save_LIBS=$LIBS
4103LIBS="-lnsl $LIBS"
4104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105/* end confdefs.h. */
4106
4107/* Override any GCC internal prototype to avoid an error.
4108 Use char because int might match the return type of a GCC
4109 builtin and then its argument prototype would still apply. */
4110#ifdef __cplusplus
4111extern "C"
4112#endif
4113char puts ();
4114int
4115main ()
4116{
4117return puts ();
4118 ;
4119 return 0;
4120}
4121_ACEOF
4122if ac_fn_c_try_link "$LINENO"; then :
4123 ac_cv_lib_nsl_puts=yes
4124else
4125 ac_cv_lib_nsl_puts=no
4126fi
4127rm -f core conftest.err conftest.$ac_objext \
4128 conftest$ac_exeext conftest.$ac_ext
4129LIBS=$ac_check_lib_save_LIBS
4130fi
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5
4132$as_echo "$ac_cv_lib_nsl_puts" >&6; }
4133if test "x$ac_cv_lib_nsl_puts" = xyes; then :
4134 cat >>confdefs.h <<_ACEOF
4135#define HAVE_LIBNSL 1
4136_ACEOF
4137
4138 LIBS="-lnsl $LIBS"
4139
4140fi
4141
Alexandre Lision8af73cb2013-12-10 14:11:20 -05004142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
4143$as_echo_n "checking for sin in -lm... " >&6; }
4144if ${ac_cv_lib_m_sin+:} false; then :
4145 $as_echo_n "(cached) " >&6
4146else
4147 ac_check_lib_save_LIBS=$LIBS
4148LIBS="-lm $LIBS"
4149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150/* end confdefs.h. */
4151
4152/* Override any GCC internal prototype to avoid an error.
4153 Use char because int might match the return type of a GCC
4154 builtin and then its argument prototype would still apply. */
4155#ifdef __cplusplus
4156extern "C"
4157#endif
4158char sin ();
4159int
4160main ()
4161{
4162return sin ();
4163 ;
4164 return 0;
4165}
4166_ACEOF
4167if ac_fn_c_try_link "$LINENO"; then :
4168 ac_cv_lib_m_sin=yes
4169else
4170 ac_cv_lib_m_sin=no
4171fi
4172rm -f core conftest.err conftest.$ac_objext \
4173 conftest$ac_exeext conftest.$ac_ext
4174LIBS=$ac_check_lib_save_LIBS
4175fi
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
4177$as_echo "$ac_cv_lib_m_sin" >&6; }
4178if test "x$ac_cv_lib_m_sin" = xyes; then :
4179 cat >>confdefs.h <<_ACEOF
4180#define HAVE_LIBM 1
4181_ACEOF
4182
4183 LIBS="-lm $LIBS"
4184
4185fi
4186
Tristan Matthews0a329cc2013-07-17 13:20:14 -04004187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4188$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4189if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4190 $as_echo_n "(cached) " >&6
4191else
4192 ac_check_lib_save_LIBS=$LIBS
4193LIBS="-luuid $LIBS"
4194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195/* end confdefs.h. */
4196
4197/* Override any GCC internal prototype to avoid an error.
4198 Use char because int might match the return type of a GCC
4199 builtin and then its argument prototype would still apply. */
4200#ifdef __cplusplus
4201extern "C"
4202#endif
4203char uuid_generate ();
4204int
4205main ()
4206{
4207return uuid_generate ();
4208 ;
4209 return 0;
4210}
4211_ACEOF
4212if ac_fn_c_try_link "$LINENO"; then :
4213 ac_cv_lib_uuid_uuid_generate=yes
4214else
4215 ac_cv_lib_uuid_uuid_generate=no
4216fi
4217rm -f core conftest.err conftest.$ac_objext \
4218 conftest$ac_exeext conftest.$ac_ext
4219LIBS=$ac_check_lib_save_LIBS
4220fi
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4222$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4223if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4224 cat >>confdefs.h <<_ACEOF
4225#define HAVE_LIBUUID 1
4226_ACEOF
4227
4228 LIBS="-luuid $LIBS"
4229
4230fi
4231
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4233$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4234if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4235 $as_echo_n "(cached) " >&6
4236else
4237 ac_check_lib_save_LIBS=$LIBS
4238LIBS="-luuid $LIBS"
4239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240/* end confdefs.h. */
4241
4242/* Override any GCC internal prototype to avoid an error.
4243 Use char because int might match the return type of a GCC
4244 builtin and then its argument prototype would still apply. */
4245#ifdef __cplusplus
4246extern "C"
4247#endif
4248char uuid_generate ();
4249int
4250main ()
4251{
4252return uuid_generate ();
4253 ;
4254 return 0;
4255}
4256_ACEOF
4257if ac_fn_c_try_link "$LINENO"; then :
4258 ac_cv_lib_uuid_uuid_generate=yes
4259else
4260 ac_cv_lib_uuid_uuid_generate=no
4261fi
4262rm -f core conftest.err conftest.$ac_objext \
4263 conftest$ac_exeext conftest.$ac_ext
4264LIBS=$ac_check_lib_save_LIBS
4265fi
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4267$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4268if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4269 ac_has_uuid_lib=1
4270fi
4271
4272
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5
4274$as_echo "Setting PJ_M_NAME to $target_cpu" >&6; }
4275cat >>confdefs.h <<_ACEOF
4276#define PJ_M_NAME "$target_cpu"
4277_ACEOF
4278
4279
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5
4281$as_echo_n "checking memory alignment... " >&6; }
4282case $target in
4283 sparc64-* | ia64-* | x86_64-* )
4284 $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h
4285
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5
4287$as_echo "8 bytes" >&6; }
4288 ;;
4289 * )
4290 $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h
4291
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5
4293$as_echo "4 bytes (default)" >&6; }
4294 ;;
4295esac
4296
4297
4298ac_ext=c
4299ac_cpp='$CPP $CPPFLAGS'
4300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4304$as_echo_n "checking how to run the C preprocessor... " >&6; }
4305# On Suns, sometimes $CPP names a directory.
4306if test -n "$CPP" && test -d "$CPP"; then
4307 CPP=
4308fi
4309if test -z "$CPP"; then
4310 if ${ac_cv_prog_CPP+:} false; then :
4311 $as_echo_n "(cached) " >&6
4312else
4313 # Double quotes because CPP needs to be expanded
4314 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4315 do
4316 ac_preproc_ok=false
4317for ac_c_preproc_warn_flag in '' yes
4318do
4319 # Use a header file that comes with gcc, so configuring glibc
4320 # with a fresh cross-compiler works.
4321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4322 # <limits.h> exists even on freestanding compilers.
4323 # On the NeXT, cc -E runs the code through the compiler's parser,
4324 # not just through cpp. "Syntax error" is here to catch this case.
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326/* end confdefs.h. */
4327#ifdef __STDC__
4328# include <limits.h>
4329#else
4330# include <assert.h>
4331#endif
4332 Syntax error
4333_ACEOF
4334if ac_fn_c_try_cpp "$LINENO"; then :
4335
4336else
4337 # Broken: fails on valid input.
4338continue
4339fi
4340rm -f conftest.err conftest.i conftest.$ac_ext
4341
4342 # OK, works on sane cases. Now check whether nonexistent headers
4343 # can be detected and how.
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345/* end confdefs.h. */
4346#include <ac_nonexistent.h>
4347_ACEOF
4348if ac_fn_c_try_cpp "$LINENO"; then :
4349 # Broken: success on invalid input.
4350continue
4351else
4352 # Passes both tests.
4353ac_preproc_ok=:
4354break
4355fi
4356rm -f conftest.err conftest.i conftest.$ac_ext
4357
4358done
4359# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4360rm -f conftest.i conftest.err conftest.$ac_ext
4361if $ac_preproc_ok; then :
4362 break
4363fi
4364
4365 done
4366 ac_cv_prog_CPP=$CPP
4367
4368fi
4369 CPP=$ac_cv_prog_CPP
4370else
4371 ac_cv_prog_CPP=$CPP
4372fi
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4374$as_echo "$CPP" >&6; }
4375ac_preproc_ok=false
4376for ac_c_preproc_warn_flag in '' yes
4377do
4378 # Use a header file that comes with gcc, so configuring glibc
4379 # with a fresh cross-compiler works.
4380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4381 # <limits.h> exists even on freestanding compilers.
4382 # On the NeXT, cc -E runs the code through the compiler's parser,
4383 # not just through cpp. "Syntax error" is here to catch this case.
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385/* end confdefs.h. */
4386#ifdef __STDC__
4387# include <limits.h>
4388#else
4389# include <assert.h>
4390#endif
4391 Syntax error
4392_ACEOF
4393if ac_fn_c_try_cpp "$LINENO"; then :
4394
4395else
4396 # Broken: fails on valid input.
4397continue
4398fi
4399rm -f conftest.err conftest.i conftest.$ac_ext
4400
4401 # OK, works on sane cases. Now check whether nonexistent headers
4402 # can be detected and how.
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404/* end confdefs.h. */
4405#include <ac_nonexistent.h>
4406_ACEOF
4407if ac_fn_c_try_cpp "$LINENO"; then :
4408 # Broken: success on invalid input.
4409continue
4410else
4411 # Passes both tests.
4412ac_preproc_ok=:
4413break
4414fi
4415rm -f conftest.err conftest.i conftest.$ac_ext
4416
4417done
4418# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4419rm -f conftest.i conftest.err conftest.$ac_ext
4420if $ac_preproc_ok; then :
4421
4422else
4423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4425as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4426See \`config.log' for more details" "$LINENO" 5; }
4427fi
4428
4429ac_ext=c
4430ac_cpp='$CPP $CPPFLAGS'
4431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433ac_compiler_gnu=$ac_cv_c_compiler_gnu
4434
4435
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4437$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4438if ${ac_cv_path_GREP+:} false; then :
4439 $as_echo_n "(cached) " >&6
4440else
4441 if test -z "$GREP"; then
4442 ac_path_GREP_found=false
4443 # Loop through the user's path and test for each of PROGNAME-LIST
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_prog in grep ggrep; do
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Alexandre Lision8af73cb2013-12-10 14:11:20 -05004452 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Tristan Matthews0a329cc2013-07-17 13:20:14 -04004453# Check for GNU ac_path_GREP and select it if it is found.
4454 # Check for GNU $ac_path_GREP
4455case `"$ac_path_GREP" --version 2>&1` in
4456*GNU*)
4457 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4458*)
4459 ac_count=0
4460 $as_echo_n 0123456789 >"conftest.in"
4461 while :
4462 do
4463 cat "conftest.in" "conftest.in" >"conftest.tmp"
4464 mv "conftest.tmp" "conftest.in"
4465 cp "conftest.in" "conftest.nl"
4466 $as_echo 'GREP' >> "conftest.nl"
4467 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4469 as_fn_arith $ac_count + 1 && ac_count=$as_val
4470 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4471 # Best one so far, save it but keep looking for a better one
4472 ac_cv_path_GREP="$ac_path_GREP"
4473 ac_path_GREP_max=$ac_count
4474 fi
4475 # 10*(2^10) chars as input seems more than enough
4476 test $ac_count -gt 10 && break
4477 done
4478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4479esac
4480
4481 $ac_path_GREP_found && break 3
4482 done
4483 done
4484 done
4485IFS=$as_save_IFS
4486 if test -z "$ac_cv_path_GREP"; then
4487 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4488 fi
4489else
4490 ac_cv_path_GREP=$GREP
4491fi
4492
4493fi
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4495$as_echo "$ac_cv_path_GREP" >&6; }
4496 GREP="$ac_cv_path_GREP"
4497
4498
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4500$as_echo_n "checking for egrep... " >&6; }
4501if ${ac_cv_path_EGREP+:} false; then :
4502 $as_echo_n "(cached) " >&6
4503else
4504 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4505 then ac_cv_path_EGREP="$GREP -E"
4506 else
4507 if test -z "$EGREP"; then
4508 ac_path_EGREP_found=false
4509 # Loop through the user's path and test for each of PROGNAME-LIST
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4512do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_prog in egrep; do
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Alexandre Lision8af73cb2013-12-10 14:11:20 -05004518 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Tristan Matthews0a329cc2013-07-17 13:20:14 -04004519# Check for GNU ac_path_EGREP and select it if it is found.
4520 # Check for GNU $ac_path_EGREP
4521case `"$ac_path_EGREP" --version 2>&1` in
4522*GNU*)
4523 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4524*)
4525 ac_count=0
4526 $as_echo_n 0123456789 >"conftest.in"
4527 while :
4528 do
4529 cat "conftest.in" "conftest.in" >"conftest.tmp"
4530 mv "conftest.tmp" "conftest.in"
4531 cp "conftest.in" "conftest.nl"
4532 $as_echo 'EGREP' >> "conftest.nl"
4533 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4535 as_fn_arith $ac_count + 1 && ac_count=$as_val
4536 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4537 # Best one so far, save it but keep looking for a better one
4538 ac_cv_path_EGREP="$ac_path_EGREP"
4539 ac_path_EGREP_max=$ac_count
4540 fi
4541 # 10*(2^10) chars as input seems more than enough
4542 test $ac_count -gt 10 && break
4543 done
4544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4545esac
4546
4547 $ac_path_EGREP_found && break 3
4548 done
4549 done
4550 done
4551IFS=$as_save_IFS
4552 if test -z "$ac_cv_path_EGREP"; then
4553 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4554 fi
4555else
4556 ac_cv_path_EGREP=$EGREP
4557fi
4558
4559 fi
4560fi
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4562$as_echo "$ac_cv_path_EGREP" >&6; }
4563 EGREP="$ac_cv_path_EGREP"
4564
4565
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4567$as_echo_n "checking for ANSI C header files... " >&6; }
4568if ${ac_cv_header_stdc+:} false; then :
4569 $as_echo_n "(cached) " >&6
4570else
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572/* end confdefs.h. */
4573#include <stdlib.h>
4574#include <stdarg.h>
4575#include <string.h>
4576#include <float.h>
4577
4578int
4579main ()
4580{
4581
4582 ;
4583 return 0;
4584}
4585_ACEOF
4586if ac_fn_c_try_compile "$LINENO"; then :
4587 ac_cv_header_stdc=yes
4588else
4589 ac_cv_header_stdc=no
4590fi
4591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592
4593if test $ac_cv_header_stdc = yes; then
4594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596/* end confdefs.h. */
4597#include <string.h>
4598
4599_ACEOF
4600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4601 $EGREP "memchr" >/dev/null 2>&1; then :
4602
4603else
4604 ac_cv_header_stdc=no
4605fi
4606rm -f conftest*
4607
4608fi
4609
4610if test $ac_cv_header_stdc = yes; then
4611 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613/* end confdefs.h. */
4614#include <stdlib.h>
4615
4616_ACEOF
4617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4618 $EGREP "free" >/dev/null 2>&1; then :
4619
4620else
4621 ac_cv_header_stdc=no
4622fi
4623rm -f conftest*
4624
4625fi
4626
4627if test $ac_cv_header_stdc = yes; then
4628 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4629 if test "$cross_compiling" = yes; then :
4630 :
4631else
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633/* end confdefs.h. */
4634#include <ctype.h>
4635#include <stdlib.h>
4636#if ((' ' & 0x0FF) == 0x020)
4637# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4638# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4639#else
4640# define ISLOWER(c) \
4641 (('a' <= (c) && (c) <= 'i') \
4642 || ('j' <= (c) && (c) <= 'r') \
4643 || ('s' <= (c) && (c) <= 'z'))
4644# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4645#endif
4646
4647#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4648int
4649main ()
4650{
4651 int i;
4652 for (i = 0; i < 256; i++)
4653 if (XOR (islower (i), ISLOWER (i))
4654 || toupper (i) != TOUPPER (i))
4655 return 2;
4656 return 0;
4657}
4658_ACEOF
4659if ac_fn_c_try_run "$LINENO"; then :
4660
4661else
4662 ac_cv_header_stdc=no
4663fi
4664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4665 conftest.$ac_objext conftest.beam conftest.$ac_ext
4666fi
4667
4668fi
4669fi
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4671$as_echo "$ac_cv_header_stdc" >&6; }
4672if test $ac_cv_header_stdc = yes; then
4673
4674$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4675
4676fi
4677
4678# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4679for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4680 inttypes.h stdint.h unistd.h
4681do :
4682 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4683ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4684"
4685if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4686 cat >>confdefs.h <<_ACEOF
4687#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4688_ACEOF
4689
4690fi
4691
4692done
4693
4694
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4696$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4697if ${ac_cv_c_bigendian+:} false; then :
4698 $as_echo_n "(cached) " >&6
4699else
4700 ac_cv_c_bigendian=unknown
4701 # See if we're dealing with a universal compiler.
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703/* end confdefs.h. */
4704#ifndef __APPLE_CC__
4705 not a universal capable compiler
4706 #endif
4707 typedef int dummy;
4708
4709_ACEOF
4710if ac_fn_c_try_compile "$LINENO"; then :
4711
4712 # Check for potential -arch flags. It is not universal unless
4713 # there are at least two -arch flags with different values.
4714 ac_arch=
4715 ac_prev=
4716 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4717 if test -n "$ac_prev"; then
4718 case $ac_word in
4719 i?86 | x86_64 | ppc | ppc64)
4720 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4721 ac_arch=$ac_word
4722 else
4723 ac_cv_c_bigendian=universal
4724 break
4725 fi
4726 ;;
4727 esac
4728 ac_prev=
4729 elif test "x$ac_word" = "x-arch"; then
4730 ac_prev=arch
4731 fi
4732 done
4733fi
4734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 if test $ac_cv_c_bigendian = unknown; then
4736 # See if sys/param.h defines the BYTE_ORDER macro.
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738/* end confdefs.h. */
4739#include <sys/types.h>
4740 #include <sys/param.h>
4741
4742int
4743main ()
4744{
4745#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4746 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4747 && LITTLE_ENDIAN)
4748 bogus endian macros
4749 #endif
4750
4751 ;
4752 return 0;
4753}
4754_ACEOF
4755if ac_fn_c_try_compile "$LINENO"; then :
4756 # It does; now see whether it defined to BIG_ENDIAN or not.
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758/* end confdefs.h. */
4759#include <sys/types.h>
4760 #include <sys/param.h>
4761
4762int
4763main ()
4764{
4765#if BYTE_ORDER != BIG_ENDIAN
4766 not big endian
4767 #endif
4768
4769 ;
4770 return 0;
4771}
4772_ACEOF
4773if ac_fn_c_try_compile "$LINENO"; then :
4774 ac_cv_c_bigendian=yes
4775else
4776 ac_cv_c_bigendian=no
4777fi
4778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779fi
4780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781 fi
4782 if test $ac_cv_c_bigendian = unknown; then
4783 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785/* end confdefs.h. */
4786#include <limits.h>
4787
4788int
4789main ()
4790{
4791#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4792 bogus endian macros
4793 #endif
4794
4795 ;
4796 return 0;
4797}
4798_ACEOF
4799if ac_fn_c_try_compile "$LINENO"; then :
4800 # It does; now see whether it defined to _BIG_ENDIAN or not.
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802/* end confdefs.h. */
4803#include <limits.h>
4804
4805int
4806main ()
4807{
4808#ifndef _BIG_ENDIAN
4809 not big endian
4810 #endif
4811
4812 ;
4813 return 0;
4814}
4815_ACEOF
4816if ac_fn_c_try_compile "$LINENO"; then :
4817 ac_cv_c_bigendian=yes
4818else
4819 ac_cv_c_bigendian=no
4820fi
4821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822fi
4823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 fi
4825 if test $ac_cv_c_bigendian = unknown; then
4826 # Compile a test program.
4827 if test "$cross_compiling" = yes; then :
4828 # Try to guess by grepping values from an object file.
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830/* end confdefs.h. */
4831short int ascii_mm[] =
4832 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4833 short int ascii_ii[] =
4834 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4835 int use_ascii (int i) {
4836 return ascii_mm[i] + ascii_ii[i];
4837 }
4838 short int ebcdic_ii[] =
4839 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4840 short int ebcdic_mm[] =
4841 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4842 int use_ebcdic (int i) {
4843 return ebcdic_mm[i] + ebcdic_ii[i];
4844 }
4845 extern int foo;
4846
4847int
4848main ()
4849{
4850return use_ascii (foo) == use_ebcdic (foo);
4851 ;
4852 return 0;
4853}
4854_ACEOF
4855if ac_fn_c_try_compile "$LINENO"; then :
4856 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4857 ac_cv_c_bigendian=yes
4858 fi
4859 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4860 if test "$ac_cv_c_bigendian" = unknown; then
4861 ac_cv_c_bigendian=no
4862 else
4863 # finding both strings is unlikely to happen, but who knows?
4864 ac_cv_c_bigendian=unknown
4865 fi
4866 fi
4867fi
4868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869else
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871/* end confdefs.h. */
4872$ac_includes_default
4873int
4874main ()
4875{
4876
4877 /* Are we little or big endian? From Harbison&Steele. */
4878 union
4879 {
4880 long int l;
4881 char c[sizeof (long int)];
4882 } u;
4883 u.l = 1;
4884 return u.c[sizeof (long int) - 1] == 1;
4885
4886 ;
4887 return 0;
4888}
4889_ACEOF
4890if ac_fn_c_try_run "$LINENO"; then :
4891 ac_cv_c_bigendian=no
4892else
4893 ac_cv_c_bigendian=yes
4894fi
4895rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4896 conftest.$ac_objext conftest.beam conftest.$ac_ext
4897fi
4898
4899 fi
4900fi
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4902$as_echo "$ac_cv_c_bigendian" >&6; }
4903 case $ac_cv_c_bigendian in #(
4904 yes)
4905 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4906;; #(
4907 no)
4908 ;; #(
4909 universal)
4910
4911$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4912
4913 ;; #(
4914 *)
4915 as_fn_error $? "unknown endianness
4916 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4917 esac
4918
4919
4920if test "x$ac_cv_c_bigendian" = "xyes"; then
4921 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0"
4922else
4923 CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1"
4924fi
4925
4926case $target in
4927 *android*)
4928 $as_echo "#define PJ_ANDROID 1" >>confdefs.h
4929
4930 ;;
4931 *mingw* | *cygw* | *win32* | *w32* )
4932 $as_echo "#define PJ_WIN32 1" >>confdefs.h
4933
4934 $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h
4935
4936 $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
4937
4938 ;;
4939 *darwin*)
4940 $as_echo "#define PJ_DARWINOS 1" >>confdefs.h
4941
4942 ;;
4943 *linux*)
4944 $as_echo "#define PJ_LINUX 1" >>confdefs.h
4945
4946 ;;
4947 *rtems*)
4948 $as_echo "#define PJ_RTEMS 1" >>confdefs.h
4949
4950 ;;
4951 *sunos* | *solaris* )
4952 $as_echo "#define PJ_SUNOS 1" >>confdefs.h
4953
4954 ;;
4955 *)
4956 ;;
4957esac
4958
4959
4960
4961
4962# Check whether --enable-floating-point was given.
4963if test "${enable_floating_point+set}" = set; then :
4964 enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
4965 $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h
4966
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5
4968$as_echo "Checking if floating point is disabled... yes" >&6; }
4969 fi
4970else
4971
4972 $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h
4973
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5
4975$as_echo "Checking if floating point is disabled... no" >&6; }
Tristan Matthews0a329cc2013-07-17 13:20:14 -04004976
4977fi
4978
4979
4980
4981ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
4982if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
4983 $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h
4984
4985fi
4986
4987
4988ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
4989if test "x$ac_cv_header_assert_h" = xyes; then :
4990 $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h
4991
4992fi
4993
4994
4995ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4996if test "x$ac_cv_header_ctype_h" = xyes; then :
4997 $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h
4998
4999fi
5000
5001
5002
5003case $target in
5004 *mingw* | *cygw* | *win32* | *w32* )
5005 $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h
5006
5007 ;;
5008 *)
5009 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
5010if test "x$ac_cv_header_errno_h" = xyes; then :
5011 $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h
5012
5013fi
5014
5015
5016 ;;
5017esac
5018
5019ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
5020if test "x$ac_cv_header_fcntl_h" = xyes; then :
5021 $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h
5022
5023fi
5024
5025
5026ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default"
5027if test "x$ac_cv_header_linux_socket_h" = xyes; then :
5028 $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h
5029
5030fi
5031
5032
5033ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
5034if test "x$ac_cv_header_limits_h" = xyes; then :
5035 $as_echo "#define PJ_HAS_LIMITS_H 1" >>confdefs.h
5036
5037fi
5038
5039
5040ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5041if test "x$ac_cv_header_malloc_h" = xyes; then :
5042 $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h
5043
5044fi
5045
5046
5047ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
5048if test "x$ac_cv_header_netdb_h" = xyes; then :
5049 $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h
5050
5051fi
5052
5053
5054ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
5055if test "x$ac_cv_header_netinet_in_systm_h" = xyes; then :
5056 $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h
5057
5058fi
5059
5060
5061ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
5062if test "x$ac_cv_header_netinet_in_h" = xyes; then :
5063 $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h
5064
5065fi
5066
5067
5068ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if PJ_HAS_SYS_TYPES_H
5069 # include <sys/types.h>
5070 #endif
5071 #if PJ_HAS_NETINET_IN_SYSTM_H
5072 # include <netinet/in_systm.h>
5073 #endif
5074 #if PJ_HAS_NETINET_IN_H
5075 # include <netinet/in.h>
5076 #endif
5077
5078"
5079if test "x$ac_cv_header_netinet_ip_h" = xyes; then :
5080 $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h
5081
5082fi
5083
5084
5085ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
5086if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
5087 $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h
5088
5089fi
5090
5091
5092ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
5093if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
5094 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
5095if test "x$ac_cv_func_getifaddrs" = xyes; then :
5096 $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h
5097
5098fi
5099
5100fi
5101
5102
5103ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
5104if test "x$ac_cv_header_semaphore_h" = xyes; then :
5105 $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h
5106
5107fi
5108
5109
5110ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
5111if test "x$ac_cv_header_setjmp_h" = xyes; then :
5112 $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h
5113
5114fi
5115
5116
5117ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
5118if test "x$ac_cv_header_stdarg_h" = xyes; then :
5119 $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h
5120
5121fi
5122
5123
5124ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
5125if test "x$ac_cv_header_stddef_h" = xyes; then :
5126 $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h
5127
5128fi
5129
5130
5131ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
5132if test "x$ac_cv_header_stdio_h" = xyes; then :
5133 $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h
5134
5135fi
5136
5137
5138ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5139if test "x$ac_cv_header_stdint_h" = xyes; then :
5140 $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h
5141
5142fi
5143
5144
5145ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5146if test "x$ac_cv_header_stdlib_h" = xyes; then :
5147 $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h
5148
5149fi
5150
5151
5152ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5153if test "x$ac_cv_header_string_h" = xyes; then :
5154 $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h
5155
5156fi
5157
5158
5159ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5160if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
5161 $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h
5162
5163fi
5164
5165
5166ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
5167if test "x$ac_cv_header_sys_select_h" = xyes; then :
5168 $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h
5169
5170fi
5171
5172
5173ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
5174if test "x$ac_cv_header_sys_socket_h" = xyes; then :
5175 $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h
5176
5177fi
5178
5179
5180ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
5181if test "x$ac_cv_header_sys_time_h" = xyes; then :
5182 $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h
5183
5184fi
5185
5186
5187ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
5188if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
5189 $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h
5190
5191fi
5192
5193
5194ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
5195if test "x$ac_cv_header_sys_types_h" = xyes; then :
5196 $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h
5197
5198fi
5199
5200
5201ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
5202if test "x$ac_cv_header_sys_filio_h" = xyes; then :
5203 $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h
5204
5205fi
5206
5207
5208ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
5209if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
5210 $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h
5211
5212fi
5213
5214
5215ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
5216if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
5217 $as_echo "#define PJ_HAS_SYS_UTSNAME_H 1" >>confdefs.h
5218
5219fi
5220
5221
5222ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
5223if test "x$ac_cv_header_time_h" = xyes; then :
5224 $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h
5225
5226fi
5227
5228
5229ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5230if test "x$ac_cv_header_unistd_h" = xyes; then :
5231 $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h
5232
5233fi
5234
5235
5236ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
5237if test "x$ac_cv_header_winsock_h" = xyes; then :
5238 $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h
5239
5240fi
5241
5242
5243ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
5244if test "x$ac_cv_header_winsock2_h" = xyes; then :
5245 $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h
5246
5247fi
5248
5249
5250ac_fn_c_check_header_compile "$LINENO" "mswsock.h" "ac_cv_header_mswsock_h" "#if PJ_HAS_WINSOCK2_H
5251 # include <winsock2.h>
5252 #elif PJ_HAS_WINSOCK_H
5253 # include <winsock.h>
5254 #endif
5255
5256"
5257if test "x$ac_cv_header_mswsock_h" = xyes; then :
5258 $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h
5259
5260fi
5261
5262
5263ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
5264if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
5265 $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h
5266
5267fi
5268
5269
5270ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
5271if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
5272 ac_has_uuid_h=1
5273fi
5274
5275
5276ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#if PJ_HAS_SYS_TYPES_H
5277 # include <sys/types.h>
5278 #endif
5279 #if PJ_HAS_SYS_SOCKET_H
5280
5281 # include <sys/socket.h>
5282 #endif
5283
5284"
5285if test "x$ac_cv_header_net_if_h" = xyes; then :
5286 $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h
5287
5288fi
5289
5290
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5
5292$as_echo "Setting PJ_OS_NAME to $target" >&6; }
5293cat >>confdefs.h <<_ACEOF
5294#define PJ_OS_NAME "$target"
5295_ACEOF
5296
5297
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
5299$as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
5300$as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h
5301
5302
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
5304$as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
5305$as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h
5306
5307
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5
5309$as_echo "Setting PJ_HAS_MALLOC to 1" >&6; }
5310$as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h
5311
5312
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
5314$as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
5315$as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h
5316
5317
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
5319$as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
5320$as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h
5321
5322
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5
5324$as_echo_n "checking if inet_aton() is available... " >&6; }
5325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326/* end confdefs.h. */
5327#include <sys/types.h>
5328 #include <sys/socket.h>
5329 #include <arpa/inet.h>
5330int
5331main ()
5332{
5333inet_aton(0, 0);
5334 ;
5335 return 0;
5336}
5337_ACEOF
5338if ac_fn_c_try_compile "$LINENO"; then :
5339 $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h
5340
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5342$as_echo "yes" >&6; }
5343else
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345$as_echo "no" >&6; }
5346fi
5347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348
5349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5
5350$as_echo_n "checking if inet_pton() is available... " >&6; }
5351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352/* end confdefs.h. */
5353#include <sys/types.h>
5354 #include <sys/socket.h>
5355 #include <arpa/inet.h>
5356int
5357main ()
5358{
5359inet_pton(0, 0, 0);
5360 ;
5361 return 0;
5362}
5363_ACEOF
5364if ac_fn_c_try_compile "$LINENO"; then :
5365 $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h
5366
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5368$as_echo "yes" >&6; }
5369else
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371$as_echo "no" >&6; }
5372fi
5373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5
5376$as_echo_n "checking if inet_ntop() is available... " >&6; }
5377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378/* end confdefs.h. */
5379#include <sys/types.h>
5380 #include <sys/socket.h>
5381 #include <arpa/inet.h>
5382int
5383main ()
5384{
5385inet_ntop(0, 0, 0, 0);
5386 ;
5387 return 0;
5388}
5389_ACEOF
5390if ac_fn_c_try_compile "$LINENO"; then :
5391 $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h
5392
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5394$as_echo "yes" >&6; }
5395else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397$as_echo "no" >&6; }
5398fi
5399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5
5402$as_echo_n "checking if getaddrinfo() is available... " >&6; }
5403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404/* end confdefs.h. */
5405#include <sys/types.h>
5406 #include <sys/socket.h>
5407 #include <netdb.h>
5408int
5409main ()
5410{
5411getaddrinfo(0, 0, 0, 0);
5412 ;
5413 return 0;
5414}
5415_ACEOF
5416if ac_fn_c_try_compile "$LINENO"; then :
5417 $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h
5418
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5420$as_echo "yes" >&6; }
5421else
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423$as_echo "no" >&6; }
5424fi
5425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5
5428$as_echo_n "checking if sockaddr_in has sin_len member... " >&6; }
5429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430/* end confdefs.h. */
5431#include <sys/types.h>
5432 #include <sys/socket.h>
5433 #include <netinet/in.h>
5434 #include <arpa/inet.h>
5435int
5436main ()
5437{
5438struct sockaddr_in a; a.sin_len=0;
5439 ;
5440 return 0;
5441}
5442_ACEOF
5443if ac_fn_c_try_compile "$LINENO"; then :
5444 $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h
5445
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5447$as_echo "yes" >&6; }
5448else
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450$as_echo "no" >&6; }
5451fi
5452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5453
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5
5455$as_echo_n "checking if socklen_t is available... " >&6; }
5456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457/* end confdefs.h. */
5458#include <sys/types.h>
5459 #include <sys/socket.h>
5460int
5461main ()
5462{
5463socklen_t xxx = 0;
5464 ;
5465 return 0;
5466}
5467_ACEOF
5468if ac_fn_c_try_compile "$LINENO"; then :
5469 $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h
5470
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5472$as_echo "yes" >&6; }
5473else
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475$as_echo "no" >&6; }
5476fi
5477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5
5480$as_echo_n "checking if SO_ERROR is available... " >&6; }
5481case $target in
5482 *mingw* | *cygw* | *win32* | *w32* )
5483 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
5484
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5486$as_echo "yes" >&6; }
5487 ;;
5488 *)
5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490/* end confdefs.h. */
5491#include <sys/types.h>
5492 #include <sys/socket.h>
5493 #include <netinet/in.h>
5494 #include <arpa/inet.h>
5495int
5496main ()
5497{
5498int i=SO_ERROR;
5499 ;
5500 return 0;
5501}
5502_ACEOF
5503if ac_fn_c_try_compile "$LINENO"; then :
5504 $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
5505
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5507$as_echo "yes" >&6; }
5508else
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510$as_echo "no" >&6; }
5511fi
5512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513 ;;
5514esac
5515
5516
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5
5518$as_echo_n "checking if pthread_rwlock_t is available... " >&6; }
5519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520/* end confdefs.h. */
5521#include <pthread.h>
5522int
5523main ()
5524{
5525pthread_rwlock_t *x;
5526 ;
5527 return 0;
5528}
5529_ACEOF
5530if ac_fn_c_try_compile "$LINENO"; then :
5531 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
5532
5533 ac_rwmutex="yes"
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5535$as_echo "yes" >&6; }
5536else
5537 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
5538
5539 ac_rwmutex="no"
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541$as_echo "no" >&6; }
5542fi
5543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544
5545if test "$ac_rwmutex" = "no"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
5547$as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; }
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549/* end confdefs.h. */
5550#define _POSIX_READER_WRITER_LOCKS
5551 #include <pthread.h>
5552int
5553main ()
5554{
5555pthread_rwlock_t *x;
5556 ;
5557 return 0;
5558}
5559_ACEOF
5560if ac_fn_c_try_compile "$LINENO"; then :
5561 $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
5562
5563 CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5565$as_echo "yes" >&6; }
5566else
5567 $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
5568
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570$as_echo "no" >&6; }
5571fi
5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573fi
5574
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5
5576$as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; }
5577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578/* end confdefs.h. */
5579#include <pthread.h>
5580int
5581main ()
5582{
5583pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
5584 ;
5585 return 0;
5586}
5587_ACEOF
5588if ac_fn_c_try_compile "$LINENO"; then :
5589 $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h
5590
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5592$as_echo "yes" >&6; }
5593else
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595$as_echo "no" >&6; }
5596fi
5597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5
5600$as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; }
5601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602/* end confdefs.h. */
5603#include <pthread.h>
5604int
5605main ()
5606{
5607pthread_mutexattr_t attr;
5608 attr.recursive=1;
5609 ;
5610 return 0;
5611}
5612_ACEOF
5613if ac_fn_c_try_compile "$LINENO"; then :
5614 $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h
5615
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5617$as_echo "yes" >&6; }
5618else
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620$as_echo "no" >&6; }
5621fi
5622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623
5624
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5
5626$as_echo_n "checking ioqueue backend... " >&6; }
5627# Check whether --enable-epoll was given.
5628if test "${enable_epoll+set}" = set; then :
5629 enableval=$enable_epoll;
5630 ac_os_objs=ioqueue_epoll.o
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5
5632$as_echo "/dev/epoll" >&6; }
5633
5634else
5635
5636 ac_os_objs=ioqueue_select.o
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5
5638$as_echo "select()" >&6; }
5639
5640fi
5641
5642
5643
Alexandre Lision8af73cb2013-12-10 14:11:20 -05005644# Check whether --enable-shared was given.
5645if test "${enable_shared+set}" = set; then :
5646 enableval=$enable_shared; if test "$enable_shared" = "yes"; then
5647 ac_shared_libraries=1
5648 CFLAGS="$CFLAGS -fPIC"
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building shared libraries... yes" >&5
5650$as_echo "Building shared libraries... yes" >&6; }
5651 fi
5652else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building shared libraries... no" >&5
5654$as_echo "Building shared libraries... no" >&6; }
5655
5656fi
5657
5658
5659
Tristan Matthews0a329cc2013-07-17 13:20:14 -04005660case $target in
5661 *mingw* | *cygw* | *win32* | *w32* )
5662 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"
5663 ;;
5664 *)
5665 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"
5666 case $target in
5667 arm-apple-darwin*)
5668 ac_os_objs="$ac_os_objs os_info_iphone.o"
5669 ;;
5670 esac
5671 # UUID
5672 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
5673 ac_os_objs="$ac_os_objs guid_uuid.o"
5674 else
5675 ac_os_objs="$ac_os_objs guid_simple.o"
5676 fi
5677 ;;
5678esac
5679
5680case $target in
5681 *darwin*)
5682 ac_os_objs="$ac_os_objs os_core_darwin.o"
5683 ;;
5684esac
5685
5686
5687ac_external_speex=0
5688
5689
5690# Check whether --with-external-speex was given.
5691if test "${with_external_speex+set}" = set; then :
5692 withval=$with_external_speex;
5693 if test "x$with_external_speex" != "xno"; then
5694 # Test Speex installation
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5
5696$as_echo_n "checking if external Speex devkit is installed... " >&6; }
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698/* end confdefs.h. */
5699#include <speex/speex.h>
5700 #include <speex/speex_echo.h>
5701
5702int
5703main ()
5704{
5705speex_echo_state_init(0, 0); speex_encoder_init(0);
5706 ;
5707 return 0;
5708}
5709_ACEOF
5710if ac_fn_c_try_compile "$LINENO"; then :
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5712$as_echo "yes!!" >&6; }
5713 $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h
5714
5715 ac_external_speex="1"
5716
5717else
5718 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
5719fi
5720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721 fi
5722
5723
5724fi
5725
5726
5727ac_external_gsm=0
5728
5729
5730# Check whether --with-external-gsm was given.
5731if test "${with_external_gsm+set}" = set; then :
5732 withval=$with_external_gsm;
5733 if test "x$with_external_gsm" != "xno"; then
5734 # Test GSM library installation
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5
5736$as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; }
5737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738/* end confdefs.h. */
5739#include <gsm/gsm.h>
5740int
5741main ()
5742{
5743gsm_create();
5744 ;
5745 return 0;
5746}
5747_ACEOF
5748if ac_fn_c_try_compile "$LINENO"; then :
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5750$as_echo "yes!!" >&6; }
5751 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
5752
5753 $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h
5754
5755 ac_external_gsm="1"
5756
5757else
5758
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760$as_echo "no" >&6; }
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5
5762$as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; }
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764/* end confdefs.h. */
5765#include <gsm.h>
5766int
5767main ()
5768{
5769gsm_create();
5770 ;
5771 return 0;
5772}
5773_ACEOF
5774if ac_fn_c_try_compile "$LINENO"; then :
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5776$as_echo "yes!!" >&6; }
5777 $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
5778
5779 $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h
5780
5781 ac_external_gsm="1"
5782
5783else
5784 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
5785
5786
5787fi
5788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789
5790
5791fi
5792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793 fi
5794
5795
5796fi
5797
5798
5799
Alexandre Lision0e143012014-01-22 11:02:46 -05005800ac_external_srtp=0
5801
5802
5803# Check whether --with-external-srtp was given.
5804if test "${with_external_srtp+set}" = set; then :
5805 withval=$with_external_srtp;
5806 if test "x$with_external_srtp" != "xno"; then
5807 # Test SRTP installation
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external SRTP devkit is installed" >&5
5809$as_echo_n "checking if external SRTP devkit is installed... " >&6; }
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811/* end confdefs.h. */
5812#include <srtp/srtp.h>
5813
5814int
5815main ()
5816{
5817srtp_init();
5818 ;
5819 return 0;
5820}
5821_ACEOF
5822if ac_fn_c_try_compile "$LINENO"; then :
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5824$as_echo "yes!!" >&6; }
5825 ac_external_srtp="1"
5826
5827else
5828 as_fn_error $? "Unable to use SRTP. If SRTP development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5
5829fi
5830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5831 fi
5832
5833
5834fi
5835
5836
5837
5838ac_pjmedia_resample=libresample
5839
5840# Check whether --enable-resample was given.
5841if test "${enable_resample+set}" = set; then :
5842 enableval=$enable_resample; if test "$enable_resample" = "no"; then
5843 ac_pjmedia_resample=none
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if resampling is disabled...yes" >&5
5845$as_echo "Checking if resampling is disabled...yes" >&6; }
5846 fi
5847
5848fi
5849
Tristan Matthews0a329cc2013-07-17 13:20:14 -04005850
5851
5852# Check whether --enable-sound was given.
5853if test "${enable_sound+set}" = set; then :
5854 enableval=$enable_sound; if test "$enable_sound" = "no"; then
5855 ac_pjmedia_snd=null
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5
5857$as_echo "Checking if sound is disabled... yes" >&6; }
5858 fi
5859
5860fi
5861
5862
5863ac_external_pa=0
5864
5865
5866# Check whether --with-external-pa was given.
5867if test "${with_external_pa+set}" = set; then :
5868 withval=$with_external_pa;
5869 if test "x$with_external_pa" != "xno"; then
5870 # Test PortAudio installation
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5
5872$as_echo_n "checking if external PortAudio devkit is installed... " >&6; }
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874/* end confdefs.h. */
5875#include <portaudio.h>
5876
5877int
5878main ()
5879{
5880Pa_Initialize();
5881 ;
5882 return 0;
5883}
5884_ACEOF
5885if ac_fn_c_try_compile "$LINENO"; then :
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5887$as_echo "yes!!" >&6; }
5888 ac_external_pa="1"
5889
5890else
5891 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
5892fi
5893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5894 fi
5895
5896
5897fi
5898
5899
5900
5901ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
5902if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
5903 ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
5904fi
5905
5906
5907ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
5908if test "x$ac_cv_header_linux_soundcard_h" = xyes; then :
5909 ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
5910fi
5911
5912
5913ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
5914if test "x$ac_cv_header_machine_soundcard_h" = xyes; then :
5915 ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
5916fi
5917
5918
5919
5920if test "x$ac_cv_c_bigendian" = "xyes"; then
5921 ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
5922else
5923 ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
5924fi
5925
5926if test "$enable_sound" = "no"; then
5927 true;
5928else
Alexandre Lision8af73cb2013-12-10 14:11:20 -05005929
Tristan Matthews0a329cc2013-07-17 13:20:14 -04005930 case $target in
5931 *android*)
5932 LIBS="$LIBS -lOpenSLES"
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... OpenSL ES" >&5
5934$as_echo "Checking sound device backend... OpenSL ES" >&6; }
5935 ;;
5936 arm-apple-darwin*)
5937 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit"
Alexandre Lision8af73cb2013-12-10 14:11:20 -05005938 ac_pjmedia_audiodev_objs="coreaudio_dev.o"
Tristan Matthews0a329cc2013-07-17 13:20:14 -04005939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5
5940$as_echo "Checking sound device backend... AudioUnit" >&6; }
5941 ;;
5942 *darwin*)
5943 LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
Alexandre Lision8af73cb2013-12-10 14:11:20 -05005944 ac_pjmedia_audiodev_objs="coreaudio_dev.o"
Tristan Matthews0a329cc2013-07-17 13:20:14 -04005945 if test "`uname -r`" = "6.8"; then
5946 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
5947 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
5948 ac_pjmedia_snd=pa_old_darwinos
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5
5950$as_echo "Checking sound device backend... old coreaudio" >&6; }
5951 else
5952 ac_pjmedia_snd=pa_darwinos
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5
5954$as_echo "Checking sound device backend... coreaudio" >&6; }
5955 fi
5956 ;;
5957 *cygwin* | *mingw*)
5958 ac_pjmedia_snd=pa_win32
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5
5960$as_echo "Checking sound device backend... win32 sound" >&6; }
5961 ;;
5962 *rtems*)
5963 ac_pjmedia_snd=null
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5
5965$as_echo "Checking sound device backend... null sound" >&6; }
5966 ;;
5967 *)
5968 ac_pjmedia_snd=pa_unix
5969 ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default"
5970if test "x$ac_cv_header_alsa_version_h" = xyes; then :
5971 ac_pa_use_alsa=1
5972
5973 LIBS="$LIBS -lasound"
5974
5975else
5976 ac_pa_use_alsa=0
5977
5978fi
5979
5980
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5
5982$as_echo "Checking sound device backend... unix" >&6; }
5983
5984 ac_pa_use_oss=1
5985
5986 # Check whether --enable-oss was given.
5987if test "${enable_oss+set}" = set; then :
5988 enableval=$enable_oss;
5989 if test "$enable_oss" = "no"; then
5990 ac_pa_use_oss=0
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5
5992$as_echo "Checking if OSS audio is disabled... yes" >&6; }
5993 fi
5994
5995fi
5996
5997 ;;
5998 esac
5999fi
6000
6001
6002
6003# Check whether --enable-video was given.
6004if test "${enable_video+set}" = set; then :
6005 enableval=$enable_video; if test "$enable_video" = "no"; then
6006 #AC_DEFINE(PJMEDIA_HAS_VIDEO,0)
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Video is disabled" >&5
6008$as_echo "Video is disabled" >&6; }
6009 enable_sdl="no"
6010 enable_ffmpeg="no"
6011 enable_v4l2="no"
6012 fi
6013fi
6014
6015
6016case $target in
6017 *android*)
6018 LIBS="$LIBS -llog -lgcc"
6019 ;;
6020 arm-apple-darwin*)
6021 LIBS="$LIBS -framework UIKit"
6022 ;;
6023 *darwin*)
6024 LIBS="$LIBS -framework Foundation -framework AppKit"
6025 ;;
6026esac
6027
6028if test "$enable_video" = "no"; then
6029 true;
6030else
6031 case $target in
6032 arm-apple-darwin*)
6033 ac_pjmedia_video=iphone_os
6034
6035
6036 SAVED_LIBS="$LIBS"
6037 LIBS="-framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039/* end confdefs.h. */
6040
6041int
6042main ()
6043{
6044
6045 ;
6046 return 0;
6047}
6048_ACEOF
6049if ac_fn_c_try_link "$LINENO"; then :
6050 ac_pjmedia_video_has_ios=yes
6051else
6052 ac_pjmedia_video_has_ios=no
6053fi
6054rm -f core conftest.err conftest.$ac_objext \
6055 conftest$ac_exeext conftest.$ac_ext
6056 LIBS="$SAVED_LIBS"
6057 if test "$ac_pjmedia_video_has_ios" = "yes"; then
6058 ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1"
6059 LIBS="$LIBS -framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... yes" >&5
6061$as_echo "Checking if AVFoundation framework is available... yes" >&6; }
6062 else
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... no" >&5
6064$as_echo "Checking if AVFoundation framework is available... no" >&6; }
6065 fi
6066 ;;
6067 *darwin*)
6068 ac_pjmedia_video=mac_os
6069
6070
6071 SAVED_LIBS="$LIBS"
6072 LIBS="-framework QTKit"
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074/* end confdefs.h. */
6075
6076int
6077main ()
6078{
6079
6080 ;
6081 return 0;
6082}
6083_ACEOF
6084if ac_fn_c_try_link "$LINENO"; then :
6085 ac_pjmedia_video_has_qt=yes
6086else
6087 ac_pjmedia_video_has_qt=no
6088fi
6089rm -f core conftest.err conftest.$ac_objext \
6090 conftest$ac_exeext conftest.$ac_ext
6091 LIBS="$SAVED_LIBS"
6092 if test "$ac_pjmedia_video_has_qt" = "yes"; then
6093 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1"
6094 LIBS="$LIBS -framework QTKit -framework QuartzCore -framework OpenGL"
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... yes" >&5
6096$as_echo "Checking if QTKit framework is available... yes" >&6; }
6097 else
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... no" >&5
6099$as_echo "Checking if QTKit framework is available... no" >&6; }
6100 fi
6101 ;;
6102 esac
6103fi
6104
6105# Check whether --enable-ext_sound was given.
6106if test "${enable_ext_sound+set}" = set; then :
6107 enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
6108 ac_pjmedia_snd=external
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5
6110$as_echo "Checking if external sound is set... yes" >&6; }
6111 fi
6112
6113fi
6114
6115
6116
6117# Check whether --enable-small-filter was given.
6118if test "${enable_small_filter+set}" = set; then :
6119 enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
6120 ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5
6122$as_echo "Checking if small filter is disabled... yes" >&6; }
6123 fi
6124else
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5
6126$as_echo "Checking if small filter is disabled... no" >&6; }
6127fi
6128
6129
6130
6131# Check whether --enable-large-filter was given.
6132if test "${enable_large_filter+set}" = set; then :
6133 enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
6134 ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5
6136$as_echo "Checking if large filter is disabled... yes" >&6; }
6137 fi
6138else
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5
6140$as_echo "Checking if large filter is disabled... no" >&6; }
6141fi
6142
6143
6144
6145# Check whether --enable-speex-aec was given.
6146if test "${enable_speex_aec+set}" = set; then :
6147 enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
6148 ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5
6150$as_echo "Checking if Speex AEC is disabled...yes" >&6; }
6151 fi
6152else
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5
6154$as_echo "Checking if Speex AEC is disabled...no" >&6; }
6155fi
6156
6157
6158
6159# Check whether --enable-g711-codec was given.
6160if test "${enable_g711_codec+set}" = set; then :
6161 enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
6162 ac_no_g711_codec=1
6163 $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h
6164
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5
6166$as_echo "Checking if G.711 codec is disabled...yes" >&6; }
6167 fi
6168else
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5
6170$as_echo "Checking if G.711 codec is disabled...no" >&6; }
6171fi
6172
6173
6174
6175
6176# Check whether --enable-l16-codec was given.
6177if test "${enable_l16_codec+set}" = set; then :
6178 enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
6179 ac_no_l16_codec=1
6180 $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h
6181
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5
6183$as_echo "Checking if L16 codecs are disabled...yes" >&6; }
6184 fi
6185else
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5
6187$as_echo "Checking if L16 codec is disabled...no" >&6; }
6188fi
6189
6190
6191
6192
6193# Check whether --enable-gsm-codec was given.
6194if test "${enable_gsm_codec+set}" = set; then :
6195 enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
6196 ac_no_gsm_codec=1
6197 $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h
6198
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5
6200$as_echo "Checking if GSM codec is disabled...yes" >&6; }
6201 fi
6202else
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5
6204$as_echo "Checking if GSM codec is disabled...no" >&6; }
6205fi
6206
6207
6208
6209# Check whether --enable-g722-codec was given.
6210if test "${enable_g722_codec+set}" = set; then :
6211 enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
6212 ac_no_g722_codec=1
6213 $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h
6214
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5
6216$as_echo "Checking if G.722 codec is disabled...yes" >&6; }
6217 fi
6218else
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5
6220$as_echo "Checking if G.722 codec is disabled...no" >&6; }
6221fi
6222
6223
6224
6225# Check whether --enable-g7221-codec was given.
6226if test "${enable_g7221_codec+set}" = set; then :
6227 enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
6228 ac_no_g7221_codec=1
6229 $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h
6230
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5
6232$as_echo "Checking if G.722.1 codec is disabled...yes" >&6; }
6233 fi
6234else
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5
6236$as_echo "Checking if G.722.1 codec is disabled...no" >&6; }
6237fi
6238
6239
6240
6241# Check whether --enable-speex-codec was given.
6242if test "${enable_speex_codec+set}" = set; then :
6243 enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
6244 ac_no_speex_codec=1
6245 $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h
6246
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5
6248$as_echo "Checking if Speex codec is disabled...yes" >&6; }
6249 fi
6250else
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5
6252$as_echo "Checking if Speex codec is disabled...no" >&6; }
6253fi
6254
6255
6256
6257# Check whether --enable-ilbc-codec was given.
6258if test "${enable_ilbc_codec+set}" = set; then :
6259 enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
6260 ac_no_ilbc_codec=1
6261 $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h
6262
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5
6264$as_echo "Checking if iLBC codec is disabled...yes" >&6; }
6265 fi
6266else
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5
6268$as_echo "Checking if iLBC codec is disabled...no" >&6; }
6269fi
6270
6271
6272# Check whether --enable-libsamplerate was given.
6273if test "${enable_libsamplerate+set}" = set; then :
6274 enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5
6275$as_echo_n "checking for src_new in -lsamplerate... " >&6; }
6276if ${ac_cv_lib_samplerate_src_new+:} false; then :
6277 $as_echo_n "(cached) " >&6
6278else
6279 ac_check_lib_save_LIBS=$LIBS
6280LIBS="-lsamplerate $LIBS"
6281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282/* end confdefs.h. */
6283
6284/* Override any GCC internal prototype to avoid an error.
6285 Use char because int might match the return type of a GCC
6286 builtin and then its argument prototype would still apply. */
6287#ifdef __cplusplus
6288extern "C"
6289#endif
6290char src_new ();
6291int
6292main ()
6293{
6294return src_new ();
6295 ;
6296 return 0;
6297}
6298_ACEOF
6299if ac_fn_c_try_link "$LINENO"; then :
6300 ac_cv_lib_samplerate_src_new=yes
6301else
6302 ac_cv_lib_samplerate_src_new=no
6303fi
6304rm -f core conftest.err conftest.$ac_objext \
6305 conftest$ac_exeext conftest.$ac_ext
6306LIBS=$ac_check_lib_save_LIBS
6307fi
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5
6309$as_echo "$ac_cv_lib_samplerate_src_new" >&6; }
6310if test "x$ac_cv_lib_samplerate_src_new" = xyes; then :
6311 cat >>confdefs.h <<_ACEOF
6312#define HAVE_LIBSAMPLERATE 1
6313_ACEOF
6314
6315 LIBS="-lsamplerate $LIBS"
6316
6317fi
6318
Alexandre Lision0e143012014-01-22 11:02:46 -05006319 ac_pjmedia_resample=libsamplerate
Tristan Matthews0a329cc2013-07-17 13:20:14 -04006320else
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5
6322$as_echo "Skipping libsamplerate detection" >&6; }
6323
6324fi
6325
6326
6327
6328# Check whether --enable-resample_dll was given.
6329if test "${enable_resample_dll+set}" = set; then :
6330 enableval=$enable_resample_dll; if test "$enable_resample_dll" = "yes"; then
6331 ac_resample_dll=1
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... yes" >&5
6333$as_echo "Building libresample as shared library... yes" >&6; }
6334 fi
6335else
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... no" >&5
6337$as_echo "Building libresample as shared library... no" >&6; }
6338
6339fi
6340
6341
6342
6343# Check whether --with-sdl was given.
6344if test "${with_sdl+set}" = set; then :
6345 withval=$with_sdl;
6346else
6347 with_sdl=no
6348
6349fi
6350
6351
6352if test "x$ac_cross_compile" != "x" -a "x$with_sdl" = "xno"; then
6353 enable_sdl=no
6354fi
6355
6356# Check whether --enable-sdl was given.
6357if test "${enable_sdl+set}" = set; then :
6358 enableval=$enable_sdl;
6359 if test "$enable_sdl" = "no"; then
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SDL is disabled... yes" >&5
6361$as_echo "Checking if SDL is disabled... yes" >&6; }
6362 fi
6363
6364else
6365
6366 if test "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SDL prefix... $with_sdl" >&5
6368$as_echo "Using SDL prefix... $with_sdl" >&6; }
6369 for ac_prog in sdl2-config sdl-config
6370do
6371 # Extract the first word of "$ac_prog", so it can be a program name with args.
6372set dummy $ac_prog; ac_word=$2
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374$as_echo_n "checking for $ac_word... " >&6; }
6375if ${ac_cv_path_SDL_CONFIG+:} false; then :
6376 $as_echo_n "(cached) " >&6
6377else
6378 case $SDL_CONFIG in
6379 [\\/]* | ?:[\\/]*)
6380 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6381 ;;
6382 *)
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384for as_dir in $with_sdl/bin
6385do
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lision8af73cb2013-12-10 14:11:20 -05006389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Tristan Matthews0a329cc2013-07-17 13:20:14 -04006390 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2
6393 fi
6394done
6395 done
6396IFS=$as_save_IFS
6397
6398 ;;
6399esac
6400fi
6401SDL_CONFIG=$ac_cv_path_SDL_CONFIG
6402if test -n "$SDL_CONFIG"; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
6404$as_echo "$SDL_CONFIG" >&6; }
6405else
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6407$as_echo "no" >&6; }
6408fi
6409
6410
6411 test -n "$SDL_CONFIG" && break
6412done
6413
6414 else
6415 for ac_prog in sdl2-config sdl-config
6416do
6417 # Extract the first word of "$ac_prog", so it can be a program name with args.
6418set dummy $ac_prog; ac_word=$2
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420$as_echo_n "checking for $ac_word... " >&6; }
6421if ${ac_cv_path_SDL_CONFIG+:} false; then :
6422 $as_echo_n "(cached) " >&6
6423else
6424 case $SDL_CONFIG in
6425 [\\/]* | ?:[\\/]*)
6426 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6427 ;;
6428 *)
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430for as_dir in $PATH
6431do
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lision8af73cb2013-12-10 14:11:20 -05006435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Tristan Matthews0a329cc2013-07-17 13:20:14 -04006436 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6439 fi
6440done
6441 done
6442IFS=$as_save_IFS
6443
6444 ;;
6445esac
6446fi
6447SDL_CONFIG=$ac_cv_path_SDL_CONFIG
6448if test -n "$SDL_CONFIG"; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
6450$as_echo "$SDL_CONFIG" >&6; }
6451else
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453$as_echo "no" >&6; }
6454fi
6455
6456
6457 test -n "$SDL_CONFIG" && break
6458done
6459
6460 fi
6461
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL availability" >&5
6463$as_echo_n "checking SDL availability... " >&6; }
6464 if test "x$SDL_CONFIG" = "x"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6466$as_echo "not found" >&6; }
6467 elif (sh -c "$SDL_CONFIG --version" | grep -e '^1\.3' -e '^2\.') then
6468
6469
6470 ac_sdl_cflags=`$SDL_CONFIG --cflags`
6471 ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags"
6472 ac_sdl_ldflags=`$SDL_CONFIG --libs`
6473 LIBS="$LIBS $ac_sdl_ldflags"
6474 else
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported SDL version" >&5
6476$as_echo "Unsupported SDL version" >&6; }
6477 fi
6478
6479fi
6480
6481
6482
6483
6484# Check whether --with-ffmpeg was given.
6485if test "${with_ffmpeg+set}" = set; then :
6486 withval=$with_ffmpeg;
6487else
6488 with_ffmpeg=no
6489
6490fi
6491
6492
6493if test "x$ac_cross_compile" != "x" -a "x$with_ffmpeg" = "xno"; then
6494 enable_ffmpeg=no
6495fi
6496
6497# Check whether --enable-ffmpeg was given.
6498if test "${enable_ffmpeg+set}" = set; then :
6499 enableval=$enable_ffmpeg;
6500 ac_has_ffmpeg=0
6501
6502 if test "$enable_ffmpeg" = "no"; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if ffmpeg is disabled... yes" >&5
6504$as_echo "Checking if ffmpeg is disabled... yes" >&6; }
6505 fi
6506
6507else
6508
6509
6510
6511
6512 FFMPEG_PREFIX=""
6513
6514 SAVED_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
6515 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then
6516 FFMPEG_PREFIX=$with_ffmpeg
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5
6518$as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; }
6519 export PKG_CONFIG_PATH=$FFMPEG_PREFIX/lib/pkgconfig
6520 fi
6521
6522 for ac_prog in pkg-config "python pkgconfig.py"
6523do
6524 # Extract the first word of "$ac_prog", so it can be a program name with args.
6525set dummy $ac_prog; ac_word=$2
6526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6527$as_echo_n "checking for $ac_word... " >&6; }
6528if ${ac_cv_prog_PKG_CONFIG+:} false; then :
6529 $as_echo_n "(cached) " >&6
6530else
6531 if test -n "$PKG_CONFIG"; then
6532 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6533else
6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lision8af73cb2013-12-10 14:11:20 -05006540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Tristan Matthews0a329cc2013-07-17 13:20:14 -04006541 ac_cv_prog_PKG_CONFIG="$ac_prog"
6542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6544 fi
6545done
6546 done
6547IFS=$as_save_IFS
6548
6549fi
6550fi
6551PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6552if test -n "$PKG_CONFIG"; then
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6554$as_echo "$PKG_CONFIG" >&6; }
6555else
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557$as_echo "no" >&6; }
6558fi
6559
6560
6561 test -n "$PKG_CONFIG" && break
6562done
6563test -n "$PKG_CONFIG" || PKG_CONFIG="none"
6564
6565
6566 if test "$PKG_CONFIG" != "none"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ffmpeg packages" >&5
6568$as_echo_n "checking ffmpeg packages... " >&6; }
6569 av_pkg=""
6570 if $PKG_CONFIG --exists libdevice; then
6571 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
6572 av_pkg="$av_pkg libdevice"
6573 fi
6574 if $PKG_CONFIG --exists libavformat; then
6575 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
6576 av_pkg="$av_pkg libavformat"
6577 fi
6578 if $PKG_CONFIG --exists libavcodec; then
6579 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
6580 av_pkg="$av_pkg libavcodec"
6581 fi
6582 if $PKG_CONFIG --exists libswscale; then
6583 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
6584 av_pkg="$av_pkg libswscale"
6585 fi
6586 if $PKG_CONFIG --exists libavutil; then
6587 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
6588 av_pkg="$av_pkg libavutil"
6589 fi
6590 if $PKG_CONFIG --exists libavcore; then
6591 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
6592 av_pkg="$av_pkg libavcore"
6593 fi
6594
6595 if test "x$av_pkg" == "x"; then
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none detected (check the prefix)! **" >&5
6597$as_echo "none detected (check the prefix)! **" >&6; }
6598 else
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $av_pkg" >&5
6600$as_echo "$av_pkg" >&6; }
6601 fi
6602
6603 ac_ffmpeg_cflags="$ac_ffmpeg_cflags `$PKG_CONFIG --cflags $av_pkg`"
6604 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags `$PKG_CONFIG --libs $av_pkg`"
6605
6606 else
6607
6608 { $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
6609$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; }
6610
6611 LIBS="-L$FFMPEG_PREFIX/lib $LIBS"
6612 LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS"
6613 CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS"
6614
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&5
6616$as_echo_n "checking for avdevice_version in -lavdevice... " >&6; }
6617if ${ac_cv_lib_avdevice_avdevice_version+:} false; then :
6618 $as_echo_n "(cached) " >&6
6619else
6620 ac_check_lib_save_LIBS=$LIBS
6621LIBS="-lavdevice $LIBS"
6622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623/* end confdefs.h. */
6624
6625/* Override any GCC internal prototype to avoid an error.
6626 Use char because int might match the return type of a GCC
6627 builtin and then its argument prototype would still apply. */
6628#ifdef __cplusplus
6629extern "C"
6630#endif
6631char avdevice_version ();
6632int
6633main ()
6634{
6635return avdevice_version ();
6636 ;
6637 return 0;
6638}
6639_ACEOF
6640if ac_fn_c_try_link "$LINENO"; then :
6641 ac_cv_lib_avdevice_avdevice_version=yes
6642else
6643 ac_cv_lib_avdevice_avdevice_version=no
6644fi
6645rm -f core conftest.err conftest.$ac_objext \
6646 conftest$ac_exeext conftest.$ac_ext
6647LIBS=$ac_check_lib_save_LIBS
6648fi
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avdevice_avdevice_version" >&5
6650$as_echo "$ac_cv_lib_avdevice_avdevice_version" >&6; }
6651if test "x$ac_cv_lib_avdevice_avdevice_version" = xyes; then :
6652 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
6653 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice"
6654
6655
6656fi
6657
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_malloc in -lavutil" >&5
6659$as_echo_n "checking for av_malloc in -lavutil... " >&6; }
6660if ${ac_cv_lib_avutil_av_malloc+:} false; then :
6661 $as_echo_n "(cached) " >&6
6662else
6663 ac_check_lib_save_LIBS=$LIBS
6664LIBS="-lavutil $LIBS"
6665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666/* end confdefs.h. */
6667
6668/* Override any GCC internal prototype to avoid an error.
6669 Use char because int might match the return type of a GCC
6670 builtin and then its argument prototype would still apply. */
6671#ifdef __cplusplus
6672extern "C"
6673#endif
6674char av_malloc ();
6675int
6676main ()
6677{
6678return av_malloc ();
6679 ;
6680 return 0;
6681}
6682_ACEOF
6683if ac_fn_c_try_link "$LINENO"; then :
6684 ac_cv_lib_avutil_av_malloc=yes
6685else
6686 ac_cv_lib_avutil_av_malloc=no
6687fi
6688rm -f core conftest.err conftest.$ac_objext \
6689 conftest$ac_exeext conftest.$ac_ext
6690LIBS=$ac_check_lib_save_LIBS
6691fi
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_malloc" >&5
6693$as_echo "$ac_cv_lib_avutil_av_malloc" >&6; }
6694if test "x$ac_cv_lib_avutil_av_malloc" = xyes; then :
6695 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
6696 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil"
6697
6698
6699fi
6700
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_init in -lavcodec" >&5
6702$as_echo_n "checking for avcodec_init in -lavcodec... " >&6; }
6703if ${ac_cv_lib_avcodec_avcodec_init+:} false; then :
6704 $as_echo_n "(cached) " >&6
6705else
6706 ac_check_lib_save_LIBS=$LIBS
6707LIBS="-lavcodec -lavutil
6708 $LIBS"
6709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710/* end confdefs.h. */
6711
6712/* Override any GCC internal prototype to avoid an error.
6713 Use char because int might match the return type of a GCC
6714 builtin and then its argument prototype would still apply. */
6715#ifdef __cplusplus
6716extern "C"
6717#endif
6718char avcodec_init ();
6719int
6720main ()
6721{
6722return avcodec_init ();
6723 ;
6724 return 0;
6725}
6726_ACEOF
6727if ac_fn_c_try_link "$LINENO"; then :
6728 ac_cv_lib_avcodec_avcodec_init=yes
6729else
6730 ac_cv_lib_avcodec_avcodec_init=no
6731fi
6732rm -f core conftest.err conftest.$ac_objext \
6733 conftest$ac_exeext conftest.$ac_ext
6734LIBS=$ac_check_lib_save_LIBS
6735fi
6736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_init" >&5
6737$as_echo "$ac_cv_lib_avcodec_avcodec_init" >&6; }
6738if test "x$ac_cv_lib_avcodec_avcodec_init" = xyes; then :
6739 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
6740 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec"
6741
6742fi
6743
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_all in -lavformat" >&5
6745$as_echo_n "checking for av_register_all in -lavformat... " >&6; }
6746if ${ac_cv_lib_avformat_av_register_all+:} false; then :
6747 $as_echo_n "(cached) " >&6
6748else
6749 ac_check_lib_save_LIBS=$LIBS
6750LIBS="-lavformat -lavcodec -lavutil
6751 $LIBS"
6752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753/* end confdefs.h. */
6754
6755/* Override any GCC internal prototype to avoid an error.
6756 Use char because int might match the return type of a GCC
6757 builtin and then its argument prototype would still apply. */
6758#ifdef __cplusplus
6759extern "C"
6760#endif
6761char av_register_all ();
6762int
6763main ()
6764{
6765return av_register_all ();
6766 ;
6767 return 0;
6768}
6769_ACEOF
6770if ac_fn_c_try_link "$LINENO"; then :
6771 ac_cv_lib_avformat_av_register_all=yes
6772else
6773 ac_cv_lib_avformat_av_register_all=no
6774fi
6775rm -f core conftest.err conftest.$ac_objext \
6776 conftest$ac_exeext conftest.$ac_ext
6777LIBS=$ac_check_lib_save_LIBS
6778fi
6779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_register_all" >&5
6780$as_echo "$ac_cv_lib_avformat_av_register_all" >&6; }
6781if test "x$ac_cv_lib_avformat_av_register_all" = xyes; then :
6782 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
6783 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat"
6784
6785fi
6786
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5
6788$as_echo_n "checking for sws_scale in -lswscale... " >&6; }
6789if ${ac_cv_lib_swscale_sws_scale+:} false; then :
6790 $as_echo_n "(cached) " >&6
6791else
6792 ac_check_lib_save_LIBS=$LIBS
6793LIBS="-lswscale -lavutil
6794 $LIBS"
6795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796/* end confdefs.h. */
6797
6798/* Override any GCC internal prototype to avoid an error.
6799 Use char because int might match the return type of a GCC
6800 builtin and then its argument prototype would still apply. */
6801#ifdef __cplusplus
6802extern "C"
6803#endif
6804char sws_scale ();
6805int
6806main ()
6807{
6808return sws_scale ();
6809 ;
6810 return 0;
6811}
6812_ACEOF
6813if ac_fn_c_try_link "$LINENO"; then :
6814 ac_cv_lib_swscale_sws_scale=yes
6815else
6816 ac_cv_lib_swscale_sws_scale=no
6817fi
6818rm -f core conftest.err conftest.$ac_objext \
6819 conftest$ac_exeext conftest.$ac_ext
6820LIBS=$ac_check_lib_save_LIBS
6821fi
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5
6823$as_echo "$ac_cv_lib_swscale_sws_scale" >&6; }
6824if test "x$ac_cv_lib_swscale_sws_scale" = xyes; then :
6825 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
6826 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale"
6827
6828fi
6829
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcore_version in -lavcore" >&5
6831$as_echo_n "checking for avcore_version in -lavcore... " >&6; }
6832if ${ac_cv_lib_avcore_avcore_version+:} false; then :
6833 $as_echo_n "(cached) " >&6
6834else
6835 ac_check_lib_save_LIBS=$LIBS
6836LIBS="-lavcore $LIBS"
6837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838/* end confdefs.h. */
6839
6840/* Override any GCC internal prototype to avoid an error.
6841 Use char because int might match the return type of a GCC
6842 builtin and then its argument prototype would still apply. */
6843#ifdef __cplusplus
6844extern "C"
6845#endif
6846char avcore_version ();
6847int
6848main ()
6849{
6850return avcore_version ();
6851 ;
6852 return 0;
6853}
6854_ACEOF
6855if ac_fn_c_try_link "$LINENO"; then :
6856 ac_cv_lib_avcore_avcore_version=yes
6857else
6858 ac_cv_lib_avcore_avcore_version=no
6859fi
6860rm -f core conftest.err conftest.$ac_objext \
6861 conftest$ac_exeext conftest.$ac_ext
6862LIBS=$ac_check_lib_save_LIBS
6863fi
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcore_avcore_version" >&5
6865$as_echo "$ac_cv_lib_avcore_avcore_version" >&6; }
6866if test "x$ac_cv_lib_avcore_avcore_version" = xyes; then :
6867 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
6868 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore"
6869
6870
6871fi
6872
6873
6874 fi
6875
6876 LIBS="$LIBS $ac_ffmpeg_ldflags"
6877 export PKG_CONFIG_PATH=$SAVED_PKG_CONFIG_PATH
6878
6879
6880fi
6881
6882
6883# Check whether --enable-v4l2 was given.
6884if test "${enable_v4l2+set}" = set; then :
6885 enableval=$enable_v4l2;
6886 if test "$enable_v4l2" = "no"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if V4L2 is disabled... yes" >&5
6888$as_echo "Checking if V4L2 is disabled... yes" >&6; }
6889 fi
6890
6891else
6892
6893
6894
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5
6896$as_echo_n "checking for v4l2_open in -lv4l2... " >&6; }
6897if ${ac_cv_lib_v4l2_v4l2_open+:} false; then :
6898 $as_echo_n "(cached) " >&6
6899else
6900 ac_check_lib_save_LIBS=$LIBS
6901LIBS="-lv4l2 $LIBS"
6902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903/* end confdefs.h. */
6904
6905/* Override any GCC internal prototype to avoid an error.
6906 Use char because int might match the return type of a GCC
6907 builtin and then its argument prototype would still apply. */
6908#ifdef __cplusplus
6909extern "C"
6910#endif
6911char v4l2_open ();
6912int
6913main ()
6914{
6915return v4l2_open ();
6916 ;
6917 return 0;
6918}
6919_ACEOF
6920if ac_fn_c_try_link "$LINENO"; then :
6921 ac_cv_lib_v4l2_v4l2_open=yes
6922else
6923 ac_cv_lib_v4l2_v4l2_open=no
6924fi
6925rm -f core conftest.err conftest.$ac_objext \
6926 conftest$ac_exeext conftest.$ac_ext
6927LIBS=$ac_check_lib_save_LIBS
6928fi
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5
6930$as_echo "$ac_cv_lib_v4l2_v4l2_open" >&6; }
6931if test "x$ac_cv_lib_v4l2_v4l2_open" = xyes; then :
6932 ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1"
6933 ac_v4l2_ldflags="-lv4l2"
6934 LIBS="$LIBS -lv4l2"
6935
6936
6937fi
6938
6939
6940fi
6941
6942
6943# Check whether --enable-ipp was given.
6944if test "${enable_ipp+set}" = set; then :
6945 enableval=$enable_ipp;
6946else
6947 enable_ipp=no
6948
6949fi
6950
6951
6952
6953# Check whether --with-ipp was given.
6954if test "${with_ipp+set}" = set; then :
6955 withval=$with_ipp;
6956else
6957 with_ipp=no
6958
6959fi
6960
6961
6962
6963# Check whether --with-ipp-samples was given.
6964if test "${with_ipp_samples+set}" = set; then :
6965 withval=$with_ipp_samples;
6966else
6967 with_ipp_samples=no
6968
6969fi
6970
6971
6972
6973# Check whether --with-ipp-arch was given.
6974if test "${with_ipp_arch+set}" = set; then :
6975 withval=$with_ipp_arch;
6976else
6977 with_ipp_arch=no
6978
6979fi
6980
6981
6982if test "x$enable_ipp" != "xno"; then
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5
6984$as_echo_n "checking Intel IPP location... " >&6; }
6985
6986 if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5
6988$as_echo "$with_ipp" >&6; }
6989 IPPROOT=$with_ipp
6990 elif test "x$IPPROOT" = "x"; then
6991 if test -d /opt/intel/ipp; then
6992 IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5
6994$as_echo "autodetected in $IPPROOT" >&6; }
6995 fi
6996 else
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5
6998$as_echo "$IPPROOT" >&6; }
6999 fi
7000
7001 if test "x$with_ipp_arch" != "xno"; then
7002 IPP_SUFFIX=$with_ipp_arch
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5
7004$as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; }
7005 else
7006 IPP_SUFFIX=""
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5
7008$as_echo "IPP arch suffix is set to empty" >&6; }
7009 fi
7010
7011 if test x$IPPROOT = x; then
7012 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
7013 elif test ! -d $IPPROOT; then
7014 as_fn_error $? "not found" "$LINENO" 5
7015 elif test ! -d $IPPROOT/include; then
7016 as_fn_error $? "directory doesn't seem to be valid" "$LINENO" 5
7017 else
7018 # IPP directory looks okay.
7019 # Remove trailing backslash
7020 IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
7021
7022 SAVED_CFLAGS="$CFLAGS"
7023 SAVED_LDFLAGS="$LDFLAGS"
7024 SAVED_LIBS="$LIBS"
7025
7026 IPP_CFLAGS="-I$IPPROOT/include"
7027 IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
7028
7029#
7030 # Some differences between Mac OS X and Linux
7031 case $target in
7032 *darwin* )
7033 IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
7034 ;;
7035 *)
7036 # Find out where the libraries live.
7037 IPP7_ARCH=""
7038 if test -d $IPPROOT/lib/intel64; then
7039 IPP7_ARCH="intel64"
7040 elif test -d $IPPROOT/lib/ia32; then
7041 IPP7_ARCH="ia32"
7042 elif test -d $IPPROOT/lib/mic; then
7043 IPP7_ARCH="mic"
7044 fi
7045
7046 if test -z "$IPP7_ARCH"; then
7047 # IPP6 (and possibly below)
7048 IPP_LDFLAGS="-L$IPPROOT/sharedlib"
7049 IPP_LIBS="$IPP_LIBS -lippsr${IPP_SUFFIX} -lguide"
7050 else
7051 # IPP7
7052 if ! test -d $IPPROOT/../compiler; then
7053 as_fn_error $? "Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" "$LINENO" 5
7054 fi
7055 IPP_CFLAGS="$IPP_CFLAGS"
7056 IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH"
7057 IPP_LIBS="$IPP_LIBS -liomp5"
7058 fi
7059 ;;
7060 esac
7061
7062 #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
7063 #Static:
7064 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
7065
7066 CFLAGS="$CFLAGS $IPP_CFLAGS"
7067 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
7068 LIBS="$IPP_LIBS $LIBS"
7069
7070
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5
7072$as_echo_n "checking Intel IPP usability... " >&6; }
7073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074/* end confdefs.h. */
7075#include <ippcore.h>
7076
7077int
7078main ()
7079{
7080ippStaticInit();
7081 ;
7082 return 0;
7083}
7084_ACEOF
7085if ac_fn_c_try_link "$LINENO"; then :
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7087$as_echo "ok" >&6; }
7088else
7089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7091as_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
7092See \`config.log' for more details" "$LINENO" 5; }
7093fi
7094rm -f core conftest.err conftest.$ac_objext \
7095 conftest$ac_exeext conftest.$ac_ext
7096
7097 CFLAGS="$SAVED_CFLAGS"
7098 LDFLAGS="$SAVED_LDFLAGS"
7099 LIBS="$SAVED_LIBS"
7100 fi
7101
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5
7103$as_echo_n "checking Intel IPP samples location... " >&6; }
7104
7105 if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5
7107$as_echo "$with_ipp_samples" >&6; }
7108 IPPSAMPLES=$with_ipp_samples
7109 elif test "x$IPPSAMPLES" = "x"; then
7110 if test -d /opt/intel/ipp-samples; then
7111 IPPSAMPLES=/opt/intel/ipp-samples
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5
7113$as_echo "autodetected in $IPPSAMPLES" >&6; }
7114 fi
7115 else
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5
7117$as_echo "$IPPSAMPLES" >&6; }
7118 fi
7119
7120 if test x$IPPSAMPLES = x; then
7121 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
7122 elif test ! -d $IPPSAMPLES; then
7123 as_fn_error $? "not found" "$LINENO" 5
7124 elif test ! -d $IPPSAMPLES/speech-codecs; then
7125 as_fn_error $? "directory doesn't seem to be valid" "$LINENO" 5
7126 else
7127 # Remove trailing backslash
7128 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
7129
7130 # Guess the libusc.a/libspeech.a build location
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5
7132$as_echo_n "checking Intel IPP USC build location... " >&6; }
7133 if test -d $IPPSAMPLES/speech-codecs/bin; then
7134 IPPVER=5
7135 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
7136 elif test -d $IPPSAMPLES/speech-codecs/_bin; then
7137 IPPVER=6
7138 if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
7139 # gcc compiler
7140 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
7141 elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
7142 # icc compiler
7143 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
7144 else
7145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7147as_fn_error $? "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
7148See \`config.log' for more details" "$LINENO" 5; }
7149 fi
7150 else
7151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7153as_fn_error $? "unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?
7154See \`config.log' for more details" "$LINENO" 5; }
7155 fi
7156
7157 # Test the directory
7158 if test ! -d $IPPSAMP_DIR; then
7159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7161as_fn_error $? "There's something wrong with this script, directory $IPPSAMP_DIR does not exist
7162See \`config.log' for more details" "$LINENO" 5; }
7163 exit 1;
7164 fi
7165
7166 if test "x$IPPVER" = "x5"; then
7167 IPPSAMP_LIBS="libusc.a"
7168 IPPSAMP_LDLIBS="-lusc"
7169 elif test "x$IPPVER" = "x6"; then
7170 IPPSAMP_LIBS="libspeech.a"
7171 IPPSAMP_LDLIBS="-lspeech"
7172 else
7173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7175as_fn_error $? "bug in this script: unsupported IPP version
7176See \`config.log' for more details" "$LINENO" 5; }
7177 fi
7178
7179 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
7180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7182as_fn_error $? "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
7183See \`config.log' for more details" "$LINENO" 5; }
7184 fi
7185
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5
7187$as_echo "$IPPSAMP_DIR" >&6; }
7188
7189 SAVED_CFLAGS="$CFLAGS"
7190 SAVED_LDFLAGS="$LDFLAGS"
7191 SAVED_LIBS="$LIBS"
7192
7193 IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
7194 CFLAGS="$CFLAGS $IPPSAMP_INC"
7195 LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR"
7196 LIBS="$IPPSAMP_LDLIBS $LIBS"
7197
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5
7199$as_echo_n "checking Intel IPP USC usability... " >&6; }
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201/* end confdefs.h. */
7202#include <usc.h>
7203
7204int
7205main ()
7206{
7207extern USC_Fxns USC_G729AFP_Fxns;
7208 ;
7209 return 0;
7210}
7211_ACEOF
7212if ac_fn_c_try_link "$LINENO"; then :
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7214$as_echo "ok" >&6; }
7215else
7216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7218as_fn_error $? "failed
7219See \`config.log' for more details" "$LINENO" 5; }
7220fi
7221rm -f core conftest.err conftest.$ac_objext \
7222 conftest$ac_exeext conftest.$ac_ext
7223
7224 CFLAGS="$SAVED_CFLAGS"
7225 LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
7226 LIBS="$IPP_LIBS $SAVED_LIBS"
7227
7228 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
7229 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
7230 IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
7231 fi
7232
7233 CFLAGS="$CFLAGS $IPP_CFLAGS"
7234 LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
7235 LIBS="$LIBS $IPP_LIBS"
7236
7237 ac_build_mak_vars="$ac_build_mak_vars\n\
7238export IPP_CFLAGS=$IPP_CFLAGS\n\
7239export IPP_LDFLAGS=$IPP_LDFLAGS\n\
7240export IPP_LIBS=$IPP_LIBS"
7241else
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5
7243$as_echo "Skipping Intel IPP settings (not wanted)" >&6; }
7244fi
7245
7246
7247
7248
7249# Check whether --with-ssl was given.
7250if test "${with_ssl+set}" = set; then :
7251 withval=$with_ssl;
7252else
7253 with_ssl=no
7254
7255fi
7256
7257
7258if test "x$ac_cross_compile" != "x" -a "x$with_ssl" = "xno"; then
7259 enable_ssl=no
7260fi
7261
7262
7263# Check whether --enable-ssl was given.
7264if test "${enable_ssl+set}" = set; then :
7265 enableval=$enable_ssl;
7266 if test "$enable_ssl" = "no"; then
7267 ac_no_ssl=1
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5
7269$as_echo "Checking if SSL support is disabled... yes" >&6; }
7270 fi
7271
7272else
7273
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5
7275$as_echo "checking for OpenSSL installations.." >&6; }
7276 if test "x$with_ssl" != "xno" -a "x$with_ssl" != "x"; then
7277 CFLAGS="$CFLAGS -I$with_ssl/include"
7278 LDFLAGS="$LDFLAGS -L$with_ssl/lib"
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSL prefix... $with_ssl" >&5
7280$as_echo "Using SSL prefix... $with_ssl" >&6; }
7281 fi
7282
7283
7284
7285 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
7286if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
7287 openssl_h_present=1
7288fi
7289
7290
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5
7292$as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; }
7293if ${ac_cv_lib_crypto_ERR_load_BIO_strings+:} false; then :
7294 $as_echo_n "(cached) " >&6
7295else
7296 ac_check_lib_save_LIBS=$LIBS
7297LIBS="-lcrypto $LIBS"
7298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299/* end confdefs.h. */
7300
7301/* Override any GCC internal prototype to avoid an error.
7302 Use char because int might match the return type of a GCC
7303 builtin and then its argument prototype would still apply. */
7304#ifdef __cplusplus
7305extern "C"
7306#endif
7307char ERR_load_BIO_strings ();
7308int
7309main ()
7310{
7311return ERR_load_BIO_strings ();
7312 ;
7313 return 0;
7314}
7315_ACEOF
7316if ac_fn_c_try_link "$LINENO"; then :
7317 ac_cv_lib_crypto_ERR_load_BIO_strings=yes
7318else
7319 ac_cv_lib_crypto_ERR_load_BIO_strings=no
7320fi
7321rm -f core conftest.err conftest.$ac_objext \
7322 conftest$ac_exeext conftest.$ac_ext
7323LIBS=$ac_check_lib_save_LIBS
7324fi
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
7326$as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
7327if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = xyes; then :
7328 libcrypto_present=1 && LIBS="$LIBS -lcrypto"
7329fi
7330
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
7332$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
7333if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
7334 $as_echo_n "(cached) " >&6
7335else
7336 ac_check_lib_save_LIBS=$LIBS
7337LIBS="-lssl $LIBS"
7338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339/* end confdefs.h. */
7340
7341/* Override any GCC internal prototype to avoid an error.
7342 Use char because int might match the return type of a GCC
7343 builtin and then its argument prototype would still apply. */
7344#ifdef __cplusplus
7345extern "C"
7346#endif
7347char SSL_library_init ();
7348int
7349main ()
7350{
7351return SSL_library_init ();
7352 ;
7353 return 0;
7354}
7355_ACEOF
7356if ac_fn_c_try_link "$LINENO"; then :
7357 ac_cv_lib_ssl_SSL_library_init=yes
7358else
7359 ac_cv_lib_ssl_SSL_library_init=no
7360fi
7361rm -f core conftest.err conftest.$ac_objext \
7362 conftest$ac_exeext conftest.$ac_ext
7363LIBS=$ac_check_lib_save_LIBS
7364fi
7365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7366$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
7367if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
7368 libssl_present=1 && LIBS="$LIBS -lssl"
7369fi
7370
7371 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5
7373$as_echo "OpenSSL library found, SSL support enabled" >&6; }
7374 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
7375 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
7376 $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
7377
7378 else
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
7380$as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; }
7381 fi
7382
7383fi
7384
7385
7386
7387# Check whether --with-opencore-amrnb was given.
7388if test "${with_opencore_amrnb+set}" = set; then :
7389 withval=$with_opencore_amrnb; as_fn_error $? "This option is obsolete and replaced by --with-opencore-amr=DIR" "$LINENO" 5
7390fi
7391
7392
7393
7394# Check whether --with-opencore-amr was given.
7395if test "${with_opencore_amr+set}" = set; then :
7396 withval=$with_opencore_amr;
7397else
7398 with_opencore_amr=no
7399
7400fi
7401
7402
7403if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amr" = "xno"; then
7404 enable_opencore_amr=no
7405fi
7406
7407
7408# Check whether --with-opencore-amrwbenc was given.
7409if test "${with_opencore_amrwbenc+set}" = set; then :
7410 withval=$with_opencore_amrwbenc;
7411else
7412 with_opencore_amrwbenc=no
7413
7414fi
7415
7416
7417if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amrwbenc" = "xno"; then
7418 enable_opencore_amrwbenc=no
7419fi
7420
7421
7422
7423
7424# Check whether --enable-opencore_amr was given.
7425if test "${enable_opencore_amr+set}" = set; then :
7426 enableval=$enable_opencore_amr;
7427 if test "$enable_opencore_amr" = "no"; then
7428 ac_no_opencore_amrnb=1
7429 ac_no_opencore_amrwb=1
7430 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
7431
7432 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 0" >>confdefs.h
7433
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OpenCORE AMR support is disabled... yes" >&5
7435$as_echo "Checking if OpenCORE AMR support is disabled... yes" >&6; }
7436 fi
7437
7438else
7439
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenCORE AMR installations.." >&5
7441$as_echo "checking for OpenCORE AMR installations.." >&6; }
7442 if test "x$with_opencore_amr" != "xno" -a "x$with_opencore_amr" != "x"; then
7443 CFLAGS="$CFLAGS -I$with_opencore_amr/include"
7444 LDFLAGS="$LDFLAGS -L$with_opencore_amr/lib"
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OpenCORE AMR prefix... $with_opencore_amr" >&5
7446$as_echo "Using OpenCORE AMR prefix... $with_opencore_amr" >&6; }
7447 fi
7448 if test "x$with_opencore_amrwbenc" != "xno" -a "x$with_opencore_amrwbenc" != "x"; then
7449 CFLAGS="$CFLAGS -I$with_opencore_amrwbenc/include"
7450 LDFLAGS="$LDFLAGS -L$with_opencore_amrwbenc/lib"
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OpenCORE AMRWB-enc prefix... $with_opencore_amrwbenc" >&5
7452$as_echo "Using OpenCORE AMRWB-enc prefix... $with_opencore_amrwbenc" >&6; }
7453 fi
7454
7455
7456 ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrnb/interf_enc.h" "ac_cv_header_opencore_amrnb_interf_enc_h" "$ac_includes_default"
7457if test "x$ac_cv_header_opencore_amrnb_interf_enc_h" = xyes; then :
7458 opencore_amrnb_h_present=1
7459fi
7460
7461
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Encoder_Interface_init in -lopencore-amrnb" >&5
7463$as_echo_n "checking for Encoder_Interface_init in -lopencore-amrnb... " >&6; }
7464if ${ac_cv_lib_opencore_amrnb_Encoder_Interface_init+:} false; then :
7465 $as_echo_n "(cached) " >&6
7466else
7467 ac_check_lib_save_LIBS=$LIBS
7468LIBS="-lopencore-amrnb $LIBS"
7469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470/* end confdefs.h. */
7471
7472/* Override any GCC internal prototype to avoid an error.
7473 Use char because int might match the return type of a GCC
7474 builtin and then its argument prototype would still apply. */
7475#ifdef __cplusplus
7476extern "C"
7477#endif
7478char Encoder_Interface_init ();
7479int
7480main ()
7481{
7482return Encoder_Interface_init ();
7483 ;
7484 return 0;
7485}
7486_ACEOF
7487if ac_fn_c_try_link "$LINENO"; then :
7488 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=yes
7489else
7490 ac_cv_lib_opencore_amrnb_Encoder_Interface_init=no
7491fi
7492rm -f core conftest.err conftest.$ac_objext \
7493 conftest$ac_exeext conftest.$ac_ext
7494LIBS=$ac_check_lib_save_LIBS
7495fi
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&5
7497$as_echo "$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&6; }
7498if test "x$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" = xyes; then :
7499 opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb"
7500fi
7501
7502 if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-NB library found, AMR-NB support enabled" >&5
7504$as_echo "OpenCORE AMR-NB library found, AMR-NB support enabled" >&6; }
7505 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1" >>confdefs.h
7506
7507 else
7508 ac_no_opencore_amrnb=1
7509 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
7510
7511 fi
7512
7513
7514
7515
7516 ac_fn_c_check_header_mongrel "$LINENO" "vo-amrwbenc/enc_if.h" "ac_cv_header_vo_amrwbenc_enc_if_h" "$ac_includes_default"
Alexandre Lision0e143012014-01-22 11:02:46 -05007517if test "x$ac_cv_header_vo_amrwbenc_enc_if_h" = x""yes; then :
Tristan Matthews0a329cc2013-07-17 13:20:14 -04007518 opencore_amrwb_enc_h_present=1
7519fi
7520
7521
7522 ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrwb/dec_if.h" "ac_cv_header_opencore_amrwb_dec_if_h" "$ac_includes_default"
Alexandre Lision0e143012014-01-22 11:02:46 -05007523if test "x$ac_cv_header_opencore_amrwb_dec_if_h" = x""yes; then :
Tristan Matthews0a329cc2013-07-17 13:20:14 -04007524 opencore_amrwb_dec_h_present=1
7525fi
7526
7527
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D_IF_init in -lopencore-amrwb" >&5
7529$as_echo_n "checking for D_IF_init in -lopencore-amrwb... " >&6; }
Alexandre Lision0e143012014-01-22 11:02:46 -05007530if test "${ac_cv_lib_opencore_amrwb_D_IF_init+set}" = set; then :
Tristan Matthews0a329cc2013-07-17 13:20:14 -04007531 $as_echo_n "(cached) " >&6
7532else
7533 ac_check_lib_save_LIBS=$LIBS
7534LIBS="-lopencore-amrwb $LIBS"
7535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536/* end confdefs.h. */
7537
7538/* Override any GCC internal prototype to avoid an error.
7539 Use char because int might match the return type of a GCC
7540 builtin and then its argument prototype would still apply. */
7541#ifdef __cplusplus
7542extern "C"
7543#endif
7544char D_IF_init ();
7545int
7546main ()
7547{
7548return D_IF_init ();
7549 ;
7550 return 0;
7551}
7552_ACEOF
7553if ac_fn_c_try_link "$LINENO"; then :
7554 ac_cv_lib_opencore_amrwb_D_IF_init=yes
7555else
7556 ac_cv_lib_opencore_amrwb_D_IF_init=no
7557fi
7558rm -f core conftest.err conftest.$ac_objext \
7559 conftest$ac_exeext conftest.$ac_ext
7560LIBS=$ac_check_lib_save_LIBS
7561fi
7562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrwb_D_IF_init" >&5
7563$as_echo "$ac_cv_lib_opencore_amrwb_D_IF_init" >&6; }
Alexandre Lision0e143012014-01-22 11:02:46 -05007564if test "x$ac_cv_lib_opencore_amrwb_D_IF_init" = x""yes; then :
Tristan Matthews0a329cc2013-07-17 13:20:14 -04007565 opencore_amrwb_dec_present=1 && LIBS="$LIBS -lopencore-amrwb"
7566fi
7567
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for E_IF_init in -lvo-amrwbenc" >&5
7569$as_echo_n "checking for E_IF_init in -lvo-amrwbenc... " >&6; }
Alexandre Lision0e143012014-01-22 11:02:46 -05007570if test "${ac_cv_lib_vo_amrwbenc_E_IF_init+set}" = set; then :
Tristan Matthews0a329cc2013-07-17 13:20:14 -04007571 $as_echo_n "(cached) " >&6
7572else
7573 ac_check_lib_save_LIBS=$LIBS
7574LIBS="-lvo-amrwbenc $LIBS"
7575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576/* end confdefs.h. */
7577
7578/* Override any GCC internal prototype to avoid an error.
7579 Use char because int might match the return type of a GCC
7580 builtin and then its argument prototype would still apply. */
7581#ifdef __cplusplus
7582extern "C"
7583#endif
7584char E_IF_init ();
7585int
7586main ()
7587{
7588return E_IF_init ();
7589 ;
7590 return 0;
7591}
7592_ACEOF
7593if ac_fn_c_try_link "$LINENO"; then :
7594 ac_cv_lib_vo_amrwbenc_E_IF_init=yes
7595else
7596 ac_cv_lib_vo_amrwbenc_E_IF_init=no
7597fi
7598rm -f core conftest.err conftest.$ac_objext \
7599 conftest$ac_exeext conftest.$ac_ext
7600LIBS=$ac_check_lib_save_LIBS
7601fi
7602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vo_amrwbenc_E_IF_init" >&5
7603$as_echo "$ac_cv_lib_vo_amrwbenc_E_IF_init" >&6; }
Alexandre Lision0e143012014-01-22 11:02:46 -05007604if test "x$ac_cv_lib_vo_amrwbenc_E_IF_init" = x""yes; then :
Tristan Matthews0a329cc2013-07-17 13:20:14 -04007605 opencore_amrwb_enc_present=1 && LIBS="$LIBS -lvo-amrwbenc"
7606fi
7607
7608 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
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-WB library found, AMR-WB support enabled" >&5
7610$as_echo "OpenCORE AMR-WB library found, AMR-WB support enabled" >&6; }
7611 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 1" >>confdefs.h
7612
7613 else
7614 ac_no_opencore_amrwb=1
7615 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 0" >>confdefs.h
7616
7617 fi
7618
7619
7620fi
7621
7622
7623
7624# Check whether --with-silk was given.
7625if test "${with_silk+set}" = set; then :
7626 withval=$with_silk;
7627else
7628 with_silk=no
7629
7630fi
7631
7632
7633if test "x$ac_cross_compile" != "x" -a "x$with_silk" = "xno"; then
7634 enable_silk=no
7635fi
7636
7637
7638# Check whether --enable-silk was given.
7639if test "${enable_silk+set}" = set; then :
7640 enableval=$enable_silk;
7641 if test "$enable_silk" = "no"; then
7642 ac_no_silk=1
7643 $as_echo "#define PJMEDIA_HAS_SILK_CODEC 0" >>confdefs.h
7644
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SILK support is disabled... yes" >&5
7646$as_echo "Checking if SILK support is disabled... yes" >&6; }
7647 fi
7648
7649else
7650
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for SILK installations.." >&5
7652$as_echo "checking for SILK installations.." >&6; }
7653 if test "x$with_silk" != "xno" -a "x$with_silk" != "x"; then
7654 CFLAGS="$CFLAGS -I$with_silk/interface"
7655 CPPFLAGS="$CPPFLAGS -I$with_silk/interface"
7656 LDFLAGS="$LDFLAGS -L$with_silk"
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SILK prefix... $with_silk" >&5
7658$as_echo "Using SILK prefix... $with_silk" >&6; }
7659 fi
7660
7661
7662 ac_fn_c_check_header_mongrel "$LINENO" "SKP_Silk_SDK_API.h" "ac_cv_header_SKP_Silk_SDK_API_h" "$ac_includes_default"
Alexandre Lision0e143012014-01-22 11:02:46 -05007663if test "x$ac_cv_header_SKP_Silk_SDK_API_h" = x""yes; then :
Tristan Matthews0a329cc2013-07-17 13:20:14 -04007664 silk_h_present=1
7665fi
7666
7667
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SKP_Silk_SDK_get_version in -lSKP_SILK_SDK" >&5
7669$as_echo_n "checking for SKP_Silk_SDK_get_version in -lSKP_SILK_SDK... " >&6; }
Alexandre Lision0e143012014-01-22 11:02:46 -05007670if test "${ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version+set}" = set; then :
Tristan Matthews0a329cc2013-07-17 13:20:14 -04007671 $as_echo_n "(cached) " >&6
7672else
7673 ac_check_lib_save_LIBS=$LIBS
7674LIBS="-lSKP_SILK_SDK $LIBS"
7675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676/* end confdefs.h. */
7677
7678/* Override any GCC internal prototype to avoid an error.
7679 Use char because int might match the return type of a GCC
7680 builtin and then its argument prototype would still apply. */
7681#ifdef __cplusplus
7682extern "C"
7683#endif
7684char SKP_Silk_SDK_get_version ();
7685int
7686main ()
7687{
7688return SKP_Silk_SDK_get_version ();
7689 ;
7690 return 0;
7691}
7692_ACEOF
7693if ac_fn_c_try_link "$LINENO"; then :
7694 ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version=yes
7695else
7696 ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version=no
7697fi
7698rm -f core conftest.err conftest.$ac_objext \
7699 conftest$ac_exeext conftest.$ac_ext
7700LIBS=$ac_check_lib_save_LIBS
7701fi
7702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" >&5
7703$as_echo "$ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" >&6; }
Alexandre Lision0e143012014-01-22 11:02:46 -05007704if test "x$ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" = x""yes; then :
Tristan Matthews0a329cc2013-07-17 13:20:14 -04007705 silk_present=1 && LIBS="$LIBS -lSKP_SILK_SDK"
7706fi
7707
7708 if test "x$silk_h_present" = "x1" -a "x$silk_present" = "x1"; then
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SILK library found, SILK support enabled" >&5
7710$as_echo "SILK library found, SILK support enabled" >&6; }
7711 $as_echo "#define PJMEDIA_HAS_SILK_CODEC 1" >>confdefs.h
7712
7713 else
7714 ac_no_silk=1
7715 $as_echo "#define PJMEDIA_HAS_SILK_CODEC 0" >>confdefs.h
7716
7717 fi
7718
7719fi
7720
7721
7722
7723
7724
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5
7726$as_echo_n "checking if select() needs correct nfds... " >&6; }
7727case $target in
7728 *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h
7729
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7731$as_echo "yes" >&6; }
7732 ;;
7733 *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h
7734
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7736$as_echo "no (default)" >&6; }
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
7738$as_echo "** Decided that select() doesn't need correct nfds (please check)" >&6; }
7739 ;;
7740esac
7741
7742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5
7743$as_echo_n "checking if pj_thread_create() should enforce stack size... " >&6; }
7744case $target in
7745 *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h
7746
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7748$as_echo "yes" >&6; }
7749 ;;
7750 *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h
7751
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7753$as_echo "no (default)" >&6; }
7754 ;;
7755esac
7756
7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5
7758$as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; }
7759case $target in
7760 *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h
7761
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7763$as_echo "yes" >&6; }
7764 ;;
7765 *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h
7766
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7768$as_echo "no (default)" >&6; }
7769 ;;
7770esac
7771
7772case $target in
7773 *mingw* | *cygw* | *win32* | *w32* )
7774 $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
7775
7776 ;;
7777 *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h
7778
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
7780$as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
7781 ;;
7782esac
7783
7784case $target in
7785 *mingw* | *cygw* | *win32* | *w32* )
7786 $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
7787
7788 ;;
7789 *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h
7790
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
7792$as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
7793 ;;
7794esac
7795
7796
7797
7798ac_linux_poll=select
7799
7800ac_host=unix
7801
7802
7803case $target in
7804 *rtems*)
7805 ac_main_obj=main_rtems.o
7806 ;;
7807 *)
7808 ac_main_obj=main.o
7809 ;;
7810esac
7811
7812
7813ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
7814cat >confcache <<\_ACEOF
7815# This file is a shell script that caches the results of configure
7816# tests run on this system so they can be shared between configure
7817# scripts and configure runs, see configure's option --config-cache.
7818# It is not useful on other systems. If it contains results you don't
7819# want to keep, you may remove or edit it.
7820#
7821# config.status only pays attention to the cache file if you give it
7822# the --recheck option to rerun configure.
7823#
7824# `ac_cv_env_foo' variables (set or unset) will be overridden when
7825# loading this file, other *unset* `ac_cv_foo' will be assigned the
7826# following values.
7827
7828_ACEOF
7829
7830# The following way of writing the cache mishandles newlines in values,
7831# but we know of no workaround that is simple, portable, and efficient.
7832# So, we kill variables containing newlines.
7833# Ultrix sh set writes to stderr and can't be redirected directly,
7834# and sets the high bit in the cache file unless we assign to the vars.
7835(
7836 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7837 eval ac_val=\$$ac_var
7838 case $ac_val in #(
7839 *${as_nl}*)
7840 case $ac_var in #(
7841 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7842$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7843 esac
7844 case $ac_var in #(
7845 _ | IFS | as_nl) ;; #(
7846 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7847 *) { eval $ac_var=; unset $ac_var;} ;;
7848 esac ;;
7849 esac
7850 done
7851
7852 (set) 2>&1 |
7853 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7854 *${as_nl}ac_space=\ *)
7855 # `set' does not quote correctly, so add quotes: double-quote
7856 # substitution turns \\\\ into \\, and sed turns \\ into \.
7857 sed -n \
7858 "s/'/'\\\\''/g;
7859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7860 ;; #(
7861 *)
7862 # `set' quotes correctly as required by POSIX, so do not add quotes.
7863 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7864 ;;
7865 esac |
7866 sort
7867) |
7868 sed '
7869 /^ac_cv_env_/b end
7870 t clear
7871 :clear
7872 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7873 t end
7874 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7875 :end' >>confcache
7876if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7877 if test -w "$cache_file"; then
7878 if test "x$cache_file" != "x/dev/null"; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7880$as_echo "$as_me: updating cache $cache_file" >&6;}
7881 if test ! -f "$cache_file" || test -h "$cache_file"; then
7882 cat confcache >"$cache_file"
7883 else
7884 case $cache_file in #(
7885 */* | ?:*)
7886 mv -f confcache "$cache_file"$$ &&
7887 mv -f "$cache_file"$$ "$cache_file" ;; #(
7888 *)
7889 mv -f confcache "$cache_file" ;;
7890 esac
7891 fi
7892 fi
7893 else
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7895$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7896 fi
7897fi
7898rm -f confcache
7899
7900test "x$prefix" = xNONE && prefix=$ac_default_prefix
7901# Let make expand exec_prefix.
7902test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7903
7904DEFS=-DHAVE_CONFIG_H
7905
7906ac_libobjs=
7907ac_ltlibobjs=
7908U=
7909for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7910 # 1. Remove the extension, and $U if already installed.
7911 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7912 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7913 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7914 # will be set to the directory where LIBOBJS objects are built.
7915 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7916 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7917done
7918LIBOBJS=$ac_libobjs
7919
7920LTLIBOBJS=$ac_ltlibobjs
7921
7922
7923
7924
7925: "${CONFIG_STATUS=./config.status}"
7926ac_write_fail=0
7927ac_clean_files_save=$ac_clean_files
7928ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7930$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7931as_write_fail=0
7932cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7933#! $SHELL
7934# Generated by $as_me.
7935# Run this file to recreate the current configuration.
7936# Compiler output produced by configure, useful for debugging
7937# configure, is in config.log if it exists.
7938
7939debug=false
7940ac_cs_recheck=false
7941ac_cs_silent=false
7942
7943SHELL=\${CONFIG_SHELL-$SHELL}
7944export SHELL
7945_ASEOF
7946cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7947## -------------------- ##
7948## M4sh Initialization. ##
7949## -------------------- ##
7950
7951# Be more Bourne compatible
7952DUALCASE=1; export DUALCASE # for MKS sh
7953if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7954 emulate sh
7955 NULLCMD=:
7956 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7957 # is contrary to our usage. Disable this feature.
7958 alias -g '${1+"$@"}'='"$@"'
7959 setopt NO_GLOB_SUBST
7960else
7961 case `(set -o) 2>/dev/null` in #(
7962 *posix*) :
7963 set -o posix ;; #(
7964 *) :
7965 ;;
7966esac
7967fi
7968
7969
7970as_nl='
7971'
7972export as_nl
7973# Printing a long string crashes Solaris 7 /usr/bin/printf.
7974as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7975as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7976as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7977# Prefer a ksh shell builtin over an external printf program on Solaris,
7978# but without wasting forks for bash or zsh.
7979if test -z "$BASH_VERSION$ZSH_VERSION" \
7980 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7981 as_echo='print -r --'
7982 as_echo_n='print -rn --'
7983elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7984 as_echo='printf %s\n'
7985 as_echo_n='printf %s'
7986else
7987 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7988 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7989 as_echo_n='/usr/ucb/echo -n'
7990 else
7991 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7992 as_echo_n_body='eval
7993 arg=$1;
7994 case $arg in #(
7995 *"$as_nl"*)
7996 expr "X$arg" : "X\\(.*\\)$as_nl";
7997 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7998 esac;
7999 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8000 '
8001 export as_echo_n_body
8002 as_echo_n='sh -c $as_echo_n_body as_echo'
8003 fi
8004 export as_echo_body
8005 as_echo='sh -c $as_echo_body as_echo'
8006fi
8007
8008# The user is always right.
8009if test "${PATH_SEPARATOR+set}" != set; then
8010 PATH_SEPARATOR=:
8011 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8012 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8013 PATH_SEPARATOR=';'
8014 }
8015fi
8016
8017
8018# IFS
8019# We need space, tab and new line, in precisely that order. Quoting is
8020# there to prevent editors from complaining about space-tab.
8021# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8022# splitting by setting IFS to empty value.)
8023IFS=" "" $as_nl"
8024
8025# Find who we are. Look in the path if we contain no directory separator.
8026as_myself=
8027case $0 in #((
8028 *[\\/]* ) as_myself=$0 ;;
8029 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030for as_dir in $PATH
8031do
8032 IFS=$as_save_IFS
8033 test -z "$as_dir" && as_dir=.
8034 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8035 done
8036IFS=$as_save_IFS
8037
8038 ;;
8039esac
8040# We did not find ourselves, most probably we were run as `sh COMMAND'
8041# in which case we are not to be found in the path.
8042if test "x$as_myself" = x; then
8043 as_myself=$0
8044fi
8045if test ! -f "$as_myself"; then
8046 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8047 exit 1
8048fi
8049
8050# Unset variables that we do not need and which cause bugs (e.g. in
8051# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8052# suppresses any "Segmentation fault" message there. '((' could
8053# trigger a bug in pdksh 5.2.14.
8054for as_var in BASH_ENV ENV MAIL MAILPATH
8055do eval test x\${$as_var+set} = xset \
8056 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8057done
8058PS1='$ '
8059PS2='> '
8060PS4='+ '
8061
8062# NLS nuisances.
8063LC_ALL=C
8064export LC_ALL
8065LANGUAGE=C
8066export LANGUAGE
8067
8068# CDPATH.
8069(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8070
8071
8072# as_fn_error STATUS ERROR [LINENO LOG_FD]
8073# ----------------------------------------
8074# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8075# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8076# script with STATUS, using 1 if that was 0.
8077as_fn_error ()
8078{
8079 as_status=$1; test $as_status -eq 0 && as_status=1
8080 if test "$4"; then
8081 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8082 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8083 fi
8084 $as_echo "$as_me: error: $2" >&2
8085 as_fn_exit $as_status
8086} # as_fn_error
8087
8088
8089# as_fn_set_status STATUS
8090# -----------------------
8091# Set $? to STATUS, without forking.
8092as_fn_set_status ()
8093{
8094 return $1
8095} # as_fn_set_status
8096
8097# as_fn_exit STATUS
8098# -----------------
8099# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8100as_fn_exit ()
8101{
8102 set +e
8103 as_fn_set_status $1
8104 exit $1
8105} # as_fn_exit
8106
8107# as_fn_unset VAR
8108# ---------------
8109# Portably unset VAR.
8110as_fn_unset ()
8111{
8112 { eval $1=; unset $1;}
8113}
8114as_unset=as_fn_unset
8115# as_fn_append VAR VALUE
8116# ----------------------
8117# Append the text in VALUE to the end of the definition contained in VAR. Take
8118# advantage of any shell optimizations that allow amortized linear growth over
8119# repeated appends, instead of the typical quadratic growth present in naive
8120# implementations.
8121if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8122 eval 'as_fn_append ()
8123 {
8124 eval $1+=\$2
8125 }'
8126else
8127 as_fn_append ()
8128 {
8129 eval $1=\$$1\$2
8130 }
8131fi # as_fn_append
8132
8133# as_fn_arith ARG...
8134# ------------------
8135# Perform arithmetic evaluation on the ARGs, and store the result in the
8136# global $as_val. Take advantage of shells that can avoid forks. The arguments
8137# must be portable across $(()) and expr.
8138if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8139 eval 'as_fn_arith ()
8140 {
8141 as_val=$(( $* ))
8142 }'
8143else
8144 as_fn_arith ()
8145 {
8146 as_val=`expr "$@" || test $? -eq 1`
8147 }
8148fi # as_fn_arith
8149
8150
8151if expr a : '\(a\)' >/dev/null 2>&1 &&
8152 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8153 as_expr=expr
8154else
8155 as_expr=false
8156fi
8157
8158if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8159 as_basename=basename
8160else
8161 as_basename=false
8162fi
8163
8164if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8165 as_dirname=dirname
8166else
8167 as_dirname=false
8168fi
8169
8170as_me=`$as_basename -- "$0" ||
8171$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8172 X"$0" : 'X\(//\)$' \| \
8173 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8174$as_echo X/"$0" |
8175 sed '/^.*\/\([^/][^/]*\)\/*$/{
8176 s//\1/
8177 q
8178 }
8179 /^X\/\(\/\/\)$/{
8180 s//\1/
8181 q
8182 }
8183 /^X\/\(\/\).*/{
8184 s//\1/
8185 q
8186 }
8187 s/.*/./; q'`
8188
8189# Avoid depending upon Character Ranges.
8190as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8191as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8192as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8193as_cr_digits='0123456789'
8194as_cr_alnum=$as_cr_Letters$as_cr_digits
8195
8196ECHO_C= ECHO_N= ECHO_T=
8197case `echo -n x` in #(((((
8198-n*)
8199 case `echo 'xy\c'` in
8200 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8201 xy) ECHO_C='\c';;
8202 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8203 ECHO_T=' ';;
8204 esac;;
8205*)
8206 ECHO_N='-n';;
8207esac
8208
8209rm -f conf$$ conf$$.exe conf$$.file
8210if test -d conf$$.dir; then
8211 rm -f conf$$.dir/conf$$.file
8212else
8213 rm -f conf$$.dir
8214 mkdir conf$$.dir 2>/dev/null
8215fi
8216if (echo >conf$$.file) 2>/dev/null; then
8217 if ln -s conf$$.file conf$$ 2>/dev/null; then
8218 as_ln_s='ln -s'
8219 # ... but there are two gotchas:
8220 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8221 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Alexandre Lision8af73cb2013-12-10 14:11:20 -05008222 # In both cases, we have to default to `cp -p'.
Tristan Matthews0a329cc2013-07-17 13:20:14 -04008223 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Alexandre Lision8af73cb2013-12-10 14:11:20 -05008224 as_ln_s='cp -p'
Tristan Matthews0a329cc2013-07-17 13:20:14 -04008225 elif ln conf$$.file conf$$ 2>/dev/null; then
8226 as_ln_s=ln
8227 else
Alexandre Lision8af73cb2013-12-10 14:11:20 -05008228 as_ln_s='cp -p'
Tristan Matthews0a329cc2013-07-17 13:20:14 -04008229 fi
8230else
Alexandre Lision8af73cb2013-12-10 14:11:20 -05008231 as_ln_s='cp -p'
Tristan Matthews0a329cc2013-07-17 13:20:14 -04008232fi
8233rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8234rmdir conf$$.dir 2>/dev/null
8235
8236
8237# as_fn_mkdir_p
8238# -------------
8239# Create "$as_dir" as a directory, including parents if necessary.
8240as_fn_mkdir_p ()
8241{
8242
8243 case $as_dir in #(
8244 -*) as_dir=./$as_dir;;
8245 esac
8246 test -d "$as_dir" || eval $as_mkdir_p || {
8247 as_dirs=
8248 while :; do
8249 case $as_dir in #(
8250 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8251 *) as_qdir=$as_dir;;
8252 esac
8253 as_dirs="'$as_qdir' $as_dirs"
8254 as_dir=`$as_dirname -- "$as_dir" ||
8255$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8256 X"$as_dir" : 'X\(//\)[^/]' \| \
8257 X"$as_dir" : 'X\(//\)$' \| \
8258 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8259$as_echo X"$as_dir" |
8260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8261 s//\1/
8262 q
8263 }
8264 /^X\(\/\/\)[^/].*/{
8265 s//\1/
8266 q
8267 }
8268 /^X\(\/\/\)$/{
8269 s//\1/
8270 q
8271 }
8272 /^X\(\/\).*/{
8273 s//\1/
8274 q
8275 }
8276 s/.*/./; q'`
8277 test -d "$as_dir" && break
8278 done
8279 test -z "$as_dirs" || eval "mkdir $as_dirs"
8280 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8281
8282
8283} # as_fn_mkdir_p
8284if mkdir -p . 2>/dev/null; then
8285 as_mkdir_p='mkdir -p "$as_dir"'
8286else
8287 test -d ./-p && rmdir ./-p
8288 as_mkdir_p=false
8289fi
8290
Alexandre Lision8af73cb2013-12-10 14:11:20 -05008291if test -x / >/dev/null 2>&1; then
8292 as_test_x='test -x'
8293else
8294 if ls -dL / >/dev/null 2>&1; then
8295 as_ls_L_option=L
8296 else
8297 as_ls_L_option=
8298 fi
8299 as_test_x='
8300 eval sh -c '\''
8301 if test -d "$1"; then
8302 test -d "$1/.";
8303 else
8304 case $1 in #(
8305 -*)set "./$1";;
8306 esac;
8307 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8308 ???[sx]*):;;*)false;;esac;fi
8309 '\'' sh
8310 '
8311fi
8312as_executable_p=$as_test_x
Tristan Matthews0a329cc2013-07-17 13:20:14 -04008313
8314# Sed expression to map a string onto a valid CPP name.
8315as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8316
8317# Sed expression to map a string onto a valid variable name.
8318as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8319
8320
8321exec 6>&1
8322## ----------------------------------- ##
8323## Main body of $CONFIG_STATUS script. ##
8324## ----------------------------------- ##
8325_ASEOF
8326test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8327
8328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8329# Save the log message, to keep $0 and so on meaningful, and to
8330# report actual input values of CONFIG_FILES etc. instead of their
8331# values after options handling.
8332ac_log="
8333This file was extended by pjproject $as_me 2.x, which was
Alexandre Lision8af73cb2013-12-10 14:11:20 -05008334generated by GNU Autoconf 2.68. Invocation command line was
Tristan Matthews0a329cc2013-07-17 13:20:14 -04008335
8336 CONFIG_FILES = $CONFIG_FILES
8337 CONFIG_HEADERS = $CONFIG_HEADERS
8338 CONFIG_LINKS = $CONFIG_LINKS
8339 CONFIG_COMMANDS = $CONFIG_COMMANDS
8340 $ $0 $@
8341
8342on `(hostname || uname -n) 2>/dev/null | sed 1q`
8343"
8344
8345_ACEOF
8346
8347case $ac_config_files in *"
8348"*) set x $ac_config_files; shift; ac_config_files=$*;;
8349esac
8350
8351case $ac_config_headers in *"
8352"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8353esac
8354
8355
8356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8357# Files that config.status was made for.
8358config_files="$ac_config_files"
8359config_headers="$ac_config_headers"
8360
8361_ACEOF
8362
8363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8364ac_cs_usage="\
8365\`$as_me' instantiates files and other configuration actions
8366from templates according to the current configuration. Unless the files
8367and actions are specified as TAGs, all are instantiated by default.
8368
8369Usage: $0 [OPTION]... [TAG]...
8370
8371 -h, --help print this help, then exit
8372 -V, --version print version number and configuration settings, then exit
8373 --config print configuration, then exit
8374 -q, --quiet, --silent
8375 do not print progress messages
8376 -d, --debug don't remove temporary files
8377 --recheck update $as_me by reconfiguring in the same conditions
8378 --file=FILE[:TEMPLATE]
8379 instantiate the configuration file FILE
8380 --header=FILE[:TEMPLATE]
8381 instantiate the configuration header FILE
8382
8383Configuration files:
8384$config_files
8385
8386Configuration headers:
8387$config_headers
8388
8389Report bugs to the package provider."
8390
8391_ACEOF
8392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8393ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8394ac_cs_version="\\
8395pjproject config.status 2.x
Alexandre Lision8af73cb2013-12-10 14:11:20 -05008396configured by $0, generated by GNU Autoconf 2.68,
Tristan Matthews0a329cc2013-07-17 13:20:14 -04008397 with options \\"\$ac_cs_config\\"
8398
Alexandre Lision8af73cb2013-12-10 14:11:20 -05008399Copyright (C) 2010 Free Software Foundation, Inc.
Tristan Matthews0a329cc2013-07-17 13:20:14 -04008400This config.status script is free software; the Free Software Foundation
8401gives unlimited permission to copy, distribute and modify it."
8402
8403ac_pwd='$ac_pwd'
8404srcdir='$srcdir'
8405test -n "\$AWK" || AWK=awk
8406_ACEOF
8407
8408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8409# The default lists apply if the user does not specify any file.
8410ac_need_defaults=:
8411while test $# != 0
8412do
8413 case $1 in
8414 --*=?*)
8415 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8416 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8417 ac_shift=:
8418 ;;
8419 --*=)
8420 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8421 ac_optarg=
8422 ac_shift=:
8423 ;;
8424 *)
8425 ac_option=$1
8426 ac_optarg=$2
8427 ac_shift=shift
8428 ;;
8429 esac
8430
8431 case $ac_option in
8432 # Handling of the options.
8433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8434 ac_cs_recheck=: ;;
8435 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8436 $as_echo "$ac_cs_version"; exit ;;
8437 --config | --confi | --conf | --con | --co | --c )
8438 $as_echo "$ac_cs_config"; exit ;;
8439 --debug | --debu | --deb | --de | --d | -d )
8440 debug=: ;;
8441 --file | --fil | --fi | --f )
8442 $ac_shift
8443 case $ac_optarg in
8444 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8445 '') as_fn_error $? "missing file argument" ;;
8446 esac
8447 as_fn_append CONFIG_FILES " '$ac_optarg'"
8448 ac_need_defaults=false;;
8449 --header | --heade | --head | --hea )
8450 $ac_shift
8451 case $ac_optarg in
8452 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8453 esac
8454 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8455 ac_need_defaults=false;;
8456 --he | --h)
8457 # Conflict between --help and --header
8458 as_fn_error $? "ambiguous option: \`$1'
8459Try \`$0 --help' for more information.";;
8460 --help | --hel | -h )
8461 $as_echo "$ac_cs_usage"; exit ;;
8462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8463 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8464 ac_cs_silent=: ;;
8465
8466 # This is an error.
8467 -*) as_fn_error $? "unrecognized option: \`$1'
8468Try \`$0 --help' for more information." ;;
8469
8470 *) as_fn_append ac_config_targets " $1"
8471 ac_need_defaults=false ;;
8472
8473 esac
8474 shift
8475done
8476
8477ac_configure_extra_args=
8478
8479if $ac_cs_silent; then
8480 exec 6>/dev/null
8481 ac_configure_extra_args="$ac_configure_extra_args --silent"
8482fi
8483
8484_ACEOF
8485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8486if \$ac_cs_recheck; then
Alexandre Lision8af73cb2013-12-10 14:11:20 -05008487 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Tristan Matthews0a329cc2013-07-17 13:20:14 -04008488 shift
8489 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8490 CONFIG_SHELL='$SHELL'
8491 export CONFIG_SHELL
8492 exec "\$@"
8493fi
8494
8495_ACEOF
8496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8497exec 5>>config.log
8498{
8499 echo
8500 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8501## Running $as_me. ##
8502_ASBOX
8503 $as_echo "$ac_log"
8504} >&5
8505
8506_ACEOF
8507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8508_ACEOF
8509
8510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8511
8512# Handling of arguments.
8513for ac_config_target in $ac_config_targets
8514do
8515 case $ac_config_target in
8516 "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
8517 "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
8518 "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
8519 "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
8520 "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
8521 "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
8522 "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
8523 "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
8524 "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
8525 "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
8526 "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
8527 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
8528 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
8529 "third_party/build/portaudio/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;;
8530
8531 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8532 esac
8533done
8534
8535
8536# If the user did not use the arguments to specify the items to instantiate,
8537# then the envvar interface is used. Set only those that are not.
8538# We use the long form for the default assignment because of an extremely
8539# bizarre bug on SunOS 4.1.3.
8540if $ac_need_defaults; then
8541 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8542 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8543fi
8544
8545# Have a temporary directory for convenience. Make it in the build tree
8546# simply because there is no reason against having it here, and in addition,
8547# creating and moving files from /tmp can sometimes cause problems.
8548# Hook for its removal unless debugging.
8549# Note that there is a small window in which the directory will not be cleaned:
8550# after its creation but before its name has been assigned to `$tmp'.
8551$debug ||
8552{
8553 tmp= ac_tmp=
8554 trap 'exit_status=$?
8555 : "${ac_tmp:=$tmp}"
8556 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8557' 0
8558 trap 'as_fn_exit 1' 1 2 13 15
8559}
8560# Create a (secure) tmp directory for tmp files.
8561
8562{
8563 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8564 test -d "$tmp"
8565} ||
8566{
8567 tmp=./conf$$-$RANDOM
8568 (umask 077 && mkdir "$tmp")
8569} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8570ac_tmp=$tmp
8571
8572# Set up the scripts for CONFIG_FILES section.
8573# No need to generate them if there are no CONFIG_FILES.
8574# This happens for instance with `./config.status config.h'.
8575if test -n "$CONFIG_FILES"; then
8576
8577
8578ac_cr=`echo X | tr X '\015'`
8579# On cygwin, bash can eat \r inside `` if the user requested igncr.
8580# But we know of no other shell where ac_cr would be empty at this
8581# point, so we can use a bashism as a fallback.
8582if test "x$ac_cr" = x; then
8583 eval ac_cr=\$\'\\r\'
8584fi
8585ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8586if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8587 ac_cs_awk_cr='\\r'
8588else
8589 ac_cs_awk_cr=$ac_cr
8590fi
8591
8592echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8593_ACEOF
8594
8595
8596{
8597 echo "cat >conf$$subs.awk <<_ACEOF" &&
8598 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8599 echo "_ACEOF"
8600} >conf$$subs.sh ||
8601 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8602ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8603ac_delim='%!_!# '
8604for ac_last_try in false false false false false :; do
8605 . ./conf$$subs.sh ||
8606 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8607
8608 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8609 if test $ac_delim_n = $ac_delim_num; then
8610 break
8611 elif $ac_last_try; then
8612 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8613 else
8614 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8615 fi
8616done
8617rm -f conf$$subs.sh
8618
8619cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8620cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8621_ACEOF
8622sed -n '
8623h
8624s/^/S["/; s/!.*/"]=/
8625p
8626g
8627s/^[^!]*!//
8628:repl
8629t repl
8630s/'"$ac_delim"'$//
8631t delim
8632:nl
8633h
8634s/\(.\{148\}\)..*/\1/
8635t more1
8636s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8637p
8638n
8639b repl
8640:more1
8641s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8642p
8643g
8644s/.\{148\}//
8645t nl
8646:delim
8647h
8648s/\(.\{148\}\)..*/\1/
8649t more2
8650s/["\\]/\\&/g; s/^/"/; s/$/"/
8651p
8652b
8653:more2
8654s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8655p
8656g
8657s/.\{148\}//
8658t delim
8659' <conf$$subs.awk | sed '
8660/^[^""]/{
8661 N
8662 s/\n//
8663}
8664' >>$CONFIG_STATUS || ac_write_fail=1
8665rm -f conf$$subs.awk
8666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8667_ACAWK
8668cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8669 for (key in S) S_is_set[key] = 1
8670 FS = ""
8671
8672}
8673{
8674 line = $ 0
8675 nfields = split(line, field, "@")
8676 substed = 0
8677 len = length(field[1])
8678 for (i = 2; i < nfields; i++) {
8679 key = field[i]
8680 keylen = length(key)
8681 if (S_is_set[key]) {
8682 value = S[key]
8683 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8684 len += length(value) + length(field[++i])
8685 substed = 1
8686 } else
8687 len += 1 + keylen
8688 }
8689
8690 print line
8691}
8692
8693_ACAWK
8694_ACEOF
8695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8696if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8697 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8698else
8699 cat
8700fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8701 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8702_ACEOF
8703
8704# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8705# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8706# trailing colons and then remove the whole line if VPATH becomes empty
8707# (actually we leave an empty line to preserve line numbers).
8708if test "x$srcdir" = x.; then
8709 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8710h
8711s///
8712s/^/:/
8713s/[ ]*$/:/
8714s/:\$(srcdir):/:/g
8715s/:\${srcdir}:/:/g
8716s/:@srcdir@:/:/g
8717s/^:*//
8718s/:*$//
8719x
8720s/\(=[ ]*\).*/\1/
8721G
8722s/\n//
8723s/^[^=]*=[ ]*$//
8724}'
8725fi
8726
8727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8728fi # test -n "$CONFIG_FILES"
8729
8730# Set up the scripts for CONFIG_HEADERS section.
8731# No need to generate them if there are no CONFIG_HEADERS.
8732# This happens for instance with `./config.status Makefile'.
8733if test -n "$CONFIG_HEADERS"; then
8734cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8735BEGIN {
8736_ACEOF
8737
8738# Transform confdefs.h into an awk script `defines.awk', embedded as
8739# here-document in config.status, that substitutes the proper values into
8740# config.h.in to produce config.h.
8741
8742# Create a delimiter string that does not exist in confdefs.h, to ease
8743# handling of long lines.
8744ac_delim='%!_!# '
8745for ac_last_try in false false :; do
8746 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8747 if test -z "$ac_tt"; then
8748 break
8749 elif $ac_last_try; then
8750 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8751 else
8752 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8753 fi
8754done
8755
8756# For the awk script, D is an array of macro values keyed by name,
8757# likewise P contains macro parameters if any. Preserve backslash
8758# newline sequences.
8759
8760ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8761sed -n '
8762s/.\{148\}/&'"$ac_delim"'/g
8763t rset
8764:rset
8765s/^[ ]*#[ ]*define[ ][ ]*/ /
8766t def
8767d
8768:def
8769s/\\$//
8770t bsnl
8771s/["\\]/\\&/g
8772s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8773D["\1"]=" \3"/p
8774s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8775d
8776:bsnl
8777s/["\\]/\\&/g
8778s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8779D["\1"]=" \3\\\\\\n"\\/p
8780t cont
8781s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8782t cont
8783d
8784:cont
8785n
8786s/.\{148\}/&'"$ac_delim"'/g
8787t clear
8788:clear
8789s/\\$//
8790t bsnlc
8791s/["\\]/\\&/g; s/^/"/; s/$/"/p
8792d
8793:bsnlc
8794s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8795b cont
8796' <confdefs.h | sed '
8797s/'"$ac_delim"'/"\\\
8798"/g' >>$CONFIG_STATUS || ac_write_fail=1
8799
8800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8801 for (key in D) D_is_set[key] = 1
8802 FS = ""
8803}
8804/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8805 line = \$ 0
8806 split(line, arg, " ")
8807 if (arg[1] == "#") {
8808 defundef = arg[2]
8809 mac1 = arg[3]
8810 } else {
8811 defundef = substr(arg[1], 2)
8812 mac1 = arg[2]
8813 }
8814 split(mac1, mac2, "(") #)
8815 macro = mac2[1]
8816 prefix = substr(line, 1, index(line, defundef) - 1)
8817 if (D_is_set[macro]) {
8818 # Preserve the white space surrounding the "#".
8819 print prefix "define", macro P[macro] D[macro]
8820 next
8821 } else {
8822 # Replace #undef with comments. This is necessary, for example,
8823 # in the case of _POSIX_SOURCE, which is predefined and required
8824 # on some systems where configure will not decide to define it.
8825 if (defundef == "undef") {
8826 print "/*", prefix defundef, macro, "*/"
8827 next
8828 }
8829 }
8830}
8831{ print }
8832_ACAWK
8833_ACEOF
8834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8835 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8836fi # test -n "$CONFIG_HEADERS"
8837
8838
8839eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8840shift
8841for ac_tag
8842do
8843 case $ac_tag in
8844 :[FHLC]) ac_mode=$ac_tag; continue;;
8845 esac
8846 case $ac_mode$ac_tag in
8847 :[FHL]*:*);;
8848 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8849 :[FH]-) ac_tag=-:-;;
8850 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8851 esac
8852 ac_save_IFS=$IFS
8853 IFS=:
8854 set x $ac_tag
8855 IFS=$ac_save_IFS
8856 shift
8857 ac_file=$1
8858 shift
8859
8860 case $ac_mode in
8861 :L) ac_source=$1;;
8862 :[FH])
8863 ac_file_inputs=
8864 for ac_f
8865 do
8866 case $ac_f in
8867 -) ac_f="$ac_tmp/stdin";;
8868 *) # Look for the file first in the build tree, then in the source tree
8869 # (if the path is not absolute). The absolute path cannot be DOS-style,
8870 # because $ac_f cannot contain `:'.
8871 test -f "$ac_f" ||
8872 case $ac_f in
8873 [\\/$]*) false;;
8874 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8875 esac ||
8876 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8877 esac
8878 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8879 as_fn_append ac_file_inputs " '$ac_f'"
8880 done
8881
8882 # Let's still pretend it is `configure' which instantiates (i.e., don't
8883 # use $as_me), people would be surprised to read:
8884 # /* config.h. Generated by config.status. */
8885 configure_input='Generated from '`
8886 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8887 `' by configure.'
8888 if test x"$ac_file" != x-; then
8889 configure_input="$ac_file. $configure_input"
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8891$as_echo "$as_me: creating $ac_file" >&6;}
8892 fi
8893 # Neutralize special characters interpreted by sed in replacement strings.
8894 case $configure_input in #(
8895 *\&* | *\|* | *\\* )
8896 ac_sed_conf_input=`$as_echo "$configure_input" |
8897 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8898 *) ac_sed_conf_input=$configure_input;;
8899 esac
8900
8901 case $ac_tag in
8902 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8903 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8904 esac
8905 ;;
8906 esac
8907
8908 ac_dir=`$as_dirname -- "$ac_file" ||
8909$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8910 X"$ac_file" : 'X\(//\)[^/]' \| \
8911 X"$ac_file" : 'X\(//\)$' \| \
8912 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8913$as_echo X"$ac_file" |
8914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8915 s//\1/
8916 q
8917 }
8918 /^X\(\/\/\)[^/].*/{
8919 s//\1/
8920 q
8921 }
8922 /^X\(\/\/\)$/{
8923 s//\1/
8924 q
8925 }
8926 /^X\(\/\).*/{
8927 s//\1/
8928 q
8929 }
8930 s/.*/./; q'`
8931 as_dir="$ac_dir"; as_fn_mkdir_p
8932 ac_builddir=.
8933
8934case "$ac_dir" in
8935.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8936*)
8937 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8938 # A ".." for each directory in $ac_dir_suffix.
8939 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8940 case $ac_top_builddir_sub in
8941 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8942 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8943 esac ;;
8944esac
8945ac_abs_top_builddir=$ac_pwd
8946ac_abs_builddir=$ac_pwd$ac_dir_suffix
8947# for backward compatibility:
8948ac_top_builddir=$ac_top_build_prefix
8949
8950case $srcdir in
8951 .) # We are building in place.
8952 ac_srcdir=.
8953 ac_top_srcdir=$ac_top_builddir_sub
8954 ac_abs_top_srcdir=$ac_pwd ;;
8955 [\\/]* | ?:[\\/]* ) # Absolute name.
8956 ac_srcdir=$srcdir$ac_dir_suffix;
8957 ac_top_srcdir=$srcdir
8958 ac_abs_top_srcdir=$srcdir ;;
8959 *) # Relative name.
8960 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8961 ac_top_srcdir=$ac_top_build_prefix$srcdir
8962 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8963esac
8964ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8965
8966
8967 case $ac_mode in
8968 :F)
8969 #
8970 # CONFIG_FILE
8971 #
8972
8973_ACEOF
8974
8975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8976# If the template does not know about datarootdir, expand it.
8977# FIXME: This hack should be removed a few years after 2.60.
8978ac_datarootdir_hack=; ac_datarootdir_seen=
8979ac_sed_dataroot='
8980/datarootdir/ {
8981 p
8982 q
8983}
8984/@datadir@/p
8985/@docdir@/p
8986/@infodir@/p
8987/@localedir@/p
8988/@mandir@/p'
8989case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8990*datarootdir*) ac_datarootdir_seen=yes;;
8991*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8993$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8994_ACEOF
8995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8996 ac_datarootdir_hack='
8997 s&@datadir@&$datadir&g
8998 s&@docdir@&$docdir&g
8999 s&@infodir@&$infodir&g
9000 s&@localedir@&$localedir&g
9001 s&@mandir@&$mandir&g
9002 s&\\\${datarootdir}&$datarootdir&g' ;;
9003esac
9004_ACEOF
9005
9006# Neutralize VPATH when `$srcdir' = `.'.
9007# Shell code in configure.ac might set extrasub.
9008# FIXME: do we really want to maintain this feature?
9009cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9010ac_sed_extra="$ac_vpsub
9011$extrasub
9012_ACEOF
9013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9014:t
9015/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9016s|@configure_input@|$ac_sed_conf_input|;t t
9017s&@top_builddir@&$ac_top_builddir_sub&;t t
9018s&@top_build_prefix@&$ac_top_build_prefix&;t t
9019s&@srcdir@&$ac_srcdir&;t t
9020s&@abs_srcdir@&$ac_abs_srcdir&;t t
9021s&@top_srcdir@&$ac_top_srcdir&;t t
9022s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9023s&@builddir@&$ac_builddir&;t t
9024s&@abs_builddir@&$ac_abs_builddir&;t t
9025s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9026$ac_datarootdir_hack
9027"
9028eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9029 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9030
9031test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9032 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9033 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9034 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9036which seems to be undefined. Please make sure it is defined" >&5
9037$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9038which seems to be undefined. Please make sure it is defined" >&2;}
9039
9040 rm -f "$ac_tmp/stdin"
9041 case $ac_file in
9042 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9043 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9044 esac \
9045 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9046 ;;
9047 :H)
9048 #
9049 # CONFIG_HEADER
9050 #
9051 if test x"$ac_file" != x-; then
9052 {
9053 $as_echo "/* $configure_input */" \
9054 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9055 } >"$ac_tmp/config.h" \
9056 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9057 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9059$as_echo "$as_me: $ac_file is unchanged" >&6;}
9060 else
9061 rm -f "$ac_file"
9062 mv "$ac_tmp/config.h" "$ac_file" \
9063 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9064 fi
9065 else
9066 $as_echo "/* $configure_input */" \
9067 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9068 || as_fn_error $? "could not create -" "$LINENO" 5
9069 fi
9070 ;;
9071
9072
9073 esac
9074
9075done # for ac_tag
9076
9077
9078as_fn_exit 0
9079_ACEOF
9080ac_clean_files=$ac_clean_files_save
9081
9082test $ac_write_fail = 0 ||
9083 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9084
9085
9086# configure is writing to config.log, and then calls config.status.
9087# config.status does its own redirection, appending to config.log.
9088# Unfortunately, on DOS this fails, as config.log is still kept open
9089# by configure, so config.status won't be able to write to it; its
9090# output is simply discarded. So we exec the FD to /dev/null,
9091# effectively closing config.log, so it can be properly (re)opened and
9092# appended to by config.status. When coming back to configure, we
9093# need to make the FD available again.
9094if test "$no_create" != yes; then
9095 ac_cs_success=:
9096 ac_config_status_args=
9097 test "$silent" = yes &&
9098 ac_config_status_args="$ac_config_status_args --quiet"
9099 exec 5>/dev/null
9100 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9101 exec 5>>config.log
9102 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9103 # would make configure fail if this is the last instruction.
9104 $ac_cs_success || as_fn_exit 1
9105fi
9106if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9108$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9109fi
9110
9111
9112
9113{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
9114
9115Configurations 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.
9116
9117Further customizations can be put in:
9118 - 'user.mak'
9119 - 'pjlib/include/pj/config_site.h'
9120
9121The next step now is to run 'make dep' and 'make'.
9122" >&5
9123$as_echo "
9124
9125Configurations 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.
9126
9127Further customizations can be put in:
9128 - 'user.mak'
9129 - 'pjlib/include/pj/config_site.h'
9130
9131The next step now is to run 'make dep' and 'make'.
9132" >&6; }
9133