blob: c5ee28cde121ecf0837ce3d96c8f6606998c6858 [file] [log] [blame]
Cullen Jennings235513a2005-09-21 22:51:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
jfigusd196e022014-11-20 16:43:44 -05003# Generated by GNU Autoconf 2.69 for libsrtp2 2.0.0-pre.
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02004#
5# Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00006#
jfigusc7e66e32013-05-08 11:32:55 -04007#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
Cullen Jennings235513a2005-09-21 22:51:36 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
jfigusc7e66e32013-05-08 11:32:55 -040013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +000016
jfigusc7e66e32013-05-08 11:32:55 -040017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +000020 emulate sh
21 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -040022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -040025 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +000026else
jfigusc7e66e32013-05-08 11:32:55 -040027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
Cullen Jennings235513a2005-09-21 22:51:36 +000033fi
34
35
jfigusc7e66e32013-05-08 11:32:55 -040036as_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
Cullen Jennings235513a2005-09-21 22:51:36 +0000124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -0400129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -0400133
jfigusc7e66e32013-05-08 11:32:55 -0400134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://github.com/cisco/libsrtp/issues about your
271$0: system, including any error possibly output before this
jfigusc7e66e32013-05-08 11:32:55 -0400272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000424 as_expr=expr
425else
426 as_expr=false
427fi
428
jfigusc7e66e32013-05-08 11:32:55 -0400429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000430 as_basename=basename
431else
432 as_basename=false
433fi
434
jfigusc7e66e32013-05-08 11:32:55 -0400435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
Cullen Jennings235513a2005-09-21 22:51:36 +0000440
jfigusc7e66e32013-05-08 11:32:55 -0400441as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +0000442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -0400444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000459
Cullen Jennings235513a2005-09-21 22:51:36 +0000460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
Cullen Jennings235513a2005-09-21 22:51:36 +0000467
jfigusc7e66e32013-05-08 11:32:55 -0400468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
Cullen Jennings235513a2005-09-21 22:51:36 +0000477 sed '
jfigusc7e66e32013-05-08 11:32:55 -0400478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
Cullen Jennings235513a2005-09-21 22:51:36 +0000482 N
jfigusc7e66e32013-05-08 11:32:55 -0400483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Cullen Jennings235513a2005-09-21 22:51:36 +0000485 t loop
jfigusc7e66e32013-05-08 11:32:55 -0400486 s/-\n.*//
Cullen Jennings235513a2005-09-21 22:51:36 +0000487 ' >$as_me.lineno &&
jfigusc7e66e32013-05-08 11:32:55 -0400488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Cullen Jennings235513a2005-09-21 22:51:36 +0000490
jfigusc7e66e32013-05-08 11:32:55 -0400491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
Cullen Jennings235513a2005-09-21 22:51:36 +0000495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
jfigusc7e66e32013-05-08 11:32:55 -0400497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
Cullen Jennings235513a2005-09-21 22:51:36 +0000499 # Exit status is that of the last command.
500 exit
501}
502
jfigusc7e66e32013-05-08 11:32:55 -0400503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512*)
513 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000514esac
515
Cullen Jennings235513a2005-09-21 22:51:36 +0000516rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -0400517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -0600525 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -0400526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +0000536 fi
Cullen Jennings235513a2005-09-21 22:51:36 +0000537else
jfigusc7e66e32013-05-08 11:32:55 -0400538 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +0000539fi
jfigusc7e66e32013-05-08 11:32:55 -0400540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +0000542
543if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -0400544 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +0000545else
David McGrewfec49dd2005-09-23 19:34:11 +0000546 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +0000547 as_mkdir_p=false
548fi
549
jfigusc7e66e32013-05-08 11:32:55 -0400550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +0000552
553# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +0000554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000555
556# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +0000557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000558
559
jfigusc7e66e32013-05-08 11:32:55 -0400560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
Cullen Jennings235513a2005-09-21 22:51:36 +0000562
563# Name of the host.
jfigusc7e66e32013-05-08 11:32:55 -0400564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Cullen Jennings235513a2005-09-21 22:51:36 +0000565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
Cullen Jennings235513a2005-09-21 22:51:36 +0000568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
jfigusc7e66e32013-05-08 11:32:55 -0400572ac_clean_files=
Cullen Jennings235513a2005-09-21 22:51:36 +0000573ac_config_libobj_dir=.
jfigusc7e66e32013-05-08 11:32:55 -0400574LIBOBJS=
Cullen Jennings235513a2005-09-21 22:51:36 +0000575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
Cullen Jennings235513a2005-09-21 22:51:36 +0000579
580# Identity of this package.
jfigusd196e022014-11-20 16:43:44 -0500581PACKAGE_NAME='libsrtp2'
582PACKAGE_TARNAME='libsrtp2'
jfigusb058a3b2014-10-31 09:27:18 -0400583PACKAGE_VERSION='2.0.0-pre'
jfigusd196e022014-11-20 16:43:44 -0500584PACKAGE_STRING='libsrtp2 2.0.0-pre'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200585PACKAGE_BUGREPORT='https://github.com/cisco/libsrtp/issues'
586PACKAGE_URL=''
Cullen Jennings235513a2005-09-21 22:51:36 +0000587
Cullen Jennings235513a2005-09-21 22:51:36 +0000588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -0400591#ifdef HAVE_SYS_TYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000592# include <sys/types.h>
593#endif
jfigusc7e66e32013-05-08 11:32:55 -0400594#ifdef HAVE_SYS_STAT_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000595# include <sys/stat.h>
596#endif
jfigusc7e66e32013-05-08 11:32:55 -0400597#ifdef STDC_HEADERS
Cullen Jennings235513a2005-09-21 22:51:36 +0000598# include <stdlib.h>
599# include <stddef.h>
600#else
jfigusc7e66e32013-05-08 11:32:55 -0400601# ifdef HAVE_STDLIB_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000602# include <stdlib.h>
603# endif
604#endif
jfigusc7e66e32013-05-08 11:32:55 -0400605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000607# include <memory.h>
608# endif
609# include <string.h>
610#endif
jfigusc7e66e32013-05-08 11:32:55 -0400611#ifdef HAVE_STRINGS_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000612# include <strings.h>
613#endif
jfigusc7e66e32013-05-08 11:32:55 -0400614#ifdef HAVE_INTTYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000615# include <inttypes.h>
Cullen Jennings235513a2005-09-21 22:51:36 +0000616#endif
jfigusc7e66e32013-05-08 11:32:55 -0400617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000621# include <unistd.h>
622#endif"
623
jfigusc7e66e32013-05-08 11:32:55 -0400624ac_subst_vars='LTLIBOBJS
625LIBOBJS
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200626HAVE_PKG_CONFIG
627PKG_CONFIG
Bernardo Torresb3c51422014-10-14 12:40:09 -0300628HAVE_PCAP
jfigusc7e66e32013-05-08 11:32:55 -0400629HMAC_OBJS
jfigusc7e66e32013-05-08 11:32:55 -0400630AES_ICM_OBJS
631USE_OPENSSL
632EXE
633host_os
634host_vendor
635host_cpu
636host
637build_os
638build_vendor
639build_cpu
640build
641EGREP
642GREP
643CPP
644INSTALL_DATA
645INSTALL_SCRIPT
646INSTALL_PROGRAM
jfigus1ce6a742015-04-06 08:54:01 -0400647RANLIB
jfigusc7e66e32013-05-08 11:32:55 -0400648OBJEXT
649EXEEXT
650ac_ct_CC
651CPPFLAGS
652LDFLAGS
653CFLAGS
654CC
jfigus1ce6a742015-04-06 08:54:01 -0400655ac_ct_AR
656AR
jfigusc7e66e32013-05-08 11:32:55 -0400657target_alias
658host_alias
659build_alias
660LIBS
661ECHO_T
662ECHO_N
663ECHO_C
664DEFS
665mandir
666localedir
667libdir
668psdir
669pdfdir
670dvidir
671htmldir
672infodir
673docdir
674oldincludedir
675includedir
676localstatedir
677sharedstatedir
678sysconfdir
679datadir
680datarootdir
681libexecdir
682sbindir
683bindir
684program_transform_name
685prefix
686exec_prefix
687PACKAGE_URL
688PACKAGE_BUGREPORT
689PACKAGE_STRING
690PACKAGE_VERSION
691PACKAGE_TARNAME
692PACKAGE_NAME
693PATH_SEPARATOR
694SHELL'
Cullen Jennings235513a2005-09-21 22:51:36 +0000695ac_subst_files=''
jfigusc7e66e32013-05-08 11:32:55 -0400696ac_user_opts='
697enable_option_checking
jfigusc7e66e32013-05-08 11:32:55 -0400698enable_debug
699enable_generic_aesicm
700enable_openssl
jfigus038d2cf2015-05-11 14:10:11 -0400701with_openssl_dir
702enable_openssl_kdf
jfigusc7e66e32013-05-08 11:32:55 -0400703enable_stdout
704enable_console
jfigusc7e66e32013-05-08 11:32:55 -0400705'
706 ac_precious_vars='build_alias
707host_alias
708target_alias
709CC
710CFLAGS
711LDFLAGS
712LIBS
713CPPFLAGS
714CPP'
715
Cullen Jennings235513a2005-09-21 22:51:36 +0000716
717# Initialize some variables set by options.
718ac_init_help=
719ac_init_version=false
jfigusc7e66e32013-05-08 11:32:55 -0400720ac_unrecognized_opts=
721ac_unrecognized_sep=
Cullen Jennings235513a2005-09-21 22:51:36 +0000722# The variables have the same names as the options, with
723# dashes changed to underlines.
724cache_file=/dev/null
725exec_prefix=NONE
726no_create=
727no_recursion=
728prefix=NONE
729program_prefix=NONE
730program_suffix=NONE
731program_transform_name=s,x,x,
732silent=
733site=
734srcdir=
735verbose=
736x_includes=NONE
737x_libraries=NONE
738
739# Installation directory options.
740# These are left unexpanded so users can "make install exec_prefix=/foo"
741# and all the variables that are supposed to be based on exec_prefix
742# by default will actually change.
743# Use braces instead of parens because sh, perl, etc. also accept them.
jfigusc7e66e32013-05-08 11:32:55 -0400744# (The list follows the same order as the GNU Coding Standards.)
Cullen Jennings235513a2005-09-21 22:51:36 +0000745bindir='${exec_prefix}/bin'
746sbindir='${exec_prefix}/sbin'
747libexecdir='${exec_prefix}/libexec'
jfigusc7e66e32013-05-08 11:32:55 -0400748datarootdir='${prefix}/share'
749datadir='${datarootdir}'
Cullen Jennings235513a2005-09-21 22:51:36 +0000750sysconfdir='${prefix}/etc'
751sharedstatedir='${prefix}/com'
752localstatedir='${prefix}/var'
Cullen Jennings235513a2005-09-21 22:51:36 +0000753includedir='${prefix}/include'
754oldincludedir='/usr/include'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200755docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
jfigusc7e66e32013-05-08 11:32:55 -0400756infodir='${datarootdir}/info'
757htmldir='${docdir}'
758dvidir='${docdir}'
759pdfdir='${docdir}'
760psdir='${docdir}'
761libdir='${exec_prefix}/lib'
762localedir='${datarootdir}/locale'
763mandir='${datarootdir}/man'
Cullen Jennings235513a2005-09-21 22:51:36 +0000764
765ac_prev=
jfigusc7e66e32013-05-08 11:32:55 -0400766ac_dashdash=
Cullen Jennings235513a2005-09-21 22:51:36 +0000767for ac_option
768do
769 # If the previous option needs an argument, assign it.
770 if test -n "$ac_prev"; then
jfigusc7e66e32013-05-08 11:32:55 -0400771 eval $ac_prev=\$ac_option
Cullen Jennings235513a2005-09-21 22:51:36 +0000772 ac_prev=
773 continue
774 fi
775
jfigusc7e66e32013-05-08 11:32:55 -0400776 case $ac_option in
777 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
778 *=) ac_optarg= ;;
779 *) ac_optarg=yes ;;
780 esac
Cullen Jennings235513a2005-09-21 22:51:36 +0000781
782 # Accept the important Cygnus configure options, so we can diagnose typos.
783
jfigusc7e66e32013-05-08 11:32:55 -0400784 case $ac_dashdash$ac_option in
785 --)
786 ac_dashdash=yes ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000787
788 -bindir | --bindir | --bindi | --bind | --bin | --bi)
789 ac_prev=bindir ;;
790 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
791 bindir=$ac_optarg ;;
792
793 -build | --build | --buil | --bui | --bu)
794 ac_prev=build_alias ;;
795 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
796 build_alias=$ac_optarg ;;
797
798 -cache-file | --cache-file | --cache-fil | --cache-fi \
799 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
800 ac_prev=cache_file ;;
801 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
802 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
803 cache_file=$ac_optarg ;;
804
805 --config-cache | -C)
806 cache_file=config.cache ;;
807
jfigusc7e66e32013-05-08 11:32:55 -0400808 -datadir | --datadir | --datadi | --datad)
Cullen Jennings235513a2005-09-21 22:51:36 +0000809 ac_prev=datadir ;;
jfigusc7e66e32013-05-08 11:32:55 -0400810 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000811 datadir=$ac_optarg ;;
812
jfigusc7e66e32013-05-08 11:32:55 -0400813 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
814 | --dataroo | --dataro | --datar)
815 ac_prev=datarootdir ;;
816 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
817 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
818 datarootdir=$ac_optarg ;;
819
Cullen Jennings235513a2005-09-21 22:51:36 +0000820 -disable-* | --disable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400821 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000822 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400823 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
824 as_fn_error $? "invalid feature name: $ac_useropt"
825 ac_useropt_orig=$ac_useropt
826 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
827 case $ac_user_opts in
828 *"
829"enable_$ac_useropt"
830"*) ;;
831 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
832 ac_unrecognized_sep=', ';;
833 esac
834 eval enable_$ac_useropt=no ;;
835
836 -docdir | --docdir | --docdi | --doc | --do)
837 ac_prev=docdir ;;
838 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
839 docdir=$ac_optarg ;;
840
841 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
842 ac_prev=dvidir ;;
843 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
844 dvidir=$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000845
846 -enable-* | --enable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400847 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000848 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400849 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
850 as_fn_error $? "invalid feature name: $ac_useropt"
851 ac_useropt_orig=$ac_useropt
852 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
853 case $ac_user_opts in
854 *"
855"enable_$ac_useropt"
856"*) ;;
857 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
858 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000859 esac
jfigusc7e66e32013-05-08 11:32:55 -0400860 eval enable_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000861
862 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
863 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
864 | --exec | --exe | --ex)
865 ac_prev=exec_prefix ;;
866 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
867 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
868 | --exec=* | --exe=* | --ex=*)
869 exec_prefix=$ac_optarg ;;
870
871 -gas | --gas | --ga | --g)
872 # Obsolete; use --with-gas.
873 with_gas=yes ;;
874
875 -help | --help | --hel | --he | -h)
876 ac_init_help=long ;;
877 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
878 ac_init_help=recursive ;;
879 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
880 ac_init_help=short ;;
881
882 -host | --host | --hos | --ho)
883 ac_prev=host_alias ;;
884 -host=* | --host=* | --hos=* | --ho=*)
885 host_alias=$ac_optarg ;;
886
jfigusc7e66e32013-05-08 11:32:55 -0400887 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
888 ac_prev=htmldir ;;
889 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
890 | --ht=*)
891 htmldir=$ac_optarg ;;
892
Cullen Jennings235513a2005-09-21 22:51:36 +0000893 -includedir | --includedir | --includedi | --included | --include \
894 | --includ | --inclu | --incl | --inc)
895 ac_prev=includedir ;;
896 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
897 | --includ=* | --inclu=* | --incl=* | --inc=*)
898 includedir=$ac_optarg ;;
899
900 -infodir | --infodir | --infodi | --infod | --info | --inf)
901 ac_prev=infodir ;;
902 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
903 infodir=$ac_optarg ;;
904
905 -libdir | --libdir | --libdi | --libd)
906 ac_prev=libdir ;;
907 -libdir=* | --libdir=* | --libdi=* | --libd=*)
908 libdir=$ac_optarg ;;
909
910 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
911 | --libexe | --libex | --libe)
912 ac_prev=libexecdir ;;
913 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
914 | --libexe=* | --libex=* | --libe=*)
915 libexecdir=$ac_optarg ;;
916
jfigusc7e66e32013-05-08 11:32:55 -0400917 -localedir | --localedir | --localedi | --localed | --locale)
918 ac_prev=localedir ;;
919 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
920 localedir=$ac_optarg ;;
921
Cullen Jennings235513a2005-09-21 22:51:36 +0000922 -localstatedir | --localstatedir | --localstatedi | --localstated \
jfigusc7e66e32013-05-08 11:32:55 -0400923 | --localstate | --localstat | --localsta | --localst | --locals)
Cullen Jennings235513a2005-09-21 22:51:36 +0000924 ac_prev=localstatedir ;;
925 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
jfigusc7e66e32013-05-08 11:32:55 -0400926 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000927 localstatedir=$ac_optarg ;;
928
929 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
930 ac_prev=mandir ;;
931 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
932 mandir=$ac_optarg ;;
933
934 -nfp | --nfp | --nf)
935 # Obsolete; use --without-fp.
936 with_fp=no ;;
937
938 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
939 | --no-cr | --no-c | -n)
940 no_create=yes ;;
941
942 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
943 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
944 no_recursion=yes ;;
945
946 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
947 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
948 | --oldin | --oldi | --old | --ol | --o)
949 ac_prev=oldincludedir ;;
950 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
951 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
952 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
953 oldincludedir=$ac_optarg ;;
954
955 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
956 ac_prev=prefix ;;
957 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
958 prefix=$ac_optarg ;;
959
960 -program-prefix | --program-prefix | --program-prefi | --program-pref \
961 | --program-pre | --program-pr | --program-p)
962 ac_prev=program_prefix ;;
963 -program-prefix=* | --program-prefix=* | --program-prefi=* \
964 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
965 program_prefix=$ac_optarg ;;
966
967 -program-suffix | --program-suffix | --program-suffi | --program-suff \
968 | --program-suf | --program-su | --program-s)
969 ac_prev=program_suffix ;;
970 -program-suffix=* | --program-suffix=* | --program-suffi=* \
971 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
972 program_suffix=$ac_optarg ;;
973
974 -program-transform-name | --program-transform-name \
975 | --program-transform-nam | --program-transform-na \
976 | --program-transform-n | --program-transform- \
977 | --program-transform | --program-transfor \
978 | --program-transfo | --program-transf \
979 | --program-trans | --program-tran \
980 | --progr-tra | --program-tr | --program-t)
981 ac_prev=program_transform_name ;;
982 -program-transform-name=* | --program-transform-name=* \
983 | --program-transform-nam=* | --program-transform-na=* \
984 | --program-transform-n=* | --program-transform-=* \
985 | --program-transform=* | --program-transfor=* \
986 | --program-transfo=* | --program-transf=* \
987 | --program-trans=* | --program-tran=* \
988 | --progr-tra=* | --program-tr=* | --program-t=*)
989 program_transform_name=$ac_optarg ;;
990
jfigusc7e66e32013-05-08 11:32:55 -0400991 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
992 ac_prev=pdfdir ;;
993 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
994 pdfdir=$ac_optarg ;;
995
996 -psdir | --psdir | --psdi | --psd | --ps)
997 ac_prev=psdir ;;
998 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
999 psdir=$ac_optarg ;;
1000
Cullen Jennings235513a2005-09-21 22:51:36 +00001001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1002 | -silent | --silent | --silen | --sile | --sil)
1003 silent=yes ;;
1004
1005 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1006 ac_prev=sbindir ;;
1007 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1008 | --sbi=* | --sb=*)
1009 sbindir=$ac_optarg ;;
1010
1011 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1012 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1013 | --sharedst | --shareds | --shared | --share | --shar \
1014 | --sha | --sh)
1015 ac_prev=sharedstatedir ;;
1016 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1017 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1018 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1019 | --sha=* | --sh=*)
1020 sharedstatedir=$ac_optarg ;;
1021
1022 -site | --site | --sit)
1023 ac_prev=site ;;
1024 -site=* | --site=* | --sit=*)
1025 site=$ac_optarg ;;
1026
1027 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1028 ac_prev=srcdir ;;
1029 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1030 srcdir=$ac_optarg ;;
1031
1032 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1033 | --syscon | --sysco | --sysc | --sys | --sy)
1034 ac_prev=sysconfdir ;;
1035 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1036 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1037 sysconfdir=$ac_optarg ;;
1038
1039 -target | --target | --targe | --targ | --tar | --ta | --t)
1040 ac_prev=target_alias ;;
1041 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1042 target_alias=$ac_optarg ;;
1043
1044 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1045 verbose=yes ;;
1046
1047 -version | --version | --versio | --versi | --vers | -V)
1048 ac_init_version=: ;;
1049
1050 -with-* | --with-*)
jfigusc7e66e32013-05-08 11:32:55 -04001051 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001052 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error $? "invalid package name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1058 *"
1059"with_$ac_useropt"
1060"*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +00001063 esac
jfigusc7e66e32013-05-08 11:32:55 -04001064 eval with_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001065
1066 -without-* | --without-*)
jfigusc7e66e32013-05-08 11:32:55 -04001067 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001068 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 as_fn_error $? "invalid package name: $ac_useropt"
1071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1074 *"
1075"with_$ac_useropt"
1076"*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
1079 esac
1080 eval with_$ac_useropt=no ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001081
1082 --x)
1083 # Obsolete; use --with-x.
1084 with_x=yes ;;
1085
1086 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1087 | --x-incl | --x-inc | --x-in | --x-i)
1088 ac_prev=x_includes ;;
1089 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1090 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1091 x_includes=$ac_optarg ;;
1092
1093 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1094 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1095 ac_prev=x_libraries ;;
1096 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1097 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1098 x_libraries=$ac_optarg ;;
1099
jfigusc7e66e32013-05-08 11:32:55 -04001100 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1101Try \`$0 --help' for more information"
Cullen Jennings235513a2005-09-21 22:51:36 +00001102 ;;
1103
1104 *=*)
1105 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1106 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001107 case $ac_envvar in #(
1108 '' | [0-9]* | *[!_$as_cr_alnum]* )
1109 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1110 esac
1111 eval $ac_envvar=\$ac_optarg
Cullen Jennings235513a2005-09-21 22:51:36 +00001112 export $ac_envvar ;;
1113
1114 *)
1115 # FIXME: should be removed in autoconf 3.0.
jfigusc7e66e32013-05-08 11:32:55 -04001116 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Cullen Jennings235513a2005-09-21 22:51:36 +00001117 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jfigusc7e66e32013-05-08 11:32:55 -04001118 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1119 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Cullen Jennings235513a2005-09-21 22:51:36 +00001120 ;;
1121
1122 esac
1123done
1124
1125if test -n "$ac_prev"; then
1126 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jfigusc7e66e32013-05-08 11:32:55 -04001127 as_fn_error $? "missing argument to $ac_option"
Cullen Jennings235513a2005-09-21 22:51:36 +00001128fi
1129
jfigusc7e66e32013-05-08 11:32:55 -04001130if test -n "$ac_unrecognized_opts"; then
1131 case $enable_option_checking in
1132 no) ;;
1133 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1134 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001135 esac
jfigusc7e66e32013-05-08 11:32:55 -04001136fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001137
jfigusc7e66e32013-05-08 11:32:55 -04001138# Check all directory arguments for consistency.
1139for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1140 datadir sysconfdir sharedstatedir localstatedir includedir \
1141 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1142 libdir localedir mandir
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001143do
jfigusc7e66e32013-05-08 11:32:55 -04001144 eval ac_val=\$$ac_var
1145 # Remove trailing slashes.
jfigusa14b5a02013-03-29 12:24:12 -04001146 case $ac_val in
jfigusc7e66e32013-05-08 11:32:55 -04001147 */ )
1148 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1149 eval $ac_var=\$ac_val;;
jfigusa14b5a02013-03-29 12:24:12 -04001150 esac
jfigusc7e66e32013-05-08 11:32:55 -04001151 # Be sure to have absolute directory names.
1152 case $ac_val in
1153 [\\/$]* | ?:[\\/]* ) continue;;
1154 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1155 esac
1156 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Cullen Jennings235513a2005-09-21 22:51:36 +00001157done
1158
1159# There might be people who depend on the old broken behavior: `$host'
1160# used to hold the argument of --host etc.
1161# FIXME: To remove some day.
1162build=$build_alias
1163host=$host_alias
1164target=$target_alias
1165
1166# FIXME: To remove some day.
1167if test "x$host_alias" != x; then
1168 if test "x$build_alias" = x; then
1169 cross_compiling=maybe
Cullen Jennings235513a2005-09-21 22:51:36 +00001170 elif test "x$build_alias" != "x$host_alias"; then
1171 cross_compiling=yes
1172 fi
1173fi
1174
1175ac_tool_prefix=
1176test -n "$host_alias" && ac_tool_prefix=$host_alias-
1177
1178test "$silent" = yes && exec 6>/dev/null
1179
1180
jfigusc7e66e32013-05-08 11:32:55 -04001181ac_pwd=`pwd` && test -n "$ac_pwd" &&
1182ac_ls_di=`ls -di .` &&
1183ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1184 as_fn_error $? "working directory cannot be determined"
1185test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1186 as_fn_error $? "pwd does not report name of working directory"
1187
1188
Cullen Jennings235513a2005-09-21 22:51:36 +00001189# Find the source files, if location was not specified.
1190if test -z "$srcdir"; then
1191 ac_srcdir_defaulted=yes
jfigusc7e66e32013-05-08 11:32:55 -04001192 # Try the directory containing this script, then the parent directory.
1193 ac_confdir=`$as_dirname -- "$as_myself" ||
1194$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1195 X"$as_myself" : 'X\(//\)[^/]' \| \
1196 X"$as_myself" : 'X\(//\)$' \| \
1197 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1198$as_echo X"$as_myself" |
1199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1200 s//\1/
1201 q
1202 }
1203 /^X\(\/\/\)[^/].*/{
1204 s//\1/
1205 q
1206 }
1207 /^X\(\/\/\)$/{
1208 s//\1/
1209 q
1210 }
1211 /^X\(\/\).*/{
1212 s//\1/
1213 q
1214 }
1215 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001216 srcdir=$ac_confdir
jfigusc7e66e32013-05-08 11:32:55 -04001217 if test ! -r "$srcdir/$ac_unique_file"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00001218 srcdir=..
1219 fi
1220else
1221 ac_srcdir_defaulted=no
1222fi
jfigusc7e66e32013-05-08 11:32:55 -04001223if test ! -r "$srcdir/$ac_unique_file"; then
1224 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1225 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Cullen Jennings235513a2005-09-21 22:51:36 +00001226fi
jfigusc7e66e32013-05-08 11:32:55 -04001227ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1228ac_abs_confdir=`(
1229 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1230 pwd)`
1231# When building in place, set srcdir=.
1232if test "$ac_abs_confdir" = "$ac_pwd"; then
1233 srcdir=.
1234fi
1235# Remove unnecessary trailing slashes from srcdir.
1236# Double slashes in file names in object file debugging info
1237# mess up M-x gdb in Emacs.
1238case $srcdir in
1239*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1240esac
1241for ac_var in $ac_precious_vars; do
1242 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1243 eval ac_env_${ac_var}_value=\$${ac_var}
1244 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1245 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1246done
Cullen Jennings235513a2005-09-21 22:51:36 +00001247
1248#
1249# Report the --help message.
1250#
1251if test "$ac_init_help" = "long"; then
1252 # Omit some internal or obsolete options to make the list less imposing.
1253 # This message is too long to be a string in the A/UX 3.1 sh.
1254 cat <<_ACEOF
jfigusd196e022014-11-20 16:43:44 -05001255\`configure' configures libsrtp2 2.0.0-pre to adapt to many kinds of systems.
Cullen Jennings235513a2005-09-21 22:51:36 +00001256
1257Usage: $0 [OPTION]... [VAR=VALUE]...
1258
1259To assign environment variables (e.g., CC, CFLAGS...), specify them as
1260VAR=VALUE. See below for descriptions of some of the useful variables.
1261
1262Defaults for the options are specified in brackets.
1263
1264Configuration:
1265 -h, --help display this help and exit
1266 --help=short display options specific to this package
1267 --help=recursive display the short help of all the included packages
1268 -V, --version display version information and exit
jfigusc7e66e32013-05-08 11:32:55 -04001269 -q, --quiet, --silent do not print \`checking ...' messages
Cullen Jennings235513a2005-09-21 22:51:36 +00001270 --cache-file=FILE cache test results in FILE [disabled]
1271 -C, --config-cache alias for \`--cache-file=config.cache'
1272 -n, --no-create do not create output files
1273 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1274
Cullen Jennings235513a2005-09-21 22:51:36 +00001275Installation directories:
1276 --prefix=PREFIX install architecture-independent files in PREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001277 [$ac_default_prefix]
Cullen Jennings235513a2005-09-21 22:51:36 +00001278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001279 [PREFIX]
Cullen Jennings235513a2005-09-21 22:51:36 +00001280
1281By default, \`make install' will install all the files in
1282\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1283an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1284for instance \`--prefix=\$HOME'.
1285
1286For better control, use the options below.
1287
1288Fine tuning of the installation directories:
jfigusc7e66e32013-05-08 11:32:55 -04001289 --bindir=DIR user executables [EPREFIX/bin]
1290 --sbindir=DIR system admin executables [EPREFIX/sbin]
1291 --libexecdir=DIR program executables [EPREFIX/libexec]
1292 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1293 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1294 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1295 --libdir=DIR object code libraries [EPREFIX/lib]
1296 --includedir=DIR C header files [PREFIX/include]
1297 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1298 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1299 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1300 --infodir=DIR info documentation [DATAROOTDIR/info]
1301 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1302 --mandir=DIR man documentation [DATAROOTDIR/man]
jfigusd196e022014-11-20 16:43:44 -05001303 --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp2]
jfigusc7e66e32013-05-08 11:32:55 -04001304 --htmldir=DIR html documentation [DOCDIR]
1305 --dvidir=DIR dvi documentation [DOCDIR]
1306 --pdfdir=DIR pdf documentation [DOCDIR]
1307 --psdir=DIR ps documentation [DOCDIR]
Cullen Jennings235513a2005-09-21 22:51:36 +00001308_ACEOF
1309
1310 cat <<\_ACEOF
1311
1312System types:
1313 --build=BUILD configure for building on BUILD [guessed]
1314 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1315_ACEOF
1316fi
1317
1318if test -n "$ac_init_help"; then
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001319 case $ac_init_help in
jfigusd196e022014-11-20 16:43:44 -05001320 short | recursive ) echo "Configuration of libsrtp2 2.0.0-pre:";;
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001321 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00001322 cat <<\_ACEOF
1323
1324Optional Features:
jfigusc7e66e32013-05-08 11:32:55 -04001325 --disable-option-checking ignore unrecognized --enable/--with options
Cullen Jennings235513a2005-09-21 22:51:36 +00001326 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1327 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
David McGrewb67061f2005-09-28 14:23:06 +00001328 --disable-debug do not compile in dynamic debugging system
1329 --enable-generic-aesicm compile in changes for ISMAcryp
jfigusc7e66e32013-05-08 11:32:55 -04001330 --enable-openssl compile in OpenSSL crypto engine
jfigus038d2cf2015-05-11 14:10:11 -04001331 --enable-openssl-kdf Use OpenSSL KDF algorithm
jfigus97a80f42014-11-04 14:15:40 -05001332 --enable-stdout use stdout for debug/error reporting
David McGrewb67061f2005-09-28 14:23:06 +00001333 --enable-console use /dev/console for error reporting
Cullen Jennings235513a2005-09-21 22:51:36 +00001334
jfigus038d2cf2015-05-11 14:10:11 -04001335Optional Packages:
1336 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1337 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1338 --with-openssl-dir Location of OpenSSL installation
1339
Cullen Jennings235513a2005-09-21 22:51:36 +00001340Some influential environment variables:
1341 CC C compiler command
1342 CFLAGS C compiler flags
1343 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1344 nonstandard directory <lib dir>
jfigusc7e66e32013-05-08 11:32:55 -04001345 LIBS libraries to pass to the linker, e.g. -l<library>
1346 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1347 you have headers in a nonstandard directory <include dir>
Cullen Jennings235513a2005-09-21 22:51:36 +00001348 CPP C preprocessor
1349
1350Use these variables to override the choices made by `configure' or to help
1351it to find libraries and programs with nonstandard names/locations.
1352
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001353Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00001354_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001355ac_status=$?
Cullen Jennings235513a2005-09-21 22:51:36 +00001356fi
1357
1358if test "$ac_init_help" = "recursive"; then
1359 # If there are subdirs, report their specific --help.
Cullen Jennings235513a2005-09-21 22:51:36 +00001360 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jfigusc7e66e32013-05-08 11:32:55 -04001361 test -d "$ac_dir" ||
1362 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1363 continue
Cullen Jennings235513a2005-09-21 22:51:36 +00001364 ac_builddir=.
1365
jfigusc7e66e32013-05-08 11:32:55 -04001366case "$ac_dir" in
1367.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1368*)
1369 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1370 # A ".." for each directory in $ac_dir_suffix.
1371 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1372 case $ac_top_builddir_sub in
1373 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1374 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1375 esac ;;
1376esac
1377ac_abs_top_builddir=$ac_pwd
1378ac_abs_builddir=$ac_pwd$ac_dir_suffix
1379# for backward compatibility:
1380ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00001381
1382case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04001383 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00001384 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04001385 ac_top_srcdir=$ac_top_builddir_sub
1386 ac_abs_top_srcdir=$ac_pwd ;;
1387 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001388 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04001389 ac_top_srcdir=$srcdir
1390 ac_abs_top_srcdir=$srcdir ;;
1391 *) # Relative name.
1392 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1393 ac_top_srcdir=$ac_top_build_prefix$srcdir
1394 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001395esac
jfigusc7e66e32013-05-08 11:32:55 -04001396ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001397
jfigusc7e66e32013-05-08 11:32:55 -04001398 cd "$ac_dir" || { ac_status=$?; continue; }
1399 # Check for guested configure.
1400 if test -f "$ac_srcdir/configure.gnu"; then
1401 echo &&
1402 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1403 elif test -f "$ac_srcdir/configure"; then
1404 echo &&
1405 $SHELL "$ac_srcdir/configure" --help=recursive
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001406 else
jfigusc7e66e32013-05-08 11:32:55 -04001407 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1408 fi || ac_status=$?
1409 cd "$ac_pwd" || { ac_status=$?; break; }
Cullen Jennings235513a2005-09-21 22:51:36 +00001410 done
1411fi
1412
jfigusc7e66e32013-05-08 11:32:55 -04001413test -n "$ac_init_help" && exit $ac_status
Cullen Jennings235513a2005-09-21 22:51:36 +00001414if $ac_init_version; then
1415 cat <<\_ACEOF
jfigusd196e022014-11-20 16:43:44 -05001416libsrtp2 configure 2.0.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04001417generated by GNU Autoconf 2.69
Cullen Jennings235513a2005-09-21 22:51:36 +00001418
jfigusc7e66e32013-05-08 11:32:55 -04001419Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00001420This configure script is free software; the Free Software Foundation
1421gives unlimited permission to copy, distribute and modify it.
1422_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001423 exit
Cullen Jennings235513a2005-09-21 22:51:36 +00001424fi
jfigusc7e66e32013-05-08 11:32:55 -04001425
1426## ------------------------ ##
1427## Autoconf initialization. ##
1428## ------------------------ ##
1429
1430# ac_fn_c_try_compile LINENO
1431# --------------------------
1432# Try to compile conftest.$ac_ext, and return whether this succeeded.
1433ac_fn_c_try_compile ()
1434{
1435 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1436 rm -f conftest.$ac_objext
1437 if { { ac_try="$ac_compile"
1438case "(($ac_try" in
1439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1440 *) ac_try_echo=$ac_try;;
1441esac
1442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1443$as_echo "$ac_try_echo"; } >&5
1444 (eval "$ac_compile") 2>conftest.err
1445 ac_status=$?
1446 if test -s conftest.err; then
1447 grep -v '^ *+' conftest.err >conftest.er1
1448 cat conftest.er1 >&5
1449 mv -f conftest.er1 conftest.err
1450 fi
1451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1452 test $ac_status = 0; } && {
1453 test -z "$ac_c_werror_flag" ||
1454 test ! -s conftest.err
1455 } && test -s conftest.$ac_objext; then :
1456 ac_retval=0
1457else
1458 $as_echo "$as_me: failed program was:" >&5
1459sed 's/^/| /' conftest.$ac_ext >&5
1460
1461 ac_retval=1
1462fi
1463 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1464 as_fn_set_status $ac_retval
1465
1466} # ac_fn_c_try_compile
1467
1468# ac_fn_c_try_run LINENO
1469# ----------------------
1470# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1471# that executables *can* be run.
1472ac_fn_c_try_run ()
1473{
1474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1475 if { { ac_try="$ac_link"
1476case "(($ac_try" in
1477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478 *) ac_try_echo=$ac_try;;
1479esac
1480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481$as_echo "$ac_try_echo"; } >&5
1482 (eval "$ac_link") 2>&5
1483 ac_status=$?
1484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1485 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1486 { { case "(($ac_try" in
1487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1488 *) ac_try_echo=$ac_try;;
1489esac
1490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491$as_echo "$ac_try_echo"; } >&5
1492 (eval "$ac_try") 2>&5
1493 ac_status=$?
1494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1495 test $ac_status = 0; }; }; then :
1496 ac_retval=0
1497else
1498 $as_echo "$as_me: program exited with status $ac_status" >&5
1499 $as_echo "$as_me: failed program was:" >&5
1500sed 's/^/| /' conftest.$ac_ext >&5
1501
1502 ac_retval=$ac_status
1503fi
1504 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1505 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1506 as_fn_set_status $ac_retval
1507
1508} # ac_fn_c_try_run
1509
1510# ac_fn_c_try_cpp LINENO
1511# ----------------------
1512# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1513ac_fn_c_try_cpp ()
1514{
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 if { { ac_try="$ac_cpp conftest.$ac_ext"
1517case "(($ac_try" in
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1520esac
1521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522$as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1524 ac_status=$?
1525 if test -s conftest.err; then
1526 grep -v '^ *+' conftest.err >conftest.er1
1527 cat conftest.er1 >&5
1528 mv -f conftest.er1 conftest.err
1529 fi
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } > conftest.i && {
1532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1533 test ! -s conftest.err
1534 }; then :
1535 ac_retval=0
1536else
1537 $as_echo "$as_me: failed program was:" >&5
1538sed 's/^/| /' conftest.$ac_ext >&5
1539
1540 ac_retval=1
1541fi
1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543 as_fn_set_status $ac_retval
1544
1545} # ac_fn_c_try_cpp
1546
1547# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1548# -------------------------------------------------------
1549# Tests whether HEADER exists and can be compiled using the include files in
1550# INCLUDES, setting the cache variable VAR accordingly.
1551ac_fn_c_check_header_compile ()
1552{
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1555$as_echo_n "checking for $2... " >&6; }
1556if eval \${$3+:} false; then :
1557 $as_echo_n "(cached) " >&6
1558else
1559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1560/* end confdefs.h. */
1561$4
1562#include <$2>
1563_ACEOF
1564if ac_fn_c_try_compile "$LINENO"; then :
1565 eval "$3=yes"
1566else
1567 eval "$3=no"
1568fi
1569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1570fi
1571eval ac_res=\$$3
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1573$as_echo "$ac_res" >&6; }
1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575
1576} # ac_fn_c_check_header_compile
1577
1578# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1579# -------------------------------------------------------
1580# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1581# the include files in INCLUDES and setting the cache variable VAR
1582# accordingly.
1583ac_fn_c_check_header_mongrel ()
1584{
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 if eval \${$3+:} false; then :
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1588$as_echo_n "checking for $2... " >&6; }
1589if eval \${$3+:} false; then :
1590 $as_echo_n "(cached) " >&6
1591fi
1592eval ac_res=\$$3
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1594$as_echo "$ac_res" >&6; }
1595else
1596 # Is the header compilable?
1597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1598$as_echo_n "checking $2 usability... " >&6; }
1599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1600/* end confdefs.h. */
1601$4
1602#include <$2>
1603_ACEOF
1604if ac_fn_c_try_compile "$LINENO"; then :
1605 ac_header_compiler=yes
1606else
1607 ac_header_compiler=no
1608fi
1609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1611$as_echo "$ac_header_compiler" >&6; }
1612
1613# Is the header present?
1614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1615$as_echo_n "checking $2 presence... " >&6; }
1616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1617/* end confdefs.h. */
1618#include <$2>
1619_ACEOF
1620if ac_fn_c_try_cpp "$LINENO"; then :
1621 ac_header_preproc=yes
1622else
1623 ac_header_preproc=no
1624fi
1625rm -f conftest.err conftest.i conftest.$ac_ext
1626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1627$as_echo "$ac_header_preproc" >&6; }
1628
1629# So? What about this header?
1630case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1631 yes:no: )
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1633$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1635$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1636 ;;
1637 no:yes:* )
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1639$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1641$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1643$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1645$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1647$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001648( $as_echo "## ------------------------------------------------------ ##
1649## Report this to https://github.com/cisco/libsrtp/issues ##
1650## ------------------------------------------------------ ##"
1651 ) | sed "s/^/$as_me: WARNING: /" >&2
jfigusc7e66e32013-05-08 11:32:55 -04001652 ;;
1653esac
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655$as_echo_n "checking for $2... " >&6; }
1656if eval \${$3+:} false; then :
1657 $as_echo_n "(cached) " >&6
1658else
1659 eval "$3=\$ac_header_compiler"
1660fi
1661eval ac_res=\$$3
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663$as_echo "$ac_res" >&6; }
1664fi
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666
1667} # ac_fn_c_check_header_mongrel
1668
1669# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1670# -------------------------------------------
1671# Tests whether TYPE exists after having included INCLUDES, setting cache
1672# variable VAR accordingly.
1673ac_fn_c_check_type ()
1674{
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677$as_echo_n "checking for $2... " >&6; }
1678if eval \${$3+:} false; then :
1679 $as_echo_n "(cached) " >&6
1680else
1681 eval "$3=no"
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683/* end confdefs.h. */
1684$4
1685int
1686main ()
1687{
1688if (sizeof ($2))
1689 return 0;
1690 ;
1691 return 0;
1692}
1693_ACEOF
1694if ac_fn_c_try_compile "$LINENO"; then :
1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696/* end confdefs.h. */
1697$4
1698int
1699main ()
1700{
1701if (sizeof (($2)))
1702 return 0;
1703 ;
1704 return 0;
1705}
1706_ACEOF
1707if ac_fn_c_try_compile "$LINENO"; then :
1708
1709else
1710 eval "$3=yes"
1711fi
1712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713fi
1714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1715fi
1716eval ac_res=\$$3
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718$as_echo "$ac_res" >&6; }
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720
1721} # ac_fn_c_check_type
1722
1723# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1724# --------------------------------------------
1725# Tries to find the compile-time value of EXPR in a program that includes
1726# INCLUDES, setting VAR accordingly. Returns whether the value could be
1727# computed
1728ac_fn_c_compute_int ()
1729{
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if test "$cross_compiling" = yes; then
1732 # Depending upon the size, compute the lo and hi bounds.
1733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734/* end confdefs.h. */
1735$4
1736int
1737main ()
1738{
1739static int test_array [1 - 2 * !(($2) >= 0)];
1740test_array [0] = 0;
1741return test_array [0];
1742
1743 ;
1744 return 0;
1745}
1746_ACEOF
1747if ac_fn_c_try_compile "$LINENO"; then :
1748 ac_lo=0 ac_mid=0
1749 while :; do
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751/* end confdefs.h. */
1752$4
1753int
1754main ()
1755{
1756static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1757test_array [0] = 0;
1758return test_array [0];
1759
1760 ;
1761 return 0;
1762}
1763_ACEOF
1764if ac_fn_c_try_compile "$LINENO"; then :
1765 ac_hi=$ac_mid; break
1766else
1767 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1768 if test $ac_lo -le $ac_mid; then
1769 ac_lo= ac_hi=
1770 break
1771 fi
1772 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1773fi
1774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775 done
1776else
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778/* end confdefs.h. */
1779$4
1780int
1781main ()
1782{
1783static int test_array [1 - 2 * !(($2) < 0)];
1784test_array [0] = 0;
1785return test_array [0];
1786
1787 ;
1788 return 0;
1789}
1790_ACEOF
1791if ac_fn_c_try_compile "$LINENO"; then :
1792 ac_hi=-1 ac_mid=-1
1793 while :; do
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795/* end confdefs.h. */
1796$4
1797int
1798main ()
1799{
1800static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1801test_array [0] = 0;
1802return test_array [0];
1803
1804 ;
1805 return 0;
1806}
1807_ACEOF
1808if ac_fn_c_try_compile "$LINENO"; then :
1809 ac_lo=$ac_mid; break
1810else
1811 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1812 if test $ac_mid -le $ac_hi; then
1813 ac_lo= ac_hi=
1814 break
1815 fi
1816 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1817fi
1818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 done
1820else
1821 ac_lo= ac_hi=
1822fi
1823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824fi
1825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826# Binary search between lo and hi bounds.
1827while test "x$ac_lo" != "x$ac_hi"; do
1828 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h. */
1831$4
1832int
1833main ()
1834{
1835static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1836test_array [0] = 0;
1837return test_array [0];
1838
1839 ;
1840 return 0;
1841}
1842_ACEOF
1843if ac_fn_c_try_compile "$LINENO"; then :
1844 ac_hi=$ac_mid
1845else
1846 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1847fi
1848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849done
1850case $ac_lo in #((
1851?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1852'') ac_retval=1 ;;
1853esac
1854 else
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856/* end confdefs.h. */
1857$4
1858static long int longval () { return $2; }
1859static unsigned long int ulongval () { return $2; }
1860#include <stdio.h>
1861#include <stdlib.h>
1862int
1863main ()
1864{
1865
1866 FILE *f = fopen ("conftest.val", "w");
1867 if (! f)
1868 return 1;
1869 if (($2) < 0)
1870 {
1871 long int i = longval ();
1872 if (i != ($2))
1873 return 1;
1874 fprintf (f, "%ld", i);
1875 }
1876 else
1877 {
1878 unsigned long int i = ulongval ();
1879 if (i != ($2))
1880 return 1;
1881 fprintf (f, "%lu", i);
1882 }
1883 /* Do not output a trailing newline, as this causes \r\n confusion
1884 on some platforms. */
1885 return ferror (f) || fclose (f) != 0;
1886
1887 ;
1888 return 0;
1889}
1890_ACEOF
1891if ac_fn_c_try_run "$LINENO"; then :
1892 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1893else
1894 ac_retval=1
1895fi
1896rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1897 conftest.$ac_objext conftest.beam conftest.$ac_ext
1898rm -f conftest.val
1899
1900 fi
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1903
1904} # ac_fn_c_compute_int
1905
1906# ac_fn_c_try_link LINENO
1907# -----------------------
1908# Try to link conftest.$ac_ext, and return whether this succeeded.
1909ac_fn_c_try_link ()
1910{
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 rm -f conftest.$ac_objext conftest$ac_exeext
1913 if { { ac_try="$ac_link"
1914case "(($ac_try" in
1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1917esac
1918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919$as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_link") 2>conftest.err
1921 ac_status=$?
1922 if test -s conftest.err; then
1923 grep -v '^ *+' conftest.err >conftest.er1
1924 cat conftest.er1 >&5
1925 mv -f conftest.er1 conftest.err
1926 fi
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } && {
1929 test -z "$ac_c_werror_flag" ||
1930 test ! -s conftest.err
1931 } && test -s conftest$ac_exeext && {
1932 test "$cross_compiling" = yes ||
1933 test -x conftest$ac_exeext
1934 }; then :
1935 ac_retval=0
1936else
1937 $as_echo "$as_me: failed program was:" >&5
1938sed 's/^/| /' conftest.$ac_ext >&5
1939
1940 ac_retval=1
1941fi
1942 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1943 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1944 # interfere with the next link command; also delete a directory that is
1945 # left behind by Apple's compiler. We do this before executing the actions.
1946 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948 as_fn_set_status $ac_retval
1949
1950} # ac_fn_c_try_link
1951
1952# ac_fn_c_check_func LINENO FUNC VAR
1953# ----------------------------------
1954# Tests whether FUNC exists, setting the cache variable VAR accordingly
1955ac_fn_c_check_func ()
1956{
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959$as_echo_n "checking for $2... " >&6; }
1960if eval \${$3+:} false; then :
1961 $as_echo_n "(cached) " >&6
1962else
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964/* end confdefs.h. */
1965/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1967#define $2 innocuous_$2
1968
1969/* System header to define __stub macros and hopefully few prototypes,
1970 which can conflict with char $2 (); below.
1971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1972 <limits.h> exists even on freestanding compilers. */
1973
1974#ifdef __STDC__
1975# include <limits.h>
1976#else
1977# include <assert.h>
1978#endif
1979
1980#undef $2
1981
1982/* Override any GCC internal prototype to avoid an error.
1983 Use char because int might match the return type of a GCC
1984 builtin and then its argument prototype would still apply. */
1985#ifdef __cplusplus
1986extern "C"
1987#endif
1988char $2 ();
1989/* The GNU C library defines this for functions which it implements
1990 to always fail with ENOSYS. Some functions are actually named
1991 something starting with __ and the normal name is an alias. */
1992#if defined __stub_$2 || defined __stub___$2
1993choke me
1994#endif
1995
1996int
1997main ()
1998{
1999return $2 ();
2000 ;
2001 return 0;
2002}
2003_ACEOF
2004if ac_fn_c_try_link "$LINENO"; then :
2005 eval "$3=yes"
2006else
2007 eval "$3=no"
2008fi
2009rm -f core conftest.err conftest.$ac_objext \
2010 conftest$ac_exeext conftest.$ac_ext
2011fi
2012eval ac_res=\$$3
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014$as_echo "$ac_res" >&6; }
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016
2017} # ac_fn_c_check_func
2018cat >config.log <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002019This file contains any messages produced by compilers while
2020running configure, to aid debugging if configure makes a mistake.
2021
jfigusd196e022014-11-20 16:43:44 -05002022It was created by libsrtp2 $as_me 2.0.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04002023generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00002024
2025 $ $0 $@
2026
2027_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002028exec 5>>config.log
Cullen Jennings235513a2005-09-21 22:51:36 +00002029{
2030cat <<_ASUNAME
2031## --------- ##
2032## Platform. ##
2033## --------- ##
2034
2035hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2036uname -m = `(uname -m) 2>/dev/null || echo unknown`
2037uname -r = `(uname -r) 2>/dev/null || echo unknown`
2038uname -s = `(uname -s) 2>/dev/null || echo unknown`
2039uname -v = `(uname -v) 2>/dev/null || echo unknown`
2040
2041/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2042/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2043
2044/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2045/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2046/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
jfigusc7e66e32013-05-08 11:32:55 -04002047/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Cullen Jennings235513a2005-09-21 22:51:36 +00002048/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2049/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2050/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2051
2052_ASUNAME
2053
2054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055for as_dir in $PATH
2056do
2057 IFS=$as_save_IFS
2058 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002059 $as_echo "PATH: $as_dir"
2060 done
2061IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002062
2063} >&5
2064
2065cat >&5 <<_ACEOF
2066
2067
2068## ----------- ##
2069## Core tests. ##
2070## ----------- ##
2071
2072_ACEOF
2073
2074
2075# Keep a trace of the command line.
2076# Strip out --no-create and --no-recursion so they do not pile up.
2077# Strip out --silent because we don't want to record it for future runs.
2078# Also quote any args containing shell meta-characters.
2079# Make two passes to allow for proper duplicate-argument suppression.
2080ac_configure_args=
2081ac_configure_args0=
2082ac_configure_args1=
Cullen Jennings235513a2005-09-21 22:51:36 +00002083ac_must_keep_next=false
2084for ac_pass in 1 2
2085do
2086 for ac_arg
2087 do
2088 case $ac_arg in
2089 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2091 | -silent | --silent | --silen | --sile | --sil)
2092 continue ;;
jfigusc7e66e32013-05-08 11:32:55 -04002093 *\'*)
2094 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002095 esac
2096 case $ac_pass in
jfigusc7e66e32013-05-08 11:32:55 -04002097 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002098 2)
jfigusc7e66e32013-05-08 11:32:55 -04002099 as_fn_append ac_configure_args1 " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002100 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00002101 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00002102 else
David McGrewfec49dd2005-09-23 19:34:11 +00002103 case $ac_arg in
2104 *=* | --config-cache | -C | -disable-* | --disable-* \
2105 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2106 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2107 | -with-* | --with-* | -without-* | --without-* | --x)
2108 case "$ac_configure_args0 " in
2109 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2110 esac
2111 ;;
2112 -* ) ac_must_keep_next=true ;;
2113 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00002114 fi
jfigusc7e66e32013-05-08 11:32:55 -04002115 as_fn_append ac_configure_args " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002116 ;;
2117 esac
2118 done
2119done
jfigusc7e66e32013-05-08 11:32:55 -04002120{ ac_configure_args0=; unset ac_configure_args0;}
2121{ ac_configure_args1=; unset ac_configure_args1;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002122
2123# When interrupted or exit'd, cleanup temporary files, and complete
2124# config.log. We remove comments because anyway the quotes in there
2125# would cause problems or look ugly.
jfigusc7e66e32013-05-08 11:32:55 -04002126# WARNING: Use '\'' to represent an apostrophe within the trap.
2127# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Cullen Jennings235513a2005-09-21 22:51:36 +00002128trap 'exit_status=$?
2129 # Save into config.log some information that might help in debugging.
2130 {
2131 echo
2132
jfigusc7e66e32013-05-08 11:32:55 -04002133 $as_echo "## ---------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002134## Cache variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002135## ---------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002136 echo
2137 # The following way of writing the cache mishandles newlines in values,
jfigusc7e66e32013-05-08 11:32:55 -04002138(
2139 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2140 eval ac_val=\$$ac_var
2141 case $ac_val in #(
2142 *${as_nl}*)
2143 case $ac_var in #(
2144 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2145$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2146 esac
2147 case $ac_var in #(
2148 _ | IFS | as_nl) ;; #(
2149 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2150 *) { eval $ac_var=; unset $ac_var;} ;;
2151 esac ;;
2152 esac
2153 done
Cullen Jennings235513a2005-09-21 22:51:36 +00002154 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04002155 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2156 *${as_nl}ac_space=\ *)
Cullen Jennings235513a2005-09-21 22:51:36 +00002157 sed -n \
jfigusc7e66e32013-05-08 11:32:55 -04002158 "s/'\''/'\''\\\\'\'''\''/g;
2159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2160 ;; #(
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002161 *)
jfigusc7e66e32013-05-08 11:32:55 -04002162 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002163 ;;
jfigusc7e66e32013-05-08 11:32:55 -04002164 esac |
2165 sort
2166)
Cullen Jennings235513a2005-09-21 22:51:36 +00002167 echo
2168
jfigusc7e66e32013-05-08 11:32:55 -04002169 $as_echo "## ----------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002170## Output variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002171## ----------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002172 echo
2173 for ac_var in $ac_subst_vars
2174 do
jfigusc7e66e32013-05-08 11:32:55 -04002175 eval ac_val=\$$ac_var
2176 case $ac_val in
2177 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2178 esac
2179 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002180 done | sort
2181 echo
2182
2183 if test -n "$ac_subst_files"; then
jfigusc7e66e32013-05-08 11:32:55 -04002184 $as_echo "## ------------------- ##
2185## File substitutions. ##
2186## ------------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002187 echo
2188 for ac_var in $ac_subst_files
2189 do
jfigusc7e66e32013-05-08 11:32:55 -04002190 eval ac_val=\$$ac_var
2191 case $ac_val in
2192 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193 esac
2194 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002195 done | sort
2196 echo
2197 fi
2198
2199 if test -s confdefs.h; then
jfigusc7e66e32013-05-08 11:32:55 -04002200 $as_echo "## ----------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002201## confdefs.h. ##
jfigusc7e66e32013-05-08 11:32:55 -04002202## ----------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002203 echo
jfigusc7e66e32013-05-08 11:32:55 -04002204 cat confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002205 echo
2206 fi
2207 test "$ac_signal" != 0 &&
jfigusc7e66e32013-05-08 11:32:55 -04002208 $as_echo "$as_me: caught signal $ac_signal"
2209 $as_echo "$as_me: exit $exit_status"
Cullen Jennings235513a2005-09-21 22:51:36 +00002210 } >&5
jfigusc7e66e32013-05-08 11:32:55 -04002211 rm -f core *.core core.conftest.* &&
2212 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Cullen Jennings235513a2005-09-21 22:51:36 +00002213 exit $exit_status
jfigusc7e66e32013-05-08 11:32:55 -04002214' 0
Cullen Jennings235513a2005-09-21 22:51:36 +00002215for ac_signal in 1 2 13 15; do
jfigusc7e66e32013-05-08 11:32:55 -04002216 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Cullen Jennings235513a2005-09-21 22:51:36 +00002217done
2218ac_signal=0
2219
2220# confdefs.h avoids OS command line length limits that DEFS can exceed.
jfigusc7e66e32013-05-08 11:32:55 -04002221rm -f -r conftest* confdefs.h
2222
2223$as_echo "/* confdefs.h */" > confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002224
2225# Predefined preprocessor variables.
2226
2227cat >>confdefs.h <<_ACEOF
2228#define PACKAGE_NAME "$PACKAGE_NAME"
2229_ACEOF
2230
Cullen Jennings235513a2005-09-21 22:51:36 +00002231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2233_ACEOF
2234
Cullen Jennings235513a2005-09-21 22:51:36 +00002235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_VERSION "$PACKAGE_VERSION"
2237_ACEOF
2238
Cullen Jennings235513a2005-09-21 22:51:36 +00002239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_STRING "$PACKAGE_STRING"
2241_ACEOF
2242
Cullen Jennings235513a2005-09-21 22:51:36 +00002243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2245_ACEOF
2246
jfigusc7e66e32013-05-08 11:32:55 -04002247cat >>confdefs.h <<_ACEOF
2248#define PACKAGE_URL "$PACKAGE_URL"
2249_ACEOF
2250
Cullen Jennings235513a2005-09-21 22:51:36 +00002251
2252# Let the site file select an alternate cache file if it wants to.
jfigusc7e66e32013-05-08 11:32:55 -04002253# Prefer an explicitly selected file to automatically selected ones.
2254ac_site_file1=NONE
2255ac_site_file2=NONE
2256if test -n "$CONFIG_SITE"; then
2257 # We do not want a PATH search for config.site.
2258 case $CONFIG_SITE in #((
2259 -*) ac_site_file1=./$CONFIG_SITE;;
2260 */*) ac_site_file1=$CONFIG_SITE;;
2261 *) ac_site_file1=./$CONFIG_SITE;;
2262 esac
2263elif test "x$prefix" != xNONE; then
2264 ac_site_file1=$prefix/share/config.site
2265 ac_site_file2=$prefix/etc/config.site
2266else
2267 ac_site_file1=$ac_default_prefix/share/config.site
2268 ac_site_file2=$ac_default_prefix/etc/config.site
Cullen Jennings235513a2005-09-21 22:51:36 +00002269fi
jfigusc7e66e32013-05-08 11:32:55 -04002270for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2271do
2272 test "x$ac_site_file" = xNONE && continue
2273 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2275$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002276 sed 's/^/| /' "$ac_site_file" >&5
jfigusc7e66e32013-05-08 11:32:55 -04002277 . "$ac_site_file" \
2278 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2280as_fn_error $? "failed to load site script $ac_site_file
2281See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002282 fi
2283done
2284
2285if test -r "$cache_file"; then
jfigusc7e66e32013-05-08 11:32:55 -04002286 # Some versions of bash will fail to source /dev/null (special files
2287 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2288 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2290$as_echo "$as_me: loading cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002291 case $cache_file in
jfigusc7e66e32013-05-08 11:32:55 -04002292 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2293 *) . "./$cache_file";;
Cullen Jennings235513a2005-09-21 22:51:36 +00002294 esac
2295 fi
2296else
jfigusc7e66e32013-05-08 11:32:55 -04002297 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2298$as_echo "$as_me: creating cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002299 >$cache_file
2300fi
2301
2302# Check that the precious variables saved in the cache have kept the same
2303# value.
2304ac_cache_corrupted=false
jfigusc7e66e32013-05-08 11:32:55 -04002305for ac_var in $ac_precious_vars; do
Cullen Jennings235513a2005-09-21 22:51:36 +00002306 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2307 eval ac_new_set=\$ac_env_${ac_var}_set
jfigusc7e66e32013-05-08 11:32:55 -04002308 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2309 eval ac_new_val=\$ac_env_${ac_var}_value
Cullen Jennings235513a2005-09-21 22:51:36 +00002310 case $ac_old_set,$ac_new_set in
2311 set,)
jfigusc7e66e32013-05-08 11:32:55 -04002312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2313$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002314 ac_cache_corrupted=: ;;
2315 ,set)
jfigusc7e66e32013-05-08 11:32:55 -04002316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2317$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002318 ac_cache_corrupted=: ;;
2319 ,);;
2320 *)
2321 if test "x$ac_old_val" != "x$ac_new_val"; then
jfigusc7e66e32013-05-08 11:32:55 -04002322 # differences in whitespace do not lead to failure.
2323 ac_old_val_w=`echo x $ac_old_val`
2324 ac_new_val_w=`echo x $ac_new_val`
2325 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2327$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2328 ac_cache_corrupted=:
2329 else
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2331$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2332 eval $ac_var=\$ac_old_val
2333 fi
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2335$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2337$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002338 fi;;
2339 esac
2340 # Pass precious variables to config.status.
2341 if test "$ac_new_set" = set; then
2342 case $ac_new_val in
jfigusc7e66e32013-05-08 11:32:55 -04002343 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002344 *) ac_arg=$ac_var=$ac_new_val ;;
2345 esac
2346 case " $ac_configure_args " in
2347 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jfigusc7e66e32013-05-08 11:32:55 -04002348 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002349 esac
2350 fi
2351done
2352if $ac_cache_corrupted; then
jfigusc7e66e32013-05-08 11:32:55 -04002353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2356$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2357 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00002358fi
jfigusc7e66e32013-05-08 11:32:55 -04002359## -------------------- ##
2360## Main body of script. ##
2361## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002362
2363ac_ext=c
2364ac_cpp='$CPP $CPPFLAGS'
2365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367ac_compiler_gnu=$ac_cv_c_compiler_gnu
2368
2369
2370
David McGrewb67061f2005-09-28 14:23:06 +00002371if test -z "$CFLAGS"; then
Sean Brightbfb9e302014-03-24 20:45:17 -04002372 CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops"
David McGrewb67061f2005-09-28 14:23:06 +00002373fi
2374
jfigus1ce6a742015-04-06 08:54:01 -04002375# expand $ac_aux_dir to an absolute path
2376am_aux_dir=`cd $ac_aux_dir && pwd`
Cullen Jennings235513a2005-09-21 22:51:36 +00002377
2378ac_ext=c
2379ac_cpp='$CPP $CPPFLAGS'
2380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2382ac_compiler_gnu=$ac_cv_c_compiler_gnu
2383if test -n "$ac_tool_prefix"; then
2384 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2385set dummy ${ac_tool_prefix}gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2387$as_echo_n "checking for $ac_word... " >&6; }
2388if ${ac_cv_prog_CC+:} false; then :
2389 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002390else
2391 if test -n "$CC"; then
2392 ac_cv_prog_CC="$CC" # Let the user override the test.
2393else
2394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395for as_dir in $PATH
2396do
2397 IFS=$as_save_IFS
2398 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002401 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002403 break 2
2404 fi
2405done
jfigusc7e66e32013-05-08 11:32:55 -04002406 done
2407IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002408
2409fi
2410fi
2411CC=$ac_cv_prog_CC
2412if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2414$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002415else
jfigusc7e66e32013-05-08 11:32:55 -04002416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2417$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002418fi
2419
jfigusc7e66e32013-05-08 11:32:55 -04002420
Cullen Jennings235513a2005-09-21 22:51:36 +00002421fi
2422if test -z "$ac_cv_prog_CC"; then
2423 ac_ct_CC=$CC
2424 # Extract the first word of "gcc", so it can be a program name with args.
2425set dummy gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2427$as_echo_n "checking for $ac_word... " >&6; }
2428if ${ac_cv_prog_ac_ct_CC+:} false; then :
2429 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002430else
2431 if test -n "$ac_ct_CC"; then
2432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2433else
2434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435for as_dir in $PATH
2436do
2437 IFS=$as_save_IFS
2438 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002441 ac_cv_prog_ac_ct_CC="gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002443 break 2
2444 fi
2445done
jfigusc7e66e32013-05-08 11:32:55 -04002446 done
2447IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002448
2449fi
2450fi
2451ac_ct_CC=$ac_cv_prog_ac_ct_CC
2452if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2454$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002455else
jfigusc7e66e32013-05-08 11:32:55 -04002456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2457$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002458fi
2459
jfigusc7e66e32013-05-08 11:32:55 -04002460 if test "x$ac_ct_CC" = x; then
2461 CC=""
2462 else
2463 case $cross_compiling:$ac_tool_warned in
2464yes:)
2465{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2466$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2467ac_tool_warned=yes ;;
2468esac
2469 CC=$ac_ct_CC
2470 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002471else
2472 CC="$ac_cv_prog_CC"
2473fi
2474
2475if test -z "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002476 if test -n "$ac_tool_prefix"; then
2477 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Cullen Jennings235513a2005-09-21 22:51:36 +00002478set dummy ${ac_tool_prefix}cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2480$as_echo_n "checking for $ac_word... " >&6; }
2481if ${ac_cv_prog_CC+:} false; then :
2482 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002483else
2484 if test -n "$CC"; then
2485 ac_cv_prog_CC="$CC" # Let the user override the test.
2486else
2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002494 ac_cv_prog_CC="${ac_tool_prefix}cc"
jfigusc7e66e32013-05-08 11:32:55 -04002495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002496 break 2
2497 fi
2498done
jfigusc7e66e32013-05-08 11:32:55 -04002499 done
2500IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002501
2502fi
2503fi
2504CC=$ac_cv_prog_CC
2505if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2507$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002508else
jfigusc7e66e32013-05-08 11:32:55 -04002509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2510$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002511fi
2512
jfigusc7e66e32013-05-08 11:32:55 -04002513
Cullen Jennings235513a2005-09-21 22:51:36 +00002514 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002515fi
2516if test -z "$CC"; then
2517 # Extract the first word of "cc", so it can be a program name with args.
2518set dummy cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2520$as_echo_n "checking for $ac_word... " >&6; }
2521if ${ac_cv_prog_CC+:} false; then :
2522 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002523else
2524 if test -n "$CC"; then
2525 ac_cv_prog_CC="$CC" # Let the user override the test.
2526else
2527 ac_prog_rejected=no
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=.
jfigusc7e66e32013-05-08 11:32:55 -04002533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002535 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2536 ac_prog_rejected=yes
2537 continue
2538 fi
2539 ac_cv_prog_CC="cc"
jfigusc7e66e32013-05-08 11:32:55 -04002540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002541 break 2
2542 fi
2543done
jfigusc7e66e32013-05-08 11:32:55 -04002544 done
2545IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002546
2547if test $ac_prog_rejected = yes; then
2548 # We found a bogon in the path, so make sure we never use it.
2549 set dummy $ac_cv_prog_CC
2550 shift
2551 if test $# != 0; then
2552 # We chose a different compiler from the bogus one.
2553 # However, it has the same basename, so the bogon will be chosen
2554 # first if we set CC to just the basename; use the full file name.
2555 shift
2556 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2557 fi
2558fi
2559fi
2560fi
2561CC=$ac_cv_prog_CC
2562if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2564$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002565else
jfigusc7e66e32013-05-08 11:32:55 -04002566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2567$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002568fi
2569
jfigusc7e66e32013-05-08 11:32:55 -04002570
Cullen Jennings235513a2005-09-21 22:51:36 +00002571fi
2572if test -z "$CC"; then
2573 if test -n "$ac_tool_prefix"; then
jfigusc7e66e32013-05-08 11:32:55 -04002574 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002575 do
2576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2577set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579$as_echo_n "checking for $ac_word... " >&6; }
2580if ${ac_cv_prog_CC+:} false; then :
2581 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002582else
2583 if test -n "$CC"; then
2584 ac_cv_prog_CC="$CC" # Let the user override the test.
2585else
2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587for as_dir in $PATH
2588do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002593 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002595 break 2
2596 fi
2597done
jfigusc7e66e32013-05-08 11:32:55 -04002598 done
2599IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002600
2601fi
2602fi
2603CC=$ac_cv_prog_CC
2604if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2606$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002607else
jfigusc7e66e32013-05-08 11:32:55 -04002608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002610fi
2611
jfigusc7e66e32013-05-08 11:32:55 -04002612
Cullen Jennings235513a2005-09-21 22:51:36 +00002613 test -n "$CC" && break
2614 done
2615fi
2616if test -z "$CC"; then
2617 ac_ct_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04002618 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002619do
2620 # Extract the first word of "$ac_prog", so it can be a program name with args.
2621set dummy $ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623$as_echo_n "checking for $ac_word... " >&6; }
2624if ${ac_cv_prog_ac_ct_CC+:} false; then :
2625 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002626else
2627 if test -n "$ac_ct_CC"; then
2628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2629else
2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631for as_dir in $PATH
2632do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002637 ac_cv_prog_ac_ct_CC="$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002639 break 2
2640 fi
2641done
jfigusc7e66e32013-05-08 11:32:55 -04002642 done
2643IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002644
2645fi
2646fi
2647ac_ct_CC=$ac_cv_prog_ac_ct_CC
2648if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2650$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002651else
jfigusc7e66e32013-05-08 11:32:55 -04002652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002654fi
2655
jfigusc7e66e32013-05-08 11:32:55 -04002656
Cullen Jennings235513a2005-09-21 22:51:36 +00002657 test -n "$ac_ct_CC" && break
2658done
2659
jfigusc7e66e32013-05-08 11:32:55 -04002660 if test "x$ac_ct_CC" = x; then
2661 CC=""
2662 else
2663 case $cross_compiling:$ac_tool_warned in
2664yes:)
2665{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2666$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2667ac_tool_warned=yes ;;
2668esac
2669 CC=$ac_ct_CC
2670 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002671fi
2672
2673fi
2674
2675
jfigusc7e66e32013-05-08 11:32:55 -04002676test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2678as_fn_error $? "no acceptable C compiler found in \$PATH
2679See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002680
2681# Provide some information about the compiler.
jfigusc7e66e32013-05-08 11:32:55 -04002682$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2683set X $ac_compile
2684ac_compiler=$2
2685for ac_option in --version -v -V -qversion; do
2686 { { ac_try="$ac_compiler $ac_option >&5"
2687case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690esac
2691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2692$as_echo "$ac_try_echo"; } >&5
2693 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Cullen Jennings235513a2005-09-21 22:51:36 +00002694 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002695 if test -s conftest.err; then
2696 sed '10a\
2697... rest of stderr output deleted ...
2698 10q' conftest.err >conftest.er1
2699 cat conftest.er1 >&5
2700 fi
2701 rm -f conftest.er1 conftest.err
2702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2703 test $ac_status = 0; }
2704done
Cullen Jennings235513a2005-09-21 22:51:36 +00002705
jfigusc7e66e32013-05-08 11:32:55 -04002706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002707/* end confdefs.h. */
2708
2709int
2710main ()
2711{
2712
2713 ;
2714 return 0;
2715}
2716_ACEOF
2717ac_clean_files_save=$ac_clean_files
jfigusc7e66e32013-05-08 11:32:55 -04002718ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Cullen Jennings235513a2005-09-21 22:51:36 +00002719# Try to create an executable without -o first, disregard a.out.
2720# It will help us diagnose broken compilers, and finding out an intuition
2721# of exeext.
jfigusc7e66e32013-05-08 11:32:55 -04002722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2723$as_echo_n "checking whether the C compiler works... " >&6; }
2724ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002725
jfigusc7e66e32013-05-08 11:32:55 -04002726# The possible output files:
2727ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2728
2729ac_rmfiles=
2730for ac_file in $ac_files
2731do
2732 case $ac_file in
2733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2734 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2735 esac
2736done
2737rm -f $ac_rmfiles
2738
2739if { { ac_try="$ac_link_default"
2740case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2743esac
2744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2745$as_echo "$ac_try_echo"; } >&5
2746 (eval "$ac_link_default") 2>&5
2747 ac_status=$?
2748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2749 test $ac_status = 0; }; then :
2750 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2751# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2752# in a Makefile. We should not override ac_cv_exeext if it was cached,
2753# so that the user can short-circuit this test for compilers unknown to
2754# Autoconf.
2755for ac_file in $ac_files ''
Cullen Jennings235513a2005-09-21 22:51:36 +00002756do
2757 test -f "$ac_file" || continue
2758 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00002760 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002761 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00002762 # We found the default executable, but exeext='' is most
2763 # certainly right.
2764 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002765 *.* )
jfigusc7e66e32013-05-08 11:32:55 -04002766 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2767 then :; else
2768 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2769 fi
2770 # We set ac_cv_exeext here because the later test for it is not
2771 # safe: cross compilers may not add the suffix if given an `-o'
2772 # argument, so we may need to know it at that point already.
2773 # Even if this section looks crufty: it has the advantage of
2774 # actually working.
David McGrewfec49dd2005-09-23 19:34:11 +00002775 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002776 * )
David McGrewfec49dd2005-09-23 19:34:11 +00002777 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002778 esac
2779done
jfigusc7e66e32013-05-08 11:32:55 -04002780test "$ac_cv_exeext" = no && ac_cv_exeext=
2781
Cullen Jennings235513a2005-09-21 22:51:36 +00002782else
jfigusc7e66e32013-05-08 11:32:55 -04002783 ac_file=''
2784fi
2785if test -z "$ac_file"; then :
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787$as_echo "no" >&6; }
2788$as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002789sed 's/^/| /' conftest.$ac_ext >&5
2790
jfigusc7e66e32013-05-08 11:32:55 -04002791{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2792$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2793as_fn_error 77 "C compiler cannot create executables
2794See \`config.log' for more details" "$LINENO" 5; }
2795else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2797$as_echo "yes" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002798fi
jfigusc7e66e32013-05-08 11:32:55 -04002799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2800$as_echo_n "checking for C compiler default output file name... " >&6; }
2801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2802$as_echo "$ac_file" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002803ac_exeext=$ac_cv_exeext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002804
jfigusc7e66e32013-05-08 11:32:55 -04002805rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002806ac_clean_files=$ac_clean_files_save
jfigusc7e66e32013-05-08 11:32:55 -04002807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2808$as_echo_n "checking for suffix of executables... " >&6; }
2809if { { ac_try="$ac_link"
2810case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2813esac
2814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2815$as_echo "$ac_try_echo"; } >&5
2816 (eval "$ac_link") 2>&5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002817 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2819 test $ac_status = 0; }; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002820 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2821# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2822# work properly (i.e., refer to `conftest.exe'), while it won't with
2823# `rm'.
2824for ac_file in conftest.exe conftest conftest.*; do
2825 test -f "$ac_file" || continue
2826 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002828 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00002829 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002830 * ) break;;
2831 esac
2832done
2833else
jfigusc7e66e32013-05-08 11:32:55 -04002834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2835$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2836as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2837See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002838fi
jfigusc7e66e32013-05-08 11:32:55 -04002839rm -f conftest conftest$ac_cv_exeext
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2841$as_echo "$ac_cv_exeext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002842
2843rm -f conftest.$ac_ext
2844EXEEXT=$ac_cv_exeext
2845ac_exeext=$EXEEXT
jfigusc7e66e32013-05-08 11:32:55 -04002846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847/* end confdefs.h. */
2848#include <stdio.h>
2849int
2850main ()
2851{
2852FILE *f = fopen ("conftest.out", "w");
2853 return ferror (f) || fclose (f) != 0;
2854
2855 ;
2856 return 0;
2857}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002858_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002859ac_clean_files="$ac_clean_files conftest.out"
2860# Check that the compiler produces executables we can run. If not, either
2861# the compiler is broken, or we cross compile.
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2863$as_echo_n "checking whether we are cross compiling... " >&6; }
2864if test "$cross_compiling" != yes; then
2865 { { ac_try="$ac_link"
2866case "(($ac_try" in
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2869esac
2870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2871$as_echo "$ac_try_echo"; } >&5
2872 (eval "$ac_link") 2>&5
2873 ac_status=$?
2874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2875 test $ac_status = 0; }
2876 if { ac_try='./conftest$ac_cv_exeext'
2877 { { case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880esac
2881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2882$as_echo "$ac_try_echo"; } >&5
2883 (eval "$ac_try") 2>&5
2884 ac_status=$?
2885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2886 test $ac_status = 0; }; }; then
2887 cross_compiling=no
2888 else
2889 if test "$cross_compiling" = maybe; then
2890 cross_compiling=yes
2891 else
2892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2894as_fn_error $? "cannot run C compiled programs.
2895If you meant to cross compile, use \`--host'.
2896See \`config.log' for more details" "$LINENO" 5; }
2897 fi
2898 fi
2899fi
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2901$as_echo "$cross_compiling" >&6; }
2902
2903rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2904ac_clean_files=$ac_clean_files_save
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2906$as_echo_n "checking for suffix of object files... " >&6; }
2907if ${ac_cv_objext+:} false; then :
2908 $as_echo_n "(cached) " >&6
2909else
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002911/* end confdefs.h. */
2912
2913int
2914main ()
2915{
2916
2917 ;
2918 return 0;
2919}
2920_ACEOF
2921rm -f conftest.o conftest.obj
jfigusc7e66e32013-05-08 11:32:55 -04002922if { { ac_try="$ac_compile"
2923case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926esac
2927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2928$as_echo "$ac_try_echo"; } >&5
2929 (eval "$ac_compile") 2>&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002930 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2932 test $ac_status = 0; }; then :
2933 for ac_file in conftest.o conftest.obj conftest.*; do
2934 test -f "$ac_file" || continue;
Cullen Jennings235513a2005-09-21 22:51:36 +00002935 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002937 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2938 break;;
2939 esac
2940done
2941else
jfigusc7e66e32013-05-08 11:32:55 -04002942 $as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002943sed 's/^/| /' conftest.$ac_ext >&5
2944
jfigusc7e66e32013-05-08 11:32:55 -04002945{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2947as_fn_error $? "cannot compute suffix of object files: cannot compile
2948See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002949fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002950rm -f conftest.$ac_cv_objext conftest.$ac_ext
2951fi
jfigusc7e66e32013-05-08 11:32:55 -04002952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2953$as_echo "$ac_cv_objext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002954OBJEXT=$ac_cv_objext
2955ac_objext=$OBJEXT
jfigusc7e66e32013-05-08 11:32:55 -04002956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2957$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2958if ${ac_cv_c_compiler_gnu+:} false; then :
2959 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002960else
jfigusc7e66e32013-05-08 11:32:55 -04002961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002962/* end confdefs.h. */
2963
2964int
2965main ()
2966{
2967#ifndef __GNUC__
2968 choke me
2969#endif
2970
2971 ;
2972 return 0;
2973}
2974_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002975if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002976 ac_compiler_gnu=yes
2977else
jfigusc7e66e32013-05-08 11:32:55 -04002978 ac_compiler_gnu=no
Cullen Jennings235513a2005-09-21 22:51:36 +00002979fi
jfigusc7e66e32013-05-08 11:32:55 -04002980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002981ac_cv_c_compiler_gnu=$ac_compiler_gnu
2982
2983fi
jfigusc7e66e32013-05-08 11:32:55 -04002984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2985$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2986if test $ac_compiler_gnu = yes; then
2987 GCC=yes
2988else
2989 GCC=
2990fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002991ac_test_CFLAGS=${CFLAGS+set}
2992ac_save_CFLAGS=$CFLAGS
jfigusc7e66e32013-05-08 11:32:55 -04002993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2994$as_echo_n "checking whether $CC accepts -g... " >&6; }
2995if ${ac_cv_prog_cc_g+:} false; then :
2996 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002997else
jfigusc7e66e32013-05-08 11:32:55 -04002998 ac_save_c_werror_flag=$ac_c_werror_flag
2999 ac_c_werror_flag=yes
3000 ac_cv_prog_cc_g=no
3001 CFLAGS="-g"
3002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003003/* end confdefs.h. */
3004
3005int
3006main ()
3007{
3008
3009 ;
3010 return 0;
3011}
3012_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003013if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003014 ac_cv_prog_cc_g=yes
3015else
jfigusc7e66e32013-05-08 11:32:55 -04003016 CFLAGS=""
3017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00003019
jfigusc7e66e32013-05-08 11:32:55 -04003020int
3021main ()
3022{
3023
3024 ;
3025 return 0;
3026}
3027_ACEOF
3028if ac_fn_c_try_compile "$LINENO"; then :
3029
3030else
3031 ac_c_werror_flag=$ac_save_c_werror_flag
3032 CFLAGS="-g"
3033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3034/* end confdefs.h. */
3035
3036int
3037main ()
3038{
3039
3040 ;
3041 return 0;
3042}
3043_ACEOF
3044if ac_fn_c_try_compile "$LINENO"; then :
3045 ac_cv_prog_cc_g=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003046fi
jfigusc7e66e32013-05-08 11:32:55 -04003047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003048fi
jfigusc7e66e32013-05-08 11:32:55 -04003049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3050fi
3051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052 ac_c_werror_flag=$ac_save_c_werror_flag
3053fi
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3055$as_echo "$ac_cv_prog_cc_g" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003056if test "$ac_test_CFLAGS" = set; then
3057 CFLAGS=$ac_save_CFLAGS
3058elif test $ac_cv_prog_cc_g = yes; then
3059 if test "$GCC" = yes; then
3060 CFLAGS="-g -O2"
3061 else
3062 CFLAGS="-g"
3063 fi
3064else
3065 if test "$GCC" = yes; then
3066 CFLAGS="-O2"
3067 else
3068 CFLAGS=
3069 fi
3070fi
jfigusc7e66e32013-05-08 11:32:55 -04003071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3072$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3073if ${ac_cv_prog_cc_c89+:} false; then :
3074 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003075else
jfigusc7e66e32013-05-08 11:32:55 -04003076 ac_cv_prog_cc_c89=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003077ac_save_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04003078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003079/* end confdefs.h. */
3080#include <stdarg.h>
3081#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -04003082struct stat;
Cullen Jennings235513a2005-09-21 22:51:36 +00003083/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3084struct buf { int x; };
3085FILE * (*rcsopen) (struct buf *, struct stat *, int);
3086static char *e (p, i)
3087 char **p;
3088 int i;
3089{
3090 return p[i];
3091}
3092static char *f (char * (*g) (char **, int), char **p, ...)
3093{
3094 char *s;
3095 va_list v;
3096 va_start (v,p);
3097 s = g (p, va_arg (v,int));
3098 va_end (v);
3099 return s;
3100}
David McGrewfec49dd2005-09-23 19:34:11 +00003101
3102/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3103 function prototypes and stuff, but not '\xHH' hex character constants.
3104 These don't provoke an error unfortunately, instead are silently treated
jfigusc7e66e32013-05-08 11:32:55 -04003105 as 'x'. The following induces an error, until -std is added to get
David McGrewfec49dd2005-09-23 19:34:11 +00003106 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3107 array size at least. It's necessary to write '\x00'==0 to get something
jfigusc7e66e32013-05-08 11:32:55 -04003108 that's true only with -std. */
David McGrewfec49dd2005-09-23 19:34:11 +00003109int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3110
jfigusc7e66e32013-05-08 11:32:55 -04003111/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3112 inside strings and character constants. */
3113#define FOO(x) 'x'
3114int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3115
Cullen Jennings235513a2005-09-21 22:51:36 +00003116int test (int i, double x);
3117struct s1 {int (*f) (int a);};
3118struct s2 {int (*f) (double a);};
3119int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3120int argc;
3121char **argv;
3122int
3123main ()
3124{
3125return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3126 ;
3127 return 0;
3128}
3129_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003130for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3131 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Cullen Jennings235513a2005-09-21 22:51:36 +00003132do
3133 CC="$ac_save_CC $ac_arg"
jfigusc7e66e32013-05-08 11:32:55 -04003134 if ac_fn_c_try_compile "$LINENO"; then :
3135 ac_cv_prog_cc_c89=$ac_arg
Cullen Jennings235513a2005-09-21 22:51:36 +00003136fi
jfigusc7e66e32013-05-08 11:32:55 -04003137rm -f core conftest.err conftest.$ac_objext
3138 test "x$ac_cv_prog_cc_c89" != "xno" && break
Cullen Jennings235513a2005-09-21 22:51:36 +00003139done
jfigusc7e66e32013-05-08 11:32:55 -04003140rm -f conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003141CC=$ac_save_CC
3142
3143fi
jfigusc7e66e32013-05-08 11:32:55 -04003144# AC_CACHE_VAL
3145case "x$ac_cv_prog_cc_c89" in
3146 x)
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3148$as_echo "none needed" >&6; } ;;
3149 xno)
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3151$as_echo "unsupported" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003152 *)
jfigusc7e66e32013-05-08 11:32:55 -04003153 CC="$CC $ac_cv_prog_cc_c89"
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3155$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003156esac
jfigusc7e66e32013-05-08 11:32:55 -04003157if test "x$ac_cv_prog_cc_c89" != xno; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003158
3159fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003160
Cullen Jennings235513a2005-09-21 22:51:36 +00003161ac_ext=c
3162ac_cpp='$CPP $CPPFLAGS'
3163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166
jfigus1ce6a742015-04-06 08:54:01 -04003167
3168if test -n "$ac_tool_prefix"; then
3169 for ac_prog in ar lib "link -lib"
3170 do
3171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3172set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174$as_echo_n "checking for $ac_word... " >&6; }
3175if ${ac_cv_prog_AR+:} false; then :
3176 $as_echo_n "(cached) " >&6
3177else
3178 if test -n "$AR"; then
3179 ac_cv_prog_AR="$AR" # Let the user override the test.
3180else
3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182for as_dir in $PATH
3183do
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3191 fi
3192done
3193 done
3194IFS=$as_save_IFS
3195
3196fi
3197fi
3198AR=$ac_cv_prog_AR
3199if test -n "$AR"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3201$as_echo "$AR" >&6; }
3202else
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204$as_echo "no" >&6; }
3205fi
3206
3207
3208 test -n "$AR" && break
3209 done
3210fi
3211if test -z "$AR"; then
3212 ac_ct_AR=$AR
3213 for ac_prog in ar lib "link -lib"
3214do
3215 # Extract the first word of "$ac_prog", so it can be a program name with args.
3216set dummy $ac_prog; ac_word=$2
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218$as_echo_n "checking for $ac_word... " >&6; }
3219if ${ac_cv_prog_ac_ct_AR+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221else
3222 if test -n "$ac_ct_AR"; then
3223 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3224else
3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226for as_dir in $PATH
3227do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 ac_cv_prog_ac_ct_AR="$ac_prog"
3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 break 2
3235 fi
3236done
3237 done
3238IFS=$as_save_IFS
3239
3240fi
3241fi
3242ac_ct_AR=$ac_cv_prog_ac_ct_AR
3243if test -n "$ac_ct_AR"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3245$as_echo "$ac_ct_AR" >&6; }
3246else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248$as_echo "no" >&6; }
3249fi
3250
3251
3252 test -n "$ac_ct_AR" && break
3253done
3254
3255 if test "x$ac_ct_AR" = x; then
3256 AR="false"
3257 else
3258 case $cross_compiling:$ac_tool_warned in
3259yes:)
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3262ac_tool_warned=yes ;;
3263esac
3264 AR=$ac_ct_AR
3265 fi
3266fi
3267
3268: ${AR=ar}
3269
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3271$as_echo_n "checking the archiver ($AR) interface... " >&6; }
3272if ${am_cv_ar_interface+:} false; then :
3273 $as_echo_n "(cached) " >&6
3274else
3275 ac_ext=c
3276ac_cpp='$CPP $CPPFLAGS'
3277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280
3281 am_cv_ar_interface=ar
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283/* end confdefs.h. */
3284int some_variable = 0;
3285_ACEOF
3286if ac_fn_c_try_compile "$LINENO"; then :
3287 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3289 (eval $am_ar_try) 2>&5
3290 ac_status=$?
3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }
3293 if test "$ac_status" -eq 0; then
3294 am_cv_ar_interface=ar
3295 else
3296 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3298 (eval $am_ar_try) 2>&5
3299 ac_status=$?
3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301 test $ac_status = 0; }
3302 if test "$ac_status" -eq 0; then
3303 am_cv_ar_interface=lib
3304 else
3305 am_cv_ar_interface=unknown
3306 fi
3307 fi
3308 rm -f conftest.lib libconftest.a
3309
3310fi
3311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312 ac_ext=c
3313ac_cpp='$CPP $CPPFLAGS'
3314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3316ac_compiler_gnu=$ac_cv_c_compiler_gnu
3317
3318fi
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3320$as_echo "$am_cv_ar_interface" >&6; }
3321
3322case $am_cv_ar_interface in
3323ar)
3324 ;;
3325lib)
3326 # Microsoft lib, so override with the ar-lib wrapper script.
3327 # FIXME: It is wrong to rewrite AR.
3328 # But if we don't then we get into trouble of one sort or another.
3329 # A longer-term fix would be to have automake use am__AR in this case,
3330 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3331 # similar.
3332 AR="$am_aux_dir/ar-lib $AR"
3333 ;;
3334unknown)
3335 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3336 ;;
3337esac
3338
3339if test -n "$ac_tool_prefix"; then
3340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3341set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343$as_echo_n "checking for $ac_word... " >&6; }
3344if ${ac_cv_prog_RANLIB+:} false; then :
3345 $as_echo_n "(cached) " >&6
3346else
3347 if test -n "$RANLIB"; then
3348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3349else
3350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351for as_dir in $PATH
3352do
3353 IFS=$as_save_IFS
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 break 2
3360 fi
3361done
3362 done
3363IFS=$as_save_IFS
3364
3365fi
3366fi
3367RANLIB=$ac_cv_prog_RANLIB
3368if test -n "$RANLIB"; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3370$as_echo "$RANLIB" >&6; }
3371else
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373$as_echo "no" >&6; }
3374fi
3375
3376
3377fi
3378if test -z "$ac_cv_prog_RANLIB"; then
3379 ac_ct_RANLIB=$RANLIB
3380 # Extract the first word of "ranlib", so it can be a program name with args.
3381set dummy ranlib; ac_word=$2
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383$as_echo_n "checking for $ac_word... " >&6; }
3384if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3385 $as_echo_n "(cached) " >&6
3386else
3387 if test -n "$ac_ct_RANLIB"; then
3388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3389else
3390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391for as_dir in $PATH
3392do
3393 IFS=$as_save_IFS
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397 ac_cv_prog_ac_ct_RANLIB="ranlib"
3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 break 2
3400 fi
3401done
3402 done
3403IFS=$as_save_IFS
3404
3405fi
3406fi
3407ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3408if test -n "$ac_ct_RANLIB"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3410$as_echo "$ac_ct_RANLIB" >&6; }
3411else
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413$as_echo "no" >&6; }
3414fi
3415
3416 if test "x$ac_ct_RANLIB" = x; then
3417 RANLIB=":"
3418 else
3419 case $cross_compiling:$ac_tool_warned in
3420yes:)
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3423ac_tool_warned=yes ;;
3424esac
3425 RANLIB=$ac_ct_RANLIB
3426 fi
3427else
3428 RANLIB="$ac_cv_prog_RANLIB"
3429fi
3430
3431ac_ext=c
3432ac_cpp='$CPP $CPPFLAGS'
3433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436if test -n "$ac_tool_prefix"; then
3437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3438set dummy ${ac_tool_prefix}gcc; ac_word=$2
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440$as_echo_n "checking for $ac_word... " >&6; }
3441if ${ac_cv_prog_CC+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443else
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3446else
3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448for as_dir in $PATH
3449do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458done
3459 done
3460IFS=$as_save_IFS
3461
3462fi
3463fi
3464CC=$ac_cv_prog_CC
3465if test -n "$CC"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3467$as_echo "$CC" >&6; }
3468else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470$as_echo "no" >&6; }
3471fi
3472
3473
3474fi
3475if test -z "$ac_cv_prog_CC"; then
3476 ac_ct_CC=$CC
3477 # Extract the first word of "gcc", so it can be a program name with args.
3478set dummy gcc; ac_word=$2
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480$as_echo_n "checking for $ac_word... " >&6; }
3481if ${ac_cv_prog_ac_ct_CC+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483else
3484 if test -n "$ac_ct_CC"; then
3485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3486else
3487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488for as_dir in $PATH
3489do
3490 IFS=$as_save_IFS
3491 test -z "$as_dir" && as_dir=.
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494 ac_cv_prog_ac_ct_CC="gcc"
3495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 break 2
3497 fi
3498done
3499 done
3500IFS=$as_save_IFS
3501
3502fi
3503fi
3504ac_ct_CC=$ac_cv_prog_ac_ct_CC
3505if test -n "$ac_ct_CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3507$as_echo "$ac_ct_CC" >&6; }
3508else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510$as_echo "no" >&6; }
3511fi
3512
3513 if test "x$ac_ct_CC" = x; then
3514 CC=""
3515 else
3516 case $cross_compiling:$ac_tool_warned in
3517yes:)
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3520ac_tool_warned=yes ;;
3521esac
3522 CC=$ac_ct_CC
3523 fi
3524else
3525 CC="$ac_cv_prog_CC"
3526fi
3527
3528if test -z "$CC"; then
3529 if test -n "$ac_tool_prefix"; then
3530 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3531set dummy ${ac_tool_prefix}cc; ac_word=$2
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3533$as_echo_n "checking for $ac_word... " >&6; }
3534if ${ac_cv_prog_CC+:} false; then :
3535 $as_echo_n "(cached) " >&6
3536else
3537 if test -n "$CC"; then
3538 ac_cv_prog_CC="$CC" # Let the user override the test.
3539else
3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541for as_dir in $PATH
3542do
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3547 ac_cv_prog_CC="${ac_tool_prefix}cc"
3548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 break 2
3550 fi
3551done
3552 done
3553IFS=$as_save_IFS
3554
3555fi
3556fi
3557CC=$ac_cv_prog_CC
3558if test -n "$CC"; then
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3560$as_echo "$CC" >&6; }
3561else
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563$as_echo "no" >&6; }
3564fi
3565
3566
3567 fi
3568fi
3569if test -z "$CC"; then
3570 # Extract the first word of "cc", so it can be a program name with args.
3571set dummy cc; ac_word=$2
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573$as_echo_n "checking for $ac_word... " >&6; }
3574if ${ac_cv_prog_CC+:} false; then :
3575 $as_echo_n "(cached) " >&6
3576else
3577 if test -n "$CC"; then
3578 ac_cv_prog_CC="$CC" # Let the user override the test.
3579else
3580 ac_prog_rejected=no
3581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582for as_dir in $PATH
3583do
3584 IFS=$as_save_IFS
3585 test -z "$as_dir" && as_dir=.
3586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3588 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3589 ac_prog_rejected=yes
3590 continue
3591 fi
3592 ac_cv_prog_CC="cc"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596done
3597 done
3598IFS=$as_save_IFS
3599
3600if test $ac_prog_rejected = yes; then
3601 # We found a bogon in the path, so make sure we never use it.
3602 set dummy $ac_cv_prog_CC
3603 shift
3604 if test $# != 0; then
3605 # We chose a different compiler from the bogus one.
3606 # However, it has the same basename, so the bogon will be chosen
3607 # first if we set CC to just the basename; use the full file name.
3608 shift
3609 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3610 fi
3611fi
3612fi
3613fi
3614CC=$ac_cv_prog_CC
3615if test -n "$CC"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617$as_echo "$CC" >&6; }
3618else
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620$as_echo "no" >&6; }
3621fi
3622
3623
3624fi
3625if test -z "$CC"; then
3626 if test -n "$ac_tool_prefix"; then
3627 for ac_prog in cl.exe
3628 do
3629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3630set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632$as_echo_n "checking for $ac_word... " >&6; }
3633if ${ac_cv_prog_CC+:} false; then :
3634 $as_echo_n "(cached) " >&6
3635else
3636 if test -n "$CC"; then
3637 ac_cv_prog_CC="$CC" # Let the user override the test.
3638else
3639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640for as_dir in $PATH
3641do
3642 IFS=$as_save_IFS
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3646 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 break 2
3649 fi
3650done
3651 done
3652IFS=$as_save_IFS
3653
3654fi
3655fi
3656CC=$ac_cv_prog_CC
3657if test -n "$CC"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3659$as_echo "$CC" >&6; }
3660else
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662$as_echo "no" >&6; }
3663fi
3664
3665
3666 test -n "$CC" && break
3667 done
3668fi
3669if test -z "$CC"; then
3670 ac_ct_CC=$CC
3671 for ac_prog in cl.exe
3672do
3673 # Extract the first word of "$ac_prog", so it can be a program name with args.
3674set dummy $ac_prog; ac_word=$2
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676$as_echo_n "checking for $ac_word... " >&6; }
3677if ${ac_cv_prog_ac_ct_CC+:} false; then :
3678 $as_echo_n "(cached) " >&6
3679else
3680 if test -n "$ac_ct_CC"; then
3681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3682else
3683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684for as_dir in $PATH
3685do
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
3688 for ac_exec_ext in '' $ac_executable_extensions; do
3689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3690 ac_cv_prog_ac_ct_CC="$ac_prog"
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 break 2
3693 fi
3694done
3695 done
3696IFS=$as_save_IFS
3697
3698fi
3699fi
3700ac_ct_CC=$ac_cv_prog_ac_ct_CC
3701if test -n "$ac_ct_CC"; then
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3703$as_echo "$ac_ct_CC" >&6; }
3704else
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706$as_echo "no" >&6; }
3707fi
3708
3709
3710 test -n "$ac_ct_CC" && break
3711done
3712
3713 if test "x$ac_ct_CC" = x; then
3714 CC=""
3715 else
3716 case $cross_compiling:$ac_tool_warned in
3717yes:)
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3720ac_tool_warned=yes ;;
3721esac
3722 CC=$ac_ct_CC
3723 fi
3724fi
3725
3726fi
3727
3728
3729test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3731as_fn_error $? "no acceptable C compiler found in \$PATH
3732See \`config.log' for more details" "$LINENO" 5; }
3733
3734# Provide some information about the compiler.
3735$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3736set X $ac_compile
3737ac_compiler=$2
3738for ac_option in --version -v -V -qversion; do
3739 { { ac_try="$ac_compiler $ac_option >&5"
3740case "(($ac_try" in
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3743esac
3744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3745$as_echo "$ac_try_echo"; } >&5
3746 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3747 ac_status=$?
3748 if test -s conftest.err; then
3749 sed '10a\
3750... rest of stderr output deleted ...
3751 10q' conftest.err >conftest.er1
3752 cat conftest.er1 >&5
3753 fi
3754 rm -f conftest.er1 conftest.err
3755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756 test $ac_status = 0; }
3757done
3758
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3760$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3761if ${ac_cv_c_compiler_gnu+:} false; then :
3762 $as_echo_n "(cached) " >&6
3763else
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765/* end confdefs.h. */
3766
3767int
3768main ()
3769{
3770#ifndef __GNUC__
3771 choke me
3772#endif
3773
3774 ;
3775 return 0;
3776}
3777_ACEOF
3778if ac_fn_c_try_compile "$LINENO"; then :
3779 ac_compiler_gnu=yes
3780else
3781 ac_compiler_gnu=no
3782fi
3783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784ac_cv_c_compiler_gnu=$ac_compiler_gnu
3785
3786fi
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3788$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3789if test $ac_compiler_gnu = yes; then
3790 GCC=yes
3791else
3792 GCC=
3793fi
3794ac_test_CFLAGS=${CFLAGS+set}
3795ac_save_CFLAGS=$CFLAGS
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3797$as_echo_n "checking whether $CC accepts -g... " >&6; }
3798if ${ac_cv_prog_cc_g+:} false; then :
3799 $as_echo_n "(cached) " >&6
3800else
3801 ac_save_c_werror_flag=$ac_c_werror_flag
3802 ac_c_werror_flag=yes
3803 ac_cv_prog_cc_g=no
3804 CFLAGS="-g"
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806/* end confdefs.h. */
3807
3808int
3809main ()
3810{
3811
3812 ;
3813 return 0;
3814}
3815_ACEOF
3816if ac_fn_c_try_compile "$LINENO"; then :
3817 ac_cv_prog_cc_g=yes
3818else
3819 CFLAGS=""
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821/* end confdefs.h. */
3822
3823int
3824main ()
3825{
3826
3827 ;
3828 return 0;
3829}
3830_ACEOF
3831if ac_fn_c_try_compile "$LINENO"; then :
3832
3833else
3834 ac_c_werror_flag=$ac_save_c_werror_flag
3835 CFLAGS="-g"
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837/* end confdefs.h. */
3838
3839int
3840main ()
3841{
3842
3843 ;
3844 return 0;
3845}
3846_ACEOF
3847if ac_fn_c_try_compile "$LINENO"; then :
3848 ac_cv_prog_cc_g=yes
3849fi
3850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851fi
3852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853fi
3854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 ac_c_werror_flag=$ac_save_c_werror_flag
3856fi
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3858$as_echo "$ac_cv_prog_cc_g" >&6; }
3859if test "$ac_test_CFLAGS" = set; then
3860 CFLAGS=$ac_save_CFLAGS
3861elif test $ac_cv_prog_cc_g = yes; then
3862 if test "$GCC" = yes; then
3863 CFLAGS="-g -O2"
3864 else
3865 CFLAGS="-g"
3866 fi
3867else
3868 if test "$GCC" = yes; then
3869 CFLAGS="-O2"
3870 else
3871 CFLAGS=
3872 fi
3873fi
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3875$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3876if ${ac_cv_prog_cc_c89+:} false; then :
3877 $as_echo_n "(cached) " >&6
3878else
3879 ac_cv_prog_cc_c89=no
3880ac_save_CC=$CC
3881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882/* end confdefs.h. */
3883#include <stdarg.h>
3884#include <stdio.h>
3885struct stat;
3886/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3887struct buf { int x; };
3888FILE * (*rcsopen) (struct buf *, struct stat *, int);
3889static char *e (p, i)
3890 char **p;
3891 int i;
3892{
3893 return p[i];
3894}
3895static char *f (char * (*g) (char **, int), char **p, ...)
3896{
3897 char *s;
3898 va_list v;
3899 va_start (v,p);
3900 s = g (p, va_arg (v,int));
3901 va_end (v);
3902 return s;
3903}
3904
3905/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3906 function prototypes and stuff, but not '\xHH' hex character constants.
3907 These don't provoke an error unfortunately, instead are silently treated
3908 as 'x'. The following induces an error, until -std is added to get
3909 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3910 array size at least. It's necessary to write '\x00'==0 to get something
3911 that's true only with -std. */
3912int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3913
3914/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3915 inside strings and character constants. */
3916#define FOO(x) 'x'
3917int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3918
3919int test (int i, double x);
3920struct s1 {int (*f) (int a);};
3921struct s2 {int (*f) (double a);};
3922int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3923int argc;
3924char **argv;
3925int
3926main ()
3927{
3928return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3929 ;
3930 return 0;
3931}
3932_ACEOF
3933for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3934 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3935do
3936 CC="$ac_save_CC $ac_arg"
3937 if ac_fn_c_try_compile "$LINENO"; then :
3938 ac_cv_prog_cc_c89=$ac_arg
3939fi
3940rm -f core conftest.err conftest.$ac_objext
3941 test "x$ac_cv_prog_cc_c89" != "xno" && break
3942done
3943rm -f conftest.$ac_ext
3944CC=$ac_save_CC
3945
3946fi
3947# AC_CACHE_VAL
3948case "x$ac_cv_prog_cc_c89" in
3949 x)
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3951$as_echo "none needed" >&6; } ;;
3952 xno)
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3954$as_echo "unsupported" >&6; } ;;
3955 *)
3956 CC="$CC $ac_cv_prog_cc_c89"
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3958$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3959esac
3960if test "x$ac_cv_prog_cc_c89" != xno; then :
3961
3962fi
3963
3964ac_ext=c
3965ac_cpp='$CPP $CPPFLAGS'
3966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968ac_compiler_gnu=$ac_cv_c_compiler_gnu
3969
David McGrewb67061f2005-09-28 14:23:06 +00003970ac_aux_dir=
jfigusc7e66e32013-05-08 11:32:55 -04003971for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3972 if test -f "$ac_dir/install-sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003973 ac_aux_dir=$ac_dir
3974 ac_install_sh="$ac_aux_dir/install-sh -c"
3975 break
jfigusc7e66e32013-05-08 11:32:55 -04003976 elif test -f "$ac_dir/install.sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003977 ac_aux_dir=$ac_dir
3978 ac_install_sh="$ac_aux_dir/install.sh -c"
3979 break
jfigusc7e66e32013-05-08 11:32:55 -04003980 elif test -f "$ac_dir/shtool"; then
David McGrewb67061f2005-09-28 14:23:06 +00003981 ac_aux_dir=$ac_dir
3982 ac_install_sh="$ac_aux_dir/shtool install -c"
3983 break
3984 fi
3985done
3986if test -z "$ac_aux_dir"; then
jfigusc7e66e32013-05-08 11:32:55 -04003987 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
David McGrewb67061f2005-09-28 14:23:06 +00003988fi
jfigusc7e66e32013-05-08 11:32:55 -04003989
3990# These three variables are undocumented and unsupported,
3991# and are intended to be withdrawn in a future Autoconf release.
3992# They can cause serious problems if a builder's source tree is in a directory
3993# whose full name contains unusual characters.
3994ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3995ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3996ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3997
Cullen Jennings235513a2005-09-21 22:51:36 +00003998
David McGrewb67061f2005-09-28 14:23:06 +00003999# Find a good install program. We prefer a C program (faster),
4000# so one script is as good as another. But avoid the broken or
4001# incompatible versions:
4002# SysV /etc/install, /usr/sbin/install
4003# SunOS /usr/etc/install
4004# IRIX /sbin/install
4005# AIX /bin/install
4006# AmigaOS /C/install, which installs bootblocks on floppy discs
4007# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4008# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4009# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4010# OS/2's system install, which has a completely different semantic
4011# ./install, which can be erroneously created by make from ./install.sh.
jfigusc7e66e32013-05-08 11:32:55 -04004012# Reject install programs that cannot install multiple files.
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4014$as_echo_n "checking for a BSD-compatible install... " >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00004015if test -z "$INSTALL"; then
jfigusc7e66e32013-05-08 11:32:55 -04004016if ${ac_cv_path_install+:} false; then :
4017 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004018else
David McGrewb67061f2005-09-28 14:23:06 +00004019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH
4021do
4022 IFS=$as_save_IFS
4023 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04004024 # Account for people who put trailing slashes in PATH elements.
4025case $as_dir/ in #((
4026 ./ | .// | /[cC]/* | \
David McGrewb67061f2005-09-28 14:23:06 +00004027 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jfigusc7e66e32013-05-08 11:32:55 -04004028 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
David McGrewb67061f2005-09-28 14:23:06 +00004029 /usr/ucb/* ) ;;
4030 *)
4031 # OSF1 and SCO ODT 3.0 have their own names for install.
4032 # Don't use installbsd from OSF since it installs stuff as root
4033 # by default.
4034 for ac_prog in ginstall scoinst install; do
4035 for ac_exec_ext in '' $ac_executable_extensions; do
jfigusc7e66e32013-05-08 11:32:55 -04004036 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
David McGrewb67061f2005-09-28 14:23:06 +00004037 if test $ac_prog = install &&
4038 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4039 # AIX install. It has an incompatible calling convention.
4040 :
4041 elif test $ac_prog = install &&
4042 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4043 # program-specific install script used by HP pwplus--don't use.
4044 :
4045 else
jfigusc7e66e32013-05-08 11:32:55 -04004046 rm -rf conftest.one conftest.two conftest.dir
4047 echo one > conftest.one
4048 echo two > conftest.two
4049 mkdir conftest.dir
4050 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4051 test -s conftest.one && test -s conftest.two &&
4052 test -s conftest.dir/conftest.one &&
4053 test -s conftest.dir/conftest.two
4054 then
4055 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4056 break 3
4057 fi
David McGrewb67061f2005-09-28 14:23:06 +00004058 fi
4059 fi
4060 done
4061 done
4062 ;;
4063esac
Cullen Jennings235513a2005-09-21 22:51:36 +00004064
jfigusc7e66e32013-05-08 11:32:55 -04004065 done
4066IFS=$as_save_IFS
4067
4068rm -rf conftest.one conftest.two conftest.dir
Cullen Jennings235513a2005-09-21 22:51:36 +00004069
4070fi
David McGrewb67061f2005-09-28 14:23:06 +00004071 if test "${ac_cv_path_install+set}" = set; then
4072 INSTALL=$ac_cv_path_install
4073 else
jfigusc7e66e32013-05-08 11:32:55 -04004074 # As a last resort, use the slow shell script. Don't cache a
4075 # value for INSTALL within a source directory, because that will
David McGrewb67061f2005-09-28 14:23:06 +00004076 # break other packages using the cache if that directory is
jfigusc7e66e32013-05-08 11:32:55 -04004077 # removed, or if the value is a relative name.
David McGrewb67061f2005-09-28 14:23:06 +00004078 INSTALL=$ac_install_sh
4079 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00004080fi
jfigusc7e66e32013-05-08 11:32:55 -04004081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4082$as_echo "$INSTALL" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004083
David McGrewb67061f2005-09-28 14:23:06 +00004084# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4085# It thinks the first close brace ends the variable substitution.
4086test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00004087
David McGrewb67061f2005-09-28 14:23:06 +00004088test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4089
4090test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00004091
4092
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004093ac_ext=c
4094ac_cpp='$CPP $CPPFLAGS'
4095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097ac_compiler_gnu=$ac_cv_c_compiler_gnu
jfigusc7e66e32013-05-08 11:32:55 -04004098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4099$as_echo_n "checking how to run the C preprocessor... " >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004100# On Suns, sometimes $CPP names a directory.
4101if test -n "$CPP" && test -d "$CPP"; then
4102 CPP=
4103fi
4104if test -z "$CPP"; then
jfigusc7e66e32013-05-08 11:32:55 -04004105 if ${ac_cv_prog_CPP+:} false; then :
4106 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004107else
4108 # Double quotes because CPP needs to be expanded
4109 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4110 do
4111 ac_preproc_ok=false
4112for ac_c_preproc_warn_flag in '' yes
4113do
4114 # Use a header file that comes with gcc, so configuring glibc
4115 # with a fresh cross-compiler works.
4116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4117 # <limits.h> exists even on freestanding compilers.
4118 # On the NeXT, cc -E runs the code through the compiler's parser,
4119 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04004120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004121/* end confdefs.h. */
4122#ifdef __STDC__
4123# include <limits.h>
4124#else
4125# include <assert.h>
4126#endif
4127 Syntax error
4128_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004129if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004130
jfigusc7e66e32013-05-08 11:32:55 -04004131else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004132 # Broken: fails on valid input.
4133continue
4134fi
jfigusc7e66e32013-05-08 11:32:55 -04004135rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004136
jfigusc7e66e32013-05-08 11:32:55 -04004137 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004138 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04004139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004140/* end confdefs.h. */
4141#include <ac_nonexistent.h>
4142_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004143if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004144 # Broken: success on invalid input.
4145continue
4146else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004147 # Passes both tests.
4148ac_preproc_ok=:
4149break
4150fi
jfigusc7e66e32013-05-08 11:32:55 -04004151rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004152
4153done
4154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04004155rm -f conftest.i conftest.err conftest.$ac_ext
4156if $ac_preproc_ok; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004157 break
4158fi
4159
4160 done
4161 ac_cv_prog_CPP=$CPP
4162
4163fi
4164 CPP=$ac_cv_prog_CPP
4165else
4166 ac_cv_prog_CPP=$CPP
4167fi
jfigusc7e66e32013-05-08 11:32:55 -04004168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4169$as_echo "$CPP" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004170ac_preproc_ok=false
4171for ac_c_preproc_warn_flag in '' yes
4172do
4173 # Use a header file that comes with gcc, so configuring glibc
4174 # with a fresh cross-compiler works.
4175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4176 # <limits.h> exists even on freestanding compilers.
4177 # On the NeXT, cc -E runs the code through the compiler's parser,
4178 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04004179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004180/* end confdefs.h. */
4181#ifdef __STDC__
4182# include <limits.h>
4183#else
4184# include <assert.h>
4185#endif
4186 Syntax error
4187_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004188if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004189
jfigusc7e66e32013-05-08 11:32:55 -04004190else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004191 # Broken: fails on valid input.
4192continue
4193fi
jfigusc7e66e32013-05-08 11:32:55 -04004194rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004195
jfigusc7e66e32013-05-08 11:32:55 -04004196 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004197 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04004198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004199/* end confdefs.h. */
4200#include <ac_nonexistent.h>
4201_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004202if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004203 # Broken: success on invalid input.
4204continue
4205else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004206 # Passes both tests.
4207ac_preproc_ok=:
4208break
4209fi
jfigusc7e66e32013-05-08 11:32:55 -04004210rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004211
4212done
4213# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04004214rm -f conftest.i conftest.err conftest.$ac_ext
4215if $ac_preproc_ok; then :
4216
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004217else
jfigusc7e66e32013-05-08 11:32:55 -04004218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4220as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4221See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004222fi
4223
4224ac_ext=c
4225ac_cpp='$CPP $CPPFLAGS'
4226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229
4230
jfigusc7e66e32013-05-08 11:32:55 -04004231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4232$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4233if ${ac_cv_path_GREP+:} false; then :
4234 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004235else
jfigusc7e66e32013-05-08 11:32:55 -04004236 if test -z "$GREP"; then
4237 ac_path_GREP_found=false
4238 # Loop through the user's path and test for each of PROGNAME-LIST
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4241do
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
4244 for ac_prog in grep ggrep; do
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4247 as_fn_executable_p "$ac_path_GREP" || continue
4248# Check for GNU ac_path_GREP and select it if it is found.
4249 # Check for GNU $ac_path_GREP
4250case `"$ac_path_GREP" --version 2>&1` in
4251*GNU*)
4252 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4253*)
4254 ac_count=0
4255 $as_echo_n 0123456789 >"conftest.in"
4256 while :
4257 do
4258 cat "conftest.in" "conftest.in" >"conftest.tmp"
4259 mv "conftest.tmp" "conftest.in"
4260 cp "conftest.in" "conftest.nl"
4261 $as_echo 'GREP' >> "conftest.nl"
4262 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4264 as_fn_arith $ac_count + 1 && ac_count=$as_val
4265 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4266 # Best one so far, save it but keep looking for a better one
4267 ac_cv_path_GREP="$ac_path_GREP"
4268 ac_path_GREP_max=$ac_count
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004269 fi
jfigusc7e66e32013-05-08 11:32:55 -04004270 # 10*(2^10) chars as input seems more than enough
4271 test $ac_count -gt 10 && break
4272 done
4273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4274esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004275
jfigusc7e66e32013-05-08 11:32:55 -04004276 $ac_path_GREP_found && break 3
4277 done
4278 done
4279 done
4280IFS=$as_save_IFS
4281 if test -z "$ac_cv_path_GREP"; then
4282 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4283 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004284else
jfigusc7e66e32013-05-08 11:32:55 -04004285 ac_cv_path_GREP=$GREP
4286fi
4287
4288fi
4289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4290$as_echo "$ac_cv_path_GREP" >&6; }
4291 GREP="$ac_cv_path_GREP"
4292
4293
4294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4295$as_echo_n "checking for egrep... " >&6; }
4296if ${ac_cv_path_EGREP+:} false; then :
4297 $as_echo_n "(cached) " >&6
4298else
4299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4300 then ac_cv_path_EGREP="$GREP -E"
4301 else
4302 if test -z "$EGREP"; then
4303 ac_path_EGREP_found=false
4304 # Loop through the user's path and test for each of PROGNAME-LIST
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4307do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_prog in egrep; do
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4313 as_fn_executable_p "$ac_path_EGREP" || continue
4314# Check for GNU ac_path_EGREP and select it if it is found.
4315 # Check for GNU $ac_path_EGREP
4316case `"$ac_path_EGREP" --version 2>&1` in
4317*GNU*)
4318 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4319*)
4320 ac_count=0
4321 $as_echo_n 0123456789 >"conftest.in"
4322 while :
4323 do
4324 cat "conftest.in" "conftest.in" >"conftest.tmp"
4325 mv "conftest.tmp" "conftest.in"
4326 cp "conftest.in" "conftest.nl"
4327 $as_echo 'EGREP' >> "conftest.nl"
4328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4330 as_fn_arith $ac_count + 1 && ac_count=$as_val
4331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4332 # Best one so far, save it but keep looking for a better one
4333 ac_cv_path_EGREP="$ac_path_EGREP"
4334 ac_path_EGREP_max=$ac_count
4335 fi
4336 # 10*(2^10) chars as input seems more than enough
4337 test $ac_count -gt 10 && break
4338 done
4339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4340esac
4341
4342 $ac_path_EGREP_found && break 3
4343 done
4344 done
4345 done
4346IFS=$as_save_IFS
4347 if test -z "$ac_cv_path_EGREP"; then
4348 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4349 fi
4350else
4351 ac_cv_path_EGREP=$EGREP
4352fi
4353
4354 fi
4355fi
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4357$as_echo "$ac_cv_path_EGREP" >&6; }
4358 EGREP="$ac_cv_path_EGREP"
4359
4360
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4362$as_echo_n "checking for ANSI C header files... " >&6; }
4363if ${ac_cv_header_stdc+:} false; then :
4364 $as_echo_n "(cached) " >&6
4365else
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004367/* end confdefs.h. */
4368#include <stdlib.h>
4369#include <stdarg.h>
4370#include <string.h>
4371#include <float.h>
4372
4373int
4374main ()
4375{
4376
4377 ;
4378 return 0;
4379}
4380_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004381if ac_fn_c_try_compile "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04004382 ac_cv_header_stdc=yes
4383else
jfigusc7e66e32013-05-08 11:32:55 -04004384 ac_cv_header_stdc=no
jfigusa14b5a02013-03-29 12:24:12 -04004385fi
jfigusc7e66e32013-05-08 11:32:55 -04004386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004387
4388if test $ac_cv_header_stdc = yes; then
4389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04004390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004391/* end confdefs.h. */
4392#include <string.h>
4393
4394_ACEOF
4395if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04004396 $EGREP "memchr" >/dev/null 2>&1; then :
4397
jfigusa14b5a02013-03-29 12:24:12 -04004398else
4399 ac_cv_header_stdc=no
4400fi
4401rm -f conftest*
4402
4403fi
4404
4405if test $ac_cv_header_stdc = yes; then
4406 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04004407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004408/* end confdefs.h. */
4409#include <stdlib.h>
4410
4411_ACEOF
4412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04004413 $EGREP "free" >/dev/null 2>&1; then :
4414
jfigusa14b5a02013-03-29 12:24:12 -04004415else
4416 ac_cv_header_stdc=no
4417fi
4418rm -f conftest*
4419
4420fi
4421
4422if test $ac_cv_header_stdc = yes; then
4423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jfigusc7e66e32013-05-08 11:32:55 -04004424 if test "$cross_compiling" = yes; then :
jfigusa14b5a02013-03-29 12:24:12 -04004425 :
4426else
jfigusc7e66e32013-05-08 11:32:55 -04004427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004428/* end confdefs.h. */
4429#include <ctype.h>
jfigusc7e66e32013-05-08 11:32:55 -04004430#include <stdlib.h>
jfigusa14b5a02013-03-29 12:24:12 -04004431#if ((' ' & 0x0FF) == 0x020)
4432# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4433# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4434#else
4435# define ISLOWER(c) \
4436 (('a' <= (c) && (c) <= 'i') \
4437 || ('j' <= (c) && (c) <= 'r') \
4438 || ('s' <= (c) && (c) <= 'z'))
4439# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4440#endif
4441
4442#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4443int
4444main ()
4445{
4446 int i;
4447 for (i = 0; i < 256; i++)
4448 if (XOR (islower (i), ISLOWER (i))
4449 || toupper (i) != TOUPPER (i))
jfigusc7e66e32013-05-08 11:32:55 -04004450 return 2;
4451 return 0;
jfigusa14b5a02013-03-29 12:24:12 -04004452}
4453_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004454if ac_fn_c_try_run "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04004455
jfigusc7e66e32013-05-08 11:32:55 -04004456else
4457 ac_cv_header_stdc=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004458fi
jfigusc7e66e32013-05-08 11:32:55 -04004459rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4460 conftest.$ac_objext conftest.beam conftest.$ac_ext
4461fi
4462
jfigusa14b5a02013-03-29 12:24:12 -04004463fi
4464fi
jfigusc7e66e32013-05-08 11:32:55 -04004465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4466$as_echo "$ac_cv_header_stdc" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04004467if test $ac_cv_header_stdc = yes; then
4468
jfigusc7e66e32013-05-08 11:32:55 -04004469$as_echo "#define STDC_HEADERS 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04004470
4471fi
4472
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004473# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004474for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4475 inttypes.h stdint.h unistd.h
jfigusc7e66e32013-05-08 11:32:55 -04004476do :
4477 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4478ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4479"
4480if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004481 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004482#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004483_ACEOF
4484
4485fi
4486
4487done
4488
4489
jfigusc7e66e32013-05-08 11:32:55 -04004490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4491$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4492if ${ac_cv_c_bigendian+:} false; then :
4493 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004494else
jfigusc7e66e32013-05-08 11:32:55 -04004495 ac_cv_c_bigendian=unknown
4496 # See if we're dealing with a universal compiler.
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004498/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004499#ifndef __APPLE_CC__
4500 not a universal capable compiler
4501 #endif
4502 typedef int dummy;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004503
jfigusc7e66e32013-05-08 11:32:55 -04004504_ACEOF
4505if ac_fn_c_try_compile "$LINENO"; then :
4506
4507 # Check for potential -arch flags. It is not universal unless
4508 # there are at least two -arch flags with different values.
4509 ac_arch=
4510 ac_prev=
4511 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4512 if test -n "$ac_prev"; then
4513 case $ac_word in
4514 i?86 | x86_64 | ppc | ppc64)
4515 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4516 ac_arch=$ac_word
4517 else
4518 ac_cv_c_bigendian=universal
4519 break
4520 fi
4521 ;;
4522 esac
4523 ac_prev=
4524 elif test "x$ac_word" = "x-arch"; then
4525 ac_prev=arch
4526 fi
4527 done
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004528fi
jfigusc7e66e32013-05-08 11:32:55 -04004529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530 if test $ac_cv_c_bigendian = unknown; then
4531 # See if sys/param.h defines the BYTE_ORDER macro.
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004533/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004534#include <sys/types.h>
4535 #include <sys/param.h>
4536
4537int
4538main ()
4539{
4540#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4541 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4542 && LITTLE_ENDIAN)
4543 bogus endian macros
4544 #endif
4545
4546 ;
4547 return 0;
4548}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004549_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004550if ac_fn_c_try_compile "$LINENO"; then :
4551 # It does; now see whether it defined to BIG_ENDIAN or not.
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004553/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004554#include <sys/types.h>
4555 #include <sys/param.h>
4556
4557int
4558main ()
4559{
4560#if BYTE_ORDER != BIG_ENDIAN
4561 not big endian
4562 #endif
4563
4564 ;
4565 return 0;
4566}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004567_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004568if ac_fn_c_try_compile "$LINENO"; then :
4569 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004570else
jfigusc7e66e32013-05-08 11:32:55 -04004571 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004572fi
jfigusc7e66e32013-05-08 11:32:55 -04004573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574fi
4575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 fi
4577 if test $ac_cv_c_bigendian = unknown; then
4578 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004580/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004581#include <limits.h>
4582
4583int
4584main ()
4585{
4586#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4587 bogus endian macros
4588 #endif
4589
4590 ;
4591 return 0;
4592}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004593_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004594if ac_fn_c_try_compile "$LINENO"; then :
4595 # It does; now see whether it defined to _BIG_ENDIAN or not.
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004597/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004598#include <limits.h>
4599
4600int
4601main ()
4602{
4603#ifndef _BIG_ENDIAN
4604 not big endian
4605 #endif
4606
4607 ;
4608 return 0;
4609}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004610_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004611if ac_fn_c_try_compile "$LINENO"; then :
4612 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004613else
jfigusc7e66e32013-05-08 11:32:55 -04004614 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004615fi
jfigusc7e66e32013-05-08 11:32:55 -04004616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617fi
4618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 fi
4620 if test $ac_cv_c_bigendian = unknown; then
4621 # Compile a test program.
4622 if test "$cross_compiling" = yes; then :
4623 # Try to guess by grepping values from an object file.
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004625/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004626short int ascii_mm[] =
4627 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4628 short int ascii_ii[] =
4629 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4630 int use_ascii (int i) {
4631 return ascii_mm[i] + ascii_ii[i];
4632 }
4633 short int ebcdic_ii[] =
4634 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4635 short int ebcdic_mm[] =
4636 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4637 int use_ebcdic (int i) {
4638 return ebcdic_mm[i] + ebcdic_ii[i];
4639 }
4640 extern int foo;
4641
4642int
4643main ()
4644{
4645return use_ascii (foo) == use_ebcdic (foo);
4646 ;
4647 return 0;
4648}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004649_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004650if ac_fn_c_try_compile "$LINENO"; then :
4651 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4652 ac_cv_c_bigendian=yes
4653 fi
4654 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4655 if test "$ac_cv_c_bigendian" = unknown; then
4656 ac_cv_c_bigendian=no
4657 else
4658 # finding both strings is unlikely to happen, but who knows?
4659 ac_cv_c_bigendian=unknown
4660 fi
4661 fi
4662fi
4663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004664else
jfigusc7e66e32013-05-08 11:32:55 -04004665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004666/* end confdefs.h. */
4667$ac_includes_default
4668int
4669main ()
4670{
jfigusc7e66e32013-05-08 11:32:55 -04004671
4672 /* Are we little or big endian? From Harbison&Steele. */
4673 union
4674 {
4675 long int l;
4676 char c[sizeof (long int)];
4677 } u;
4678 u.l = 1;
4679 return u.c[sizeof (long int) - 1] == 1;
4680
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004681 ;
4682 return 0;
4683}
4684_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004685if ac_fn_c_try_run "$LINENO"; then :
4686 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004687else
jfigusc7e66e32013-05-08 11:32:55 -04004688 ac_cv_c_bigendian=yes
4689fi
4690rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4691 conftest.$ac_objext conftest.beam conftest.$ac_ext
4692fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004693
jfigusc7e66e32013-05-08 11:32:55 -04004694 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004695fi
jfigusc7e66e32013-05-08 11:32:55 -04004696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4697$as_echo "$ac_cv_c_bigendian" >&6; }
4698 case $ac_cv_c_bigendian in #(
4699 yes)
4700 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4701;; #(
4702 no)
4703 ;; #(
4704 universal)
4705
4706$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4707
4708 ;; #(
4709 *)
4710 as_fn_error $? "unknown endianness
4711 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4712 esac
4713
4714
4715# Make sure we can run config.sub.
4716$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4717 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4718
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4720$as_echo_n "checking build system type... " >&6; }
4721if ${ac_cv_build+:} false; then :
4722 $as_echo_n "(cached) " >&6
4723else
4724 ac_build_alias=$build_alias
4725test "x$ac_build_alias" = x &&
4726 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4727test "x$ac_build_alias" = x &&
4728 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4729ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4730 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4731
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004732fi
jfigusc7e66e32013-05-08 11:32:55 -04004733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4734$as_echo "$ac_cv_build" >&6; }
4735case $ac_cv_build in
4736*-*-*) ;;
4737*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4738esac
4739build=$ac_cv_build
4740ac_save_IFS=$IFS; IFS='-'
4741set x $ac_cv_build
4742shift
4743build_cpu=$1
4744build_vendor=$2
4745shift; shift
4746# Remember, the first character of IFS is used to create $*,
4747# except with old shells:
4748build_os=$*
4749IFS=$ac_save_IFS
4750case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4751
4752
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4754$as_echo_n "checking host system type... " >&6; }
4755if ${ac_cv_host+:} false; then :
4756 $as_echo_n "(cached) " >&6
4757else
4758 if test "x$host_alias" = x; then
4759 ac_cv_host=$ac_cv_build
4760else
4761 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4762 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4763fi
4764
4765fi
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4767$as_echo "$ac_cv_host" >&6; }
4768case $ac_cv_host in
4769*-*-*) ;;
4770*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4771esac
4772host=$ac_cv_host
4773ac_save_IFS=$IFS; IFS='-'
4774set x $ac_cv_host
4775shift
4776host_cpu=$1
4777host_vendor=$2
4778shift; shift
4779# Remember, the first character of IFS is used to create $*,
4780# except with old shells:
4781host_os=$*
4782IFS=$ac_save_IFS
4783case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4784
4785
4786
4787case $host_cpu in
4788 i*86 | x86_64 )
4789
4790$as_echo "#define CPU_CISC 1" >>confdefs.h
4791
4792
4793$as_echo "#define HAVE_X86 1" >>confdefs.h
4794;;
4795 * )
jfigusc7e66e32013-05-08 11:32:55 -04004796
4797$as_echo "#define CPU_RISC 1" >>confdefs.h
jfigusfb838412014-12-04 10:15:47 -05004798
jfigusc7e66e32013-05-08 11:32:55 -04004799 ;;
4800esac
4801
4802case $host_os in
4803 *cygwin*|*mingw* )
4804 EXE=.exe
4805 HOST_IS_WINDOWS=yes
4806 ;;
4807 * )
4808 EXE=""
4809 ;;
4810esac
4811 # define executable suffix; this is needed for `make clean'
4812
jfigusc7e66e32013-05-08 11:32:55 -04004813if test "$cross_compiling" != yes -a "$HOST_IS_WINDOWS" != yes; then
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
4815$as_echo_n "checking for /dev/urandom... " >&6; }
4816if ${ac_cv_file__dev_urandom+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818else
4819 test "$cross_compiling" = yes &&
4820 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4821if test -r "/dev/urandom"; then
4822 ac_cv_file__dev_urandom=yes
4823else
4824 ac_cv_file__dev_urandom=no
4825fi
4826fi
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
4828$as_echo "$ac_cv_file__dev_urandom" >&6; }
4829if test "x$ac_cv_file__dev_urandom" = xyes; then :
4830 DEV_URANDOM=/dev/urandom
4831else
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
4833$as_echo_n "checking for /dev/random... " >&6; }
4834if ${ac_cv_file__dev_random+:} false; then :
4835 $as_echo_n "(cached) " >&6
4836else
4837 test "$cross_compiling" = yes &&
4838 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4839if test -r "/dev/random"; then
4840 ac_cv_file__dev_random=yes
4841else
4842 ac_cv_file__dev_random=no
4843fi
4844fi
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
4846$as_echo "$ac_cv_file__dev_random" >&6; }
4847if test "x$ac_cv_file__dev_random" = xyes; then :
4848 DEV_URANDOM=/dev/random
4849fi
4850
4851fi
4852
4853fi
4854
4855
4856
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4858$as_echo_n "checking for ANSI C header files... " >&6; }
4859if ${ac_cv_header_stdc+:} false; then :
4860 $as_echo_n "(cached) " >&6
4861else
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863/* end confdefs.h. */
4864#include <stdlib.h>
4865#include <stdarg.h>
4866#include <string.h>
4867#include <float.h>
4868
4869int
4870main ()
4871{
4872
4873 ;
4874 return 0;
4875}
4876_ACEOF
4877if ac_fn_c_try_compile "$LINENO"; then :
4878 ac_cv_header_stdc=yes
4879else
4880 ac_cv_header_stdc=no
4881fi
4882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883
4884if test $ac_cv_header_stdc = yes; then
4885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887/* end confdefs.h. */
4888#include <string.h>
4889
4890_ACEOF
4891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4892 $EGREP "memchr" >/dev/null 2>&1; then :
4893
4894else
4895 ac_cv_header_stdc=no
4896fi
4897rm -f conftest*
4898
4899fi
4900
4901if test $ac_cv_header_stdc = yes; then
4902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904/* end confdefs.h. */
4905#include <stdlib.h>
4906
4907_ACEOF
4908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4909 $EGREP "free" >/dev/null 2>&1; then :
4910
4911else
4912 ac_cv_header_stdc=no
4913fi
4914rm -f conftest*
4915
4916fi
4917
4918if test $ac_cv_header_stdc = yes; then
4919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4920 if test "$cross_compiling" = yes; then :
4921 :
4922else
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924/* end confdefs.h. */
4925#include <ctype.h>
4926#include <stdlib.h>
4927#if ((' ' & 0x0FF) == 0x020)
4928# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4929# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4930#else
4931# define ISLOWER(c) \
4932 (('a' <= (c) && (c) <= 'i') \
4933 || ('j' <= (c) && (c) <= 'r') \
4934 || ('s' <= (c) && (c) <= 'z'))
4935# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4936#endif
4937
4938#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4939int
4940main ()
4941{
4942 int i;
4943 for (i = 0; i < 256; i++)
4944 if (XOR (islower (i), ISLOWER (i))
4945 || toupper (i) != TOUPPER (i))
4946 return 2;
4947 return 0;
4948}
4949_ACEOF
4950if ac_fn_c_try_run "$LINENO"; then :
4951
4952else
4953 ac_cv_header_stdc=no
4954fi
4955rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4956 conftest.$ac_objext conftest.beam conftest.$ac_ext
4957fi
4958
4959fi
4960fi
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4962$as_echo "$ac_cv_header_stdc" >&6; }
4963if test $ac_cv_header_stdc = yes; then
4964
4965$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4966
4967fi
4968
4969for ac_header in stdlib.h
4970do :
4971 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4972if test "x$ac_cv_header_stdlib_h" = xyes; then :
4973 cat >>confdefs.h <<_ACEOF
4974#define HAVE_STDLIB_H 1
4975_ACEOF
4976
4977fi
4978
4979done
4980
4981for ac_header in unistd.h
4982do :
4983 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4984if test "x$ac_cv_header_unistd_h" = xyes; then :
4985 cat >>confdefs.h <<_ACEOF
4986#define HAVE_UNISTD_H 1
4987_ACEOF
4988
4989fi
4990
4991done
4992
4993for ac_header in byteswap.h
4994do :
4995 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
4996if test "x$ac_cv_header_byteswap_h" = xyes; then :
4997 cat >>confdefs.h <<_ACEOF
4998#define HAVE_BYTESWAP_H 1
4999_ACEOF
5000
5001fi
5002
5003done
5004
5005for ac_header in stdint.h
5006do :
5007 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5008if test "x$ac_cv_header_stdint_h" = xyes; then :
5009 cat >>confdefs.h <<_ACEOF
5010#define HAVE_STDINT_H 1
5011_ACEOF
5012
5013fi
5014
5015done
5016
5017for ac_header in sys/uio.h
5018do :
5019 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
5020if test "x$ac_cv_header_sys_uio_h" = xyes; then :
5021 cat >>confdefs.h <<_ACEOF
5022#define HAVE_SYS_UIO_H 1
5023_ACEOF
5024
5025fi
5026
5027done
5028
5029for ac_header in inttypes.h
5030do :
5031 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5032if test "x$ac_cv_header_inttypes_h" = xyes; then :
5033 cat >>confdefs.h <<_ACEOF
5034#define HAVE_INTTYPES_H 1
5035_ACEOF
5036
5037fi
5038
5039done
5040
5041for ac_header in sys/types.h
5042do :
5043 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
5044if test "x$ac_cv_header_sys_types_h" = xyes; then :
5045 cat >>confdefs.h <<_ACEOF
5046#define HAVE_SYS_TYPES_H 1
5047_ACEOF
5048
5049fi
5050
5051done
5052
5053for ac_header in machine/types.h
5054do :
5055 ac_fn_c_check_header_mongrel "$LINENO" "machine/types.h" "ac_cv_header_machine_types_h" "$ac_includes_default"
5056if test "x$ac_cv_header_machine_types_h" = xyes; then :
5057 cat >>confdefs.h <<_ACEOF
5058#define HAVE_MACHINE_TYPES_H 1
5059_ACEOF
5060
5061fi
5062
5063done
5064
5065for ac_header in sys/int_types.h
5066do :
5067 ac_fn_c_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default"
5068if test "x$ac_cv_header_sys_int_types_h" = xyes; then :
5069 cat >>confdefs.h <<_ACEOF
5070#define HAVE_SYS_INT_TYPES_H 1
5071_ACEOF
5072
5073fi
5074
5075done
5076
5077
5078for ac_header in sys/socket.h netinet/in.h arpa/inet.h
5079do :
5080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5081ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5082if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5083 cat >>confdefs.h <<_ACEOF
5084#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5085_ACEOF
5086
5087fi
5088
5089done
5090
5091for ac_header in windows.h
5092do :
5093 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
5094if test "x$ac_cv_header_windows_h" = xyes; then :
5095 cat >>confdefs.h <<_ACEOF
5096#define HAVE_WINDOWS_H 1
5097_ACEOF
5098 for ac_header in winsock2.h
5099do :
5100 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
5101if test "x$ac_cv_header_winsock2_h" = xyes; then :
5102 cat >>confdefs.h <<_ACEOF
5103#define HAVE_WINSOCK2_H 1
5104_ACEOF
5105
5106fi
5107
5108done
5109
5110fi
5111
5112done
5113
5114
jfigusc7e66e32013-05-08 11:32:55 -04005115ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
5116if test "x$ac_cv_type_int8_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005117
David McGrewfec49dd2005-09-23 19:34:11 +00005118cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005119#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005120_ACEOF
5121
5122
5123fi
jfigusc7e66e32013-05-08 11:32:55 -04005124ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
5125if test "x$ac_cv_type_uint8_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005126
5127cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005128#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005129_ACEOF
5130
5131
5132fi
jfigusc7e66e32013-05-08 11:32:55 -04005133ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5134if test "x$ac_cv_type_int16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005135
5136cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005137#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005138_ACEOF
5139
5140
5141fi
jfigusc7e66e32013-05-08 11:32:55 -04005142ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5143if test "x$ac_cv_type_uint16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005144
5145cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005146#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005147_ACEOF
5148
5149
5150fi
jfigusc7e66e32013-05-08 11:32:55 -04005151ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5152if test "x$ac_cv_type_int32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005153
5154cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005155#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005156_ACEOF
5157
5158
5159fi
jfigusc7e66e32013-05-08 11:32:55 -04005160ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5161if test "x$ac_cv_type_uint32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005162
5163cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005164#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005165_ACEOF
5166
5167
5168fi
jfigusc7e66e32013-05-08 11:32:55 -04005169ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
5170if test "x$ac_cv_type_uint64_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005171
5172cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005173#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005174_ACEOF
5175
5176
5177fi
5178
jfigusc7e66e32013-05-08 11:32:55 -04005179# The cast to long int works around a bug in the HP C Compiler
5180# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5181# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5182# This bug is HP SR number 8606223364.
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
5184$as_echo_n "checking size of unsigned long... " >&6; }
5185if ${ac_cv_sizeof_unsigned_long+:} false; then :
5186 $as_echo_n "(cached) " >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005187else
jfigusc7e66e32013-05-08 11:32:55 -04005188 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005189
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005190else
5191 if test "$ac_cv_type_unsigned_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04005192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5194as_fn_error 77 "cannot compute sizeof (unsigned long)
5195See \`config.log' for more details" "$LINENO" 5; }
5196 else
5197 ac_cv_sizeof_unsigned_long=0
5198 fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005199fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005200
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005201fi
jfigusc7e66e32013-05-08 11:32:55 -04005202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
5203$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005204
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005205
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005206
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005207cat >>confdefs.h <<_ACEOF
5208#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
5209_ACEOF
5210
David McGrewfec49dd2005-09-23 19:34:11 +00005211
jfigusc7e66e32013-05-08 11:32:55 -04005212# The cast to long int works around a bug in the HP C Compiler
5213# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5214# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5215# This bug is HP SR number 8606223364.
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
5217$as_echo_n "checking size of unsigned long long... " >&6; }
5218if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
5219 $as_echo_n "(cached) " >&6
David McGrewfec49dd2005-09-23 19:34:11 +00005220else
jfigusc7e66e32013-05-08 11:32:55 -04005221 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005222
David McGrewfec49dd2005-09-23 19:34:11 +00005223else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005224 if test "$ac_cv_type_unsigned_long_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04005225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5227as_fn_error 77 "cannot compute sizeof (unsigned long long)
5228See \`config.log' for more details" "$LINENO" 5; }
5229 else
5230 ac_cv_sizeof_unsigned_long_long=0
5231 fi
David McGrewfec49dd2005-09-23 19:34:11 +00005232fi
5233
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005234fi
jfigusc7e66e32013-05-08 11:32:55 -04005235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
5236$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005237
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005238
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005239
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005240cat >>confdefs.h <<_ACEOF
5241#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00005242_ACEOF
5243
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005244
Cullen Jennings235513a2005-09-21 22:51:36 +00005245
jfigusc7e66e32013-05-08 11:32:55 -04005246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5247$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5248if ${ac_cv_c_const+:} false; then :
5249 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005250else
jfigusc7e66e32013-05-08 11:32:55 -04005251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005252/* end confdefs.h. */
5253
5254int
5255main ()
5256{
jfigusc7e66e32013-05-08 11:32:55 -04005257
Cullen Jennings235513a2005-09-21 22:51:36 +00005258#ifndef __cplusplus
jfigusc7e66e32013-05-08 11:32:55 -04005259 /* Ultrix mips cc rejects this sort of thing. */
Cullen Jennings235513a2005-09-21 22:51:36 +00005260 typedef int charset[2];
jfigusc7e66e32013-05-08 11:32:55 -04005261 const charset cs = { 0, 0 };
Cullen Jennings235513a2005-09-21 22:51:36 +00005262 /* SunOS 4.1.1 cc rejects this. */
jfigusc7e66e32013-05-08 11:32:55 -04005263 char const *const *pcpcc;
5264 char **ppc;
Cullen Jennings235513a2005-09-21 22:51:36 +00005265 /* NEC SVR4.0.2 mips cc rejects this. */
5266 struct point {int x, y;};
5267 static struct point const zero = {0,0};
5268 /* AIX XL C 1.02.0.0 rejects this.
5269 It does not let you subtract one const X* pointer from another in
5270 an arm of an if-expression whose if-part is not a constant
5271 expression */
5272 const char *g = "string";
jfigusc7e66e32013-05-08 11:32:55 -04005273 pcpcc = &g + (g ? g-g : 0);
Cullen Jennings235513a2005-09-21 22:51:36 +00005274 /* HPUX 7.0 cc rejects these. */
jfigusc7e66e32013-05-08 11:32:55 -04005275 ++pcpcc;
5276 ppc = (char**) pcpcc;
5277 pcpcc = (char const *const *) ppc;
5278 { /* SCO 3.2v4 cc rejects this sort of thing. */
5279 char tx;
5280 char *t = &tx;
Cullen Jennings235513a2005-09-21 22:51:36 +00005281 char const *s = 0 ? (char *) 0 : (char const *) 0;
5282
5283 *t++ = 0;
jfigusc7e66e32013-05-08 11:32:55 -04005284 if (s) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00005285 }
5286 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5287 int x[] = {25, 17};
5288 const int *foo = &x[0];
5289 ++foo;
5290 }
5291 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5292 typedef const int *iptr;
5293 iptr p = 0;
5294 ++p;
5295 }
jfigusc7e66e32013-05-08 11:32:55 -04005296 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Cullen Jennings235513a2005-09-21 22:51:36 +00005297 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
jfigusc7e66e32013-05-08 11:32:55 -04005298 struct s { int j; const int *ap[3]; } bx;
5299 struct s *b = &bx; b->j = 5;
Cullen Jennings235513a2005-09-21 22:51:36 +00005300 }
5301 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5302 const int foo = 10;
jfigusc7e66e32013-05-08 11:32:55 -04005303 if (!foo) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00005304 }
jfigusc7e66e32013-05-08 11:32:55 -04005305 return !cs[0] && !zero.x;
Cullen Jennings235513a2005-09-21 22:51:36 +00005306#endif
5307
5308 ;
5309 return 0;
5310}
5311_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005312if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005313 ac_cv_c_const=yes
5314else
jfigusc7e66e32013-05-08 11:32:55 -04005315 ac_cv_c_const=no
Cullen Jennings235513a2005-09-21 22:51:36 +00005316fi
jfigusc7e66e32013-05-08 11:32:55 -04005317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005318fi
jfigusc7e66e32013-05-08 11:32:55 -04005319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5320$as_echo "$ac_cv_c_const" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005321if test $ac_cv_c_const = no; then
5322
jfigusc7e66e32013-05-08 11:32:55 -04005323$as_echo "#define const /**/" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005324
5325fi
5326
jfigusc7e66e32013-05-08 11:32:55 -04005327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5328$as_echo_n "checking for inline... " >&6; }
5329if ${ac_cv_c_inline+:} false; then :
5330 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005331else
5332 ac_cv_c_inline=no
5333for ac_kw in inline __inline__ __inline; do
jfigusc7e66e32013-05-08 11:32:55 -04005334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005335/* end confdefs.h. */
5336#ifndef __cplusplus
5337typedef int foo_t;
5338static $ac_kw foo_t static_foo () {return 0; }
5339$ac_kw foo_t foo () {return 0; }
5340#endif
5341
5342_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005343if ac_fn_c_try_compile "$LINENO"; then :
5344 ac_cv_c_inline=$ac_kw
Cullen Jennings235513a2005-09-21 22:51:36 +00005345fi
jfigusc7e66e32013-05-08 11:32:55 -04005346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5347 test "$ac_cv_c_inline" != no && break
Cullen Jennings235513a2005-09-21 22:51:36 +00005348done
5349
5350fi
jfigusc7e66e32013-05-08 11:32:55 -04005351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5352$as_echo "$ac_cv_c_inline" >&6; }
David McGrewfec49dd2005-09-23 19:34:11 +00005353
Cullen Jennings235513a2005-09-21 22:51:36 +00005354case $ac_cv_c_inline in
5355 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00005356 *)
5357 case $ac_cv_c_inline in
5358 no) ac_val=;;
5359 *) ac_val=$ac_cv_c_inline;;
5360 esac
5361 cat >>confdefs.h <<_ACEOF
5362#ifndef __cplusplus
5363#define inline $ac_val
5364#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00005365_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00005366 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005367esac
5368
jfigusc7e66e32013-05-08 11:32:55 -04005369ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5370if test "x$ac_cv_type_size_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005371
Cullen Jennings235513a2005-09-21 22:51:36 +00005372else
5373
5374cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005375#define size_t unsigned int
Cullen Jennings235513a2005-09-21 22:51:36 +00005376_ACEOF
5377
5378fi
5379
5380
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00005381for ac_func in socket inet_aton usleep sigaction
jfigusc7e66e32013-05-08 11:32:55 -04005382do :
5383 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5384ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5385if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005386 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005387#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00005388_ACEOF
5389
5390fi
5391done
5392
5393
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005394if test "x$ac_cv_func_socket" = "xno"; then
jfigusc7e66e32013-05-08 11:32:55 -04005395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5396$as_echo_n "checking for socket in -lsocket... " >&6; }
5397if ${ac_cv_lib_socket_socket+:} false; then :
5398 $as_echo_n "(cached) " >&6
David McGrewb67061f2005-09-28 14:23:06 +00005399else
5400 ac_check_lib_save_LIBS=$LIBS
5401LIBS="-lsocket $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04005402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00005403/* end confdefs.h. */
5404
jfigusc7e66e32013-05-08 11:32:55 -04005405/* Override any GCC internal prototype to avoid an error.
5406 Use char because int might match the return type of a GCC
5407 builtin and then its argument prototype would still apply. */
David McGrewb67061f2005-09-28 14:23:06 +00005408#ifdef __cplusplus
5409extern "C"
5410#endif
David McGrewb67061f2005-09-28 14:23:06 +00005411char socket ();
5412int
5413main ()
5414{
jfigusc7e66e32013-05-08 11:32:55 -04005415return socket ();
David McGrewb67061f2005-09-28 14:23:06 +00005416 ;
5417 return 0;
5418}
5419_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005420if ac_fn_c_try_link "$LINENO"; then :
David McGrewb67061f2005-09-28 14:23:06 +00005421 ac_cv_lib_socket_socket=yes
5422else
jfigusc7e66e32013-05-08 11:32:55 -04005423 ac_cv_lib_socket_socket=no
David McGrewb67061f2005-09-28 14:23:06 +00005424fi
jfigusc7e66e32013-05-08 11:32:55 -04005425rm -f core conftest.err conftest.$ac_objext \
5426 conftest$ac_exeext conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00005427LIBS=$ac_check_lib_save_LIBS
5428fi
jfigusc7e66e32013-05-08 11:32:55 -04005429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5430$as_echo "$ac_cv_lib_socket_socket" >&6; }
5431if test "x$ac_cv_lib_socket_socket" = xyes; then :
David McGrewb67061f2005-09-28 14:23:06 +00005432 cat >>confdefs.h <<_ACEOF
5433#define HAVE_LIBSOCKET 1
5434_ACEOF
5435
5436 LIBS="-lsocket $LIBS"
5437
5438fi
5439
jfigusc7e66e32013-05-08 11:32:55 -04005440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
5441$as_echo_n "checking for socket in -lwsock32... " >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005442 SAVELIBS="$LIBS"
5443 LIBS="$LIBS -lwsock32"
jfigusc7e66e32013-05-08 11:32:55 -04005444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005445/* end confdefs.h. */
5446
5447#include <winsock2.h>
5448
5449int
5450main ()
5451{
5452
5453socket(0, 0, 0);
5454
5455 ;
5456 return 0;
5457}
5458_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005459if ac_fn_c_try_link "$LINENO"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005460 ac_cv_func_socket=yes
jfigusc7e66e32013-05-08 11:32:55 -04005461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5462$as_echo "yes" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005463else
jfigusc7e66e32013-05-08 11:32:55 -04005464 LIBS="$SAVELIBS"
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466$as_echo "no" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005467fi
jfigusc7e66e32013-05-08 11:32:55 -04005468rm -f core conftest.err conftest.$ac_objext \
5469 conftest$ac_exeext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005470fi
David McGrewb67061f2005-09-28 14:23:06 +00005471
jfigusc7e66e32013-05-08 11:32:55 -04005472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debugging" >&5
5473$as_echo_n "checking whether to compile in debugging... " >&6; }
5474# Check whether --enable-debug was given.
5475if test "${enable_debug+set}" = set; then :
5476 enableval=$enable_debug;
David McGrewb67061f2005-09-28 14:23:06 +00005477else
5478 enable_debug=yes
jfigusc7e66e32013-05-08 11:32:55 -04005479fi
5480
David McGrewb67061f2005-09-28 14:23:06 +00005481if test "$enable_debug" = "yes"; then
5482
jfigusc7e66e32013-05-08 11:32:55 -04005483$as_echo "#define ENABLE_DEBUGGING 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005484
5485fi
jfigusc7e66e32013-05-08 11:32:55 -04005486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
5487$as_echo "$enable_debug" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005488
jfigusc7e66e32013-05-08 11:32:55 -04005489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ISMAcryp code" >&5
5490$as_echo_n "checking whether to use ISMAcryp code... " >&6; }
5491# Check whether --enable-generic-aesicm was given.
5492if test "${enable_generic_aesicm+set}" = set; then :
5493 enableval=$enable_generic_aesicm;
David McGrewb67061f2005-09-28 14:23:06 +00005494else
5495 enable_generic_aesicm=no
jfigusc7e66e32013-05-08 11:32:55 -04005496fi
5497
David McGrewb67061f2005-09-28 14:23:06 +00005498if test "$enable_generic_aesicm" = "yes"; then
5499
jfigusc7e66e32013-05-08 11:32:55 -04005500$as_echo "#define GENERIC_AESICM 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04005501
jfigusa14b5a02013-03-29 12:24:12 -04005502fi
jfigusc7e66e32013-05-08 11:32:55 -04005503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generic_aesicm" >&5
5504$as_echo "$enable_generic_aesicm" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04005505
jfigusc7e66e32013-05-08 11:32:55 -04005506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
5507$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
5508# Check whether --enable-openssl was given.
5509if test "${enable_openssl+set}" = set; then :
5510 enableval=$enable_openssl;
5511else
5512 enable_openssl=no
5513fi
jfigusa14b5a02013-03-29 12:24:12 -04005514
jfigus2b486652014-07-24 15:01:41 -04005515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
5516$as_echo "$enable_openssl" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04005517if test "$enable_openssl" = "yes"; then
jfigus038d2cf2015-05-11 14:10:11 -04005518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user specified OpenSSL directory" >&5
5519$as_echo_n "checking for user specified OpenSSL directory... " >&6; }
5520
5521# Check whether --with-openssl-dir was given.
5522if test "${with_openssl_dir+set}" = set; then :
5523 withval=$with_openssl_dir; openssl_dir="$withval"
5524else
5525 openssl_dir=""
5526fi
5527
5528
5529 LDFLAGS="$LDFLAGS -L$openssl_dir/lib $(pkg-config --libs openssl)";
5530 CFLAGS="$CFLAGS -I$openssl_dir/include $(pkg-config --cflags openssl)";
Cullen Jenningse1de50f2013-05-22 12:27:28 -06005531
jfigusb5fad5f2015-02-26 12:25:08 -05005532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5533$as_echo_n "checking for dlopen in -ldl... " >&6; }
5534if ${ac_cv_lib_dl_dlopen+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536else
5537 ac_check_lib_save_LIBS=$LIBS
5538LIBS="-ldl $LIBS"
5539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540/* end confdefs.h. */
5541
5542/* Override any GCC internal prototype to avoid an error.
5543 Use char because int might match the return type of a GCC
5544 builtin and then its argument prototype would still apply. */
5545#ifdef __cplusplus
5546extern "C"
5547#endif
5548char dlopen ();
5549int
5550main ()
5551{
5552return dlopen ();
5553 ;
5554 return 0;
5555}
5556_ACEOF
5557if ac_fn_c_try_link "$LINENO"; then :
5558 ac_cv_lib_dl_dlopen=yes
5559else
5560 ac_cv_lib_dl_dlopen=no
5561fi
5562rm -f core conftest.err conftest.$ac_objext \
5563 conftest$ac_exeext conftest.$ac_ext
5564LIBS=$ac_check_lib_save_LIBS
5565fi
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5567$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5568if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5569 cat >>confdefs.h <<_ACEOF
5570#define HAVE_LIBDL 1
5571_ACEOF
5572
5573 LIBS="-ldl $LIBS"
5574
5575else
jfigus13fd6942015-03-02 09:09:13 -05005576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libdl" >&5
5577$as_echo "$as_me: WARNING: can't find libdl" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005578fi
5579
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
5581$as_echo_n "checking for inflate in -lz... " >&6; }
5582if ${ac_cv_lib_z_inflate+:} false; then :
5583 $as_echo_n "(cached) " >&6
5584else
5585 ac_check_lib_save_LIBS=$LIBS
5586LIBS="-lz $LIBS"
5587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588/* end confdefs.h. */
5589
5590/* Override any GCC internal prototype to avoid an error.
5591 Use char because int might match the return type of a GCC
5592 builtin and then its argument prototype would still apply. */
5593#ifdef __cplusplus
5594extern "C"
5595#endif
5596char inflate ();
5597int
5598main ()
5599{
5600return inflate ();
5601 ;
5602 return 0;
5603}
5604_ACEOF
5605if ac_fn_c_try_link "$LINENO"; then :
5606 ac_cv_lib_z_inflate=yes
5607else
5608 ac_cv_lib_z_inflate=no
5609fi
5610rm -f core conftest.err conftest.$ac_objext \
5611 conftest$ac_exeext conftest.$ac_ext
5612LIBS=$ac_check_lib_save_LIBS
5613fi
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
5615$as_echo "$ac_cv_lib_z_inflate" >&6; }
5616if test "x$ac_cv_lib_z_inflate" = xyes; then :
5617 cat >>confdefs.h <<_ACEOF
5618#define HAVE_LIBZ 1
5619_ACEOF
5620
5621 LIBS="-lz $LIBS"
5622
5623else
jfigus13fd6942015-03-02 09:09:13 -05005624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libz" >&5
5625$as_echo "$as_me: WARNING: can't find libz" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005626fi
5627
jfigusc7e66e32013-05-08 11:32:55 -04005628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
5629$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
5630if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
5631 $as_echo_n "(cached) " >&6
5632else
5633 ac_check_lib_save_LIBS=$LIBS
5634LIBS="-lcrypto $LIBS"
5635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636/* end confdefs.h. */
5637
5638/* Override any GCC internal prototype to avoid an error.
5639 Use char because int might match the return type of a GCC
5640 builtin and then its argument prototype would still apply. */
5641#ifdef __cplusplus
5642extern "C"
5643#endif
5644char EVP_EncryptInit ();
5645int
5646main ()
5647{
5648return EVP_EncryptInit ();
5649 ;
5650 return 0;
5651}
5652_ACEOF
5653if ac_fn_c_try_link "$LINENO"; then :
5654 ac_cv_lib_crypto_EVP_EncryptInit=yes
5655else
5656 ac_cv_lib_crypto_EVP_EncryptInit=no
5657fi
5658rm -f core conftest.err conftest.$ac_objext \
5659 conftest$ac_exeext conftest.$ac_ext
5660LIBS=$ac_check_lib_save_LIBS
5661fi
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
5663$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
5664if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
5665 cat >>confdefs.h <<_ACEOF
5666#define HAVE_LIBCRYPTO 1
5667_ACEOF
5668
5669 LIBS="-lcrypto $LIBS"
5670
5671else
5672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
jfigus5b22e372013-05-09 09:23:26 -04005674as_fn_error $? "can't find openssl >1.0.1 crypto lib
5675See \`config.log' for more details" "$LINENO" 5; }
5676fi
5677
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_ctr in -lcrypto" >&5
5679$as_echo_n "checking for EVP_aes_128_ctr in -lcrypto... " >&6; }
5680if ${ac_cv_lib_crypto_EVP_aes_128_ctr+:} false; then :
5681 $as_echo_n "(cached) " >&6
5682else
5683 ac_check_lib_save_LIBS=$LIBS
5684LIBS="-lcrypto $LIBS"
5685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686/* end confdefs.h. */
5687
5688/* Override any GCC internal prototype to avoid an error.
5689 Use char because int might match the return type of a GCC
5690 builtin and then its argument prototype would still apply. */
5691#ifdef __cplusplus
5692extern "C"
5693#endif
5694char EVP_aes_128_ctr ();
5695int
5696main ()
5697{
5698return EVP_aes_128_ctr ();
5699 ;
5700 return 0;
5701}
5702_ACEOF
5703if ac_fn_c_try_link "$LINENO"; then :
5704 ac_cv_lib_crypto_EVP_aes_128_ctr=yes
5705else
5706 ac_cv_lib_crypto_EVP_aes_128_ctr=no
5707fi
5708rm -f core conftest.err conftest.$ac_objext \
5709 conftest$ac_exeext conftest.$ac_ext
5710LIBS=$ac_check_lib_save_LIBS
5711fi
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_ctr" >&5
5713$as_echo "$ac_cv_lib_crypto_EVP_aes_128_ctr" >&6; }
5714if test "x$ac_cv_lib_crypto_EVP_aes_128_ctr" = xyes; then :
5715 cat >>confdefs.h <<_ACEOF
5716#define HAVE_LIBCRYPTO 1
5717_ACEOF
5718
5719 LIBS="-lcrypto $LIBS"
5720
5721else
5722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5724as_fn_error $? "can't find openssl >1.0.1 crypto lib
jfigusc7e66e32013-05-08 11:32:55 -04005725See \`config.log' for more details" "$LINENO" 5; }
5726fi
5727
jfigus7882dd92013-08-02 16:08:23 -04005728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_gcm in -lcrypto" >&5
5729$as_echo_n "checking for EVP_aes_128_gcm in -lcrypto... " >&6; }
5730if ${ac_cv_lib_crypto_EVP_aes_128_gcm+:} false; then :
5731 $as_echo_n "(cached) " >&6
5732else
5733 ac_check_lib_save_LIBS=$LIBS
5734LIBS="-lcrypto $LIBS"
5735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736/* end confdefs.h. */
5737
5738/* Override any GCC internal prototype to avoid an error.
5739 Use char because int might match the return type of a GCC
5740 builtin and then its argument prototype would still apply. */
5741#ifdef __cplusplus
5742extern "C"
5743#endif
5744char EVP_aes_128_gcm ();
5745int
5746main ()
5747{
5748return EVP_aes_128_gcm ();
5749 ;
5750 return 0;
5751}
5752_ACEOF
5753if ac_fn_c_try_link "$LINENO"; then :
5754 ac_cv_lib_crypto_EVP_aes_128_gcm=yes
5755else
5756 ac_cv_lib_crypto_EVP_aes_128_gcm=no
5757fi
5758rm -f core conftest.err conftest.$ac_objext \
5759 conftest$ac_exeext conftest.$ac_ext
5760LIBS=$ac_check_lib_save_LIBS
5761fi
5762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_gcm" >&5
5763$as_echo "$ac_cv_lib_crypto_EVP_aes_128_gcm" >&6; }
5764if test "x$ac_cv_lib_crypto_EVP_aes_128_gcm" = xyes; then :
5765 cat >>confdefs.h <<_ACEOF
5766#define HAVE_LIBCRYPTO 1
5767_ACEOF
5768
5769 LIBS="-lcrypto $LIBS"
5770
5771else
5772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5774as_fn_error $? "can't find openssl >1.0.1 crypto lib
5775See \`config.log' for more details" "$LINENO" 5; }
5776fi
5777
jfigusc7e66e32013-05-08 11:32:55 -04005778
5779$as_echo "#define OPENSSL 1" >>confdefs.h
5780
jfigus7882dd92013-08-02 16:08:23 -04005781 AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
jfigusc7e66e32013-05-08 11:32:55 -04005782 HMAC_OBJS=crypto/hash/hmac_ossl.o
5783 USE_OPENSSL=1
5784
jfigus038d2cf2015-05-11 14:10:11 -04005785
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL KDF algorithm" >&5
5787$as_echo_n "checking whether to leverage OpenSSL KDF algorithm... " >&6; }
5788 # Check whether --enable-openssl-kdf was given.
5789if test "${enable_openssl_kdf+set}" = set; then :
5790 enableval=$enable_openssl_kdf;
5791else
5792 enable_openssl_kdf=no
5793fi
5794
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl_kdf" >&5
5796$as_echo "$enable_openssl_kdf" >&6; }
5797 if test "$enable_openssl_kdf" = "yes"; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kdf_srtp in -lcrypto" >&5
5799$as_echo_n "checking for kdf_srtp in -lcrypto... " >&6; }
5800if ${ac_cv_lib_crypto_kdf_srtp+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802else
5803 ac_check_lib_save_LIBS=$LIBS
5804LIBS="-lcrypto $LIBS"
5805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806/* end confdefs.h. */
5807
5808/* Override any GCC internal prototype to avoid an error.
5809 Use char because int might match the return type of a GCC
5810 builtin and then its argument prototype would still apply. */
5811#ifdef __cplusplus
5812extern "C"
5813#endif
5814char kdf_srtp ();
5815int
5816main ()
5817{
5818return kdf_srtp ();
5819 ;
5820 return 0;
5821}
5822_ACEOF
5823if ac_fn_c_try_link "$LINENO"; then :
5824 ac_cv_lib_crypto_kdf_srtp=yes
5825else
5826 ac_cv_lib_crypto_kdf_srtp=no
5827fi
5828rm -f core conftest.err conftest.$ac_objext \
5829 conftest$ac_exeext conftest.$ac_ext
5830LIBS=$ac_check_lib_save_LIBS
5831fi
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_kdf_srtp" >&5
5833$as_echo "$ac_cv_lib_crypto_kdf_srtp" >&6; }
5834if test "x$ac_cv_lib_crypto_kdf_srtp" = xyes; then :
5835 cat >>confdefs.h <<_ACEOF
5836#define HAVE_LIBCRYPTO 1
5837_ACEOF
5838
5839 LIBS="-lcrypto $LIBS"
5840
5841else
5842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5844as_fn_error $? "can't find openssl KDF lib
5845See \`config.log' for more details" "$LINENO" 5; }
5846fi
5847
5848
5849$as_echo "#define OPENSSL_KDF 1" >>confdefs.h
5850
5851 fi
jfigusc7e66e32013-05-08 11:32:55 -04005852else
jfigusa3127b82014-11-19 14:46:52 -05005853 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o"
jfigus7882dd92013-08-02 16:08:23 -04005854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random device to use" >&5
5855$as_echo_n "checking which random device to use... " >&6; }
jfigusa6cf2082014-11-21 10:04:03 -05005856 if test -n "$DEV_URANDOM"; then
jfigusc7e66e32013-05-08 11:32:55 -04005857
5858cat >>confdefs.h <<_ACEOF
5859#define DEV_URANDOM "$DEV_URANDOM"
5860_ACEOF
5861
jfigusa6cf2082014-11-21 10:04:03 -05005862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_URANDOM" >&5
jfigusc7e66e32013-05-08 11:32:55 -04005863$as_echo "$DEV_URANDOM" >&6; }
jfigusa6cf2082014-11-21 10:04:03 -05005864 else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: standard rand() function..." >&5
jfigusc7e66e32013-05-08 11:32:55 -04005866$as_echo "standard rand() function..." >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04005867 fi
jfigusc7e66e32013-05-08 11:32:55 -04005868 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
5869fi
5870
5871
5872
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
5874$as_echo_n "checking for pcap_create in -lpcap... " >&6; }
5875if ${ac_cv_lib_pcap_pcap_create+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877else
5878 ac_check_lib_save_LIBS=$LIBS
5879LIBS="-lpcap $LIBS"
5880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881/* end confdefs.h. */
5882
5883/* Override any GCC internal prototype to avoid an error.
5884 Use char because int might match the return type of a GCC
5885 builtin and then its argument prototype would still apply. */
5886#ifdef __cplusplus
5887extern "C"
5888#endif
5889char pcap_create ();
5890int
5891main ()
5892{
5893return pcap_create ();
5894 ;
5895 return 0;
5896}
5897_ACEOF
5898if ac_fn_c_try_link "$LINENO"; then :
5899 ac_cv_lib_pcap_pcap_create=yes
5900else
5901 ac_cv_lib_pcap_pcap_create=no
5902fi
5903rm -f core conftest.err conftest.$ac_objext \
5904 conftest$ac_exeext conftest.$ac_ext
5905LIBS=$ac_check_lib_save_LIBS
5906fi
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
5908$as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
5909if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
Bernardo Torresb3c51422014-10-14 12:40:09 -03005910 PCAP=1
5911 LIBS="-lpcap $LIBS"
5912 HAVE_PCAP=1
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005913
Bernardo Torresb3c51422014-10-14 12:40:09 -03005914$as_echo "#define HAVE_PCAP 1" >>confdefs.h
5915
5916
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005917
5918fi
5919
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005920
jfigusc7e66e32013-05-08 11:32:55 -04005921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use stdout for error reporting" >&5
5922$as_echo_n "checking whether to use stdout for error reporting... " >&6; }
5923# Check whether --enable-stdout was given.
5924if test "${enable_stdout+set}" = set; then :
5925 enableval=$enable_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00005926else
jfigus97a80f42014-11-04 14:15:40 -05005927 enable_stdout=no
jfigusc7e66e32013-05-08 11:32:55 -04005928fi
5929
David McGrewb67061f2005-09-28 14:23:06 +00005930if test "$enable_stdout" = "yes"; then
5931
jfigusc7e66e32013-05-08 11:32:55 -04005932$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005933
5934fi
jfigusc7e66e32013-05-08 11:32:55 -04005935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdout" >&5
5936$as_echo "$enable_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005937
jfigusc7e66e32013-05-08 11:32:55 -04005938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use /dev/console for error reporting" >&5
5939$as_echo_n "checking whether to use /dev/console for error reporting... " >&6; }
5940# Check whether --enable-console was given.
5941if test "${enable_console+set}" = set; then :
5942 enableval=$enable_console;
David McGrewb67061f2005-09-28 14:23:06 +00005943else
5944 enable_console=no
jfigusc7e66e32013-05-08 11:32:55 -04005945fi
5946
David McGrewb67061f2005-09-28 14:23:06 +00005947if test "$enable_console" = "yes"; then
5948
jfigusc7e66e32013-05-08 11:32:55 -04005949$as_echo "#define USE_ERR_REPORTING_FILE 1" >>confdefs.h
David McGrewb67061f2005-09-28 14:23:06 +00005950
5951
jfigusc7e66e32013-05-08 11:32:55 -04005952$as_echo "#define ERR_REPORTING_FILE \"/dev/console\"" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005953
5954fi
jfigusc7e66e32013-05-08 11:32:55 -04005955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_console" >&5
5956$as_echo "$enable_console" >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00005957
jfigusc7e66e32013-05-08 11:32:55 -04005958ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00005959
5960
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005961# Extract the first word of "pkg-config", so it can be a program name with args.
5962set dummy pkg-config; ac_word=$2
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5964$as_echo_n "checking for $ac_word... " >&6; }
5965if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5966 $as_echo_n "(cached) " >&6
5967else
5968 if test -n "$PKG_CONFIG"; then
5969 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5970else
5971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972for as_dir in $PATH
5973do
5974 IFS=$as_save_IFS
5975 test -z "$as_dir" && as_dir=.
5976 for ac_exec_ext in '' $ac_executable_extensions; do
5977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5978 ac_cv_prog_PKG_CONFIG="yes"
5979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 break 2
5981 fi
5982done
5983 done
5984IFS=$as_save_IFS
5985
5986fi
5987fi
5988PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5989if test -n "$PKG_CONFIG"; then
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5991$as_echo "$PKG_CONFIG" >&6; }
5992else
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994$as_echo "no" >&6; }
5995fi
5996
5997
5998if test "x$PKG_CONFIG" != "x"; then
5999 HAVE_PKG_CONFIG=1
jfigusd196e022014-11-20 16:43:44 -05006000 ac_config_files="$ac_config_files libsrtp2.pc"
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02006001
6002else
6003 HAVE_PKG_CONFIG=0
6004fi
6005
jfigusc7e66e32013-05-08 11:32:55 -04006006ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile"
6007
Cullen Jennings235513a2005-09-21 22:51:36 +00006008cat >confcache <<\_ACEOF
6009# This file is a shell script that caches the results of configure
6010# tests run on this system so they can be shared between configure
6011# scripts and configure runs, see configure's option --config-cache.
6012# It is not useful on other systems. If it contains results you don't
6013# want to keep, you may remove or edit it.
6014#
6015# config.status only pays attention to the cache file if you give it
6016# the --recheck option to rerun configure.
6017#
6018# `ac_cv_env_foo' variables (set or unset) will be overridden when
6019# loading this file, other *unset* `ac_cv_foo' will be assigned the
6020# following values.
6021
6022_ACEOF
6023
6024# The following way of writing the cache mishandles newlines in values,
6025# but we know of no workaround that is simple, portable, and efficient.
jfigusc7e66e32013-05-08 11:32:55 -04006026# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00006027# Ultrix sh set writes to stderr and can't be redirected directly,
6028# and sets the high bit in the cache file unless we assign to the vars.
jfigusc7e66e32013-05-08 11:32:55 -04006029(
6030 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6031 eval ac_val=\$$ac_var
6032 case $ac_val in #(
6033 *${as_nl}*)
6034 case $ac_var in #(
6035 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6036$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6037 esac
6038 case $ac_var in #(
6039 _ | IFS | as_nl) ;; #(
6040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6041 *) { eval $ac_var=; unset $ac_var;} ;;
6042 esac ;;
6043 esac
6044 done
6045
Cullen Jennings235513a2005-09-21 22:51:36 +00006046 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04006047 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6048 *${as_nl}ac_space=\ *)
6049 # `set' does not quote correctly, so add quotes: double-quote
6050 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00006051 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00006052 "s/'/'\\\\''/g;
6053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusc7e66e32013-05-08 11:32:55 -04006054 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00006055 *)
6056 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusc7e66e32013-05-08 11:32:55 -04006057 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00006058 ;;
jfigusc7e66e32013-05-08 11:32:55 -04006059 esac |
6060 sort
6061) |
Cullen Jennings235513a2005-09-21 22:51:36 +00006062 sed '
jfigusc7e66e32013-05-08 11:32:55 -04006063 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00006064 t clear
jfigusc7e66e32013-05-08 11:32:55 -04006065 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00006066 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6067 t end
jfigusc7e66e32013-05-08 11:32:55 -04006068 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6069 :end' >>confcache
6070if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6071 if test -w "$cache_file"; then
6072 if test "x$cache_file" != "x/dev/null"; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6074$as_echo "$as_me: updating cache $cache_file" >&6;}
6075 if test ! -f "$cache_file" || test -h "$cache_file"; then
6076 cat confcache >"$cache_file"
6077 else
6078 case $cache_file in #(
6079 */* | ?:*)
6080 mv -f confcache "$cache_file"$$ &&
6081 mv -f "$cache_file"$$ "$cache_file" ;; #(
6082 *)
6083 mv -f confcache "$cache_file" ;;
6084 esac
6085 fi
6086 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006087 else
jfigusc7e66e32013-05-08 11:32:55 -04006088 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6089$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006090 fi
6091fi
6092rm -f confcache
6093
6094test "x$prefix" = xNONE && prefix=$ac_default_prefix
6095# Let make expand exec_prefix.
6096test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6097
Cullen Jennings235513a2005-09-21 22:51:36 +00006098DEFS=-DHAVE_CONFIG_H
6099
6100ac_libobjs=
6101ac_ltlibobjs=
jfigusc7e66e32013-05-08 11:32:55 -04006102U=
Cullen Jennings235513a2005-09-21 22:51:36 +00006103for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6104 # 1. Remove the extension, and $U if already installed.
jfigusc7e66e32013-05-08 11:32:55 -04006105 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6106 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6107 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6108 # will be set to the directory where LIBOBJS objects are built.
6109 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6110 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00006111done
6112LIBOBJS=$ac_libobjs
6113
6114LTLIBOBJS=$ac_ltlibobjs
6115
6116
6117
jfigusc7e66e32013-05-08 11:32:55 -04006118
6119: "${CONFIG_STATUS=./config.status}"
6120ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00006121ac_clean_files_save=$ac_clean_files
6122ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusc7e66e32013-05-08 11:32:55 -04006123{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6124$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6125as_write_fail=0
6126cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006127#! $SHELL
6128# Generated by $as_me.
6129# Run this file to recreate the current configuration.
6130# Compiler output produced by configure, useful for debugging
6131# configure, is in config.log if it exists.
6132
6133debug=false
6134ac_cs_recheck=false
6135ac_cs_silent=false
jfigusc7e66e32013-05-08 11:32:55 -04006136
Cullen Jennings235513a2005-09-21 22:51:36 +00006137SHELL=\${CONFIG_SHELL-$SHELL}
jfigusc7e66e32013-05-08 11:32:55 -04006138export SHELL
6139_ASEOF
6140cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6141## -------------------- ##
6142## M4sh Initialization. ##
6143## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00006144
jfigusc7e66e32013-05-08 11:32:55 -04006145# Be more Bourne compatible
6146DUALCASE=1; export DUALCASE # for MKS sh
6147if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00006148 emulate sh
6149 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -04006150 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00006151 # is contrary to our usage. Disable this feature.
6152 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -04006153 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00006154else
jfigusc7e66e32013-05-08 11:32:55 -04006155 case `(set -o) 2>/dev/null` in #(
6156 *posix*) :
6157 set -o posix ;; #(
6158 *) :
6159 ;;
6160esac
Cullen Jennings235513a2005-09-21 22:51:36 +00006161fi
6162
6163
jfigusc7e66e32013-05-08 11:32:55 -04006164as_nl='
6165'
6166export as_nl
6167# Printing a long string crashes Solaris 7 /usr/bin/printf.
6168as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6169as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6170as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6171# Prefer a ksh shell builtin over an external printf program on Solaris,
6172# but without wasting forks for bash or zsh.
6173if test -z "$BASH_VERSION$ZSH_VERSION" \
6174 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6175 as_echo='print -r --'
6176 as_echo_n='print -rn --'
6177elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6178 as_echo='printf %s\n'
6179 as_echo_n='printf %s'
6180else
6181 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6182 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6183 as_echo_n='/usr/ucb/echo -n'
6184 else
6185 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6186 as_echo_n_body='eval
6187 arg=$1;
6188 case $arg in #(
6189 *"$as_nl"*)
6190 expr "X$arg" : "X\\(.*\\)$as_nl";
6191 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6192 esac;
6193 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6194 '
6195 export as_echo_n_body
6196 as_echo_n='sh -c $as_echo_n_body as_echo'
6197 fi
6198 export as_echo_body
6199 as_echo='sh -c $as_echo_body as_echo'
6200fi
6201
6202# The user is always right.
6203if test "${PATH_SEPARATOR+set}" != set; then
6204 PATH_SEPARATOR=:
6205 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6206 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6207 PATH_SEPARATOR=';'
6208 }
6209fi
6210
6211
6212# IFS
6213# We need space, tab and new line, in precisely that order. Quoting is
6214# there to prevent editors from complaining about space-tab.
6215# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6216# splitting by setting IFS to empty value.)
6217IFS=" "" $as_nl"
6218
6219# Find who we are. Look in the path if we contain no directory separator.
6220as_myself=
6221case $0 in #((
6222 *[\\/]* ) as_myself=$0 ;;
6223 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224for as_dir in $PATH
6225do
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
6228 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6229 done
6230IFS=$as_save_IFS
6231
6232 ;;
6233esac
6234# We did not find ourselves, most probably we were run as `sh COMMAND'
6235# in which case we are not to be found in the path.
6236if test "x$as_myself" = x; then
6237 as_myself=$0
6238fi
6239if test ! -f "$as_myself"; then
6240 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6241 exit 1
6242fi
6243
6244# Unset variables that we do not need and which cause bugs (e.g. in
6245# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6246# suppresses any "Segmentation fault" message there. '((' could
6247# trigger a bug in pdksh 5.2.14.
6248for as_var in BASH_ENV ENV MAIL MAILPATH
6249do eval test x\${$as_var+set} = xset \
6250 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6251done
Cullen Jennings235513a2005-09-21 22:51:36 +00006252PS1='$ '
6253PS2='> '
6254PS4='+ '
6255
6256# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -04006257LC_ALL=C
6258export LC_ALL
6259LANGUAGE=C
6260export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -04006261
jfigusc7e66e32013-05-08 11:32:55 -04006262# CDPATH.
6263(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6264
6265
6266# as_fn_error STATUS ERROR [LINENO LOG_FD]
6267# ----------------------------------------
6268# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6269# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6270# script with STATUS, using 1 if that was 0.
6271as_fn_error ()
6272{
6273 as_status=$1; test $as_status -eq 0 && as_status=1
6274 if test "$4"; then
6275 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6276 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6277 fi
6278 $as_echo "$as_me: error: $2" >&2
6279 as_fn_exit $as_status
6280} # as_fn_error
6281
6282
6283# as_fn_set_status STATUS
6284# -----------------------
6285# Set $? to STATUS, without forking.
6286as_fn_set_status ()
6287{
6288 return $1
6289} # as_fn_set_status
6290
6291# as_fn_exit STATUS
6292# -----------------
6293# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6294as_fn_exit ()
6295{
6296 set +e
6297 as_fn_set_status $1
6298 exit $1
6299} # as_fn_exit
6300
6301# as_fn_unset VAR
6302# ---------------
6303# Portably unset VAR.
6304as_fn_unset ()
6305{
6306 { eval $1=; unset $1;}
6307}
6308as_unset=as_fn_unset
6309# as_fn_append VAR VALUE
6310# ----------------------
6311# Append the text in VALUE to the end of the definition contained in VAR. Take
6312# advantage of any shell optimizations that allow amortized linear growth over
6313# repeated appends, instead of the typical quadratic growth present in naive
6314# implementations.
6315if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6316 eval 'as_fn_append ()
6317 {
6318 eval $1+=\$2
6319 }'
6320else
6321 as_fn_append ()
6322 {
6323 eval $1=\$$1\$2
6324 }
6325fi # as_fn_append
6326
6327# as_fn_arith ARG...
6328# ------------------
6329# Perform arithmetic evaluation on the ARGs, and store the result in the
6330# global $as_val. Take advantage of shells that can avoid forks. The arguments
6331# must be portable across $(()) and expr.
6332if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6333 eval 'as_fn_arith ()
6334 {
6335 as_val=$(( $* ))
6336 }'
6337else
6338 as_fn_arith ()
6339 {
6340 as_val=`expr "$@" || test $? -eq 1`
6341 }
6342fi # as_fn_arith
6343
6344
6345if expr a : '\(a\)' >/dev/null 2>&1 &&
6346 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006347 as_expr=expr
6348else
6349 as_expr=false
6350fi
6351
jfigusc7e66e32013-05-08 11:32:55 -04006352if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006353 as_basename=basename
6354else
6355 as_basename=false
6356fi
6357
jfigusc7e66e32013-05-08 11:32:55 -04006358if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6359 as_dirname=dirname
6360else
6361 as_dirname=false
6362fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006363
jfigusc7e66e32013-05-08 11:32:55 -04006364as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006365$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6366 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006367 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6368$as_echo X/"$0" |
6369 sed '/^.*\/\([^/][^/]*\)\/*$/{
6370 s//\1/
6371 q
6372 }
6373 /^X\/\(\/\/\)$/{
6374 s//\1/
6375 q
6376 }
6377 /^X\/\(\/\).*/{
6378 s//\1/
6379 q
6380 }
6381 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00006382
Cullen Jennings235513a2005-09-21 22:51:36 +00006383# Avoid depending upon Character Ranges.
6384as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6385as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6386as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6387as_cr_digits='0123456789'
6388as_cr_alnum=$as_cr_Letters$as_cr_digits
6389
jfigusc7e66e32013-05-08 11:32:55 -04006390ECHO_C= ECHO_N= ECHO_T=
6391case `echo -n x` in #(((((
6392-n*)
6393 case `echo 'xy\c'` in
6394 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6395 xy) ECHO_C='\c';;
6396 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6397 ECHO_T=' ';;
6398 esac;;
6399*)
6400 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00006401esac
6402
Cullen Jennings235513a2005-09-21 22:51:36 +00006403rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -04006404if test -d conf$$.dir; then
6405 rm -f conf$$.dir/conf$$.file
6406else
6407 rm -f conf$$.dir
6408 mkdir conf$$.dir 2>/dev/null
6409fi
6410if (echo >conf$$.file) 2>/dev/null; then
6411 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006412 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -04006413 # ... but there are two gotchas:
6414 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6415 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6416 # In both cases, we have to default to `cp -pR'.
6417 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6418 as_ln_s='cp -pR'
6419 elif ln conf$$.file conf$$ 2>/dev/null; then
6420 as_ln_s=ln
6421 else
6422 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006423 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006424else
jfigusc7e66e32013-05-08 11:32:55 -04006425 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006426fi
jfigusc7e66e32013-05-08 11:32:55 -04006427rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6428rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00006429
jfigusc7e66e32013-05-08 11:32:55 -04006430
6431# as_fn_mkdir_p
6432# -------------
6433# Create "$as_dir" as a directory, including parents if necessary.
6434as_fn_mkdir_p ()
6435{
6436
6437 case $as_dir in #(
6438 -*) as_dir=./$as_dir;;
6439 esac
6440 test -d "$as_dir" || eval $as_mkdir_p || {
6441 as_dirs=
6442 while :; do
6443 case $as_dir in #(
6444 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6445 *) as_qdir=$as_dir;;
6446 esac
6447 as_dirs="'$as_qdir' $as_dirs"
6448 as_dir=`$as_dirname -- "$as_dir" ||
6449$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6450 X"$as_dir" : 'X\(//\)[^/]' \| \
6451 X"$as_dir" : 'X\(//\)$' \| \
6452 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6453$as_echo X"$as_dir" |
6454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6455 s//\1/
6456 q
6457 }
6458 /^X\(\/\/\)[^/].*/{
6459 s//\1/
6460 q
6461 }
6462 /^X\(\/\/\)$/{
6463 s//\1/
6464 q
6465 }
6466 /^X\(\/\).*/{
6467 s//\1/
6468 q
6469 }
6470 s/.*/./; q'`
6471 test -d "$as_dir" && break
6472 done
6473 test -z "$as_dirs" || eval "mkdir $as_dirs"
6474 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6475
6476
6477} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006478if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -04006479 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00006480else
David McGrewfec49dd2005-09-23 19:34:11 +00006481 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00006482 as_mkdir_p=false
6483fi
6484
jfigusc7e66e32013-05-08 11:32:55 -04006485
6486# as_fn_executable_p FILE
6487# -----------------------
6488# Test if FILE is an executable regular file.
6489as_fn_executable_p ()
6490{
6491 test -f "$1" && test -x "$1"
6492} # as_fn_executable_p
6493as_test_x='test -x'
6494as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006495
6496# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00006497as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006498
6499# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00006500as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006501
6502
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006503exec 6>&1
jfigusc7e66e32013-05-08 11:32:55 -04006504## ----------------------------------- ##
6505## Main body of $CONFIG_STATUS script. ##
6506## ----------------------------------- ##
6507_ASEOF
6508test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006509
jfigusc7e66e32013-05-08 11:32:55 -04006510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6511# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00006512# report actual input values of CONFIG_FILES etc. instead of their
jfigusc7e66e32013-05-08 11:32:55 -04006513# values after options handling.
6514ac_log="
jfigusd196e022014-11-20 16:43:44 -05006515This file was extended by libsrtp2 $as_me 2.0.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04006516generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00006517
6518 CONFIG_FILES = $CONFIG_FILES
6519 CONFIG_HEADERS = $CONFIG_HEADERS
6520 CONFIG_LINKS = $CONFIG_LINKS
6521 CONFIG_COMMANDS = $CONFIG_COMMANDS
6522 $ $0 $@
6523
jfigusc7e66e32013-05-08 11:32:55 -04006524on `(hostname || uname -n) 2>/dev/null | sed 1q`
6525"
6526
Cullen Jennings235513a2005-09-21 22:51:36 +00006527_ACEOF
6528
jfigusc7e66e32013-05-08 11:32:55 -04006529case $ac_config_files in *"
6530"*) set x $ac_config_files; shift; ac_config_files=$*;;
6531esac
6532
6533case $ac_config_headers in *"
6534"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6535esac
6536
6537
6538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006539# Files that config.status was made for.
jfigusc7e66e32013-05-08 11:32:55 -04006540config_files="$ac_config_files"
6541config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00006542
jfigusc7e66e32013-05-08 11:32:55 -04006543_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006544
jfigusc7e66e32013-05-08 11:32:55 -04006545cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006546ac_cs_usage="\
jfigusc7e66e32013-05-08 11:32:55 -04006547\`$as_me' instantiates files and other configuration actions
6548from templates according to the current configuration. Unless the files
6549and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00006550
jfigusc7e66e32013-05-08 11:32:55 -04006551Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00006552
6553 -h, --help print this help, then exit
jfigusc7e66e32013-05-08 11:32:55 -04006554 -V, --version print version number and configuration settings, then exit
6555 --config print configuration, then exit
6556 -q, --quiet, --silent
6557 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00006558 -d, --debug don't remove temporary files
6559 --recheck update $as_me by reconfiguring in the same conditions
jfigusc7e66e32013-05-08 11:32:55 -04006560 --file=FILE[:TEMPLATE]
6561 instantiate the configuration file FILE
6562 --header=FILE[:TEMPLATE]
6563 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00006564
6565Configuration files:
6566$config_files
6567
6568Configuration headers:
6569$config_headers
6570
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02006571Report bugs to <https://github.com/cisco/libsrtp/issues>."
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006572
jfigusc7e66e32013-05-08 11:32:55 -04006573_ACEOF
6574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6575ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00006576ac_cs_version="\\
jfigusd196e022014-11-20 16:43:44 -05006577libsrtp2 config.status 2.0.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04006578configured by $0, generated by GNU Autoconf 2.69,
6579 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00006580
jfigusc7e66e32013-05-08 11:32:55 -04006581Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00006582This config.status script is free software; the Free Software Foundation
6583gives unlimited permission to copy, distribute and modify it."
jfigusc7e66e32013-05-08 11:32:55 -04006584
6585ac_pwd='$ac_pwd'
6586srcdir='$srcdir'
6587INSTALL='$INSTALL'
6588test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00006589_ACEOF
6590
jfigusc7e66e32013-05-08 11:32:55 -04006591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6592# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00006593ac_need_defaults=:
6594while test $# != 0
6595do
6596 case $1 in
jfigusc7e66e32013-05-08 11:32:55 -04006597 --*=?*)
6598 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6599 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00006600 ac_shift=:
6601 ;;
jfigusc7e66e32013-05-08 11:32:55 -04006602 --*=)
6603 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6604 ac_optarg=
6605 ac_shift=:
6606 ;;
6607 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00006608 ac_option=$1
6609 ac_optarg=$2
6610 ac_shift=shift
6611 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006612 esac
6613
6614 case $ac_option in
6615 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00006616 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6617 ac_cs_recheck=: ;;
jfigusc7e66e32013-05-08 11:32:55 -04006618 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6619 $as_echo "$ac_cs_version"; exit ;;
6620 --config | --confi | --conf | --con | --co | --c )
6621 $as_echo "$ac_cs_config"; exit ;;
6622 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00006623 debug=: ;;
6624 --file | --fil | --fi | --f )
6625 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04006626 case $ac_optarg in
6627 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6628 '') as_fn_error $? "missing file argument" ;;
6629 esac
6630 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006631 ac_need_defaults=false;;
6632 --header | --heade | --head | --hea )
6633 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04006634 case $ac_optarg in
6635 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6636 esac
6637 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006638 ac_need_defaults=false;;
jfigusc7e66e32013-05-08 11:32:55 -04006639 --he | --h)
6640 # Conflict between --help and --header
6641 as_fn_error $? "ambiguous option: \`$1'
6642Try \`$0 --help' for more information.";;
6643 --help | --hel | -h )
6644 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006645 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6646 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6647 ac_cs_silent=: ;;
6648
6649 # This is an error.
jfigusc7e66e32013-05-08 11:32:55 -04006650 -*) as_fn_error $? "unrecognized option: \`$1'
6651Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006652
jfigusc7e66e32013-05-08 11:32:55 -04006653 *) as_fn_append ac_config_targets " $1"
6654 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006655
6656 esac
6657 shift
6658done
6659
6660ac_configure_extra_args=
6661
6662if $ac_cs_silent; then
6663 exec 6>/dev/null
6664 ac_configure_extra_args="$ac_configure_extra_args --silent"
6665fi
6666
6667_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006669if \$ac_cs_recheck; then
jfigusc7e66e32013-05-08 11:32:55 -04006670 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6671 shift
6672 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6673 CONFIG_SHELL='$SHELL'
6674 export CONFIG_SHELL
6675 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00006676fi
6677
6678_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6680exec 5>>config.log
6681{
6682 echo
6683 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6684## Running $as_me. ##
6685_ASBOX
6686 $as_echo "$ac_log"
6687} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00006688
jfigusc7e66e32013-05-08 11:32:55 -04006689_ACEOF
6690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6691_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006692
jfigusc7e66e32013-05-08 11:32:55 -04006693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006694
jfigusc7e66e32013-05-08 11:32:55 -04006695# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00006696for ac_config_target in $ac_config_targets
6697do
jfigusc7e66e32013-05-08 11:32:55 -04006698 case $ac_config_target in
6699 "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
jfigusd196e022014-11-20 16:43:44 -05006700 "libsrtp2.pc") CONFIG_FILES="$CONFIG_FILES libsrtp2.pc" ;;
jfigusc7e66e32013-05-08 11:32:55 -04006701 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6702 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
6703 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6704
6705 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006706 esac
6707done
6708
jfigusc7e66e32013-05-08 11:32:55 -04006709
Cullen Jennings235513a2005-09-21 22:51:36 +00006710# If the user did not use the arguments to specify the items to instantiate,
6711# then the envvar interface is used. Set only those that are not.
6712# We use the long form for the default assignment because of an extremely
6713# bizarre bug on SunOS 4.1.3.
6714if $ac_need_defaults; then
6715 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6716 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6717fi
6718
6719# Have a temporary directory for convenience. Make it in the build tree
jfigusc7e66e32013-05-08 11:32:55 -04006720# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00006721# creating and moving files from /tmp can sometimes cause problems.
jfigusc7e66e32013-05-08 11:32:55 -04006722# Hook for its removal unless debugging.
6723# Note that there is a small window in which the directory will not be cleaned:
6724# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00006725$debug ||
6726{
jfigusc7e66e32013-05-08 11:32:55 -04006727 tmp= ac_tmp=
6728 trap 'exit_status=$?
6729 : "${ac_tmp:=$tmp}"
6730 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6731' 0
6732 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00006733}
Cullen Jennings235513a2005-09-21 22:51:36 +00006734# Create a (secure) tmp directory for tmp files.
6735
6736{
jfigusc7e66e32013-05-08 11:32:55 -04006737 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6738 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00006739} ||
6740{
jfigusc7e66e32013-05-08 11:32:55 -04006741 tmp=./conf$$-$RANDOM
6742 (umask 077 && mkdir "$tmp")
6743} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6744ac_tmp=$tmp
6745
6746# Set up the scripts for CONFIG_FILES section.
6747# No need to generate them if there are no CONFIG_FILES.
6748# This happens for instance with `./config.status config.h'.
6749if test -n "$CONFIG_FILES"; then
6750
6751
6752ac_cr=`echo X | tr X '\015'`
6753# On cygwin, bash can eat \r inside `` if the user requested igncr.
6754# But we know of no other shell where ac_cr would be empty at this
6755# point, so we can use a bashism as a fallback.
6756if test "x$ac_cr" = x; then
6757 eval ac_cr=\$\'\\r\'
6758fi
6759ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6760if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6761 ac_cs_awk_cr='\\r'
6762else
6763 ac_cs_awk_cr=$ac_cr
6764fi
6765
6766echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6767_ACEOF
6768
6769
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006770{
jfigusc7e66e32013-05-08 11:32:55 -04006771 echo "cat >conf$$subs.awk <<_ACEOF" &&
6772 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6773 echo "_ACEOF"
6774} >conf$$subs.sh ||
6775 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6776ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6777ac_delim='%!_!# '
6778for ac_last_try in false false false false false :; do
6779 . ./conf$$subs.sh ||
6780 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6781
6782 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6783 if test $ac_delim_n = $ac_delim_num; then
6784 break
6785 elif $ac_last_try; then
6786 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6787 else
6788 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6789 fi
6790done
6791rm -f conf$$subs.sh
6792
6793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6794cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6795_ACEOF
6796sed -n '
6797h
6798s/^/S["/; s/!.*/"]=/
6799p
6800g
6801s/^[^!]*!//
6802:repl
6803t repl
6804s/'"$ac_delim"'$//
6805t delim
6806:nl
6807h
6808s/\(.\{148\}\)..*/\1/
6809t more1
6810s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6811p
6812n
6813b repl
6814:more1
6815s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6816p
6817g
6818s/.\{148\}//
6819t nl
6820:delim
6821h
6822s/\(.\{148\}\)..*/\1/
6823t more2
6824s/["\\]/\\&/g; s/^/"/; s/$/"/
6825p
6826b
6827:more2
6828s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6829p
6830g
6831s/.\{148\}//
6832t delim
6833' <conf$$subs.awk | sed '
6834/^[^""]/{
6835 N
6836 s/\n//
6837}
6838' >>$CONFIG_STATUS || ac_write_fail=1
6839rm -f conf$$subs.awk
6840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6841_ACAWK
6842cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6843 for (key in S) S_is_set[key] = 1
6844 FS = ""
6845
6846}
6847{
6848 line = $ 0
6849 nfields = split(line, field, "@")
6850 substed = 0
6851 len = length(field[1])
6852 for (i = 2; i < nfields; i++) {
6853 key = field[i]
6854 keylen = length(key)
6855 if (S_is_set[key]) {
6856 value = S[key]
6857 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6858 len += length(value) + length(field[++i])
6859 substed = 1
6860 } else
6861 len += 1 + keylen
6862 }
6863
6864 print line
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006865}
jfigusa14b5a02013-03-29 12:24:12 -04006866
jfigusc7e66e32013-05-08 11:32:55 -04006867_ACAWK
6868_ACEOF
6869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6870if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6871 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6872else
6873 cat
6874fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6875 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
jfigusa14b5a02013-03-29 12:24:12 -04006876_ACEOF
6877
jfigusc7e66e32013-05-08 11:32:55 -04006878# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6879# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6880# trailing colons and then remove the whole line if VPATH becomes empty
6881# (actually we leave an empty line to preserve line numbers).
6882if test "x$srcdir" = x.; then
6883 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6884h
6885s///
6886s/^/:/
6887s/[ ]*$/:/
6888s/:\$(srcdir):/:/g
6889s/:\${srcdir}:/:/g
6890s/:@srcdir@:/:/g
6891s/^:*//
6892s/:*$//
6893x
6894s/\(=[ ]*\).*/\1/
6895G
6896s/\n//
6897s/^[^=]*=[ ]*$//
6898}'
6899fi
jfigusa14b5a02013-03-29 12:24:12 -04006900
jfigusc7e66e32013-05-08 11:32:55 -04006901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006902fi # test -n "$CONFIG_FILES"
6903
jfigusc7e66e32013-05-08 11:32:55 -04006904# Set up the scripts for CONFIG_HEADERS section.
6905# No need to generate them if there are no CONFIG_HEADERS.
6906# This happens for instance with `./config.status Makefile'.
6907if test -n "$CONFIG_HEADERS"; then
6908cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6909BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00006910_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006911
6912# Transform confdefs.h into an awk script `defines.awk', embedded as
6913# here-document in config.status, that substitutes the proper values into
6914# config.h.in to produce config.h.
6915
6916# Create a delimiter string that does not exist in confdefs.h, to ease
6917# handling of long lines.
6918ac_delim='%!_!# '
6919for ac_last_try in false false :; do
6920 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6921 if test -z "$ac_tt"; then
6922 break
6923 elif $ac_last_try; then
6924 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6925 else
6926 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6927 fi
6928done
6929
6930# For the awk script, D is an array of macro values keyed by name,
6931# likewise P contains macro parameters if any. Preserve backslash
6932# newline sequences.
6933
6934ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6935sed -n '
6936s/.\{148\}/&'"$ac_delim"'/g
6937t rset
6938:rset
6939s/^[ ]*#[ ]*define[ ][ ]*/ /
6940t def
6941d
6942:def
6943s/\\$//
6944t bsnl
6945s/["\\]/\\&/g
6946s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6947D["\1"]=" \3"/p
6948s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6949d
6950:bsnl
6951s/["\\]/\\&/g
6952s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6953D["\1"]=" \3\\\\\\n"\\/p
6954t cont
6955s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6956t cont
6957d
6958:cont
6959n
6960s/.\{148\}/&'"$ac_delim"'/g
6961t clear
6962:clear
6963s/\\$//
6964t bsnlc
6965s/["\\]/\\&/g; s/^/"/; s/$/"/p
6966d
6967:bsnlc
6968s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6969b cont
6970' <confdefs.h | sed '
6971s/'"$ac_delim"'/"\\\
6972"/g' >>$CONFIG_STATUS || ac_write_fail=1
6973
6974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6975 for (key in D) D_is_set[key] = 1
6976 FS = ""
6977}
6978/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6979 line = \$ 0
6980 split(line, arg, " ")
6981 if (arg[1] == "#") {
6982 defundef = arg[2]
6983 mac1 = arg[3]
6984 } else {
6985 defundef = substr(arg[1], 2)
6986 mac1 = arg[2]
6987 }
6988 split(mac1, mac2, "(") #)
6989 macro = mac2[1]
6990 prefix = substr(line, 1, index(line, defundef) - 1)
6991 if (D_is_set[macro]) {
6992 # Preserve the white space surrounding the "#".
6993 print prefix "define", macro P[macro] D[macro]
6994 next
6995 } else {
6996 # Replace #undef with comments. This is necessary, for example,
6997 # in the case of _POSIX_SOURCE, which is predefined and required
6998 # on some systems where configure will not decide to define it.
6999 if (defundef == "undef") {
7000 print "/*", prefix defundef, macro, "*/"
7001 next
7002 }
7003 }
7004}
7005{ print }
7006_ACAWK
7007_ACEOF
7008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7009 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7010fi # test -n "$CONFIG_HEADERS"
7011
7012
7013eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7014shift
7015for ac_tag
7016do
7017 case $ac_tag in
7018 :[FHLC]) ac_mode=$ac_tag; continue;;
7019 esac
7020 case $ac_mode$ac_tag in
7021 :[FHL]*:*);;
7022 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7023 :[FH]-) ac_tag=-:-;;
7024 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7025 esac
7026 ac_save_IFS=$IFS
7027 IFS=:
7028 set x $ac_tag
7029 IFS=$ac_save_IFS
7030 shift
7031 ac_file=$1
7032 shift
7033
7034 case $ac_mode in
7035 :L) ac_source=$1;;
7036 :[FH])
7037 ac_file_inputs=
7038 for ac_f
7039 do
7040 case $ac_f in
7041 -) ac_f="$ac_tmp/stdin";;
7042 *) # Look for the file first in the build tree, then in the source tree
7043 # (if the path is not absolute). The absolute path cannot be DOS-style,
7044 # because $ac_f cannot contain `:'.
7045 test -f "$ac_f" ||
7046 case $ac_f in
7047 [\\/$]*) false;;
7048 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7049 esac ||
7050 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7051 esac
7052 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7053 as_fn_append ac_file_inputs " '$ac_f'"
7054 done
7055
7056 # Let's still pretend it is `configure' which instantiates (i.e., don't
7057 # use $as_me), people would be surprised to read:
7058 # /* config.h. Generated by config.status. */
7059 configure_input='Generated from '`
7060 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7061 `' by configure.'
7062 if test x"$ac_file" != x-; then
7063 configure_input="$ac_file. $configure_input"
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7065$as_echo "$as_me: creating $ac_file" >&6;}
7066 fi
7067 # Neutralize special characters interpreted by sed in replacement strings.
7068 case $configure_input in #(
7069 *\&* | *\|* | *\\* )
7070 ac_sed_conf_input=`$as_echo "$configure_input" |
7071 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7072 *) ac_sed_conf_input=$configure_input;;
7073 esac
7074
7075 case $ac_tag in
7076 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7077 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7078 esac
7079 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007080 esac
7081
jfigusc7e66e32013-05-08 11:32:55 -04007082 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00007083$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00007084 X"$ac_file" : 'X\(//\)[^/]' \| \
7085 X"$ac_file" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04007086 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7087$as_echo X"$ac_file" |
7088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7089 s//\1/
7090 q
7091 }
7092 /^X\(\/\/\)[^/].*/{
7093 s//\1/
7094 q
7095 }
7096 /^X\(\/\/\)$/{
7097 s//\1/
7098 q
7099 }
7100 /^X\(\/\).*/{
7101 s//\1/
7102 q
7103 }
7104 s/.*/./; q'`
7105 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00007106 ac_builddir=.
7107
jfigusc7e66e32013-05-08 11:32:55 -04007108case "$ac_dir" in
7109.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7110*)
7111 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7112 # A ".." for each directory in $ac_dir_suffix.
7113 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7114 case $ac_top_builddir_sub in
7115 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7116 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7117 esac ;;
7118esac
7119ac_abs_top_builddir=$ac_pwd
7120ac_abs_builddir=$ac_pwd$ac_dir_suffix
7121# for backward compatibility:
7122ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00007123
7124case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04007125 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00007126 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04007127 ac_top_srcdir=$ac_top_builddir_sub
7128 ac_abs_top_srcdir=$ac_pwd ;;
7129 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00007130 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04007131 ac_top_srcdir=$srcdir
7132 ac_abs_top_srcdir=$srcdir ;;
7133 *) # Relative name.
7134 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7135 ac_top_srcdir=$ac_top_build_prefix$srcdir
7136 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007137esac
jfigusc7e66e32013-05-08 11:32:55 -04007138ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00007139
Cullen Jennings235513a2005-09-21 22:51:36 +00007140
jfigusc7e66e32013-05-08 11:32:55 -04007141 case $ac_mode in
7142 :F)
7143 #
7144 # CONFIG_FILE
7145 #
Cullen Jennings235513a2005-09-21 22:51:36 +00007146
David McGrewb67061f2005-09-28 14:23:06 +00007147 case $INSTALL in
7148 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusc7e66e32013-05-08 11:32:55 -04007149 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00007150 esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007151_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007152
7153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7154# If the template does not know about datarootdir, expand it.
7155# FIXME: This hack should be removed a few years after 2.60.
7156ac_datarootdir_hack=; ac_datarootdir_seen=
7157ac_sed_dataroot='
7158/datarootdir/ {
7159 p
7160 q
7161}
7162/@datadir@/p
7163/@docdir@/p
7164/@infodir@/p
7165/@localedir@/p
7166/@mandir@/p'
7167case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7168*datarootdir*) ac_datarootdir_seen=yes;;
7169*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7171$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7172_ACEOF
7173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7174 ac_datarootdir_hack='
7175 s&@datadir@&$datadir&g
7176 s&@docdir@&$docdir&g
7177 s&@infodir@&$infodir&g
7178 s&@localedir@&$localedir&g
7179 s&@mandir@&$mandir&g
7180 s&\\\${datarootdir}&$datarootdir&g' ;;
7181esac
7182_ACEOF
7183
7184# Neutralize VPATH when `$srcdir' = `.'.
7185# Shell code in configure.ac might set extrasub.
7186# FIXME: do we really want to maintain this feature?
7187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7188ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00007189$extrasub
7190_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007192:t
7193/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusc7e66e32013-05-08 11:32:55 -04007194s|@configure_input@|$ac_sed_conf_input|;t t
7195s&@top_builddir@&$ac_top_builddir_sub&;t t
7196s&@top_build_prefix@&$ac_top_build_prefix&;t t
7197s&@srcdir@&$ac_srcdir&;t t
7198s&@abs_srcdir@&$ac_abs_srcdir&;t t
7199s&@top_srcdir@&$ac_top_srcdir&;t t
7200s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7201s&@builddir@&$ac_builddir&;t t
7202s&@abs_builddir@&$ac_abs_builddir&;t t
7203s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7204s&@INSTALL@&$ac_INSTALL&;t t
7205$ac_datarootdir_hack
7206"
7207eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7208 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00007209
jfigusc7e66e32013-05-08 11:32:55 -04007210test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7211 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7212 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7213 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7215which seems to be undefined. Please make sure it is defined" >&5
7216$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7217which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00007218
jfigusc7e66e32013-05-08 11:32:55 -04007219 rm -f "$ac_tmp/stdin"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007220 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04007221 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7222 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7223 esac \
7224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7225 ;;
7226 :H)
7227 #
7228 # CONFIG_HEADER
7229 #
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007230 if test x"$ac_file" != x-; then
jfigusc7e66e32013-05-08 11:32:55 -04007231 {
7232 $as_echo "/* $configure_input */" \
7233 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7234 } >"$ac_tmp/config.h" \
7235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7236 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7238$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007239 else
jfigusc7e66e32013-05-08 11:32:55 -04007240 rm -f "$ac_file"
7241 mv "$ac_tmp/config.h" "$ac_file" \
7242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007243 fi
7244 else
jfigusc7e66e32013-05-08 11:32:55 -04007245 $as_echo "/* $configure_input */" \
7246 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7247 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007248 fi
jfigusc7e66e32013-05-08 11:32:55 -04007249 ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007250
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007251
jfigusc7e66e32013-05-08 11:32:55 -04007252 esac
7253
7254done # for ac_tag
7255
7256
7257as_fn_exit 0
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007258_ACEOF
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007259ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04007260
jfigusc7e66e32013-05-08 11:32:55 -04007261test $ac_write_fail = 0 ||
7262 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7263
Cullen Jennings235513a2005-09-21 22:51:36 +00007264
7265# configure is writing to config.log, and then calls config.status.
7266# config.status does its own redirection, appending to config.log.
7267# Unfortunately, on DOS this fails, as config.log is still kept open
7268# by configure, so config.status won't be able to write to it; its
7269# output is simply discarded. So we exec the FD to /dev/null,
7270# effectively closing config.log, so it can be properly (re)opened and
7271# appended to by config.status. When coming back to configure, we
7272# need to make the FD available again.
7273if test "$no_create" != yes; then
7274 ac_cs_success=:
7275 ac_config_status_args=
7276 test "$silent" = yes &&
7277 ac_config_status_args="$ac_config_status_args --quiet"
7278 exec 5>/dev/null
7279 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7280 exec 5>>config.log
7281 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7282 # would make configure fail if this is the last instruction.
jfigusc7e66e32013-05-08 11:32:55 -04007283 $ac_cs_success || as_fn_exit 1
7284fi
7285if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7287$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00007288fi
7289
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00007290
7291# This is needed when building outside the source dir.
jfigusc7e66e32013-05-08 11:32:55 -04007292as_dir=crypto/cipher; as_fn_mkdir_p
7293as_dir=crypto/hash; as_fn_mkdir_p
7294as_dir=crypto/kernel; as_fn_mkdir_p
7295as_dir=crypto/math; as_fn_mkdir_p
7296as_dir=crypto/replay; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007297as_dir=crypto/test; as_fn_mkdir_p
7298as_dir=doc; as_fn_mkdir_p
7299as_dir=srtp; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007300as_dir=test; as_fn_mkdir_p