blob: 58e96d93821d46569091474dc86d61a5e1732f09 [file] [log] [blame]
Cullen Jennings235513a2005-09-21 22:51:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
jfigusb058a3b2014-10-31 09:27:18 -04003# Generated by GNU Autoconf 2.69 for libsrtp 2.0.0-pre.
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02004#
5# Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00006#
jfigusc7e66e32013-05-08 11:32:55 -04007#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
Cullen Jennings235513a2005-09-21 22:51:36 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
jfigusc7e66e32013-05-08 11:32:55 -040013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +000016
jfigusc7e66e32013-05-08 11:32:55 -040017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +000020 emulate sh
21 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -040022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -040025 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +000026else
jfigusc7e66e32013-05-08 11:32:55 -040027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
Cullen Jennings235513a2005-09-21 22:51:36 +000033fi
34
35
jfigusc7e66e32013-05-08 11:32:55 -040036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
Cullen Jennings235513a2005-09-21 22:51:36 +0000124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -0400129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -0400133
jfigusc7e66e32013-05-08 11:32:55 -0400134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://github.com/cisco/libsrtp/issues about your
271$0: system, including any error possibly output before this
jfigusc7e66e32013-05-08 11:32:55 -0400272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000424 as_expr=expr
425else
426 as_expr=false
427fi
428
jfigusc7e66e32013-05-08 11:32:55 -0400429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000430 as_basename=basename
431else
432 as_basename=false
433fi
434
jfigusc7e66e32013-05-08 11:32:55 -0400435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
Cullen Jennings235513a2005-09-21 22:51:36 +0000440
jfigusc7e66e32013-05-08 11:32:55 -0400441as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +0000442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -0400444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000459
Cullen Jennings235513a2005-09-21 22:51:36 +0000460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
Cullen Jennings235513a2005-09-21 22:51:36 +0000467
jfigusc7e66e32013-05-08 11:32:55 -0400468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
Cullen Jennings235513a2005-09-21 22:51:36 +0000477 sed '
jfigusc7e66e32013-05-08 11:32:55 -0400478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
Cullen Jennings235513a2005-09-21 22:51:36 +0000482 N
jfigusc7e66e32013-05-08 11:32:55 -0400483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Cullen Jennings235513a2005-09-21 22:51:36 +0000485 t loop
jfigusc7e66e32013-05-08 11:32:55 -0400486 s/-\n.*//
Cullen Jennings235513a2005-09-21 22:51:36 +0000487 ' >$as_me.lineno &&
jfigusc7e66e32013-05-08 11:32:55 -0400488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Cullen Jennings235513a2005-09-21 22:51:36 +0000490
jfigusc7e66e32013-05-08 11:32:55 -0400491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
Cullen Jennings235513a2005-09-21 22:51:36 +0000495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
jfigusc7e66e32013-05-08 11:32:55 -0400497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
Cullen Jennings235513a2005-09-21 22:51:36 +0000499 # Exit status is that of the last command.
500 exit
501}
502
jfigusc7e66e32013-05-08 11:32:55 -0400503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512*)
513 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000514esac
515
Cullen Jennings235513a2005-09-21 22:51:36 +0000516rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -0400517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -0600525 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -0400526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +0000536 fi
Cullen Jennings235513a2005-09-21 22:51:36 +0000537else
jfigusc7e66e32013-05-08 11:32:55 -0400538 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +0000539fi
jfigusc7e66e32013-05-08 11:32:55 -0400540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +0000542
543if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -0400544 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +0000545else
David McGrewfec49dd2005-09-23 19:34:11 +0000546 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +0000547 as_mkdir_p=false
548fi
549
jfigusc7e66e32013-05-08 11:32:55 -0400550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +0000552
553# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +0000554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000555
556# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +0000557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000558
559
jfigusc7e66e32013-05-08 11:32:55 -0400560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
Cullen Jennings235513a2005-09-21 22:51:36 +0000562
563# Name of the host.
jfigusc7e66e32013-05-08 11:32:55 -0400564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Cullen Jennings235513a2005-09-21 22:51:36 +0000565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
Cullen Jennings235513a2005-09-21 22:51:36 +0000568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
jfigusc7e66e32013-05-08 11:32:55 -0400572ac_clean_files=
Cullen Jennings235513a2005-09-21 22:51:36 +0000573ac_config_libobj_dir=.
jfigusc7e66e32013-05-08 11:32:55 -0400574LIBOBJS=
Cullen Jennings235513a2005-09-21 22:51:36 +0000575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
Cullen Jennings235513a2005-09-21 22:51:36 +0000579
580# Identity of this package.
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200581PACKAGE_NAME='libsrtp'
582PACKAGE_TARNAME='libsrtp'
jfigusb058a3b2014-10-31 09:27:18 -0400583PACKAGE_VERSION='2.0.0-pre'
584PACKAGE_STRING='libsrtp 2.0.0-pre'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200585PACKAGE_BUGREPORT='https://github.com/cisco/libsrtp/issues'
586PACKAGE_URL=''
Cullen Jennings235513a2005-09-21 22:51:36 +0000587
Cullen Jennings235513a2005-09-21 22:51:36 +0000588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -0400591#ifdef HAVE_SYS_TYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000592# include <sys/types.h>
593#endif
jfigusc7e66e32013-05-08 11:32:55 -0400594#ifdef HAVE_SYS_STAT_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000595# include <sys/stat.h>
596#endif
jfigusc7e66e32013-05-08 11:32:55 -0400597#ifdef STDC_HEADERS
Cullen Jennings235513a2005-09-21 22:51:36 +0000598# include <stdlib.h>
599# include <stddef.h>
600#else
jfigusc7e66e32013-05-08 11:32:55 -0400601# ifdef HAVE_STDLIB_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000602# include <stdlib.h>
603# endif
604#endif
jfigusc7e66e32013-05-08 11:32:55 -0400605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000607# include <memory.h>
608# endif
609# include <string.h>
610#endif
jfigusc7e66e32013-05-08 11:32:55 -0400611#ifdef HAVE_STRINGS_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000612# include <strings.h>
613#endif
jfigusc7e66e32013-05-08 11:32:55 -0400614#ifdef HAVE_INTTYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000615# include <inttypes.h>
Cullen Jennings235513a2005-09-21 22:51:36 +0000616#endif
jfigusc7e66e32013-05-08 11:32:55 -0400617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000621# include <unistd.h>
622#endif"
623
jfigusc7e66e32013-05-08 11:32:55 -0400624ac_subst_vars='LTLIBOBJS
625LIBOBJS
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200626HAVE_PKG_CONFIG
627PKG_CONFIG
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
jfigusc7e66e32013-05-08 11:32:55 -0400703enable_stdout
704enable_console
705enable_gdoi
706'
707 ac_precious_vars='build_alias
708host_alias
709target_alias
710CC
711CFLAGS
712LDFLAGS
713LIBS
714CPPFLAGS
715CPP'
716
Cullen Jennings235513a2005-09-21 22:51:36 +0000717
718# Initialize some variables set by options.
719ac_init_help=
720ac_init_version=false
jfigusc7e66e32013-05-08 11:32:55 -0400721ac_unrecognized_opts=
722ac_unrecognized_sep=
Cullen Jennings235513a2005-09-21 22:51:36 +0000723# The variables have the same names as the options, with
724# dashes changed to underlines.
725cache_file=/dev/null
726exec_prefix=NONE
727no_create=
728no_recursion=
729prefix=NONE
730program_prefix=NONE
731program_suffix=NONE
732program_transform_name=s,x,x,
733silent=
734site=
735srcdir=
736verbose=
737x_includes=NONE
738x_libraries=NONE
739
740# Installation directory options.
741# These are left unexpanded so users can "make install exec_prefix=/foo"
742# and all the variables that are supposed to be based on exec_prefix
743# by default will actually change.
744# Use braces instead of parens because sh, perl, etc. also accept them.
jfigusc7e66e32013-05-08 11:32:55 -0400745# (The list follows the same order as the GNU Coding Standards.)
Cullen Jennings235513a2005-09-21 22:51:36 +0000746bindir='${exec_prefix}/bin'
747sbindir='${exec_prefix}/sbin'
748libexecdir='${exec_prefix}/libexec'
jfigusc7e66e32013-05-08 11:32:55 -0400749datarootdir='${prefix}/share'
750datadir='${datarootdir}'
Cullen Jennings235513a2005-09-21 22:51:36 +0000751sysconfdir='${prefix}/etc'
752sharedstatedir='${prefix}/com'
753localstatedir='${prefix}/var'
Cullen Jennings235513a2005-09-21 22:51:36 +0000754includedir='${prefix}/include'
755oldincludedir='/usr/include'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200756docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
jfigusc7e66e32013-05-08 11:32:55 -0400757infodir='${datarootdir}/info'
758htmldir='${docdir}'
759dvidir='${docdir}'
760pdfdir='${docdir}'
761psdir='${docdir}'
762libdir='${exec_prefix}/lib'
763localedir='${datarootdir}/locale'
764mandir='${datarootdir}/man'
Cullen Jennings235513a2005-09-21 22:51:36 +0000765
766ac_prev=
jfigusc7e66e32013-05-08 11:32:55 -0400767ac_dashdash=
Cullen Jennings235513a2005-09-21 22:51:36 +0000768for ac_option
769do
770 # If the previous option needs an argument, assign it.
771 if test -n "$ac_prev"; then
jfigusc7e66e32013-05-08 11:32:55 -0400772 eval $ac_prev=\$ac_option
Cullen Jennings235513a2005-09-21 22:51:36 +0000773 ac_prev=
774 continue
775 fi
776
jfigusc7e66e32013-05-08 11:32:55 -0400777 case $ac_option in
778 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
779 *=) ac_optarg= ;;
780 *) ac_optarg=yes ;;
781 esac
Cullen Jennings235513a2005-09-21 22:51:36 +0000782
783 # Accept the important Cygnus configure options, so we can diagnose typos.
784
jfigusc7e66e32013-05-08 11:32:55 -0400785 case $ac_dashdash$ac_option in
786 --)
787 ac_dashdash=yes ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000788
789 -bindir | --bindir | --bindi | --bind | --bin | --bi)
790 ac_prev=bindir ;;
791 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
792 bindir=$ac_optarg ;;
793
794 -build | --build | --buil | --bui | --bu)
795 ac_prev=build_alias ;;
796 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
797 build_alias=$ac_optarg ;;
798
799 -cache-file | --cache-file | --cache-fil | --cache-fi \
800 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
801 ac_prev=cache_file ;;
802 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
803 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
804 cache_file=$ac_optarg ;;
805
806 --config-cache | -C)
807 cache_file=config.cache ;;
808
jfigusc7e66e32013-05-08 11:32:55 -0400809 -datadir | --datadir | --datadi | --datad)
Cullen Jennings235513a2005-09-21 22:51:36 +0000810 ac_prev=datadir ;;
jfigusc7e66e32013-05-08 11:32:55 -0400811 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000812 datadir=$ac_optarg ;;
813
jfigusc7e66e32013-05-08 11:32:55 -0400814 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
815 | --dataroo | --dataro | --datar)
816 ac_prev=datarootdir ;;
817 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
818 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
819 datarootdir=$ac_optarg ;;
820
Cullen Jennings235513a2005-09-21 22:51:36 +0000821 -disable-* | --disable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400822 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000823 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400824 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
825 as_fn_error $? "invalid feature name: $ac_useropt"
826 ac_useropt_orig=$ac_useropt
827 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
828 case $ac_user_opts in
829 *"
830"enable_$ac_useropt"
831"*) ;;
832 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
833 ac_unrecognized_sep=', ';;
834 esac
835 eval enable_$ac_useropt=no ;;
836
837 -docdir | --docdir | --docdi | --doc | --do)
838 ac_prev=docdir ;;
839 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
840 docdir=$ac_optarg ;;
841
842 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
843 ac_prev=dvidir ;;
844 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
845 dvidir=$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000846
847 -enable-* | --enable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400848 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000849 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
851 as_fn_error $? "invalid feature name: $ac_useropt"
852 ac_useropt_orig=$ac_useropt
853 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854 case $ac_user_opts in
855 *"
856"enable_$ac_useropt"
857"*) ;;
858 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
859 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000860 esac
jfigusc7e66e32013-05-08 11:32:55 -0400861 eval enable_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000862
863 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
864 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
865 | --exec | --exe | --ex)
866 ac_prev=exec_prefix ;;
867 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
868 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
869 | --exec=* | --exe=* | --ex=*)
870 exec_prefix=$ac_optarg ;;
871
872 -gas | --gas | --ga | --g)
873 # Obsolete; use --with-gas.
874 with_gas=yes ;;
875
876 -help | --help | --hel | --he | -h)
877 ac_init_help=long ;;
878 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
879 ac_init_help=recursive ;;
880 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
881 ac_init_help=short ;;
882
883 -host | --host | --hos | --ho)
884 ac_prev=host_alias ;;
885 -host=* | --host=* | --hos=* | --ho=*)
886 host_alias=$ac_optarg ;;
887
jfigusc7e66e32013-05-08 11:32:55 -0400888 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
889 ac_prev=htmldir ;;
890 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
891 | --ht=*)
892 htmldir=$ac_optarg ;;
893
Cullen Jennings235513a2005-09-21 22:51:36 +0000894 -includedir | --includedir | --includedi | --included | --include \
895 | --includ | --inclu | --incl | --inc)
896 ac_prev=includedir ;;
897 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
898 | --includ=* | --inclu=* | --incl=* | --inc=*)
899 includedir=$ac_optarg ;;
900
901 -infodir | --infodir | --infodi | --infod | --info | --inf)
902 ac_prev=infodir ;;
903 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
904 infodir=$ac_optarg ;;
905
906 -libdir | --libdir | --libdi | --libd)
907 ac_prev=libdir ;;
908 -libdir=* | --libdir=* | --libdi=* | --libd=*)
909 libdir=$ac_optarg ;;
910
911 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
912 | --libexe | --libex | --libe)
913 ac_prev=libexecdir ;;
914 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
915 | --libexe=* | --libex=* | --libe=*)
916 libexecdir=$ac_optarg ;;
917
jfigusc7e66e32013-05-08 11:32:55 -0400918 -localedir | --localedir | --localedi | --localed | --locale)
919 ac_prev=localedir ;;
920 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
921 localedir=$ac_optarg ;;
922
Cullen Jennings235513a2005-09-21 22:51:36 +0000923 -localstatedir | --localstatedir | --localstatedi | --localstated \
jfigusc7e66e32013-05-08 11:32:55 -0400924 | --localstate | --localstat | --localsta | --localst | --locals)
Cullen Jennings235513a2005-09-21 22:51:36 +0000925 ac_prev=localstatedir ;;
926 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
jfigusc7e66e32013-05-08 11:32:55 -0400927 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000928 localstatedir=$ac_optarg ;;
929
930 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
931 ac_prev=mandir ;;
932 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
933 mandir=$ac_optarg ;;
934
935 -nfp | --nfp | --nf)
936 # Obsolete; use --without-fp.
937 with_fp=no ;;
938
939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940 | --no-cr | --no-c | -n)
941 no_create=yes ;;
942
943 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
944 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
945 no_recursion=yes ;;
946
947 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
948 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
949 | --oldin | --oldi | --old | --ol | --o)
950 ac_prev=oldincludedir ;;
951 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
952 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
953 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
954 oldincludedir=$ac_optarg ;;
955
956 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
957 ac_prev=prefix ;;
958 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
959 prefix=$ac_optarg ;;
960
961 -program-prefix | --program-prefix | --program-prefi | --program-pref \
962 | --program-pre | --program-pr | --program-p)
963 ac_prev=program_prefix ;;
964 -program-prefix=* | --program-prefix=* | --program-prefi=* \
965 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
966 program_prefix=$ac_optarg ;;
967
968 -program-suffix | --program-suffix | --program-suffi | --program-suff \
969 | --program-suf | --program-su | --program-s)
970 ac_prev=program_suffix ;;
971 -program-suffix=* | --program-suffix=* | --program-suffi=* \
972 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
973 program_suffix=$ac_optarg ;;
974
975 -program-transform-name | --program-transform-name \
976 | --program-transform-nam | --program-transform-na \
977 | --program-transform-n | --program-transform- \
978 | --program-transform | --program-transfor \
979 | --program-transfo | --program-transf \
980 | --program-trans | --program-tran \
981 | --progr-tra | --program-tr | --program-t)
982 ac_prev=program_transform_name ;;
983 -program-transform-name=* | --program-transform-name=* \
984 | --program-transform-nam=* | --program-transform-na=* \
985 | --program-transform-n=* | --program-transform-=* \
986 | --program-transform=* | --program-transfor=* \
987 | --program-transfo=* | --program-transf=* \
988 | --program-trans=* | --program-tran=* \
989 | --progr-tra=* | --program-tr=* | --program-t=*)
990 program_transform_name=$ac_optarg ;;
991
jfigusc7e66e32013-05-08 11:32:55 -0400992 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
993 ac_prev=pdfdir ;;
994 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
995 pdfdir=$ac_optarg ;;
996
997 -psdir | --psdir | --psdi | --psd | --ps)
998 ac_prev=psdir ;;
999 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1000 psdir=$ac_optarg ;;
1001
Cullen Jennings235513a2005-09-21 22:51:36 +00001002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1003 | -silent | --silent | --silen | --sile | --sil)
1004 silent=yes ;;
1005
1006 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1007 ac_prev=sbindir ;;
1008 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1009 | --sbi=* | --sb=*)
1010 sbindir=$ac_optarg ;;
1011
1012 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1013 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1014 | --sharedst | --shareds | --shared | --share | --shar \
1015 | --sha | --sh)
1016 ac_prev=sharedstatedir ;;
1017 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1018 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1019 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1020 | --sha=* | --sh=*)
1021 sharedstatedir=$ac_optarg ;;
1022
1023 -site | --site | --sit)
1024 ac_prev=site ;;
1025 -site=* | --site=* | --sit=*)
1026 site=$ac_optarg ;;
1027
1028 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1029 ac_prev=srcdir ;;
1030 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1031 srcdir=$ac_optarg ;;
1032
1033 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1034 | --syscon | --sysco | --sysc | --sys | --sy)
1035 ac_prev=sysconfdir ;;
1036 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1037 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1038 sysconfdir=$ac_optarg ;;
1039
1040 -target | --target | --targe | --targ | --tar | --ta | --t)
1041 ac_prev=target_alias ;;
1042 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1043 target_alias=$ac_optarg ;;
1044
1045 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1046 verbose=yes ;;
1047
1048 -version | --version | --versio | --versi | --vers | -V)
1049 ac_init_version=: ;;
1050
1051 -with-* | --with-*)
jfigusc7e66e32013-05-08 11:32:55 -04001052 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001053 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid package name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060"with_$ac_useropt"
1061"*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +00001064 esac
jfigusc7e66e32013-05-08 11:32:55 -04001065 eval with_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001066
1067 -without-* | --without-*)
jfigusc7e66e32013-05-08 11:32:55 -04001068 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001069 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error $? "invalid package name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1075 *"
1076"with_$ac_useropt"
1077"*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval with_$ac_useropt=no ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001082
1083 --x)
1084 # Obsolete; use --with-x.
1085 with_x=yes ;;
1086
1087 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1088 | --x-incl | --x-inc | --x-in | --x-i)
1089 ac_prev=x_includes ;;
1090 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1091 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1092 x_includes=$ac_optarg ;;
1093
1094 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1095 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1096 ac_prev=x_libraries ;;
1097 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1098 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1099 x_libraries=$ac_optarg ;;
1100
jfigusc7e66e32013-05-08 11:32:55 -04001101 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1102Try \`$0 --help' for more information"
Cullen Jennings235513a2005-09-21 22:51:36 +00001103 ;;
1104
1105 *=*)
1106 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1107 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001108 case $ac_envvar in #(
1109 '' | [0-9]* | *[!_$as_cr_alnum]* )
1110 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1111 esac
1112 eval $ac_envvar=\$ac_optarg
Cullen Jennings235513a2005-09-21 22:51:36 +00001113 export $ac_envvar ;;
1114
1115 *)
1116 # FIXME: should be removed in autoconf 3.0.
jfigusc7e66e32013-05-08 11:32:55 -04001117 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Cullen Jennings235513a2005-09-21 22:51:36 +00001118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jfigusc7e66e32013-05-08 11:32:55 -04001119 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Cullen Jennings235513a2005-09-21 22:51:36 +00001121 ;;
1122
1123 esac
1124done
1125
1126if test -n "$ac_prev"; then
1127 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jfigusc7e66e32013-05-08 11:32:55 -04001128 as_fn_error $? "missing argument to $ac_option"
Cullen Jennings235513a2005-09-21 22:51:36 +00001129fi
1130
jfigusc7e66e32013-05-08 11:32:55 -04001131if test -n "$ac_unrecognized_opts"; then
1132 case $enable_option_checking in
1133 no) ;;
1134 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1135 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001136 esac
jfigusc7e66e32013-05-08 11:32:55 -04001137fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001138
jfigusc7e66e32013-05-08 11:32:55 -04001139# Check all directory arguments for consistency.
1140for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1141 datadir sysconfdir sharedstatedir localstatedir includedir \
1142 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1143 libdir localedir mandir
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001144do
jfigusc7e66e32013-05-08 11:32:55 -04001145 eval ac_val=\$$ac_var
1146 # Remove trailing slashes.
jfigusa14b5a02013-03-29 12:24:12 -04001147 case $ac_val in
jfigusc7e66e32013-05-08 11:32:55 -04001148 */ )
1149 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1150 eval $ac_var=\$ac_val;;
jfigusa14b5a02013-03-29 12:24:12 -04001151 esac
jfigusc7e66e32013-05-08 11:32:55 -04001152 # Be sure to have absolute directory names.
1153 case $ac_val in
1154 [\\/$]* | ?:[\\/]* ) continue;;
1155 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1156 esac
1157 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Cullen Jennings235513a2005-09-21 22:51:36 +00001158done
1159
1160# There might be people who depend on the old broken behavior: `$host'
1161# used to hold the argument of --host etc.
1162# FIXME: To remove some day.
1163build=$build_alias
1164host=$host_alias
1165target=$target_alias
1166
1167# FIXME: To remove some day.
1168if test "x$host_alias" != x; then
1169 if test "x$build_alias" = x; then
1170 cross_compiling=maybe
Cullen Jennings235513a2005-09-21 22:51:36 +00001171 elif test "x$build_alias" != "x$host_alias"; then
1172 cross_compiling=yes
1173 fi
1174fi
1175
1176ac_tool_prefix=
1177test -n "$host_alias" && ac_tool_prefix=$host_alias-
1178
1179test "$silent" = yes && exec 6>/dev/null
1180
1181
jfigusc7e66e32013-05-08 11:32:55 -04001182ac_pwd=`pwd` && test -n "$ac_pwd" &&
1183ac_ls_di=`ls -di .` &&
1184ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1185 as_fn_error $? "working directory cannot be determined"
1186test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1187 as_fn_error $? "pwd does not report name of working directory"
1188
1189
Cullen Jennings235513a2005-09-21 22:51:36 +00001190# Find the source files, if location was not specified.
1191if test -z "$srcdir"; then
1192 ac_srcdir_defaulted=yes
jfigusc7e66e32013-05-08 11:32:55 -04001193 # Try the directory containing this script, then the parent directory.
1194 ac_confdir=`$as_dirname -- "$as_myself" ||
1195$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1196 X"$as_myself" : 'X\(//\)[^/]' \| \
1197 X"$as_myself" : 'X\(//\)$' \| \
1198 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1199$as_echo X"$as_myself" |
1200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1201 s//\1/
1202 q
1203 }
1204 /^X\(\/\/\)[^/].*/{
1205 s//\1/
1206 q
1207 }
1208 /^X\(\/\/\)$/{
1209 s//\1/
1210 q
1211 }
1212 /^X\(\/\).*/{
1213 s//\1/
1214 q
1215 }
1216 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001217 srcdir=$ac_confdir
jfigusc7e66e32013-05-08 11:32:55 -04001218 if test ! -r "$srcdir/$ac_unique_file"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00001219 srcdir=..
1220 fi
1221else
1222 ac_srcdir_defaulted=no
1223fi
jfigusc7e66e32013-05-08 11:32:55 -04001224if test ! -r "$srcdir/$ac_unique_file"; then
1225 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1226 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Cullen Jennings235513a2005-09-21 22:51:36 +00001227fi
jfigusc7e66e32013-05-08 11:32:55 -04001228ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1229ac_abs_confdir=`(
1230 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1231 pwd)`
1232# When building in place, set srcdir=.
1233if test "$ac_abs_confdir" = "$ac_pwd"; then
1234 srcdir=.
1235fi
1236# Remove unnecessary trailing slashes from srcdir.
1237# Double slashes in file names in object file debugging info
1238# mess up M-x gdb in Emacs.
1239case $srcdir in
1240*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1241esac
1242for ac_var in $ac_precious_vars; do
1243 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1244 eval ac_env_${ac_var}_value=\$${ac_var}
1245 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1246 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1247done
Cullen Jennings235513a2005-09-21 22:51:36 +00001248
1249#
1250# Report the --help message.
1251#
1252if test "$ac_init_help" = "long"; then
1253 # Omit some internal or obsolete options to make the list less imposing.
1254 # This message is too long to be a string in the A/UX 3.1 sh.
1255 cat <<_ACEOF
jfigusb058a3b2014-10-31 09:27:18 -04001256\`configure' configures libsrtp 2.0.0-pre to adapt to many kinds of systems.
Cullen Jennings235513a2005-09-21 22:51:36 +00001257
1258Usage: $0 [OPTION]... [VAR=VALUE]...
1259
1260To assign environment variables (e.g., CC, CFLAGS...), specify them as
1261VAR=VALUE. See below for descriptions of some of the useful variables.
1262
1263Defaults for the options are specified in brackets.
1264
1265Configuration:
1266 -h, --help display this help and exit
1267 --help=short display options specific to this package
1268 --help=recursive display the short help of all the included packages
1269 -V, --version display version information and exit
jfigusc7e66e32013-05-08 11:32:55 -04001270 -q, --quiet, --silent do not print \`checking ...' messages
Cullen Jennings235513a2005-09-21 22:51:36 +00001271 --cache-file=FILE cache test results in FILE [disabled]
1272 -C, --config-cache alias for \`--cache-file=config.cache'
1273 -n, --no-create do not create output files
1274 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1275
Cullen Jennings235513a2005-09-21 22:51:36 +00001276Installation directories:
1277 --prefix=PREFIX install architecture-independent files in PREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001278 [$ac_default_prefix]
Cullen Jennings235513a2005-09-21 22:51:36 +00001279 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001280 [PREFIX]
Cullen Jennings235513a2005-09-21 22:51:36 +00001281
1282By default, \`make install' will install all the files in
1283\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1284an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1285for instance \`--prefix=\$HOME'.
1286
1287For better control, use the options below.
1288
1289Fine tuning of the installation directories:
jfigusc7e66e32013-05-08 11:32:55 -04001290 --bindir=DIR user executables [EPREFIX/bin]
1291 --sbindir=DIR system admin executables [EPREFIX/sbin]
1292 --libexecdir=DIR program executables [EPREFIX/libexec]
1293 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1294 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1295 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1296 --libdir=DIR object code libraries [EPREFIX/lib]
1297 --includedir=DIR C header files [PREFIX/include]
1298 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1299 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1300 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1301 --infodir=DIR info documentation [DATAROOTDIR/info]
1302 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1303 --mandir=DIR man documentation [DATAROOTDIR/man]
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001304 --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp]
jfigusc7e66e32013-05-08 11:32:55 -04001305 --htmldir=DIR html documentation [DOCDIR]
1306 --dvidir=DIR dvi documentation [DOCDIR]
1307 --pdfdir=DIR pdf documentation [DOCDIR]
1308 --psdir=DIR ps documentation [DOCDIR]
Cullen Jennings235513a2005-09-21 22:51:36 +00001309_ACEOF
1310
1311 cat <<\_ACEOF
1312
1313System types:
1314 --build=BUILD configure for building on BUILD [guessed]
1315 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1316_ACEOF
1317fi
1318
1319if test -n "$ac_init_help"; then
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001320 case $ac_init_help in
jfigusb058a3b2014-10-31 09:27:18 -04001321 short | recursive ) echo "Configuration of libsrtp 2.0.0-pre:";;
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001322 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00001323 cat <<\_ACEOF
1324
1325Optional Features:
jfigusc7e66e32013-05-08 11:32:55 -04001326 --disable-option-checking ignore unrecognized --enable/--with options
Cullen Jennings235513a2005-09-21 22:51:36 +00001327 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1328 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Marcus Sundberg64536cc2005-10-03 15:23:13 +00001329 --enable-kernel-linux build library to run in Linux kernel context
David McGrewb67061f2005-09-28 14:23:06 +00001330 --disable-debug do not compile in dynamic debugging system
1331 --enable-generic-aesicm compile in changes for ISMAcryp
jfigusc7e66e32013-05-08 11:32:55 -04001332 --enable-openssl compile in OpenSSL crypto engine
David McGrewb67061f2005-09-28 14:23:06 +00001333 --disable-stdout don't use stdout for error reporting
1334 --enable-console use /dev/console for error reporting
1335 --enable-gdoi enable GDOI key management
Cullen Jennings235513a2005-09-21 22:51:36 +00001336
1337Some influential environment variables:
1338 CC C compiler command
1339 CFLAGS C compiler flags
1340 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1341 nonstandard directory <lib dir>
jfigusc7e66e32013-05-08 11:32:55 -04001342 LIBS libraries to pass to the linker, e.g. -l<library>
1343 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1344 you have headers in a nonstandard directory <include dir>
Cullen Jennings235513a2005-09-21 22:51:36 +00001345 CPP C preprocessor
1346
1347Use these variables to override the choices made by `configure' or to help
1348it to find libraries and programs with nonstandard names/locations.
1349
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001350Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00001351_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001352ac_status=$?
Cullen Jennings235513a2005-09-21 22:51:36 +00001353fi
1354
1355if test "$ac_init_help" = "recursive"; then
1356 # If there are subdirs, report their specific --help.
Cullen Jennings235513a2005-09-21 22:51:36 +00001357 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jfigusc7e66e32013-05-08 11:32:55 -04001358 test -d "$ac_dir" ||
1359 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1360 continue
Cullen Jennings235513a2005-09-21 22:51:36 +00001361 ac_builddir=.
1362
jfigusc7e66e32013-05-08 11:32:55 -04001363case "$ac_dir" in
1364.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1365*)
1366 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1367 # A ".." for each directory in $ac_dir_suffix.
1368 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1369 case $ac_top_builddir_sub in
1370 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1371 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1372 esac ;;
1373esac
1374ac_abs_top_builddir=$ac_pwd
1375ac_abs_builddir=$ac_pwd$ac_dir_suffix
1376# for backward compatibility:
1377ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00001378
1379case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04001380 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00001381 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04001382 ac_top_srcdir=$ac_top_builddir_sub
1383 ac_abs_top_srcdir=$ac_pwd ;;
1384 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001385 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04001386 ac_top_srcdir=$srcdir
1387 ac_abs_top_srcdir=$srcdir ;;
1388 *) # Relative name.
1389 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1390 ac_top_srcdir=$ac_top_build_prefix$srcdir
1391 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001392esac
jfigusc7e66e32013-05-08 11:32:55 -04001393ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001394
jfigusc7e66e32013-05-08 11:32:55 -04001395 cd "$ac_dir" || { ac_status=$?; continue; }
1396 # Check for guested configure.
1397 if test -f "$ac_srcdir/configure.gnu"; then
1398 echo &&
1399 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1400 elif test -f "$ac_srcdir/configure"; then
1401 echo &&
1402 $SHELL "$ac_srcdir/configure" --help=recursive
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001403 else
jfigusc7e66e32013-05-08 11:32:55 -04001404 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1405 fi || ac_status=$?
1406 cd "$ac_pwd" || { ac_status=$?; break; }
Cullen Jennings235513a2005-09-21 22:51:36 +00001407 done
1408fi
1409
jfigusc7e66e32013-05-08 11:32:55 -04001410test -n "$ac_init_help" && exit $ac_status
Cullen Jennings235513a2005-09-21 22:51:36 +00001411if $ac_init_version; then
1412 cat <<\_ACEOF
jfigusb058a3b2014-10-31 09:27:18 -04001413libsrtp configure 2.0.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04001414generated by GNU Autoconf 2.69
Cullen Jennings235513a2005-09-21 22:51:36 +00001415
jfigusc7e66e32013-05-08 11:32:55 -04001416Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00001417This configure script is free software; the Free Software Foundation
1418gives unlimited permission to copy, distribute and modify it.
1419_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001420 exit
Cullen Jennings235513a2005-09-21 22:51:36 +00001421fi
jfigusc7e66e32013-05-08 11:32:55 -04001422
1423## ------------------------ ##
1424## Autoconf initialization. ##
1425## ------------------------ ##
1426
1427# ac_fn_c_try_compile LINENO
1428# --------------------------
1429# Try to compile conftest.$ac_ext, and return whether this succeeded.
1430ac_fn_c_try_compile ()
1431{
1432 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1433 rm -f conftest.$ac_objext
1434 if { { ac_try="$ac_compile"
1435case "(($ac_try" in
1436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1437 *) ac_try_echo=$ac_try;;
1438esac
1439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1440$as_echo "$ac_try_echo"; } >&5
1441 (eval "$ac_compile") 2>conftest.err
1442 ac_status=$?
1443 if test -s conftest.err; then
1444 grep -v '^ *+' conftest.err >conftest.er1
1445 cat conftest.er1 >&5
1446 mv -f conftest.er1 conftest.err
1447 fi
1448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1449 test $ac_status = 0; } && {
1450 test -z "$ac_c_werror_flag" ||
1451 test ! -s conftest.err
1452 } && test -s conftest.$ac_objext; then :
1453 ac_retval=0
1454else
1455 $as_echo "$as_me: failed program was:" >&5
1456sed 's/^/| /' conftest.$ac_ext >&5
1457
1458 ac_retval=1
1459fi
1460 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1461 as_fn_set_status $ac_retval
1462
1463} # ac_fn_c_try_compile
1464
1465# ac_fn_c_try_run LINENO
1466# ----------------------
1467# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1468# that executables *can* be run.
1469ac_fn_c_try_run ()
1470{
1471 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1472 if { { ac_try="$ac_link"
1473case "(($ac_try" in
1474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1475 *) ac_try_echo=$ac_try;;
1476esac
1477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1478$as_echo "$ac_try_echo"; } >&5
1479 (eval "$ac_link") 2>&5
1480 ac_status=$?
1481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1482 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1483 { { case "(($ac_try" in
1484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1485 *) ac_try_echo=$ac_try;;
1486esac
1487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1488$as_echo "$ac_try_echo"; } >&5
1489 (eval "$ac_try") 2>&5
1490 ac_status=$?
1491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1492 test $ac_status = 0; }; }; then :
1493 ac_retval=0
1494else
1495 $as_echo "$as_me: program exited with status $ac_status" >&5
1496 $as_echo "$as_me: failed program was:" >&5
1497sed 's/^/| /' conftest.$ac_ext >&5
1498
1499 ac_retval=$ac_status
1500fi
1501 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1502 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1503 as_fn_set_status $ac_retval
1504
1505} # ac_fn_c_try_run
1506
1507# ac_fn_c_try_cpp LINENO
1508# ----------------------
1509# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1510ac_fn_c_try_cpp ()
1511{
1512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513 if { { ac_try="$ac_cpp conftest.$ac_ext"
1514case "(($ac_try" in
1515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516 *) ac_try_echo=$ac_try;;
1517esac
1518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519$as_echo "$ac_try_echo"; } >&5
1520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1521 ac_status=$?
1522 if test -s conftest.err; then
1523 grep -v '^ *+' conftest.err >conftest.er1
1524 cat conftest.er1 >&5
1525 mv -f conftest.er1 conftest.err
1526 fi
1527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1528 test $ac_status = 0; } > conftest.i && {
1529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1530 test ! -s conftest.err
1531 }; then :
1532 ac_retval=0
1533else
1534 $as_echo "$as_me: failed program was:" >&5
1535sed 's/^/| /' conftest.$ac_ext >&5
1536
1537 ac_retval=1
1538fi
1539 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1540 as_fn_set_status $ac_retval
1541
1542} # ac_fn_c_try_cpp
1543
1544# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1545# -------------------------------------------------------
1546# Tests whether HEADER exists and can be compiled using the include files in
1547# INCLUDES, setting the cache variable VAR accordingly.
1548ac_fn_c_check_header_compile ()
1549{
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1552$as_echo_n "checking for $2... " >&6; }
1553if eval \${$3+:} false; then :
1554 $as_echo_n "(cached) " >&6
1555else
1556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1557/* end confdefs.h. */
1558$4
1559#include <$2>
1560_ACEOF
1561if ac_fn_c_try_compile "$LINENO"; then :
1562 eval "$3=yes"
1563else
1564 eval "$3=no"
1565fi
1566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1567fi
1568eval ac_res=\$$3
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1570$as_echo "$ac_res" >&6; }
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572
1573} # ac_fn_c_check_header_compile
1574
1575# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1576# -------------------------------------------------------
1577# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1578# the include files in INCLUDES and setting the cache variable VAR
1579# accordingly.
1580ac_fn_c_check_header_mongrel ()
1581{
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if eval \${$3+:} false; then :
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1585$as_echo_n "checking for $2... " >&6; }
1586if eval \${$3+:} false; then :
1587 $as_echo_n "(cached) " >&6
1588fi
1589eval ac_res=\$$3
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1591$as_echo "$ac_res" >&6; }
1592else
1593 # Is the header compilable?
1594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1595$as_echo_n "checking $2 usability... " >&6; }
1596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1597/* end confdefs.h. */
1598$4
1599#include <$2>
1600_ACEOF
1601if ac_fn_c_try_compile "$LINENO"; then :
1602 ac_header_compiler=yes
1603else
1604 ac_header_compiler=no
1605fi
1606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1608$as_echo "$ac_header_compiler" >&6; }
1609
1610# Is the header present?
1611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1612$as_echo_n "checking $2 presence... " >&6; }
1613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614/* end confdefs.h. */
1615#include <$2>
1616_ACEOF
1617if ac_fn_c_try_cpp "$LINENO"; then :
1618 ac_header_preproc=yes
1619else
1620 ac_header_preproc=no
1621fi
1622rm -f conftest.err conftest.i conftest.$ac_ext
1623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1624$as_echo "$ac_header_preproc" >&6; }
1625
1626# So? What about this header?
1627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1628 yes:no: )
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1630$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1632$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1633 ;;
1634 no:yes:* )
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1636$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1638$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1640$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1642$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1644$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001645( $as_echo "## ------------------------------------------------------ ##
1646## Report this to https://github.com/cisco/libsrtp/issues ##
1647## ------------------------------------------------------ ##"
1648 ) | sed "s/^/$as_me: WARNING: /" >&2
jfigusc7e66e32013-05-08 11:32:55 -04001649 ;;
1650esac
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652$as_echo_n "checking for $2... " >&6; }
1653if eval \${$3+:} false; then :
1654 $as_echo_n "(cached) " >&6
1655else
1656 eval "$3=\$ac_header_compiler"
1657fi
1658eval ac_res=\$$3
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660$as_echo "$ac_res" >&6; }
1661fi
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663
1664} # ac_fn_c_check_header_mongrel
1665
1666# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1667# -------------------------------------------
1668# Tests whether TYPE exists after having included INCLUDES, setting cache
1669# variable VAR accordingly.
1670ac_fn_c_check_type ()
1671{
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674$as_echo_n "checking for $2... " >&6; }
1675if eval \${$3+:} false; then :
1676 $as_echo_n "(cached) " >&6
1677else
1678 eval "$3=no"
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680/* end confdefs.h. */
1681$4
1682int
1683main ()
1684{
1685if (sizeof ($2))
1686 return 0;
1687 ;
1688 return 0;
1689}
1690_ACEOF
1691if ac_fn_c_try_compile "$LINENO"; then :
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693/* end confdefs.h. */
1694$4
1695int
1696main ()
1697{
1698if (sizeof (($2)))
1699 return 0;
1700 ;
1701 return 0;
1702}
1703_ACEOF
1704if ac_fn_c_try_compile "$LINENO"; then :
1705
1706else
1707 eval "$3=yes"
1708fi
1709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1710fi
1711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712fi
1713eval ac_res=\$$3
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715$as_echo "$ac_res" >&6; }
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717
1718} # ac_fn_c_check_type
1719
1720# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1721# --------------------------------------------
1722# Tries to find the compile-time value of EXPR in a program that includes
1723# INCLUDES, setting VAR accordingly. Returns whether the value could be
1724# computed
1725ac_fn_c_compute_int ()
1726{
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if test "$cross_compiling" = yes; then
1729 # Depending upon the size, compute the lo and hi bounds.
1730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731/* end confdefs.h. */
1732$4
1733int
1734main ()
1735{
1736static int test_array [1 - 2 * !(($2) >= 0)];
1737test_array [0] = 0;
1738return test_array [0];
1739
1740 ;
1741 return 0;
1742}
1743_ACEOF
1744if ac_fn_c_try_compile "$LINENO"; then :
1745 ac_lo=0 ac_mid=0
1746 while :; do
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748/* end confdefs.h. */
1749$4
1750int
1751main ()
1752{
1753static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1754test_array [0] = 0;
1755return test_array [0];
1756
1757 ;
1758 return 0;
1759}
1760_ACEOF
1761if ac_fn_c_try_compile "$LINENO"; then :
1762 ac_hi=$ac_mid; break
1763else
1764 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1765 if test $ac_lo -le $ac_mid; then
1766 ac_lo= ac_hi=
1767 break
1768 fi
1769 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1770fi
1771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 done
1773else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775/* end confdefs.h. */
1776$4
1777int
1778main ()
1779{
1780static int test_array [1 - 2 * !(($2) < 0)];
1781test_array [0] = 0;
1782return test_array [0];
1783
1784 ;
1785 return 0;
1786}
1787_ACEOF
1788if ac_fn_c_try_compile "$LINENO"; then :
1789 ac_hi=-1 ac_mid=-1
1790 while :; do
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792/* end confdefs.h. */
1793$4
1794int
1795main ()
1796{
1797static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1798test_array [0] = 0;
1799return test_array [0];
1800
1801 ;
1802 return 0;
1803}
1804_ACEOF
1805if ac_fn_c_try_compile "$LINENO"; then :
1806 ac_lo=$ac_mid; break
1807else
1808 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1809 if test $ac_mid -le $ac_hi; then
1810 ac_lo= ac_hi=
1811 break
1812 fi
1813 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1814fi
1815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 done
1817else
1818 ac_lo= ac_hi=
1819fi
1820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821fi
1822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823# Binary search between lo and hi bounds.
1824while test "x$ac_lo" != "x$ac_hi"; do
1825 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827/* end confdefs.h. */
1828$4
1829int
1830main ()
1831{
1832static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1833test_array [0] = 0;
1834return test_array [0];
1835
1836 ;
1837 return 0;
1838}
1839_ACEOF
1840if ac_fn_c_try_compile "$LINENO"; then :
1841 ac_hi=$ac_mid
1842else
1843 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1844fi
1845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846done
1847case $ac_lo in #((
1848?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1849'') ac_retval=1 ;;
1850esac
1851 else
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853/* end confdefs.h. */
1854$4
1855static long int longval () { return $2; }
1856static unsigned long int ulongval () { return $2; }
1857#include <stdio.h>
1858#include <stdlib.h>
1859int
1860main ()
1861{
1862
1863 FILE *f = fopen ("conftest.val", "w");
1864 if (! f)
1865 return 1;
1866 if (($2) < 0)
1867 {
1868 long int i = longval ();
1869 if (i != ($2))
1870 return 1;
1871 fprintf (f, "%ld", i);
1872 }
1873 else
1874 {
1875 unsigned long int i = ulongval ();
1876 if (i != ($2))
1877 return 1;
1878 fprintf (f, "%lu", i);
1879 }
1880 /* Do not output a trailing newline, as this causes \r\n confusion
1881 on some platforms. */
1882 return ferror (f) || fclose (f) != 0;
1883
1884 ;
1885 return 0;
1886}
1887_ACEOF
1888if ac_fn_c_try_run "$LINENO"; then :
1889 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1890else
1891 ac_retval=1
1892fi
1893rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1894 conftest.$ac_objext conftest.beam conftest.$ac_ext
1895rm -f conftest.val
1896
1897 fi
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 as_fn_set_status $ac_retval
1900
1901} # ac_fn_c_compute_int
1902
1903# ac_fn_c_try_link LINENO
1904# -----------------------
1905# Try to link conftest.$ac_ext, and return whether this succeeded.
1906ac_fn_c_try_link ()
1907{
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 rm -f conftest.$ac_objext conftest$ac_exeext
1910 if { { ac_try="$ac_link"
1911case "(($ac_try" in
1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913 *) ac_try_echo=$ac_try;;
1914esac
1915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916$as_echo "$ac_try_echo"; } >&5
1917 (eval "$ac_link") 2>conftest.err
1918 ac_status=$?
1919 if test -s conftest.err; then
1920 grep -v '^ *+' conftest.err >conftest.er1
1921 cat conftest.er1 >&5
1922 mv -f conftest.er1 conftest.err
1923 fi
1924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1925 test $ac_status = 0; } && {
1926 test -z "$ac_c_werror_flag" ||
1927 test ! -s conftest.err
1928 } && test -s conftest$ac_exeext && {
1929 test "$cross_compiling" = yes ||
1930 test -x conftest$ac_exeext
1931 }; then :
1932 ac_retval=0
1933else
1934 $as_echo "$as_me: failed program was:" >&5
1935sed 's/^/| /' conftest.$ac_ext >&5
1936
1937 ac_retval=1
1938fi
1939 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1940 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1941 # interfere with the next link command; also delete a directory that is
1942 # left behind by Apple's compiler. We do this before executing the actions.
1943 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 as_fn_set_status $ac_retval
1946
1947} # ac_fn_c_try_link
1948
1949# ac_fn_c_check_func LINENO FUNC VAR
1950# ----------------------------------
1951# Tests whether FUNC exists, setting the cache variable VAR accordingly
1952ac_fn_c_check_func ()
1953{
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1956$as_echo_n "checking for $2... " >&6; }
1957if eval \${$3+:} false; then :
1958 $as_echo_n "(cached) " >&6
1959else
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961/* end confdefs.h. */
1962/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1964#define $2 innocuous_$2
1965
1966/* System header to define __stub macros and hopefully few prototypes,
1967 which can conflict with char $2 (); below.
1968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1969 <limits.h> exists even on freestanding compilers. */
1970
1971#ifdef __STDC__
1972# include <limits.h>
1973#else
1974# include <assert.h>
1975#endif
1976
1977#undef $2
1978
1979/* Override any GCC internal prototype to avoid an error.
1980 Use char because int might match the return type of a GCC
1981 builtin and then its argument prototype would still apply. */
1982#ifdef __cplusplus
1983extern "C"
1984#endif
1985char $2 ();
1986/* The GNU C library defines this for functions which it implements
1987 to always fail with ENOSYS. Some functions are actually named
1988 something starting with __ and the normal name is an alias. */
1989#if defined __stub_$2 || defined __stub___$2
1990choke me
1991#endif
1992
1993int
1994main ()
1995{
1996return $2 ();
1997 ;
1998 return 0;
1999}
2000_ACEOF
2001if ac_fn_c_try_link "$LINENO"; then :
2002 eval "$3=yes"
2003else
2004 eval "$3=no"
2005fi
2006rm -f core conftest.err conftest.$ac_objext \
2007 conftest$ac_exeext conftest.$ac_ext
2008fi
2009eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011$as_echo "$ac_res" >&6; }
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013
2014} # ac_fn_c_check_func
2015cat >config.log <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002016This file contains any messages produced by compilers while
2017running configure, to aid debugging if configure makes a mistake.
2018
jfigusb058a3b2014-10-31 09:27:18 -04002019It was created by libsrtp $as_me 2.0.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04002020generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00002021
2022 $ $0 $@
2023
2024_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002025exec 5>>config.log
Cullen Jennings235513a2005-09-21 22:51:36 +00002026{
2027cat <<_ASUNAME
2028## --------- ##
2029## Platform. ##
2030## --------- ##
2031
2032hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2033uname -m = `(uname -m) 2>/dev/null || echo unknown`
2034uname -r = `(uname -r) 2>/dev/null || echo unknown`
2035uname -s = `(uname -s) 2>/dev/null || echo unknown`
2036uname -v = `(uname -v) 2>/dev/null || echo unknown`
2037
2038/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2039/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2040
2041/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2042/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2043/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
jfigusc7e66e32013-05-08 11:32:55 -04002044/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Cullen Jennings235513a2005-09-21 22:51:36 +00002045/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2046/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2047/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2048
2049_ASUNAME
2050
2051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052for as_dir in $PATH
2053do
2054 IFS=$as_save_IFS
2055 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002056 $as_echo "PATH: $as_dir"
2057 done
2058IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002059
2060} >&5
2061
2062cat >&5 <<_ACEOF
2063
2064
2065## ----------- ##
2066## Core tests. ##
2067## ----------- ##
2068
2069_ACEOF
2070
2071
2072# Keep a trace of the command line.
2073# Strip out --no-create and --no-recursion so they do not pile up.
2074# Strip out --silent because we don't want to record it for future runs.
2075# Also quote any args containing shell meta-characters.
2076# Make two passes to allow for proper duplicate-argument suppression.
2077ac_configure_args=
2078ac_configure_args0=
2079ac_configure_args1=
Cullen Jennings235513a2005-09-21 22:51:36 +00002080ac_must_keep_next=false
2081for ac_pass in 1 2
2082do
2083 for ac_arg
2084 do
2085 case $ac_arg in
2086 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2088 | -silent | --silent | --silen | --sile | --sil)
2089 continue ;;
jfigusc7e66e32013-05-08 11:32:55 -04002090 *\'*)
2091 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002092 esac
2093 case $ac_pass in
jfigusc7e66e32013-05-08 11:32:55 -04002094 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002095 2)
jfigusc7e66e32013-05-08 11:32:55 -04002096 as_fn_append ac_configure_args1 " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002097 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00002098 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00002099 else
David McGrewfec49dd2005-09-23 19:34:11 +00002100 case $ac_arg in
2101 *=* | --config-cache | -C | -disable-* | --disable-* \
2102 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2103 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2104 | -with-* | --with-* | -without-* | --without-* | --x)
2105 case "$ac_configure_args0 " in
2106 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2107 esac
2108 ;;
2109 -* ) ac_must_keep_next=true ;;
2110 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00002111 fi
jfigusc7e66e32013-05-08 11:32:55 -04002112 as_fn_append ac_configure_args " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002113 ;;
2114 esac
2115 done
2116done
jfigusc7e66e32013-05-08 11:32:55 -04002117{ ac_configure_args0=; unset ac_configure_args0;}
2118{ ac_configure_args1=; unset ac_configure_args1;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002119
2120# When interrupted or exit'd, cleanup temporary files, and complete
2121# config.log. We remove comments because anyway the quotes in there
2122# would cause problems or look ugly.
jfigusc7e66e32013-05-08 11:32:55 -04002123# WARNING: Use '\'' to represent an apostrophe within the trap.
2124# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Cullen Jennings235513a2005-09-21 22:51:36 +00002125trap 'exit_status=$?
2126 # Save into config.log some information that might help in debugging.
2127 {
2128 echo
2129
jfigusc7e66e32013-05-08 11:32:55 -04002130 $as_echo "## ---------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002131## Cache variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002132## ---------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002133 echo
2134 # The following way of writing the cache mishandles newlines in values,
jfigusc7e66e32013-05-08 11:32:55 -04002135(
2136 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2137 eval ac_val=\$$ac_var
2138 case $ac_val in #(
2139 *${as_nl}*)
2140 case $ac_var in #(
2141 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2142$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2143 esac
2144 case $ac_var in #(
2145 _ | IFS | as_nl) ;; #(
2146 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2147 *) { eval $ac_var=; unset $ac_var;} ;;
2148 esac ;;
2149 esac
2150 done
Cullen Jennings235513a2005-09-21 22:51:36 +00002151 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04002152 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2153 *${as_nl}ac_space=\ *)
Cullen Jennings235513a2005-09-21 22:51:36 +00002154 sed -n \
jfigusc7e66e32013-05-08 11:32:55 -04002155 "s/'\''/'\''\\\\'\'''\''/g;
2156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2157 ;; #(
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002158 *)
jfigusc7e66e32013-05-08 11:32:55 -04002159 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002160 ;;
jfigusc7e66e32013-05-08 11:32:55 -04002161 esac |
2162 sort
2163)
Cullen Jennings235513a2005-09-21 22:51:36 +00002164 echo
2165
jfigusc7e66e32013-05-08 11:32:55 -04002166 $as_echo "## ----------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002167## Output variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002168## ----------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002169 echo
2170 for ac_var in $ac_subst_vars
2171 do
jfigusc7e66e32013-05-08 11:32:55 -04002172 eval ac_val=\$$ac_var
2173 case $ac_val in
2174 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2175 esac
2176 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002177 done | sort
2178 echo
2179
2180 if test -n "$ac_subst_files"; then
jfigusc7e66e32013-05-08 11:32:55 -04002181 $as_echo "## ------------------- ##
2182## File substitutions. ##
2183## ------------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002184 echo
2185 for ac_var in $ac_subst_files
2186 do
jfigusc7e66e32013-05-08 11:32:55 -04002187 eval ac_val=\$$ac_var
2188 case $ac_val in
2189 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2190 esac
2191 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002192 done | sort
2193 echo
2194 fi
2195
2196 if test -s confdefs.h; then
jfigusc7e66e32013-05-08 11:32:55 -04002197 $as_echo "## ----------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002198## confdefs.h. ##
jfigusc7e66e32013-05-08 11:32:55 -04002199## ----------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002200 echo
jfigusc7e66e32013-05-08 11:32:55 -04002201 cat confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002202 echo
2203 fi
2204 test "$ac_signal" != 0 &&
jfigusc7e66e32013-05-08 11:32:55 -04002205 $as_echo "$as_me: caught signal $ac_signal"
2206 $as_echo "$as_me: exit $exit_status"
Cullen Jennings235513a2005-09-21 22:51:36 +00002207 } >&5
jfigusc7e66e32013-05-08 11:32:55 -04002208 rm -f core *.core core.conftest.* &&
2209 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Cullen Jennings235513a2005-09-21 22:51:36 +00002210 exit $exit_status
jfigusc7e66e32013-05-08 11:32:55 -04002211' 0
Cullen Jennings235513a2005-09-21 22:51:36 +00002212for ac_signal in 1 2 13 15; do
jfigusc7e66e32013-05-08 11:32:55 -04002213 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Cullen Jennings235513a2005-09-21 22:51:36 +00002214done
2215ac_signal=0
2216
2217# confdefs.h avoids OS command line length limits that DEFS can exceed.
jfigusc7e66e32013-05-08 11:32:55 -04002218rm -f -r conftest* confdefs.h
2219
2220$as_echo "/* confdefs.h */" > confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002221
2222# Predefined preprocessor variables.
2223
2224cat >>confdefs.h <<_ACEOF
2225#define PACKAGE_NAME "$PACKAGE_NAME"
2226_ACEOF
2227
Cullen Jennings235513a2005-09-21 22:51:36 +00002228cat >>confdefs.h <<_ACEOF
2229#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2230_ACEOF
2231
Cullen Jennings235513a2005-09-21 22:51:36 +00002232cat >>confdefs.h <<_ACEOF
2233#define PACKAGE_VERSION "$PACKAGE_VERSION"
2234_ACEOF
2235
Cullen Jennings235513a2005-09-21 22:51:36 +00002236cat >>confdefs.h <<_ACEOF
2237#define PACKAGE_STRING "$PACKAGE_STRING"
2238_ACEOF
2239
Cullen Jennings235513a2005-09-21 22:51:36 +00002240cat >>confdefs.h <<_ACEOF
2241#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2242_ACEOF
2243
jfigusc7e66e32013-05-08 11:32:55 -04002244cat >>confdefs.h <<_ACEOF
2245#define PACKAGE_URL "$PACKAGE_URL"
2246_ACEOF
2247
Cullen Jennings235513a2005-09-21 22:51:36 +00002248
2249# Let the site file select an alternate cache file if it wants to.
jfigusc7e66e32013-05-08 11:32:55 -04002250# Prefer an explicitly selected file to automatically selected ones.
2251ac_site_file1=NONE
2252ac_site_file2=NONE
2253if test -n "$CONFIG_SITE"; then
2254 # We do not want a PATH search for config.site.
2255 case $CONFIG_SITE in #((
2256 -*) ac_site_file1=./$CONFIG_SITE;;
2257 */*) ac_site_file1=$CONFIG_SITE;;
2258 *) ac_site_file1=./$CONFIG_SITE;;
2259 esac
2260elif test "x$prefix" != xNONE; then
2261 ac_site_file1=$prefix/share/config.site
2262 ac_site_file2=$prefix/etc/config.site
2263else
2264 ac_site_file1=$ac_default_prefix/share/config.site
2265 ac_site_file2=$ac_default_prefix/etc/config.site
Cullen Jennings235513a2005-09-21 22:51:36 +00002266fi
jfigusc7e66e32013-05-08 11:32:55 -04002267for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2268do
2269 test "x$ac_site_file" = xNONE && continue
2270 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2272$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002273 sed 's/^/| /' "$ac_site_file" >&5
jfigusc7e66e32013-05-08 11:32:55 -04002274 . "$ac_site_file" \
2275 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2277as_fn_error $? "failed to load site script $ac_site_file
2278See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002279 fi
2280done
2281
2282if test -r "$cache_file"; then
jfigusc7e66e32013-05-08 11:32:55 -04002283 # Some versions of bash will fail to source /dev/null (special files
2284 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2285 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2287$as_echo "$as_me: loading cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002288 case $cache_file in
jfigusc7e66e32013-05-08 11:32:55 -04002289 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2290 *) . "./$cache_file";;
Cullen Jennings235513a2005-09-21 22:51:36 +00002291 esac
2292 fi
2293else
jfigusc7e66e32013-05-08 11:32:55 -04002294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2295$as_echo "$as_me: creating cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002296 >$cache_file
2297fi
2298
2299# Check that the precious variables saved in the cache have kept the same
2300# value.
2301ac_cache_corrupted=false
jfigusc7e66e32013-05-08 11:32:55 -04002302for ac_var in $ac_precious_vars; do
Cullen Jennings235513a2005-09-21 22:51:36 +00002303 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2304 eval ac_new_set=\$ac_env_${ac_var}_set
jfigusc7e66e32013-05-08 11:32:55 -04002305 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2306 eval ac_new_val=\$ac_env_${ac_var}_value
Cullen Jennings235513a2005-09-21 22:51:36 +00002307 case $ac_old_set,$ac_new_set in
2308 set,)
jfigusc7e66e32013-05-08 11:32:55 -04002309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2310$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 +00002311 ac_cache_corrupted=: ;;
2312 ,set)
jfigusc7e66e32013-05-08 11:32:55 -04002313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2314$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002315 ac_cache_corrupted=: ;;
2316 ,);;
2317 *)
2318 if test "x$ac_old_val" != "x$ac_new_val"; then
jfigusc7e66e32013-05-08 11:32:55 -04002319 # differences in whitespace do not lead to failure.
2320 ac_old_val_w=`echo x $ac_old_val`
2321 ac_new_val_w=`echo x $ac_new_val`
2322 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2324$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2325 ac_cache_corrupted=:
2326 else
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2328$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2329 eval $ac_var=\$ac_old_val
2330 fi
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2332$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2334$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002335 fi;;
2336 esac
2337 # Pass precious variables to config.status.
2338 if test "$ac_new_set" = set; then
2339 case $ac_new_val in
jfigusc7e66e32013-05-08 11:32:55 -04002340 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002341 *) ac_arg=$ac_var=$ac_new_val ;;
2342 esac
2343 case " $ac_configure_args " in
2344 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jfigusc7e66e32013-05-08 11:32:55 -04002345 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002346 esac
2347 fi
2348done
2349if $ac_cache_corrupted; then
jfigusc7e66e32013-05-08 11:32:55 -04002350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2353$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2354 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00002355fi
jfigusc7e66e32013-05-08 11:32:55 -04002356## -------------------- ##
2357## Main body of script. ##
2358## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002359
2360ac_ext=c
2361ac_cpp='$CPP $CPPFLAGS'
2362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365
2366
2367
David McGrewb67061f2005-09-28 14:23:06 +00002368if test -z "$CFLAGS"; then
Sean Brightbfb9e302014-03-24 20:45:17 -04002369 CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops"
David McGrewb67061f2005-09-28 14:23:06 +00002370fi
2371
Cullen Jennings235513a2005-09-21 22:51:36 +00002372if test -n "$ac_tool_prefix"; then
2373 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2374set dummy ${ac_tool_prefix}ranlib; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2376$as_echo_n "checking for $ac_word... " >&6; }
2377if ${ac_cv_prog_RANLIB+:} false; then :
2378 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002379else
2380 if test -n "$RANLIB"; then
2381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2382else
2383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384for as_dir in $PATH
2385do
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002390 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
jfigusc7e66e32013-05-08 11:32:55 -04002391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002392 break 2
2393 fi
2394done
jfigusc7e66e32013-05-08 11:32:55 -04002395 done
2396IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002397
2398fi
2399fi
2400RANLIB=$ac_cv_prog_RANLIB
2401if test -n "$RANLIB"; then
jfigusc7e66e32013-05-08 11:32:55 -04002402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2403$as_echo "$RANLIB" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002404else
jfigusc7e66e32013-05-08 11:32:55 -04002405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2406$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002407fi
2408
jfigusc7e66e32013-05-08 11:32:55 -04002409
Cullen Jennings235513a2005-09-21 22:51:36 +00002410fi
2411if test -z "$ac_cv_prog_RANLIB"; then
2412 ac_ct_RANLIB=$RANLIB
2413 # Extract the first word of "ranlib", so it can be a program name with args.
2414set dummy ranlib; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2416$as_echo_n "checking for $ac_word... " >&6; }
2417if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2418 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002419else
2420 if test -n "$ac_ct_RANLIB"; then
2421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2422else
2423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424for as_dir in $PATH
2425do
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002430 ac_cv_prog_ac_ct_RANLIB="ranlib"
jfigusc7e66e32013-05-08 11:32:55 -04002431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002432 break 2
2433 fi
2434done
jfigusc7e66e32013-05-08 11:32:55 -04002435 done
2436IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002437
Cullen Jennings235513a2005-09-21 22:51:36 +00002438fi
2439fi
2440ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2441if test -n "$ac_ct_RANLIB"; then
jfigusc7e66e32013-05-08 11:32:55 -04002442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2443$as_echo "$ac_ct_RANLIB" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002444else
jfigusc7e66e32013-05-08 11:32:55 -04002445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2446$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002447fi
2448
jfigusc7e66e32013-05-08 11:32:55 -04002449 if test "x$ac_ct_RANLIB" = x; then
2450 RANLIB=":"
2451 else
2452 case $cross_compiling:$ac_tool_warned in
2453yes:)
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2456ac_tool_warned=yes ;;
2457esac
2458 RANLIB=$ac_ct_RANLIB
2459 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002460else
2461 RANLIB="$ac_cv_prog_RANLIB"
2462fi
2463
2464ac_ext=c
2465ac_cpp='$CPP $CPPFLAGS'
2466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469if test -n "$ac_tool_prefix"; then
2470 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2471set dummy ${ac_tool_prefix}gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2473$as_echo_n "checking for $ac_word... " >&6; }
2474if ${ac_cv_prog_CC+:} false; then :
2475 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002476else
2477 if test -n "$CC"; then
2478 ac_cv_prog_CC="$CC" # Let the user override the test.
2479else
2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481for as_dir in $PATH
2482do
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002487 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002489 break 2
2490 fi
2491done
jfigusc7e66e32013-05-08 11:32:55 -04002492 done
2493IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002494
2495fi
2496fi
2497CC=$ac_cv_prog_CC
2498if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2500$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002501else
jfigusc7e66e32013-05-08 11:32:55 -04002502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2503$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002504fi
2505
jfigusc7e66e32013-05-08 11:32:55 -04002506
Cullen Jennings235513a2005-09-21 22:51:36 +00002507fi
2508if test -z "$ac_cv_prog_CC"; then
2509 ac_ct_CC=$CC
2510 # Extract the first word of "gcc", so it can be a program name with args.
2511set dummy gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2513$as_echo_n "checking for $ac_word... " >&6; }
2514if ${ac_cv_prog_ac_ct_CC+:} false; then :
2515 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002516else
2517 if test -n "$ac_ct_CC"; then
2518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2519else
2520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521for as_dir in $PATH
2522do
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002527 ac_cv_prog_ac_ct_CC="gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002529 break 2
2530 fi
2531done
jfigusc7e66e32013-05-08 11:32:55 -04002532 done
2533IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002534
2535fi
2536fi
2537ac_ct_CC=$ac_cv_prog_ac_ct_CC
2538if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2540$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002541else
jfigusc7e66e32013-05-08 11:32:55 -04002542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002544fi
2545
jfigusc7e66e32013-05-08 11:32:55 -04002546 if test "x$ac_ct_CC" = x; then
2547 CC=""
2548 else
2549 case $cross_compiling:$ac_tool_warned in
2550yes:)
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2553ac_tool_warned=yes ;;
2554esac
2555 CC=$ac_ct_CC
2556 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002557else
2558 CC="$ac_cv_prog_CC"
2559fi
2560
2561if test -z "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002562 if test -n "$ac_tool_prefix"; then
2563 # 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 +00002564set dummy ${ac_tool_prefix}cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2566$as_echo_n "checking for $ac_word... " >&6; }
2567if ${ac_cv_prog_CC+:} false; then :
2568 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002569else
2570 if test -n "$CC"; then
2571 ac_cv_prog_CC="$CC" # Let the user override the test.
2572else
2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574for as_dir in $PATH
2575do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002580 ac_cv_prog_CC="${ac_tool_prefix}cc"
jfigusc7e66e32013-05-08 11:32:55 -04002581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002582 break 2
2583 fi
2584done
jfigusc7e66e32013-05-08 11:32:55 -04002585 done
2586IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002587
2588fi
2589fi
2590CC=$ac_cv_prog_CC
2591if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2593$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002594else
jfigusc7e66e32013-05-08 11:32:55 -04002595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002597fi
2598
jfigusc7e66e32013-05-08 11:32:55 -04002599
Cullen Jennings235513a2005-09-21 22:51:36 +00002600 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002601fi
2602if test -z "$CC"; then
2603 # Extract the first word of "cc", so it can be a program name with args.
2604set dummy cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606$as_echo_n "checking for $ac_word... " >&6; }
2607if ${ac_cv_prog_CC+:} false; then :
2608 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002609else
2610 if test -n "$CC"; then
2611 ac_cv_prog_CC="$CC" # Let the user override the test.
2612else
2613 ac_prog_rejected=no
2614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615for as_dir in $PATH
2616do
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002621 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2622 ac_prog_rejected=yes
2623 continue
2624 fi
2625 ac_cv_prog_CC="cc"
jfigusc7e66e32013-05-08 11:32:55 -04002626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002627 break 2
2628 fi
2629done
jfigusc7e66e32013-05-08 11:32:55 -04002630 done
2631IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002632
2633if test $ac_prog_rejected = yes; then
2634 # We found a bogon in the path, so make sure we never use it.
2635 set dummy $ac_cv_prog_CC
2636 shift
2637 if test $# != 0; then
2638 # We chose a different compiler from the bogus one.
2639 # However, it has the same basename, so the bogon will be chosen
2640 # first if we set CC to just the basename; use the full file name.
2641 shift
2642 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2643 fi
2644fi
2645fi
2646fi
2647CC=$ac_cv_prog_CC
2648if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2650$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002651else
jfigusc7e66e32013-05-08 11:32:55 -04002652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002654fi
2655
jfigusc7e66e32013-05-08 11:32:55 -04002656
Cullen Jennings235513a2005-09-21 22:51:36 +00002657fi
2658if test -z "$CC"; then
2659 if test -n "$ac_tool_prefix"; then
jfigusc7e66e32013-05-08 11:32:55 -04002660 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002661 do
2662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2663set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665$as_echo_n "checking for $ac_word... " >&6; }
2666if ${ac_cv_prog_CC+:} false; then :
2667 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002668else
2669 if test -n "$CC"; then
2670 ac_cv_prog_CC="$CC" # Let the user override the test.
2671else
2672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673for as_dir in $PATH
2674do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002679 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002681 break 2
2682 fi
2683done
jfigusc7e66e32013-05-08 11:32:55 -04002684 done
2685IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002686
2687fi
2688fi
2689CC=$ac_cv_prog_CC
2690if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2692$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002693else
jfigusc7e66e32013-05-08 11:32:55 -04002694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002696fi
2697
jfigusc7e66e32013-05-08 11:32:55 -04002698
Cullen Jennings235513a2005-09-21 22:51:36 +00002699 test -n "$CC" && break
2700 done
2701fi
2702if test -z "$CC"; then
2703 ac_ct_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04002704 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002705do
2706 # Extract the first word of "$ac_prog", so it can be a program name with args.
2707set dummy $ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709$as_echo_n "checking for $ac_word... " >&6; }
2710if ${ac_cv_prog_ac_ct_CC+:} false; then :
2711 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002712else
2713 if test -n "$ac_ct_CC"; then
2714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2715else
2716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717for as_dir in $PATH
2718do
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002723 ac_cv_prog_ac_ct_CC="$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002725 break 2
2726 fi
2727done
jfigusc7e66e32013-05-08 11:32:55 -04002728 done
2729IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002730
2731fi
2732fi
2733ac_ct_CC=$ac_cv_prog_ac_ct_CC
2734if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2736$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002737else
jfigusc7e66e32013-05-08 11:32:55 -04002738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002740fi
2741
jfigusc7e66e32013-05-08 11:32:55 -04002742
Cullen Jennings235513a2005-09-21 22:51:36 +00002743 test -n "$ac_ct_CC" && break
2744done
2745
jfigusc7e66e32013-05-08 11:32:55 -04002746 if test "x$ac_ct_CC" = x; then
2747 CC=""
2748 else
2749 case $cross_compiling:$ac_tool_warned in
2750yes:)
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2753ac_tool_warned=yes ;;
2754esac
2755 CC=$ac_ct_CC
2756 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002757fi
2758
2759fi
2760
2761
jfigusc7e66e32013-05-08 11:32:55 -04002762test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2764as_fn_error $? "no acceptable C compiler found in \$PATH
2765See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002766
2767# Provide some information about the compiler.
jfigusc7e66e32013-05-08 11:32:55 -04002768$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2769set X $ac_compile
2770ac_compiler=$2
2771for ac_option in --version -v -V -qversion; do
2772 { { ac_try="$ac_compiler $ac_option >&5"
2773case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2776esac
2777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2778$as_echo "$ac_try_echo"; } >&5
2779 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Cullen Jennings235513a2005-09-21 22:51:36 +00002780 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002781 if test -s conftest.err; then
2782 sed '10a\
2783... rest of stderr output deleted ...
2784 10q' conftest.err >conftest.er1
2785 cat conftest.er1 >&5
2786 fi
2787 rm -f conftest.er1 conftest.err
2788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2789 test $ac_status = 0; }
2790done
Cullen Jennings235513a2005-09-21 22:51:36 +00002791
jfigusc7e66e32013-05-08 11:32:55 -04002792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002793/* end confdefs.h. */
2794
2795int
2796main ()
2797{
2798
2799 ;
2800 return 0;
2801}
2802_ACEOF
2803ac_clean_files_save=$ac_clean_files
jfigusc7e66e32013-05-08 11:32:55 -04002804ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Cullen Jennings235513a2005-09-21 22:51:36 +00002805# Try to create an executable without -o first, disregard a.out.
2806# It will help us diagnose broken compilers, and finding out an intuition
2807# of exeext.
jfigusc7e66e32013-05-08 11:32:55 -04002808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2809$as_echo_n "checking whether the C compiler works... " >&6; }
2810ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002811
jfigusc7e66e32013-05-08 11:32:55 -04002812# The possible output files:
2813ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2814
2815ac_rmfiles=
2816for ac_file in $ac_files
2817do
2818 case $ac_file in
2819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2820 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2821 esac
2822done
2823rm -f $ac_rmfiles
2824
2825if { { ac_try="$ac_link_default"
2826case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2829esac
2830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2831$as_echo "$ac_try_echo"; } >&5
2832 (eval "$ac_link_default") 2>&5
2833 ac_status=$?
2834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2835 test $ac_status = 0; }; then :
2836 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2837# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2838# in a Makefile. We should not override ac_cv_exeext if it was cached,
2839# so that the user can short-circuit this test for compilers unknown to
2840# Autoconf.
2841for ac_file in $ac_files ''
Cullen Jennings235513a2005-09-21 22:51:36 +00002842do
2843 test -f "$ac_file" || continue
2844 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00002846 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002847 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00002848 # We found the default executable, but exeext='' is most
2849 # certainly right.
2850 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002851 *.* )
jfigusc7e66e32013-05-08 11:32:55 -04002852 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2853 then :; else
2854 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2855 fi
2856 # We set ac_cv_exeext here because the later test for it is not
2857 # safe: cross compilers may not add the suffix if given an `-o'
2858 # argument, so we may need to know it at that point already.
2859 # Even if this section looks crufty: it has the advantage of
2860 # actually working.
David McGrewfec49dd2005-09-23 19:34:11 +00002861 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002862 * )
David McGrewfec49dd2005-09-23 19:34:11 +00002863 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002864 esac
2865done
jfigusc7e66e32013-05-08 11:32:55 -04002866test "$ac_cv_exeext" = no && ac_cv_exeext=
2867
Cullen Jennings235513a2005-09-21 22:51:36 +00002868else
jfigusc7e66e32013-05-08 11:32:55 -04002869 ac_file=''
2870fi
2871if test -z "$ac_file"; then :
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873$as_echo "no" >&6; }
2874$as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002875sed 's/^/| /' conftest.$ac_ext >&5
2876
jfigusc7e66e32013-05-08 11:32:55 -04002877{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2879as_fn_error 77 "C compiler cannot create executables
2880See \`config.log' for more details" "$LINENO" 5; }
2881else
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2883$as_echo "yes" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002884fi
jfigusc7e66e32013-05-08 11:32:55 -04002885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2886$as_echo_n "checking for C compiler default output file name... " >&6; }
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2888$as_echo "$ac_file" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002889ac_exeext=$ac_cv_exeext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002890
jfigusc7e66e32013-05-08 11:32:55 -04002891rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002892ac_clean_files=$ac_clean_files_save
jfigusc7e66e32013-05-08 11:32:55 -04002893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2894$as_echo_n "checking for suffix of executables... " >&6; }
2895if { { ac_try="$ac_link"
2896case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899esac
2900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2901$as_echo "$ac_try_echo"; } >&5
2902 (eval "$ac_link") 2>&5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002903 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2905 test $ac_status = 0; }; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002906 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2907# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2908# work properly (i.e., refer to `conftest.exe'), while it won't with
2909# `rm'.
2910for ac_file in conftest.exe conftest conftest.*; do
2911 test -f "$ac_file" || continue
2912 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002914 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00002915 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002916 * ) break;;
2917 esac
2918done
2919else
jfigusc7e66e32013-05-08 11:32:55 -04002920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2922as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2923See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002924fi
jfigusc7e66e32013-05-08 11:32:55 -04002925rm -f conftest conftest$ac_cv_exeext
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2927$as_echo "$ac_cv_exeext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002928
2929rm -f conftest.$ac_ext
2930EXEEXT=$ac_cv_exeext
2931ac_exeext=$EXEEXT
jfigusc7e66e32013-05-08 11:32:55 -04002932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2933/* end confdefs.h. */
2934#include <stdio.h>
2935int
2936main ()
2937{
2938FILE *f = fopen ("conftest.out", "w");
2939 return ferror (f) || fclose (f) != 0;
2940
2941 ;
2942 return 0;
2943}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002944_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002945ac_clean_files="$ac_clean_files conftest.out"
2946# Check that the compiler produces executables we can run. If not, either
2947# the compiler is broken, or we cross compile.
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2949$as_echo_n "checking whether we are cross compiling... " >&6; }
2950if test "$cross_compiling" != yes; then
2951 { { ac_try="$ac_link"
2952case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955esac
2956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2957$as_echo "$ac_try_echo"; } >&5
2958 (eval "$ac_link") 2>&5
2959 ac_status=$?
2960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2961 test $ac_status = 0; }
2962 if { ac_try='./conftest$ac_cv_exeext'
2963 { { case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2966esac
2967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2968$as_echo "$ac_try_echo"; } >&5
2969 (eval "$ac_try") 2>&5
2970 ac_status=$?
2971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2972 test $ac_status = 0; }; }; then
2973 cross_compiling=no
2974 else
2975 if test "$cross_compiling" = maybe; then
2976 cross_compiling=yes
2977 else
2978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2980as_fn_error $? "cannot run C compiled programs.
2981If you meant to cross compile, use \`--host'.
2982See \`config.log' for more details" "$LINENO" 5; }
2983 fi
2984 fi
2985fi
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2987$as_echo "$cross_compiling" >&6; }
2988
2989rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2990ac_clean_files=$ac_clean_files_save
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2992$as_echo_n "checking for suffix of object files... " >&6; }
2993if ${ac_cv_objext+:} false; then :
2994 $as_echo_n "(cached) " >&6
2995else
2996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002997/* end confdefs.h. */
2998
2999int
3000main ()
3001{
3002
3003 ;
3004 return 0;
3005}
3006_ACEOF
3007rm -f conftest.o conftest.obj
jfigusc7e66e32013-05-08 11:32:55 -04003008if { { ac_try="$ac_compile"
3009case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012esac
3013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3014$as_echo "$ac_try_echo"; } >&5
3015 (eval "$ac_compile") 2>&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003016 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04003017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3018 test $ac_status = 0; }; then :
3019 for ac_file in conftest.o conftest.obj conftest.*; do
3020 test -f "$ac_file" || continue;
Cullen Jennings235513a2005-09-21 22:51:36 +00003021 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04003022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003023 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3024 break;;
3025 esac
3026done
3027else
jfigusc7e66e32013-05-08 11:32:55 -04003028 $as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003029sed 's/^/| /' conftest.$ac_ext >&5
3030
jfigusc7e66e32013-05-08 11:32:55 -04003031{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3033as_fn_error $? "cannot compute suffix of object files: cannot compile
3034See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003035fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003036rm -f conftest.$ac_cv_objext conftest.$ac_ext
3037fi
jfigusc7e66e32013-05-08 11:32:55 -04003038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3039$as_echo "$ac_cv_objext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003040OBJEXT=$ac_cv_objext
3041ac_objext=$OBJEXT
jfigusc7e66e32013-05-08 11:32:55 -04003042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3043$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3044if ${ac_cv_c_compiler_gnu+:} false; then :
3045 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003046else
jfigusc7e66e32013-05-08 11:32:55 -04003047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003048/* end confdefs.h. */
3049
3050int
3051main ()
3052{
3053#ifndef __GNUC__
3054 choke me
3055#endif
3056
3057 ;
3058 return 0;
3059}
3060_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003061if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003062 ac_compiler_gnu=yes
3063else
jfigusc7e66e32013-05-08 11:32:55 -04003064 ac_compiler_gnu=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003065fi
jfigusc7e66e32013-05-08 11:32:55 -04003066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003067ac_cv_c_compiler_gnu=$ac_compiler_gnu
3068
3069fi
jfigusc7e66e32013-05-08 11:32:55 -04003070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3071$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3072if test $ac_compiler_gnu = yes; then
3073 GCC=yes
3074else
3075 GCC=
3076fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003077ac_test_CFLAGS=${CFLAGS+set}
3078ac_save_CFLAGS=$CFLAGS
jfigusc7e66e32013-05-08 11:32:55 -04003079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3080$as_echo_n "checking whether $CC accepts -g... " >&6; }
3081if ${ac_cv_prog_cc_g+:} false; then :
3082 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003083else
jfigusc7e66e32013-05-08 11:32:55 -04003084 ac_save_c_werror_flag=$ac_c_werror_flag
3085 ac_c_werror_flag=yes
3086 ac_cv_prog_cc_g=no
3087 CFLAGS="-g"
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003089/* end confdefs.h. */
3090
3091int
3092main ()
3093{
3094
3095 ;
3096 return 0;
3097}
3098_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003099if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003100 ac_cv_prog_cc_g=yes
3101else
jfigusc7e66e32013-05-08 11:32:55 -04003102 CFLAGS=""
3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00003105
jfigusc7e66e32013-05-08 11:32:55 -04003106int
3107main ()
3108{
3109
3110 ;
3111 return 0;
3112}
3113_ACEOF
3114if ac_fn_c_try_compile "$LINENO"; then :
3115
3116else
3117 ac_c_werror_flag=$ac_save_c_werror_flag
3118 CFLAGS="-g"
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120/* end confdefs.h. */
3121
3122int
3123main ()
3124{
3125
3126 ;
3127 return 0;
3128}
3129_ACEOF
3130if ac_fn_c_try_compile "$LINENO"; then :
3131 ac_cv_prog_cc_g=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003132fi
jfigusc7e66e32013-05-08 11:32:55 -04003133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
3136fi
3137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3138 ac_c_werror_flag=$ac_save_c_werror_flag
3139fi
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3141$as_echo "$ac_cv_prog_cc_g" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003142if test "$ac_test_CFLAGS" = set; then
3143 CFLAGS=$ac_save_CFLAGS
3144elif test $ac_cv_prog_cc_g = yes; then
3145 if test "$GCC" = yes; then
3146 CFLAGS="-g -O2"
3147 else
3148 CFLAGS="-g"
3149 fi
3150else
3151 if test "$GCC" = yes; then
3152 CFLAGS="-O2"
3153 else
3154 CFLAGS=
3155 fi
3156fi
jfigusc7e66e32013-05-08 11:32:55 -04003157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3158$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3159if ${ac_cv_prog_cc_c89+:} false; then :
3160 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003161else
jfigusc7e66e32013-05-08 11:32:55 -04003162 ac_cv_prog_cc_c89=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003163ac_save_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04003164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003165/* end confdefs.h. */
3166#include <stdarg.h>
3167#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -04003168struct stat;
Cullen Jennings235513a2005-09-21 22:51:36 +00003169/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3170struct buf { int x; };
3171FILE * (*rcsopen) (struct buf *, struct stat *, int);
3172static char *e (p, i)
3173 char **p;
3174 int i;
3175{
3176 return p[i];
3177}
3178static char *f (char * (*g) (char **, int), char **p, ...)
3179{
3180 char *s;
3181 va_list v;
3182 va_start (v,p);
3183 s = g (p, va_arg (v,int));
3184 va_end (v);
3185 return s;
3186}
David McGrewfec49dd2005-09-23 19:34:11 +00003187
3188/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3189 function prototypes and stuff, but not '\xHH' hex character constants.
3190 These don't provoke an error unfortunately, instead are silently treated
jfigusc7e66e32013-05-08 11:32:55 -04003191 as 'x'. The following induces an error, until -std is added to get
David McGrewfec49dd2005-09-23 19:34:11 +00003192 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3193 array size at least. It's necessary to write '\x00'==0 to get something
jfigusc7e66e32013-05-08 11:32:55 -04003194 that's true only with -std. */
David McGrewfec49dd2005-09-23 19:34:11 +00003195int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3196
jfigusc7e66e32013-05-08 11:32:55 -04003197/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3198 inside strings and character constants. */
3199#define FOO(x) 'x'
3200int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3201
Cullen Jennings235513a2005-09-21 22:51:36 +00003202int test (int i, double x);
3203struct s1 {int (*f) (int a);};
3204struct s2 {int (*f) (double a);};
3205int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3206int argc;
3207char **argv;
3208int
3209main ()
3210{
3211return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3212 ;
3213 return 0;
3214}
3215_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003216for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3217 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Cullen Jennings235513a2005-09-21 22:51:36 +00003218do
3219 CC="$ac_save_CC $ac_arg"
jfigusc7e66e32013-05-08 11:32:55 -04003220 if ac_fn_c_try_compile "$LINENO"; then :
3221 ac_cv_prog_cc_c89=$ac_arg
Cullen Jennings235513a2005-09-21 22:51:36 +00003222fi
jfigusc7e66e32013-05-08 11:32:55 -04003223rm -f core conftest.err conftest.$ac_objext
3224 test "x$ac_cv_prog_cc_c89" != "xno" && break
Cullen Jennings235513a2005-09-21 22:51:36 +00003225done
jfigusc7e66e32013-05-08 11:32:55 -04003226rm -f conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003227CC=$ac_save_CC
3228
3229fi
jfigusc7e66e32013-05-08 11:32:55 -04003230# AC_CACHE_VAL
3231case "x$ac_cv_prog_cc_c89" in
3232 x)
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3234$as_echo "none needed" >&6; } ;;
3235 xno)
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3237$as_echo "unsupported" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003238 *)
jfigusc7e66e32013-05-08 11:32:55 -04003239 CC="$CC $ac_cv_prog_cc_c89"
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3241$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003242esac
jfigusc7e66e32013-05-08 11:32:55 -04003243if test "x$ac_cv_prog_cc_c89" != xno; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003244
3245fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003246
Cullen Jennings235513a2005-09-21 22:51:36 +00003247ac_ext=c
3248ac_cpp='$CPP $CPPFLAGS'
3249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252
David McGrewb67061f2005-09-28 14:23:06 +00003253ac_aux_dir=
jfigusc7e66e32013-05-08 11:32:55 -04003254for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3255 if test -f "$ac_dir/install-sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003256 ac_aux_dir=$ac_dir
3257 ac_install_sh="$ac_aux_dir/install-sh -c"
3258 break
jfigusc7e66e32013-05-08 11:32:55 -04003259 elif test -f "$ac_dir/install.sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003260 ac_aux_dir=$ac_dir
3261 ac_install_sh="$ac_aux_dir/install.sh -c"
3262 break
jfigusc7e66e32013-05-08 11:32:55 -04003263 elif test -f "$ac_dir/shtool"; then
David McGrewb67061f2005-09-28 14:23:06 +00003264 ac_aux_dir=$ac_dir
3265 ac_install_sh="$ac_aux_dir/shtool install -c"
3266 break
3267 fi
3268done
3269if test -z "$ac_aux_dir"; then
jfigusc7e66e32013-05-08 11:32:55 -04003270 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
David McGrewb67061f2005-09-28 14:23:06 +00003271fi
jfigusc7e66e32013-05-08 11:32:55 -04003272
3273# These three variables are undocumented and unsupported,
3274# and are intended to be withdrawn in a future Autoconf release.
3275# They can cause serious problems if a builder's source tree is in a directory
3276# whose full name contains unusual characters.
3277ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3278ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3279ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3280
Cullen Jennings235513a2005-09-21 22:51:36 +00003281
David McGrewb67061f2005-09-28 14:23:06 +00003282# Find a good install program. We prefer a C program (faster),
3283# so one script is as good as another. But avoid the broken or
3284# incompatible versions:
3285# SysV /etc/install, /usr/sbin/install
3286# SunOS /usr/etc/install
3287# IRIX /sbin/install
3288# AIX /bin/install
3289# AmigaOS /C/install, which installs bootblocks on floppy discs
3290# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3291# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3292# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3293# OS/2's system install, which has a completely different semantic
3294# ./install, which can be erroneously created by make from ./install.sh.
jfigusc7e66e32013-05-08 11:32:55 -04003295# Reject install programs that cannot install multiple files.
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3297$as_echo_n "checking for a BSD-compatible install... " >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00003298if test -z "$INSTALL"; then
jfigusc7e66e32013-05-08 11:32:55 -04003299if ${ac_cv_path_install+:} false; then :
3300 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003301else
David McGrewb67061f2005-09-28 14:23:06 +00003302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303for as_dir in $PATH
3304do
3305 IFS=$as_save_IFS
3306 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04003307 # Account for people who put trailing slashes in PATH elements.
3308case $as_dir/ in #((
3309 ./ | .// | /[cC]/* | \
David McGrewb67061f2005-09-28 14:23:06 +00003310 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jfigusc7e66e32013-05-08 11:32:55 -04003311 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
David McGrewb67061f2005-09-28 14:23:06 +00003312 /usr/ucb/* ) ;;
3313 *)
3314 # OSF1 and SCO ODT 3.0 have their own names for install.
3315 # Don't use installbsd from OSF since it installs stuff as root
3316 # by default.
3317 for ac_prog in ginstall scoinst install; do
3318 for ac_exec_ext in '' $ac_executable_extensions; do
jfigusc7e66e32013-05-08 11:32:55 -04003319 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
David McGrewb67061f2005-09-28 14:23:06 +00003320 if test $ac_prog = install &&
3321 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3322 # AIX install. It has an incompatible calling convention.
3323 :
3324 elif test $ac_prog = install &&
3325 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3326 # program-specific install script used by HP pwplus--don't use.
3327 :
3328 else
jfigusc7e66e32013-05-08 11:32:55 -04003329 rm -rf conftest.one conftest.two conftest.dir
3330 echo one > conftest.one
3331 echo two > conftest.two
3332 mkdir conftest.dir
3333 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3334 test -s conftest.one && test -s conftest.two &&
3335 test -s conftest.dir/conftest.one &&
3336 test -s conftest.dir/conftest.two
3337 then
3338 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3339 break 3
3340 fi
David McGrewb67061f2005-09-28 14:23:06 +00003341 fi
3342 fi
3343 done
3344 done
3345 ;;
3346esac
Cullen Jennings235513a2005-09-21 22:51:36 +00003347
jfigusc7e66e32013-05-08 11:32:55 -04003348 done
3349IFS=$as_save_IFS
3350
3351rm -rf conftest.one conftest.two conftest.dir
Cullen Jennings235513a2005-09-21 22:51:36 +00003352
3353fi
David McGrewb67061f2005-09-28 14:23:06 +00003354 if test "${ac_cv_path_install+set}" = set; then
3355 INSTALL=$ac_cv_path_install
3356 else
jfigusc7e66e32013-05-08 11:32:55 -04003357 # As a last resort, use the slow shell script. Don't cache a
3358 # value for INSTALL within a source directory, because that will
David McGrewb67061f2005-09-28 14:23:06 +00003359 # break other packages using the cache if that directory is
jfigusc7e66e32013-05-08 11:32:55 -04003360 # removed, or if the value is a relative name.
David McGrewb67061f2005-09-28 14:23:06 +00003361 INSTALL=$ac_install_sh
3362 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003363fi
jfigusc7e66e32013-05-08 11:32:55 -04003364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3365$as_echo "$INSTALL" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003366
David McGrewb67061f2005-09-28 14:23:06 +00003367# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3368# It thinks the first close brace ends the variable substitution.
3369test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00003370
David McGrewb67061f2005-09-28 14:23:06 +00003371test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3372
3373test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00003374
3375
3376
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003377ac_ext=c
3378ac_cpp='$CPP $CPPFLAGS'
3379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381ac_compiler_gnu=$ac_cv_c_compiler_gnu
jfigusc7e66e32013-05-08 11:32:55 -04003382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3383$as_echo_n "checking how to run the C preprocessor... " >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003384# On Suns, sometimes $CPP names a directory.
3385if test -n "$CPP" && test -d "$CPP"; then
3386 CPP=
3387fi
3388if test -z "$CPP"; then
jfigusc7e66e32013-05-08 11:32:55 -04003389 if ${ac_cv_prog_CPP+:} false; then :
3390 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003391else
3392 # Double quotes because CPP needs to be expanded
3393 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3394 do
3395 ac_preproc_ok=false
3396for ac_c_preproc_warn_flag in '' yes
3397do
3398 # Use a header file that comes with gcc, so configuring glibc
3399 # with a fresh cross-compiler works.
3400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3401 # <limits.h> exists even on freestanding compilers.
3402 # On the NeXT, cc -E runs the code through the compiler's parser,
3403 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04003404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003405/* end confdefs.h. */
3406#ifdef __STDC__
3407# include <limits.h>
3408#else
3409# include <assert.h>
3410#endif
3411 Syntax error
3412_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003413if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003414
jfigusc7e66e32013-05-08 11:32:55 -04003415else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003416 # Broken: fails on valid input.
3417continue
3418fi
jfigusc7e66e32013-05-08 11:32:55 -04003419rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003420
jfigusc7e66e32013-05-08 11:32:55 -04003421 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003422 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04003423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003424/* end confdefs.h. */
3425#include <ac_nonexistent.h>
3426_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003427if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003428 # Broken: success on invalid input.
3429continue
3430else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003431 # Passes both tests.
3432ac_preproc_ok=:
3433break
3434fi
jfigusc7e66e32013-05-08 11:32:55 -04003435rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003436
3437done
3438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04003439rm -f conftest.i conftest.err conftest.$ac_ext
3440if $ac_preproc_ok; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003441 break
3442fi
3443
3444 done
3445 ac_cv_prog_CPP=$CPP
3446
3447fi
3448 CPP=$ac_cv_prog_CPP
3449else
3450 ac_cv_prog_CPP=$CPP
3451fi
jfigusc7e66e32013-05-08 11:32:55 -04003452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3453$as_echo "$CPP" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003454ac_preproc_ok=false
3455for ac_c_preproc_warn_flag in '' yes
3456do
3457 # Use a header file that comes with gcc, so configuring glibc
3458 # with a fresh cross-compiler works.
3459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3460 # <limits.h> exists even on freestanding compilers.
3461 # On the NeXT, cc -E runs the code through the compiler's parser,
3462 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04003463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003464/* end confdefs.h. */
3465#ifdef __STDC__
3466# include <limits.h>
3467#else
3468# include <assert.h>
3469#endif
3470 Syntax error
3471_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003472if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003473
jfigusc7e66e32013-05-08 11:32:55 -04003474else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003475 # Broken: fails on valid input.
3476continue
3477fi
jfigusc7e66e32013-05-08 11:32:55 -04003478rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003479
jfigusc7e66e32013-05-08 11:32:55 -04003480 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003481 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04003482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003483/* end confdefs.h. */
3484#include <ac_nonexistent.h>
3485_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003486if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003487 # Broken: success on invalid input.
3488continue
3489else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003490 # Passes both tests.
3491ac_preproc_ok=:
3492break
3493fi
jfigusc7e66e32013-05-08 11:32:55 -04003494rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003495
3496done
3497# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04003498rm -f conftest.i conftest.err conftest.$ac_ext
3499if $ac_preproc_ok; then :
3500
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003501else
jfigusc7e66e32013-05-08 11:32:55 -04003502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3504as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3505See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003506fi
3507
3508ac_ext=c
3509ac_cpp='$CPP $CPPFLAGS'
3510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512ac_compiler_gnu=$ac_cv_c_compiler_gnu
3513
3514
jfigusc7e66e32013-05-08 11:32:55 -04003515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3516$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3517if ${ac_cv_path_GREP+:} false; then :
3518 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003519else
jfigusc7e66e32013-05-08 11:32:55 -04003520 if test -z "$GREP"; then
3521 ac_path_GREP_found=false
3522 # Loop through the user's path and test for each of PROGNAME-LIST
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3525do
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
3528 for ac_prog in grep ggrep; do
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3531 as_fn_executable_p "$ac_path_GREP" || continue
3532# Check for GNU ac_path_GREP and select it if it is found.
3533 # Check for GNU $ac_path_GREP
3534case `"$ac_path_GREP" --version 2>&1` in
3535*GNU*)
3536 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3537*)
3538 ac_count=0
3539 $as_echo_n 0123456789 >"conftest.in"
3540 while :
3541 do
3542 cat "conftest.in" "conftest.in" >"conftest.tmp"
3543 mv "conftest.tmp" "conftest.in"
3544 cp "conftest.in" "conftest.nl"
3545 $as_echo 'GREP' >> "conftest.nl"
3546 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3548 as_fn_arith $ac_count + 1 && ac_count=$as_val
3549 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3550 # Best one so far, save it but keep looking for a better one
3551 ac_cv_path_GREP="$ac_path_GREP"
3552 ac_path_GREP_max=$ac_count
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003553 fi
jfigusc7e66e32013-05-08 11:32:55 -04003554 # 10*(2^10) chars as input seems more than enough
3555 test $ac_count -gt 10 && break
3556 done
3557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3558esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003559
jfigusc7e66e32013-05-08 11:32:55 -04003560 $ac_path_GREP_found && break 3
3561 done
3562 done
3563 done
3564IFS=$as_save_IFS
3565 if test -z "$ac_cv_path_GREP"; then
3566 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3567 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003568else
jfigusc7e66e32013-05-08 11:32:55 -04003569 ac_cv_path_GREP=$GREP
3570fi
3571
3572fi
3573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3574$as_echo "$ac_cv_path_GREP" >&6; }
3575 GREP="$ac_cv_path_GREP"
3576
3577
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3579$as_echo_n "checking for egrep... " >&6; }
3580if ${ac_cv_path_EGREP+:} false; then :
3581 $as_echo_n "(cached) " >&6
3582else
3583 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3584 then ac_cv_path_EGREP="$GREP -E"
3585 else
3586 if test -z "$EGREP"; then
3587 ac_path_EGREP_found=false
3588 # Loop through the user's path and test for each of PROGNAME-LIST
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3591do
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_prog in egrep; do
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3597 as_fn_executable_p "$ac_path_EGREP" || continue
3598# Check for GNU ac_path_EGREP and select it if it is found.
3599 # Check for GNU $ac_path_EGREP
3600case `"$ac_path_EGREP" --version 2>&1` in
3601*GNU*)
3602 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3603*)
3604 ac_count=0
3605 $as_echo_n 0123456789 >"conftest.in"
3606 while :
3607 do
3608 cat "conftest.in" "conftest.in" >"conftest.tmp"
3609 mv "conftest.tmp" "conftest.in"
3610 cp "conftest.in" "conftest.nl"
3611 $as_echo 'EGREP' >> "conftest.nl"
3612 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3613 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3614 as_fn_arith $ac_count + 1 && ac_count=$as_val
3615 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3616 # Best one so far, save it but keep looking for a better one
3617 ac_cv_path_EGREP="$ac_path_EGREP"
3618 ac_path_EGREP_max=$ac_count
3619 fi
3620 # 10*(2^10) chars as input seems more than enough
3621 test $ac_count -gt 10 && break
3622 done
3623 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3624esac
3625
3626 $ac_path_EGREP_found && break 3
3627 done
3628 done
3629 done
3630IFS=$as_save_IFS
3631 if test -z "$ac_cv_path_EGREP"; then
3632 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3633 fi
3634else
3635 ac_cv_path_EGREP=$EGREP
3636fi
3637
3638 fi
3639fi
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3641$as_echo "$ac_cv_path_EGREP" >&6; }
3642 EGREP="$ac_cv_path_EGREP"
3643
3644
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3646$as_echo_n "checking for ANSI C header files... " >&6; }
3647if ${ac_cv_header_stdc+:} false; then :
3648 $as_echo_n "(cached) " >&6
3649else
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003651/* end confdefs.h. */
3652#include <stdlib.h>
3653#include <stdarg.h>
3654#include <string.h>
3655#include <float.h>
3656
3657int
3658main ()
3659{
3660
3661 ;
3662 return 0;
3663}
3664_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003665if ac_fn_c_try_compile "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003666 ac_cv_header_stdc=yes
3667else
jfigusc7e66e32013-05-08 11:32:55 -04003668 ac_cv_header_stdc=no
jfigusa14b5a02013-03-29 12:24:12 -04003669fi
jfigusc7e66e32013-05-08 11:32:55 -04003670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003671
3672if test $ac_cv_header_stdc = yes; then
3673 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003675/* end confdefs.h. */
3676#include <string.h>
3677
3678_ACEOF
3679if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003680 $EGREP "memchr" >/dev/null 2>&1; then :
3681
jfigusa14b5a02013-03-29 12:24:12 -04003682else
3683 ac_cv_header_stdc=no
3684fi
3685rm -f conftest*
3686
3687fi
3688
3689if test $ac_cv_header_stdc = yes; then
3690 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003692/* end confdefs.h. */
3693#include <stdlib.h>
3694
3695_ACEOF
3696if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003697 $EGREP "free" >/dev/null 2>&1; then :
3698
jfigusa14b5a02013-03-29 12:24:12 -04003699else
3700 ac_cv_header_stdc=no
3701fi
3702rm -f conftest*
3703
3704fi
3705
3706if test $ac_cv_header_stdc = yes; then
3707 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jfigusc7e66e32013-05-08 11:32:55 -04003708 if test "$cross_compiling" = yes; then :
jfigusa14b5a02013-03-29 12:24:12 -04003709 :
3710else
jfigusc7e66e32013-05-08 11:32:55 -04003711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003712/* end confdefs.h. */
3713#include <ctype.h>
jfigusc7e66e32013-05-08 11:32:55 -04003714#include <stdlib.h>
jfigusa14b5a02013-03-29 12:24:12 -04003715#if ((' ' & 0x0FF) == 0x020)
3716# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3717# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3718#else
3719# define ISLOWER(c) \
3720 (('a' <= (c) && (c) <= 'i') \
3721 || ('j' <= (c) && (c) <= 'r') \
3722 || ('s' <= (c) && (c) <= 'z'))
3723# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3724#endif
3725
3726#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3727int
3728main ()
3729{
3730 int i;
3731 for (i = 0; i < 256; i++)
3732 if (XOR (islower (i), ISLOWER (i))
3733 || toupper (i) != TOUPPER (i))
jfigusc7e66e32013-05-08 11:32:55 -04003734 return 2;
3735 return 0;
jfigusa14b5a02013-03-29 12:24:12 -04003736}
3737_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003738if ac_fn_c_try_run "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003739
jfigusc7e66e32013-05-08 11:32:55 -04003740else
3741 ac_cv_header_stdc=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003742fi
jfigusc7e66e32013-05-08 11:32:55 -04003743rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3744 conftest.$ac_objext conftest.beam conftest.$ac_ext
3745fi
3746
jfigusa14b5a02013-03-29 12:24:12 -04003747fi
3748fi
jfigusc7e66e32013-05-08 11:32:55 -04003749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3750$as_echo "$ac_cv_header_stdc" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04003751if test $ac_cv_header_stdc = yes; then
3752
jfigusc7e66e32013-05-08 11:32:55 -04003753$as_echo "#define STDC_HEADERS 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04003754
3755fi
3756
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003757# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003758for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3759 inttypes.h stdint.h unistd.h
jfigusc7e66e32013-05-08 11:32:55 -04003760do :
3761 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3762ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3763"
3764if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003765 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003766#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003767_ACEOF
3768
3769fi
3770
3771done
3772
3773
jfigusc7e66e32013-05-08 11:32:55 -04003774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3775$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3776if ${ac_cv_c_bigendian+:} false; then :
3777 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003778else
jfigusc7e66e32013-05-08 11:32:55 -04003779 ac_cv_c_bigendian=unknown
3780 # See if we're dealing with a universal compiler.
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003782/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003783#ifndef __APPLE_CC__
3784 not a universal capable compiler
3785 #endif
3786 typedef int dummy;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003787
jfigusc7e66e32013-05-08 11:32:55 -04003788_ACEOF
3789if ac_fn_c_try_compile "$LINENO"; then :
3790
3791 # Check for potential -arch flags. It is not universal unless
3792 # there are at least two -arch flags with different values.
3793 ac_arch=
3794 ac_prev=
3795 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3796 if test -n "$ac_prev"; then
3797 case $ac_word in
3798 i?86 | x86_64 | ppc | ppc64)
3799 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3800 ac_arch=$ac_word
3801 else
3802 ac_cv_c_bigendian=universal
3803 break
3804 fi
3805 ;;
3806 esac
3807 ac_prev=
3808 elif test "x$ac_word" = "x-arch"; then
3809 ac_prev=arch
3810 fi
3811 done
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003812fi
jfigusc7e66e32013-05-08 11:32:55 -04003813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 if test $ac_cv_c_bigendian = unknown; then
3815 # See if sys/param.h defines the BYTE_ORDER macro.
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003817/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003818#include <sys/types.h>
3819 #include <sys/param.h>
3820
3821int
3822main ()
3823{
3824#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3825 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3826 && LITTLE_ENDIAN)
3827 bogus endian macros
3828 #endif
3829
3830 ;
3831 return 0;
3832}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003833_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003834if ac_fn_c_try_compile "$LINENO"; then :
3835 # It does; now see whether it defined to BIG_ENDIAN or not.
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003837/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003838#include <sys/types.h>
3839 #include <sys/param.h>
3840
3841int
3842main ()
3843{
3844#if BYTE_ORDER != BIG_ENDIAN
3845 not big endian
3846 #endif
3847
3848 ;
3849 return 0;
3850}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003851_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003852if ac_fn_c_try_compile "$LINENO"; then :
3853 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003854else
jfigusc7e66e32013-05-08 11:32:55 -04003855 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003856fi
jfigusc7e66e32013-05-08 11:32:55 -04003857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858fi
3859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860 fi
3861 if test $ac_cv_c_bigendian = unknown; then
3862 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003864/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003865#include <limits.h>
3866
3867int
3868main ()
3869{
3870#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3871 bogus endian macros
3872 #endif
3873
3874 ;
3875 return 0;
3876}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003877_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003878if ac_fn_c_try_compile "$LINENO"; then :
3879 # It does; now see whether it defined to _BIG_ENDIAN or not.
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003881/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003882#include <limits.h>
3883
3884int
3885main ()
3886{
3887#ifndef _BIG_ENDIAN
3888 not big endian
3889 #endif
3890
3891 ;
3892 return 0;
3893}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003894_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003895if ac_fn_c_try_compile "$LINENO"; then :
3896 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003897else
jfigusc7e66e32013-05-08 11:32:55 -04003898 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003899fi
jfigusc7e66e32013-05-08 11:32:55 -04003900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901fi
3902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 fi
3904 if test $ac_cv_c_bigendian = unknown; then
3905 # Compile a test program.
3906 if test "$cross_compiling" = yes; then :
3907 # Try to guess by grepping values from an object file.
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003909/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003910short int ascii_mm[] =
3911 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3912 short int ascii_ii[] =
3913 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3914 int use_ascii (int i) {
3915 return ascii_mm[i] + ascii_ii[i];
3916 }
3917 short int ebcdic_ii[] =
3918 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3919 short int ebcdic_mm[] =
3920 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3921 int use_ebcdic (int i) {
3922 return ebcdic_mm[i] + ebcdic_ii[i];
3923 }
3924 extern int foo;
3925
3926int
3927main ()
3928{
3929return use_ascii (foo) == use_ebcdic (foo);
3930 ;
3931 return 0;
3932}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003933_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003934if ac_fn_c_try_compile "$LINENO"; then :
3935 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3936 ac_cv_c_bigendian=yes
3937 fi
3938 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3939 if test "$ac_cv_c_bigendian" = unknown; then
3940 ac_cv_c_bigendian=no
3941 else
3942 # finding both strings is unlikely to happen, but who knows?
3943 ac_cv_c_bigendian=unknown
3944 fi
3945 fi
3946fi
3947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003948else
jfigusc7e66e32013-05-08 11:32:55 -04003949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003950/* end confdefs.h. */
3951$ac_includes_default
3952int
3953main ()
3954{
jfigusc7e66e32013-05-08 11:32:55 -04003955
3956 /* Are we little or big endian? From Harbison&Steele. */
3957 union
3958 {
3959 long int l;
3960 char c[sizeof (long int)];
3961 } u;
3962 u.l = 1;
3963 return u.c[sizeof (long int) - 1] == 1;
3964
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003965 ;
3966 return 0;
3967}
3968_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003969if ac_fn_c_try_run "$LINENO"; then :
3970 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003971else
jfigusc7e66e32013-05-08 11:32:55 -04003972 ac_cv_c_bigendian=yes
3973fi
3974rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3975 conftest.$ac_objext conftest.beam conftest.$ac_ext
3976fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003977
jfigusc7e66e32013-05-08 11:32:55 -04003978 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003979fi
jfigusc7e66e32013-05-08 11:32:55 -04003980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3981$as_echo "$ac_cv_c_bigendian" >&6; }
3982 case $ac_cv_c_bigendian in #(
3983 yes)
3984 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
3985;; #(
3986 no)
3987 ;; #(
3988 universal)
3989
3990$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3991
3992 ;; #(
3993 *)
3994 as_fn_error $? "unknown endianness
3995 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3996 esac
3997
3998
3999# Make sure we can run config.sub.
4000$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4001 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4002
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4004$as_echo_n "checking build system type... " >&6; }
4005if ${ac_cv_build+:} false; then :
4006 $as_echo_n "(cached) " >&6
4007else
4008 ac_build_alias=$build_alias
4009test "x$ac_build_alias" = x &&
4010 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4011test "x$ac_build_alias" = x &&
4012 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4013ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4014 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4015
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004016fi
jfigusc7e66e32013-05-08 11:32:55 -04004017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4018$as_echo "$ac_cv_build" >&6; }
4019case $ac_cv_build in
4020*-*-*) ;;
4021*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4022esac
4023build=$ac_cv_build
4024ac_save_IFS=$IFS; IFS='-'
4025set x $ac_cv_build
4026shift
4027build_cpu=$1
4028build_vendor=$2
4029shift; shift
4030# Remember, the first character of IFS is used to create $*,
4031# except with old shells:
4032build_os=$*
4033IFS=$ac_save_IFS
4034case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4035
4036
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4038$as_echo_n "checking host system type... " >&6; }
4039if ${ac_cv_host+:} false; then :
4040 $as_echo_n "(cached) " >&6
4041else
4042 if test "x$host_alias" = x; then
4043 ac_cv_host=$ac_cv_build
4044else
4045 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4046 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4047fi
4048
4049fi
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4051$as_echo "$ac_cv_host" >&6; }
4052case $ac_cv_host in
4053*-*-*) ;;
4054*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4055esac
4056host=$ac_cv_host
4057ac_save_IFS=$IFS; IFS='-'
4058set x $ac_cv_host
4059shift
4060host_cpu=$1
4061host_vendor=$2
4062shift; shift
4063# Remember, the first character of IFS is used to create $*,
4064# except with old shells:
4065host_os=$*
4066IFS=$ac_save_IFS
4067case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4068
4069
4070
4071case $host_cpu in
4072 i*86 | x86_64 )
4073
4074$as_echo "#define CPU_CISC 1" >>confdefs.h
4075
4076
4077$as_echo "#define HAVE_X86 1" >>confdefs.h
4078;;
4079 * )
4080 # CPU_RISC is only supported for big endian machines.
4081 if test "$ac_cv_c_bigendian" = "yes"; then
4082
4083$as_echo "#define CPU_RISC 1" >>confdefs.h
4084
4085 else
4086 $as_echo "#define CPU_CISC 1" >>confdefs.h
4087
4088 fi
4089 ;;
4090esac
4091
4092case $host_os in
4093 *cygwin*|*mingw* )
4094 EXE=.exe
4095 HOST_IS_WINDOWS=yes
4096 ;;
4097 * )
4098 EXE=""
4099 ;;
4100esac
4101 # define executable suffix; this is needed for `make clean'
4102
4103
4104# Check whether --enable-kernel-linux was given.
4105if test "${enable_kernel_linux+set}" = set; then :
4106 enableval=$enable_kernel_linux;
4107else
4108 enable_kernel_linux=no
4109fi
4110
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build for Linux kernel context" >&5
4112$as_echo_n "checking whether to build for Linux kernel context... " >&6; }
4113if test "$enable_kernel_linux" = "yes"; then
4114
4115$as_echo "#define SRTP_KERNEL 1" >>confdefs.h
4116
4117
4118$as_echo "#define SRTP_KERNEL_LINUX 1" >>confdefs.h
4119
4120fi
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_kernel_linux" >&5
4122$as_echo "$enable_kernel_linux" >&6; }
4123
4124if test "$cross_compiling" != yes -a "$HOST_IS_WINDOWS" != yes; then
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
4126$as_echo_n "checking for /dev/urandom... " >&6; }
4127if ${ac_cv_file__dev_urandom+:} false; then :
4128 $as_echo_n "(cached) " >&6
4129else
4130 test "$cross_compiling" = yes &&
4131 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4132if test -r "/dev/urandom"; then
4133 ac_cv_file__dev_urandom=yes
4134else
4135 ac_cv_file__dev_urandom=no
4136fi
4137fi
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
4139$as_echo "$ac_cv_file__dev_urandom" >&6; }
4140if test "x$ac_cv_file__dev_urandom" = xyes; then :
4141 DEV_URANDOM=/dev/urandom
4142else
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
4144$as_echo_n "checking for /dev/random... " >&6; }
4145if ${ac_cv_file__dev_random+:} false; then :
4146 $as_echo_n "(cached) " >&6
4147else
4148 test "$cross_compiling" = yes &&
4149 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4150if test -r "/dev/random"; then
4151 ac_cv_file__dev_random=yes
4152else
4153 ac_cv_file__dev_random=no
4154fi
4155fi
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
4157$as_echo "$ac_cv_file__dev_random" >&6; }
4158if test "x$ac_cv_file__dev_random" = xyes; then :
4159 DEV_URANDOM=/dev/random
4160fi
4161
4162fi
4163
4164fi
4165
4166
4167
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4169$as_echo_n "checking for ANSI C header files... " >&6; }
4170if ${ac_cv_header_stdc+:} false; then :
4171 $as_echo_n "(cached) " >&6
4172else
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174/* end confdefs.h. */
4175#include <stdlib.h>
4176#include <stdarg.h>
4177#include <string.h>
4178#include <float.h>
4179
4180int
4181main ()
4182{
4183
4184 ;
4185 return 0;
4186}
4187_ACEOF
4188if ac_fn_c_try_compile "$LINENO"; then :
4189 ac_cv_header_stdc=yes
4190else
4191 ac_cv_header_stdc=no
4192fi
4193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194
4195if test $ac_cv_header_stdc = yes; then
4196 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198/* end confdefs.h. */
4199#include <string.h>
4200
4201_ACEOF
4202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4203 $EGREP "memchr" >/dev/null 2>&1; then :
4204
4205else
4206 ac_cv_header_stdc=no
4207fi
4208rm -f conftest*
4209
4210fi
4211
4212if test $ac_cv_header_stdc = yes; then
4213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215/* end confdefs.h. */
4216#include <stdlib.h>
4217
4218_ACEOF
4219if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4220 $EGREP "free" >/dev/null 2>&1; then :
4221
4222else
4223 ac_cv_header_stdc=no
4224fi
4225rm -f conftest*
4226
4227fi
4228
4229if test $ac_cv_header_stdc = yes; then
4230 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4231 if test "$cross_compiling" = yes; then :
4232 :
4233else
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235/* end confdefs.h. */
4236#include <ctype.h>
4237#include <stdlib.h>
4238#if ((' ' & 0x0FF) == 0x020)
4239# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4240# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4241#else
4242# define ISLOWER(c) \
4243 (('a' <= (c) && (c) <= 'i') \
4244 || ('j' <= (c) && (c) <= 'r') \
4245 || ('s' <= (c) && (c) <= 'z'))
4246# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4247#endif
4248
4249#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4250int
4251main ()
4252{
4253 int i;
4254 for (i = 0; i < 256; i++)
4255 if (XOR (islower (i), ISLOWER (i))
4256 || toupper (i) != TOUPPER (i))
4257 return 2;
4258 return 0;
4259}
4260_ACEOF
4261if ac_fn_c_try_run "$LINENO"; then :
4262
4263else
4264 ac_cv_header_stdc=no
4265fi
4266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4267 conftest.$ac_objext conftest.beam conftest.$ac_ext
4268fi
4269
4270fi
4271fi
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4273$as_echo "$ac_cv_header_stdc" >&6; }
4274if test $ac_cv_header_stdc = yes; then
4275
4276$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4277
4278fi
4279
4280for ac_header in stdlib.h
4281do :
4282 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4283if test "x$ac_cv_header_stdlib_h" = xyes; then :
4284 cat >>confdefs.h <<_ACEOF
4285#define HAVE_STDLIB_H 1
4286_ACEOF
4287
4288fi
4289
4290done
4291
4292for ac_header in unistd.h
4293do :
4294 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4295if test "x$ac_cv_header_unistd_h" = xyes; then :
4296 cat >>confdefs.h <<_ACEOF
4297#define HAVE_UNISTD_H 1
4298_ACEOF
4299
4300fi
4301
4302done
4303
4304for ac_header in byteswap.h
4305do :
4306 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
4307if test "x$ac_cv_header_byteswap_h" = xyes; then :
4308 cat >>confdefs.h <<_ACEOF
4309#define HAVE_BYTESWAP_H 1
4310_ACEOF
4311
4312fi
4313
4314done
4315
4316for ac_header in stdint.h
4317do :
4318 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4319if test "x$ac_cv_header_stdint_h" = xyes; then :
4320 cat >>confdefs.h <<_ACEOF
4321#define HAVE_STDINT_H 1
4322_ACEOF
4323
4324fi
4325
4326done
4327
4328for ac_header in sys/uio.h
4329do :
4330 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
4331if test "x$ac_cv_header_sys_uio_h" = xyes; then :
4332 cat >>confdefs.h <<_ACEOF
4333#define HAVE_SYS_UIO_H 1
4334_ACEOF
4335
4336fi
4337
4338done
4339
4340for ac_header in inttypes.h
4341do :
4342 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
4343if test "x$ac_cv_header_inttypes_h" = xyes; then :
4344 cat >>confdefs.h <<_ACEOF
4345#define HAVE_INTTYPES_H 1
4346_ACEOF
4347
4348fi
4349
4350done
4351
4352for ac_header in sys/types.h
4353do :
4354 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4355if test "x$ac_cv_header_sys_types_h" = xyes; then :
4356 cat >>confdefs.h <<_ACEOF
4357#define HAVE_SYS_TYPES_H 1
4358_ACEOF
4359
4360fi
4361
4362done
4363
4364for ac_header in machine/types.h
4365do :
4366 ac_fn_c_check_header_mongrel "$LINENO" "machine/types.h" "ac_cv_header_machine_types_h" "$ac_includes_default"
4367if test "x$ac_cv_header_machine_types_h" = xyes; then :
4368 cat >>confdefs.h <<_ACEOF
4369#define HAVE_MACHINE_TYPES_H 1
4370_ACEOF
4371
4372fi
4373
4374done
4375
4376for ac_header in sys/int_types.h
4377do :
4378 ac_fn_c_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default"
4379if test "x$ac_cv_header_sys_int_types_h" = xyes; then :
4380 cat >>confdefs.h <<_ACEOF
4381#define HAVE_SYS_INT_TYPES_H 1
4382_ACEOF
4383
4384fi
4385
4386done
4387
4388
4389for ac_header in sys/socket.h netinet/in.h arpa/inet.h
4390do :
4391 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4392ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4393if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4394 cat >>confdefs.h <<_ACEOF
4395#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4396_ACEOF
4397
4398fi
4399
4400done
4401
4402for ac_header in windows.h
4403do :
4404 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
4405if test "x$ac_cv_header_windows_h" = xyes; then :
4406 cat >>confdefs.h <<_ACEOF
4407#define HAVE_WINDOWS_H 1
4408_ACEOF
4409 for ac_header in winsock2.h
4410do :
4411 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4412if test "x$ac_cv_header_winsock2_h" = xyes; then :
4413 cat >>confdefs.h <<_ACEOF
4414#define HAVE_WINSOCK2_H 1
4415_ACEOF
4416
4417fi
4418
4419done
4420
4421fi
4422
4423done
4424
4425
jfigusc7e66e32013-05-08 11:32:55 -04004426ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
4427if test "x$ac_cv_type_int8_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004428
David McGrewfec49dd2005-09-23 19:34:11 +00004429cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004430#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004431_ACEOF
4432
4433
4434fi
jfigusc7e66e32013-05-08 11:32:55 -04004435ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4436if test "x$ac_cv_type_uint8_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004437
4438cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004439#define HAVE_UINT8_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" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4445if test "x$ac_cv_type_int16_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_INT16_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" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4454if test "x$ac_cv_type_uint16_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_UINT16_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" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
4463if test "x$ac_cv_type_int32_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_INT32_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" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4472if test "x$ac_cv_type_uint32_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_UINT32_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" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
4481if test "x$ac_cv_type_uint64_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_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004485_ACEOF
4486
4487
4488fi
4489
jfigusc7e66e32013-05-08 11:32:55 -04004490# The cast to long int works around a bug in the HP C Compiler
4491# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4492# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4493# This bug is HP SR number 8606223364.
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4495$as_echo_n "checking size of unsigned long... " >&6; }
4496if ${ac_cv_sizeof_unsigned_long+:} false; then :
4497 $as_echo_n "(cached) " >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004498else
jfigusc7e66e32013-05-08 11:32:55 -04004499 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 +00004500
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004501else
4502 if test "$ac_cv_type_unsigned_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4505as_fn_error 77 "cannot compute sizeof (unsigned long)
4506See \`config.log' for more details" "$LINENO" 5; }
4507 else
4508 ac_cv_sizeof_unsigned_long=0
4509 fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004510fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004511
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004512fi
jfigusc7e66e32013-05-08 11:32:55 -04004513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
4514$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004515
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004516
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004517
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004518cat >>confdefs.h <<_ACEOF
4519#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
4520_ACEOF
4521
David McGrewfec49dd2005-09-23 19:34:11 +00004522
jfigusc7e66e32013-05-08 11:32:55 -04004523# The cast to long int works around a bug in the HP C Compiler
4524# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4525# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4526# This bug is HP SR number 8606223364.
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
4528$as_echo_n "checking size of unsigned long long... " >&6; }
4529if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
4530 $as_echo_n "(cached) " >&6
David McGrewfec49dd2005-09-23 19:34:11 +00004531else
jfigusc7e66e32013-05-08 11:32:55 -04004532 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 +00004533
David McGrewfec49dd2005-09-23 19:34:11 +00004534else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004535 if test "$ac_cv_type_unsigned_long_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4538as_fn_error 77 "cannot compute sizeof (unsigned long long)
4539See \`config.log' for more details" "$LINENO" 5; }
4540 else
4541 ac_cv_sizeof_unsigned_long_long=0
4542 fi
David McGrewfec49dd2005-09-23 19:34:11 +00004543fi
4544
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004545fi
jfigusc7e66e32013-05-08 11:32:55 -04004546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
4547$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004548
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004549
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004550
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004551cat >>confdefs.h <<_ACEOF
4552#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00004553_ACEOF
4554
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004555
Cullen Jennings235513a2005-09-21 22:51:36 +00004556
jfigusc7e66e32013-05-08 11:32:55 -04004557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4558$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4559if ${ac_cv_c_const+:} false; then :
4560 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004561else
jfigusc7e66e32013-05-08 11:32:55 -04004562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004563/* end confdefs.h. */
4564
4565int
4566main ()
4567{
jfigusc7e66e32013-05-08 11:32:55 -04004568
Cullen Jennings235513a2005-09-21 22:51:36 +00004569#ifndef __cplusplus
jfigusc7e66e32013-05-08 11:32:55 -04004570 /* Ultrix mips cc rejects this sort of thing. */
Cullen Jennings235513a2005-09-21 22:51:36 +00004571 typedef int charset[2];
jfigusc7e66e32013-05-08 11:32:55 -04004572 const charset cs = { 0, 0 };
Cullen Jennings235513a2005-09-21 22:51:36 +00004573 /* SunOS 4.1.1 cc rejects this. */
jfigusc7e66e32013-05-08 11:32:55 -04004574 char const *const *pcpcc;
4575 char **ppc;
Cullen Jennings235513a2005-09-21 22:51:36 +00004576 /* NEC SVR4.0.2 mips cc rejects this. */
4577 struct point {int x, y;};
4578 static struct point const zero = {0,0};
4579 /* AIX XL C 1.02.0.0 rejects this.
4580 It does not let you subtract one const X* pointer from another in
4581 an arm of an if-expression whose if-part is not a constant
4582 expression */
4583 const char *g = "string";
jfigusc7e66e32013-05-08 11:32:55 -04004584 pcpcc = &g + (g ? g-g : 0);
Cullen Jennings235513a2005-09-21 22:51:36 +00004585 /* HPUX 7.0 cc rejects these. */
jfigusc7e66e32013-05-08 11:32:55 -04004586 ++pcpcc;
4587 ppc = (char**) pcpcc;
4588 pcpcc = (char const *const *) ppc;
4589 { /* SCO 3.2v4 cc rejects this sort of thing. */
4590 char tx;
4591 char *t = &tx;
Cullen Jennings235513a2005-09-21 22:51:36 +00004592 char const *s = 0 ? (char *) 0 : (char const *) 0;
4593
4594 *t++ = 0;
jfigusc7e66e32013-05-08 11:32:55 -04004595 if (s) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004596 }
4597 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4598 int x[] = {25, 17};
4599 const int *foo = &x[0];
4600 ++foo;
4601 }
4602 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4603 typedef const int *iptr;
4604 iptr p = 0;
4605 ++p;
4606 }
jfigusc7e66e32013-05-08 11:32:55 -04004607 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Cullen Jennings235513a2005-09-21 22:51:36 +00004608 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
jfigusc7e66e32013-05-08 11:32:55 -04004609 struct s { int j; const int *ap[3]; } bx;
4610 struct s *b = &bx; b->j = 5;
Cullen Jennings235513a2005-09-21 22:51:36 +00004611 }
4612 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4613 const int foo = 10;
jfigusc7e66e32013-05-08 11:32:55 -04004614 if (!foo) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004615 }
jfigusc7e66e32013-05-08 11:32:55 -04004616 return !cs[0] && !zero.x;
Cullen Jennings235513a2005-09-21 22:51:36 +00004617#endif
4618
4619 ;
4620 return 0;
4621}
4622_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004623if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004624 ac_cv_c_const=yes
4625else
jfigusc7e66e32013-05-08 11:32:55 -04004626 ac_cv_c_const=no
Cullen Jennings235513a2005-09-21 22:51:36 +00004627fi
jfigusc7e66e32013-05-08 11:32:55 -04004628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004629fi
jfigusc7e66e32013-05-08 11:32:55 -04004630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4631$as_echo "$ac_cv_c_const" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004632if test $ac_cv_c_const = no; then
4633
jfigusc7e66e32013-05-08 11:32:55 -04004634$as_echo "#define const /**/" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004635
4636fi
4637
jfigusc7e66e32013-05-08 11:32:55 -04004638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4639$as_echo_n "checking for inline... " >&6; }
4640if ${ac_cv_c_inline+:} false; then :
4641 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004642else
4643 ac_cv_c_inline=no
4644for ac_kw in inline __inline__ __inline; do
jfigusc7e66e32013-05-08 11:32:55 -04004645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004646/* end confdefs.h. */
4647#ifndef __cplusplus
4648typedef int foo_t;
4649static $ac_kw foo_t static_foo () {return 0; }
4650$ac_kw foo_t foo () {return 0; }
4651#endif
4652
4653_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004654if ac_fn_c_try_compile "$LINENO"; then :
4655 ac_cv_c_inline=$ac_kw
Cullen Jennings235513a2005-09-21 22:51:36 +00004656fi
jfigusc7e66e32013-05-08 11:32:55 -04004657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658 test "$ac_cv_c_inline" != no && break
Cullen Jennings235513a2005-09-21 22:51:36 +00004659done
4660
4661fi
jfigusc7e66e32013-05-08 11:32:55 -04004662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4663$as_echo "$ac_cv_c_inline" >&6; }
David McGrewfec49dd2005-09-23 19:34:11 +00004664
Cullen Jennings235513a2005-09-21 22:51:36 +00004665case $ac_cv_c_inline in
4666 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00004667 *)
4668 case $ac_cv_c_inline in
4669 no) ac_val=;;
4670 *) ac_val=$ac_cv_c_inline;;
4671 esac
4672 cat >>confdefs.h <<_ACEOF
4673#ifndef __cplusplus
4674#define inline $ac_val
4675#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00004676_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00004677 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00004678esac
4679
jfigusc7e66e32013-05-08 11:32:55 -04004680ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4681if test "x$ac_cv_type_size_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004682
Cullen Jennings235513a2005-09-21 22:51:36 +00004683else
4684
4685cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004686#define size_t unsigned int
Cullen Jennings235513a2005-09-21 22:51:36 +00004687_ACEOF
4688
4689fi
4690
4691
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00004692for ac_func in socket inet_aton usleep sigaction
jfigusc7e66e32013-05-08 11:32:55 -04004693do :
4694 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4695ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4696if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004697 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004698#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00004699_ACEOF
4700
4701fi
4702done
4703
4704
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004705if test "x$ac_cv_func_socket" = "xno"; then
jfigusc7e66e32013-05-08 11:32:55 -04004706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4707$as_echo_n "checking for socket in -lsocket... " >&6; }
4708if ${ac_cv_lib_socket_socket+:} false; then :
4709 $as_echo_n "(cached) " >&6
David McGrewb67061f2005-09-28 14:23:06 +00004710else
4711 ac_check_lib_save_LIBS=$LIBS
4712LIBS="-lsocket $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04004713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004714/* end confdefs.h. */
4715
jfigusc7e66e32013-05-08 11:32:55 -04004716/* Override any GCC internal prototype to avoid an error.
4717 Use char because int might match the return type of a GCC
4718 builtin and then its argument prototype would still apply. */
David McGrewb67061f2005-09-28 14:23:06 +00004719#ifdef __cplusplus
4720extern "C"
4721#endif
David McGrewb67061f2005-09-28 14:23:06 +00004722char socket ();
4723int
4724main ()
4725{
jfigusc7e66e32013-05-08 11:32:55 -04004726return socket ();
David McGrewb67061f2005-09-28 14:23:06 +00004727 ;
4728 return 0;
4729}
4730_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004731if ac_fn_c_try_link "$LINENO"; then :
David McGrewb67061f2005-09-28 14:23:06 +00004732 ac_cv_lib_socket_socket=yes
4733else
jfigusc7e66e32013-05-08 11:32:55 -04004734 ac_cv_lib_socket_socket=no
David McGrewb67061f2005-09-28 14:23:06 +00004735fi
jfigusc7e66e32013-05-08 11:32:55 -04004736rm -f core conftest.err conftest.$ac_objext \
4737 conftest$ac_exeext conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004738LIBS=$ac_check_lib_save_LIBS
4739fi
jfigusc7e66e32013-05-08 11:32:55 -04004740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4741$as_echo "$ac_cv_lib_socket_socket" >&6; }
4742if test "x$ac_cv_lib_socket_socket" = xyes; then :
David McGrewb67061f2005-09-28 14:23:06 +00004743 cat >>confdefs.h <<_ACEOF
4744#define HAVE_LIBSOCKET 1
4745_ACEOF
4746
4747 LIBS="-lsocket $LIBS"
4748
4749fi
4750
jfigusc7e66e32013-05-08 11:32:55 -04004751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
4752$as_echo_n "checking for socket in -lwsock32... " >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004753 SAVELIBS="$LIBS"
4754 LIBS="$LIBS -lwsock32"
jfigusc7e66e32013-05-08 11:32:55 -04004755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004756/* end confdefs.h. */
4757
4758#include <winsock2.h>
4759
4760int
4761main ()
4762{
4763
4764socket(0, 0, 0);
4765
4766 ;
4767 return 0;
4768}
4769_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004770if ac_fn_c_try_link "$LINENO"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004771 ac_cv_func_socket=yes
jfigusc7e66e32013-05-08 11:32:55 -04004772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4773$as_echo "yes" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004774else
jfigusc7e66e32013-05-08 11:32:55 -04004775 LIBS="$SAVELIBS"
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777$as_echo "no" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004778fi
jfigusc7e66e32013-05-08 11:32:55 -04004779rm -f core conftest.err conftest.$ac_objext \
4780 conftest$ac_exeext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004781fi
David McGrewb67061f2005-09-28 14:23:06 +00004782
jfigusc7e66e32013-05-08 11:32:55 -04004783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debugging" >&5
4784$as_echo_n "checking whether to compile in debugging... " >&6; }
4785# Check whether --enable-debug was given.
4786if test "${enable_debug+set}" = set; then :
4787 enableval=$enable_debug;
David McGrewb67061f2005-09-28 14:23:06 +00004788else
4789 enable_debug=yes
jfigusc7e66e32013-05-08 11:32:55 -04004790fi
4791
David McGrewb67061f2005-09-28 14:23:06 +00004792if test "$enable_debug" = "yes"; then
4793
jfigusc7e66e32013-05-08 11:32:55 -04004794$as_echo "#define ENABLE_DEBUGGING 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004795
4796fi
jfigusc7e66e32013-05-08 11:32:55 -04004797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
4798$as_echo "$enable_debug" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004799
jfigusc7e66e32013-05-08 11:32:55 -04004800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ISMAcryp code" >&5
4801$as_echo_n "checking whether to use ISMAcryp code... " >&6; }
4802# Check whether --enable-generic-aesicm was given.
4803if test "${enable_generic_aesicm+set}" = set; then :
4804 enableval=$enable_generic_aesicm;
David McGrewb67061f2005-09-28 14:23:06 +00004805else
4806 enable_generic_aesicm=no
jfigusc7e66e32013-05-08 11:32:55 -04004807fi
4808
David McGrewb67061f2005-09-28 14:23:06 +00004809if test "$enable_generic_aesicm" = "yes"; then
4810
jfigusc7e66e32013-05-08 11:32:55 -04004811$as_echo "#define GENERIC_AESICM 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04004812
jfigusa14b5a02013-03-29 12:24:12 -04004813fi
jfigusc7e66e32013-05-08 11:32:55 -04004814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generic_aesicm" >&5
4815$as_echo "$enable_generic_aesicm" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04004816
jfigusc7e66e32013-05-08 11:32:55 -04004817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
4818$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
4819# Check whether --enable-openssl was given.
4820if test "${enable_openssl+set}" = set; then :
4821 enableval=$enable_openssl;
4822else
4823 enable_openssl=no
4824fi
jfigusa14b5a02013-03-29 12:24:12 -04004825
jfigus2b486652014-07-24 15:01:41 -04004826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
4827$as_echo "$enable_openssl" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04004828if test "$enable_openssl" = "yes"; then
Sean Brightbfb9e302014-03-24 20:45:17 -04004829 LDFLAGS="$LDFLAGS $(pkg-config --libs openssl)";
4830 CFLAGS="$CFLAGS $(pkg-config --cflags openssl)";
Cullen Jenningse1de50f2013-05-22 12:27:28 -06004831
jfigusc7e66e32013-05-08 11:32:55 -04004832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
4833$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
4834if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
4835 $as_echo_n "(cached) " >&6
4836else
4837 ac_check_lib_save_LIBS=$LIBS
4838LIBS="-lcrypto $LIBS"
4839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840/* end confdefs.h. */
4841
4842/* Override any GCC internal prototype to avoid an error.
4843 Use char because int might match the return type of a GCC
4844 builtin and then its argument prototype would still apply. */
4845#ifdef __cplusplus
4846extern "C"
4847#endif
4848char EVP_EncryptInit ();
4849int
4850main ()
4851{
4852return EVP_EncryptInit ();
4853 ;
4854 return 0;
4855}
4856_ACEOF
4857if ac_fn_c_try_link "$LINENO"; then :
4858 ac_cv_lib_crypto_EVP_EncryptInit=yes
4859else
4860 ac_cv_lib_crypto_EVP_EncryptInit=no
4861fi
4862rm -f core conftest.err conftest.$ac_objext \
4863 conftest$ac_exeext conftest.$ac_ext
4864LIBS=$ac_check_lib_save_LIBS
4865fi
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
4867$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
4868if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
4869 cat >>confdefs.h <<_ACEOF
4870#define HAVE_LIBCRYPTO 1
4871_ACEOF
4872
4873 LIBS="-lcrypto $LIBS"
4874
4875else
4876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
jfigus5b22e372013-05-09 09:23:26 -04004878as_fn_error $? "can't find openssl >1.0.1 crypto lib
4879See \`config.log' for more details" "$LINENO" 5; }
4880fi
4881
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_ctr in -lcrypto" >&5
4883$as_echo_n "checking for EVP_aes_128_ctr in -lcrypto... " >&6; }
4884if ${ac_cv_lib_crypto_EVP_aes_128_ctr+:} false; then :
4885 $as_echo_n "(cached) " >&6
4886else
4887 ac_check_lib_save_LIBS=$LIBS
4888LIBS="-lcrypto $LIBS"
4889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890/* end confdefs.h. */
4891
4892/* Override any GCC internal prototype to avoid an error.
4893 Use char because int might match the return type of a GCC
4894 builtin and then its argument prototype would still apply. */
4895#ifdef __cplusplus
4896extern "C"
4897#endif
4898char EVP_aes_128_ctr ();
4899int
4900main ()
4901{
4902return EVP_aes_128_ctr ();
4903 ;
4904 return 0;
4905}
4906_ACEOF
4907if ac_fn_c_try_link "$LINENO"; then :
4908 ac_cv_lib_crypto_EVP_aes_128_ctr=yes
4909else
4910 ac_cv_lib_crypto_EVP_aes_128_ctr=no
4911fi
4912rm -f core conftest.err conftest.$ac_objext \
4913 conftest$ac_exeext conftest.$ac_ext
4914LIBS=$ac_check_lib_save_LIBS
4915fi
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_ctr" >&5
4917$as_echo "$ac_cv_lib_crypto_EVP_aes_128_ctr" >&6; }
4918if test "x$ac_cv_lib_crypto_EVP_aes_128_ctr" = xyes; then :
4919 cat >>confdefs.h <<_ACEOF
4920#define HAVE_LIBCRYPTO 1
4921_ACEOF
4922
4923 LIBS="-lcrypto $LIBS"
4924
4925else
4926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4928as_fn_error $? "can't find openssl >1.0.1 crypto lib
jfigusc7e66e32013-05-08 11:32:55 -04004929See \`config.log' for more details" "$LINENO" 5; }
4930fi
4931
jfigus7882dd92013-08-02 16:08:23 -04004932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_gcm in -lcrypto" >&5
4933$as_echo_n "checking for EVP_aes_128_gcm in -lcrypto... " >&6; }
4934if ${ac_cv_lib_crypto_EVP_aes_128_gcm+:} false; then :
4935 $as_echo_n "(cached) " >&6
4936else
4937 ac_check_lib_save_LIBS=$LIBS
4938LIBS="-lcrypto $LIBS"
4939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940/* end confdefs.h. */
4941
4942/* Override any GCC internal prototype to avoid an error.
4943 Use char because int might match the return type of a GCC
4944 builtin and then its argument prototype would still apply. */
4945#ifdef __cplusplus
4946extern "C"
4947#endif
4948char EVP_aes_128_gcm ();
4949int
4950main ()
4951{
4952return EVP_aes_128_gcm ();
4953 ;
4954 return 0;
4955}
4956_ACEOF
4957if ac_fn_c_try_link "$LINENO"; then :
4958 ac_cv_lib_crypto_EVP_aes_128_gcm=yes
4959else
4960 ac_cv_lib_crypto_EVP_aes_128_gcm=no
4961fi
4962rm -f core conftest.err conftest.$ac_objext \
4963 conftest$ac_exeext conftest.$ac_ext
4964LIBS=$ac_check_lib_save_LIBS
4965fi
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_gcm" >&5
4967$as_echo "$ac_cv_lib_crypto_EVP_aes_128_gcm" >&6; }
4968if test "x$ac_cv_lib_crypto_EVP_aes_128_gcm" = xyes; then :
4969 cat >>confdefs.h <<_ACEOF
4970#define HAVE_LIBCRYPTO 1
4971_ACEOF
4972
4973 LIBS="-lcrypto $LIBS"
4974
4975else
4976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4978as_fn_error $? "can't find openssl >1.0.1 crypto lib
4979See \`config.log' for more details" "$LINENO" 5; }
4980fi
4981
jfigusc7e66e32013-05-08 11:32:55 -04004982
4983$as_echo "#define OPENSSL 1" >>confdefs.h
4984
jfigus7882dd92013-08-02 16:08:23 -04004985 AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
jfigusc7e66e32013-05-08 11:32:55 -04004986 RNG_OBJS=rand_source_ossl.o
4987 HMAC_OBJS=crypto/hash/hmac_ossl.o
4988 USE_OPENSSL=1
4989
4990else
4991 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o crypto/cipher/aes_cbc.o"
jfigus7882dd92013-08-02 16:08:23 -04004992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random device to use" >&5
4993$as_echo_n "checking which random device to use... " >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04004994 if test "$enable_kernel_linux" = "yes"; then
4995 RNG_OBJS=rand_linux_kernel.o
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux kernel builtin" >&5
4997$as_echo "Linux kernel builtin" >&6; }
4998 else
4999 RNG_OBJS=rand_source.o
5000 if test -n "$DEV_URANDOM"; then
5001
5002cat >>confdefs.h <<_ACEOF
5003#define DEV_URANDOM "$DEV_URANDOM"
5004_ACEOF
5005
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_URANDOM" >&5
5007$as_echo "$DEV_URANDOM" >&6; }
5008 else
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: standard rand() function..." >&5
5010$as_echo "standard rand() function..." >&6; }
5011 fi
5012 fi
5013 RNG_EXTRA_OBJS="crypto/rng/prng.o crypto/rng/ctr_prng.o"
5014 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
5015fi
5016
5017
5018
5019
jfigusc7e66e32013-05-08 11:32:55 -04005020
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
5022$as_echo_n "checking for pcap_create in -lpcap... " >&6; }
5023if ${ac_cv_lib_pcap_pcap_create+:} false; then :
5024 $as_echo_n "(cached) " >&6
5025else
5026 ac_check_lib_save_LIBS=$LIBS
5027LIBS="-lpcap $LIBS"
5028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029/* end confdefs.h. */
5030
5031/* Override any GCC internal prototype to avoid an error.
5032 Use char because int might match the return type of a GCC
5033 builtin and then its argument prototype would still apply. */
5034#ifdef __cplusplus
5035extern "C"
5036#endif
5037char pcap_create ();
5038int
5039main ()
5040{
5041return pcap_create ();
5042 ;
5043 return 0;
5044}
5045_ACEOF
5046if ac_fn_c_try_link "$LINENO"; then :
5047 ac_cv_lib_pcap_pcap_create=yes
5048else
5049 ac_cv_lib_pcap_pcap_create=no
5050fi
5051rm -f core conftest.err conftest.$ac_objext \
5052 conftest$ac_exeext conftest.$ac_ext
5053LIBS=$ac_check_lib_save_LIBS
5054fi
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
5056$as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
5057if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
Bernardo Torresb3c51422014-10-14 12:40:09 -03005058 PCAP=1
5059 LIBS="-lpcap $LIBS"
5060 HAVE_PCAP=1
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005061
Bernardo Torresb3c51422014-10-14 12:40:09 -03005062$as_echo "#define HAVE_PCAP 1" >>confdefs.h
5063
5064
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005065
5066fi
5067
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005068
jfigusc7e66e32013-05-08 11:32:55 -04005069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use stdout for error reporting" >&5
5070$as_echo_n "checking whether to use stdout for error reporting... " >&6; }
5071# Check whether --enable-stdout was given.
5072if test "${enable_stdout+set}" = set; then :
5073 enableval=$enable_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00005074else
5075 enable_stdout=yes
jfigusc7e66e32013-05-08 11:32:55 -04005076fi
5077
David McGrewb67061f2005-09-28 14:23:06 +00005078if test "$enable_stdout" = "yes"; then
5079
jfigusc7e66e32013-05-08 11:32:55 -04005080$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005081
5082fi
jfigusc7e66e32013-05-08 11:32:55 -04005083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdout" >&5
5084$as_echo "$enable_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005085
jfigusc7e66e32013-05-08 11:32:55 -04005086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use /dev/console for error reporting" >&5
5087$as_echo_n "checking whether to use /dev/console for error reporting... " >&6; }
5088# Check whether --enable-console was given.
5089if test "${enable_console+set}" = set; then :
5090 enableval=$enable_console;
David McGrewb67061f2005-09-28 14:23:06 +00005091else
5092 enable_console=no
jfigusc7e66e32013-05-08 11:32:55 -04005093fi
5094
David McGrewb67061f2005-09-28 14:23:06 +00005095if test "$enable_console" = "yes"; then
5096
jfigusc7e66e32013-05-08 11:32:55 -04005097$as_echo "#define USE_ERR_REPORTING_FILE 1" >>confdefs.h
David McGrewb67061f2005-09-28 14:23:06 +00005098
5099
jfigusc7e66e32013-05-08 11:32:55 -04005100$as_echo "#define ERR_REPORTING_FILE \"/dev/console\"" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005101
5102fi
jfigusc7e66e32013-05-08 11:32:55 -04005103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_console" >&5
5104$as_echo "$enable_console" >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00005105
jfigusc7e66e32013-05-08 11:32:55 -04005106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GDOI key management" >&5
5107$as_echo_n "checking whether to use GDOI key management... " >&6; }
5108# Check whether --enable-gdoi was given.
5109if test "${enable_gdoi+set}" = set; then :
5110 enableval=$enable_gdoi;
David McGrewb67061f2005-09-28 14:23:06 +00005111else
5112 enable_gdoi=no
jfigusc7e66e32013-05-08 11:32:55 -04005113fi
5114
David McGrewb67061f2005-09-28 14:23:06 +00005115if test "$enable_gdoi" = "yes"; then
5116
jfigusc7e66e32013-05-08 11:32:55 -04005117$as_echo "#define SRTP_GDOI 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005118
5119 GDOI_OBJS=gdoi/srtp+gdoi.o
5120
5121fi
jfigusc7e66e32013-05-08 11:32:55 -04005122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gdoi" >&5
5123$as_echo "$enable_gdoi" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005124
jfigusc7e66e32013-05-08 11:32:55 -04005125ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00005126
5127
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005128# Extract the first word of "pkg-config", so it can be a program name with args.
5129set dummy pkg-config; ac_word=$2
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5131$as_echo_n "checking for $ac_word... " >&6; }
5132if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5133 $as_echo_n "(cached) " >&6
5134else
5135 if test -n "$PKG_CONFIG"; then
5136 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5137else
5138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139for as_dir in $PATH
5140do
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5145 ac_cv_prog_PKG_CONFIG="yes"
5146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 break 2
5148 fi
5149done
5150 done
5151IFS=$as_save_IFS
5152
5153fi
5154fi
5155PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5156if test -n "$PKG_CONFIG"; then
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5158$as_echo "$PKG_CONFIG" >&6; }
5159else
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161$as_echo "no" >&6; }
5162fi
5163
5164
5165if test "x$PKG_CONFIG" != "x"; then
5166 HAVE_PKG_CONFIG=1
5167 ac_config_files="$ac_config_files libsrtp.pc"
5168
5169else
5170 HAVE_PKG_CONFIG=0
5171fi
5172
jfigusc7e66e32013-05-08 11:32:55 -04005173ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile"
5174
Cullen Jennings235513a2005-09-21 22:51:36 +00005175cat >confcache <<\_ACEOF
5176# This file is a shell script that caches the results of configure
5177# tests run on this system so they can be shared between configure
5178# scripts and configure runs, see configure's option --config-cache.
5179# It is not useful on other systems. If it contains results you don't
5180# want to keep, you may remove or edit it.
5181#
5182# config.status only pays attention to the cache file if you give it
5183# the --recheck option to rerun configure.
5184#
5185# `ac_cv_env_foo' variables (set or unset) will be overridden when
5186# loading this file, other *unset* `ac_cv_foo' will be assigned the
5187# following values.
5188
5189_ACEOF
5190
5191# The following way of writing the cache mishandles newlines in values,
5192# but we know of no workaround that is simple, portable, and efficient.
jfigusc7e66e32013-05-08 11:32:55 -04005193# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00005194# Ultrix sh set writes to stderr and can't be redirected directly,
5195# and sets the high bit in the cache file unless we assign to the vars.
jfigusc7e66e32013-05-08 11:32:55 -04005196(
5197 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5198 eval ac_val=\$$ac_var
5199 case $ac_val in #(
5200 *${as_nl}*)
5201 case $ac_var in #(
5202 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5203$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5204 esac
5205 case $ac_var in #(
5206 _ | IFS | as_nl) ;; #(
5207 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5208 *) { eval $ac_var=; unset $ac_var;} ;;
5209 esac ;;
5210 esac
5211 done
5212
Cullen Jennings235513a2005-09-21 22:51:36 +00005213 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04005214 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5215 *${as_nl}ac_space=\ *)
5216 # `set' does not quote correctly, so add quotes: double-quote
5217 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00005218 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00005219 "s/'/'\\\\''/g;
5220 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusc7e66e32013-05-08 11:32:55 -04005221 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00005222 *)
5223 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusc7e66e32013-05-08 11:32:55 -04005224 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00005225 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005226 esac |
5227 sort
5228) |
Cullen Jennings235513a2005-09-21 22:51:36 +00005229 sed '
jfigusc7e66e32013-05-08 11:32:55 -04005230 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00005231 t clear
jfigusc7e66e32013-05-08 11:32:55 -04005232 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00005233 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5234 t end
jfigusc7e66e32013-05-08 11:32:55 -04005235 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5236 :end' >>confcache
5237if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5238 if test -w "$cache_file"; then
5239 if test "x$cache_file" != "x/dev/null"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5241$as_echo "$as_me: updating cache $cache_file" >&6;}
5242 if test ! -f "$cache_file" || test -h "$cache_file"; then
5243 cat confcache >"$cache_file"
5244 else
5245 case $cache_file in #(
5246 */* | ?:*)
5247 mv -f confcache "$cache_file"$$ &&
5248 mv -f "$cache_file"$$ "$cache_file" ;; #(
5249 *)
5250 mv -f confcache "$cache_file" ;;
5251 esac
5252 fi
5253 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005254 else
jfigusc7e66e32013-05-08 11:32:55 -04005255 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5256$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00005257 fi
5258fi
5259rm -f confcache
5260
5261test "x$prefix" = xNONE && prefix=$ac_default_prefix
5262# Let make expand exec_prefix.
5263test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5264
Cullen Jennings235513a2005-09-21 22:51:36 +00005265DEFS=-DHAVE_CONFIG_H
5266
5267ac_libobjs=
5268ac_ltlibobjs=
jfigusc7e66e32013-05-08 11:32:55 -04005269U=
Cullen Jennings235513a2005-09-21 22:51:36 +00005270for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5271 # 1. Remove the extension, and $U if already installed.
jfigusc7e66e32013-05-08 11:32:55 -04005272 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5273 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5274 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5275 # will be set to the directory where LIBOBJS objects are built.
5276 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5277 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00005278done
5279LIBOBJS=$ac_libobjs
5280
5281LTLIBOBJS=$ac_ltlibobjs
5282
5283
5284
jfigusc7e66e32013-05-08 11:32:55 -04005285
5286: "${CONFIG_STATUS=./config.status}"
5287ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00005288ac_clean_files_save=$ac_clean_files
5289ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusc7e66e32013-05-08 11:32:55 -04005290{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5291$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5292as_write_fail=0
5293cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005294#! $SHELL
5295# Generated by $as_me.
5296# Run this file to recreate the current configuration.
5297# Compiler output produced by configure, useful for debugging
5298# configure, is in config.log if it exists.
5299
5300debug=false
5301ac_cs_recheck=false
5302ac_cs_silent=false
jfigusc7e66e32013-05-08 11:32:55 -04005303
Cullen Jennings235513a2005-09-21 22:51:36 +00005304SHELL=\${CONFIG_SHELL-$SHELL}
jfigusc7e66e32013-05-08 11:32:55 -04005305export SHELL
5306_ASEOF
5307cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5308## -------------------- ##
5309## M4sh Initialization. ##
5310## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00005311
jfigusc7e66e32013-05-08 11:32:55 -04005312# Be more Bourne compatible
5313DUALCASE=1; export DUALCASE # for MKS sh
5314if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005315 emulate sh
5316 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -04005317 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00005318 # is contrary to our usage. Disable this feature.
5319 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -04005320 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00005321else
jfigusc7e66e32013-05-08 11:32:55 -04005322 case `(set -o) 2>/dev/null` in #(
5323 *posix*) :
5324 set -o posix ;; #(
5325 *) :
5326 ;;
5327esac
Cullen Jennings235513a2005-09-21 22:51:36 +00005328fi
5329
5330
jfigusc7e66e32013-05-08 11:32:55 -04005331as_nl='
5332'
5333export as_nl
5334# Printing a long string crashes Solaris 7 /usr/bin/printf.
5335as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5336as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5337as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5338# Prefer a ksh shell builtin over an external printf program on Solaris,
5339# but without wasting forks for bash or zsh.
5340if test -z "$BASH_VERSION$ZSH_VERSION" \
5341 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5342 as_echo='print -r --'
5343 as_echo_n='print -rn --'
5344elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5345 as_echo='printf %s\n'
5346 as_echo_n='printf %s'
5347else
5348 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5349 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5350 as_echo_n='/usr/ucb/echo -n'
5351 else
5352 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5353 as_echo_n_body='eval
5354 arg=$1;
5355 case $arg in #(
5356 *"$as_nl"*)
5357 expr "X$arg" : "X\\(.*\\)$as_nl";
5358 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5359 esac;
5360 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5361 '
5362 export as_echo_n_body
5363 as_echo_n='sh -c $as_echo_n_body as_echo'
5364 fi
5365 export as_echo_body
5366 as_echo='sh -c $as_echo_body as_echo'
5367fi
5368
5369# The user is always right.
5370if test "${PATH_SEPARATOR+set}" != set; then
5371 PATH_SEPARATOR=:
5372 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5373 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5374 PATH_SEPARATOR=';'
5375 }
5376fi
5377
5378
5379# IFS
5380# We need space, tab and new line, in precisely that order. Quoting is
5381# there to prevent editors from complaining about space-tab.
5382# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5383# splitting by setting IFS to empty value.)
5384IFS=" "" $as_nl"
5385
5386# Find who we are. Look in the path if we contain no directory separator.
5387as_myself=
5388case $0 in #((
5389 *[\\/]* ) as_myself=$0 ;;
5390 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH
5392do
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5396 done
5397IFS=$as_save_IFS
5398
5399 ;;
5400esac
5401# We did not find ourselves, most probably we were run as `sh COMMAND'
5402# in which case we are not to be found in the path.
5403if test "x$as_myself" = x; then
5404 as_myself=$0
5405fi
5406if test ! -f "$as_myself"; then
5407 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5408 exit 1
5409fi
5410
5411# Unset variables that we do not need and which cause bugs (e.g. in
5412# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5413# suppresses any "Segmentation fault" message there. '((' could
5414# trigger a bug in pdksh 5.2.14.
5415for as_var in BASH_ENV ENV MAIL MAILPATH
5416do eval test x\${$as_var+set} = xset \
5417 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5418done
Cullen Jennings235513a2005-09-21 22:51:36 +00005419PS1='$ '
5420PS2='> '
5421PS4='+ '
5422
5423# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -04005424LC_ALL=C
5425export LC_ALL
5426LANGUAGE=C
5427export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -04005428
jfigusc7e66e32013-05-08 11:32:55 -04005429# CDPATH.
5430(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5431
5432
5433# as_fn_error STATUS ERROR [LINENO LOG_FD]
5434# ----------------------------------------
5435# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5436# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5437# script with STATUS, using 1 if that was 0.
5438as_fn_error ()
5439{
5440 as_status=$1; test $as_status -eq 0 && as_status=1
5441 if test "$4"; then
5442 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5443 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5444 fi
5445 $as_echo "$as_me: error: $2" >&2
5446 as_fn_exit $as_status
5447} # as_fn_error
5448
5449
5450# as_fn_set_status STATUS
5451# -----------------------
5452# Set $? to STATUS, without forking.
5453as_fn_set_status ()
5454{
5455 return $1
5456} # as_fn_set_status
5457
5458# as_fn_exit STATUS
5459# -----------------
5460# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5461as_fn_exit ()
5462{
5463 set +e
5464 as_fn_set_status $1
5465 exit $1
5466} # as_fn_exit
5467
5468# as_fn_unset VAR
5469# ---------------
5470# Portably unset VAR.
5471as_fn_unset ()
5472{
5473 { eval $1=; unset $1;}
5474}
5475as_unset=as_fn_unset
5476# as_fn_append VAR VALUE
5477# ----------------------
5478# Append the text in VALUE to the end of the definition contained in VAR. Take
5479# advantage of any shell optimizations that allow amortized linear growth over
5480# repeated appends, instead of the typical quadratic growth present in naive
5481# implementations.
5482if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5483 eval 'as_fn_append ()
5484 {
5485 eval $1+=\$2
5486 }'
5487else
5488 as_fn_append ()
5489 {
5490 eval $1=\$$1\$2
5491 }
5492fi # as_fn_append
5493
5494# as_fn_arith ARG...
5495# ------------------
5496# Perform arithmetic evaluation on the ARGs, and store the result in the
5497# global $as_val. Take advantage of shells that can avoid forks. The arguments
5498# must be portable across $(()) and expr.
5499if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5500 eval 'as_fn_arith ()
5501 {
5502 as_val=$(( $* ))
5503 }'
5504else
5505 as_fn_arith ()
5506 {
5507 as_val=`expr "$@" || test $? -eq 1`
5508 }
5509fi # as_fn_arith
5510
5511
5512if expr a : '\(a\)' >/dev/null 2>&1 &&
5513 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005514 as_expr=expr
5515else
5516 as_expr=false
5517fi
5518
jfigusc7e66e32013-05-08 11:32:55 -04005519if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005520 as_basename=basename
5521else
5522 as_basename=false
5523fi
5524
jfigusc7e66e32013-05-08 11:32:55 -04005525if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5526 as_dirname=dirname
5527else
5528 as_dirname=false
5529fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005530
jfigusc7e66e32013-05-08 11:32:55 -04005531as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00005532$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5533 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04005534 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5535$as_echo X/"$0" |
5536 sed '/^.*\/\([^/][^/]*\)\/*$/{
5537 s//\1/
5538 q
5539 }
5540 /^X\/\(\/\/\)$/{
5541 s//\1/
5542 q
5543 }
5544 /^X\/\(\/\).*/{
5545 s//\1/
5546 q
5547 }
5548 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005549
Cullen Jennings235513a2005-09-21 22:51:36 +00005550# Avoid depending upon Character Ranges.
5551as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5552as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5553as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5554as_cr_digits='0123456789'
5555as_cr_alnum=$as_cr_Letters$as_cr_digits
5556
jfigusc7e66e32013-05-08 11:32:55 -04005557ECHO_C= ECHO_N= ECHO_T=
5558case `echo -n x` in #(((((
5559-n*)
5560 case `echo 'xy\c'` in
5561 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5562 xy) ECHO_C='\c';;
5563 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5564 ECHO_T=' ';;
5565 esac;;
5566*)
5567 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00005568esac
5569
Cullen Jennings235513a2005-09-21 22:51:36 +00005570rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -04005571if test -d conf$$.dir; then
5572 rm -f conf$$.dir/conf$$.file
5573else
5574 rm -f conf$$.dir
5575 mkdir conf$$.dir 2>/dev/null
5576fi
5577if (echo >conf$$.file) 2>/dev/null; then
5578 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005579 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -04005580 # ... but there are two gotchas:
5581 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5582 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5583 # In both cases, we have to default to `cp -pR'.
5584 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5585 as_ln_s='cp -pR'
5586 elif ln conf$$.file conf$$ 2>/dev/null; then
5587 as_ln_s=ln
5588 else
5589 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005590 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005591else
jfigusc7e66e32013-05-08 11:32:55 -04005592 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005593fi
jfigusc7e66e32013-05-08 11:32:55 -04005594rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5595rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00005596
jfigusc7e66e32013-05-08 11:32:55 -04005597
5598# as_fn_mkdir_p
5599# -------------
5600# Create "$as_dir" as a directory, including parents if necessary.
5601as_fn_mkdir_p ()
5602{
5603
5604 case $as_dir in #(
5605 -*) as_dir=./$as_dir;;
5606 esac
5607 test -d "$as_dir" || eval $as_mkdir_p || {
5608 as_dirs=
5609 while :; do
5610 case $as_dir in #(
5611 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5612 *) as_qdir=$as_dir;;
5613 esac
5614 as_dirs="'$as_qdir' $as_dirs"
5615 as_dir=`$as_dirname -- "$as_dir" ||
5616$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5617 X"$as_dir" : 'X\(//\)[^/]' \| \
5618 X"$as_dir" : 'X\(//\)$' \| \
5619 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5620$as_echo X"$as_dir" |
5621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5622 s//\1/
5623 q
5624 }
5625 /^X\(\/\/\)[^/].*/{
5626 s//\1/
5627 q
5628 }
5629 /^X\(\/\/\)$/{
5630 s//\1/
5631 q
5632 }
5633 /^X\(\/\).*/{
5634 s//\1/
5635 q
5636 }
5637 s/.*/./; q'`
5638 test -d "$as_dir" && break
5639 done
5640 test -z "$as_dirs" || eval "mkdir $as_dirs"
5641 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5642
5643
5644} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005645if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -04005646 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00005647else
David McGrewfec49dd2005-09-23 19:34:11 +00005648 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00005649 as_mkdir_p=false
5650fi
5651
jfigusc7e66e32013-05-08 11:32:55 -04005652
5653# as_fn_executable_p FILE
5654# -----------------------
5655# Test if FILE is an executable regular file.
5656as_fn_executable_p ()
5657{
5658 test -f "$1" && test -x "$1"
5659} # as_fn_executable_p
5660as_test_x='test -x'
5661as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005662
5663# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00005664as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005665
5666# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00005667as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005668
5669
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005670exec 6>&1
jfigusc7e66e32013-05-08 11:32:55 -04005671## ----------------------------------- ##
5672## Main body of $CONFIG_STATUS script. ##
5673## ----------------------------------- ##
5674_ASEOF
5675test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005676
jfigusc7e66e32013-05-08 11:32:55 -04005677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5678# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00005679# report actual input values of CONFIG_FILES etc. instead of their
jfigusc7e66e32013-05-08 11:32:55 -04005680# values after options handling.
5681ac_log="
jfigusb058a3b2014-10-31 09:27:18 -04005682This file was extended by libsrtp $as_me 2.0.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04005683generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00005684
5685 CONFIG_FILES = $CONFIG_FILES
5686 CONFIG_HEADERS = $CONFIG_HEADERS
5687 CONFIG_LINKS = $CONFIG_LINKS
5688 CONFIG_COMMANDS = $CONFIG_COMMANDS
5689 $ $0 $@
5690
jfigusc7e66e32013-05-08 11:32:55 -04005691on `(hostname || uname -n) 2>/dev/null | sed 1q`
5692"
5693
Cullen Jennings235513a2005-09-21 22:51:36 +00005694_ACEOF
5695
jfigusc7e66e32013-05-08 11:32:55 -04005696case $ac_config_files in *"
5697"*) set x $ac_config_files; shift; ac_config_files=$*;;
5698esac
5699
5700case $ac_config_headers in *"
5701"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5702esac
5703
5704
5705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005706# Files that config.status was made for.
jfigusc7e66e32013-05-08 11:32:55 -04005707config_files="$ac_config_files"
5708config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00005709
jfigusc7e66e32013-05-08 11:32:55 -04005710_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005711
jfigusc7e66e32013-05-08 11:32:55 -04005712cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005713ac_cs_usage="\
jfigusc7e66e32013-05-08 11:32:55 -04005714\`$as_me' instantiates files and other configuration actions
5715from templates according to the current configuration. Unless the files
5716and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00005717
jfigusc7e66e32013-05-08 11:32:55 -04005718Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00005719
5720 -h, --help print this help, then exit
jfigusc7e66e32013-05-08 11:32:55 -04005721 -V, --version print version number and configuration settings, then exit
5722 --config print configuration, then exit
5723 -q, --quiet, --silent
5724 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00005725 -d, --debug don't remove temporary files
5726 --recheck update $as_me by reconfiguring in the same conditions
jfigusc7e66e32013-05-08 11:32:55 -04005727 --file=FILE[:TEMPLATE]
5728 instantiate the configuration file FILE
5729 --header=FILE[:TEMPLATE]
5730 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00005731
5732Configuration files:
5733$config_files
5734
5735Configuration headers:
5736$config_headers
5737
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005738Report bugs to <https://github.com/cisco/libsrtp/issues>."
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005739
jfigusc7e66e32013-05-08 11:32:55 -04005740_ACEOF
5741cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5742ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00005743ac_cs_version="\\
jfigusb058a3b2014-10-31 09:27:18 -04005744libsrtp config.status 2.0.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04005745configured by $0, generated by GNU Autoconf 2.69,
5746 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00005747
jfigusc7e66e32013-05-08 11:32:55 -04005748Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00005749This config.status script is free software; the Free Software Foundation
5750gives unlimited permission to copy, distribute and modify it."
jfigusc7e66e32013-05-08 11:32:55 -04005751
5752ac_pwd='$ac_pwd'
5753srcdir='$srcdir'
5754INSTALL='$INSTALL'
5755test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00005756_ACEOF
5757
jfigusc7e66e32013-05-08 11:32:55 -04005758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5759# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00005760ac_need_defaults=:
5761while test $# != 0
5762do
5763 case $1 in
jfigusc7e66e32013-05-08 11:32:55 -04005764 --*=?*)
5765 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5766 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005767 ac_shift=:
5768 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005769 --*=)
5770 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5771 ac_optarg=
5772 ac_shift=:
5773 ;;
5774 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00005775 ac_option=$1
5776 ac_optarg=$2
5777 ac_shift=shift
5778 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005779 esac
5780
5781 case $ac_option in
5782 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00005783 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5784 ac_cs_recheck=: ;;
jfigusc7e66e32013-05-08 11:32:55 -04005785 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5786 $as_echo "$ac_cs_version"; exit ;;
5787 --config | --confi | --conf | --con | --co | --c )
5788 $as_echo "$ac_cs_config"; exit ;;
5789 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00005790 debug=: ;;
5791 --file | --fil | --fi | --f )
5792 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04005793 case $ac_optarg in
5794 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5795 '') as_fn_error $? "missing file argument" ;;
5796 esac
5797 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005798 ac_need_defaults=false;;
5799 --header | --heade | --head | --hea )
5800 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04005801 case $ac_optarg in
5802 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5803 esac
5804 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005805 ac_need_defaults=false;;
jfigusc7e66e32013-05-08 11:32:55 -04005806 --he | --h)
5807 # Conflict between --help and --header
5808 as_fn_error $? "ambiguous option: \`$1'
5809Try \`$0 --help' for more information.";;
5810 --help | --hel | -h )
5811 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005812 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5813 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5814 ac_cs_silent=: ;;
5815
5816 # This is an error.
jfigusc7e66e32013-05-08 11:32:55 -04005817 -*) as_fn_error $? "unrecognized option: \`$1'
5818Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005819
jfigusc7e66e32013-05-08 11:32:55 -04005820 *) as_fn_append ac_config_targets " $1"
5821 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005822
5823 esac
5824 shift
5825done
5826
5827ac_configure_extra_args=
5828
5829if $ac_cs_silent; then
5830 exec 6>/dev/null
5831 ac_configure_extra_args="$ac_configure_extra_args --silent"
5832fi
5833
5834_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005836if \$ac_cs_recheck; then
jfigusc7e66e32013-05-08 11:32:55 -04005837 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5838 shift
5839 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5840 CONFIG_SHELL='$SHELL'
5841 export CONFIG_SHELL
5842 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00005843fi
5844
5845_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5847exec 5>>config.log
5848{
5849 echo
5850 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5851## Running $as_me. ##
5852_ASBOX
5853 $as_echo "$ac_log"
5854} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00005855
jfigusc7e66e32013-05-08 11:32:55 -04005856_ACEOF
5857cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5858_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005859
jfigusc7e66e32013-05-08 11:32:55 -04005860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005861
jfigusc7e66e32013-05-08 11:32:55 -04005862# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00005863for ac_config_target in $ac_config_targets
5864do
jfigusc7e66e32013-05-08 11:32:55 -04005865 case $ac_config_target in
5866 "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 +02005867 "libsrtp.pc") CONFIG_FILES="$CONFIG_FILES libsrtp.pc" ;;
jfigusc7e66e32013-05-08 11:32:55 -04005868 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5869 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
5870 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5871
5872 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005873 esac
5874done
5875
jfigusc7e66e32013-05-08 11:32:55 -04005876
Cullen Jennings235513a2005-09-21 22:51:36 +00005877# If the user did not use the arguments to specify the items to instantiate,
5878# then the envvar interface is used. Set only those that are not.
5879# We use the long form for the default assignment because of an extremely
5880# bizarre bug on SunOS 4.1.3.
5881if $ac_need_defaults; then
5882 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5883 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5884fi
5885
5886# Have a temporary directory for convenience. Make it in the build tree
jfigusc7e66e32013-05-08 11:32:55 -04005887# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00005888# creating and moving files from /tmp can sometimes cause problems.
jfigusc7e66e32013-05-08 11:32:55 -04005889# Hook for its removal unless debugging.
5890# Note that there is a small window in which the directory will not be cleaned:
5891# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00005892$debug ||
5893{
jfigusc7e66e32013-05-08 11:32:55 -04005894 tmp= ac_tmp=
5895 trap 'exit_status=$?
5896 : "${ac_tmp:=$tmp}"
5897 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5898' 0
5899 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00005900}
Cullen Jennings235513a2005-09-21 22:51:36 +00005901# Create a (secure) tmp directory for tmp files.
5902
5903{
jfigusc7e66e32013-05-08 11:32:55 -04005904 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5905 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00005906} ||
5907{
jfigusc7e66e32013-05-08 11:32:55 -04005908 tmp=./conf$$-$RANDOM
5909 (umask 077 && mkdir "$tmp")
5910} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5911ac_tmp=$tmp
5912
5913# Set up the scripts for CONFIG_FILES section.
5914# No need to generate them if there are no CONFIG_FILES.
5915# This happens for instance with `./config.status config.h'.
5916if test -n "$CONFIG_FILES"; then
5917
5918
5919ac_cr=`echo X | tr X '\015'`
5920# On cygwin, bash can eat \r inside `` if the user requested igncr.
5921# But we know of no other shell where ac_cr would be empty at this
5922# point, so we can use a bashism as a fallback.
5923if test "x$ac_cr" = x; then
5924 eval ac_cr=\$\'\\r\'
5925fi
5926ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5927if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5928 ac_cs_awk_cr='\\r'
5929else
5930 ac_cs_awk_cr=$ac_cr
5931fi
5932
5933echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5934_ACEOF
5935
5936
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005937{
jfigusc7e66e32013-05-08 11:32:55 -04005938 echo "cat >conf$$subs.awk <<_ACEOF" &&
5939 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5940 echo "_ACEOF"
5941} >conf$$subs.sh ||
5942 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5943ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5944ac_delim='%!_!# '
5945for ac_last_try in false false false false false :; do
5946 . ./conf$$subs.sh ||
5947 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5948
5949 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5950 if test $ac_delim_n = $ac_delim_num; then
5951 break
5952 elif $ac_last_try; then
5953 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5954 else
5955 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5956 fi
5957done
5958rm -f conf$$subs.sh
5959
5960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5961cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5962_ACEOF
5963sed -n '
5964h
5965s/^/S["/; s/!.*/"]=/
5966p
5967g
5968s/^[^!]*!//
5969:repl
5970t repl
5971s/'"$ac_delim"'$//
5972t delim
5973:nl
5974h
5975s/\(.\{148\}\)..*/\1/
5976t more1
5977s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5978p
5979n
5980b repl
5981:more1
5982s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5983p
5984g
5985s/.\{148\}//
5986t nl
5987:delim
5988h
5989s/\(.\{148\}\)..*/\1/
5990t more2
5991s/["\\]/\\&/g; s/^/"/; s/$/"/
5992p
5993b
5994:more2
5995s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5996p
5997g
5998s/.\{148\}//
5999t delim
6000' <conf$$subs.awk | sed '
6001/^[^""]/{
6002 N
6003 s/\n//
6004}
6005' >>$CONFIG_STATUS || ac_write_fail=1
6006rm -f conf$$subs.awk
6007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6008_ACAWK
6009cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6010 for (key in S) S_is_set[key] = 1
6011 FS = ""
6012
6013}
6014{
6015 line = $ 0
6016 nfields = split(line, field, "@")
6017 substed = 0
6018 len = length(field[1])
6019 for (i = 2; i < nfields; i++) {
6020 key = field[i]
6021 keylen = length(key)
6022 if (S_is_set[key]) {
6023 value = S[key]
6024 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6025 len += length(value) + length(field[++i])
6026 substed = 1
6027 } else
6028 len += 1 + keylen
6029 }
6030
6031 print line
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006032}
jfigusa14b5a02013-03-29 12:24:12 -04006033
jfigusc7e66e32013-05-08 11:32:55 -04006034_ACAWK
6035_ACEOF
6036cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6037if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6038 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6039else
6040 cat
6041fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6042 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
jfigusa14b5a02013-03-29 12:24:12 -04006043_ACEOF
6044
jfigusc7e66e32013-05-08 11:32:55 -04006045# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6046# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6047# trailing colons and then remove the whole line if VPATH becomes empty
6048# (actually we leave an empty line to preserve line numbers).
6049if test "x$srcdir" = x.; then
6050 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6051h
6052s///
6053s/^/:/
6054s/[ ]*$/:/
6055s/:\$(srcdir):/:/g
6056s/:\${srcdir}:/:/g
6057s/:@srcdir@:/:/g
6058s/^:*//
6059s/:*$//
6060x
6061s/\(=[ ]*\).*/\1/
6062G
6063s/\n//
6064s/^[^=]*=[ ]*$//
6065}'
6066fi
jfigusa14b5a02013-03-29 12:24:12 -04006067
jfigusc7e66e32013-05-08 11:32:55 -04006068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006069fi # test -n "$CONFIG_FILES"
6070
jfigusc7e66e32013-05-08 11:32:55 -04006071# Set up the scripts for CONFIG_HEADERS section.
6072# No need to generate them if there are no CONFIG_HEADERS.
6073# This happens for instance with `./config.status Makefile'.
6074if test -n "$CONFIG_HEADERS"; then
6075cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6076BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00006077_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006078
6079# Transform confdefs.h into an awk script `defines.awk', embedded as
6080# here-document in config.status, that substitutes the proper values into
6081# config.h.in to produce config.h.
6082
6083# Create a delimiter string that does not exist in confdefs.h, to ease
6084# handling of long lines.
6085ac_delim='%!_!# '
6086for ac_last_try in false false :; do
6087 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6088 if test -z "$ac_tt"; then
6089 break
6090 elif $ac_last_try; then
6091 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6092 else
6093 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6094 fi
6095done
6096
6097# For the awk script, D is an array of macro values keyed by name,
6098# likewise P contains macro parameters if any. Preserve backslash
6099# newline sequences.
6100
6101ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6102sed -n '
6103s/.\{148\}/&'"$ac_delim"'/g
6104t rset
6105:rset
6106s/^[ ]*#[ ]*define[ ][ ]*/ /
6107t def
6108d
6109:def
6110s/\\$//
6111t bsnl
6112s/["\\]/\\&/g
6113s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6114D["\1"]=" \3"/p
6115s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6116d
6117:bsnl
6118s/["\\]/\\&/g
6119s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6120D["\1"]=" \3\\\\\\n"\\/p
6121t cont
6122s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6123t cont
6124d
6125:cont
6126n
6127s/.\{148\}/&'"$ac_delim"'/g
6128t clear
6129:clear
6130s/\\$//
6131t bsnlc
6132s/["\\]/\\&/g; s/^/"/; s/$/"/p
6133d
6134:bsnlc
6135s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6136b cont
6137' <confdefs.h | sed '
6138s/'"$ac_delim"'/"\\\
6139"/g' >>$CONFIG_STATUS || ac_write_fail=1
6140
6141cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6142 for (key in D) D_is_set[key] = 1
6143 FS = ""
6144}
6145/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6146 line = \$ 0
6147 split(line, arg, " ")
6148 if (arg[1] == "#") {
6149 defundef = arg[2]
6150 mac1 = arg[3]
6151 } else {
6152 defundef = substr(arg[1], 2)
6153 mac1 = arg[2]
6154 }
6155 split(mac1, mac2, "(") #)
6156 macro = mac2[1]
6157 prefix = substr(line, 1, index(line, defundef) - 1)
6158 if (D_is_set[macro]) {
6159 # Preserve the white space surrounding the "#".
6160 print prefix "define", macro P[macro] D[macro]
6161 next
6162 } else {
6163 # Replace #undef with comments. This is necessary, for example,
6164 # in the case of _POSIX_SOURCE, which is predefined and required
6165 # on some systems where configure will not decide to define it.
6166 if (defundef == "undef") {
6167 print "/*", prefix defundef, macro, "*/"
6168 next
6169 }
6170 }
6171}
6172{ print }
6173_ACAWK
6174_ACEOF
6175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6176 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6177fi # test -n "$CONFIG_HEADERS"
6178
6179
6180eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6181shift
6182for ac_tag
6183do
6184 case $ac_tag in
6185 :[FHLC]) ac_mode=$ac_tag; continue;;
6186 esac
6187 case $ac_mode$ac_tag in
6188 :[FHL]*:*);;
6189 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6190 :[FH]-) ac_tag=-:-;;
6191 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6192 esac
6193 ac_save_IFS=$IFS
6194 IFS=:
6195 set x $ac_tag
6196 IFS=$ac_save_IFS
6197 shift
6198 ac_file=$1
6199 shift
6200
6201 case $ac_mode in
6202 :L) ac_source=$1;;
6203 :[FH])
6204 ac_file_inputs=
6205 for ac_f
6206 do
6207 case $ac_f in
6208 -) ac_f="$ac_tmp/stdin";;
6209 *) # Look for the file first in the build tree, then in the source tree
6210 # (if the path is not absolute). The absolute path cannot be DOS-style,
6211 # because $ac_f cannot contain `:'.
6212 test -f "$ac_f" ||
6213 case $ac_f in
6214 [\\/$]*) false;;
6215 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6216 esac ||
6217 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6218 esac
6219 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6220 as_fn_append ac_file_inputs " '$ac_f'"
6221 done
6222
6223 # Let's still pretend it is `configure' which instantiates (i.e., don't
6224 # use $as_me), people would be surprised to read:
6225 # /* config.h. Generated by config.status. */
6226 configure_input='Generated from '`
6227 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6228 `' by configure.'
6229 if test x"$ac_file" != x-; then
6230 configure_input="$ac_file. $configure_input"
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6232$as_echo "$as_me: creating $ac_file" >&6;}
6233 fi
6234 # Neutralize special characters interpreted by sed in replacement strings.
6235 case $configure_input in #(
6236 *\&* | *\|* | *\\* )
6237 ac_sed_conf_input=`$as_echo "$configure_input" |
6238 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6239 *) ac_sed_conf_input=$configure_input;;
6240 esac
6241
6242 case $ac_tag in
6243 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6244 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6245 esac
6246 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006247 esac
6248
jfigusc7e66e32013-05-08 11:32:55 -04006249 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006250$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006251 X"$ac_file" : 'X\(//\)[^/]' \| \
6252 X"$ac_file" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006253 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6254$as_echo X"$ac_file" |
6255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6256 s//\1/
6257 q
6258 }
6259 /^X\(\/\/\)[^/].*/{
6260 s//\1/
6261 q
6262 }
6263 /^X\(\/\/\)$/{
6264 s//\1/
6265 q
6266 }
6267 /^X\(\/\).*/{
6268 s//\1/
6269 q
6270 }
6271 s/.*/./; q'`
6272 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006273 ac_builddir=.
6274
jfigusc7e66e32013-05-08 11:32:55 -04006275case "$ac_dir" in
6276.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6277*)
6278 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6279 # A ".." for each directory in $ac_dir_suffix.
6280 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6281 case $ac_top_builddir_sub in
6282 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6283 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6284 esac ;;
6285esac
6286ac_abs_top_builddir=$ac_pwd
6287ac_abs_builddir=$ac_pwd$ac_dir_suffix
6288# for backward compatibility:
6289ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00006290
6291case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04006292 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00006293 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04006294 ac_top_srcdir=$ac_top_builddir_sub
6295 ac_abs_top_srcdir=$ac_pwd ;;
6296 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00006297 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04006298 ac_top_srcdir=$srcdir
6299 ac_abs_top_srcdir=$srcdir ;;
6300 *) # Relative name.
6301 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6302 ac_top_srcdir=$ac_top_build_prefix$srcdir
6303 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006304esac
jfigusc7e66e32013-05-08 11:32:55 -04006305ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00006306
Cullen Jennings235513a2005-09-21 22:51:36 +00006307
jfigusc7e66e32013-05-08 11:32:55 -04006308 case $ac_mode in
6309 :F)
6310 #
6311 # CONFIG_FILE
6312 #
Cullen Jennings235513a2005-09-21 22:51:36 +00006313
David McGrewb67061f2005-09-28 14:23:06 +00006314 case $INSTALL in
6315 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusc7e66e32013-05-08 11:32:55 -04006316 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00006317 esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006318_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006319
6320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6321# If the template does not know about datarootdir, expand it.
6322# FIXME: This hack should be removed a few years after 2.60.
6323ac_datarootdir_hack=; ac_datarootdir_seen=
6324ac_sed_dataroot='
6325/datarootdir/ {
6326 p
6327 q
6328}
6329/@datadir@/p
6330/@docdir@/p
6331/@infodir@/p
6332/@localedir@/p
6333/@mandir@/p'
6334case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6335*datarootdir*) ac_datarootdir_seen=yes;;
6336*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6338$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6339_ACEOF
6340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6341 ac_datarootdir_hack='
6342 s&@datadir@&$datadir&g
6343 s&@docdir@&$docdir&g
6344 s&@infodir@&$infodir&g
6345 s&@localedir@&$localedir&g
6346 s&@mandir@&$mandir&g
6347 s&\\\${datarootdir}&$datarootdir&g' ;;
6348esac
6349_ACEOF
6350
6351# Neutralize VPATH when `$srcdir' = `.'.
6352# Shell code in configure.ac might set extrasub.
6353# FIXME: do we really want to maintain this feature?
6354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6355ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00006356$extrasub
6357_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006359:t
6360/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusc7e66e32013-05-08 11:32:55 -04006361s|@configure_input@|$ac_sed_conf_input|;t t
6362s&@top_builddir@&$ac_top_builddir_sub&;t t
6363s&@top_build_prefix@&$ac_top_build_prefix&;t t
6364s&@srcdir@&$ac_srcdir&;t t
6365s&@abs_srcdir@&$ac_abs_srcdir&;t t
6366s&@top_srcdir@&$ac_top_srcdir&;t t
6367s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6368s&@builddir@&$ac_builddir&;t t
6369s&@abs_builddir@&$ac_abs_builddir&;t t
6370s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6371s&@INSTALL@&$ac_INSTALL&;t t
6372$ac_datarootdir_hack
6373"
6374eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6375 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00006376
jfigusc7e66e32013-05-08 11:32:55 -04006377test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6378 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6379 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6380 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6382which seems to be undefined. Please make sure it is defined" >&5
6383$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6384which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006385
jfigusc7e66e32013-05-08 11:32:55 -04006386 rm -f "$ac_tmp/stdin"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006387 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04006388 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6389 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6390 esac \
6391 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6392 ;;
6393 :H)
6394 #
6395 # CONFIG_HEADER
6396 #
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006397 if test x"$ac_file" != x-; then
jfigusc7e66e32013-05-08 11:32:55 -04006398 {
6399 $as_echo "/* $configure_input */" \
6400 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6401 } >"$ac_tmp/config.h" \
6402 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6403 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6405$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006406 else
jfigusc7e66e32013-05-08 11:32:55 -04006407 rm -f "$ac_file"
6408 mv "$ac_tmp/config.h" "$ac_file" \
6409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006410 fi
6411 else
jfigusc7e66e32013-05-08 11:32:55 -04006412 $as_echo "/* $configure_input */" \
6413 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6414 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006415 fi
jfigusc7e66e32013-05-08 11:32:55 -04006416 ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006417
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006418
jfigusc7e66e32013-05-08 11:32:55 -04006419 esac
6420
6421done # for ac_tag
6422
6423
6424as_fn_exit 0
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006425_ACEOF
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006426ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04006427
jfigusc7e66e32013-05-08 11:32:55 -04006428test $ac_write_fail = 0 ||
6429 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6430
Cullen Jennings235513a2005-09-21 22:51:36 +00006431
6432# configure is writing to config.log, and then calls config.status.
6433# config.status does its own redirection, appending to config.log.
6434# Unfortunately, on DOS this fails, as config.log is still kept open
6435# by configure, so config.status won't be able to write to it; its
6436# output is simply discarded. So we exec the FD to /dev/null,
6437# effectively closing config.log, so it can be properly (re)opened and
6438# appended to by config.status. When coming back to configure, we
6439# need to make the FD available again.
6440if test "$no_create" != yes; then
6441 ac_cs_success=:
6442 ac_config_status_args=
6443 test "$silent" = yes &&
6444 ac_config_status_args="$ac_config_status_args --quiet"
6445 exec 5>/dev/null
6446 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6447 exec 5>>config.log
6448 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6449 # would make configure fail if this is the last instruction.
jfigusc7e66e32013-05-08 11:32:55 -04006450 $ac_cs_success || as_fn_exit 1
6451fi
6452if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6454$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006455fi
6456
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00006457
6458# This is needed when building outside the source dir.
jfigusc7e66e32013-05-08 11:32:55 -04006459as_dir=crypto/ae_xfm; as_fn_mkdir_p
6460as_dir=crypto/cipher; as_fn_mkdir_p
6461as_dir=crypto/hash; as_fn_mkdir_p
6462as_dir=crypto/kernel; as_fn_mkdir_p
6463as_dir=crypto/math; as_fn_mkdir_p
6464as_dir=crypto/replay; as_fn_mkdir_p
6465as_dir=crypto/rng; as_fn_mkdir_p
6466as_dir=crypto/test; as_fn_mkdir_p
6467as_dir=doc; as_fn_mkdir_p
6468as_dir=srtp; as_fn_mkdir_p
6469as_dir=tables; as_fn_mkdir_p
6470as_dir=test; as_fn_mkdir_p