blob: 68efa02c58c33c07f1cc8475c13706b92cd677ea [file] [log] [blame]
Cullen Jennings235513a2005-09-21 22:51:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
jfiguse806a662015-03-11 10:02:12 -04003# Generated by GNU Autoconf 2.69 for libsrtp 1.5.2.
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.
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200581PACKAGE_NAME='libsrtp'
582PACKAGE_TARNAME='libsrtp'
jfiguse806a662015-03-11 10:02:12 -0400583PACKAGE_VERSION='1.5.2'
584PACKAGE_STRING='libsrtp 1.5.2'
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
jfigusc7e66e32013-05-08 11:32:55 -0400628GDOI_OBJS
Bernardo Torresb3c51422014-10-14 12:40:09 -0300629HAVE_PCAP
jfigusc7e66e32013-05-08 11:32:55 -0400630HMAC_OBJS
631RNG_EXTRA_OBJS
632RNG_OBJS
633AES_ICM_OBJS
634USE_OPENSSL
635EXE
636host_os
637host_vendor
638host_cpu
639host
640build_os
641build_vendor
642build_cpu
643build
644EGREP
645GREP
646CPP
647INSTALL_DATA
648INSTALL_SCRIPT
649INSTALL_PROGRAM
650OBJEXT
651EXEEXT
652ac_ct_CC
653CPPFLAGS
654LDFLAGS
655CFLAGS
656CC
657RANLIB
658target_alias
659host_alias
660build_alias
661LIBS
662ECHO_T
663ECHO_N
664ECHO_C
665DEFS
666mandir
667localedir
668libdir
669psdir
670pdfdir
671dvidir
672htmldir
673infodir
674docdir
675oldincludedir
676includedir
677localstatedir
678sharedstatedir
679sysconfdir
680datadir
681datarootdir
682libexecdir
683sbindir
684bindir
685program_transform_name
686prefix
687exec_prefix
688PACKAGE_URL
689PACKAGE_BUGREPORT
690PACKAGE_STRING
691PACKAGE_VERSION
692PACKAGE_TARNAME
693PACKAGE_NAME
694PATH_SEPARATOR
695SHELL'
Cullen Jennings235513a2005-09-21 22:51:36 +0000696ac_subst_files=''
jfigusc7e66e32013-05-08 11:32:55 -0400697ac_user_opts='
698enable_option_checking
699enable_kernel_linux
700enable_debug
701enable_generic_aesicm
702enable_openssl
703enable_syslog
704enable_stdout
705enable_console
706enable_gdoi
707'
708 ac_precious_vars='build_alias
709host_alias
710target_alias
711CC
712CFLAGS
713LDFLAGS
714LIBS
715CPPFLAGS
716CPP'
717
Cullen Jennings235513a2005-09-21 22:51:36 +0000718
719# Initialize some variables set by options.
720ac_init_help=
721ac_init_version=false
jfigusc7e66e32013-05-08 11:32:55 -0400722ac_unrecognized_opts=
723ac_unrecognized_sep=
Cullen Jennings235513a2005-09-21 22:51:36 +0000724# The variables have the same names as the options, with
725# dashes changed to underlines.
726cache_file=/dev/null
727exec_prefix=NONE
728no_create=
729no_recursion=
730prefix=NONE
731program_prefix=NONE
732program_suffix=NONE
733program_transform_name=s,x,x,
734silent=
735site=
736srcdir=
737verbose=
738x_includes=NONE
739x_libraries=NONE
740
741# Installation directory options.
742# These are left unexpanded so users can "make install exec_prefix=/foo"
743# and all the variables that are supposed to be based on exec_prefix
744# by default will actually change.
745# Use braces instead of parens because sh, perl, etc. also accept them.
jfigusc7e66e32013-05-08 11:32:55 -0400746# (The list follows the same order as the GNU Coding Standards.)
Cullen Jennings235513a2005-09-21 22:51:36 +0000747bindir='${exec_prefix}/bin'
748sbindir='${exec_prefix}/sbin'
749libexecdir='${exec_prefix}/libexec'
jfigusc7e66e32013-05-08 11:32:55 -0400750datarootdir='${prefix}/share'
751datadir='${datarootdir}'
Cullen Jennings235513a2005-09-21 22:51:36 +0000752sysconfdir='${prefix}/etc'
753sharedstatedir='${prefix}/com'
754localstatedir='${prefix}/var'
Cullen Jennings235513a2005-09-21 22:51:36 +0000755includedir='${prefix}/include'
756oldincludedir='/usr/include'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200757docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
jfigusc7e66e32013-05-08 11:32:55 -0400758infodir='${datarootdir}/info'
759htmldir='${docdir}'
760dvidir='${docdir}'
761pdfdir='${docdir}'
762psdir='${docdir}'
763libdir='${exec_prefix}/lib'
764localedir='${datarootdir}/locale'
765mandir='${datarootdir}/man'
Cullen Jennings235513a2005-09-21 22:51:36 +0000766
767ac_prev=
jfigusc7e66e32013-05-08 11:32:55 -0400768ac_dashdash=
Cullen Jennings235513a2005-09-21 22:51:36 +0000769for ac_option
770do
771 # If the previous option needs an argument, assign it.
772 if test -n "$ac_prev"; then
jfigusc7e66e32013-05-08 11:32:55 -0400773 eval $ac_prev=\$ac_option
Cullen Jennings235513a2005-09-21 22:51:36 +0000774 ac_prev=
775 continue
776 fi
777
jfigusc7e66e32013-05-08 11:32:55 -0400778 case $ac_option in
779 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
780 *=) ac_optarg= ;;
781 *) ac_optarg=yes ;;
782 esac
Cullen Jennings235513a2005-09-21 22:51:36 +0000783
784 # Accept the important Cygnus configure options, so we can diagnose typos.
785
jfigusc7e66e32013-05-08 11:32:55 -0400786 case $ac_dashdash$ac_option in
787 --)
788 ac_dashdash=yes ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000789
790 -bindir | --bindir | --bindi | --bind | --bin | --bi)
791 ac_prev=bindir ;;
792 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
793 bindir=$ac_optarg ;;
794
795 -build | --build | --buil | --bui | --bu)
796 ac_prev=build_alias ;;
797 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
798 build_alias=$ac_optarg ;;
799
800 -cache-file | --cache-file | --cache-fil | --cache-fi \
801 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
802 ac_prev=cache_file ;;
803 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
804 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
805 cache_file=$ac_optarg ;;
806
807 --config-cache | -C)
808 cache_file=config.cache ;;
809
jfigusc7e66e32013-05-08 11:32:55 -0400810 -datadir | --datadir | --datadi | --datad)
Cullen Jennings235513a2005-09-21 22:51:36 +0000811 ac_prev=datadir ;;
jfigusc7e66e32013-05-08 11:32:55 -0400812 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000813 datadir=$ac_optarg ;;
814
jfigusc7e66e32013-05-08 11:32:55 -0400815 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
816 | --dataroo | --dataro | --datar)
817 ac_prev=datarootdir ;;
818 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
819 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
820 datarootdir=$ac_optarg ;;
821
Cullen Jennings235513a2005-09-21 22:51:36 +0000822 -disable-* | --disable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400823 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000824 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400825 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
826 as_fn_error $? "invalid feature name: $ac_useropt"
827 ac_useropt_orig=$ac_useropt
828 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
829 case $ac_user_opts in
830 *"
831"enable_$ac_useropt"
832"*) ;;
833 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
834 ac_unrecognized_sep=', ';;
835 esac
836 eval enable_$ac_useropt=no ;;
837
838 -docdir | --docdir | --docdi | --doc | --do)
839 ac_prev=docdir ;;
840 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
841 docdir=$ac_optarg ;;
842
843 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
844 ac_prev=dvidir ;;
845 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
846 dvidir=$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000847
848 -enable-* | --enable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400849 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000850 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 as_fn_error $? "invalid feature name: $ac_useropt"
853 ac_useropt_orig=$ac_useropt
854 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855 case $ac_user_opts in
856 *"
857"enable_$ac_useropt"
858"*) ;;
859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
860 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000861 esac
jfigusc7e66e32013-05-08 11:32:55 -0400862 eval enable_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000863
864 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
865 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
866 | --exec | --exe | --ex)
867 ac_prev=exec_prefix ;;
868 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
869 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
870 | --exec=* | --exe=* | --ex=*)
871 exec_prefix=$ac_optarg ;;
872
873 -gas | --gas | --ga | --g)
874 # Obsolete; use --with-gas.
875 with_gas=yes ;;
876
877 -help | --help | --hel | --he | -h)
878 ac_init_help=long ;;
879 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
880 ac_init_help=recursive ;;
881 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
882 ac_init_help=short ;;
883
884 -host | --host | --hos | --ho)
885 ac_prev=host_alias ;;
886 -host=* | --host=* | --hos=* | --ho=*)
887 host_alias=$ac_optarg ;;
888
jfigusc7e66e32013-05-08 11:32:55 -0400889 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
890 ac_prev=htmldir ;;
891 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
892 | --ht=*)
893 htmldir=$ac_optarg ;;
894
Cullen Jennings235513a2005-09-21 22:51:36 +0000895 -includedir | --includedir | --includedi | --included | --include \
896 | --includ | --inclu | --incl | --inc)
897 ac_prev=includedir ;;
898 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
899 | --includ=* | --inclu=* | --incl=* | --inc=*)
900 includedir=$ac_optarg ;;
901
902 -infodir | --infodir | --infodi | --infod | --info | --inf)
903 ac_prev=infodir ;;
904 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
905 infodir=$ac_optarg ;;
906
907 -libdir | --libdir | --libdi | --libd)
908 ac_prev=libdir ;;
909 -libdir=* | --libdir=* | --libdi=* | --libd=*)
910 libdir=$ac_optarg ;;
911
912 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
913 | --libexe | --libex | --libe)
914 ac_prev=libexecdir ;;
915 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
916 | --libexe=* | --libex=* | --libe=*)
917 libexecdir=$ac_optarg ;;
918
jfigusc7e66e32013-05-08 11:32:55 -0400919 -localedir | --localedir | --localedi | --localed | --locale)
920 ac_prev=localedir ;;
921 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
922 localedir=$ac_optarg ;;
923
Cullen Jennings235513a2005-09-21 22:51:36 +0000924 -localstatedir | --localstatedir | --localstatedi | --localstated \
jfigusc7e66e32013-05-08 11:32:55 -0400925 | --localstate | --localstat | --localsta | --localst | --locals)
Cullen Jennings235513a2005-09-21 22:51:36 +0000926 ac_prev=localstatedir ;;
927 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
jfigusc7e66e32013-05-08 11:32:55 -0400928 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000929 localstatedir=$ac_optarg ;;
930
931 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
932 ac_prev=mandir ;;
933 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
934 mandir=$ac_optarg ;;
935
936 -nfp | --nfp | --nf)
937 # Obsolete; use --without-fp.
938 with_fp=no ;;
939
940 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
941 | --no-cr | --no-c | -n)
942 no_create=yes ;;
943
944 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
945 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
946 no_recursion=yes ;;
947
948 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
949 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
950 | --oldin | --oldi | --old | --ol | --o)
951 ac_prev=oldincludedir ;;
952 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
953 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
954 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
955 oldincludedir=$ac_optarg ;;
956
957 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
958 ac_prev=prefix ;;
959 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
960 prefix=$ac_optarg ;;
961
962 -program-prefix | --program-prefix | --program-prefi | --program-pref \
963 | --program-pre | --program-pr | --program-p)
964 ac_prev=program_prefix ;;
965 -program-prefix=* | --program-prefix=* | --program-prefi=* \
966 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
967 program_prefix=$ac_optarg ;;
968
969 -program-suffix | --program-suffix | --program-suffi | --program-suff \
970 | --program-suf | --program-su | --program-s)
971 ac_prev=program_suffix ;;
972 -program-suffix=* | --program-suffix=* | --program-suffi=* \
973 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
974 program_suffix=$ac_optarg ;;
975
976 -program-transform-name | --program-transform-name \
977 | --program-transform-nam | --program-transform-na \
978 | --program-transform-n | --program-transform- \
979 | --program-transform | --program-transfor \
980 | --program-transfo | --program-transf \
981 | --program-trans | --program-tran \
982 | --progr-tra | --program-tr | --program-t)
983 ac_prev=program_transform_name ;;
984 -program-transform-name=* | --program-transform-name=* \
985 | --program-transform-nam=* | --program-transform-na=* \
986 | --program-transform-n=* | --program-transform-=* \
987 | --program-transform=* | --program-transfor=* \
988 | --program-transfo=* | --program-transf=* \
989 | --program-trans=* | --program-tran=* \
990 | --progr-tra=* | --program-tr=* | --program-t=*)
991 program_transform_name=$ac_optarg ;;
992
jfigusc7e66e32013-05-08 11:32:55 -0400993 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
994 ac_prev=pdfdir ;;
995 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
996 pdfdir=$ac_optarg ;;
997
998 -psdir | --psdir | --psdi | --psd | --ps)
999 ac_prev=psdir ;;
1000 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1001 psdir=$ac_optarg ;;
1002
Cullen Jennings235513a2005-09-21 22:51:36 +00001003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1004 | -silent | --silent | --silen | --sile | --sil)
1005 silent=yes ;;
1006
1007 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1008 ac_prev=sbindir ;;
1009 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1010 | --sbi=* | --sb=*)
1011 sbindir=$ac_optarg ;;
1012
1013 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1014 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1015 | --sharedst | --shareds | --shared | --share | --shar \
1016 | --sha | --sh)
1017 ac_prev=sharedstatedir ;;
1018 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1019 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1020 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1021 | --sha=* | --sh=*)
1022 sharedstatedir=$ac_optarg ;;
1023
1024 -site | --site | --sit)
1025 ac_prev=site ;;
1026 -site=* | --site=* | --sit=*)
1027 site=$ac_optarg ;;
1028
1029 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1030 ac_prev=srcdir ;;
1031 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1032 srcdir=$ac_optarg ;;
1033
1034 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1035 | --syscon | --sysco | --sysc | --sys | --sy)
1036 ac_prev=sysconfdir ;;
1037 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1038 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1039 sysconfdir=$ac_optarg ;;
1040
1041 -target | --target | --targe | --targ | --tar | --ta | --t)
1042 ac_prev=target_alias ;;
1043 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1044 target_alias=$ac_optarg ;;
1045
1046 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1047 verbose=yes ;;
1048
1049 -version | --version | --versio | --versi | --vers | -V)
1050 ac_init_version=: ;;
1051
1052 -with-* | --with-*)
jfigusc7e66e32013-05-08 11:32:55 -04001053 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001054 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error $? "invalid package name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1060 *"
1061"with_$ac_useropt"
1062"*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +00001065 esac
jfigusc7e66e32013-05-08 11:32:55 -04001066 eval with_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001067
1068 -without-* | --without-*)
jfigusc7e66e32013-05-08 11:32:55 -04001069 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001070 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error $? "invalid package name: $ac_useropt"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1076 *"
1077"with_$ac_useropt"
1078"*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1081 esac
1082 eval with_$ac_useropt=no ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001083
1084 --x)
1085 # Obsolete; use --with-x.
1086 with_x=yes ;;
1087
1088 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1089 | --x-incl | --x-inc | --x-in | --x-i)
1090 ac_prev=x_includes ;;
1091 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1092 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1093 x_includes=$ac_optarg ;;
1094
1095 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1096 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1097 ac_prev=x_libraries ;;
1098 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1099 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1100 x_libraries=$ac_optarg ;;
1101
jfigusc7e66e32013-05-08 11:32:55 -04001102 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1103Try \`$0 --help' for more information"
Cullen Jennings235513a2005-09-21 22:51:36 +00001104 ;;
1105
1106 *=*)
1107 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001109 case $ac_envvar in #(
1110 '' | [0-9]* | *[!_$as_cr_alnum]* )
1111 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1112 esac
1113 eval $ac_envvar=\$ac_optarg
Cullen Jennings235513a2005-09-21 22:51:36 +00001114 export $ac_envvar ;;
1115
1116 *)
1117 # FIXME: should be removed in autoconf 3.0.
jfigusc7e66e32013-05-08 11:32:55 -04001118 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Cullen Jennings235513a2005-09-21 22:51:36 +00001119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jfigusc7e66e32013-05-08 11:32:55 -04001120 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Cullen Jennings235513a2005-09-21 22:51:36 +00001122 ;;
1123
1124 esac
1125done
1126
1127if test -n "$ac_prev"; then
1128 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jfigusc7e66e32013-05-08 11:32:55 -04001129 as_fn_error $? "missing argument to $ac_option"
Cullen Jennings235513a2005-09-21 22:51:36 +00001130fi
1131
jfigusc7e66e32013-05-08 11:32:55 -04001132if test -n "$ac_unrecognized_opts"; then
1133 case $enable_option_checking in
1134 no) ;;
1135 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1136 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001137 esac
jfigusc7e66e32013-05-08 11:32:55 -04001138fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001139
jfigusc7e66e32013-05-08 11:32:55 -04001140# Check all directory arguments for consistency.
1141for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1142 datadir sysconfdir sharedstatedir localstatedir includedir \
1143 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1144 libdir localedir mandir
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001145do
jfigusc7e66e32013-05-08 11:32:55 -04001146 eval ac_val=\$$ac_var
1147 # Remove trailing slashes.
jfigusa14b5a02013-03-29 12:24:12 -04001148 case $ac_val in
jfigusc7e66e32013-05-08 11:32:55 -04001149 */ )
1150 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1151 eval $ac_var=\$ac_val;;
jfigusa14b5a02013-03-29 12:24:12 -04001152 esac
jfigusc7e66e32013-05-08 11:32:55 -04001153 # Be sure to have absolute directory names.
1154 case $ac_val in
1155 [\\/$]* | ?:[\\/]* ) continue;;
1156 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1157 esac
1158 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Cullen Jennings235513a2005-09-21 22:51:36 +00001159done
1160
1161# There might be people who depend on the old broken behavior: `$host'
1162# used to hold the argument of --host etc.
1163# FIXME: To remove some day.
1164build=$build_alias
1165host=$host_alias
1166target=$target_alias
1167
1168# FIXME: To remove some day.
1169if test "x$host_alias" != x; then
1170 if test "x$build_alias" = x; then
1171 cross_compiling=maybe
Cullen Jennings235513a2005-09-21 22:51:36 +00001172 elif test "x$build_alias" != "x$host_alias"; then
1173 cross_compiling=yes
1174 fi
1175fi
1176
1177ac_tool_prefix=
1178test -n "$host_alias" && ac_tool_prefix=$host_alias-
1179
1180test "$silent" = yes && exec 6>/dev/null
1181
1182
jfigusc7e66e32013-05-08 11:32:55 -04001183ac_pwd=`pwd` && test -n "$ac_pwd" &&
1184ac_ls_di=`ls -di .` &&
1185ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1186 as_fn_error $? "working directory cannot be determined"
1187test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1188 as_fn_error $? "pwd does not report name of working directory"
1189
1190
Cullen Jennings235513a2005-09-21 22:51:36 +00001191# Find the source files, if location was not specified.
1192if test -z "$srcdir"; then
1193 ac_srcdir_defaulted=yes
jfigusc7e66e32013-05-08 11:32:55 -04001194 # Try the directory containing this script, then the parent directory.
1195 ac_confdir=`$as_dirname -- "$as_myself" ||
1196$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1197 X"$as_myself" : 'X\(//\)[^/]' \| \
1198 X"$as_myself" : 'X\(//\)$' \| \
1199 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1200$as_echo X"$as_myself" |
1201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1202 s//\1/
1203 q
1204 }
1205 /^X\(\/\/\)[^/].*/{
1206 s//\1/
1207 q
1208 }
1209 /^X\(\/\/\)$/{
1210 s//\1/
1211 q
1212 }
1213 /^X\(\/\).*/{
1214 s//\1/
1215 q
1216 }
1217 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001218 srcdir=$ac_confdir
jfigusc7e66e32013-05-08 11:32:55 -04001219 if test ! -r "$srcdir/$ac_unique_file"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00001220 srcdir=..
1221 fi
1222else
1223 ac_srcdir_defaulted=no
1224fi
jfigusc7e66e32013-05-08 11:32:55 -04001225if test ! -r "$srcdir/$ac_unique_file"; then
1226 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1227 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Cullen Jennings235513a2005-09-21 22:51:36 +00001228fi
jfigusc7e66e32013-05-08 11:32:55 -04001229ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1230ac_abs_confdir=`(
1231 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1232 pwd)`
1233# When building in place, set srcdir=.
1234if test "$ac_abs_confdir" = "$ac_pwd"; then
1235 srcdir=.
1236fi
1237# Remove unnecessary trailing slashes from srcdir.
1238# Double slashes in file names in object file debugging info
1239# mess up M-x gdb in Emacs.
1240case $srcdir in
1241*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1242esac
1243for ac_var in $ac_precious_vars; do
1244 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1245 eval ac_env_${ac_var}_value=\$${ac_var}
1246 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1248done
Cullen Jennings235513a2005-09-21 22:51:36 +00001249
1250#
1251# Report the --help message.
1252#
1253if test "$ac_init_help" = "long"; then
1254 # Omit some internal or obsolete options to make the list less imposing.
1255 # This message is too long to be a string in the A/UX 3.1 sh.
1256 cat <<_ACEOF
jfiguse806a662015-03-11 10:02:12 -04001257\`configure' configures libsrtp 1.5.2 to adapt to many kinds of systems.
Cullen Jennings235513a2005-09-21 22:51:36 +00001258
1259Usage: $0 [OPTION]... [VAR=VALUE]...
1260
1261To assign environment variables (e.g., CC, CFLAGS...), specify them as
1262VAR=VALUE. See below for descriptions of some of the useful variables.
1263
1264Defaults for the options are specified in brackets.
1265
1266Configuration:
1267 -h, --help display this help and exit
1268 --help=short display options specific to this package
1269 --help=recursive display the short help of all the included packages
1270 -V, --version display version information and exit
jfigusc7e66e32013-05-08 11:32:55 -04001271 -q, --quiet, --silent do not print \`checking ...' messages
Cullen Jennings235513a2005-09-21 22:51:36 +00001272 --cache-file=FILE cache test results in FILE [disabled]
1273 -C, --config-cache alias for \`--cache-file=config.cache'
1274 -n, --no-create do not create output files
1275 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1276
Cullen Jennings235513a2005-09-21 22:51:36 +00001277Installation directories:
1278 --prefix=PREFIX install architecture-independent files in PREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001279 [$ac_default_prefix]
Cullen Jennings235513a2005-09-21 22:51:36 +00001280 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001281 [PREFIX]
Cullen Jennings235513a2005-09-21 22:51:36 +00001282
1283By default, \`make install' will install all the files in
1284\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1285an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1286for instance \`--prefix=\$HOME'.
1287
1288For better control, use the options below.
1289
1290Fine tuning of the installation directories:
jfigusc7e66e32013-05-08 11:32:55 -04001291 --bindir=DIR user executables [EPREFIX/bin]
1292 --sbindir=DIR system admin executables [EPREFIX/sbin]
1293 --libexecdir=DIR program executables [EPREFIX/libexec]
1294 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1295 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1296 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1297 --libdir=DIR object code libraries [EPREFIX/lib]
1298 --includedir=DIR C header files [PREFIX/include]
1299 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1300 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1301 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1302 --infodir=DIR info documentation [DATAROOTDIR/info]
1303 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1304 --mandir=DIR man documentation [DATAROOTDIR/man]
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001305 --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp]
jfigusc7e66e32013-05-08 11:32:55 -04001306 --htmldir=DIR html documentation [DOCDIR]
1307 --dvidir=DIR dvi documentation [DOCDIR]
1308 --pdfdir=DIR pdf documentation [DOCDIR]
1309 --psdir=DIR ps documentation [DOCDIR]
Cullen Jennings235513a2005-09-21 22:51:36 +00001310_ACEOF
1311
1312 cat <<\_ACEOF
1313
1314System types:
1315 --build=BUILD configure for building on BUILD [guessed]
1316 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1317_ACEOF
1318fi
1319
1320if test -n "$ac_init_help"; then
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001321 case $ac_init_help in
jfiguse806a662015-03-11 10:02:12 -04001322 short | recursive ) echo "Configuration of libsrtp 1.5.2:";;
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001323 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00001324 cat <<\_ACEOF
1325
1326Optional Features:
jfigusc7e66e32013-05-08 11:32:55 -04001327 --disable-option-checking ignore unrecognized --enable/--with options
Cullen Jennings235513a2005-09-21 22:51:36 +00001328 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1329 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Marcus Sundberg64536cc2005-10-03 15:23:13 +00001330 --enable-kernel-linux build library to run in Linux kernel context
David McGrewb67061f2005-09-28 14:23:06 +00001331 --disable-debug do not compile in dynamic debugging system
1332 --enable-generic-aesicm compile in changes for ISMAcryp
jfigusc7e66e32013-05-08 11:32:55 -04001333 --enable-openssl compile in OpenSSL crypto engine
David McGrewb67061f2005-09-28 14:23:06 +00001334 --enable-syslog use syslog for error reporting
1335 --disable-stdout don't use stdout for error reporting
1336 --enable-console use /dev/console for error reporting
1337 --enable-gdoi enable GDOI key management
Cullen Jennings235513a2005-09-21 22:51:36 +00001338
1339Some influential environment variables:
1340 CC C compiler command
1341 CFLAGS C compiler flags
1342 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1343 nonstandard directory <lib dir>
jfigusc7e66e32013-05-08 11:32:55 -04001344 LIBS libraries to pass to the linker, e.g. -l<library>
1345 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1346 you have headers in a nonstandard directory <include dir>
Cullen Jennings235513a2005-09-21 22:51:36 +00001347 CPP C preprocessor
1348
1349Use these variables to override the choices made by `configure' or to help
1350it to find libraries and programs with nonstandard names/locations.
1351
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001352Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00001353_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001354ac_status=$?
Cullen Jennings235513a2005-09-21 22:51:36 +00001355fi
1356
1357if test "$ac_init_help" = "recursive"; then
1358 # If there are subdirs, report their specific --help.
Cullen Jennings235513a2005-09-21 22:51:36 +00001359 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jfigusc7e66e32013-05-08 11:32:55 -04001360 test -d "$ac_dir" ||
1361 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1362 continue
Cullen Jennings235513a2005-09-21 22:51:36 +00001363 ac_builddir=.
1364
jfigusc7e66e32013-05-08 11:32:55 -04001365case "$ac_dir" in
1366.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1367*)
1368 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1369 # A ".." for each directory in $ac_dir_suffix.
1370 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1371 case $ac_top_builddir_sub in
1372 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1373 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1374 esac ;;
1375esac
1376ac_abs_top_builddir=$ac_pwd
1377ac_abs_builddir=$ac_pwd$ac_dir_suffix
1378# for backward compatibility:
1379ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00001380
1381case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04001382 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00001383 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04001384 ac_top_srcdir=$ac_top_builddir_sub
1385 ac_abs_top_srcdir=$ac_pwd ;;
1386 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001387 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04001388 ac_top_srcdir=$srcdir
1389 ac_abs_top_srcdir=$srcdir ;;
1390 *) # Relative name.
1391 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1392 ac_top_srcdir=$ac_top_build_prefix$srcdir
1393 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001394esac
jfigusc7e66e32013-05-08 11:32:55 -04001395ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001396
jfigusc7e66e32013-05-08 11:32:55 -04001397 cd "$ac_dir" || { ac_status=$?; continue; }
1398 # Check for guested configure.
1399 if test -f "$ac_srcdir/configure.gnu"; then
1400 echo &&
1401 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1402 elif test -f "$ac_srcdir/configure"; then
1403 echo &&
1404 $SHELL "$ac_srcdir/configure" --help=recursive
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001405 else
jfigusc7e66e32013-05-08 11:32:55 -04001406 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1407 fi || ac_status=$?
1408 cd "$ac_pwd" || { ac_status=$?; break; }
Cullen Jennings235513a2005-09-21 22:51:36 +00001409 done
1410fi
1411
jfigusc7e66e32013-05-08 11:32:55 -04001412test -n "$ac_init_help" && exit $ac_status
Cullen Jennings235513a2005-09-21 22:51:36 +00001413if $ac_init_version; then
1414 cat <<\_ACEOF
jfiguse806a662015-03-11 10:02:12 -04001415libsrtp configure 1.5.2
jfigusc7e66e32013-05-08 11:32:55 -04001416generated by GNU Autoconf 2.69
Cullen Jennings235513a2005-09-21 22:51:36 +00001417
jfigusc7e66e32013-05-08 11:32:55 -04001418Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00001419This configure script is free software; the Free Software Foundation
1420gives unlimited permission to copy, distribute and modify it.
1421_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001422 exit
Cullen Jennings235513a2005-09-21 22:51:36 +00001423fi
jfigusc7e66e32013-05-08 11:32:55 -04001424
1425## ------------------------ ##
1426## Autoconf initialization. ##
1427## ------------------------ ##
1428
1429# ac_fn_c_try_compile LINENO
1430# --------------------------
1431# Try to compile conftest.$ac_ext, and return whether this succeeded.
1432ac_fn_c_try_compile ()
1433{
1434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1435 rm -f conftest.$ac_objext
1436 if { { ac_try="$ac_compile"
1437case "(($ac_try" in
1438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1439 *) ac_try_echo=$ac_try;;
1440esac
1441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1442$as_echo "$ac_try_echo"; } >&5
1443 (eval "$ac_compile") 2>conftest.err
1444 ac_status=$?
1445 if test -s conftest.err; then
1446 grep -v '^ *+' conftest.err >conftest.er1
1447 cat conftest.er1 >&5
1448 mv -f conftest.er1 conftest.err
1449 fi
1450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1451 test $ac_status = 0; } && {
1452 test -z "$ac_c_werror_flag" ||
1453 test ! -s conftest.err
1454 } && test -s conftest.$ac_objext; then :
1455 ac_retval=0
1456else
1457 $as_echo "$as_me: failed program was:" >&5
1458sed 's/^/| /' conftest.$ac_ext >&5
1459
1460 ac_retval=1
1461fi
1462 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1463 as_fn_set_status $ac_retval
1464
1465} # ac_fn_c_try_compile
1466
1467# ac_fn_c_try_run LINENO
1468# ----------------------
1469# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1470# that executables *can* be run.
1471ac_fn_c_try_run ()
1472{
1473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474 if { { ac_try="$ac_link"
1475case "(($ac_try" in
1476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1477 *) ac_try_echo=$ac_try;;
1478esac
1479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1480$as_echo "$ac_try_echo"; } >&5
1481 (eval "$ac_link") 2>&5
1482 ac_status=$?
1483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1484 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1485 { { case "(($ac_try" in
1486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487 *) ac_try_echo=$ac_try;;
1488esac
1489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490$as_echo "$ac_try_echo"; } >&5
1491 (eval "$ac_try") 2>&5
1492 ac_status=$?
1493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1494 test $ac_status = 0; }; }; then :
1495 ac_retval=0
1496else
1497 $as_echo "$as_me: program exited with status $ac_status" >&5
1498 $as_echo "$as_me: failed program was:" >&5
1499sed 's/^/| /' conftest.$ac_ext >&5
1500
1501 ac_retval=$ac_status
1502fi
1503 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1504 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1505 as_fn_set_status $ac_retval
1506
1507} # ac_fn_c_try_run
1508
1509# ac_fn_c_try_cpp LINENO
1510# ----------------------
1511# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1512ac_fn_c_try_cpp ()
1513{
1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515 if { { ac_try="$ac_cpp conftest.$ac_ext"
1516case "(($ac_try" in
1517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518 *) ac_try_echo=$ac_try;;
1519esac
1520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521$as_echo "$ac_try_echo"; } >&5
1522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1523 ac_status=$?
1524 if test -s conftest.err; then
1525 grep -v '^ *+' conftest.err >conftest.er1
1526 cat conftest.er1 >&5
1527 mv -f conftest.er1 conftest.err
1528 fi
1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530 test $ac_status = 0; } > conftest.i && {
1531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1532 test ! -s conftest.err
1533 }; then :
1534 ac_retval=0
1535else
1536 $as_echo "$as_me: failed program was:" >&5
1537sed 's/^/| /' conftest.$ac_ext >&5
1538
1539 ac_retval=1
1540fi
1541 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1542 as_fn_set_status $ac_retval
1543
1544} # ac_fn_c_try_cpp
1545
1546# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1547# -------------------------------------------------------
1548# Tests whether HEADER exists and can be compiled using the include files in
1549# INCLUDES, setting the cache variable VAR accordingly.
1550ac_fn_c_check_header_compile ()
1551{
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1554$as_echo_n "checking for $2... " >&6; }
1555if eval \${$3+:} false; then :
1556 $as_echo_n "(cached) " >&6
1557else
1558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1559/* end confdefs.h. */
1560$4
1561#include <$2>
1562_ACEOF
1563if ac_fn_c_try_compile "$LINENO"; then :
1564 eval "$3=yes"
1565else
1566 eval "$3=no"
1567fi
1568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1569fi
1570eval ac_res=\$$3
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1572$as_echo "$ac_res" >&6; }
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574
1575} # ac_fn_c_check_header_compile
1576
1577# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1578# -------------------------------------------------------
1579# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1580# the include files in INCLUDES and setting the cache variable VAR
1581# accordingly.
1582ac_fn_c_check_header_mongrel ()
1583{
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 if eval \${$3+:} false; then :
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1587$as_echo_n "checking for $2... " >&6; }
1588if eval \${$3+:} false; then :
1589 $as_echo_n "(cached) " >&6
1590fi
1591eval ac_res=\$$3
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1593$as_echo "$ac_res" >&6; }
1594else
1595 # Is the header compilable?
1596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1597$as_echo_n "checking $2 usability... " >&6; }
1598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1599/* end confdefs.h. */
1600$4
1601#include <$2>
1602_ACEOF
1603if ac_fn_c_try_compile "$LINENO"; then :
1604 ac_header_compiler=yes
1605else
1606 ac_header_compiler=no
1607fi
1608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1610$as_echo "$ac_header_compiler" >&6; }
1611
1612# Is the header present?
1613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1614$as_echo_n "checking $2 presence... " >&6; }
1615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616/* end confdefs.h. */
1617#include <$2>
1618_ACEOF
1619if ac_fn_c_try_cpp "$LINENO"; then :
1620 ac_header_preproc=yes
1621else
1622 ac_header_preproc=no
1623fi
1624rm -f conftest.err conftest.i conftest.$ac_ext
1625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1626$as_echo "$ac_header_preproc" >&6; }
1627
1628# So? What about this header?
1629case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1630 yes:no: )
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1632$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1634$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1635 ;;
1636 no:yes:* )
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1638$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1640$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1642$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1644$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1646$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001647( $as_echo "## ------------------------------------------------------ ##
1648## Report this to https://github.com/cisco/libsrtp/issues ##
1649## ------------------------------------------------------ ##"
1650 ) | sed "s/^/$as_me: WARNING: /" >&2
jfigusc7e66e32013-05-08 11:32:55 -04001651 ;;
1652esac
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654$as_echo_n "checking for $2... " >&6; }
1655if eval \${$3+:} false; then :
1656 $as_echo_n "(cached) " >&6
1657else
1658 eval "$3=\$ac_header_compiler"
1659fi
1660eval ac_res=\$$3
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662$as_echo "$ac_res" >&6; }
1663fi
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665
1666} # ac_fn_c_check_header_mongrel
1667
1668# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1669# -------------------------------------------
1670# Tests whether TYPE exists after having included INCLUDES, setting cache
1671# variable VAR accordingly.
1672ac_fn_c_check_type ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676$as_echo_n "checking for $2... " >&6; }
1677if eval \${$3+:} false; then :
1678 $as_echo_n "(cached) " >&6
1679else
1680 eval "$3=no"
1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682/* end confdefs.h. */
1683$4
1684int
1685main ()
1686{
1687if (sizeof ($2))
1688 return 0;
1689 ;
1690 return 0;
1691}
1692_ACEOF
1693if ac_fn_c_try_compile "$LINENO"; then :
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695/* end confdefs.h. */
1696$4
1697int
1698main ()
1699{
1700if (sizeof (($2)))
1701 return 0;
1702 ;
1703 return 0;
1704}
1705_ACEOF
1706if ac_fn_c_try_compile "$LINENO"; then :
1707
1708else
1709 eval "$3=yes"
1710fi
1711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712fi
1713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1714fi
1715eval ac_res=\$$3
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717$as_echo "$ac_res" >&6; }
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719
1720} # ac_fn_c_check_type
1721
1722# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1723# --------------------------------------------
1724# Tries to find the compile-time value of EXPR in a program that includes
1725# INCLUDES, setting VAR accordingly. Returns whether the value could be
1726# computed
1727ac_fn_c_compute_int ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if test "$cross_compiling" = yes; then
1731 # Depending upon the size, compute the lo and hi bounds.
1732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733/* end confdefs.h. */
1734$4
1735int
1736main ()
1737{
1738static int test_array [1 - 2 * !(($2) >= 0)];
1739test_array [0] = 0;
1740return test_array [0];
1741
1742 ;
1743 return 0;
1744}
1745_ACEOF
1746if ac_fn_c_try_compile "$LINENO"; then :
1747 ac_lo=0 ac_mid=0
1748 while :; do
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750/* end confdefs.h. */
1751$4
1752int
1753main ()
1754{
1755static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1756test_array [0] = 0;
1757return test_array [0];
1758
1759 ;
1760 return 0;
1761}
1762_ACEOF
1763if ac_fn_c_try_compile "$LINENO"; then :
1764 ac_hi=$ac_mid; break
1765else
1766 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1767 if test $ac_lo -le $ac_mid; then
1768 ac_lo= ac_hi=
1769 break
1770 fi
1771 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1772fi
1773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 done
1775else
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777/* end confdefs.h. */
1778$4
1779int
1780main ()
1781{
1782static int test_array [1 - 2 * !(($2) < 0)];
1783test_array [0] = 0;
1784return test_array [0];
1785
1786 ;
1787 return 0;
1788}
1789_ACEOF
1790if ac_fn_c_try_compile "$LINENO"; then :
1791 ac_hi=-1 ac_mid=-1
1792 while :; do
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794/* end confdefs.h. */
1795$4
1796int
1797main ()
1798{
1799static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1800test_array [0] = 0;
1801return test_array [0];
1802
1803 ;
1804 return 0;
1805}
1806_ACEOF
1807if ac_fn_c_try_compile "$LINENO"; then :
1808 ac_lo=$ac_mid; break
1809else
1810 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1811 if test $ac_mid -le $ac_hi; then
1812 ac_lo= ac_hi=
1813 break
1814 fi
1815 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1816fi
1817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 done
1819else
1820 ac_lo= ac_hi=
1821fi
1822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823fi
1824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825# Binary search between lo and hi bounds.
1826while test "x$ac_lo" != "x$ac_hi"; do
1827 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h. */
1830$4
1831int
1832main ()
1833{
1834static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1835test_array [0] = 0;
1836return test_array [0];
1837
1838 ;
1839 return 0;
1840}
1841_ACEOF
1842if ac_fn_c_try_compile "$LINENO"; then :
1843 ac_hi=$ac_mid
1844else
1845 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1846fi
1847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1848done
1849case $ac_lo in #((
1850?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1851'') ac_retval=1 ;;
1852esac
1853 else
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855/* end confdefs.h. */
1856$4
1857static long int longval () { return $2; }
1858static unsigned long int ulongval () { return $2; }
1859#include <stdio.h>
1860#include <stdlib.h>
1861int
1862main ()
1863{
1864
1865 FILE *f = fopen ("conftest.val", "w");
1866 if (! f)
1867 return 1;
1868 if (($2) < 0)
1869 {
1870 long int i = longval ();
1871 if (i != ($2))
1872 return 1;
1873 fprintf (f, "%ld", i);
1874 }
1875 else
1876 {
1877 unsigned long int i = ulongval ();
1878 if (i != ($2))
1879 return 1;
1880 fprintf (f, "%lu", i);
1881 }
1882 /* Do not output a trailing newline, as this causes \r\n confusion
1883 on some platforms. */
1884 return ferror (f) || fclose (f) != 0;
1885
1886 ;
1887 return 0;
1888}
1889_ACEOF
1890if ac_fn_c_try_run "$LINENO"; then :
1891 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1892else
1893 ac_retval=1
1894fi
1895rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1896 conftest.$ac_objext conftest.beam conftest.$ac_ext
1897rm -f conftest.val
1898
1899 fi
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 as_fn_set_status $ac_retval
1902
1903} # ac_fn_c_compute_int
1904
1905# ac_fn_c_try_link LINENO
1906# -----------------------
1907# Try to link conftest.$ac_ext, and return whether this succeeded.
1908ac_fn_c_try_link ()
1909{
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 rm -f conftest.$ac_objext conftest$ac_exeext
1912 if { { ac_try="$ac_link"
1913case "(($ac_try" in
1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915 *) ac_try_echo=$ac_try;;
1916esac
1917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918$as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_link") 2>conftest.err
1920 ac_status=$?
1921 if test -s conftest.err; then
1922 grep -v '^ *+' conftest.err >conftest.er1
1923 cat conftest.er1 >&5
1924 mv -f conftest.er1 conftest.err
1925 fi
1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927 test $ac_status = 0; } && {
1928 test -z "$ac_c_werror_flag" ||
1929 test ! -s conftest.err
1930 } && test -s conftest$ac_exeext && {
1931 test "$cross_compiling" = yes ||
1932 test -x conftest$ac_exeext
1933 }; then :
1934 ac_retval=0
1935else
1936 $as_echo "$as_me: failed program was:" >&5
1937sed 's/^/| /' conftest.$ac_ext >&5
1938
1939 ac_retval=1
1940fi
1941 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1942 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1943 # interfere with the next link command; also delete a directory that is
1944 # left behind by Apple's compiler. We do this before executing the actions.
1945 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947 as_fn_set_status $ac_retval
1948
1949} # ac_fn_c_try_link
1950
1951# ac_fn_c_check_func LINENO FUNC VAR
1952# ----------------------------------
1953# Tests whether FUNC exists, setting the cache variable VAR accordingly
1954ac_fn_c_check_func ()
1955{
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958$as_echo_n "checking for $2... " >&6; }
1959if eval \${$3+:} false; then :
1960 $as_echo_n "(cached) " >&6
1961else
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963/* end confdefs.h. */
1964/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1966#define $2 innocuous_$2
1967
1968/* System header to define __stub macros and hopefully few prototypes,
1969 which can conflict with char $2 (); below.
1970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1971 <limits.h> exists even on freestanding compilers. */
1972
1973#ifdef __STDC__
1974# include <limits.h>
1975#else
1976# include <assert.h>
1977#endif
1978
1979#undef $2
1980
1981/* Override any GCC internal prototype to avoid an error.
1982 Use char because int might match the return type of a GCC
1983 builtin and then its argument prototype would still apply. */
1984#ifdef __cplusplus
1985extern "C"
1986#endif
1987char $2 ();
1988/* The GNU C library defines this for functions which it implements
1989 to always fail with ENOSYS. Some functions are actually named
1990 something starting with __ and the normal name is an alias. */
1991#if defined __stub_$2 || defined __stub___$2
1992choke me
1993#endif
1994
1995int
1996main ()
1997{
1998return $2 ();
1999 ;
2000 return 0;
2001}
2002_ACEOF
2003if ac_fn_c_try_link "$LINENO"; then :
2004 eval "$3=yes"
2005else
2006 eval "$3=no"
2007fi
2008rm -f core conftest.err conftest.$ac_objext \
2009 conftest$ac_exeext conftest.$ac_ext
2010fi
2011eval ac_res=\$$3
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013$as_echo "$ac_res" >&6; }
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015
2016} # ac_fn_c_check_func
2017cat >config.log <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002018This file contains any messages produced by compilers while
2019running configure, to aid debugging if configure makes a mistake.
2020
jfiguse806a662015-03-11 10:02:12 -04002021It was created by libsrtp $as_me 1.5.2, which was
jfigusc7e66e32013-05-08 11:32:55 -04002022generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00002023
2024 $ $0 $@
2025
2026_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002027exec 5>>config.log
Cullen Jennings235513a2005-09-21 22:51:36 +00002028{
2029cat <<_ASUNAME
2030## --------- ##
2031## Platform. ##
2032## --------- ##
2033
2034hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2035uname -m = `(uname -m) 2>/dev/null || echo unknown`
2036uname -r = `(uname -r) 2>/dev/null || echo unknown`
2037uname -s = `(uname -s) 2>/dev/null || echo unknown`
2038uname -v = `(uname -v) 2>/dev/null || echo unknown`
2039
2040/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2041/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2042
2043/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2044/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2045/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
jfigusc7e66e32013-05-08 11:32:55 -04002046/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Cullen Jennings235513a2005-09-21 22:51:36 +00002047/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2048/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2049/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2050
2051_ASUNAME
2052
2053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054for as_dir in $PATH
2055do
2056 IFS=$as_save_IFS
2057 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002058 $as_echo "PATH: $as_dir"
2059 done
2060IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002061
2062} >&5
2063
2064cat >&5 <<_ACEOF
2065
2066
2067## ----------- ##
2068## Core tests. ##
2069## ----------- ##
2070
2071_ACEOF
2072
2073
2074# Keep a trace of the command line.
2075# Strip out --no-create and --no-recursion so they do not pile up.
2076# Strip out --silent because we don't want to record it for future runs.
2077# Also quote any args containing shell meta-characters.
2078# Make two passes to allow for proper duplicate-argument suppression.
2079ac_configure_args=
2080ac_configure_args0=
2081ac_configure_args1=
Cullen Jennings235513a2005-09-21 22:51:36 +00002082ac_must_keep_next=false
2083for ac_pass in 1 2
2084do
2085 for ac_arg
2086 do
2087 case $ac_arg in
2088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2090 | -silent | --silent | --silen | --sile | --sil)
2091 continue ;;
jfigusc7e66e32013-05-08 11:32:55 -04002092 *\'*)
2093 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002094 esac
2095 case $ac_pass in
jfigusc7e66e32013-05-08 11:32:55 -04002096 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002097 2)
jfigusc7e66e32013-05-08 11:32:55 -04002098 as_fn_append ac_configure_args1 " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002099 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00002100 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00002101 else
David McGrewfec49dd2005-09-23 19:34:11 +00002102 case $ac_arg in
2103 *=* | --config-cache | -C | -disable-* | --disable-* \
2104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2106 | -with-* | --with-* | -without-* | --without-* | --x)
2107 case "$ac_configure_args0 " in
2108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2109 esac
2110 ;;
2111 -* ) ac_must_keep_next=true ;;
2112 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00002113 fi
jfigusc7e66e32013-05-08 11:32:55 -04002114 as_fn_append ac_configure_args " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002115 ;;
2116 esac
2117 done
2118done
jfigusc7e66e32013-05-08 11:32:55 -04002119{ ac_configure_args0=; unset ac_configure_args0;}
2120{ ac_configure_args1=; unset ac_configure_args1;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002121
2122# When interrupted or exit'd, cleanup temporary files, and complete
2123# config.log. We remove comments because anyway the quotes in there
2124# would cause problems or look ugly.
jfigusc7e66e32013-05-08 11:32:55 -04002125# WARNING: Use '\'' to represent an apostrophe within the trap.
2126# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Cullen Jennings235513a2005-09-21 22:51:36 +00002127trap 'exit_status=$?
2128 # Save into config.log some information that might help in debugging.
2129 {
2130 echo
2131
jfigusc7e66e32013-05-08 11:32:55 -04002132 $as_echo "## ---------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002133## Cache variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002134## ---------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002135 echo
2136 # The following way of writing the cache mishandles newlines in values,
jfigusc7e66e32013-05-08 11:32:55 -04002137(
2138 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2139 eval ac_val=\$$ac_var
2140 case $ac_val in #(
2141 *${as_nl}*)
2142 case $ac_var in #(
2143 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2144$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2145 esac
2146 case $ac_var in #(
2147 _ | IFS | as_nl) ;; #(
2148 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2149 *) { eval $ac_var=; unset $ac_var;} ;;
2150 esac ;;
2151 esac
2152 done
Cullen Jennings235513a2005-09-21 22:51:36 +00002153 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04002154 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2155 *${as_nl}ac_space=\ *)
Cullen Jennings235513a2005-09-21 22:51:36 +00002156 sed -n \
jfigusc7e66e32013-05-08 11:32:55 -04002157 "s/'\''/'\''\\\\'\'''\''/g;
2158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2159 ;; #(
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002160 *)
jfigusc7e66e32013-05-08 11:32:55 -04002161 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002162 ;;
jfigusc7e66e32013-05-08 11:32:55 -04002163 esac |
2164 sort
2165)
Cullen Jennings235513a2005-09-21 22:51:36 +00002166 echo
2167
jfigusc7e66e32013-05-08 11:32:55 -04002168 $as_echo "## ----------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002169## Output variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002170## ----------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002171 echo
2172 for ac_var in $ac_subst_vars
2173 do
jfigusc7e66e32013-05-08 11:32:55 -04002174 eval ac_val=\$$ac_var
2175 case $ac_val in
2176 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2177 esac
2178 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002179 done | sort
2180 echo
2181
2182 if test -n "$ac_subst_files"; then
jfigusc7e66e32013-05-08 11:32:55 -04002183 $as_echo "## ------------------- ##
2184## File substitutions. ##
2185## ------------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002186 echo
2187 for ac_var in $ac_subst_files
2188 do
jfigusc7e66e32013-05-08 11:32:55 -04002189 eval ac_val=\$$ac_var
2190 case $ac_val in
2191 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192 esac
2193 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002194 done | sort
2195 echo
2196 fi
2197
2198 if test -s confdefs.h; then
jfigusc7e66e32013-05-08 11:32:55 -04002199 $as_echo "## ----------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002200## confdefs.h. ##
jfigusc7e66e32013-05-08 11:32:55 -04002201## ----------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002202 echo
jfigusc7e66e32013-05-08 11:32:55 -04002203 cat confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002204 echo
2205 fi
2206 test "$ac_signal" != 0 &&
jfigusc7e66e32013-05-08 11:32:55 -04002207 $as_echo "$as_me: caught signal $ac_signal"
2208 $as_echo "$as_me: exit $exit_status"
Cullen Jennings235513a2005-09-21 22:51:36 +00002209 } >&5
jfigusc7e66e32013-05-08 11:32:55 -04002210 rm -f core *.core core.conftest.* &&
2211 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Cullen Jennings235513a2005-09-21 22:51:36 +00002212 exit $exit_status
jfigusc7e66e32013-05-08 11:32:55 -04002213' 0
Cullen Jennings235513a2005-09-21 22:51:36 +00002214for ac_signal in 1 2 13 15; do
jfigusc7e66e32013-05-08 11:32:55 -04002215 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Cullen Jennings235513a2005-09-21 22:51:36 +00002216done
2217ac_signal=0
2218
2219# confdefs.h avoids OS command line length limits that DEFS can exceed.
jfigusc7e66e32013-05-08 11:32:55 -04002220rm -f -r conftest* confdefs.h
2221
2222$as_echo "/* confdefs.h */" > confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002223
2224# Predefined preprocessor variables.
2225
2226cat >>confdefs.h <<_ACEOF
2227#define PACKAGE_NAME "$PACKAGE_NAME"
2228_ACEOF
2229
Cullen Jennings235513a2005-09-21 22:51:36 +00002230cat >>confdefs.h <<_ACEOF
2231#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2232_ACEOF
2233
Cullen Jennings235513a2005-09-21 22:51:36 +00002234cat >>confdefs.h <<_ACEOF
2235#define PACKAGE_VERSION "$PACKAGE_VERSION"
2236_ACEOF
2237
Cullen Jennings235513a2005-09-21 22:51:36 +00002238cat >>confdefs.h <<_ACEOF
2239#define PACKAGE_STRING "$PACKAGE_STRING"
2240_ACEOF
2241
Cullen Jennings235513a2005-09-21 22:51:36 +00002242cat >>confdefs.h <<_ACEOF
2243#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2244_ACEOF
2245
jfigusc7e66e32013-05-08 11:32:55 -04002246cat >>confdefs.h <<_ACEOF
2247#define PACKAGE_URL "$PACKAGE_URL"
2248_ACEOF
2249
Cullen Jennings235513a2005-09-21 22:51:36 +00002250
2251# Let the site file select an alternate cache file if it wants to.
jfigusc7e66e32013-05-08 11:32:55 -04002252# Prefer an explicitly selected file to automatically selected ones.
2253ac_site_file1=NONE
2254ac_site_file2=NONE
2255if test -n "$CONFIG_SITE"; then
2256 # We do not want a PATH search for config.site.
2257 case $CONFIG_SITE in #((
2258 -*) ac_site_file1=./$CONFIG_SITE;;
2259 */*) ac_site_file1=$CONFIG_SITE;;
2260 *) ac_site_file1=./$CONFIG_SITE;;
2261 esac
2262elif test "x$prefix" != xNONE; then
2263 ac_site_file1=$prefix/share/config.site
2264 ac_site_file2=$prefix/etc/config.site
2265else
2266 ac_site_file1=$ac_default_prefix/share/config.site
2267 ac_site_file2=$ac_default_prefix/etc/config.site
Cullen Jennings235513a2005-09-21 22:51:36 +00002268fi
jfigusc7e66e32013-05-08 11:32:55 -04002269for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2270do
2271 test "x$ac_site_file" = xNONE && continue
2272 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2274$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002275 sed 's/^/| /' "$ac_site_file" >&5
jfigusc7e66e32013-05-08 11:32:55 -04002276 . "$ac_site_file" \
2277 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2279as_fn_error $? "failed to load site script $ac_site_file
2280See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002281 fi
2282done
2283
2284if test -r "$cache_file"; then
jfigusc7e66e32013-05-08 11:32:55 -04002285 # Some versions of bash will fail to source /dev/null (special files
2286 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2287 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2289$as_echo "$as_me: loading cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002290 case $cache_file in
jfigusc7e66e32013-05-08 11:32:55 -04002291 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2292 *) . "./$cache_file";;
Cullen Jennings235513a2005-09-21 22:51:36 +00002293 esac
2294 fi
2295else
jfigusc7e66e32013-05-08 11:32:55 -04002296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2297$as_echo "$as_me: creating cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002298 >$cache_file
2299fi
2300
2301# Check that the precious variables saved in the cache have kept the same
2302# value.
2303ac_cache_corrupted=false
jfigusc7e66e32013-05-08 11:32:55 -04002304for ac_var in $ac_precious_vars; do
Cullen Jennings235513a2005-09-21 22:51:36 +00002305 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2306 eval ac_new_set=\$ac_env_${ac_var}_set
jfigusc7e66e32013-05-08 11:32:55 -04002307 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2308 eval ac_new_val=\$ac_env_${ac_var}_value
Cullen Jennings235513a2005-09-21 22:51:36 +00002309 case $ac_old_set,$ac_new_set in
2310 set,)
jfigusc7e66e32013-05-08 11:32:55 -04002311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2312$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 +00002313 ac_cache_corrupted=: ;;
2314 ,set)
jfigusc7e66e32013-05-08 11:32:55 -04002315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2316$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002317 ac_cache_corrupted=: ;;
2318 ,);;
2319 *)
2320 if test "x$ac_old_val" != "x$ac_new_val"; then
jfigusc7e66e32013-05-08 11:32:55 -04002321 # differences in whitespace do not lead to failure.
2322 ac_old_val_w=`echo x $ac_old_val`
2323 ac_new_val_w=`echo x $ac_new_val`
2324 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2326$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2327 ac_cache_corrupted=:
2328 else
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2330$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2331 eval $ac_var=\$ac_old_val
2332 fi
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2334$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2336$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002337 fi;;
2338 esac
2339 # Pass precious variables to config.status.
2340 if test "$ac_new_set" = set; then
2341 case $ac_new_val in
jfigusc7e66e32013-05-08 11:32:55 -04002342 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002343 *) ac_arg=$ac_var=$ac_new_val ;;
2344 esac
2345 case " $ac_configure_args " in
2346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jfigusc7e66e32013-05-08 11:32:55 -04002347 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002348 esac
2349 fi
2350done
2351if $ac_cache_corrupted; then
jfigusc7e66e32013-05-08 11:32:55 -04002352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2355$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2356 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00002357fi
jfigusc7e66e32013-05-08 11:32:55 -04002358## -------------------- ##
2359## Main body of script. ##
2360## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002361
2362ac_ext=c
2363ac_cpp='$CPP $CPPFLAGS'
2364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366ac_compiler_gnu=$ac_cv_c_compiler_gnu
2367
2368
2369
David McGrewb67061f2005-09-28 14:23:06 +00002370if test -z "$CFLAGS"; then
Sean Brightbfb9e302014-03-24 20:45:17 -04002371 CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops"
David McGrewb67061f2005-09-28 14:23:06 +00002372fi
2373
Cullen Jennings235513a2005-09-21 22:51:36 +00002374if test -n "$ac_tool_prefix"; then
2375 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2376set dummy ${ac_tool_prefix}ranlib; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2378$as_echo_n "checking for $ac_word... " >&6; }
2379if ${ac_cv_prog_RANLIB+:} false; then :
2380 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002381else
2382 if test -n "$RANLIB"; then
2383 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2384else
2385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386for as_dir in $PATH
2387do
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002392 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
jfigusc7e66e32013-05-08 11:32:55 -04002393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002394 break 2
2395 fi
2396done
jfigusc7e66e32013-05-08 11:32:55 -04002397 done
2398IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002399
2400fi
2401fi
2402RANLIB=$ac_cv_prog_RANLIB
2403if test -n "$RANLIB"; then
jfigusc7e66e32013-05-08 11:32:55 -04002404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2405$as_echo "$RANLIB" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002406else
jfigusc7e66e32013-05-08 11:32:55 -04002407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2408$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002409fi
2410
jfigusc7e66e32013-05-08 11:32:55 -04002411
Cullen Jennings235513a2005-09-21 22:51:36 +00002412fi
2413if test -z "$ac_cv_prog_RANLIB"; then
2414 ac_ct_RANLIB=$RANLIB
2415 # Extract the first word of "ranlib", so it can be a program name with args.
2416set dummy ranlib; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2418$as_echo_n "checking for $ac_word... " >&6; }
2419if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2420 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002421else
2422 if test -n "$ac_ct_RANLIB"; then
2423 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2424else
2425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426for as_dir in $PATH
2427do
2428 IFS=$as_save_IFS
2429 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002432 ac_cv_prog_ac_ct_RANLIB="ranlib"
jfigusc7e66e32013-05-08 11:32:55 -04002433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002434 break 2
2435 fi
2436done
jfigusc7e66e32013-05-08 11:32:55 -04002437 done
2438IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002439
Cullen Jennings235513a2005-09-21 22:51:36 +00002440fi
2441fi
2442ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2443if test -n "$ac_ct_RANLIB"; then
jfigusc7e66e32013-05-08 11:32:55 -04002444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2445$as_echo "$ac_ct_RANLIB" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002446else
jfigusc7e66e32013-05-08 11:32:55 -04002447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2448$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002449fi
2450
jfigusc7e66e32013-05-08 11:32:55 -04002451 if test "x$ac_ct_RANLIB" = x; then
2452 RANLIB=":"
2453 else
2454 case $cross_compiling:$ac_tool_warned in
2455yes:)
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2458ac_tool_warned=yes ;;
2459esac
2460 RANLIB=$ac_ct_RANLIB
2461 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002462else
2463 RANLIB="$ac_cv_prog_RANLIB"
2464fi
2465
2466ac_ext=c
2467ac_cpp='$CPP $CPPFLAGS'
2468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470ac_compiler_gnu=$ac_cv_c_compiler_gnu
2471if test -n "$ac_tool_prefix"; then
2472 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2473set dummy ${ac_tool_prefix}gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2475$as_echo_n "checking for $ac_word... " >&6; }
2476if ${ac_cv_prog_CC+:} false; then :
2477 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002478else
2479 if test -n "$CC"; then
2480 ac_cv_prog_CC="$CC" # Let the user override the test.
2481else
2482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483for as_dir in $PATH
2484do
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002489 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002491 break 2
2492 fi
2493done
jfigusc7e66e32013-05-08 11:32:55 -04002494 done
2495IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002496
2497fi
2498fi
2499CC=$ac_cv_prog_CC
2500if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2502$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002503else
jfigusc7e66e32013-05-08 11:32:55 -04002504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2505$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002506fi
2507
jfigusc7e66e32013-05-08 11:32:55 -04002508
Cullen Jennings235513a2005-09-21 22:51:36 +00002509fi
2510if test -z "$ac_cv_prog_CC"; then
2511 ac_ct_CC=$CC
2512 # Extract the first word of "gcc", so it can be a program name with args.
2513set dummy gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2515$as_echo_n "checking for $ac_word... " >&6; }
2516if ${ac_cv_prog_ac_ct_CC+:} false; then :
2517 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002518else
2519 if test -n "$ac_ct_CC"; then
2520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2521else
2522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523for as_dir in $PATH
2524do
2525 IFS=$as_save_IFS
2526 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002529 ac_cv_prog_ac_ct_CC="gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002531 break 2
2532 fi
2533done
jfigusc7e66e32013-05-08 11:32:55 -04002534 done
2535IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002536
2537fi
2538fi
2539ac_ct_CC=$ac_cv_prog_ac_ct_CC
2540if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2542$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002543else
jfigusc7e66e32013-05-08 11:32:55 -04002544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2545$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002546fi
2547
jfigusc7e66e32013-05-08 11:32:55 -04002548 if test "x$ac_ct_CC" = x; then
2549 CC=""
2550 else
2551 case $cross_compiling:$ac_tool_warned in
2552yes:)
2553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2555ac_tool_warned=yes ;;
2556esac
2557 CC=$ac_ct_CC
2558 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002559else
2560 CC="$ac_cv_prog_CC"
2561fi
2562
2563if test -z "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002564 if test -n "$ac_tool_prefix"; then
2565 # 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 +00002566set dummy ${ac_tool_prefix}cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568$as_echo_n "checking for $ac_word... " >&6; }
2569if ${ac_cv_prog_CC+:} false; then :
2570 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002571else
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2574else
2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002582 ac_cv_prog_CC="${ac_tool_prefix}cc"
jfigusc7e66e32013-05-08 11:32:55 -04002583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002584 break 2
2585 fi
2586done
jfigusc7e66e32013-05-08 11:32:55 -04002587 done
2588IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002589
2590fi
2591fi
2592CC=$ac_cv_prog_CC
2593if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2595$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002596else
jfigusc7e66e32013-05-08 11:32:55 -04002597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002599fi
2600
jfigusc7e66e32013-05-08 11:32:55 -04002601
Cullen Jennings235513a2005-09-21 22:51:36 +00002602 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002603fi
2604if test -z "$CC"; then
2605 # Extract the first word of "cc", so it can be a program name with args.
2606set dummy cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608$as_echo_n "checking for $ac_word... " >&6; }
2609if ${ac_cv_prog_CC+:} false; then :
2610 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002611else
2612 if test -n "$CC"; then
2613 ac_cv_prog_CC="$CC" # Let the user override the test.
2614else
2615 ac_prog_rejected=no
2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH
2618do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002623 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2624 ac_prog_rejected=yes
2625 continue
2626 fi
2627 ac_cv_prog_CC="cc"
jfigusc7e66e32013-05-08 11:32:55 -04002628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002629 break 2
2630 fi
2631done
jfigusc7e66e32013-05-08 11:32:55 -04002632 done
2633IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002634
2635if test $ac_prog_rejected = yes; then
2636 # We found a bogon in the path, so make sure we never use it.
2637 set dummy $ac_cv_prog_CC
2638 shift
2639 if test $# != 0; then
2640 # We chose a different compiler from the bogus one.
2641 # However, it has the same basename, so the bogon will be chosen
2642 # first if we set CC to just the basename; use the full file name.
2643 shift
2644 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2645 fi
2646fi
2647fi
2648fi
2649CC=$ac_cv_prog_CC
2650if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2652$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002653else
jfigusc7e66e32013-05-08 11:32:55 -04002654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002656fi
2657
jfigusc7e66e32013-05-08 11:32:55 -04002658
Cullen Jennings235513a2005-09-21 22:51:36 +00002659fi
2660if test -z "$CC"; then
2661 if test -n "$ac_tool_prefix"; then
jfigusc7e66e32013-05-08 11:32:55 -04002662 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002663 do
2664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2665set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667$as_echo_n "checking for $ac_word... " >&6; }
2668if ${ac_cv_prog_CC+:} false; then :
2669 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002670else
2671 if test -n "$CC"; then
2672 ac_cv_prog_CC="$CC" # Let the user override the test.
2673else
2674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675for as_dir in $PATH
2676do
2677 IFS=$as_save_IFS
2678 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002681 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002683 break 2
2684 fi
2685done
jfigusc7e66e32013-05-08 11:32:55 -04002686 done
2687IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002688
2689fi
2690fi
2691CC=$ac_cv_prog_CC
2692if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2694$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002695else
jfigusc7e66e32013-05-08 11:32:55 -04002696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002698fi
2699
jfigusc7e66e32013-05-08 11:32:55 -04002700
Cullen Jennings235513a2005-09-21 22:51:36 +00002701 test -n "$CC" && break
2702 done
2703fi
2704if test -z "$CC"; then
2705 ac_ct_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04002706 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002707do
2708 # Extract the first word of "$ac_prog", so it can be a program name with args.
2709set dummy $ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2711$as_echo_n "checking for $ac_word... " >&6; }
2712if ${ac_cv_prog_ac_ct_CC+:} false; then :
2713 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002714else
2715 if test -n "$ac_ct_CC"; then
2716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2717else
2718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719for as_dir in $PATH
2720do
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002725 ac_cv_prog_ac_ct_CC="$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002727 break 2
2728 fi
2729done
jfigusc7e66e32013-05-08 11:32:55 -04002730 done
2731IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002732
2733fi
2734fi
2735ac_ct_CC=$ac_cv_prog_ac_ct_CC
2736if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2738$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002739else
jfigusc7e66e32013-05-08 11:32:55 -04002740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002742fi
2743
jfigusc7e66e32013-05-08 11:32:55 -04002744
Cullen Jennings235513a2005-09-21 22:51:36 +00002745 test -n "$ac_ct_CC" && break
2746done
2747
jfigusc7e66e32013-05-08 11:32:55 -04002748 if test "x$ac_ct_CC" = x; then
2749 CC=""
2750 else
2751 case $cross_compiling:$ac_tool_warned in
2752yes:)
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2755ac_tool_warned=yes ;;
2756esac
2757 CC=$ac_ct_CC
2758 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002759fi
2760
2761fi
2762
2763
jfigusc7e66e32013-05-08 11:32:55 -04002764test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2766as_fn_error $? "no acceptable C compiler found in \$PATH
2767See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002768
2769# Provide some information about the compiler.
jfigusc7e66e32013-05-08 11:32:55 -04002770$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2771set X $ac_compile
2772ac_compiler=$2
2773for ac_option in --version -v -V -qversion; do
2774 { { ac_try="$ac_compiler $ac_option >&5"
2775case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778esac
2779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2780$as_echo "$ac_try_echo"; } >&5
2781 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Cullen Jennings235513a2005-09-21 22:51:36 +00002782 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002783 if test -s conftest.err; then
2784 sed '10a\
2785... rest of stderr output deleted ...
2786 10q' conftest.err >conftest.er1
2787 cat conftest.er1 >&5
2788 fi
2789 rm -f conftest.er1 conftest.err
2790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2791 test $ac_status = 0; }
2792done
Cullen Jennings235513a2005-09-21 22:51:36 +00002793
jfigusc7e66e32013-05-08 11:32:55 -04002794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002795/* end confdefs.h. */
2796
2797int
2798main ()
2799{
2800
2801 ;
2802 return 0;
2803}
2804_ACEOF
2805ac_clean_files_save=$ac_clean_files
jfigusc7e66e32013-05-08 11:32:55 -04002806ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Cullen Jennings235513a2005-09-21 22:51:36 +00002807# Try to create an executable without -o first, disregard a.out.
2808# It will help us diagnose broken compilers, and finding out an intuition
2809# of exeext.
jfigusc7e66e32013-05-08 11:32:55 -04002810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2811$as_echo_n "checking whether the C compiler works... " >&6; }
2812ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002813
jfigusc7e66e32013-05-08 11:32:55 -04002814# The possible output files:
2815ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2816
2817ac_rmfiles=
2818for ac_file in $ac_files
2819do
2820 case $ac_file in
2821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2822 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2823 esac
2824done
2825rm -f $ac_rmfiles
2826
2827if { { ac_try="$ac_link_default"
2828case "(($ac_try" in
2829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830 *) ac_try_echo=$ac_try;;
2831esac
2832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2833$as_echo "$ac_try_echo"; } >&5
2834 (eval "$ac_link_default") 2>&5
2835 ac_status=$?
2836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2837 test $ac_status = 0; }; then :
2838 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2839# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2840# in a Makefile. We should not override ac_cv_exeext if it was cached,
2841# so that the user can short-circuit this test for compilers unknown to
2842# Autoconf.
2843for ac_file in $ac_files ''
Cullen Jennings235513a2005-09-21 22:51:36 +00002844do
2845 test -f "$ac_file" || continue
2846 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00002848 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002849 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00002850 # We found the default executable, but exeext='' is most
2851 # certainly right.
2852 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002853 *.* )
jfigusc7e66e32013-05-08 11:32:55 -04002854 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2855 then :; else
2856 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2857 fi
2858 # We set ac_cv_exeext here because the later test for it is not
2859 # safe: cross compilers may not add the suffix if given an `-o'
2860 # argument, so we may need to know it at that point already.
2861 # Even if this section looks crufty: it has the advantage of
2862 # actually working.
David McGrewfec49dd2005-09-23 19:34:11 +00002863 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002864 * )
David McGrewfec49dd2005-09-23 19:34:11 +00002865 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002866 esac
2867done
jfigusc7e66e32013-05-08 11:32:55 -04002868test "$ac_cv_exeext" = no && ac_cv_exeext=
2869
Cullen Jennings235513a2005-09-21 22:51:36 +00002870else
jfigusc7e66e32013-05-08 11:32:55 -04002871 ac_file=''
2872fi
2873if test -z "$ac_file"; then :
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875$as_echo "no" >&6; }
2876$as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002877sed 's/^/| /' conftest.$ac_ext >&5
2878
jfigusc7e66e32013-05-08 11:32:55 -04002879{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2881as_fn_error 77 "C compiler cannot create executables
2882See \`config.log' for more details" "$LINENO" 5; }
2883else
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2885$as_echo "yes" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002886fi
jfigusc7e66e32013-05-08 11:32:55 -04002887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2888$as_echo_n "checking for C compiler default output file name... " >&6; }
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2890$as_echo "$ac_file" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002891ac_exeext=$ac_cv_exeext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002892
jfigusc7e66e32013-05-08 11:32:55 -04002893rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002894ac_clean_files=$ac_clean_files_save
jfigusc7e66e32013-05-08 11:32:55 -04002895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2896$as_echo_n "checking for suffix of executables... " >&6; }
2897if { { ac_try="$ac_link"
2898case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901esac
2902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2903$as_echo "$ac_try_echo"; } >&5
2904 (eval "$ac_link") 2>&5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002905 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2907 test $ac_status = 0; }; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002908 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2909# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2910# work properly (i.e., refer to `conftest.exe'), while it won't with
2911# `rm'.
2912for ac_file in conftest.exe conftest conftest.*; do
2913 test -f "$ac_file" || continue
2914 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002916 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00002917 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002918 * ) break;;
2919 esac
2920done
2921else
jfigusc7e66e32013-05-08 11:32:55 -04002922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2924as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2925See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002926fi
jfigusc7e66e32013-05-08 11:32:55 -04002927rm -f conftest conftest$ac_cv_exeext
2928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2929$as_echo "$ac_cv_exeext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002930
2931rm -f conftest.$ac_ext
2932EXEEXT=$ac_cv_exeext
2933ac_exeext=$EXEEXT
jfigusc7e66e32013-05-08 11:32:55 -04002934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2935/* end confdefs.h. */
2936#include <stdio.h>
2937int
2938main ()
2939{
2940FILE *f = fopen ("conftest.out", "w");
2941 return ferror (f) || fclose (f) != 0;
2942
2943 ;
2944 return 0;
2945}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002946_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002947ac_clean_files="$ac_clean_files conftest.out"
2948# Check that the compiler produces executables we can run. If not, either
2949# the compiler is broken, or we cross compile.
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2951$as_echo_n "checking whether we are cross compiling... " >&6; }
2952if test "$cross_compiling" != yes; then
2953 { { ac_try="$ac_link"
2954case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957esac
2958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959$as_echo "$ac_try_echo"; } >&5
2960 (eval "$ac_link") 2>&5
2961 ac_status=$?
2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963 test $ac_status = 0; }
2964 if { ac_try='./conftest$ac_cv_exeext'
2965 { { case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968esac
2969eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2970$as_echo "$ac_try_echo"; } >&5
2971 (eval "$ac_try") 2>&5
2972 ac_status=$?
2973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2974 test $ac_status = 0; }; }; then
2975 cross_compiling=no
2976 else
2977 if test "$cross_compiling" = maybe; then
2978 cross_compiling=yes
2979 else
2980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982as_fn_error $? "cannot run C compiled programs.
2983If you meant to cross compile, use \`--host'.
2984See \`config.log' for more details" "$LINENO" 5; }
2985 fi
2986 fi
2987fi
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2989$as_echo "$cross_compiling" >&6; }
2990
2991rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2992ac_clean_files=$ac_clean_files_save
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2994$as_echo_n "checking for suffix of object files... " >&6; }
2995if ${ac_cv_objext+:} false; then :
2996 $as_echo_n "(cached) " >&6
2997else
2998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002999/* end confdefs.h. */
3000
3001int
3002main ()
3003{
3004
3005 ;
3006 return 0;
3007}
3008_ACEOF
3009rm -f conftest.o conftest.obj
jfigusc7e66e32013-05-08 11:32:55 -04003010if { { ac_try="$ac_compile"
3011case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3014esac
3015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3016$as_echo "$ac_try_echo"; } >&5
3017 (eval "$ac_compile") 2>&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003018 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04003019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3020 test $ac_status = 0; }; then :
3021 for ac_file in conftest.o conftest.obj conftest.*; do
3022 test -f "$ac_file" || continue;
Cullen Jennings235513a2005-09-21 22:51:36 +00003023 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04003024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003025 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3026 break;;
3027 esac
3028done
3029else
jfigusc7e66e32013-05-08 11:32:55 -04003030 $as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003031sed 's/^/| /' conftest.$ac_ext >&5
3032
jfigusc7e66e32013-05-08 11:32:55 -04003033{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3035as_fn_error $? "cannot compute suffix of object files: cannot compile
3036See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003037fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003038rm -f conftest.$ac_cv_objext conftest.$ac_ext
3039fi
jfigusc7e66e32013-05-08 11:32:55 -04003040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3041$as_echo "$ac_cv_objext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003042OBJEXT=$ac_cv_objext
3043ac_objext=$OBJEXT
jfigusc7e66e32013-05-08 11:32:55 -04003044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3045$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3046if ${ac_cv_c_compiler_gnu+:} false; then :
3047 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003048else
jfigusc7e66e32013-05-08 11:32:55 -04003049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003050/* end confdefs.h. */
3051
3052int
3053main ()
3054{
3055#ifndef __GNUC__
3056 choke me
3057#endif
3058
3059 ;
3060 return 0;
3061}
3062_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003063if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003064 ac_compiler_gnu=yes
3065else
jfigusc7e66e32013-05-08 11:32:55 -04003066 ac_compiler_gnu=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003067fi
jfigusc7e66e32013-05-08 11:32:55 -04003068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003069ac_cv_c_compiler_gnu=$ac_compiler_gnu
3070
3071fi
jfigusc7e66e32013-05-08 11:32:55 -04003072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3073$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3074if test $ac_compiler_gnu = yes; then
3075 GCC=yes
3076else
3077 GCC=
3078fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003079ac_test_CFLAGS=${CFLAGS+set}
3080ac_save_CFLAGS=$CFLAGS
jfigusc7e66e32013-05-08 11:32:55 -04003081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3082$as_echo_n "checking whether $CC accepts -g... " >&6; }
3083if ${ac_cv_prog_cc_g+:} false; then :
3084 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003085else
jfigusc7e66e32013-05-08 11:32:55 -04003086 ac_save_c_werror_flag=$ac_c_werror_flag
3087 ac_c_werror_flag=yes
3088 ac_cv_prog_cc_g=no
3089 CFLAGS="-g"
3090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003091/* end confdefs.h. */
3092
3093int
3094main ()
3095{
3096
3097 ;
3098 return 0;
3099}
3100_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003101if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003102 ac_cv_prog_cc_g=yes
3103else
jfigusc7e66e32013-05-08 11:32:55 -04003104 CFLAGS=""
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00003107
jfigusc7e66e32013-05-08 11:32:55 -04003108int
3109main ()
3110{
3111
3112 ;
3113 return 0;
3114}
3115_ACEOF
3116if ac_fn_c_try_compile "$LINENO"; then :
3117
3118else
3119 ac_c_werror_flag=$ac_save_c_werror_flag
3120 CFLAGS="-g"
3121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122/* end confdefs.h. */
3123
3124int
3125main ()
3126{
3127
3128 ;
3129 return 0;
3130}
3131_ACEOF
3132if ac_fn_c_try_compile "$LINENO"; then :
3133 ac_cv_prog_cc_g=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003134fi
jfigusc7e66e32013-05-08 11:32:55 -04003135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003136fi
jfigusc7e66e32013-05-08 11:32:55 -04003137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3138fi
3139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3140 ac_c_werror_flag=$ac_save_c_werror_flag
3141fi
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3143$as_echo "$ac_cv_prog_cc_g" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003144if test "$ac_test_CFLAGS" = set; then
3145 CFLAGS=$ac_save_CFLAGS
3146elif test $ac_cv_prog_cc_g = yes; then
3147 if test "$GCC" = yes; then
3148 CFLAGS="-g -O2"
3149 else
3150 CFLAGS="-g"
3151 fi
3152else
3153 if test "$GCC" = yes; then
3154 CFLAGS="-O2"
3155 else
3156 CFLAGS=
3157 fi
3158fi
jfigusc7e66e32013-05-08 11:32:55 -04003159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3160$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3161if ${ac_cv_prog_cc_c89+:} false; then :
3162 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003163else
jfigusc7e66e32013-05-08 11:32:55 -04003164 ac_cv_prog_cc_c89=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003165ac_save_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04003166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003167/* end confdefs.h. */
3168#include <stdarg.h>
3169#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -04003170struct stat;
Cullen Jennings235513a2005-09-21 22:51:36 +00003171/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3172struct buf { int x; };
3173FILE * (*rcsopen) (struct buf *, struct stat *, int);
3174static char *e (p, i)
3175 char **p;
3176 int i;
3177{
3178 return p[i];
3179}
3180static char *f (char * (*g) (char **, int), char **p, ...)
3181{
3182 char *s;
3183 va_list v;
3184 va_start (v,p);
3185 s = g (p, va_arg (v,int));
3186 va_end (v);
3187 return s;
3188}
David McGrewfec49dd2005-09-23 19:34:11 +00003189
3190/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3191 function prototypes and stuff, but not '\xHH' hex character constants.
3192 These don't provoke an error unfortunately, instead are silently treated
jfigusc7e66e32013-05-08 11:32:55 -04003193 as 'x'. The following induces an error, until -std is added to get
David McGrewfec49dd2005-09-23 19:34:11 +00003194 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3195 array size at least. It's necessary to write '\x00'==0 to get something
jfigusc7e66e32013-05-08 11:32:55 -04003196 that's true only with -std. */
David McGrewfec49dd2005-09-23 19:34:11 +00003197int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3198
jfigusc7e66e32013-05-08 11:32:55 -04003199/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3200 inside strings and character constants. */
3201#define FOO(x) 'x'
3202int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3203
Cullen Jennings235513a2005-09-21 22:51:36 +00003204int test (int i, double x);
3205struct s1 {int (*f) (int a);};
3206struct s2 {int (*f) (double a);};
3207int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3208int argc;
3209char **argv;
3210int
3211main ()
3212{
3213return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3214 ;
3215 return 0;
3216}
3217_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003218for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3219 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Cullen Jennings235513a2005-09-21 22:51:36 +00003220do
3221 CC="$ac_save_CC $ac_arg"
jfigusc7e66e32013-05-08 11:32:55 -04003222 if ac_fn_c_try_compile "$LINENO"; then :
3223 ac_cv_prog_cc_c89=$ac_arg
Cullen Jennings235513a2005-09-21 22:51:36 +00003224fi
jfigusc7e66e32013-05-08 11:32:55 -04003225rm -f core conftest.err conftest.$ac_objext
3226 test "x$ac_cv_prog_cc_c89" != "xno" && break
Cullen Jennings235513a2005-09-21 22:51:36 +00003227done
jfigusc7e66e32013-05-08 11:32:55 -04003228rm -f conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003229CC=$ac_save_CC
3230
3231fi
jfigusc7e66e32013-05-08 11:32:55 -04003232# AC_CACHE_VAL
3233case "x$ac_cv_prog_cc_c89" in
3234 x)
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3236$as_echo "none needed" >&6; } ;;
3237 xno)
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3239$as_echo "unsupported" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003240 *)
jfigusc7e66e32013-05-08 11:32:55 -04003241 CC="$CC $ac_cv_prog_cc_c89"
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3243$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003244esac
jfigusc7e66e32013-05-08 11:32:55 -04003245if test "x$ac_cv_prog_cc_c89" != xno; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003246
3247fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003248
Cullen Jennings235513a2005-09-21 22:51:36 +00003249ac_ext=c
3250ac_cpp='$CPP $CPPFLAGS'
3251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3253ac_compiler_gnu=$ac_cv_c_compiler_gnu
3254
David McGrewb67061f2005-09-28 14:23:06 +00003255ac_aux_dir=
jfigusc7e66e32013-05-08 11:32:55 -04003256for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3257 if test -f "$ac_dir/install-sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003258 ac_aux_dir=$ac_dir
3259 ac_install_sh="$ac_aux_dir/install-sh -c"
3260 break
jfigusc7e66e32013-05-08 11:32:55 -04003261 elif test -f "$ac_dir/install.sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003262 ac_aux_dir=$ac_dir
3263 ac_install_sh="$ac_aux_dir/install.sh -c"
3264 break
jfigusc7e66e32013-05-08 11:32:55 -04003265 elif test -f "$ac_dir/shtool"; then
David McGrewb67061f2005-09-28 14:23:06 +00003266 ac_aux_dir=$ac_dir
3267 ac_install_sh="$ac_aux_dir/shtool install -c"
3268 break
3269 fi
3270done
3271if test -z "$ac_aux_dir"; then
jfigusc7e66e32013-05-08 11:32:55 -04003272 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
David McGrewb67061f2005-09-28 14:23:06 +00003273fi
jfigusc7e66e32013-05-08 11:32:55 -04003274
3275# These three variables are undocumented and unsupported,
3276# and are intended to be withdrawn in a future Autoconf release.
3277# They can cause serious problems if a builder's source tree is in a directory
3278# whose full name contains unusual characters.
3279ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3280ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3281ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3282
Cullen Jennings235513a2005-09-21 22:51:36 +00003283
David McGrewb67061f2005-09-28 14:23:06 +00003284# Find a good install program. We prefer a C program (faster),
3285# so one script is as good as another. But avoid the broken or
3286# incompatible versions:
3287# SysV /etc/install, /usr/sbin/install
3288# SunOS /usr/etc/install
3289# IRIX /sbin/install
3290# AIX /bin/install
3291# AmigaOS /C/install, which installs bootblocks on floppy discs
3292# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3293# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3294# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3295# OS/2's system install, which has a completely different semantic
3296# ./install, which can be erroneously created by make from ./install.sh.
jfigusc7e66e32013-05-08 11:32:55 -04003297# Reject install programs that cannot install multiple files.
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3299$as_echo_n "checking for a BSD-compatible install... " >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00003300if test -z "$INSTALL"; then
jfigusc7e66e32013-05-08 11:32:55 -04003301if ${ac_cv_path_install+:} false; then :
3302 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003303else
David McGrewb67061f2005-09-28 14:23:06 +00003304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305for as_dir in $PATH
3306do
3307 IFS=$as_save_IFS
3308 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04003309 # Account for people who put trailing slashes in PATH elements.
3310case $as_dir/ in #((
3311 ./ | .// | /[cC]/* | \
David McGrewb67061f2005-09-28 14:23:06 +00003312 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jfigusc7e66e32013-05-08 11:32:55 -04003313 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
David McGrewb67061f2005-09-28 14:23:06 +00003314 /usr/ucb/* ) ;;
3315 *)
3316 # OSF1 and SCO ODT 3.0 have their own names for install.
3317 # Don't use installbsd from OSF since it installs stuff as root
3318 # by default.
3319 for ac_prog in ginstall scoinst install; do
3320 for ac_exec_ext in '' $ac_executable_extensions; do
jfigusc7e66e32013-05-08 11:32:55 -04003321 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
David McGrewb67061f2005-09-28 14:23:06 +00003322 if test $ac_prog = install &&
3323 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3324 # AIX install. It has an incompatible calling convention.
3325 :
3326 elif test $ac_prog = install &&
3327 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3328 # program-specific install script used by HP pwplus--don't use.
3329 :
3330 else
jfigusc7e66e32013-05-08 11:32:55 -04003331 rm -rf conftest.one conftest.two conftest.dir
3332 echo one > conftest.one
3333 echo two > conftest.two
3334 mkdir conftest.dir
3335 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3336 test -s conftest.one && test -s conftest.two &&
3337 test -s conftest.dir/conftest.one &&
3338 test -s conftest.dir/conftest.two
3339 then
3340 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3341 break 3
3342 fi
David McGrewb67061f2005-09-28 14:23:06 +00003343 fi
3344 fi
3345 done
3346 done
3347 ;;
3348esac
Cullen Jennings235513a2005-09-21 22:51:36 +00003349
jfigusc7e66e32013-05-08 11:32:55 -04003350 done
3351IFS=$as_save_IFS
3352
3353rm -rf conftest.one conftest.two conftest.dir
Cullen Jennings235513a2005-09-21 22:51:36 +00003354
3355fi
David McGrewb67061f2005-09-28 14:23:06 +00003356 if test "${ac_cv_path_install+set}" = set; then
3357 INSTALL=$ac_cv_path_install
3358 else
jfigusc7e66e32013-05-08 11:32:55 -04003359 # As a last resort, use the slow shell script. Don't cache a
3360 # value for INSTALL within a source directory, because that will
David McGrewb67061f2005-09-28 14:23:06 +00003361 # break other packages using the cache if that directory is
jfigusc7e66e32013-05-08 11:32:55 -04003362 # removed, or if the value is a relative name.
David McGrewb67061f2005-09-28 14:23:06 +00003363 INSTALL=$ac_install_sh
3364 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003365fi
jfigusc7e66e32013-05-08 11:32:55 -04003366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3367$as_echo "$INSTALL" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003368
David McGrewb67061f2005-09-28 14:23:06 +00003369# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3370# It thinks the first close brace ends the variable substitution.
3371test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00003372
David McGrewb67061f2005-09-28 14:23:06 +00003373test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3374
3375test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00003376
3377
3378
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003379ac_ext=c
3380ac_cpp='$CPP $CPPFLAGS'
3381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383ac_compiler_gnu=$ac_cv_c_compiler_gnu
jfigusc7e66e32013-05-08 11:32:55 -04003384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3385$as_echo_n "checking how to run the C preprocessor... " >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003386# On Suns, sometimes $CPP names a directory.
3387if test -n "$CPP" && test -d "$CPP"; then
3388 CPP=
3389fi
3390if test -z "$CPP"; then
jfigusc7e66e32013-05-08 11:32:55 -04003391 if ${ac_cv_prog_CPP+:} false; then :
3392 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003393else
3394 # Double quotes because CPP needs to be expanded
3395 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3396 do
3397 ac_preproc_ok=false
3398for ac_c_preproc_warn_flag in '' yes
3399do
3400 # Use a header file that comes with gcc, so configuring glibc
3401 # with a fresh cross-compiler works.
3402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3403 # <limits.h> exists even on freestanding compilers.
3404 # On the NeXT, cc -E runs the code through the compiler's parser,
3405 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04003406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003407/* end confdefs.h. */
3408#ifdef __STDC__
3409# include <limits.h>
3410#else
3411# include <assert.h>
3412#endif
3413 Syntax error
3414_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003415if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003416
jfigusc7e66e32013-05-08 11:32:55 -04003417else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003418 # Broken: fails on valid input.
3419continue
3420fi
jfigusc7e66e32013-05-08 11:32:55 -04003421rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003422
jfigusc7e66e32013-05-08 11:32:55 -04003423 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003424 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04003425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003426/* end confdefs.h. */
3427#include <ac_nonexistent.h>
3428_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003429if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003430 # Broken: success on invalid input.
3431continue
3432else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003433 # Passes both tests.
3434ac_preproc_ok=:
3435break
3436fi
jfigusc7e66e32013-05-08 11:32:55 -04003437rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003438
3439done
3440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04003441rm -f conftest.i conftest.err conftest.$ac_ext
3442if $ac_preproc_ok; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003443 break
3444fi
3445
3446 done
3447 ac_cv_prog_CPP=$CPP
3448
3449fi
3450 CPP=$ac_cv_prog_CPP
3451else
3452 ac_cv_prog_CPP=$CPP
3453fi
jfigusc7e66e32013-05-08 11:32:55 -04003454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3455$as_echo "$CPP" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003456ac_preproc_ok=false
3457for ac_c_preproc_warn_flag in '' yes
3458do
3459 # Use a header file that comes with gcc, so configuring glibc
3460 # with a fresh cross-compiler works.
3461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3462 # <limits.h> exists even on freestanding compilers.
3463 # On the NeXT, cc -E runs the code through the compiler's parser,
3464 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04003465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003466/* end confdefs.h. */
3467#ifdef __STDC__
3468# include <limits.h>
3469#else
3470# include <assert.h>
3471#endif
3472 Syntax error
3473_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003474if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003475
jfigusc7e66e32013-05-08 11:32:55 -04003476else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003477 # Broken: fails on valid input.
3478continue
3479fi
jfigusc7e66e32013-05-08 11:32:55 -04003480rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003481
jfigusc7e66e32013-05-08 11:32:55 -04003482 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003483 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04003484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003485/* end confdefs.h. */
3486#include <ac_nonexistent.h>
3487_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003488if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003489 # Broken: success on invalid input.
3490continue
3491else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003492 # Passes both tests.
3493ac_preproc_ok=:
3494break
3495fi
jfigusc7e66e32013-05-08 11:32:55 -04003496rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003497
3498done
3499# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04003500rm -f conftest.i conftest.err conftest.$ac_ext
3501if $ac_preproc_ok; then :
3502
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003503else
jfigusc7e66e32013-05-08 11:32:55 -04003504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3507See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003508fi
3509
3510ac_ext=c
3511ac_cpp='$CPP $CPPFLAGS'
3512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515
3516
jfigusc7e66e32013-05-08 11:32:55 -04003517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3518$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3519if ${ac_cv_path_GREP+:} false; then :
3520 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003521else
jfigusc7e66e32013-05-08 11:32:55 -04003522 if test -z "$GREP"; then
3523 ac_path_GREP_found=false
3524 # Loop through the user's path and test for each of PROGNAME-LIST
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3527do
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_prog in grep ggrep; do
3531 for ac_exec_ext in '' $ac_executable_extensions; do
3532 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3533 as_fn_executable_p "$ac_path_GREP" || continue
3534# Check for GNU ac_path_GREP and select it if it is found.
3535 # Check for GNU $ac_path_GREP
3536case `"$ac_path_GREP" --version 2>&1` in
3537*GNU*)
3538 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3539*)
3540 ac_count=0
3541 $as_echo_n 0123456789 >"conftest.in"
3542 while :
3543 do
3544 cat "conftest.in" "conftest.in" >"conftest.tmp"
3545 mv "conftest.tmp" "conftest.in"
3546 cp "conftest.in" "conftest.nl"
3547 $as_echo 'GREP' >> "conftest.nl"
3548 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3549 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3550 as_fn_arith $ac_count + 1 && ac_count=$as_val
3551 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3552 # Best one so far, save it but keep looking for a better one
3553 ac_cv_path_GREP="$ac_path_GREP"
3554 ac_path_GREP_max=$ac_count
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003555 fi
jfigusc7e66e32013-05-08 11:32:55 -04003556 # 10*(2^10) chars as input seems more than enough
3557 test $ac_count -gt 10 && break
3558 done
3559 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3560esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003561
jfigusc7e66e32013-05-08 11:32:55 -04003562 $ac_path_GREP_found && break 3
3563 done
3564 done
3565 done
3566IFS=$as_save_IFS
3567 if test -z "$ac_cv_path_GREP"; then
3568 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3569 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003570else
jfigusc7e66e32013-05-08 11:32:55 -04003571 ac_cv_path_GREP=$GREP
3572fi
3573
3574fi
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3576$as_echo "$ac_cv_path_GREP" >&6; }
3577 GREP="$ac_cv_path_GREP"
3578
3579
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3581$as_echo_n "checking for egrep... " >&6; }
3582if ${ac_cv_path_EGREP+:} false; then :
3583 $as_echo_n "(cached) " >&6
3584else
3585 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3586 then ac_cv_path_EGREP="$GREP -E"
3587 else
3588 if test -z "$EGREP"; then
3589 ac_path_EGREP_found=false
3590 # Loop through the user's path and test for each of PROGNAME-LIST
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3593do
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_prog in egrep; do
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3599 as_fn_executable_p "$ac_path_EGREP" || continue
3600# Check for GNU ac_path_EGREP and select it if it is found.
3601 # Check for GNU $ac_path_EGREP
3602case `"$ac_path_EGREP" --version 2>&1` in
3603*GNU*)
3604 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3605*)
3606 ac_count=0
3607 $as_echo_n 0123456789 >"conftest.in"
3608 while :
3609 do
3610 cat "conftest.in" "conftest.in" >"conftest.tmp"
3611 mv "conftest.tmp" "conftest.in"
3612 cp "conftest.in" "conftest.nl"
3613 $as_echo 'EGREP' >> "conftest.nl"
3614 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3615 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3616 as_fn_arith $ac_count + 1 && ac_count=$as_val
3617 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3618 # Best one so far, save it but keep looking for a better one
3619 ac_cv_path_EGREP="$ac_path_EGREP"
3620 ac_path_EGREP_max=$ac_count
3621 fi
3622 # 10*(2^10) chars as input seems more than enough
3623 test $ac_count -gt 10 && break
3624 done
3625 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3626esac
3627
3628 $ac_path_EGREP_found && break 3
3629 done
3630 done
3631 done
3632IFS=$as_save_IFS
3633 if test -z "$ac_cv_path_EGREP"; then
3634 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3635 fi
3636else
3637 ac_cv_path_EGREP=$EGREP
3638fi
3639
3640 fi
3641fi
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3643$as_echo "$ac_cv_path_EGREP" >&6; }
3644 EGREP="$ac_cv_path_EGREP"
3645
3646
3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3648$as_echo_n "checking for ANSI C header files... " >&6; }
3649if ${ac_cv_header_stdc+:} false; then :
3650 $as_echo_n "(cached) " >&6
3651else
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003653/* end confdefs.h. */
3654#include <stdlib.h>
3655#include <stdarg.h>
3656#include <string.h>
3657#include <float.h>
3658
3659int
3660main ()
3661{
3662
3663 ;
3664 return 0;
3665}
3666_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003667if ac_fn_c_try_compile "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003668 ac_cv_header_stdc=yes
3669else
jfigusc7e66e32013-05-08 11:32:55 -04003670 ac_cv_header_stdc=no
jfigusa14b5a02013-03-29 12:24:12 -04003671fi
jfigusc7e66e32013-05-08 11:32:55 -04003672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003673
3674if test $ac_cv_header_stdc = yes; then
3675 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003677/* end confdefs.h. */
3678#include <string.h>
3679
3680_ACEOF
3681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003682 $EGREP "memchr" >/dev/null 2>&1; then :
3683
jfigusa14b5a02013-03-29 12:24:12 -04003684else
3685 ac_cv_header_stdc=no
3686fi
3687rm -f conftest*
3688
3689fi
3690
3691if test $ac_cv_header_stdc = yes; then
3692 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003694/* end confdefs.h. */
3695#include <stdlib.h>
3696
3697_ACEOF
3698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003699 $EGREP "free" >/dev/null 2>&1; then :
3700
jfigusa14b5a02013-03-29 12:24:12 -04003701else
3702 ac_cv_header_stdc=no
3703fi
3704rm -f conftest*
3705
3706fi
3707
3708if test $ac_cv_header_stdc = yes; then
3709 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jfigusc7e66e32013-05-08 11:32:55 -04003710 if test "$cross_compiling" = yes; then :
jfigusa14b5a02013-03-29 12:24:12 -04003711 :
3712else
jfigusc7e66e32013-05-08 11:32:55 -04003713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003714/* end confdefs.h. */
3715#include <ctype.h>
jfigusc7e66e32013-05-08 11:32:55 -04003716#include <stdlib.h>
jfigusa14b5a02013-03-29 12:24:12 -04003717#if ((' ' & 0x0FF) == 0x020)
3718# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3719# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3720#else
3721# define ISLOWER(c) \
3722 (('a' <= (c) && (c) <= 'i') \
3723 || ('j' <= (c) && (c) <= 'r') \
3724 || ('s' <= (c) && (c) <= 'z'))
3725# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3726#endif
3727
3728#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3729int
3730main ()
3731{
3732 int i;
3733 for (i = 0; i < 256; i++)
3734 if (XOR (islower (i), ISLOWER (i))
3735 || toupper (i) != TOUPPER (i))
jfigusc7e66e32013-05-08 11:32:55 -04003736 return 2;
3737 return 0;
jfigusa14b5a02013-03-29 12:24:12 -04003738}
3739_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003740if ac_fn_c_try_run "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003741
jfigusc7e66e32013-05-08 11:32:55 -04003742else
3743 ac_cv_header_stdc=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003744fi
jfigusc7e66e32013-05-08 11:32:55 -04003745rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3746 conftest.$ac_objext conftest.beam conftest.$ac_ext
3747fi
3748
jfigusa14b5a02013-03-29 12:24:12 -04003749fi
3750fi
jfigusc7e66e32013-05-08 11:32:55 -04003751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3752$as_echo "$ac_cv_header_stdc" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04003753if test $ac_cv_header_stdc = yes; then
3754
jfigusc7e66e32013-05-08 11:32:55 -04003755$as_echo "#define STDC_HEADERS 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04003756
3757fi
3758
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003759# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003760for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3761 inttypes.h stdint.h unistd.h
jfigusc7e66e32013-05-08 11:32:55 -04003762do :
3763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3764ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3765"
3766if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003767 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003768#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003769_ACEOF
3770
3771fi
3772
3773done
3774
3775
jfigusc7e66e32013-05-08 11:32:55 -04003776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3777$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3778if ${ac_cv_c_bigendian+:} false; then :
3779 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003780else
jfigusc7e66e32013-05-08 11:32:55 -04003781 ac_cv_c_bigendian=unknown
3782 # See if we're dealing with a universal compiler.
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003784/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003785#ifndef __APPLE_CC__
3786 not a universal capable compiler
3787 #endif
3788 typedef int dummy;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003789
jfigusc7e66e32013-05-08 11:32:55 -04003790_ACEOF
3791if ac_fn_c_try_compile "$LINENO"; then :
3792
3793 # Check for potential -arch flags. It is not universal unless
3794 # there are at least two -arch flags with different values.
3795 ac_arch=
3796 ac_prev=
3797 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3798 if test -n "$ac_prev"; then
3799 case $ac_word in
3800 i?86 | x86_64 | ppc | ppc64)
3801 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3802 ac_arch=$ac_word
3803 else
3804 ac_cv_c_bigendian=universal
3805 break
3806 fi
3807 ;;
3808 esac
3809 ac_prev=
3810 elif test "x$ac_word" = "x-arch"; then
3811 ac_prev=arch
3812 fi
3813 done
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003814fi
jfigusc7e66e32013-05-08 11:32:55 -04003815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 if test $ac_cv_c_bigendian = unknown; then
3817 # See if sys/param.h defines the BYTE_ORDER macro.
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003819/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003820#include <sys/types.h>
3821 #include <sys/param.h>
3822
3823int
3824main ()
3825{
3826#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3827 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3828 && LITTLE_ENDIAN)
3829 bogus endian macros
3830 #endif
3831
3832 ;
3833 return 0;
3834}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003835_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003836if ac_fn_c_try_compile "$LINENO"; then :
3837 # It does; now see whether it defined to BIG_ENDIAN or not.
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003839/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003840#include <sys/types.h>
3841 #include <sys/param.h>
3842
3843int
3844main ()
3845{
3846#if BYTE_ORDER != BIG_ENDIAN
3847 not big endian
3848 #endif
3849
3850 ;
3851 return 0;
3852}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003853_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003854if ac_fn_c_try_compile "$LINENO"; then :
3855 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003856else
jfigusc7e66e32013-05-08 11:32:55 -04003857 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003858fi
jfigusc7e66e32013-05-08 11:32:55 -04003859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860fi
3861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862 fi
3863 if test $ac_cv_c_bigendian = unknown; then
3864 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003866/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003867#include <limits.h>
3868
3869int
3870main ()
3871{
3872#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3873 bogus endian macros
3874 #endif
3875
3876 ;
3877 return 0;
3878}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003879_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003880if ac_fn_c_try_compile "$LINENO"; then :
3881 # It does; now see whether it defined to _BIG_ENDIAN or not.
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003883/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003884#include <limits.h>
3885
3886int
3887main ()
3888{
3889#ifndef _BIG_ENDIAN
3890 not big endian
3891 #endif
3892
3893 ;
3894 return 0;
3895}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003896_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003897if ac_fn_c_try_compile "$LINENO"; then :
3898 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003899else
jfigusc7e66e32013-05-08 11:32:55 -04003900 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003901fi
jfigusc7e66e32013-05-08 11:32:55 -04003902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903fi
3904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 fi
3906 if test $ac_cv_c_bigendian = unknown; then
3907 # Compile a test program.
3908 if test "$cross_compiling" = yes; then :
3909 # Try to guess by grepping values from an object file.
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003911/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003912short int ascii_mm[] =
3913 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3914 short int ascii_ii[] =
3915 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3916 int use_ascii (int i) {
3917 return ascii_mm[i] + ascii_ii[i];
3918 }
3919 short int ebcdic_ii[] =
3920 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3921 short int ebcdic_mm[] =
3922 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3923 int use_ebcdic (int i) {
3924 return ebcdic_mm[i] + ebcdic_ii[i];
3925 }
3926 extern int foo;
3927
3928int
3929main ()
3930{
3931return use_ascii (foo) == use_ebcdic (foo);
3932 ;
3933 return 0;
3934}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003935_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003936if ac_fn_c_try_compile "$LINENO"; then :
3937 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3938 ac_cv_c_bigendian=yes
3939 fi
3940 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3941 if test "$ac_cv_c_bigendian" = unknown; then
3942 ac_cv_c_bigendian=no
3943 else
3944 # finding both strings is unlikely to happen, but who knows?
3945 ac_cv_c_bigendian=unknown
3946 fi
3947 fi
3948fi
3949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003950else
jfigusc7e66e32013-05-08 11:32:55 -04003951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003952/* end confdefs.h. */
3953$ac_includes_default
3954int
3955main ()
3956{
jfigusc7e66e32013-05-08 11:32:55 -04003957
3958 /* Are we little or big endian? From Harbison&Steele. */
3959 union
3960 {
3961 long int l;
3962 char c[sizeof (long int)];
3963 } u;
3964 u.l = 1;
3965 return u.c[sizeof (long int) - 1] == 1;
3966
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003967 ;
3968 return 0;
3969}
3970_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003971if ac_fn_c_try_run "$LINENO"; then :
3972 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003973else
jfigusc7e66e32013-05-08 11:32:55 -04003974 ac_cv_c_bigendian=yes
3975fi
3976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3977 conftest.$ac_objext conftest.beam conftest.$ac_ext
3978fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003979
jfigusc7e66e32013-05-08 11:32:55 -04003980 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003981fi
jfigusc7e66e32013-05-08 11:32:55 -04003982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3983$as_echo "$ac_cv_c_bigendian" >&6; }
3984 case $ac_cv_c_bigendian in #(
3985 yes)
3986 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
3987;; #(
3988 no)
3989 ;; #(
3990 universal)
3991
3992$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3993
3994 ;; #(
3995 *)
3996 as_fn_error $? "unknown endianness
3997 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3998 esac
3999
4000
4001# Make sure we can run config.sub.
4002$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4003 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4004
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4006$as_echo_n "checking build system type... " >&6; }
4007if ${ac_cv_build+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009else
4010 ac_build_alias=$build_alias
4011test "x$ac_build_alias" = x &&
4012 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4013test "x$ac_build_alias" = x &&
4014 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4015ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4016 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4017
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004018fi
jfigusc7e66e32013-05-08 11:32:55 -04004019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4020$as_echo "$ac_cv_build" >&6; }
4021case $ac_cv_build in
4022*-*-*) ;;
4023*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4024esac
4025build=$ac_cv_build
4026ac_save_IFS=$IFS; IFS='-'
4027set x $ac_cv_build
4028shift
4029build_cpu=$1
4030build_vendor=$2
4031shift; shift
4032# Remember, the first character of IFS is used to create $*,
4033# except with old shells:
4034build_os=$*
4035IFS=$ac_save_IFS
4036case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4037
4038
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4040$as_echo_n "checking host system type... " >&6; }
4041if ${ac_cv_host+:} false; then :
4042 $as_echo_n "(cached) " >&6
4043else
4044 if test "x$host_alias" = x; then
4045 ac_cv_host=$ac_cv_build
4046else
4047 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4048 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4049fi
4050
4051fi
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4053$as_echo "$ac_cv_host" >&6; }
4054case $ac_cv_host in
4055*-*-*) ;;
4056*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4057esac
4058host=$ac_cv_host
4059ac_save_IFS=$IFS; IFS='-'
4060set x $ac_cv_host
4061shift
4062host_cpu=$1
4063host_vendor=$2
4064shift; shift
4065# Remember, the first character of IFS is used to create $*,
4066# except with old shells:
4067host_os=$*
4068IFS=$ac_save_IFS
4069case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4070
4071
4072
4073case $host_cpu in
4074 i*86 | x86_64 )
4075
4076$as_echo "#define CPU_CISC 1" >>confdefs.h
4077
4078
4079$as_echo "#define HAVE_X86 1" >>confdefs.h
4080;;
4081 * )
jfigusc7e66e32013-05-08 11:32:55 -04004082
4083$as_echo "#define CPU_RISC 1" >>confdefs.h
jfigus385e6752015-02-19 08:30:36 -05004084
jfigusc7e66e32013-05-08 11:32:55 -04004085 ;;
4086esac
4087
4088case $host_os in
4089 *cygwin*|*mingw* )
4090 EXE=.exe
4091 HOST_IS_WINDOWS=yes
4092 ;;
4093 * )
4094 EXE=""
4095 ;;
4096esac
4097 # define executable suffix; this is needed for `make clean'
4098
4099
4100# Check whether --enable-kernel-linux was given.
4101if test "${enable_kernel_linux+set}" = set; then :
4102 enableval=$enable_kernel_linux;
4103else
4104 enable_kernel_linux=no
4105fi
4106
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build for Linux kernel context" >&5
4108$as_echo_n "checking whether to build for Linux kernel context... " >&6; }
4109if test "$enable_kernel_linux" = "yes"; then
4110
4111$as_echo "#define SRTP_KERNEL 1" >>confdefs.h
4112
4113
4114$as_echo "#define SRTP_KERNEL_LINUX 1" >>confdefs.h
4115
4116fi
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_kernel_linux" >&5
4118$as_echo "$enable_kernel_linux" >&6; }
4119
4120if test "$cross_compiling" != yes -a "$HOST_IS_WINDOWS" != yes; then
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
4122$as_echo_n "checking for /dev/urandom... " >&6; }
4123if ${ac_cv_file__dev_urandom+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125else
4126 test "$cross_compiling" = yes &&
4127 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4128if test -r "/dev/urandom"; then
4129 ac_cv_file__dev_urandom=yes
4130else
4131 ac_cv_file__dev_urandom=no
4132fi
4133fi
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
4135$as_echo "$ac_cv_file__dev_urandom" >&6; }
4136if test "x$ac_cv_file__dev_urandom" = xyes; then :
4137 DEV_URANDOM=/dev/urandom
4138else
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
4140$as_echo_n "checking for /dev/random... " >&6; }
4141if ${ac_cv_file__dev_random+:} false; then :
4142 $as_echo_n "(cached) " >&6
4143else
4144 test "$cross_compiling" = yes &&
4145 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4146if test -r "/dev/random"; then
4147 ac_cv_file__dev_random=yes
4148else
4149 ac_cv_file__dev_random=no
4150fi
4151fi
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
4153$as_echo "$ac_cv_file__dev_random" >&6; }
4154if test "x$ac_cv_file__dev_random" = xyes; then :
4155 DEV_URANDOM=/dev/random
4156fi
4157
4158fi
4159
4160fi
4161
4162
4163
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4165$as_echo_n "checking for ANSI C header files... " >&6; }
4166if ${ac_cv_header_stdc+:} false; then :
4167 $as_echo_n "(cached) " >&6
4168else
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170/* end confdefs.h. */
4171#include <stdlib.h>
4172#include <stdarg.h>
4173#include <string.h>
4174#include <float.h>
4175
4176int
4177main ()
4178{
4179
4180 ;
4181 return 0;
4182}
4183_ACEOF
4184if ac_fn_c_try_compile "$LINENO"; then :
4185 ac_cv_header_stdc=yes
4186else
4187 ac_cv_header_stdc=no
4188fi
4189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4190
4191if test $ac_cv_header_stdc = yes; then
4192 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194/* end confdefs.h. */
4195#include <string.h>
4196
4197_ACEOF
4198if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4199 $EGREP "memchr" >/dev/null 2>&1; then :
4200
4201else
4202 ac_cv_header_stdc=no
4203fi
4204rm -f conftest*
4205
4206fi
4207
4208if test $ac_cv_header_stdc = yes; then
4209 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211/* end confdefs.h. */
4212#include <stdlib.h>
4213
4214_ACEOF
4215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4216 $EGREP "free" >/dev/null 2>&1; then :
4217
4218else
4219 ac_cv_header_stdc=no
4220fi
4221rm -f conftest*
4222
4223fi
4224
4225if test $ac_cv_header_stdc = yes; then
4226 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4227 if test "$cross_compiling" = yes; then :
4228 :
4229else
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231/* end confdefs.h. */
4232#include <ctype.h>
4233#include <stdlib.h>
4234#if ((' ' & 0x0FF) == 0x020)
4235# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4236# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4237#else
4238# define ISLOWER(c) \
4239 (('a' <= (c) && (c) <= 'i') \
4240 || ('j' <= (c) && (c) <= 'r') \
4241 || ('s' <= (c) && (c) <= 'z'))
4242# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4243#endif
4244
4245#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4246int
4247main ()
4248{
4249 int i;
4250 for (i = 0; i < 256; i++)
4251 if (XOR (islower (i), ISLOWER (i))
4252 || toupper (i) != TOUPPER (i))
4253 return 2;
4254 return 0;
4255}
4256_ACEOF
4257if ac_fn_c_try_run "$LINENO"; then :
4258
4259else
4260 ac_cv_header_stdc=no
4261fi
4262rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4263 conftest.$ac_objext conftest.beam conftest.$ac_ext
4264fi
4265
4266fi
4267fi
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4269$as_echo "$ac_cv_header_stdc" >&6; }
4270if test $ac_cv_header_stdc = yes; then
4271
4272$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4273
4274fi
4275
4276for ac_header in stdlib.h
4277do :
4278 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4279if test "x$ac_cv_header_stdlib_h" = xyes; then :
4280 cat >>confdefs.h <<_ACEOF
4281#define HAVE_STDLIB_H 1
4282_ACEOF
4283
4284fi
4285
4286done
4287
4288for ac_header in unistd.h
4289do :
4290 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4291if test "x$ac_cv_header_unistd_h" = xyes; then :
4292 cat >>confdefs.h <<_ACEOF
4293#define HAVE_UNISTD_H 1
4294_ACEOF
4295
4296fi
4297
4298done
4299
4300for ac_header in byteswap.h
4301do :
4302 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
4303if test "x$ac_cv_header_byteswap_h" = xyes; then :
4304 cat >>confdefs.h <<_ACEOF
4305#define HAVE_BYTESWAP_H 1
4306_ACEOF
4307
4308fi
4309
4310done
4311
4312for ac_header in stdint.h
4313do :
4314 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4315if test "x$ac_cv_header_stdint_h" = xyes; then :
4316 cat >>confdefs.h <<_ACEOF
4317#define HAVE_STDINT_H 1
4318_ACEOF
4319
4320fi
4321
4322done
4323
4324for ac_header in sys/uio.h
4325do :
4326 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
4327if test "x$ac_cv_header_sys_uio_h" = xyes; then :
4328 cat >>confdefs.h <<_ACEOF
4329#define HAVE_SYS_UIO_H 1
4330_ACEOF
4331
4332fi
4333
4334done
4335
4336for ac_header in inttypes.h
4337do :
4338 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
4339if test "x$ac_cv_header_inttypes_h" = xyes; then :
4340 cat >>confdefs.h <<_ACEOF
4341#define HAVE_INTTYPES_H 1
4342_ACEOF
4343
4344fi
4345
4346done
4347
4348for ac_header in sys/types.h
4349do :
4350 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4351if test "x$ac_cv_header_sys_types_h" = xyes; then :
4352 cat >>confdefs.h <<_ACEOF
4353#define HAVE_SYS_TYPES_H 1
4354_ACEOF
4355
4356fi
4357
4358done
4359
4360for ac_header in machine/types.h
4361do :
4362 ac_fn_c_check_header_mongrel "$LINENO" "machine/types.h" "ac_cv_header_machine_types_h" "$ac_includes_default"
4363if test "x$ac_cv_header_machine_types_h" = xyes; then :
4364 cat >>confdefs.h <<_ACEOF
4365#define HAVE_MACHINE_TYPES_H 1
4366_ACEOF
4367
4368fi
4369
4370done
4371
4372for ac_header in sys/int_types.h
4373do :
4374 ac_fn_c_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default"
4375if test "x$ac_cv_header_sys_int_types_h" = xyes; then :
4376 cat >>confdefs.h <<_ACEOF
4377#define HAVE_SYS_INT_TYPES_H 1
4378_ACEOF
4379
4380fi
4381
4382done
4383
4384
4385for ac_header in sys/socket.h netinet/in.h arpa/inet.h
4386do :
4387 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4388ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4389if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4390 cat >>confdefs.h <<_ACEOF
4391#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4392_ACEOF
4393
4394fi
4395
4396done
4397
4398for ac_header in windows.h
4399do :
4400 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
4401if test "x$ac_cv_header_windows_h" = xyes; then :
4402 cat >>confdefs.h <<_ACEOF
4403#define HAVE_WINDOWS_H 1
4404_ACEOF
4405 for ac_header in winsock2.h
4406do :
4407 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4408if test "x$ac_cv_header_winsock2_h" = xyes; then :
4409 cat >>confdefs.h <<_ACEOF
4410#define HAVE_WINSOCK2_H 1
4411_ACEOF
4412
4413fi
4414
4415done
4416
4417fi
4418
4419done
4420
4421
4422for ac_header in syslog.h
4423do :
4424 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
4425if test "x$ac_cv_header_syslog_h" = xyes; then :
4426 cat >>confdefs.h <<_ACEOF
4427#define HAVE_SYSLOG_H 1
4428_ACEOF
4429
4430fi
4431
4432done
4433
4434
4435ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
4436if test "x$ac_cv_type_int8_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004437
David McGrewfec49dd2005-09-23 19:34:11 +00004438cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004439#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004440_ACEOF
4441
4442
4443fi
jfigusc7e66e32013-05-08 11:32:55 -04004444ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4445if test "x$ac_cv_type_uint8_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004446
4447cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004448#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004449_ACEOF
4450
4451
4452fi
jfigusc7e66e32013-05-08 11:32:55 -04004453ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4454if test "x$ac_cv_type_int16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004455
4456cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004457#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004458_ACEOF
4459
4460
4461fi
jfigusc7e66e32013-05-08 11:32:55 -04004462ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4463if test "x$ac_cv_type_uint16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004464
4465cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004466#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004467_ACEOF
4468
4469
4470fi
jfigusc7e66e32013-05-08 11:32:55 -04004471ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
4472if test "x$ac_cv_type_int32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004473
4474cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004475#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004476_ACEOF
4477
4478
4479fi
jfigusc7e66e32013-05-08 11:32:55 -04004480ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4481if test "x$ac_cv_type_uint32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004482
4483cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004484#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004485_ACEOF
4486
4487
4488fi
jfigusc7e66e32013-05-08 11:32:55 -04004489ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
4490if test "x$ac_cv_type_uint64_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004491
4492cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004493#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004494_ACEOF
4495
4496
4497fi
4498
jfigusc7e66e32013-05-08 11:32:55 -04004499# The cast to long int works around a bug in the HP C Compiler
4500# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4501# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4502# This bug is HP SR number 8606223364.
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4504$as_echo_n "checking size of unsigned long... " >&6; }
4505if ${ac_cv_sizeof_unsigned_long+:} false; then :
4506 $as_echo_n "(cached) " >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004507else
jfigusc7e66e32013-05-08 11:32:55 -04004508 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 +00004509
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004510else
4511 if test "$ac_cv_type_unsigned_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4514as_fn_error 77 "cannot compute sizeof (unsigned long)
4515See \`config.log' for more details" "$LINENO" 5; }
4516 else
4517 ac_cv_sizeof_unsigned_long=0
4518 fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004519fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004520
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004521fi
jfigusc7e66e32013-05-08 11:32:55 -04004522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
4523$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004524
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004525
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004526
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004527cat >>confdefs.h <<_ACEOF
4528#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
4529_ACEOF
4530
David McGrewfec49dd2005-09-23 19:34:11 +00004531
jfigusc7e66e32013-05-08 11:32:55 -04004532# The cast to long int works around a bug in the HP C Compiler
4533# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4534# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4535# This bug is HP SR number 8606223364.
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
4537$as_echo_n "checking size of unsigned long long... " >&6; }
4538if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
4539 $as_echo_n "(cached) " >&6
David McGrewfec49dd2005-09-23 19:34:11 +00004540else
jfigusc7e66e32013-05-08 11:32:55 -04004541 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 +00004542
David McGrewfec49dd2005-09-23 19:34:11 +00004543else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004544 if test "$ac_cv_type_unsigned_long_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4547as_fn_error 77 "cannot compute sizeof (unsigned long long)
4548See \`config.log' for more details" "$LINENO" 5; }
4549 else
4550 ac_cv_sizeof_unsigned_long_long=0
4551 fi
David McGrewfec49dd2005-09-23 19:34:11 +00004552fi
4553
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004554fi
jfigusc7e66e32013-05-08 11:32:55 -04004555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
4556$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004557
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004558
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004559
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004560cat >>confdefs.h <<_ACEOF
4561#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00004562_ACEOF
4563
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004564
Cullen Jennings235513a2005-09-21 22:51:36 +00004565
jfigusc7e66e32013-05-08 11:32:55 -04004566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4567$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4568if ${ac_cv_c_const+:} false; then :
4569 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004570else
jfigusc7e66e32013-05-08 11:32:55 -04004571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004572/* end confdefs.h. */
4573
4574int
4575main ()
4576{
jfigusc7e66e32013-05-08 11:32:55 -04004577
Cullen Jennings235513a2005-09-21 22:51:36 +00004578#ifndef __cplusplus
jfigusc7e66e32013-05-08 11:32:55 -04004579 /* Ultrix mips cc rejects this sort of thing. */
Cullen Jennings235513a2005-09-21 22:51:36 +00004580 typedef int charset[2];
jfigusc7e66e32013-05-08 11:32:55 -04004581 const charset cs = { 0, 0 };
Cullen Jennings235513a2005-09-21 22:51:36 +00004582 /* SunOS 4.1.1 cc rejects this. */
jfigusc7e66e32013-05-08 11:32:55 -04004583 char const *const *pcpcc;
4584 char **ppc;
Cullen Jennings235513a2005-09-21 22:51:36 +00004585 /* NEC SVR4.0.2 mips cc rejects this. */
4586 struct point {int x, y;};
4587 static struct point const zero = {0,0};
4588 /* AIX XL C 1.02.0.0 rejects this.
4589 It does not let you subtract one const X* pointer from another in
4590 an arm of an if-expression whose if-part is not a constant
4591 expression */
4592 const char *g = "string";
jfigusc7e66e32013-05-08 11:32:55 -04004593 pcpcc = &g + (g ? g-g : 0);
Cullen Jennings235513a2005-09-21 22:51:36 +00004594 /* HPUX 7.0 cc rejects these. */
jfigusc7e66e32013-05-08 11:32:55 -04004595 ++pcpcc;
4596 ppc = (char**) pcpcc;
4597 pcpcc = (char const *const *) ppc;
4598 { /* SCO 3.2v4 cc rejects this sort of thing. */
4599 char tx;
4600 char *t = &tx;
Cullen Jennings235513a2005-09-21 22:51:36 +00004601 char const *s = 0 ? (char *) 0 : (char const *) 0;
4602
4603 *t++ = 0;
jfigusc7e66e32013-05-08 11:32:55 -04004604 if (s) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004605 }
4606 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4607 int x[] = {25, 17};
4608 const int *foo = &x[0];
4609 ++foo;
4610 }
4611 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4612 typedef const int *iptr;
4613 iptr p = 0;
4614 ++p;
4615 }
jfigusc7e66e32013-05-08 11:32:55 -04004616 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Cullen Jennings235513a2005-09-21 22:51:36 +00004617 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
jfigusc7e66e32013-05-08 11:32:55 -04004618 struct s { int j; const int *ap[3]; } bx;
4619 struct s *b = &bx; b->j = 5;
Cullen Jennings235513a2005-09-21 22:51:36 +00004620 }
4621 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4622 const int foo = 10;
jfigusc7e66e32013-05-08 11:32:55 -04004623 if (!foo) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004624 }
jfigusc7e66e32013-05-08 11:32:55 -04004625 return !cs[0] && !zero.x;
Cullen Jennings235513a2005-09-21 22:51:36 +00004626#endif
4627
4628 ;
4629 return 0;
4630}
4631_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004632if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004633 ac_cv_c_const=yes
4634else
jfigusc7e66e32013-05-08 11:32:55 -04004635 ac_cv_c_const=no
Cullen Jennings235513a2005-09-21 22:51:36 +00004636fi
jfigusc7e66e32013-05-08 11:32:55 -04004637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004638fi
jfigusc7e66e32013-05-08 11:32:55 -04004639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4640$as_echo "$ac_cv_c_const" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004641if test $ac_cv_c_const = no; then
4642
jfigusc7e66e32013-05-08 11:32:55 -04004643$as_echo "#define const /**/" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004644
4645fi
4646
jfigusc7e66e32013-05-08 11:32:55 -04004647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4648$as_echo_n "checking for inline... " >&6; }
4649if ${ac_cv_c_inline+:} false; then :
4650 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004651else
4652 ac_cv_c_inline=no
4653for ac_kw in inline __inline__ __inline; do
jfigusc7e66e32013-05-08 11:32:55 -04004654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004655/* end confdefs.h. */
4656#ifndef __cplusplus
4657typedef int foo_t;
4658static $ac_kw foo_t static_foo () {return 0; }
4659$ac_kw foo_t foo () {return 0; }
4660#endif
4661
4662_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004663if ac_fn_c_try_compile "$LINENO"; then :
4664 ac_cv_c_inline=$ac_kw
Cullen Jennings235513a2005-09-21 22:51:36 +00004665fi
jfigusc7e66e32013-05-08 11:32:55 -04004666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 test "$ac_cv_c_inline" != no && break
Cullen Jennings235513a2005-09-21 22:51:36 +00004668done
4669
4670fi
jfigusc7e66e32013-05-08 11:32:55 -04004671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4672$as_echo "$ac_cv_c_inline" >&6; }
David McGrewfec49dd2005-09-23 19:34:11 +00004673
Cullen Jennings235513a2005-09-21 22:51:36 +00004674case $ac_cv_c_inline in
4675 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00004676 *)
4677 case $ac_cv_c_inline in
4678 no) ac_val=;;
4679 *) ac_val=$ac_cv_c_inline;;
4680 esac
4681 cat >>confdefs.h <<_ACEOF
4682#ifndef __cplusplus
4683#define inline $ac_val
4684#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00004685_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00004686 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00004687esac
4688
jfigusc7e66e32013-05-08 11:32:55 -04004689ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4690if test "x$ac_cv_type_size_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004691
Cullen Jennings235513a2005-09-21 22:51:36 +00004692else
4693
4694cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004695#define size_t unsigned int
Cullen Jennings235513a2005-09-21 22:51:36 +00004696_ACEOF
4697
4698fi
4699
4700
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00004701for ac_func in socket inet_aton usleep sigaction
jfigusc7e66e32013-05-08 11:32:55 -04004702do :
4703 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4704ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4705if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004706 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004707#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00004708_ACEOF
4709
4710fi
4711done
4712
4713
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004714if test "x$ac_cv_func_socket" = "xno"; then
jfigusc7e66e32013-05-08 11:32:55 -04004715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4716$as_echo_n "checking for socket in -lsocket... " >&6; }
4717if ${ac_cv_lib_socket_socket+:} false; then :
4718 $as_echo_n "(cached) " >&6
David McGrewb67061f2005-09-28 14:23:06 +00004719else
4720 ac_check_lib_save_LIBS=$LIBS
4721LIBS="-lsocket $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04004722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004723/* end confdefs.h. */
4724
jfigusc7e66e32013-05-08 11:32:55 -04004725/* Override any GCC internal prototype to avoid an error.
4726 Use char because int might match the return type of a GCC
4727 builtin and then its argument prototype would still apply. */
David McGrewb67061f2005-09-28 14:23:06 +00004728#ifdef __cplusplus
4729extern "C"
4730#endif
David McGrewb67061f2005-09-28 14:23:06 +00004731char socket ();
4732int
4733main ()
4734{
jfigusc7e66e32013-05-08 11:32:55 -04004735return socket ();
David McGrewb67061f2005-09-28 14:23:06 +00004736 ;
4737 return 0;
4738}
4739_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004740if ac_fn_c_try_link "$LINENO"; then :
David McGrewb67061f2005-09-28 14:23:06 +00004741 ac_cv_lib_socket_socket=yes
4742else
jfigusc7e66e32013-05-08 11:32:55 -04004743 ac_cv_lib_socket_socket=no
David McGrewb67061f2005-09-28 14:23:06 +00004744fi
jfigusc7e66e32013-05-08 11:32:55 -04004745rm -f core conftest.err conftest.$ac_objext \
4746 conftest$ac_exeext conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004747LIBS=$ac_check_lib_save_LIBS
4748fi
jfigusc7e66e32013-05-08 11:32:55 -04004749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4750$as_echo "$ac_cv_lib_socket_socket" >&6; }
4751if test "x$ac_cv_lib_socket_socket" = xyes; then :
David McGrewb67061f2005-09-28 14:23:06 +00004752 cat >>confdefs.h <<_ACEOF
4753#define HAVE_LIBSOCKET 1
4754_ACEOF
4755
4756 LIBS="-lsocket $LIBS"
4757
4758fi
4759
jfigusc7e66e32013-05-08 11:32:55 -04004760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
4761$as_echo_n "checking for socket in -lwsock32... " >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004762 SAVELIBS="$LIBS"
4763 LIBS="$LIBS -lwsock32"
jfigusc7e66e32013-05-08 11:32:55 -04004764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004765/* end confdefs.h. */
4766
4767#include <winsock2.h>
4768
4769int
4770main ()
4771{
4772
4773socket(0, 0, 0);
4774
4775 ;
4776 return 0;
4777}
4778_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004779if ac_fn_c_try_link "$LINENO"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004780 ac_cv_func_socket=yes
jfigusc7e66e32013-05-08 11:32:55 -04004781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4782$as_echo "yes" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004783else
jfigusc7e66e32013-05-08 11:32:55 -04004784 LIBS="$SAVELIBS"
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786$as_echo "no" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004787fi
jfigusc7e66e32013-05-08 11:32:55 -04004788rm -f core conftest.err conftest.$ac_objext \
4789 conftest$ac_exeext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004790fi
David McGrewb67061f2005-09-28 14:23:06 +00004791
jfigusc7e66e32013-05-08 11:32:55 -04004792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debugging" >&5
4793$as_echo_n "checking whether to compile in debugging... " >&6; }
4794# Check whether --enable-debug was given.
4795if test "${enable_debug+set}" = set; then :
4796 enableval=$enable_debug;
David McGrewb67061f2005-09-28 14:23:06 +00004797else
4798 enable_debug=yes
jfigusc7e66e32013-05-08 11:32:55 -04004799fi
4800
David McGrewb67061f2005-09-28 14:23:06 +00004801if test "$enable_debug" = "yes"; then
4802
jfigusc7e66e32013-05-08 11:32:55 -04004803$as_echo "#define ENABLE_DEBUGGING 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004804
4805fi
jfigusc7e66e32013-05-08 11:32:55 -04004806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
4807$as_echo "$enable_debug" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004808
jfigusc7e66e32013-05-08 11:32:55 -04004809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ISMAcryp code" >&5
4810$as_echo_n "checking whether to use ISMAcryp code... " >&6; }
4811# Check whether --enable-generic-aesicm was given.
4812if test "${enable_generic_aesicm+set}" = set; then :
4813 enableval=$enable_generic_aesicm;
David McGrewb67061f2005-09-28 14:23:06 +00004814else
4815 enable_generic_aesicm=no
jfigusc7e66e32013-05-08 11:32:55 -04004816fi
4817
David McGrewb67061f2005-09-28 14:23:06 +00004818if test "$enable_generic_aesicm" = "yes"; then
4819
jfigusc7e66e32013-05-08 11:32:55 -04004820$as_echo "#define GENERIC_AESICM 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04004821
jfigusa14b5a02013-03-29 12:24:12 -04004822fi
jfigusc7e66e32013-05-08 11:32:55 -04004823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generic_aesicm" >&5
4824$as_echo "$enable_generic_aesicm" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04004825
jfigusc7e66e32013-05-08 11:32:55 -04004826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
4827$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
4828# Check whether --enable-openssl was given.
4829if test "${enable_openssl+set}" = set; then :
4830 enableval=$enable_openssl;
4831else
4832 enable_openssl=no
4833fi
jfigusa14b5a02013-03-29 12:24:12 -04004834
jfigus2b486652014-07-24 15:01:41 -04004835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
4836$as_echo "$enable_openssl" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04004837if test "$enable_openssl" = "yes"; then
Sean Brightbfb9e302014-03-24 20:45:17 -04004838 LDFLAGS="$LDFLAGS $(pkg-config --libs openssl)";
4839 CFLAGS="$CFLAGS $(pkg-config --cflags openssl)";
Cullen Jenningse1de50f2013-05-22 12:27:28 -06004840
jfigusb5fad5f2015-02-26 12:25:08 -05004841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4842$as_echo_n "checking for dlopen in -ldl... " >&6; }
4843if ${ac_cv_lib_dl_dlopen+:} false; then :
4844 $as_echo_n "(cached) " >&6
4845else
4846 ac_check_lib_save_LIBS=$LIBS
4847LIBS="-ldl $LIBS"
4848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849/* end confdefs.h. */
4850
4851/* Override any GCC internal prototype to avoid an error.
4852 Use char because int might match the return type of a GCC
4853 builtin and then its argument prototype would still apply. */
4854#ifdef __cplusplus
4855extern "C"
4856#endif
4857char dlopen ();
4858int
4859main ()
4860{
4861return dlopen ();
4862 ;
4863 return 0;
4864}
4865_ACEOF
4866if ac_fn_c_try_link "$LINENO"; then :
4867 ac_cv_lib_dl_dlopen=yes
4868else
4869 ac_cv_lib_dl_dlopen=no
4870fi
4871rm -f core conftest.err conftest.$ac_objext \
4872 conftest$ac_exeext conftest.$ac_ext
4873LIBS=$ac_check_lib_save_LIBS
4874fi
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4876$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4877if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
4878 cat >>confdefs.h <<_ACEOF
4879#define HAVE_LIBDL 1
4880_ACEOF
4881
4882 LIBS="-ldl $LIBS"
4883
4884else
jfigus13fd6942015-03-02 09:09:13 -05004885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libdl" >&5
4886$as_echo "$as_me: WARNING: can't find libdl" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05004887fi
4888
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
4890$as_echo_n "checking for inflate in -lz... " >&6; }
4891if ${ac_cv_lib_z_inflate+:} false; then :
4892 $as_echo_n "(cached) " >&6
4893else
4894 ac_check_lib_save_LIBS=$LIBS
4895LIBS="-lz $LIBS"
4896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897/* end confdefs.h. */
4898
4899/* Override any GCC internal prototype to avoid an error.
4900 Use char because int might match the return type of a GCC
4901 builtin and then its argument prototype would still apply. */
4902#ifdef __cplusplus
4903extern "C"
4904#endif
4905char inflate ();
4906int
4907main ()
4908{
4909return inflate ();
4910 ;
4911 return 0;
4912}
4913_ACEOF
4914if ac_fn_c_try_link "$LINENO"; then :
4915 ac_cv_lib_z_inflate=yes
4916else
4917 ac_cv_lib_z_inflate=no
4918fi
4919rm -f core conftest.err conftest.$ac_objext \
4920 conftest$ac_exeext conftest.$ac_ext
4921LIBS=$ac_check_lib_save_LIBS
4922fi
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
4924$as_echo "$ac_cv_lib_z_inflate" >&6; }
4925if test "x$ac_cv_lib_z_inflate" = xyes; then :
4926 cat >>confdefs.h <<_ACEOF
4927#define HAVE_LIBZ 1
4928_ACEOF
4929
4930 LIBS="-lz $LIBS"
4931
4932else
jfigus13fd6942015-03-02 09:09:13 -05004933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libz" >&5
4934$as_echo "$as_me: WARNING: can't find libz" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05004935fi
4936
jfigusc7e66e32013-05-08 11:32:55 -04004937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
4938$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
4939if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
4940 $as_echo_n "(cached) " >&6
4941else
4942 ac_check_lib_save_LIBS=$LIBS
4943LIBS="-lcrypto $LIBS"
4944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945/* end confdefs.h. */
4946
4947/* Override any GCC internal prototype to avoid an error.
4948 Use char because int might match the return type of a GCC
4949 builtin and then its argument prototype would still apply. */
4950#ifdef __cplusplus
4951extern "C"
4952#endif
4953char EVP_EncryptInit ();
4954int
4955main ()
4956{
4957return EVP_EncryptInit ();
4958 ;
4959 return 0;
4960}
4961_ACEOF
4962if ac_fn_c_try_link "$LINENO"; then :
4963 ac_cv_lib_crypto_EVP_EncryptInit=yes
4964else
4965 ac_cv_lib_crypto_EVP_EncryptInit=no
4966fi
4967rm -f core conftest.err conftest.$ac_objext \
4968 conftest$ac_exeext conftest.$ac_ext
4969LIBS=$ac_check_lib_save_LIBS
4970fi
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
4972$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
4973if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
4974 cat >>confdefs.h <<_ACEOF
4975#define HAVE_LIBCRYPTO 1
4976_ACEOF
4977
4978 LIBS="-lcrypto $LIBS"
4979
4980else
4981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
jfigus5b22e372013-05-09 09:23:26 -04004983as_fn_error $? "can't find openssl >1.0.1 crypto lib
4984See \`config.log' for more details" "$LINENO" 5; }
4985fi
4986
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_ctr in -lcrypto" >&5
4988$as_echo_n "checking for EVP_aes_128_ctr in -lcrypto... " >&6; }
4989if ${ac_cv_lib_crypto_EVP_aes_128_ctr+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991else
4992 ac_check_lib_save_LIBS=$LIBS
4993LIBS="-lcrypto $LIBS"
4994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995/* end confdefs.h. */
4996
4997/* Override any GCC internal prototype to avoid an error.
4998 Use char because int might match the return type of a GCC
4999 builtin and then its argument prototype would still apply. */
5000#ifdef __cplusplus
5001extern "C"
5002#endif
5003char EVP_aes_128_ctr ();
5004int
5005main ()
5006{
5007return EVP_aes_128_ctr ();
5008 ;
5009 return 0;
5010}
5011_ACEOF
5012if ac_fn_c_try_link "$LINENO"; then :
5013 ac_cv_lib_crypto_EVP_aes_128_ctr=yes
5014else
5015 ac_cv_lib_crypto_EVP_aes_128_ctr=no
5016fi
5017rm -f core conftest.err conftest.$ac_objext \
5018 conftest$ac_exeext conftest.$ac_ext
5019LIBS=$ac_check_lib_save_LIBS
5020fi
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_ctr" >&5
5022$as_echo "$ac_cv_lib_crypto_EVP_aes_128_ctr" >&6; }
5023if test "x$ac_cv_lib_crypto_EVP_aes_128_ctr" = xyes; then :
5024 cat >>confdefs.h <<_ACEOF
5025#define HAVE_LIBCRYPTO 1
5026_ACEOF
5027
5028 LIBS="-lcrypto $LIBS"
5029
5030else
5031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5033as_fn_error $? "can't find openssl >1.0.1 crypto lib
jfigusc7e66e32013-05-08 11:32:55 -04005034See \`config.log' for more details" "$LINENO" 5; }
5035fi
5036
jfigus7882dd92013-08-02 16:08:23 -04005037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_gcm in -lcrypto" >&5
5038$as_echo_n "checking for EVP_aes_128_gcm in -lcrypto... " >&6; }
5039if ${ac_cv_lib_crypto_EVP_aes_128_gcm+:} false; then :
5040 $as_echo_n "(cached) " >&6
5041else
5042 ac_check_lib_save_LIBS=$LIBS
5043LIBS="-lcrypto $LIBS"
5044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045/* end confdefs.h. */
5046
5047/* Override any GCC internal prototype to avoid an error.
5048 Use char because int might match the return type of a GCC
5049 builtin and then its argument prototype would still apply. */
5050#ifdef __cplusplus
5051extern "C"
5052#endif
5053char EVP_aes_128_gcm ();
5054int
5055main ()
5056{
5057return EVP_aes_128_gcm ();
5058 ;
5059 return 0;
5060}
5061_ACEOF
5062if ac_fn_c_try_link "$LINENO"; then :
5063 ac_cv_lib_crypto_EVP_aes_128_gcm=yes
5064else
5065 ac_cv_lib_crypto_EVP_aes_128_gcm=no
5066fi
5067rm -f core conftest.err conftest.$ac_objext \
5068 conftest$ac_exeext conftest.$ac_ext
5069LIBS=$ac_check_lib_save_LIBS
5070fi
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_gcm" >&5
5072$as_echo "$ac_cv_lib_crypto_EVP_aes_128_gcm" >&6; }
5073if test "x$ac_cv_lib_crypto_EVP_aes_128_gcm" = xyes; then :
5074 cat >>confdefs.h <<_ACEOF
5075#define HAVE_LIBCRYPTO 1
5076_ACEOF
5077
5078 LIBS="-lcrypto $LIBS"
5079
5080else
5081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5083as_fn_error $? "can't find openssl >1.0.1 crypto lib
5084See \`config.log' for more details" "$LINENO" 5; }
5085fi
5086
jfigusc7e66e32013-05-08 11:32:55 -04005087
5088$as_echo "#define OPENSSL 1" >>confdefs.h
5089
jfigus7882dd92013-08-02 16:08:23 -04005090 AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
jfigusc7e66e32013-05-08 11:32:55 -04005091 RNG_OBJS=rand_source_ossl.o
5092 HMAC_OBJS=crypto/hash/hmac_ossl.o
5093 USE_OPENSSL=1
5094
5095else
5096 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o crypto/cipher/aes_cbc.o"
jfigus7882dd92013-08-02 16:08:23 -04005097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random device to use" >&5
5098$as_echo_n "checking which random device to use... " >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04005099 if test "$enable_kernel_linux" = "yes"; then
5100 RNG_OBJS=rand_linux_kernel.o
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux kernel builtin" >&5
5102$as_echo "Linux kernel builtin" >&6; }
5103 else
5104 RNG_OBJS=rand_source.o
5105 if test -n "$DEV_URANDOM"; then
5106
5107cat >>confdefs.h <<_ACEOF
5108#define DEV_URANDOM "$DEV_URANDOM"
5109_ACEOF
5110
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_URANDOM" >&5
5112$as_echo "$DEV_URANDOM" >&6; }
5113 else
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: standard rand() function..." >&5
5115$as_echo "standard rand() function..." >&6; }
5116 fi
5117 fi
5118 RNG_EXTRA_OBJS="crypto/rng/prng.o crypto/rng/ctr_prng.o"
5119 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
5120fi
5121
5122
5123
5124
jfigusc7e66e32013-05-08 11:32:55 -04005125
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
5127$as_echo_n "checking for pcap_create in -lpcap... " >&6; }
5128if ${ac_cv_lib_pcap_pcap_create+:} false; then :
5129 $as_echo_n "(cached) " >&6
5130else
5131 ac_check_lib_save_LIBS=$LIBS
5132LIBS="-lpcap $LIBS"
5133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134/* end confdefs.h. */
5135
5136/* Override any GCC internal prototype to avoid an error.
5137 Use char because int might match the return type of a GCC
5138 builtin and then its argument prototype would still apply. */
5139#ifdef __cplusplus
5140extern "C"
5141#endif
5142char pcap_create ();
5143int
5144main ()
5145{
5146return pcap_create ();
5147 ;
5148 return 0;
5149}
5150_ACEOF
5151if ac_fn_c_try_link "$LINENO"; then :
5152 ac_cv_lib_pcap_pcap_create=yes
5153else
5154 ac_cv_lib_pcap_pcap_create=no
5155fi
5156rm -f core conftest.err conftest.$ac_objext \
5157 conftest$ac_exeext conftest.$ac_ext
5158LIBS=$ac_check_lib_save_LIBS
5159fi
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
5161$as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
5162if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
Bernardo Torresb3c51422014-10-14 12:40:09 -03005163 PCAP=1
5164 LIBS="-lpcap $LIBS"
5165 HAVE_PCAP=1
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005166
Bernardo Torresb3c51422014-10-14 12:40:09 -03005167$as_echo "#define HAVE_PCAP 1" >>confdefs.h
5168
5169
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005170
5171fi
5172
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005173
jfigusc7e66e32013-05-08 11:32:55 -04005174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use syslog for error reporting" >&5
5175$as_echo_n "checking whether to use syslog for error reporting... " >&6; }
5176# Check whether --enable-syslog was given.
5177if test "${enable_syslog+set}" = set; then :
5178 enableval=$enable_syslog;
David McGrewb67061f2005-09-28 14:23:06 +00005179else
5180 enable_syslog=no
jfigusc7e66e32013-05-08 11:32:55 -04005181fi
5182
David McGrewb67061f2005-09-28 14:23:06 +00005183if test "$enable_syslog" = "yes"; then
5184
jfigusc7e66e32013-05-08 11:32:55 -04005185$as_echo "#define USE_SYSLOG 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005186
5187fi
jfigusc7e66e32013-05-08 11:32:55 -04005188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_syslog" >&5
5189$as_echo "$enable_syslog" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005190
jfigusc7e66e32013-05-08 11:32:55 -04005191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use stdout for error reporting" >&5
5192$as_echo_n "checking whether to use stdout for error reporting... " >&6; }
5193# Check whether --enable-stdout was given.
5194if test "${enable_stdout+set}" = set; then :
5195 enableval=$enable_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00005196else
5197 enable_stdout=yes
jfigusc7e66e32013-05-08 11:32:55 -04005198fi
5199
David McGrewb67061f2005-09-28 14:23:06 +00005200if test "$enable_stdout" = "yes"; then
5201
jfigusc7e66e32013-05-08 11:32:55 -04005202$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005203
5204fi
jfigusc7e66e32013-05-08 11:32:55 -04005205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdout" >&5
5206$as_echo "$enable_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005207
jfigusc7e66e32013-05-08 11:32:55 -04005208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use /dev/console for error reporting" >&5
5209$as_echo_n "checking whether to use /dev/console for error reporting... " >&6; }
5210# Check whether --enable-console was given.
5211if test "${enable_console+set}" = set; then :
5212 enableval=$enable_console;
David McGrewb67061f2005-09-28 14:23:06 +00005213else
5214 enable_console=no
jfigusc7e66e32013-05-08 11:32:55 -04005215fi
5216
David McGrewb67061f2005-09-28 14:23:06 +00005217if test "$enable_console" = "yes"; then
5218
jfigusc7e66e32013-05-08 11:32:55 -04005219$as_echo "#define USE_ERR_REPORTING_FILE 1" >>confdefs.h
David McGrewb67061f2005-09-28 14:23:06 +00005220
5221
jfigusc7e66e32013-05-08 11:32:55 -04005222$as_echo "#define ERR_REPORTING_FILE \"/dev/console\"" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005223
5224fi
jfigusc7e66e32013-05-08 11:32:55 -04005225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_console" >&5
5226$as_echo "$enable_console" >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00005227
jfigusc7e66e32013-05-08 11:32:55 -04005228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GDOI key management" >&5
5229$as_echo_n "checking whether to use GDOI key management... " >&6; }
5230# Check whether --enable-gdoi was given.
5231if test "${enable_gdoi+set}" = set; then :
5232 enableval=$enable_gdoi;
David McGrewb67061f2005-09-28 14:23:06 +00005233else
5234 enable_gdoi=no
jfigusc7e66e32013-05-08 11:32:55 -04005235fi
5236
David McGrewb67061f2005-09-28 14:23:06 +00005237if test "$enable_gdoi" = "yes"; then
5238
jfigusc7e66e32013-05-08 11:32:55 -04005239$as_echo "#define SRTP_GDOI 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005240
5241 GDOI_OBJS=gdoi/srtp+gdoi.o
5242
5243fi
jfigusc7e66e32013-05-08 11:32:55 -04005244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gdoi" >&5
5245$as_echo "$enable_gdoi" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005246
jfigusc7e66e32013-05-08 11:32:55 -04005247ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00005248
5249
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005250# Extract the first word of "pkg-config", so it can be a program name with args.
5251set dummy pkg-config; ac_word=$2
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253$as_echo_n "checking for $ac_word... " >&6; }
5254if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256else
5257 if test -n "$PKG_CONFIG"; then
5258 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5259else
5260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261for as_dir in $PATH
5262do
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5267 ac_cv_prog_PKG_CONFIG="yes"
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 break 2
5270 fi
5271done
5272 done
5273IFS=$as_save_IFS
5274
5275fi
5276fi
5277PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5278if test -n "$PKG_CONFIG"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5280$as_echo "$PKG_CONFIG" >&6; }
5281else
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283$as_echo "no" >&6; }
5284fi
5285
5286
5287if test "x$PKG_CONFIG" != "x"; then
5288 HAVE_PKG_CONFIG=1
5289 ac_config_files="$ac_config_files libsrtp.pc"
5290
5291else
5292 HAVE_PKG_CONFIG=0
5293fi
5294
jfigusc7e66e32013-05-08 11:32:55 -04005295ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile"
5296
Cullen Jennings235513a2005-09-21 22:51:36 +00005297cat >confcache <<\_ACEOF
5298# This file is a shell script that caches the results of configure
5299# tests run on this system so they can be shared between configure
5300# scripts and configure runs, see configure's option --config-cache.
5301# It is not useful on other systems. If it contains results you don't
5302# want to keep, you may remove or edit it.
5303#
5304# config.status only pays attention to the cache file if you give it
5305# the --recheck option to rerun configure.
5306#
5307# `ac_cv_env_foo' variables (set or unset) will be overridden when
5308# loading this file, other *unset* `ac_cv_foo' will be assigned the
5309# following values.
5310
5311_ACEOF
5312
5313# The following way of writing the cache mishandles newlines in values,
5314# but we know of no workaround that is simple, portable, and efficient.
jfigusc7e66e32013-05-08 11:32:55 -04005315# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00005316# Ultrix sh set writes to stderr and can't be redirected directly,
5317# and sets the high bit in the cache file unless we assign to the vars.
jfigusc7e66e32013-05-08 11:32:55 -04005318(
5319 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5320 eval ac_val=\$$ac_var
5321 case $ac_val in #(
5322 *${as_nl}*)
5323 case $ac_var in #(
5324 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5325$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5326 esac
5327 case $ac_var in #(
5328 _ | IFS | as_nl) ;; #(
5329 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5330 *) { eval $ac_var=; unset $ac_var;} ;;
5331 esac ;;
5332 esac
5333 done
5334
Cullen Jennings235513a2005-09-21 22:51:36 +00005335 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04005336 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5337 *${as_nl}ac_space=\ *)
5338 # `set' does not quote correctly, so add quotes: double-quote
5339 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00005340 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00005341 "s/'/'\\\\''/g;
5342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusc7e66e32013-05-08 11:32:55 -04005343 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00005344 *)
5345 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusc7e66e32013-05-08 11:32:55 -04005346 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00005347 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005348 esac |
5349 sort
5350) |
Cullen Jennings235513a2005-09-21 22:51:36 +00005351 sed '
jfigusc7e66e32013-05-08 11:32:55 -04005352 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00005353 t clear
jfigusc7e66e32013-05-08 11:32:55 -04005354 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00005355 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5356 t end
jfigusc7e66e32013-05-08 11:32:55 -04005357 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5358 :end' >>confcache
5359if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5360 if test -w "$cache_file"; then
5361 if test "x$cache_file" != "x/dev/null"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5363$as_echo "$as_me: updating cache $cache_file" >&6;}
5364 if test ! -f "$cache_file" || test -h "$cache_file"; then
5365 cat confcache >"$cache_file"
5366 else
5367 case $cache_file in #(
5368 */* | ?:*)
5369 mv -f confcache "$cache_file"$$ &&
5370 mv -f "$cache_file"$$ "$cache_file" ;; #(
5371 *)
5372 mv -f confcache "$cache_file" ;;
5373 esac
5374 fi
5375 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005376 else
jfigusc7e66e32013-05-08 11:32:55 -04005377 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5378$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00005379 fi
5380fi
5381rm -f confcache
5382
5383test "x$prefix" = xNONE && prefix=$ac_default_prefix
5384# Let make expand exec_prefix.
5385test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5386
Cullen Jennings235513a2005-09-21 22:51:36 +00005387DEFS=-DHAVE_CONFIG_H
5388
5389ac_libobjs=
5390ac_ltlibobjs=
jfigusc7e66e32013-05-08 11:32:55 -04005391U=
Cullen Jennings235513a2005-09-21 22:51:36 +00005392for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5393 # 1. Remove the extension, and $U if already installed.
jfigusc7e66e32013-05-08 11:32:55 -04005394 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5395 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5396 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5397 # will be set to the directory where LIBOBJS objects are built.
5398 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5399 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00005400done
5401LIBOBJS=$ac_libobjs
5402
5403LTLIBOBJS=$ac_ltlibobjs
5404
5405
5406
jfigusc7e66e32013-05-08 11:32:55 -04005407
5408: "${CONFIG_STATUS=./config.status}"
5409ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00005410ac_clean_files_save=$ac_clean_files
5411ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusc7e66e32013-05-08 11:32:55 -04005412{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5413$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5414as_write_fail=0
5415cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005416#! $SHELL
5417# Generated by $as_me.
5418# Run this file to recreate the current configuration.
5419# Compiler output produced by configure, useful for debugging
5420# configure, is in config.log if it exists.
5421
5422debug=false
5423ac_cs_recheck=false
5424ac_cs_silent=false
jfigusc7e66e32013-05-08 11:32:55 -04005425
Cullen Jennings235513a2005-09-21 22:51:36 +00005426SHELL=\${CONFIG_SHELL-$SHELL}
jfigusc7e66e32013-05-08 11:32:55 -04005427export SHELL
5428_ASEOF
5429cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5430## -------------------- ##
5431## M4sh Initialization. ##
5432## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00005433
jfigusc7e66e32013-05-08 11:32:55 -04005434# Be more Bourne compatible
5435DUALCASE=1; export DUALCASE # for MKS sh
5436if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005437 emulate sh
5438 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -04005439 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00005440 # is contrary to our usage. Disable this feature.
5441 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -04005442 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00005443else
jfigusc7e66e32013-05-08 11:32:55 -04005444 case `(set -o) 2>/dev/null` in #(
5445 *posix*) :
5446 set -o posix ;; #(
5447 *) :
5448 ;;
5449esac
Cullen Jennings235513a2005-09-21 22:51:36 +00005450fi
5451
5452
jfigusc7e66e32013-05-08 11:32:55 -04005453as_nl='
5454'
5455export as_nl
5456# Printing a long string crashes Solaris 7 /usr/bin/printf.
5457as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5458as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5459as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5460# Prefer a ksh shell builtin over an external printf program on Solaris,
5461# but without wasting forks for bash or zsh.
5462if test -z "$BASH_VERSION$ZSH_VERSION" \
5463 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5464 as_echo='print -r --'
5465 as_echo_n='print -rn --'
5466elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5467 as_echo='printf %s\n'
5468 as_echo_n='printf %s'
5469else
5470 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5471 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5472 as_echo_n='/usr/ucb/echo -n'
5473 else
5474 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5475 as_echo_n_body='eval
5476 arg=$1;
5477 case $arg in #(
5478 *"$as_nl"*)
5479 expr "X$arg" : "X\\(.*\\)$as_nl";
5480 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5481 esac;
5482 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5483 '
5484 export as_echo_n_body
5485 as_echo_n='sh -c $as_echo_n_body as_echo'
5486 fi
5487 export as_echo_body
5488 as_echo='sh -c $as_echo_body as_echo'
5489fi
5490
5491# The user is always right.
5492if test "${PATH_SEPARATOR+set}" != set; then
5493 PATH_SEPARATOR=:
5494 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5495 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5496 PATH_SEPARATOR=';'
5497 }
5498fi
5499
5500
5501# IFS
5502# We need space, tab and new line, in precisely that order. Quoting is
5503# there to prevent editors from complaining about space-tab.
5504# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5505# splitting by setting IFS to empty value.)
5506IFS=" "" $as_nl"
5507
5508# Find who we are. Look in the path if we contain no directory separator.
5509as_myself=
5510case $0 in #((
5511 *[\\/]* ) as_myself=$0 ;;
5512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513for as_dir in $PATH
5514do
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
5517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5518 done
5519IFS=$as_save_IFS
5520
5521 ;;
5522esac
5523# We did not find ourselves, most probably we were run as `sh COMMAND'
5524# in which case we are not to be found in the path.
5525if test "x$as_myself" = x; then
5526 as_myself=$0
5527fi
5528if test ! -f "$as_myself"; then
5529 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5530 exit 1
5531fi
5532
5533# Unset variables that we do not need and which cause bugs (e.g. in
5534# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5535# suppresses any "Segmentation fault" message there. '((' could
5536# trigger a bug in pdksh 5.2.14.
5537for as_var in BASH_ENV ENV MAIL MAILPATH
5538do eval test x\${$as_var+set} = xset \
5539 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5540done
Cullen Jennings235513a2005-09-21 22:51:36 +00005541PS1='$ '
5542PS2='> '
5543PS4='+ '
5544
5545# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -04005546LC_ALL=C
5547export LC_ALL
5548LANGUAGE=C
5549export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -04005550
jfigusc7e66e32013-05-08 11:32:55 -04005551# CDPATH.
5552(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5553
5554
5555# as_fn_error STATUS ERROR [LINENO LOG_FD]
5556# ----------------------------------------
5557# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5558# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5559# script with STATUS, using 1 if that was 0.
5560as_fn_error ()
5561{
5562 as_status=$1; test $as_status -eq 0 && as_status=1
5563 if test "$4"; then
5564 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5565 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5566 fi
5567 $as_echo "$as_me: error: $2" >&2
5568 as_fn_exit $as_status
5569} # as_fn_error
5570
5571
5572# as_fn_set_status STATUS
5573# -----------------------
5574# Set $? to STATUS, without forking.
5575as_fn_set_status ()
5576{
5577 return $1
5578} # as_fn_set_status
5579
5580# as_fn_exit STATUS
5581# -----------------
5582# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5583as_fn_exit ()
5584{
5585 set +e
5586 as_fn_set_status $1
5587 exit $1
5588} # as_fn_exit
5589
5590# as_fn_unset VAR
5591# ---------------
5592# Portably unset VAR.
5593as_fn_unset ()
5594{
5595 { eval $1=; unset $1;}
5596}
5597as_unset=as_fn_unset
5598# as_fn_append VAR VALUE
5599# ----------------------
5600# Append the text in VALUE to the end of the definition contained in VAR. Take
5601# advantage of any shell optimizations that allow amortized linear growth over
5602# repeated appends, instead of the typical quadratic growth present in naive
5603# implementations.
5604if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5605 eval 'as_fn_append ()
5606 {
5607 eval $1+=\$2
5608 }'
5609else
5610 as_fn_append ()
5611 {
5612 eval $1=\$$1\$2
5613 }
5614fi # as_fn_append
5615
5616# as_fn_arith ARG...
5617# ------------------
5618# Perform arithmetic evaluation on the ARGs, and store the result in the
5619# global $as_val. Take advantage of shells that can avoid forks. The arguments
5620# must be portable across $(()) and expr.
5621if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5622 eval 'as_fn_arith ()
5623 {
5624 as_val=$(( $* ))
5625 }'
5626else
5627 as_fn_arith ()
5628 {
5629 as_val=`expr "$@" || test $? -eq 1`
5630 }
5631fi # as_fn_arith
5632
5633
5634if expr a : '\(a\)' >/dev/null 2>&1 &&
5635 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005636 as_expr=expr
5637else
5638 as_expr=false
5639fi
5640
jfigusc7e66e32013-05-08 11:32:55 -04005641if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005642 as_basename=basename
5643else
5644 as_basename=false
5645fi
5646
jfigusc7e66e32013-05-08 11:32:55 -04005647if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5648 as_dirname=dirname
5649else
5650 as_dirname=false
5651fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005652
jfigusc7e66e32013-05-08 11:32:55 -04005653as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00005654$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5655 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04005656 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5657$as_echo X/"$0" |
5658 sed '/^.*\/\([^/][^/]*\)\/*$/{
5659 s//\1/
5660 q
5661 }
5662 /^X\/\(\/\/\)$/{
5663 s//\1/
5664 q
5665 }
5666 /^X\/\(\/\).*/{
5667 s//\1/
5668 q
5669 }
5670 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005671
Cullen Jennings235513a2005-09-21 22:51:36 +00005672# Avoid depending upon Character Ranges.
5673as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5674as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5675as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5676as_cr_digits='0123456789'
5677as_cr_alnum=$as_cr_Letters$as_cr_digits
5678
jfigusc7e66e32013-05-08 11:32:55 -04005679ECHO_C= ECHO_N= ECHO_T=
5680case `echo -n x` in #(((((
5681-n*)
5682 case `echo 'xy\c'` in
5683 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5684 xy) ECHO_C='\c';;
5685 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5686 ECHO_T=' ';;
5687 esac;;
5688*)
5689 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00005690esac
5691
Cullen Jennings235513a2005-09-21 22:51:36 +00005692rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -04005693if test -d conf$$.dir; then
5694 rm -f conf$$.dir/conf$$.file
5695else
5696 rm -f conf$$.dir
5697 mkdir conf$$.dir 2>/dev/null
5698fi
5699if (echo >conf$$.file) 2>/dev/null; then
5700 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005701 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -04005702 # ... but there are two gotchas:
5703 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5704 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5705 # In both cases, we have to default to `cp -pR'.
5706 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5707 as_ln_s='cp -pR'
5708 elif ln conf$$.file conf$$ 2>/dev/null; then
5709 as_ln_s=ln
5710 else
5711 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005712 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005713else
jfigusc7e66e32013-05-08 11:32:55 -04005714 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005715fi
jfigusc7e66e32013-05-08 11:32:55 -04005716rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5717rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00005718
jfigusc7e66e32013-05-08 11:32:55 -04005719
5720# as_fn_mkdir_p
5721# -------------
5722# Create "$as_dir" as a directory, including parents if necessary.
5723as_fn_mkdir_p ()
5724{
5725
5726 case $as_dir in #(
5727 -*) as_dir=./$as_dir;;
5728 esac
5729 test -d "$as_dir" || eval $as_mkdir_p || {
5730 as_dirs=
5731 while :; do
5732 case $as_dir in #(
5733 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5734 *) as_qdir=$as_dir;;
5735 esac
5736 as_dirs="'$as_qdir' $as_dirs"
5737 as_dir=`$as_dirname -- "$as_dir" ||
5738$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5739 X"$as_dir" : 'X\(//\)[^/]' \| \
5740 X"$as_dir" : 'X\(//\)$' \| \
5741 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5742$as_echo X"$as_dir" |
5743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5744 s//\1/
5745 q
5746 }
5747 /^X\(\/\/\)[^/].*/{
5748 s//\1/
5749 q
5750 }
5751 /^X\(\/\/\)$/{
5752 s//\1/
5753 q
5754 }
5755 /^X\(\/\).*/{
5756 s//\1/
5757 q
5758 }
5759 s/.*/./; q'`
5760 test -d "$as_dir" && break
5761 done
5762 test -z "$as_dirs" || eval "mkdir $as_dirs"
5763 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5764
5765
5766} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005767if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -04005768 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00005769else
David McGrewfec49dd2005-09-23 19:34:11 +00005770 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00005771 as_mkdir_p=false
5772fi
5773
jfigusc7e66e32013-05-08 11:32:55 -04005774
5775# as_fn_executable_p FILE
5776# -----------------------
5777# Test if FILE is an executable regular file.
5778as_fn_executable_p ()
5779{
5780 test -f "$1" && test -x "$1"
5781} # as_fn_executable_p
5782as_test_x='test -x'
5783as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005784
5785# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00005786as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005787
5788# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00005789as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005790
5791
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005792exec 6>&1
jfigusc7e66e32013-05-08 11:32:55 -04005793## ----------------------------------- ##
5794## Main body of $CONFIG_STATUS script. ##
5795## ----------------------------------- ##
5796_ASEOF
5797test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005798
jfigusc7e66e32013-05-08 11:32:55 -04005799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5800# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00005801# report actual input values of CONFIG_FILES etc. instead of their
jfigusc7e66e32013-05-08 11:32:55 -04005802# values after options handling.
5803ac_log="
jfiguse806a662015-03-11 10:02:12 -04005804This file was extended by libsrtp $as_me 1.5.2, which was
jfigusc7e66e32013-05-08 11:32:55 -04005805generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00005806
5807 CONFIG_FILES = $CONFIG_FILES
5808 CONFIG_HEADERS = $CONFIG_HEADERS
5809 CONFIG_LINKS = $CONFIG_LINKS
5810 CONFIG_COMMANDS = $CONFIG_COMMANDS
5811 $ $0 $@
5812
jfigusc7e66e32013-05-08 11:32:55 -04005813on `(hostname || uname -n) 2>/dev/null | sed 1q`
5814"
5815
Cullen Jennings235513a2005-09-21 22:51:36 +00005816_ACEOF
5817
jfigusc7e66e32013-05-08 11:32:55 -04005818case $ac_config_files in *"
5819"*) set x $ac_config_files; shift; ac_config_files=$*;;
5820esac
5821
5822case $ac_config_headers in *"
5823"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5824esac
5825
5826
5827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005828# Files that config.status was made for.
jfigusc7e66e32013-05-08 11:32:55 -04005829config_files="$ac_config_files"
5830config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00005831
jfigusc7e66e32013-05-08 11:32:55 -04005832_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005833
jfigusc7e66e32013-05-08 11:32:55 -04005834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005835ac_cs_usage="\
jfigusc7e66e32013-05-08 11:32:55 -04005836\`$as_me' instantiates files and other configuration actions
5837from templates according to the current configuration. Unless the files
5838and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00005839
jfigusc7e66e32013-05-08 11:32:55 -04005840Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00005841
5842 -h, --help print this help, then exit
jfigusc7e66e32013-05-08 11:32:55 -04005843 -V, --version print version number and configuration settings, then exit
5844 --config print configuration, then exit
5845 -q, --quiet, --silent
5846 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00005847 -d, --debug don't remove temporary files
5848 --recheck update $as_me by reconfiguring in the same conditions
jfigusc7e66e32013-05-08 11:32:55 -04005849 --file=FILE[:TEMPLATE]
5850 instantiate the configuration file FILE
5851 --header=FILE[:TEMPLATE]
5852 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00005853
5854Configuration files:
5855$config_files
5856
5857Configuration headers:
5858$config_headers
5859
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005860Report bugs to <https://github.com/cisco/libsrtp/issues>."
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005861
jfigusc7e66e32013-05-08 11:32:55 -04005862_ACEOF
5863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5864ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00005865ac_cs_version="\\
jfiguse806a662015-03-11 10:02:12 -04005866libsrtp config.status 1.5.2
jfigusc7e66e32013-05-08 11:32:55 -04005867configured by $0, generated by GNU Autoconf 2.69,
5868 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00005869
jfigusc7e66e32013-05-08 11:32:55 -04005870Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00005871This config.status script is free software; the Free Software Foundation
5872gives unlimited permission to copy, distribute and modify it."
jfigusc7e66e32013-05-08 11:32:55 -04005873
5874ac_pwd='$ac_pwd'
5875srcdir='$srcdir'
5876INSTALL='$INSTALL'
5877test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00005878_ACEOF
5879
jfigusc7e66e32013-05-08 11:32:55 -04005880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5881# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00005882ac_need_defaults=:
5883while test $# != 0
5884do
5885 case $1 in
jfigusc7e66e32013-05-08 11:32:55 -04005886 --*=?*)
5887 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5888 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005889 ac_shift=:
5890 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005891 --*=)
5892 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5893 ac_optarg=
5894 ac_shift=:
5895 ;;
5896 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00005897 ac_option=$1
5898 ac_optarg=$2
5899 ac_shift=shift
5900 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005901 esac
5902
5903 case $ac_option in
5904 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00005905 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5906 ac_cs_recheck=: ;;
jfigusc7e66e32013-05-08 11:32:55 -04005907 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5908 $as_echo "$ac_cs_version"; exit ;;
5909 --config | --confi | --conf | --con | --co | --c )
5910 $as_echo "$ac_cs_config"; exit ;;
5911 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00005912 debug=: ;;
5913 --file | --fil | --fi | --f )
5914 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04005915 case $ac_optarg in
5916 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5917 '') as_fn_error $? "missing file argument" ;;
5918 esac
5919 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005920 ac_need_defaults=false;;
5921 --header | --heade | --head | --hea )
5922 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04005923 case $ac_optarg in
5924 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5925 esac
5926 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005927 ac_need_defaults=false;;
jfigusc7e66e32013-05-08 11:32:55 -04005928 --he | --h)
5929 # Conflict between --help and --header
5930 as_fn_error $? "ambiguous option: \`$1'
5931Try \`$0 --help' for more information.";;
5932 --help | --hel | -h )
5933 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005934 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5935 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5936 ac_cs_silent=: ;;
5937
5938 # This is an error.
jfigusc7e66e32013-05-08 11:32:55 -04005939 -*) as_fn_error $? "unrecognized option: \`$1'
5940Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005941
jfigusc7e66e32013-05-08 11:32:55 -04005942 *) as_fn_append ac_config_targets " $1"
5943 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005944
5945 esac
5946 shift
5947done
5948
5949ac_configure_extra_args=
5950
5951if $ac_cs_silent; then
5952 exec 6>/dev/null
5953 ac_configure_extra_args="$ac_configure_extra_args --silent"
5954fi
5955
5956_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005958if \$ac_cs_recheck; then
jfigusc7e66e32013-05-08 11:32:55 -04005959 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5960 shift
5961 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5962 CONFIG_SHELL='$SHELL'
5963 export CONFIG_SHELL
5964 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00005965fi
5966
5967_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5969exec 5>>config.log
5970{
5971 echo
5972 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5973## Running $as_me. ##
5974_ASBOX
5975 $as_echo "$ac_log"
5976} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00005977
jfigusc7e66e32013-05-08 11:32:55 -04005978_ACEOF
5979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5980_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005981
jfigusc7e66e32013-05-08 11:32:55 -04005982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005983
jfigusc7e66e32013-05-08 11:32:55 -04005984# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00005985for ac_config_target in $ac_config_targets
5986do
jfigusc7e66e32013-05-08 11:32:55 -04005987 case $ac_config_target in
5988 "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005989 "libsrtp.pc") CONFIG_FILES="$CONFIG_FILES libsrtp.pc" ;;
jfigusc7e66e32013-05-08 11:32:55 -04005990 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5991 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
5992 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5993
5994 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005995 esac
5996done
5997
jfigusc7e66e32013-05-08 11:32:55 -04005998
Cullen Jennings235513a2005-09-21 22:51:36 +00005999# If the user did not use the arguments to specify the items to instantiate,
6000# then the envvar interface is used. Set only those that are not.
6001# We use the long form for the default assignment because of an extremely
6002# bizarre bug on SunOS 4.1.3.
6003if $ac_need_defaults; then
6004 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6005 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6006fi
6007
6008# Have a temporary directory for convenience. Make it in the build tree
jfigusc7e66e32013-05-08 11:32:55 -04006009# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00006010# creating and moving files from /tmp can sometimes cause problems.
jfigusc7e66e32013-05-08 11:32:55 -04006011# Hook for its removal unless debugging.
6012# Note that there is a small window in which the directory will not be cleaned:
6013# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00006014$debug ||
6015{
jfigusc7e66e32013-05-08 11:32:55 -04006016 tmp= ac_tmp=
6017 trap 'exit_status=$?
6018 : "${ac_tmp:=$tmp}"
6019 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6020' 0
6021 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00006022}
Cullen Jennings235513a2005-09-21 22:51:36 +00006023# Create a (secure) tmp directory for tmp files.
6024
6025{
jfigusc7e66e32013-05-08 11:32:55 -04006026 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6027 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00006028} ||
6029{
jfigusc7e66e32013-05-08 11:32:55 -04006030 tmp=./conf$$-$RANDOM
6031 (umask 077 && mkdir "$tmp")
6032} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6033ac_tmp=$tmp
6034
6035# Set up the scripts for CONFIG_FILES section.
6036# No need to generate them if there are no CONFIG_FILES.
6037# This happens for instance with `./config.status config.h'.
6038if test -n "$CONFIG_FILES"; then
6039
6040
6041ac_cr=`echo X | tr X '\015'`
6042# On cygwin, bash can eat \r inside `` if the user requested igncr.
6043# But we know of no other shell where ac_cr would be empty at this
6044# point, so we can use a bashism as a fallback.
6045if test "x$ac_cr" = x; then
6046 eval ac_cr=\$\'\\r\'
6047fi
6048ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6049if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6050 ac_cs_awk_cr='\\r'
6051else
6052 ac_cs_awk_cr=$ac_cr
6053fi
6054
6055echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6056_ACEOF
6057
6058
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006059{
jfigusc7e66e32013-05-08 11:32:55 -04006060 echo "cat >conf$$subs.awk <<_ACEOF" &&
6061 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6062 echo "_ACEOF"
6063} >conf$$subs.sh ||
6064 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6065ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6066ac_delim='%!_!# '
6067for ac_last_try in false false false false false :; do
6068 . ./conf$$subs.sh ||
6069 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6070
6071 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6072 if test $ac_delim_n = $ac_delim_num; then
6073 break
6074 elif $ac_last_try; then
6075 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6076 else
6077 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6078 fi
6079done
6080rm -f conf$$subs.sh
6081
6082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6083cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6084_ACEOF
6085sed -n '
6086h
6087s/^/S["/; s/!.*/"]=/
6088p
6089g
6090s/^[^!]*!//
6091:repl
6092t repl
6093s/'"$ac_delim"'$//
6094t delim
6095:nl
6096h
6097s/\(.\{148\}\)..*/\1/
6098t more1
6099s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6100p
6101n
6102b repl
6103:more1
6104s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6105p
6106g
6107s/.\{148\}//
6108t nl
6109:delim
6110h
6111s/\(.\{148\}\)..*/\1/
6112t more2
6113s/["\\]/\\&/g; s/^/"/; s/$/"/
6114p
6115b
6116:more2
6117s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6118p
6119g
6120s/.\{148\}//
6121t delim
6122' <conf$$subs.awk | sed '
6123/^[^""]/{
6124 N
6125 s/\n//
6126}
6127' >>$CONFIG_STATUS || ac_write_fail=1
6128rm -f conf$$subs.awk
6129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6130_ACAWK
6131cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6132 for (key in S) S_is_set[key] = 1
6133 FS = ""
6134
6135}
6136{
6137 line = $ 0
6138 nfields = split(line, field, "@")
6139 substed = 0
6140 len = length(field[1])
6141 for (i = 2; i < nfields; i++) {
6142 key = field[i]
6143 keylen = length(key)
6144 if (S_is_set[key]) {
6145 value = S[key]
6146 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6147 len += length(value) + length(field[++i])
6148 substed = 1
6149 } else
6150 len += 1 + keylen
6151 }
6152
6153 print line
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006154}
jfigusa14b5a02013-03-29 12:24:12 -04006155
jfigusc7e66e32013-05-08 11:32:55 -04006156_ACAWK
6157_ACEOF
6158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6159if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6160 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6161else
6162 cat
6163fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6164 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
jfigusa14b5a02013-03-29 12:24:12 -04006165_ACEOF
6166
jfigusc7e66e32013-05-08 11:32:55 -04006167# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6168# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6169# trailing colons and then remove the whole line if VPATH becomes empty
6170# (actually we leave an empty line to preserve line numbers).
6171if test "x$srcdir" = x.; then
6172 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6173h
6174s///
6175s/^/:/
6176s/[ ]*$/:/
6177s/:\$(srcdir):/:/g
6178s/:\${srcdir}:/:/g
6179s/:@srcdir@:/:/g
6180s/^:*//
6181s/:*$//
6182x
6183s/\(=[ ]*\).*/\1/
6184G
6185s/\n//
6186s/^[^=]*=[ ]*$//
6187}'
6188fi
jfigusa14b5a02013-03-29 12:24:12 -04006189
jfigusc7e66e32013-05-08 11:32:55 -04006190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006191fi # test -n "$CONFIG_FILES"
6192
jfigusc7e66e32013-05-08 11:32:55 -04006193# Set up the scripts for CONFIG_HEADERS section.
6194# No need to generate them if there are no CONFIG_HEADERS.
6195# This happens for instance with `./config.status Makefile'.
6196if test -n "$CONFIG_HEADERS"; then
6197cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6198BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00006199_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006200
6201# Transform confdefs.h into an awk script `defines.awk', embedded as
6202# here-document in config.status, that substitutes the proper values into
6203# config.h.in to produce config.h.
6204
6205# Create a delimiter string that does not exist in confdefs.h, to ease
6206# handling of long lines.
6207ac_delim='%!_!# '
6208for ac_last_try in false false :; do
6209 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6210 if test -z "$ac_tt"; then
6211 break
6212 elif $ac_last_try; then
6213 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6214 else
6215 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6216 fi
6217done
6218
6219# For the awk script, D is an array of macro values keyed by name,
6220# likewise P contains macro parameters if any. Preserve backslash
6221# newline sequences.
6222
6223ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6224sed -n '
6225s/.\{148\}/&'"$ac_delim"'/g
6226t rset
6227:rset
6228s/^[ ]*#[ ]*define[ ][ ]*/ /
6229t def
6230d
6231:def
6232s/\\$//
6233t bsnl
6234s/["\\]/\\&/g
6235s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6236D["\1"]=" \3"/p
6237s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6238d
6239:bsnl
6240s/["\\]/\\&/g
6241s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6242D["\1"]=" \3\\\\\\n"\\/p
6243t cont
6244s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6245t cont
6246d
6247:cont
6248n
6249s/.\{148\}/&'"$ac_delim"'/g
6250t clear
6251:clear
6252s/\\$//
6253t bsnlc
6254s/["\\]/\\&/g; s/^/"/; s/$/"/p
6255d
6256:bsnlc
6257s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6258b cont
6259' <confdefs.h | sed '
6260s/'"$ac_delim"'/"\\\
6261"/g' >>$CONFIG_STATUS || ac_write_fail=1
6262
6263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6264 for (key in D) D_is_set[key] = 1
6265 FS = ""
6266}
6267/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6268 line = \$ 0
6269 split(line, arg, " ")
6270 if (arg[1] == "#") {
6271 defundef = arg[2]
6272 mac1 = arg[3]
6273 } else {
6274 defundef = substr(arg[1], 2)
6275 mac1 = arg[2]
6276 }
6277 split(mac1, mac2, "(") #)
6278 macro = mac2[1]
6279 prefix = substr(line, 1, index(line, defundef) - 1)
6280 if (D_is_set[macro]) {
6281 # Preserve the white space surrounding the "#".
6282 print prefix "define", macro P[macro] D[macro]
6283 next
6284 } else {
6285 # Replace #undef with comments. This is necessary, for example,
6286 # in the case of _POSIX_SOURCE, which is predefined and required
6287 # on some systems where configure will not decide to define it.
6288 if (defundef == "undef") {
6289 print "/*", prefix defundef, macro, "*/"
6290 next
6291 }
6292 }
6293}
6294{ print }
6295_ACAWK
6296_ACEOF
6297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6298 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6299fi # test -n "$CONFIG_HEADERS"
6300
6301
6302eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6303shift
6304for ac_tag
6305do
6306 case $ac_tag in
6307 :[FHLC]) ac_mode=$ac_tag; continue;;
6308 esac
6309 case $ac_mode$ac_tag in
6310 :[FHL]*:*);;
6311 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6312 :[FH]-) ac_tag=-:-;;
6313 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6314 esac
6315 ac_save_IFS=$IFS
6316 IFS=:
6317 set x $ac_tag
6318 IFS=$ac_save_IFS
6319 shift
6320 ac_file=$1
6321 shift
6322
6323 case $ac_mode in
6324 :L) ac_source=$1;;
6325 :[FH])
6326 ac_file_inputs=
6327 for ac_f
6328 do
6329 case $ac_f in
6330 -) ac_f="$ac_tmp/stdin";;
6331 *) # Look for the file first in the build tree, then in the source tree
6332 # (if the path is not absolute). The absolute path cannot be DOS-style,
6333 # because $ac_f cannot contain `:'.
6334 test -f "$ac_f" ||
6335 case $ac_f in
6336 [\\/$]*) false;;
6337 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6338 esac ||
6339 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6340 esac
6341 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6342 as_fn_append ac_file_inputs " '$ac_f'"
6343 done
6344
6345 # Let's still pretend it is `configure' which instantiates (i.e., don't
6346 # use $as_me), people would be surprised to read:
6347 # /* config.h. Generated by config.status. */
6348 configure_input='Generated from '`
6349 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6350 `' by configure.'
6351 if test x"$ac_file" != x-; then
6352 configure_input="$ac_file. $configure_input"
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6354$as_echo "$as_me: creating $ac_file" >&6;}
6355 fi
6356 # Neutralize special characters interpreted by sed in replacement strings.
6357 case $configure_input in #(
6358 *\&* | *\|* | *\\* )
6359 ac_sed_conf_input=`$as_echo "$configure_input" |
6360 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6361 *) ac_sed_conf_input=$configure_input;;
6362 esac
6363
6364 case $ac_tag in
6365 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6366 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6367 esac
6368 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006369 esac
6370
jfigusc7e66e32013-05-08 11:32:55 -04006371 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006372$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006373 X"$ac_file" : 'X\(//\)[^/]' \| \
6374 X"$ac_file" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006375 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6376$as_echo X"$ac_file" |
6377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6378 s//\1/
6379 q
6380 }
6381 /^X\(\/\/\)[^/].*/{
6382 s//\1/
6383 q
6384 }
6385 /^X\(\/\/\)$/{
6386 s//\1/
6387 q
6388 }
6389 /^X\(\/\).*/{
6390 s//\1/
6391 q
6392 }
6393 s/.*/./; q'`
6394 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006395 ac_builddir=.
6396
jfigusc7e66e32013-05-08 11:32:55 -04006397case "$ac_dir" in
6398.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6399*)
6400 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6401 # A ".." for each directory in $ac_dir_suffix.
6402 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6403 case $ac_top_builddir_sub in
6404 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6405 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6406 esac ;;
6407esac
6408ac_abs_top_builddir=$ac_pwd
6409ac_abs_builddir=$ac_pwd$ac_dir_suffix
6410# for backward compatibility:
6411ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00006412
6413case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04006414 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00006415 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04006416 ac_top_srcdir=$ac_top_builddir_sub
6417 ac_abs_top_srcdir=$ac_pwd ;;
6418 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00006419 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04006420 ac_top_srcdir=$srcdir
6421 ac_abs_top_srcdir=$srcdir ;;
6422 *) # Relative name.
6423 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6424 ac_top_srcdir=$ac_top_build_prefix$srcdir
6425 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006426esac
jfigusc7e66e32013-05-08 11:32:55 -04006427ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00006428
Cullen Jennings235513a2005-09-21 22:51:36 +00006429
jfigusc7e66e32013-05-08 11:32:55 -04006430 case $ac_mode in
6431 :F)
6432 #
6433 # CONFIG_FILE
6434 #
Cullen Jennings235513a2005-09-21 22:51:36 +00006435
David McGrewb67061f2005-09-28 14:23:06 +00006436 case $INSTALL in
6437 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusc7e66e32013-05-08 11:32:55 -04006438 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00006439 esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006440_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006441
6442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6443# If the template does not know about datarootdir, expand it.
6444# FIXME: This hack should be removed a few years after 2.60.
6445ac_datarootdir_hack=; ac_datarootdir_seen=
6446ac_sed_dataroot='
6447/datarootdir/ {
6448 p
6449 q
6450}
6451/@datadir@/p
6452/@docdir@/p
6453/@infodir@/p
6454/@localedir@/p
6455/@mandir@/p'
6456case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6457*datarootdir*) ac_datarootdir_seen=yes;;
6458*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6460$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6461_ACEOF
6462cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6463 ac_datarootdir_hack='
6464 s&@datadir@&$datadir&g
6465 s&@docdir@&$docdir&g
6466 s&@infodir@&$infodir&g
6467 s&@localedir@&$localedir&g
6468 s&@mandir@&$mandir&g
6469 s&\\\${datarootdir}&$datarootdir&g' ;;
6470esac
6471_ACEOF
6472
6473# Neutralize VPATH when `$srcdir' = `.'.
6474# Shell code in configure.ac might set extrasub.
6475# FIXME: do we really want to maintain this feature?
6476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6477ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00006478$extrasub
6479_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006480cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006481:t
6482/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusc7e66e32013-05-08 11:32:55 -04006483s|@configure_input@|$ac_sed_conf_input|;t t
6484s&@top_builddir@&$ac_top_builddir_sub&;t t
6485s&@top_build_prefix@&$ac_top_build_prefix&;t t
6486s&@srcdir@&$ac_srcdir&;t t
6487s&@abs_srcdir@&$ac_abs_srcdir&;t t
6488s&@top_srcdir@&$ac_top_srcdir&;t t
6489s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6490s&@builddir@&$ac_builddir&;t t
6491s&@abs_builddir@&$ac_abs_builddir&;t t
6492s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6493s&@INSTALL@&$ac_INSTALL&;t t
6494$ac_datarootdir_hack
6495"
6496eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6497 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00006498
jfigusc7e66e32013-05-08 11:32:55 -04006499test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6500 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6501 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6502 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6504which seems to be undefined. Please make sure it is defined" >&5
6505$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6506which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006507
jfigusc7e66e32013-05-08 11:32:55 -04006508 rm -f "$ac_tmp/stdin"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006509 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04006510 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6511 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6512 esac \
6513 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6514 ;;
6515 :H)
6516 #
6517 # CONFIG_HEADER
6518 #
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006519 if test x"$ac_file" != x-; then
jfigusc7e66e32013-05-08 11:32:55 -04006520 {
6521 $as_echo "/* $configure_input */" \
6522 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6523 } >"$ac_tmp/config.h" \
6524 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6525 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6527$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006528 else
jfigusc7e66e32013-05-08 11:32:55 -04006529 rm -f "$ac_file"
6530 mv "$ac_tmp/config.h" "$ac_file" \
6531 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006532 fi
6533 else
jfigusc7e66e32013-05-08 11:32:55 -04006534 $as_echo "/* $configure_input */" \
6535 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6536 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006537 fi
jfigusc7e66e32013-05-08 11:32:55 -04006538 ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006539
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006540
jfigusc7e66e32013-05-08 11:32:55 -04006541 esac
6542
6543done # for ac_tag
6544
6545
6546as_fn_exit 0
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006547_ACEOF
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006548ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04006549
jfigusc7e66e32013-05-08 11:32:55 -04006550test $ac_write_fail = 0 ||
6551 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6552
Cullen Jennings235513a2005-09-21 22:51:36 +00006553
6554# configure is writing to config.log, and then calls config.status.
6555# config.status does its own redirection, appending to config.log.
6556# Unfortunately, on DOS this fails, as config.log is still kept open
6557# by configure, so config.status won't be able to write to it; its
6558# output is simply discarded. So we exec the FD to /dev/null,
6559# effectively closing config.log, so it can be properly (re)opened and
6560# appended to by config.status. When coming back to configure, we
6561# need to make the FD available again.
6562if test "$no_create" != yes; then
6563 ac_cs_success=:
6564 ac_config_status_args=
6565 test "$silent" = yes &&
6566 ac_config_status_args="$ac_config_status_args --quiet"
6567 exec 5>/dev/null
6568 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6569 exec 5>>config.log
6570 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6571 # would make configure fail if this is the last instruction.
jfigusc7e66e32013-05-08 11:32:55 -04006572 $ac_cs_success || as_fn_exit 1
6573fi
6574if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6576$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006577fi
6578
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00006579
6580# This is needed when building outside the source dir.
jfigusc7e66e32013-05-08 11:32:55 -04006581as_dir=crypto/ae_xfm; as_fn_mkdir_p
6582as_dir=crypto/cipher; as_fn_mkdir_p
6583as_dir=crypto/hash; as_fn_mkdir_p
6584as_dir=crypto/kernel; as_fn_mkdir_p
6585as_dir=crypto/math; as_fn_mkdir_p
6586as_dir=crypto/replay; as_fn_mkdir_p
6587as_dir=crypto/rng; as_fn_mkdir_p
6588as_dir=crypto/test; as_fn_mkdir_p
6589as_dir=doc; as_fn_mkdir_p
6590as_dir=srtp; as_fn_mkdir_p
6591as_dir=tables; as_fn_mkdir_p
6592as_dir=test; as_fn_mkdir_p