blob: 895e8cd613e7ccd0e6ecc8daad78fcbec25b341a [file] [log] [blame]
Cullen Jennings235513a2005-09-21 22:51:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02003# Generated by GNU Autoconf 2.69 for libsrtp 1.4.5.
4#
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'
583PACKAGE_VERSION='1.4.5'
584PACKAGE_STRING='libsrtp 1.4.5'
585PACKAGE_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
629HMAC_OBJS
630RNG_EXTRA_OBJS
631RNG_OBJS
632AES_ICM_OBJS
633USE_OPENSSL
634EXE
635host_os
636host_vendor
637host_cpu
638host
639build_os
640build_vendor
641build_cpu
642build
643EGREP
644GREP
645CPP
646INSTALL_DATA
647INSTALL_SCRIPT
648INSTALL_PROGRAM
649OBJEXT
650EXEEXT
651ac_ct_CC
652CPPFLAGS
653LDFLAGS
654CFLAGS
655CC
656RANLIB
657target_alias
658host_alias
659build_alias
660LIBS
661ECHO_T
662ECHO_N
663ECHO_C
664DEFS
665mandir
666localedir
667libdir
668psdir
669pdfdir
670dvidir
671htmldir
672infodir
673docdir
674oldincludedir
675includedir
676localstatedir
677sharedstatedir
678sysconfdir
679datadir
680datarootdir
681libexecdir
682sbindir
683bindir
684program_transform_name
685prefix
686exec_prefix
687PACKAGE_URL
688PACKAGE_BUGREPORT
689PACKAGE_STRING
690PACKAGE_VERSION
691PACKAGE_TARNAME
692PACKAGE_NAME
693PATH_SEPARATOR
694SHELL'
Cullen Jennings235513a2005-09-21 22:51:36 +0000695ac_subst_files=''
jfigusc7e66e32013-05-08 11:32:55 -0400696ac_user_opts='
697enable_option_checking
698enable_kernel_linux
699enable_debug
700enable_generic_aesicm
701enable_openssl
702enable_syslog
703enable_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
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001256\`configure' configures libsrtp 1.4.5 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
1321 short | recursive ) echo "Configuration of libsrtp 1.4.5:";;
1322 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 --enable-syslog use syslog for error reporting
1334 --disable-stdout don't use stdout for error reporting
1335 --enable-console use /dev/console for error reporting
1336 --enable-gdoi enable GDOI key management
Cullen Jennings235513a2005-09-21 22:51:36 +00001337
1338Some influential environment variables:
1339 CC C compiler command
1340 CFLAGS C compiler flags
1341 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1342 nonstandard directory <lib dir>
jfigusc7e66e32013-05-08 11:32:55 -04001343 LIBS libraries to pass to the linker, e.g. -l<library>
1344 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1345 you have headers in a nonstandard directory <include dir>
Cullen Jennings235513a2005-09-21 22:51:36 +00001346 CPP C preprocessor
1347
1348Use these variables to override the choices made by `configure' or to help
1349it to find libraries and programs with nonstandard names/locations.
1350
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001351Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00001352_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001353ac_status=$?
Cullen Jennings235513a2005-09-21 22:51:36 +00001354fi
1355
1356if test "$ac_init_help" = "recursive"; then
1357 # If there are subdirs, report their specific --help.
Cullen Jennings235513a2005-09-21 22:51:36 +00001358 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jfigusc7e66e32013-05-08 11:32:55 -04001359 test -d "$ac_dir" ||
1360 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1361 continue
Cullen Jennings235513a2005-09-21 22:51:36 +00001362 ac_builddir=.
1363
jfigusc7e66e32013-05-08 11:32:55 -04001364case "$ac_dir" in
1365.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1366*)
1367 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1368 # A ".." for each directory in $ac_dir_suffix.
1369 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1370 case $ac_top_builddir_sub in
1371 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1372 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1373 esac ;;
1374esac
1375ac_abs_top_builddir=$ac_pwd
1376ac_abs_builddir=$ac_pwd$ac_dir_suffix
1377# for backward compatibility:
1378ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00001379
1380case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04001381 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00001382 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04001383 ac_top_srcdir=$ac_top_builddir_sub
1384 ac_abs_top_srcdir=$ac_pwd ;;
1385 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001386 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04001387 ac_top_srcdir=$srcdir
1388 ac_abs_top_srcdir=$srcdir ;;
1389 *) # Relative name.
1390 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1391 ac_top_srcdir=$ac_top_build_prefix$srcdir
1392 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001393esac
jfigusc7e66e32013-05-08 11:32:55 -04001394ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001395
jfigusc7e66e32013-05-08 11:32:55 -04001396 cd "$ac_dir" || { ac_status=$?; continue; }
1397 # Check for guested configure.
1398 if test -f "$ac_srcdir/configure.gnu"; then
1399 echo &&
1400 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1401 elif test -f "$ac_srcdir/configure"; then
1402 echo &&
1403 $SHELL "$ac_srcdir/configure" --help=recursive
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001404 else
jfigusc7e66e32013-05-08 11:32:55 -04001405 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1406 fi || ac_status=$?
1407 cd "$ac_pwd" || { ac_status=$?; break; }
Cullen Jennings235513a2005-09-21 22:51:36 +00001408 done
1409fi
1410
jfigusc7e66e32013-05-08 11:32:55 -04001411test -n "$ac_init_help" && exit $ac_status
Cullen Jennings235513a2005-09-21 22:51:36 +00001412if $ac_init_version; then
1413 cat <<\_ACEOF
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001414libsrtp configure 1.4.5
jfigusc7e66e32013-05-08 11:32:55 -04001415generated by GNU Autoconf 2.69
Cullen Jennings235513a2005-09-21 22:51:36 +00001416
jfigusc7e66e32013-05-08 11:32:55 -04001417Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00001418This configure script is free software; the Free Software Foundation
1419gives unlimited permission to copy, distribute and modify it.
1420_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001421 exit
Cullen Jennings235513a2005-09-21 22:51:36 +00001422fi
jfigusc7e66e32013-05-08 11:32:55 -04001423
1424## ------------------------ ##
1425## Autoconf initialization. ##
1426## ------------------------ ##
1427
1428# ac_fn_c_try_compile LINENO
1429# --------------------------
1430# Try to compile conftest.$ac_ext, and return whether this succeeded.
1431ac_fn_c_try_compile ()
1432{
1433 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1434 rm -f conftest.$ac_objext
1435 if { { ac_try="$ac_compile"
1436case "(($ac_try" in
1437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1438 *) ac_try_echo=$ac_try;;
1439esac
1440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1441$as_echo "$ac_try_echo"; } >&5
1442 (eval "$ac_compile") 2>conftest.err
1443 ac_status=$?
1444 if test -s conftest.err; then
1445 grep -v '^ *+' conftest.err >conftest.er1
1446 cat conftest.er1 >&5
1447 mv -f conftest.er1 conftest.err
1448 fi
1449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1450 test $ac_status = 0; } && {
1451 test -z "$ac_c_werror_flag" ||
1452 test ! -s conftest.err
1453 } && test -s conftest.$ac_objext; then :
1454 ac_retval=0
1455else
1456 $as_echo "$as_me: failed program was:" >&5
1457sed 's/^/| /' conftest.$ac_ext >&5
1458
1459 ac_retval=1
1460fi
1461 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1462 as_fn_set_status $ac_retval
1463
1464} # ac_fn_c_try_compile
1465
1466# ac_fn_c_try_run LINENO
1467# ----------------------
1468# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1469# that executables *can* be run.
1470ac_fn_c_try_run ()
1471{
1472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1473 if { { ac_try="$ac_link"
1474case "(($ac_try" in
1475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1476 *) ac_try_echo=$ac_try;;
1477esac
1478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1479$as_echo "$ac_try_echo"; } >&5
1480 (eval "$ac_link") 2>&5
1481 ac_status=$?
1482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1483 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1484 { { case "(($ac_try" in
1485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1486 *) ac_try_echo=$ac_try;;
1487esac
1488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1489$as_echo "$ac_try_echo"; } >&5
1490 (eval "$ac_try") 2>&5
1491 ac_status=$?
1492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1493 test $ac_status = 0; }; }; then :
1494 ac_retval=0
1495else
1496 $as_echo "$as_me: program exited with status $ac_status" >&5
1497 $as_echo "$as_me: failed program was:" >&5
1498sed 's/^/| /' conftest.$ac_ext >&5
1499
1500 ac_retval=$ac_status
1501fi
1502 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1503 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1504 as_fn_set_status $ac_retval
1505
1506} # ac_fn_c_try_run
1507
1508# ac_fn_c_try_cpp LINENO
1509# ----------------------
1510# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1511ac_fn_c_try_cpp ()
1512{
1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514 if { { ac_try="$ac_cpp conftest.$ac_ext"
1515case "(($ac_try" in
1516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1517 *) ac_try_echo=$ac_try;;
1518esac
1519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1520$as_echo "$ac_try_echo"; } >&5
1521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1522 ac_status=$?
1523 if test -s conftest.err; then
1524 grep -v '^ *+' conftest.err >conftest.er1
1525 cat conftest.er1 >&5
1526 mv -f conftest.er1 conftest.err
1527 fi
1528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1529 test $ac_status = 0; } > conftest.i && {
1530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1531 test ! -s conftest.err
1532 }; then :
1533 ac_retval=0
1534else
1535 $as_echo "$as_me: failed program was:" >&5
1536sed 's/^/| /' conftest.$ac_ext >&5
1537
1538 ac_retval=1
1539fi
1540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1541 as_fn_set_status $ac_retval
1542
1543} # ac_fn_c_try_cpp
1544
1545# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1546# -------------------------------------------------------
1547# Tests whether HEADER exists and can be compiled using the include files in
1548# INCLUDES, setting the cache variable VAR accordingly.
1549ac_fn_c_check_header_compile ()
1550{
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1553$as_echo_n "checking for $2... " >&6; }
1554if eval \${$3+:} false; then :
1555 $as_echo_n "(cached) " >&6
1556else
1557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1558/* end confdefs.h. */
1559$4
1560#include <$2>
1561_ACEOF
1562if ac_fn_c_try_compile "$LINENO"; then :
1563 eval "$3=yes"
1564else
1565 eval "$3=no"
1566fi
1567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1568fi
1569eval ac_res=\$$3
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571$as_echo "$ac_res" >&6; }
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573
1574} # ac_fn_c_check_header_compile
1575
1576# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1577# -------------------------------------------------------
1578# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1579# the include files in INCLUDES and setting the cache variable VAR
1580# accordingly.
1581ac_fn_c_check_header_mongrel ()
1582{
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 if eval \${$3+:} false; then :
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1586$as_echo_n "checking for $2... " >&6; }
1587if eval \${$3+:} false; then :
1588 $as_echo_n "(cached) " >&6
1589fi
1590eval ac_res=\$$3
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1592$as_echo "$ac_res" >&6; }
1593else
1594 # Is the header compilable?
1595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1596$as_echo_n "checking $2 usability... " >&6; }
1597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598/* end confdefs.h. */
1599$4
1600#include <$2>
1601_ACEOF
1602if ac_fn_c_try_compile "$LINENO"; then :
1603 ac_header_compiler=yes
1604else
1605 ac_header_compiler=no
1606fi
1607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1609$as_echo "$ac_header_compiler" >&6; }
1610
1611# Is the header present?
1612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1613$as_echo_n "checking $2 presence... " >&6; }
1614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615/* end confdefs.h. */
1616#include <$2>
1617_ACEOF
1618if ac_fn_c_try_cpp "$LINENO"; then :
1619 ac_header_preproc=yes
1620else
1621 ac_header_preproc=no
1622fi
1623rm -f conftest.err conftest.i conftest.$ac_ext
1624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1625$as_echo "$ac_header_preproc" >&6; }
1626
1627# So? What about this header?
1628case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1629 yes:no: )
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1631$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1633$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1634 ;;
1635 no:yes:* )
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1637$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1639$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1641$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1643$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1645$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001646( $as_echo "## ------------------------------------------------------ ##
1647## Report this to https://github.com/cisco/libsrtp/issues ##
1648## ------------------------------------------------------ ##"
1649 ) | sed "s/^/$as_me: WARNING: /" >&2
jfigusc7e66e32013-05-08 11:32:55 -04001650 ;;
1651esac
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1653$as_echo_n "checking for $2... " >&6; }
1654if eval \${$3+:} false; then :
1655 $as_echo_n "(cached) " >&6
1656else
1657 eval "$3=\$ac_header_compiler"
1658fi
1659eval ac_res=\$$3
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661$as_echo "$ac_res" >&6; }
1662fi
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664
1665} # ac_fn_c_check_header_mongrel
1666
1667# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1668# -------------------------------------------
1669# Tests whether TYPE exists after having included INCLUDES, setting cache
1670# variable VAR accordingly.
1671ac_fn_c_check_type ()
1672{
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675$as_echo_n "checking for $2... " >&6; }
1676if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1678else
1679 eval "$3=no"
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681/* end confdefs.h. */
1682$4
1683int
1684main ()
1685{
1686if (sizeof ($2))
1687 return 0;
1688 ;
1689 return 0;
1690}
1691_ACEOF
1692if ac_fn_c_try_compile "$LINENO"; then :
1693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694/* end confdefs.h. */
1695$4
1696int
1697main ()
1698{
1699if (sizeof (($2)))
1700 return 0;
1701 ;
1702 return 0;
1703}
1704_ACEOF
1705if ac_fn_c_try_compile "$LINENO"; then :
1706
1707else
1708 eval "$3=yes"
1709fi
1710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711fi
1712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713fi
1714eval ac_res=\$$3
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716$as_echo "$ac_res" >&6; }
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718
1719} # ac_fn_c_check_type
1720
1721# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1722# --------------------------------------------
1723# Tries to find the compile-time value of EXPR in a program that includes
1724# INCLUDES, setting VAR accordingly. Returns whether the value could be
1725# computed
1726ac_fn_c_compute_int ()
1727{
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 if test "$cross_compiling" = yes; then
1730 # Depending upon the size, compute the lo and hi bounds.
1731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732/* end confdefs.h. */
1733$4
1734int
1735main ()
1736{
1737static int test_array [1 - 2 * !(($2) >= 0)];
1738test_array [0] = 0;
1739return test_array [0];
1740
1741 ;
1742 return 0;
1743}
1744_ACEOF
1745if ac_fn_c_try_compile "$LINENO"; then :
1746 ac_lo=0 ac_mid=0
1747 while :; do
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749/* end confdefs.h. */
1750$4
1751int
1752main ()
1753{
1754static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1755test_array [0] = 0;
1756return test_array [0];
1757
1758 ;
1759 return 0;
1760}
1761_ACEOF
1762if ac_fn_c_try_compile "$LINENO"; then :
1763 ac_hi=$ac_mid; break
1764else
1765 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1766 if test $ac_lo -le $ac_mid; then
1767 ac_lo= ac_hi=
1768 break
1769 fi
1770 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1771fi
1772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1773 done
1774else
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776/* end confdefs.h. */
1777$4
1778int
1779main ()
1780{
1781static int test_array [1 - 2 * !(($2) < 0)];
1782test_array [0] = 0;
1783return test_array [0];
1784
1785 ;
1786 return 0;
1787}
1788_ACEOF
1789if ac_fn_c_try_compile "$LINENO"; then :
1790 ac_hi=-1 ac_mid=-1
1791 while :; do
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793/* end confdefs.h. */
1794$4
1795int
1796main ()
1797{
1798static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1799test_array [0] = 0;
1800return test_array [0];
1801
1802 ;
1803 return 0;
1804}
1805_ACEOF
1806if ac_fn_c_try_compile "$LINENO"; then :
1807 ac_lo=$ac_mid; break
1808else
1809 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1810 if test $ac_mid -le $ac_hi; then
1811 ac_lo= ac_hi=
1812 break
1813 fi
1814 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1815fi
1816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 done
1818else
1819 ac_lo= ac_hi=
1820fi
1821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822fi
1823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824# Binary search between lo and hi bounds.
1825while test "x$ac_lo" != "x$ac_hi"; do
1826 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h. */
1829$4
1830int
1831main ()
1832{
1833static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1834test_array [0] = 0;
1835return test_array [0];
1836
1837 ;
1838 return 0;
1839}
1840_ACEOF
1841if ac_fn_c_try_compile "$LINENO"; then :
1842 ac_hi=$ac_mid
1843else
1844 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1845fi
1846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847done
1848case $ac_lo in #((
1849?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1850'') ac_retval=1 ;;
1851esac
1852 else
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854/* end confdefs.h. */
1855$4
1856static long int longval () { return $2; }
1857static unsigned long int ulongval () { return $2; }
1858#include <stdio.h>
1859#include <stdlib.h>
1860int
1861main ()
1862{
1863
1864 FILE *f = fopen ("conftest.val", "w");
1865 if (! f)
1866 return 1;
1867 if (($2) < 0)
1868 {
1869 long int i = longval ();
1870 if (i != ($2))
1871 return 1;
1872 fprintf (f, "%ld", i);
1873 }
1874 else
1875 {
1876 unsigned long int i = ulongval ();
1877 if (i != ($2))
1878 return 1;
1879 fprintf (f, "%lu", i);
1880 }
1881 /* Do not output a trailing newline, as this causes \r\n confusion
1882 on some platforms. */
1883 return ferror (f) || fclose (f) != 0;
1884
1885 ;
1886 return 0;
1887}
1888_ACEOF
1889if ac_fn_c_try_run "$LINENO"; then :
1890 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1891else
1892 ac_retval=1
1893fi
1894rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1895 conftest.$ac_objext conftest.beam conftest.$ac_ext
1896rm -f conftest.val
1897
1898 fi
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 as_fn_set_status $ac_retval
1901
1902} # ac_fn_c_compute_int
1903
1904# ac_fn_c_try_link LINENO
1905# -----------------------
1906# Try to link conftest.$ac_ext, and return whether this succeeded.
1907ac_fn_c_try_link ()
1908{
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 rm -f conftest.$ac_objext conftest$ac_exeext
1911 if { { ac_try="$ac_link"
1912case "(($ac_try" in
1913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914 *) ac_try_echo=$ac_try;;
1915esac
1916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917$as_echo "$ac_try_echo"; } >&5
1918 (eval "$ac_link") 2>conftest.err
1919 ac_status=$?
1920 if test -s conftest.err; then
1921 grep -v '^ *+' conftest.err >conftest.er1
1922 cat conftest.er1 >&5
1923 mv -f conftest.er1 conftest.err
1924 fi
1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926 test $ac_status = 0; } && {
1927 test -z "$ac_c_werror_flag" ||
1928 test ! -s conftest.err
1929 } && test -s conftest$ac_exeext && {
1930 test "$cross_compiling" = yes ||
1931 test -x conftest$ac_exeext
1932 }; then :
1933 ac_retval=0
1934else
1935 $as_echo "$as_me: failed program was:" >&5
1936sed 's/^/| /' conftest.$ac_ext >&5
1937
1938 ac_retval=1
1939fi
1940 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1941 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1942 # interfere with the next link command; also delete a directory that is
1943 # left behind by Apple's compiler. We do this before executing the actions.
1944 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946 as_fn_set_status $ac_retval
1947
1948} # ac_fn_c_try_link
1949
1950# ac_fn_c_check_func LINENO FUNC VAR
1951# ----------------------------------
1952# Tests whether FUNC exists, setting the cache variable VAR accordingly
1953ac_fn_c_check_func ()
1954{
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957$as_echo_n "checking for $2... " >&6; }
1958if eval \${$3+:} false; then :
1959 $as_echo_n "(cached) " >&6
1960else
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h. */
1963/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1965#define $2 innocuous_$2
1966
1967/* System header to define __stub macros and hopefully few prototypes,
1968 which can conflict with char $2 (); below.
1969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1970 <limits.h> exists even on freestanding compilers. */
1971
1972#ifdef __STDC__
1973# include <limits.h>
1974#else
1975# include <assert.h>
1976#endif
1977
1978#undef $2
1979
1980/* Override any GCC internal prototype to avoid an error.
1981 Use char because int might match the return type of a GCC
1982 builtin and then its argument prototype would still apply. */
1983#ifdef __cplusplus
1984extern "C"
1985#endif
1986char $2 ();
1987/* The GNU C library defines this for functions which it implements
1988 to always fail with ENOSYS. Some functions are actually named
1989 something starting with __ and the normal name is an alias. */
1990#if defined __stub_$2 || defined __stub___$2
1991choke me
1992#endif
1993
1994int
1995main ()
1996{
1997return $2 ();
1998 ;
1999 return 0;
2000}
2001_ACEOF
2002if ac_fn_c_try_link "$LINENO"; then :
2003 eval "$3=yes"
2004else
2005 eval "$3=no"
2006fi
2007rm -f core conftest.err conftest.$ac_objext \
2008 conftest$ac_exeext conftest.$ac_ext
2009fi
2010eval ac_res=\$$3
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012$as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014
2015} # ac_fn_c_check_func
2016cat >config.log <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002017This file contains any messages produced by compilers while
2018running configure, to aid debugging if configure makes a mistake.
2019
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02002020It was created by libsrtp $as_me 1.4.5, which was
jfigusc7e66e32013-05-08 11:32:55 -04002021generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00002022
2023 $ $0 $@
2024
2025_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002026exec 5>>config.log
Cullen Jennings235513a2005-09-21 22:51:36 +00002027{
2028cat <<_ASUNAME
2029## --------- ##
2030## Platform. ##
2031## --------- ##
2032
2033hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2034uname -m = `(uname -m) 2>/dev/null || echo unknown`
2035uname -r = `(uname -r) 2>/dev/null || echo unknown`
2036uname -s = `(uname -s) 2>/dev/null || echo unknown`
2037uname -v = `(uname -v) 2>/dev/null || echo unknown`
2038
2039/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2040/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2041
2042/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2043/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2044/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
jfigusc7e66e32013-05-08 11:32:55 -04002045/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Cullen Jennings235513a2005-09-21 22:51:36 +00002046/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2047/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2048/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2049
2050_ASUNAME
2051
2052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053for as_dir in $PATH
2054do
2055 IFS=$as_save_IFS
2056 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002057 $as_echo "PATH: $as_dir"
2058 done
2059IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002060
2061} >&5
2062
2063cat >&5 <<_ACEOF
2064
2065
2066## ----------- ##
2067## Core tests. ##
2068## ----------- ##
2069
2070_ACEOF
2071
2072
2073# Keep a trace of the command line.
2074# Strip out --no-create and --no-recursion so they do not pile up.
2075# Strip out --silent because we don't want to record it for future runs.
2076# Also quote any args containing shell meta-characters.
2077# Make two passes to allow for proper duplicate-argument suppression.
2078ac_configure_args=
2079ac_configure_args0=
2080ac_configure_args1=
Cullen Jennings235513a2005-09-21 22:51:36 +00002081ac_must_keep_next=false
2082for ac_pass in 1 2
2083do
2084 for ac_arg
2085 do
2086 case $ac_arg in
2087 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2089 | -silent | --silent | --silen | --sile | --sil)
2090 continue ;;
jfigusc7e66e32013-05-08 11:32:55 -04002091 *\'*)
2092 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002093 esac
2094 case $ac_pass in
jfigusc7e66e32013-05-08 11:32:55 -04002095 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002096 2)
jfigusc7e66e32013-05-08 11:32:55 -04002097 as_fn_append ac_configure_args1 " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002098 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00002099 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00002100 else
David McGrewfec49dd2005-09-23 19:34:11 +00002101 case $ac_arg in
2102 *=* | --config-cache | -C | -disable-* | --disable-* \
2103 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2104 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2105 | -with-* | --with-* | -without-* | --without-* | --x)
2106 case "$ac_configure_args0 " in
2107 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2108 esac
2109 ;;
2110 -* ) ac_must_keep_next=true ;;
2111 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00002112 fi
jfigusc7e66e32013-05-08 11:32:55 -04002113 as_fn_append ac_configure_args " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002114 ;;
2115 esac
2116 done
2117done
jfigusc7e66e32013-05-08 11:32:55 -04002118{ ac_configure_args0=; unset ac_configure_args0;}
2119{ ac_configure_args1=; unset ac_configure_args1;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002120
2121# When interrupted or exit'd, cleanup temporary files, and complete
2122# config.log. We remove comments because anyway the quotes in there
2123# would cause problems or look ugly.
jfigusc7e66e32013-05-08 11:32:55 -04002124# WARNING: Use '\'' to represent an apostrophe within the trap.
2125# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Cullen Jennings235513a2005-09-21 22:51:36 +00002126trap 'exit_status=$?
2127 # Save into config.log some information that might help in debugging.
2128 {
2129 echo
2130
jfigusc7e66e32013-05-08 11:32:55 -04002131 $as_echo "## ---------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002132## Cache variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002133## ---------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002134 echo
2135 # The following way of writing the cache mishandles newlines in values,
jfigusc7e66e32013-05-08 11:32:55 -04002136(
2137 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2138 eval ac_val=\$$ac_var
2139 case $ac_val in #(
2140 *${as_nl}*)
2141 case $ac_var in #(
2142 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2143$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2144 esac
2145 case $ac_var in #(
2146 _ | IFS | as_nl) ;; #(
2147 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2148 *) { eval $ac_var=; unset $ac_var;} ;;
2149 esac ;;
2150 esac
2151 done
Cullen Jennings235513a2005-09-21 22:51:36 +00002152 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04002153 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2154 *${as_nl}ac_space=\ *)
Cullen Jennings235513a2005-09-21 22:51:36 +00002155 sed -n \
jfigusc7e66e32013-05-08 11:32:55 -04002156 "s/'\''/'\''\\\\'\'''\''/g;
2157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2158 ;; #(
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002159 *)
jfigusc7e66e32013-05-08 11:32:55 -04002160 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002161 ;;
jfigusc7e66e32013-05-08 11:32:55 -04002162 esac |
2163 sort
2164)
Cullen Jennings235513a2005-09-21 22:51:36 +00002165 echo
2166
jfigusc7e66e32013-05-08 11:32:55 -04002167 $as_echo "## ----------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002168## Output variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002169## ----------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002170 echo
2171 for ac_var in $ac_subst_vars
2172 do
jfigusc7e66e32013-05-08 11:32:55 -04002173 eval ac_val=\$$ac_var
2174 case $ac_val in
2175 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2176 esac
2177 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002178 done | sort
2179 echo
2180
2181 if test -n "$ac_subst_files"; then
jfigusc7e66e32013-05-08 11:32:55 -04002182 $as_echo "## ------------------- ##
2183## File substitutions. ##
2184## ------------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002185 echo
2186 for ac_var in $ac_subst_files
2187 do
jfigusc7e66e32013-05-08 11:32:55 -04002188 eval ac_val=\$$ac_var
2189 case $ac_val in
2190 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2191 esac
2192 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002193 done | sort
2194 echo
2195 fi
2196
2197 if test -s confdefs.h; then
jfigusc7e66e32013-05-08 11:32:55 -04002198 $as_echo "## ----------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002199## confdefs.h. ##
jfigusc7e66e32013-05-08 11:32:55 -04002200## ----------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002201 echo
jfigusc7e66e32013-05-08 11:32:55 -04002202 cat confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002203 echo
2204 fi
2205 test "$ac_signal" != 0 &&
jfigusc7e66e32013-05-08 11:32:55 -04002206 $as_echo "$as_me: caught signal $ac_signal"
2207 $as_echo "$as_me: exit $exit_status"
Cullen Jennings235513a2005-09-21 22:51:36 +00002208 } >&5
jfigusc7e66e32013-05-08 11:32:55 -04002209 rm -f core *.core core.conftest.* &&
2210 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Cullen Jennings235513a2005-09-21 22:51:36 +00002211 exit $exit_status
jfigusc7e66e32013-05-08 11:32:55 -04002212' 0
Cullen Jennings235513a2005-09-21 22:51:36 +00002213for ac_signal in 1 2 13 15; do
jfigusc7e66e32013-05-08 11:32:55 -04002214 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Cullen Jennings235513a2005-09-21 22:51:36 +00002215done
2216ac_signal=0
2217
2218# confdefs.h avoids OS command line length limits that DEFS can exceed.
jfigusc7e66e32013-05-08 11:32:55 -04002219rm -f -r conftest* confdefs.h
2220
2221$as_echo "/* confdefs.h */" > confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002222
2223# Predefined preprocessor variables.
2224
2225cat >>confdefs.h <<_ACEOF
2226#define PACKAGE_NAME "$PACKAGE_NAME"
2227_ACEOF
2228
Cullen Jennings235513a2005-09-21 22:51:36 +00002229cat >>confdefs.h <<_ACEOF
2230#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2231_ACEOF
2232
Cullen Jennings235513a2005-09-21 22:51:36 +00002233cat >>confdefs.h <<_ACEOF
2234#define PACKAGE_VERSION "$PACKAGE_VERSION"
2235_ACEOF
2236
Cullen Jennings235513a2005-09-21 22:51:36 +00002237cat >>confdefs.h <<_ACEOF
2238#define PACKAGE_STRING "$PACKAGE_STRING"
2239_ACEOF
2240
Cullen Jennings235513a2005-09-21 22:51:36 +00002241cat >>confdefs.h <<_ACEOF
2242#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2243_ACEOF
2244
jfigusc7e66e32013-05-08 11:32:55 -04002245cat >>confdefs.h <<_ACEOF
2246#define PACKAGE_URL "$PACKAGE_URL"
2247_ACEOF
2248
Cullen Jennings235513a2005-09-21 22:51:36 +00002249
2250# Let the site file select an alternate cache file if it wants to.
jfigusc7e66e32013-05-08 11:32:55 -04002251# Prefer an explicitly selected file to automatically selected ones.
2252ac_site_file1=NONE
2253ac_site_file2=NONE
2254if test -n "$CONFIG_SITE"; then
2255 # We do not want a PATH search for config.site.
2256 case $CONFIG_SITE in #((
2257 -*) ac_site_file1=./$CONFIG_SITE;;
2258 */*) ac_site_file1=$CONFIG_SITE;;
2259 *) ac_site_file1=./$CONFIG_SITE;;
2260 esac
2261elif test "x$prefix" != xNONE; then
2262 ac_site_file1=$prefix/share/config.site
2263 ac_site_file2=$prefix/etc/config.site
2264else
2265 ac_site_file1=$ac_default_prefix/share/config.site
2266 ac_site_file2=$ac_default_prefix/etc/config.site
Cullen Jennings235513a2005-09-21 22:51:36 +00002267fi
jfigusc7e66e32013-05-08 11:32:55 -04002268for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2269do
2270 test "x$ac_site_file" = xNONE && continue
2271 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2273$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002274 sed 's/^/| /' "$ac_site_file" >&5
jfigusc7e66e32013-05-08 11:32:55 -04002275 . "$ac_site_file" \
2276 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2278as_fn_error $? "failed to load site script $ac_site_file
2279See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002280 fi
2281done
2282
2283if test -r "$cache_file"; then
jfigusc7e66e32013-05-08 11:32:55 -04002284 # Some versions of bash will fail to source /dev/null (special files
2285 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2286 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2288$as_echo "$as_me: loading cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002289 case $cache_file in
jfigusc7e66e32013-05-08 11:32:55 -04002290 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2291 *) . "./$cache_file";;
Cullen Jennings235513a2005-09-21 22:51:36 +00002292 esac
2293 fi
2294else
jfigusc7e66e32013-05-08 11:32:55 -04002295 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2296$as_echo "$as_me: creating cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002297 >$cache_file
2298fi
2299
2300# Check that the precious variables saved in the cache have kept the same
2301# value.
2302ac_cache_corrupted=false
jfigusc7e66e32013-05-08 11:32:55 -04002303for ac_var in $ac_precious_vars; do
Cullen Jennings235513a2005-09-21 22:51:36 +00002304 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2305 eval ac_new_set=\$ac_env_${ac_var}_set
jfigusc7e66e32013-05-08 11:32:55 -04002306 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2307 eval ac_new_val=\$ac_env_${ac_var}_value
Cullen Jennings235513a2005-09-21 22:51:36 +00002308 case $ac_old_set,$ac_new_set in
2309 set,)
jfigusc7e66e32013-05-08 11:32:55 -04002310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2311$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 +00002312 ac_cache_corrupted=: ;;
2313 ,set)
jfigusc7e66e32013-05-08 11:32:55 -04002314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2315$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002316 ac_cache_corrupted=: ;;
2317 ,);;
2318 *)
2319 if test "x$ac_old_val" != "x$ac_new_val"; then
jfigusc7e66e32013-05-08 11:32:55 -04002320 # differences in whitespace do not lead to failure.
2321 ac_old_val_w=`echo x $ac_old_val`
2322 ac_new_val_w=`echo x $ac_new_val`
2323 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2325$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2326 ac_cache_corrupted=:
2327 else
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2329$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2330 eval $ac_var=\$ac_old_val
2331 fi
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2333$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2335$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002336 fi;;
2337 esac
2338 # Pass precious variables to config.status.
2339 if test "$ac_new_set" = set; then
2340 case $ac_new_val in
jfigusc7e66e32013-05-08 11:32:55 -04002341 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002342 *) ac_arg=$ac_var=$ac_new_val ;;
2343 esac
2344 case " $ac_configure_args " in
2345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jfigusc7e66e32013-05-08 11:32:55 -04002346 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002347 esac
2348 fi
2349done
2350if $ac_cache_corrupted; then
jfigusc7e66e32013-05-08 11:32:55 -04002351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2354$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2355 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00002356fi
jfigusc7e66e32013-05-08 11:32:55 -04002357## -------------------- ##
2358## Main body of script. ##
2359## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002360
2361ac_ext=c
2362ac_cpp='$CPP $CPPFLAGS'
2363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2365ac_compiler_gnu=$ac_cv_c_compiler_gnu
2366
2367
2368
David McGrewb67061f2005-09-28 14:23:06 +00002369if test -z "$CFLAGS"; then
Sean Brightbfb9e302014-03-24 20:45:17 -04002370 CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops"
David McGrewb67061f2005-09-28 14:23:06 +00002371fi
2372
Cullen Jennings235513a2005-09-21 22:51:36 +00002373if test -n "$ac_tool_prefix"; then
2374 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2375set dummy ${ac_tool_prefix}ranlib; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2377$as_echo_n "checking for $ac_word... " >&6; }
2378if ${ac_cv_prog_RANLIB+:} false; then :
2379 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002380else
2381 if test -n "$RANLIB"; then
2382 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2383else
2384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385for as_dir in $PATH
2386do
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002391 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
jfigusc7e66e32013-05-08 11:32:55 -04002392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002393 break 2
2394 fi
2395done
jfigusc7e66e32013-05-08 11:32:55 -04002396 done
2397IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002398
2399fi
2400fi
2401RANLIB=$ac_cv_prog_RANLIB
2402if test -n "$RANLIB"; then
jfigusc7e66e32013-05-08 11:32:55 -04002403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2404$as_echo "$RANLIB" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002405else
jfigusc7e66e32013-05-08 11:32:55 -04002406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2407$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002408fi
2409
jfigusc7e66e32013-05-08 11:32:55 -04002410
Cullen Jennings235513a2005-09-21 22:51:36 +00002411fi
2412if test -z "$ac_cv_prog_RANLIB"; then
2413 ac_ct_RANLIB=$RANLIB
2414 # Extract the first word of "ranlib", so it can be a program name with args.
2415set dummy ranlib; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2417$as_echo_n "checking for $ac_word... " >&6; }
2418if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2419 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002420else
2421 if test -n "$ac_ct_RANLIB"; then
2422 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2423else
2424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425for as_dir in $PATH
2426do
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002431 ac_cv_prog_ac_ct_RANLIB="ranlib"
jfigusc7e66e32013-05-08 11:32:55 -04002432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002433 break 2
2434 fi
2435done
jfigusc7e66e32013-05-08 11:32:55 -04002436 done
2437IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002438
Cullen Jennings235513a2005-09-21 22:51:36 +00002439fi
2440fi
2441ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2442if test -n "$ac_ct_RANLIB"; then
jfigusc7e66e32013-05-08 11:32:55 -04002443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2444$as_echo "$ac_ct_RANLIB" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002445else
jfigusc7e66e32013-05-08 11:32:55 -04002446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2447$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002448fi
2449
jfigusc7e66e32013-05-08 11:32:55 -04002450 if test "x$ac_ct_RANLIB" = x; then
2451 RANLIB=":"
2452 else
2453 case $cross_compiling:$ac_tool_warned in
2454yes:)
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2457ac_tool_warned=yes ;;
2458esac
2459 RANLIB=$ac_ct_RANLIB
2460 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002461else
2462 RANLIB="$ac_cv_prog_RANLIB"
2463fi
2464
2465ac_ext=c
2466ac_cpp='$CPP $CPPFLAGS'
2467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470if test -n "$ac_tool_prefix"; then
2471 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2472set dummy ${ac_tool_prefix}gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2474$as_echo_n "checking for $ac_word... " >&6; }
2475if ${ac_cv_prog_CC+:} false; then :
2476 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002477else
2478 if test -n "$CC"; then
2479 ac_cv_prog_CC="$CC" # Let the user override the test.
2480else
2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482for as_dir in $PATH
2483do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002488 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002490 break 2
2491 fi
2492done
jfigusc7e66e32013-05-08 11:32:55 -04002493 done
2494IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002495
2496fi
2497fi
2498CC=$ac_cv_prog_CC
2499if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2501$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002502else
jfigusc7e66e32013-05-08 11:32:55 -04002503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2504$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002505fi
2506
jfigusc7e66e32013-05-08 11:32:55 -04002507
Cullen Jennings235513a2005-09-21 22:51:36 +00002508fi
2509if test -z "$ac_cv_prog_CC"; then
2510 ac_ct_CC=$CC
2511 # Extract the first word of "gcc", so it can be a program name with args.
2512set dummy gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2514$as_echo_n "checking for $ac_word... " >&6; }
2515if ${ac_cv_prog_ac_ct_CC+:} false; then :
2516 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002517else
2518 if test -n "$ac_ct_CC"; then
2519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2520else
2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002528 ac_cv_prog_ac_ct_CC="gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002530 break 2
2531 fi
2532done
jfigusc7e66e32013-05-08 11:32:55 -04002533 done
2534IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002535
2536fi
2537fi
2538ac_ct_CC=$ac_cv_prog_ac_ct_CC
2539if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2541$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002542else
jfigusc7e66e32013-05-08 11:32:55 -04002543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002545fi
2546
jfigusc7e66e32013-05-08 11:32:55 -04002547 if test "x$ac_ct_CC" = x; then
2548 CC=""
2549 else
2550 case $cross_compiling:$ac_tool_warned in
2551yes:)
2552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2554ac_tool_warned=yes ;;
2555esac
2556 CC=$ac_ct_CC
2557 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002558else
2559 CC="$ac_cv_prog_CC"
2560fi
2561
2562if test -z "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002563 if test -n "$ac_tool_prefix"; then
2564 # 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 +00002565set dummy ${ac_tool_prefix}cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567$as_echo_n "checking for $ac_word... " >&6; }
2568if ${ac_cv_prog_CC+:} false; then :
2569 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002570else
2571 if test -n "$CC"; then
2572 ac_cv_prog_CC="$CC" # Let the user override the test.
2573else
2574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575for as_dir in $PATH
2576do
2577 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002581 ac_cv_prog_CC="${ac_tool_prefix}cc"
jfigusc7e66e32013-05-08 11:32:55 -04002582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002583 break 2
2584 fi
2585done
jfigusc7e66e32013-05-08 11:32:55 -04002586 done
2587IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002588
2589fi
2590fi
2591CC=$ac_cv_prog_CC
2592if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2594$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002595else
jfigusc7e66e32013-05-08 11:32:55 -04002596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002598fi
2599
jfigusc7e66e32013-05-08 11:32:55 -04002600
Cullen Jennings235513a2005-09-21 22:51:36 +00002601 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002602fi
2603if test -z "$CC"; then
2604 # Extract the first word of "cc", so it can be a program name with args.
2605set dummy cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607$as_echo_n "checking for $ac_word... " >&6; }
2608if ${ac_cv_prog_CC+:} false; then :
2609 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002610else
2611 if test -n "$CC"; then
2612 ac_cv_prog_CC="$CC" # Let the user override the test.
2613else
2614 ac_prog_rejected=no
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002622 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2623 ac_prog_rejected=yes
2624 continue
2625 fi
2626 ac_cv_prog_CC="cc"
jfigusc7e66e32013-05-08 11:32:55 -04002627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002628 break 2
2629 fi
2630done
jfigusc7e66e32013-05-08 11:32:55 -04002631 done
2632IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002633
2634if test $ac_prog_rejected = yes; then
2635 # We found a bogon in the path, so make sure we never use it.
2636 set dummy $ac_cv_prog_CC
2637 shift
2638 if test $# != 0; then
2639 # We chose a different compiler from the bogus one.
2640 # However, it has the same basename, so the bogon will be chosen
2641 # first if we set CC to just the basename; use the full file name.
2642 shift
2643 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2644 fi
2645fi
2646fi
2647fi
2648CC=$ac_cv_prog_CC
2649if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2651$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002652else
jfigusc7e66e32013-05-08 11:32:55 -04002653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002655fi
2656
jfigusc7e66e32013-05-08 11:32:55 -04002657
Cullen Jennings235513a2005-09-21 22:51:36 +00002658fi
2659if test -z "$CC"; then
2660 if test -n "$ac_tool_prefix"; then
jfigusc7e66e32013-05-08 11:32:55 -04002661 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002662 do
2663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2664set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666$as_echo_n "checking for $ac_word... " >&6; }
2667if ${ac_cv_prog_CC+:} false; then :
2668 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002669else
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC="$CC" # Let the user override the test.
2672else
2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002680 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002682 break 2
2683 fi
2684done
jfigusc7e66e32013-05-08 11:32:55 -04002685 done
2686IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002687
2688fi
2689fi
2690CC=$ac_cv_prog_CC
2691if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2693$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002694else
jfigusc7e66e32013-05-08 11:32:55 -04002695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002697fi
2698
jfigusc7e66e32013-05-08 11:32:55 -04002699
Cullen Jennings235513a2005-09-21 22:51:36 +00002700 test -n "$CC" && break
2701 done
2702fi
2703if test -z "$CC"; then
2704 ac_ct_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04002705 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002706do
2707 # Extract the first word of "$ac_prog", so it can be a program name with args.
2708set dummy $ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710$as_echo_n "checking for $ac_word... " >&6; }
2711if ${ac_cv_prog_ac_ct_CC+:} false; then :
2712 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002713else
2714 if test -n "$ac_ct_CC"; then
2715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2716else
2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002724 ac_cv_prog_ac_ct_CC="$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002726 break 2
2727 fi
2728done
jfigusc7e66e32013-05-08 11:32:55 -04002729 done
2730IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002731
2732fi
2733fi
2734ac_ct_CC=$ac_cv_prog_ac_ct_CC
2735if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2737$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002738else
jfigusc7e66e32013-05-08 11:32:55 -04002739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002741fi
2742
jfigusc7e66e32013-05-08 11:32:55 -04002743
Cullen Jennings235513a2005-09-21 22:51:36 +00002744 test -n "$ac_ct_CC" && break
2745done
2746
jfigusc7e66e32013-05-08 11:32:55 -04002747 if test "x$ac_ct_CC" = x; then
2748 CC=""
2749 else
2750 case $cross_compiling:$ac_tool_warned in
2751yes:)
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2754ac_tool_warned=yes ;;
2755esac
2756 CC=$ac_ct_CC
2757 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002758fi
2759
2760fi
2761
2762
jfigusc7e66e32013-05-08 11:32:55 -04002763test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2765as_fn_error $? "no acceptable C compiler found in \$PATH
2766See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002767
2768# Provide some information about the compiler.
jfigusc7e66e32013-05-08 11:32:55 -04002769$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2770set X $ac_compile
2771ac_compiler=$2
2772for ac_option in --version -v -V -qversion; do
2773 { { ac_try="$ac_compiler $ac_option >&5"
2774case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777esac
2778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2779$as_echo "$ac_try_echo"; } >&5
2780 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Cullen Jennings235513a2005-09-21 22:51:36 +00002781 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002782 if test -s conftest.err; then
2783 sed '10a\
2784... rest of stderr output deleted ...
2785 10q' conftest.err >conftest.er1
2786 cat conftest.er1 >&5
2787 fi
2788 rm -f conftest.er1 conftest.err
2789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2790 test $ac_status = 0; }
2791done
Cullen Jennings235513a2005-09-21 22:51:36 +00002792
jfigusc7e66e32013-05-08 11:32:55 -04002793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002794/* end confdefs.h. */
2795
2796int
2797main ()
2798{
2799
2800 ;
2801 return 0;
2802}
2803_ACEOF
2804ac_clean_files_save=$ac_clean_files
jfigusc7e66e32013-05-08 11:32:55 -04002805ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Cullen Jennings235513a2005-09-21 22:51:36 +00002806# Try to create an executable without -o first, disregard a.out.
2807# It will help us diagnose broken compilers, and finding out an intuition
2808# of exeext.
jfigusc7e66e32013-05-08 11:32:55 -04002809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2810$as_echo_n "checking whether the C compiler works... " >&6; }
2811ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002812
jfigusc7e66e32013-05-08 11:32:55 -04002813# The possible output files:
2814ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2815
2816ac_rmfiles=
2817for ac_file in $ac_files
2818do
2819 case $ac_file in
2820 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2821 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2822 esac
2823done
2824rm -f $ac_rmfiles
2825
2826if { { ac_try="$ac_link_default"
2827case "(($ac_try" in
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2830esac
2831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2832$as_echo "$ac_try_echo"; } >&5
2833 (eval "$ac_link_default") 2>&5
2834 ac_status=$?
2835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2836 test $ac_status = 0; }; then :
2837 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2838# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2839# in a Makefile. We should not override ac_cv_exeext if it was cached,
2840# so that the user can short-circuit this test for compilers unknown to
2841# Autoconf.
2842for ac_file in $ac_files ''
Cullen Jennings235513a2005-09-21 22:51:36 +00002843do
2844 test -f "$ac_file" || continue
2845 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00002847 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002848 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00002849 # We found the default executable, but exeext='' is most
2850 # certainly right.
2851 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002852 *.* )
jfigusc7e66e32013-05-08 11:32:55 -04002853 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2854 then :; else
2855 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2856 fi
2857 # We set ac_cv_exeext here because the later test for it is not
2858 # safe: cross compilers may not add the suffix if given an `-o'
2859 # argument, so we may need to know it at that point already.
2860 # Even if this section looks crufty: it has the advantage of
2861 # actually working.
David McGrewfec49dd2005-09-23 19:34:11 +00002862 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002863 * )
David McGrewfec49dd2005-09-23 19:34:11 +00002864 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002865 esac
2866done
jfigusc7e66e32013-05-08 11:32:55 -04002867test "$ac_cv_exeext" = no && ac_cv_exeext=
2868
Cullen Jennings235513a2005-09-21 22:51:36 +00002869else
jfigusc7e66e32013-05-08 11:32:55 -04002870 ac_file=''
2871fi
2872if test -z "$ac_file"; then :
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874$as_echo "no" >&6; }
2875$as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002876sed 's/^/| /' conftest.$ac_ext >&5
2877
jfigusc7e66e32013-05-08 11:32:55 -04002878{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2879$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2880as_fn_error 77 "C compiler cannot create executables
2881See \`config.log' for more details" "$LINENO" 5; }
2882else
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2884$as_echo "yes" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002885fi
jfigusc7e66e32013-05-08 11:32:55 -04002886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2887$as_echo_n "checking for C compiler default output file name... " >&6; }
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2889$as_echo "$ac_file" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002890ac_exeext=$ac_cv_exeext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002891
jfigusc7e66e32013-05-08 11:32:55 -04002892rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002893ac_clean_files=$ac_clean_files_save
jfigusc7e66e32013-05-08 11:32:55 -04002894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2895$as_echo_n "checking for suffix of executables... " >&6; }
2896if { { ac_try="$ac_link"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2902$as_echo "$ac_try_echo"; } >&5
2903 (eval "$ac_link") 2>&5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002904 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2906 test $ac_status = 0; }; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002907 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2908# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2909# work properly (i.e., refer to `conftest.exe'), while it won't with
2910# `rm'.
2911for ac_file in conftest.exe conftest conftest.*; do
2912 test -f "$ac_file" || continue
2913 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002915 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00002916 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002917 * ) break;;
2918 esac
2919done
2920else
jfigusc7e66e32013-05-08 11:32:55 -04002921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2923as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2924See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002925fi
jfigusc7e66e32013-05-08 11:32:55 -04002926rm -f conftest conftest$ac_cv_exeext
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2928$as_echo "$ac_cv_exeext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002929
2930rm -f conftest.$ac_ext
2931EXEEXT=$ac_cv_exeext
2932ac_exeext=$EXEEXT
jfigusc7e66e32013-05-08 11:32:55 -04002933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2934/* end confdefs.h. */
2935#include <stdio.h>
2936int
2937main ()
2938{
2939FILE *f = fopen ("conftest.out", "w");
2940 return ferror (f) || fclose (f) != 0;
2941
2942 ;
2943 return 0;
2944}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002945_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002946ac_clean_files="$ac_clean_files conftest.out"
2947# Check that the compiler produces executables we can run. If not, either
2948# the compiler is broken, or we cross compile.
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2950$as_echo_n "checking whether we are cross compiling... " >&6; }
2951if test "$cross_compiling" != yes; then
2952 { { ac_try="$ac_link"
2953case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2956esac
2957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2958$as_echo "$ac_try_echo"; } >&5
2959 (eval "$ac_link") 2>&5
2960 ac_status=$?
2961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2962 test $ac_status = 0; }
2963 if { ac_try='./conftest$ac_cv_exeext'
2964 { { case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967esac
2968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2969$as_echo "$ac_try_echo"; } >&5
2970 (eval "$ac_try") 2>&5
2971 ac_status=$?
2972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973 test $ac_status = 0; }; }; then
2974 cross_compiling=no
2975 else
2976 if test "$cross_compiling" = maybe; then
2977 cross_compiling=yes
2978 else
2979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2981as_fn_error $? "cannot run C compiled programs.
2982If you meant to cross compile, use \`--host'.
2983See \`config.log' for more details" "$LINENO" 5; }
2984 fi
2985 fi
2986fi
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2988$as_echo "$cross_compiling" >&6; }
2989
2990rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2991ac_clean_files=$ac_clean_files_save
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2993$as_echo_n "checking for suffix of object files... " >&6; }
2994if ${ac_cv_objext+:} false; then :
2995 $as_echo_n "(cached) " >&6
2996else
2997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002998/* end confdefs.h. */
2999
3000int
3001main ()
3002{
3003
3004 ;
3005 return 0;
3006}
3007_ACEOF
3008rm -f conftest.o conftest.obj
jfigusc7e66e32013-05-08 11:32:55 -04003009if { { ac_try="$ac_compile"
3010case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013esac
3014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3015$as_echo "$ac_try_echo"; } >&5
3016 (eval "$ac_compile") 2>&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003017 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04003018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3019 test $ac_status = 0; }; then :
3020 for ac_file in conftest.o conftest.obj conftest.*; do
3021 test -f "$ac_file" || continue;
Cullen Jennings235513a2005-09-21 22:51:36 +00003022 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04003023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003024 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3025 break;;
3026 esac
3027done
3028else
jfigusc7e66e32013-05-08 11:32:55 -04003029 $as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003030sed 's/^/| /' conftest.$ac_ext >&5
3031
jfigusc7e66e32013-05-08 11:32:55 -04003032{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3034as_fn_error $? "cannot compute suffix of object files: cannot compile
3035See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003036fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003037rm -f conftest.$ac_cv_objext conftest.$ac_ext
3038fi
jfigusc7e66e32013-05-08 11:32:55 -04003039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3040$as_echo "$ac_cv_objext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003041OBJEXT=$ac_cv_objext
3042ac_objext=$OBJEXT
jfigusc7e66e32013-05-08 11:32:55 -04003043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3044$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3045if ${ac_cv_c_compiler_gnu+:} false; then :
3046 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003047else
jfigusc7e66e32013-05-08 11:32:55 -04003048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003049/* end confdefs.h. */
3050
3051int
3052main ()
3053{
3054#ifndef __GNUC__
3055 choke me
3056#endif
3057
3058 ;
3059 return 0;
3060}
3061_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003062if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003063 ac_compiler_gnu=yes
3064else
jfigusc7e66e32013-05-08 11:32:55 -04003065 ac_compiler_gnu=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003066fi
jfigusc7e66e32013-05-08 11:32:55 -04003067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003068ac_cv_c_compiler_gnu=$ac_compiler_gnu
3069
3070fi
jfigusc7e66e32013-05-08 11:32:55 -04003071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3072$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3073if test $ac_compiler_gnu = yes; then
3074 GCC=yes
3075else
3076 GCC=
3077fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003078ac_test_CFLAGS=${CFLAGS+set}
3079ac_save_CFLAGS=$CFLAGS
jfigusc7e66e32013-05-08 11:32:55 -04003080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3081$as_echo_n "checking whether $CC accepts -g... " >&6; }
3082if ${ac_cv_prog_cc_g+:} false; then :
3083 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003084else
jfigusc7e66e32013-05-08 11:32:55 -04003085 ac_save_c_werror_flag=$ac_c_werror_flag
3086 ac_c_werror_flag=yes
3087 ac_cv_prog_cc_g=no
3088 CFLAGS="-g"
3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003090/* end confdefs.h. */
3091
3092int
3093main ()
3094{
3095
3096 ;
3097 return 0;
3098}
3099_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003100if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003101 ac_cv_prog_cc_g=yes
3102else
jfigusc7e66e32013-05-08 11:32:55 -04003103 CFLAGS=""
3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00003106
jfigusc7e66e32013-05-08 11:32:55 -04003107int
3108main ()
3109{
3110
3111 ;
3112 return 0;
3113}
3114_ACEOF
3115if ac_fn_c_try_compile "$LINENO"; then :
3116
3117else
3118 ac_c_werror_flag=$ac_save_c_werror_flag
3119 CFLAGS="-g"
3120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3121/* end confdefs.h. */
3122
3123int
3124main ()
3125{
3126
3127 ;
3128 return 0;
3129}
3130_ACEOF
3131if ac_fn_c_try_compile "$LINENO"; then :
3132 ac_cv_prog_cc_g=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003133fi
jfigusc7e66e32013-05-08 11:32:55 -04003134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003135fi
jfigusc7e66e32013-05-08 11:32:55 -04003136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3137fi
3138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3139 ac_c_werror_flag=$ac_save_c_werror_flag
3140fi
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3142$as_echo "$ac_cv_prog_cc_g" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003143if test "$ac_test_CFLAGS" = set; then
3144 CFLAGS=$ac_save_CFLAGS
3145elif test $ac_cv_prog_cc_g = yes; then
3146 if test "$GCC" = yes; then
3147 CFLAGS="-g -O2"
3148 else
3149 CFLAGS="-g"
3150 fi
3151else
3152 if test "$GCC" = yes; then
3153 CFLAGS="-O2"
3154 else
3155 CFLAGS=
3156 fi
3157fi
jfigusc7e66e32013-05-08 11:32:55 -04003158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3159$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3160if ${ac_cv_prog_cc_c89+:} false; then :
3161 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003162else
jfigusc7e66e32013-05-08 11:32:55 -04003163 ac_cv_prog_cc_c89=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003164ac_save_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04003165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003166/* end confdefs.h. */
3167#include <stdarg.h>
3168#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -04003169struct stat;
Cullen Jennings235513a2005-09-21 22:51:36 +00003170/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3171struct buf { int x; };
3172FILE * (*rcsopen) (struct buf *, struct stat *, int);
3173static char *e (p, i)
3174 char **p;
3175 int i;
3176{
3177 return p[i];
3178}
3179static char *f (char * (*g) (char **, int), char **p, ...)
3180{
3181 char *s;
3182 va_list v;
3183 va_start (v,p);
3184 s = g (p, va_arg (v,int));
3185 va_end (v);
3186 return s;
3187}
David McGrewfec49dd2005-09-23 19:34:11 +00003188
3189/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3190 function prototypes and stuff, but not '\xHH' hex character constants.
3191 These don't provoke an error unfortunately, instead are silently treated
jfigusc7e66e32013-05-08 11:32:55 -04003192 as 'x'. The following induces an error, until -std is added to get
David McGrewfec49dd2005-09-23 19:34:11 +00003193 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3194 array size at least. It's necessary to write '\x00'==0 to get something
jfigusc7e66e32013-05-08 11:32:55 -04003195 that's true only with -std. */
David McGrewfec49dd2005-09-23 19:34:11 +00003196int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3197
jfigusc7e66e32013-05-08 11:32:55 -04003198/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3199 inside strings and character constants. */
3200#define FOO(x) 'x'
3201int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3202
Cullen Jennings235513a2005-09-21 22:51:36 +00003203int test (int i, double x);
3204struct s1 {int (*f) (int a);};
3205struct s2 {int (*f) (double a);};
3206int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3207int argc;
3208char **argv;
3209int
3210main ()
3211{
3212return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3213 ;
3214 return 0;
3215}
3216_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003217for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3218 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Cullen Jennings235513a2005-09-21 22:51:36 +00003219do
3220 CC="$ac_save_CC $ac_arg"
jfigusc7e66e32013-05-08 11:32:55 -04003221 if ac_fn_c_try_compile "$LINENO"; then :
3222 ac_cv_prog_cc_c89=$ac_arg
Cullen Jennings235513a2005-09-21 22:51:36 +00003223fi
jfigusc7e66e32013-05-08 11:32:55 -04003224rm -f core conftest.err conftest.$ac_objext
3225 test "x$ac_cv_prog_cc_c89" != "xno" && break
Cullen Jennings235513a2005-09-21 22:51:36 +00003226done
jfigusc7e66e32013-05-08 11:32:55 -04003227rm -f conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003228CC=$ac_save_CC
3229
3230fi
jfigusc7e66e32013-05-08 11:32:55 -04003231# AC_CACHE_VAL
3232case "x$ac_cv_prog_cc_c89" in
3233 x)
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3235$as_echo "none needed" >&6; } ;;
3236 xno)
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3238$as_echo "unsupported" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003239 *)
jfigusc7e66e32013-05-08 11:32:55 -04003240 CC="$CC $ac_cv_prog_cc_c89"
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3242$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003243esac
jfigusc7e66e32013-05-08 11:32:55 -04003244if test "x$ac_cv_prog_cc_c89" != xno; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003245
3246fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003247
Cullen Jennings235513a2005-09-21 22:51:36 +00003248ac_ext=c
3249ac_cpp='$CPP $CPPFLAGS'
3250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252ac_compiler_gnu=$ac_cv_c_compiler_gnu
3253
David McGrewb67061f2005-09-28 14:23:06 +00003254ac_aux_dir=
jfigusc7e66e32013-05-08 11:32:55 -04003255for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3256 if test -f "$ac_dir/install-sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003257 ac_aux_dir=$ac_dir
3258 ac_install_sh="$ac_aux_dir/install-sh -c"
3259 break
jfigusc7e66e32013-05-08 11:32:55 -04003260 elif test -f "$ac_dir/install.sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003261 ac_aux_dir=$ac_dir
3262 ac_install_sh="$ac_aux_dir/install.sh -c"
3263 break
jfigusc7e66e32013-05-08 11:32:55 -04003264 elif test -f "$ac_dir/shtool"; then
David McGrewb67061f2005-09-28 14:23:06 +00003265 ac_aux_dir=$ac_dir
3266 ac_install_sh="$ac_aux_dir/shtool install -c"
3267 break
3268 fi
3269done
3270if test -z "$ac_aux_dir"; then
jfigusc7e66e32013-05-08 11:32:55 -04003271 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
David McGrewb67061f2005-09-28 14:23:06 +00003272fi
jfigusc7e66e32013-05-08 11:32:55 -04003273
3274# These three variables are undocumented and unsupported,
3275# and are intended to be withdrawn in a future Autoconf release.
3276# They can cause serious problems if a builder's source tree is in a directory
3277# whose full name contains unusual characters.
3278ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3279ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3280ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3281
Cullen Jennings235513a2005-09-21 22:51:36 +00003282
David McGrewb67061f2005-09-28 14:23:06 +00003283# Find a good install program. We prefer a C program (faster),
3284# so one script is as good as another. But avoid the broken or
3285# incompatible versions:
3286# SysV /etc/install, /usr/sbin/install
3287# SunOS /usr/etc/install
3288# IRIX /sbin/install
3289# AIX /bin/install
3290# AmigaOS /C/install, which installs bootblocks on floppy discs
3291# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3292# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3293# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3294# OS/2's system install, which has a completely different semantic
3295# ./install, which can be erroneously created by make from ./install.sh.
jfigusc7e66e32013-05-08 11:32:55 -04003296# Reject install programs that cannot install multiple files.
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3298$as_echo_n "checking for a BSD-compatible install... " >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00003299if test -z "$INSTALL"; then
jfigusc7e66e32013-05-08 11:32:55 -04003300if ${ac_cv_path_install+:} false; then :
3301 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003302else
David McGrewb67061f2005-09-28 14:23:06 +00003303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304for as_dir in $PATH
3305do
3306 IFS=$as_save_IFS
3307 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04003308 # Account for people who put trailing slashes in PATH elements.
3309case $as_dir/ in #((
3310 ./ | .// | /[cC]/* | \
David McGrewb67061f2005-09-28 14:23:06 +00003311 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jfigusc7e66e32013-05-08 11:32:55 -04003312 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
David McGrewb67061f2005-09-28 14:23:06 +00003313 /usr/ucb/* ) ;;
3314 *)
3315 # OSF1 and SCO ODT 3.0 have their own names for install.
3316 # Don't use installbsd from OSF since it installs stuff as root
3317 # by default.
3318 for ac_prog in ginstall scoinst install; do
3319 for ac_exec_ext in '' $ac_executable_extensions; do
jfigusc7e66e32013-05-08 11:32:55 -04003320 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
David McGrewb67061f2005-09-28 14:23:06 +00003321 if test $ac_prog = install &&
3322 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3323 # AIX install. It has an incompatible calling convention.
3324 :
3325 elif test $ac_prog = install &&
3326 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3327 # program-specific install script used by HP pwplus--don't use.
3328 :
3329 else
jfigusc7e66e32013-05-08 11:32:55 -04003330 rm -rf conftest.one conftest.two conftest.dir
3331 echo one > conftest.one
3332 echo two > conftest.two
3333 mkdir conftest.dir
3334 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3335 test -s conftest.one && test -s conftest.two &&
3336 test -s conftest.dir/conftest.one &&
3337 test -s conftest.dir/conftest.two
3338 then
3339 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3340 break 3
3341 fi
David McGrewb67061f2005-09-28 14:23:06 +00003342 fi
3343 fi
3344 done
3345 done
3346 ;;
3347esac
Cullen Jennings235513a2005-09-21 22:51:36 +00003348
jfigusc7e66e32013-05-08 11:32:55 -04003349 done
3350IFS=$as_save_IFS
3351
3352rm -rf conftest.one conftest.two conftest.dir
Cullen Jennings235513a2005-09-21 22:51:36 +00003353
3354fi
David McGrewb67061f2005-09-28 14:23:06 +00003355 if test "${ac_cv_path_install+set}" = set; then
3356 INSTALL=$ac_cv_path_install
3357 else
jfigusc7e66e32013-05-08 11:32:55 -04003358 # As a last resort, use the slow shell script. Don't cache a
3359 # value for INSTALL within a source directory, because that will
David McGrewb67061f2005-09-28 14:23:06 +00003360 # break other packages using the cache if that directory is
jfigusc7e66e32013-05-08 11:32:55 -04003361 # removed, or if the value is a relative name.
David McGrewb67061f2005-09-28 14:23:06 +00003362 INSTALL=$ac_install_sh
3363 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003364fi
jfigusc7e66e32013-05-08 11:32:55 -04003365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3366$as_echo "$INSTALL" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003367
David McGrewb67061f2005-09-28 14:23:06 +00003368# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3369# It thinks the first close brace ends the variable substitution.
3370test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00003371
David McGrewb67061f2005-09-28 14:23:06 +00003372test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3373
3374test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00003375
3376
3377
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003378ac_ext=c
3379ac_cpp='$CPP $CPPFLAGS'
3380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3382ac_compiler_gnu=$ac_cv_c_compiler_gnu
jfigusc7e66e32013-05-08 11:32:55 -04003383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3384$as_echo_n "checking how to run the C preprocessor... " >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003385# On Suns, sometimes $CPP names a directory.
3386if test -n "$CPP" && test -d "$CPP"; then
3387 CPP=
3388fi
3389if test -z "$CPP"; then
jfigusc7e66e32013-05-08 11:32:55 -04003390 if ${ac_cv_prog_CPP+:} false; then :
3391 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003392else
3393 # Double quotes because CPP needs to be expanded
3394 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3395 do
3396 ac_preproc_ok=false
3397for ac_c_preproc_warn_flag in '' yes
3398do
3399 # Use a header file that comes with gcc, so configuring glibc
3400 # with a fresh cross-compiler works.
3401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3402 # <limits.h> exists even on freestanding compilers.
3403 # On the NeXT, cc -E runs the code through the compiler's parser,
3404 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04003405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003406/* end confdefs.h. */
3407#ifdef __STDC__
3408# include <limits.h>
3409#else
3410# include <assert.h>
3411#endif
3412 Syntax error
3413_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003414if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003415
jfigusc7e66e32013-05-08 11:32:55 -04003416else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003417 # Broken: fails on valid input.
3418continue
3419fi
jfigusc7e66e32013-05-08 11:32:55 -04003420rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003421
jfigusc7e66e32013-05-08 11:32:55 -04003422 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003423 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04003424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003425/* end confdefs.h. */
3426#include <ac_nonexistent.h>
3427_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003428if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003429 # Broken: success on invalid input.
3430continue
3431else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003432 # Passes both tests.
3433ac_preproc_ok=:
3434break
3435fi
jfigusc7e66e32013-05-08 11:32:55 -04003436rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003437
3438done
3439# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04003440rm -f conftest.i conftest.err conftest.$ac_ext
3441if $ac_preproc_ok; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003442 break
3443fi
3444
3445 done
3446 ac_cv_prog_CPP=$CPP
3447
3448fi
3449 CPP=$ac_cv_prog_CPP
3450else
3451 ac_cv_prog_CPP=$CPP
3452fi
jfigusc7e66e32013-05-08 11:32:55 -04003453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3454$as_echo "$CPP" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003455ac_preproc_ok=false
3456for ac_c_preproc_warn_flag in '' yes
3457do
3458 # Use a header file that comes with gcc, so configuring glibc
3459 # with a fresh cross-compiler works.
3460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3461 # <limits.h> exists even on freestanding compilers.
3462 # On the NeXT, cc -E runs the code through the compiler's parser,
3463 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04003464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003465/* end confdefs.h. */
3466#ifdef __STDC__
3467# include <limits.h>
3468#else
3469# include <assert.h>
3470#endif
3471 Syntax error
3472_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003473if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003474
jfigusc7e66e32013-05-08 11:32:55 -04003475else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003476 # Broken: fails on valid input.
3477continue
3478fi
jfigusc7e66e32013-05-08 11:32:55 -04003479rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003480
jfigusc7e66e32013-05-08 11:32:55 -04003481 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003482 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04003483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003484/* end confdefs.h. */
3485#include <ac_nonexistent.h>
3486_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003487if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003488 # Broken: success on invalid input.
3489continue
3490else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003491 # Passes both tests.
3492ac_preproc_ok=:
3493break
3494fi
jfigusc7e66e32013-05-08 11:32:55 -04003495rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003496
3497done
3498# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04003499rm -f conftest.i conftest.err conftest.$ac_ext
3500if $ac_preproc_ok; then :
3501
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003502else
jfigusc7e66e32013-05-08 11:32:55 -04003503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3506See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003507fi
3508
3509ac_ext=c
3510ac_cpp='$CPP $CPPFLAGS'
3511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514
3515
jfigusc7e66e32013-05-08 11:32:55 -04003516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3517$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3518if ${ac_cv_path_GREP+:} false; then :
3519 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003520else
jfigusc7e66e32013-05-08 11:32:55 -04003521 if test -z "$GREP"; then
3522 ac_path_GREP_found=false
3523 # Loop through the user's path and test for each of PROGNAME-LIST
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3526do
3527 IFS=$as_save_IFS
3528 test -z "$as_dir" && as_dir=.
3529 for ac_prog in grep ggrep; do
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3532 as_fn_executable_p "$ac_path_GREP" || continue
3533# Check for GNU ac_path_GREP and select it if it is found.
3534 # Check for GNU $ac_path_GREP
3535case `"$ac_path_GREP" --version 2>&1` in
3536*GNU*)
3537 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3538*)
3539 ac_count=0
3540 $as_echo_n 0123456789 >"conftest.in"
3541 while :
3542 do
3543 cat "conftest.in" "conftest.in" >"conftest.tmp"
3544 mv "conftest.tmp" "conftest.in"
3545 cp "conftest.in" "conftest.nl"
3546 $as_echo 'GREP' >> "conftest.nl"
3547 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3548 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3549 as_fn_arith $ac_count + 1 && ac_count=$as_val
3550 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3551 # Best one so far, save it but keep looking for a better one
3552 ac_cv_path_GREP="$ac_path_GREP"
3553 ac_path_GREP_max=$ac_count
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003554 fi
jfigusc7e66e32013-05-08 11:32:55 -04003555 # 10*(2^10) chars as input seems more than enough
3556 test $ac_count -gt 10 && break
3557 done
3558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3559esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003560
jfigusc7e66e32013-05-08 11:32:55 -04003561 $ac_path_GREP_found && break 3
3562 done
3563 done
3564 done
3565IFS=$as_save_IFS
3566 if test -z "$ac_cv_path_GREP"; then
3567 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3568 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003569else
jfigusc7e66e32013-05-08 11:32:55 -04003570 ac_cv_path_GREP=$GREP
3571fi
3572
3573fi
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3575$as_echo "$ac_cv_path_GREP" >&6; }
3576 GREP="$ac_cv_path_GREP"
3577
3578
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3580$as_echo_n "checking for egrep... " >&6; }
3581if ${ac_cv_path_EGREP+:} false; then :
3582 $as_echo_n "(cached) " >&6
3583else
3584 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3585 then ac_cv_path_EGREP="$GREP -E"
3586 else
3587 if test -z "$EGREP"; then
3588 ac_path_EGREP_found=false
3589 # Loop through the user's path and test for each of PROGNAME-LIST
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3592do
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_prog in egrep; do
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3598 as_fn_executable_p "$ac_path_EGREP" || continue
3599# Check for GNU ac_path_EGREP and select it if it is found.
3600 # Check for GNU $ac_path_EGREP
3601case `"$ac_path_EGREP" --version 2>&1` in
3602*GNU*)
3603 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3604*)
3605 ac_count=0
3606 $as_echo_n 0123456789 >"conftest.in"
3607 while :
3608 do
3609 cat "conftest.in" "conftest.in" >"conftest.tmp"
3610 mv "conftest.tmp" "conftest.in"
3611 cp "conftest.in" "conftest.nl"
3612 $as_echo 'EGREP' >> "conftest.nl"
3613 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3615 as_fn_arith $ac_count + 1 && ac_count=$as_val
3616 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3617 # Best one so far, save it but keep looking for a better one
3618 ac_cv_path_EGREP="$ac_path_EGREP"
3619 ac_path_EGREP_max=$ac_count
3620 fi
3621 # 10*(2^10) chars as input seems more than enough
3622 test $ac_count -gt 10 && break
3623 done
3624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3625esac
3626
3627 $ac_path_EGREP_found && break 3
3628 done
3629 done
3630 done
3631IFS=$as_save_IFS
3632 if test -z "$ac_cv_path_EGREP"; then
3633 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3634 fi
3635else
3636 ac_cv_path_EGREP=$EGREP
3637fi
3638
3639 fi
3640fi
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3642$as_echo "$ac_cv_path_EGREP" >&6; }
3643 EGREP="$ac_cv_path_EGREP"
3644
3645
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3647$as_echo_n "checking for ANSI C header files... " >&6; }
3648if ${ac_cv_header_stdc+:} false; then :
3649 $as_echo_n "(cached) " >&6
3650else
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003652/* end confdefs.h. */
3653#include <stdlib.h>
3654#include <stdarg.h>
3655#include <string.h>
3656#include <float.h>
3657
3658int
3659main ()
3660{
3661
3662 ;
3663 return 0;
3664}
3665_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003666if ac_fn_c_try_compile "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003667 ac_cv_header_stdc=yes
3668else
jfigusc7e66e32013-05-08 11:32:55 -04003669 ac_cv_header_stdc=no
jfigusa14b5a02013-03-29 12:24:12 -04003670fi
jfigusc7e66e32013-05-08 11:32:55 -04003671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003672
3673if test $ac_cv_header_stdc = yes; then
3674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003676/* end confdefs.h. */
3677#include <string.h>
3678
3679_ACEOF
3680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003681 $EGREP "memchr" >/dev/null 2>&1; then :
3682
jfigusa14b5a02013-03-29 12:24:12 -04003683else
3684 ac_cv_header_stdc=no
3685fi
3686rm -f conftest*
3687
3688fi
3689
3690if test $ac_cv_header_stdc = yes; then
3691 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003693/* end confdefs.h. */
3694#include <stdlib.h>
3695
3696_ACEOF
3697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003698 $EGREP "free" >/dev/null 2>&1; then :
3699
jfigusa14b5a02013-03-29 12:24:12 -04003700else
3701 ac_cv_header_stdc=no
3702fi
3703rm -f conftest*
3704
3705fi
3706
3707if test $ac_cv_header_stdc = yes; then
3708 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jfigusc7e66e32013-05-08 11:32:55 -04003709 if test "$cross_compiling" = yes; then :
jfigusa14b5a02013-03-29 12:24:12 -04003710 :
3711else
jfigusc7e66e32013-05-08 11:32:55 -04003712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003713/* end confdefs.h. */
3714#include <ctype.h>
jfigusc7e66e32013-05-08 11:32:55 -04003715#include <stdlib.h>
jfigusa14b5a02013-03-29 12:24:12 -04003716#if ((' ' & 0x0FF) == 0x020)
3717# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3718# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3719#else
3720# define ISLOWER(c) \
3721 (('a' <= (c) && (c) <= 'i') \
3722 || ('j' <= (c) && (c) <= 'r') \
3723 || ('s' <= (c) && (c) <= 'z'))
3724# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3725#endif
3726
3727#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3728int
3729main ()
3730{
3731 int i;
3732 for (i = 0; i < 256; i++)
3733 if (XOR (islower (i), ISLOWER (i))
3734 || toupper (i) != TOUPPER (i))
jfigusc7e66e32013-05-08 11:32:55 -04003735 return 2;
3736 return 0;
jfigusa14b5a02013-03-29 12:24:12 -04003737}
3738_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003739if ac_fn_c_try_run "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003740
jfigusc7e66e32013-05-08 11:32:55 -04003741else
3742 ac_cv_header_stdc=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003743fi
jfigusc7e66e32013-05-08 11:32:55 -04003744rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3745 conftest.$ac_objext conftest.beam conftest.$ac_ext
3746fi
3747
jfigusa14b5a02013-03-29 12:24:12 -04003748fi
3749fi
jfigusc7e66e32013-05-08 11:32:55 -04003750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3751$as_echo "$ac_cv_header_stdc" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04003752if test $ac_cv_header_stdc = yes; then
3753
jfigusc7e66e32013-05-08 11:32:55 -04003754$as_echo "#define STDC_HEADERS 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04003755
3756fi
3757
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003758# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003759for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3760 inttypes.h stdint.h unistd.h
jfigusc7e66e32013-05-08 11:32:55 -04003761do :
3762 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3763ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3764"
3765if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003766 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003767#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003768_ACEOF
3769
3770fi
3771
3772done
3773
3774
jfigusc7e66e32013-05-08 11:32:55 -04003775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3776$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3777if ${ac_cv_c_bigendian+:} false; then :
3778 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003779else
jfigusc7e66e32013-05-08 11:32:55 -04003780 ac_cv_c_bigendian=unknown
3781 # See if we're dealing with a universal compiler.
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003783/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003784#ifndef __APPLE_CC__
3785 not a universal capable compiler
3786 #endif
3787 typedef int dummy;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003788
jfigusc7e66e32013-05-08 11:32:55 -04003789_ACEOF
3790if ac_fn_c_try_compile "$LINENO"; then :
3791
3792 # Check for potential -arch flags. It is not universal unless
3793 # there are at least two -arch flags with different values.
3794 ac_arch=
3795 ac_prev=
3796 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3797 if test -n "$ac_prev"; then
3798 case $ac_word in
3799 i?86 | x86_64 | ppc | ppc64)
3800 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3801 ac_arch=$ac_word
3802 else
3803 ac_cv_c_bigendian=universal
3804 break
3805 fi
3806 ;;
3807 esac
3808 ac_prev=
3809 elif test "x$ac_word" = "x-arch"; then
3810 ac_prev=arch
3811 fi
3812 done
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003813fi
jfigusc7e66e32013-05-08 11:32:55 -04003814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 if test $ac_cv_c_bigendian = unknown; then
3816 # See if sys/param.h defines the BYTE_ORDER macro.
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003818/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003819#include <sys/types.h>
3820 #include <sys/param.h>
3821
3822int
3823main ()
3824{
3825#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3826 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3827 && LITTLE_ENDIAN)
3828 bogus endian macros
3829 #endif
3830
3831 ;
3832 return 0;
3833}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003834_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003835if ac_fn_c_try_compile "$LINENO"; then :
3836 # It does; now see whether it defined to BIG_ENDIAN or not.
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003838/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003839#include <sys/types.h>
3840 #include <sys/param.h>
3841
3842int
3843main ()
3844{
3845#if BYTE_ORDER != BIG_ENDIAN
3846 not big endian
3847 #endif
3848
3849 ;
3850 return 0;
3851}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003852_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003853if ac_fn_c_try_compile "$LINENO"; then :
3854 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003855else
jfigusc7e66e32013-05-08 11:32:55 -04003856 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003857fi
jfigusc7e66e32013-05-08 11:32:55 -04003858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859fi
3860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861 fi
3862 if test $ac_cv_c_bigendian = unknown; then
3863 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003865/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003866#include <limits.h>
3867
3868int
3869main ()
3870{
3871#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3872 bogus endian macros
3873 #endif
3874
3875 ;
3876 return 0;
3877}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003878_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003879if ac_fn_c_try_compile "$LINENO"; then :
3880 # It does; now see whether it defined to _BIG_ENDIAN or not.
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003882/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003883#include <limits.h>
3884
3885int
3886main ()
3887{
3888#ifndef _BIG_ENDIAN
3889 not big endian
3890 #endif
3891
3892 ;
3893 return 0;
3894}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003895_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003896if ac_fn_c_try_compile "$LINENO"; then :
3897 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003898else
jfigusc7e66e32013-05-08 11:32:55 -04003899 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003900fi
jfigusc7e66e32013-05-08 11:32:55 -04003901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902fi
3903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904 fi
3905 if test $ac_cv_c_bigendian = unknown; then
3906 # Compile a test program.
3907 if test "$cross_compiling" = yes; then :
3908 # Try to guess by grepping values from an object file.
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003910/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003911short int ascii_mm[] =
3912 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3913 short int ascii_ii[] =
3914 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3915 int use_ascii (int i) {
3916 return ascii_mm[i] + ascii_ii[i];
3917 }
3918 short int ebcdic_ii[] =
3919 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3920 short int ebcdic_mm[] =
3921 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3922 int use_ebcdic (int i) {
3923 return ebcdic_mm[i] + ebcdic_ii[i];
3924 }
3925 extern int foo;
3926
3927int
3928main ()
3929{
3930return use_ascii (foo) == use_ebcdic (foo);
3931 ;
3932 return 0;
3933}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003934_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003935if ac_fn_c_try_compile "$LINENO"; then :
3936 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3937 ac_cv_c_bigendian=yes
3938 fi
3939 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3940 if test "$ac_cv_c_bigendian" = unknown; then
3941 ac_cv_c_bigendian=no
3942 else
3943 # finding both strings is unlikely to happen, but who knows?
3944 ac_cv_c_bigendian=unknown
3945 fi
3946 fi
3947fi
3948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003949else
jfigusc7e66e32013-05-08 11:32:55 -04003950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003951/* end confdefs.h. */
3952$ac_includes_default
3953int
3954main ()
3955{
jfigusc7e66e32013-05-08 11:32:55 -04003956
3957 /* Are we little or big endian? From Harbison&Steele. */
3958 union
3959 {
3960 long int l;
3961 char c[sizeof (long int)];
3962 } u;
3963 u.l = 1;
3964 return u.c[sizeof (long int) - 1] == 1;
3965
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003966 ;
3967 return 0;
3968}
3969_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003970if ac_fn_c_try_run "$LINENO"; then :
3971 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003972else
jfigusc7e66e32013-05-08 11:32:55 -04003973 ac_cv_c_bigendian=yes
3974fi
3975rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3976 conftest.$ac_objext conftest.beam conftest.$ac_ext
3977fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003978
jfigusc7e66e32013-05-08 11:32:55 -04003979 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003980fi
jfigusc7e66e32013-05-08 11:32:55 -04003981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3982$as_echo "$ac_cv_c_bigendian" >&6; }
3983 case $ac_cv_c_bigendian in #(
3984 yes)
3985 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
3986;; #(
3987 no)
3988 ;; #(
3989 universal)
3990
3991$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3992
3993 ;; #(
3994 *)
3995 as_fn_error $? "unknown endianness
3996 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3997 esac
3998
3999
4000# Make sure we can run config.sub.
4001$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4002 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4003
4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4005$as_echo_n "checking build system type... " >&6; }
4006if ${ac_cv_build+:} false; then :
4007 $as_echo_n "(cached) " >&6
4008else
4009 ac_build_alias=$build_alias
4010test "x$ac_build_alias" = x &&
4011 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4012test "x$ac_build_alias" = x &&
4013 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4014ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4015 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4016
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004017fi
jfigusc7e66e32013-05-08 11:32:55 -04004018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4019$as_echo "$ac_cv_build" >&6; }
4020case $ac_cv_build in
4021*-*-*) ;;
4022*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4023esac
4024build=$ac_cv_build
4025ac_save_IFS=$IFS; IFS='-'
4026set x $ac_cv_build
4027shift
4028build_cpu=$1
4029build_vendor=$2
4030shift; shift
4031# Remember, the first character of IFS is used to create $*,
4032# except with old shells:
4033build_os=$*
4034IFS=$ac_save_IFS
4035case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4036
4037
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4039$as_echo_n "checking host system type... " >&6; }
4040if ${ac_cv_host+:} false; then :
4041 $as_echo_n "(cached) " >&6
4042else
4043 if test "x$host_alias" = x; then
4044 ac_cv_host=$ac_cv_build
4045else
4046 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4047 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4048fi
4049
4050fi
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4052$as_echo "$ac_cv_host" >&6; }
4053case $ac_cv_host in
4054*-*-*) ;;
4055*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4056esac
4057host=$ac_cv_host
4058ac_save_IFS=$IFS; IFS='-'
4059set x $ac_cv_host
4060shift
4061host_cpu=$1
4062host_vendor=$2
4063shift; shift
4064# Remember, the first character of IFS is used to create $*,
4065# except with old shells:
4066host_os=$*
4067IFS=$ac_save_IFS
4068case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4069
4070
4071
4072case $host_cpu in
4073 i*86 | x86_64 )
4074
4075$as_echo "#define CPU_CISC 1" >>confdefs.h
4076
4077
4078$as_echo "#define HAVE_X86 1" >>confdefs.h
4079;;
4080 * )
4081 # CPU_RISC is only supported for big endian machines.
4082 if test "$ac_cv_c_bigendian" = "yes"; then
4083
4084$as_echo "#define CPU_RISC 1" >>confdefs.h
4085
4086 else
4087 $as_echo "#define CPU_CISC 1" >>confdefs.h
4088
4089 fi
4090 ;;
4091esac
4092
4093case $host_os in
4094 *cygwin*|*mingw* )
4095 EXE=.exe
4096 HOST_IS_WINDOWS=yes
4097 ;;
4098 * )
4099 EXE=""
4100 ;;
4101esac
4102 # define executable suffix; this is needed for `make clean'
4103
4104
4105# Check whether --enable-kernel-linux was given.
4106if test "${enable_kernel_linux+set}" = set; then :
4107 enableval=$enable_kernel_linux;
4108else
4109 enable_kernel_linux=no
4110fi
4111
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build for Linux kernel context" >&5
4113$as_echo_n "checking whether to build for Linux kernel context... " >&6; }
4114if test "$enable_kernel_linux" = "yes"; then
4115
4116$as_echo "#define SRTP_KERNEL 1" >>confdefs.h
4117
4118
4119$as_echo "#define SRTP_KERNEL_LINUX 1" >>confdefs.h
4120
4121fi
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_kernel_linux" >&5
4123$as_echo "$enable_kernel_linux" >&6; }
4124
4125if test "$cross_compiling" != yes -a "$HOST_IS_WINDOWS" != yes; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
4127$as_echo_n "checking for /dev/urandom... " >&6; }
4128if ${ac_cv_file__dev_urandom+:} false; then :
4129 $as_echo_n "(cached) " >&6
4130else
4131 test "$cross_compiling" = yes &&
4132 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4133if test -r "/dev/urandom"; then
4134 ac_cv_file__dev_urandom=yes
4135else
4136 ac_cv_file__dev_urandom=no
4137fi
4138fi
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
4140$as_echo "$ac_cv_file__dev_urandom" >&6; }
4141if test "x$ac_cv_file__dev_urandom" = xyes; then :
4142 DEV_URANDOM=/dev/urandom
4143else
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
4145$as_echo_n "checking for /dev/random... " >&6; }
4146if ${ac_cv_file__dev_random+:} false; then :
4147 $as_echo_n "(cached) " >&6
4148else
4149 test "$cross_compiling" = yes &&
4150 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4151if test -r "/dev/random"; then
4152 ac_cv_file__dev_random=yes
4153else
4154 ac_cv_file__dev_random=no
4155fi
4156fi
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
4158$as_echo "$ac_cv_file__dev_random" >&6; }
4159if test "x$ac_cv_file__dev_random" = xyes; then :
4160 DEV_URANDOM=/dev/random
4161fi
4162
4163fi
4164
4165fi
4166
4167
4168
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4170$as_echo_n "checking for ANSI C header files... " >&6; }
4171if ${ac_cv_header_stdc+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173else
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175/* end confdefs.h. */
4176#include <stdlib.h>
4177#include <stdarg.h>
4178#include <string.h>
4179#include <float.h>
4180
4181int
4182main ()
4183{
4184
4185 ;
4186 return 0;
4187}
4188_ACEOF
4189if ac_fn_c_try_compile "$LINENO"; then :
4190 ac_cv_header_stdc=yes
4191else
4192 ac_cv_header_stdc=no
4193fi
4194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195
4196if test $ac_cv_header_stdc = yes; then
4197 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199/* end confdefs.h. */
4200#include <string.h>
4201
4202_ACEOF
4203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4204 $EGREP "memchr" >/dev/null 2>&1; then :
4205
4206else
4207 ac_cv_header_stdc=no
4208fi
4209rm -f conftest*
4210
4211fi
4212
4213if test $ac_cv_header_stdc = yes; then
4214 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216/* end confdefs.h. */
4217#include <stdlib.h>
4218
4219_ACEOF
4220if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4221 $EGREP "free" >/dev/null 2>&1; then :
4222
4223else
4224 ac_cv_header_stdc=no
4225fi
4226rm -f conftest*
4227
4228fi
4229
4230if test $ac_cv_header_stdc = yes; then
4231 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4232 if test "$cross_compiling" = yes; then :
4233 :
4234else
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236/* end confdefs.h. */
4237#include <ctype.h>
4238#include <stdlib.h>
4239#if ((' ' & 0x0FF) == 0x020)
4240# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4241# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4242#else
4243# define ISLOWER(c) \
4244 (('a' <= (c) && (c) <= 'i') \
4245 || ('j' <= (c) && (c) <= 'r') \
4246 || ('s' <= (c) && (c) <= 'z'))
4247# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4248#endif
4249
4250#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4251int
4252main ()
4253{
4254 int i;
4255 for (i = 0; i < 256; i++)
4256 if (XOR (islower (i), ISLOWER (i))
4257 || toupper (i) != TOUPPER (i))
4258 return 2;
4259 return 0;
4260}
4261_ACEOF
4262if ac_fn_c_try_run "$LINENO"; then :
4263
4264else
4265 ac_cv_header_stdc=no
4266fi
4267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4268 conftest.$ac_objext conftest.beam conftest.$ac_ext
4269fi
4270
4271fi
4272fi
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4274$as_echo "$ac_cv_header_stdc" >&6; }
4275if test $ac_cv_header_stdc = yes; then
4276
4277$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4278
4279fi
4280
4281for ac_header in stdlib.h
4282do :
4283 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4284if test "x$ac_cv_header_stdlib_h" = xyes; then :
4285 cat >>confdefs.h <<_ACEOF
4286#define HAVE_STDLIB_H 1
4287_ACEOF
4288
4289fi
4290
4291done
4292
4293for ac_header in unistd.h
4294do :
4295 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4296if test "x$ac_cv_header_unistd_h" = xyes; then :
4297 cat >>confdefs.h <<_ACEOF
4298#define HAVE_UNISTD_H 1
4299_ACEOF
4300
4301fi
4302
4303done
4304
4305for ac_header in byteswap.h
4306do :
4307 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
4308if test "x$ac_cv_header_byteswap_h" = xyes; then :
4309 cat >>confdefs.h <<_ACEOF
4310#define HAVE_BYTESWAP_H 1
4311_ACEOF
4312
4313fi
4314
4315done
4316
4317for ac_header in stdint.h
4318do :
4319 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4320if test "x$ac_cv_header_stdint_h" = xyes; then :
4321 cat >>confdefs.h <<_ACEOF
4322#define HAVE_STDINT_H 1
4323_ACEOF
4324
4325fi
4326
4327done
4328
4329for ac_header in sys/uio.h
4330do :
4331 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
4332if test "x$ac_cv_header_sys_uio_h" = xyes; then :
4333 cat >>confdefs.h <<_ACEOF
4334#define HAVE_SYS_UIO_H 1
4335_ACEOF
4336
4337fi
4338
4339done
4340
4341for ac_header in inttypes.h
4342do :
4343 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
4344if test "x$ac_cv_header_inttypes_h" = xyes; then :
4345 cat >>confdefs.h <<_ACEOF
4346#define HAVE_INTTYPES_H 1
4347_ACEOF
4348
4349fi
4350
4351done
4352
4353for ac_header in sys/types.h
4354do :
4355 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4356if test "x$ac_cv_header_sys_types_h" = xyes; then :
4357 cat >>confdefs.h <<_ACEOF
4358#define HAVE_SYS_TYPES_H 1
4359_ACEOF
4360
4361fi
4362
4363done
4364
4365for ac_header in machine/types.h
4366do :
4367 ac_fn_c_check_header_mongrel "$LINENO" "machine/types.h" "ac_cv_header_machine_types_h" "$ac_includes_default"
4368if test "x$ac_cv_header_machine_types_h" = xyes; then :
4369 cat >>confdefs.h <<_ACEOF
4370#define HAVE_MACHINE_TYPES_H 1
4371_ACEOF
4372
4373fi
4374
4375done
4376
4377for ac_header in sys/int_types.h
4378do :
4379 ac_fn_c_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default"
4380if test "x$ac_cv_header_sys_int_types_h" = xyes; then :
4381 cat >>confdefs.h <<_ACEOF
4382#define HAVE_SYS_INT_TYPES_H 1
4383_ACEOF
4384
4385fi
4386
4387done
4388
4389
4390for ac_header in sys/socket.h netinet/in.h arpa/inet.h
4391do :
4392 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4393ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4394if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4395 cat >>confdefs.h <<_ACEOF
4396#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4397_ACEOF
4398
4399fi
4400
4401done
4402
4403for ac_header in windows.h
4404do :
4405 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
4406if test "x$ac_cv_header_windows_h" = xyes; then :
4407 cat >>confdefs.h <<_ACEOF
4408#define HAVE_WINDOWS_H 1
4409_ACEOF
4410 for ac_header in winsock2.h
4411do :
4412 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4413if test "x$ac_cv_header_winsock2_h" = xyes; then :
4414 cat >>confdefs.h <<_ACEOF
4415#define HAVE_WINSOCK2_H 1
4416_ACEOF
4417
4418fi
4419
4420done
4421
4422fi
4423
4424done
4425
4426
4427for ac_header in syslog.h
4428do :
4429 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
4430if test "x$ac_cv_header_syslog_h" = xyes; then :
4431 cat >>confdefs.h <<_ACEOF
4432#define HAVE_SYSLOG_H 1
4433_ACEOF
4434
4435fi
4436
4437done
4438
4439
4440ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
4441if test "x$ac_cv_type_int8_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004442
David McGrewfec49dd2005-09-23 19:34:11 +00004443cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004444#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004445_ACEOF
4446
4447
4448fi
jfigusc7e66e32013-05-08 11:32:55 -04004449ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4450if test "x$ac_cv_type_uint8_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004451
4452cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004453#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004454_ACEOF
4455
4456
4457fi
jfigusc7e66e32013-05-08 11:32:55 -04004458ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4459if test "x$ac_cv_type_int16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004460
4461cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004462#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004463_ACEOF
4464
4465
4466fi
jfigusc7e66e32013-05-08 11:32:55 -04004467ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4468if test "x$ac_cv_type_uint16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004469
4470cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004471#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004472_ACEOF
4473
4474
4475fi
jfigusc7e66e32013-05-08 11:32:55 -04004476ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
4477if test "x$ac_cv_type_int32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004478
4479cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004480#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004481_ACEOF
4482
4483
4484fi
jfigusc7e66e32013-05-08 11:32:55 -04004485ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4486if test "x$ac_cv_type_uint32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004487
4488cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004489#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004490_ACEOF
4491
4492
4493fi
jfigusc7e66e32013-05-08 11:32:55 -04004494ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
4495if test "x$ac_cv_type_uint64_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004496
4497cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004498#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004499_ACEOF
4500
4501
4502fi
4503
jfigusc7e66e32013-05-08 11:32:55 -04004504# The cast to long int works around a bug in the HP C Compiler
4505# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4506# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4507# This bug is HP SR number 8606223364.
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4509$as_echo_n "checking size of unsigned long... " >&6; }
4510if ${ac_cv_sizeof_unsigned_long+:} false; then :
4511 $as_echo_n "(cached) " >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004512else
jfigusc7e66e32013-05-08 11:32:55 -04004513 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 +00004514
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004515else
4516 if test "$ac_cv_type_unsigned_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4519as_fn_error 77 "cannot compute sizeof (unsigned long)
4520See \`config.log' for more details" "$LINENO" 5; }
4521 else
4522 ac_cv_sizeof_unsigned_long=0
4523 fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004524fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004525
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004526fi
jfigusc7e66e32013-05-08 11:32:55 -04004527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
4528$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004529
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004530
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004531
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004532cat >>confdefs.h <<_ACEOF
4533#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
4534_ACEOF
4535
David McGrewfec49dd2005-09-23 19:34:11 +00004536
jfigusc7e66e32013-05-08 11:32:55 -04004537# The cast to long int works around a bug in the HP C Compiler
4538# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4539# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4540# This bug is HP SR number 8606223364.
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
4542$as_echo_n "checking size of unsigned long long... " >&6; }
4543if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
4544 $as_echo_n "(cached) " >&6
David McGrewfec49dd2005-09-23 19:34:11 +00004545else
jfigusc7e66e32013-05-08 11:32:55 -04004546 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 +00004547
David McGrewfec49dd2005-09-23 19:34:11 +00004548else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004549 if test "$ac_cv_type_unsigned_long_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4552as_fn_error 77 "cannot compute sizeof (unsigned long long)
4553See \`config.log' for more details" "$LINENO" 5; }
4554 else
4555 ac_cv_sizeof_unsigned_long_long=0
4556 fi
David McGrewfec49dd2005-09-23 19:34:11 +00004557fi
4558
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004559fi
jfigusc7e66e32013-05-08 11:32:55 -04004560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
4561$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004562
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004563
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004564
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004565cat >>confdefs.h <<_ACEOF
4566#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00004567_ACEOF
4568
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004569
Cullen Jennings235513a2005-09-21 22:51:36 +00004570
jfigusc7e66e32013-05-08 11:32:55 -04004571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4572$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4573if ${ac_cv_c_const+:} false; then :
4574 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004575else
jfigusc7e66e32013-05-08 11:32:55 -04004576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004577/* end confdefs.h. */
4578
4579int
4580main ()
4581{
jfigusc7e66e32013-05-08 11:32:55 -04004582
Cullen Jennings235513a2005-09-21 22:51:36 +00004583#ifndef __cplusplus
jfigusc7e66e32013-05-08 11:32:55 -04004584 /* Ultrix mips cc rejects this sort of thing. */
Cullen Jennings235513a2005-09-21 22:51:36 +00004585 typedef int charset[2];
jfigusc7e66e32013-05-08 11:32:55 -04004586 const charset cs = { 0, 0 };
Cullen Jennings235513a2005-09-21 22:51:36 +00004587 /* SunOS 4.1.1 cc rejects this. */
jfigusc7e66e32013-05-08 11:32:55 -04004588 char const *const *pcpcc;
4589 char **ppc;
Cullen Jennings235513a2005-09-21 22:51:36 +00004590 /* NEC SVR4.0.2 mips cc rejects this. */
4591 struct point {int x, y;};
4592 static struct point const zero = {0,0};
4593 /* AIX XL C 1.02.0.0 rejects this.
4594 It does not let you subtract one const X* pointer from another in
4595 an arm of an if-expression whose if-part is not a constant
4596 expression */
4597 const char *g = "string";
jfigusc7e66e32013-05-08 11:32:55 -04004598 pcpcc = &g + (g ? g-g : 0);
Cullen Jennings235513a2005-09-21 22:51:36 +00004599 /* HPUX 7.0 cc rejects these. */
jfigusc7e66e32013-05-08 11:32:55 -04004600 ++pcpcc;
4601 ppc = (char**) pcpcc;
4602 pcpcc = (char const *const *) ppc;
4603 { /* SCO 3.2v4 cc rejects this sort of thing. */
4604 char tx;
4605 char *t = &tx;
Cullen Jennings235513a2005-09-21 22:51:36 +00004606 char const *s = 0 ? (char *) 0 : (char const *) 0;
4607
4608 *t++ = 0;
jfigusc7e66e32013-05-08 11:32:55 -04004609 if (s) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004610 }
4611 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4612 int x[] = {25, 17};
4613 const int *foo = &x[0];
4614 ++foo;
4615 }
4616 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4617 typedef const int *iptr;
4618 iptr p = 0;
4619 ++p;
4620 }
jfigusc7e66e32013-05-08 11:32:55 -04004621 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Cullen Jennings235513a2005-09-21 22:51:36 +00004622 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
jfigusc7e66e32013-05-08 11:32:55 -04004623 struct s { int j; const int *ap[3]; } bx;
4624 struct s *b = &bx; b->j = 5;
Cullen Jennings235513a2005-09-21 22:51:36 +00004625 }
4626 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4627 const int foo = 10;
jfigusc7e66e32013-05-08 11:32:55 -04004628 if (!foo) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004629 }
jfigusc7e66e32013-05-08 11:32:55 -04004630 return !cs[0] && !zero.x;
Cullen Jennings235513a2005-09-21 22:51:36 +00004631#endif
4632
4633 ;
4634 return 0;
4635}
4636_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004637if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004638 ac_cv_c_const=yes
4639else
jfigusc7e66e32013-05-08 11:32:55 -04004640 ac_cv_c_const=no
Cullen Jennings235513a2005-09-21 22:51:36 +00004641fi
jfigusc7e66e32013-05-08 11:32:55 -04004642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004643fi
jfigusc7e66e32013-05-08 11:32:55 -04004644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4645$as_echo "$ac_cv_c_const" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004646if test $ac_cv_c_const = no; then
4647
jfigusc7e66e32013-05-08 11:32:55 -04004648$as_echo "#define const /**/" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004649
4650fi
4651
jfigusc7e66e32013-05-08 11:32:55 -04004652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4653$as_echo_n "checking for inline... " >&6; }
4654if ${ac_cv_c_inline+:} false; then :
4655 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004656else
4657 ac_cv_c_inline=no
4658for ac_kw in inline __inline__ __inline; do
jfigusc7e66e32013-05-08 11:32:55 -04004659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004660/* end confdefs.h. */
4661#ifndef __cplusplus
4662typedef int foo_t;
4663static $ac_kw foo_t static_foo () {return 0; }
4664$ac_kw foo_t foo () {return 0; }
4665#endif
4666
4667_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004668if ac_fn_c_try_compile "$LINENO"; then :
4669 ac_cv_c_inline=$ac_kw
Cullen Jennings235513a2005-09-21 22:51:36 +00004670fi
jfigusc7e66e32013-05-08 11:32:55 -04004671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672 test "$ac_cv_c_inline" != no && break
Cullen Jennings235513a2005-09-21 22:51:36 +00004673done
4674
4675fi
jfigusc7e66e32013-05-08 11:32:55 -04004676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4677$as_echo "$ac_cv_c_inline" >&6; }
David McGrewfec49dd2005-09-23 19:34:11 +00004678
Cullen Jennings235513a2005-09-21 22:51:36 +00004679case $ac_cv_c_inline in
4680 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00004681 *)
4682 case $ac_cv_c_inline in
4683 no) ac_val=;;
4684 *) ac_val=$ac_cv_c_inline;;
4685 esac
4686 cat >>confdefs.h <<_ACEOF
4687#ifndef __cplusplus
4688#define inline $ac_val
4689#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00004690_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00004691 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00004692esac
4693
jfigusc7e66e32013-05-08 11:32:55 -04004694ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4695if test "x$ac_cv_type_size_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004696
Cullen Jennings235513a2005-09-21 22:51:36 +00004697else
4698
4699cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004700#define size_t unsigned int
Cullen Jennings235513a2005-09-21 22:51:36 +00004701_ACEOF
4702
4703fi
4704
4705
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00004706for ac_func in socket inet_aton usleep sigaction
jfigusc7e66e32013-05-08 11:32:55 -04004707do :
4708 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4709ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4710if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004711 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004712#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00004713_ACEOF
4714
4715fi
4716done
4717
4718
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004719if test "x$ac_cv_func_socket" = "xno"; then
jfigusc7e66e32013-05-08 11:32:55 -04004720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4721$as_echo_n "checking for socket in -lsocket... " >&6; }
4722if ${ac_cv_lib_socket_socket+:} false; then :
4723 $as_echo_n "(cached) " >&6
David McGrewb67061f2005-09-28 14:23:06 +00004724else
4725 ac_check_lib_save_LIBS=$LIBS
4726LIBS="-lsocket $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04004727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004728/* end confdefs.h. */
4729
jfigusc7e66e32013-05-08 11:32:55 -04004730/* Override any GCC internal prototype to avoid an error.
4731 Use char because int might match the return type of a GCC
4732 builtin and then its argument prototype would still apply. */
David McGrewb67061f2005-09-28 14:23:06 +00004733#ifdef __cplusplus
4734extern "C"
4735#endif
David McGrewb67061f2005-09-28 14:23:06 +00004736char socket ();
4737int
4738main ()
4739{
jfigusc7e66e32013-05-08 11:32:55 -04004740return socket ();
David McGrewb67061f2005-09-28 14:23:06 +00004741 ;
4742 return 0;
4743}
4744_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004745if ac_fn_c_try_link "$LINENO"; then :
David McGrewb67061f2005-09-28 14:23:06 +00004746 ac_cv_lib_socket_socket=yes
4747else
jfigusc7e66e32013-05-08 11:32:55 -04004748 ac_cv_lib_socket_socket=no
David McGrewb67061f2005-09-28 14:23:06 +00004749fi
jfigusc7e66e32013-05-08 11:32:55 -04004750rm -f core conftest.err conftest.$ac_objext \
4751 conftest$ac_exeext conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004752LIBS=$ac_check_lib_save_LIBS
4753fi
jfigusc7e66e32013-05-08 11:32:55 -04004754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4755$as_echo "$ac_cv_lib_socket_socket" >&6; }
4756if test "x$ac_cv_lib_socket_socket" = xyes; then :
David McGrewb67061f2005-09-28 14:23:06 +00004757 cat >>confdefs.h <<_ACEOF
4758#define HAVE_LIBSOCKET 1
4759_ACEOF
4760
4761 LIBS="-lsocket $LIBS"
4762
4763fi
4764
jfigusc7e66e32013-05-08 11:32:55 -04004765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
4766$as_echo_n "checking for socket in -lwsock32... " >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004767 SAVELIBS="$LIBS"
4768 LIBS="$LIBS -lwsock32"
jfigusc7e66e32013-05-08 11:32:55 -04004769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004770/* end confdefs.h. */
4771
4772#include <winsock2.h>
4773
4774int
4775main ()
4776{
4777
4778socket(0, 0, 0);
4779
4780 ;
4781 return 0;
4782}
4783_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004784if ac_fn_c_try_link "$LINENO"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004785 ac_cv_func_socket=yes
jfigusc7e66e32013-05-08 11:32:55 -04004786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4787$as_echo "yes" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004788else
jfigusc7e66e32013-05-08 11:32:55 -04004789 LIBS="$SAVELIBS"
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791$as_echo "no" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004792fi
jfigusc7e66e32013-05-08 11:32:55 -04004793rm -f core conftest.err conftest.$ac_objext \
4794 conftest$ac_exeext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004795fi
David McGrewb67061f2005-09-28 14:23:06 +00004796
jfigusc7e66e32013-05-08 11:32:55 -04004797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debugging" >&5
4798$as_echo_n "checking whether to compile in debugging... " >&6; }
4799# Check whether --enable-debug was given.
4800if test "${enable_debug+set}" = set; then :
4801 enableval=$enable_debug;
David McGrewb67061f2005-09-28 14:23:06 +00004802else
4803 enable_debug=yes
jfigusc7e66e32013-05-08 11:32:55 -04004804fi
4805
David McGrewb67061f2005-09-28 14:23:06 +00004806if test "$enable_debug" = "yes"; then
4807
jfigusc7e66e32013-05-08 11:32:55 -04004808$as_echo "#define ENABLE_DEBUGGING 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004809
4810fi
jfigusc7e66e32013-05-08 11:32:55 -04004811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
4812$as_echo "$enable_debug" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004813
jfigusc7e66e32013-05-08 11:32:55 -04004814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ISMAcryp code" >&5
4815$as_echo_n "checking whether to use ISMAcryp code... " >&6; }
4816# Check whether --enable-generic-aesicm was given.
4817if test "${enable_generic_aesicm+set}" = set; then :
4818 enableval=$enable_generic_aesicm;
David McGrewb67061f2005-09-28 14:23:06 +00004819else
4820 enable_generic_aesicm=no
jfigusc7e66e32013-05-08 11:32:55 -04004821fi
4822
David McGrewb67061f2005-09-28 14:23:06 +00004823if test "$enable_generic_aesicm" = "yes"; then
4824
jfigusc7e66e32013-05-08 11:32:55 -04004825$as_echo "#define GENERIC_AESICM 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04004826
jfigusa14b5a02013-03-29 12:24:12 -04004827fi
jfigusc7e66e32013-05-08 11:32:55 -04004828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generic_aesicm" >&5
4829$as_echo "$enable_generic_aesicm" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04004830
jfigusc7e66e32013-05-08 11:32:55 -04004831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
4832$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
4833# Check whether --enable-openssl was given.
4834if test "${enable_openssl+set}" = set; then :
4835 enableval=$enable_openssl;
4836else
4837 enable_openssl=no
4838fi
jfigusa14b5a02013-03-29 12:24:12 -04004839
jfigus2b486652014-07-24 15:01:41 -04004840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
4841$as_echo "$enable_openssl" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04004842if test "$enable_openssl" = "yes"; then
Sean Brightbfb9e302014-03-24 20:45:17 -04004843 LDFLAGS="$LDFLAGS $(pkg-config --libs openssl)";
4844 CFLAGS="$CFLAGS $(pkg-config --cflags openssl)";
Cullen Jenningse1de50f2013-05-22 12:27:28 -06004845
jfigusc7e66e32013-05-08 11:32:55 -04004846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
4847$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
4848if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850else
4851 ac_check_lib_save_LIBS=$LIBS
4852LIBS="-lcrypto $LIBS"
4853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4854/* end confdefs.h. */
4855
4856/* Override any GCC internal prototype to avoid an error.
4857 Use char because int might match the return type of a GCC
4858 builtin and then its argument prototype would still apply. */
4859#ifdef __cplusplus
4860extern "C"
4861#endif
4862char EVP_EncryptInit ();
4863int
4864main ()
4865{
4866return EVP_EncryptInit ();
4867 ;
4868 return 0;
4869}
4870_ACEOF
4871if ac_fn_c_try_link "$LINENO"; then :
4872 ac_cv_lib_crypto_EVP_EncryptInit=yes
4873else
4874 ac_cv_lib_crypto_EVP_EncryptInit=no
4875fi
4876rm -f core conftest.err conftest.$ac_objext \
4877 conftest$ac_exeext conftest.$ac_ext
4878LIBS=$ac_check_lib_save_LIBS
4879fi
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
4881$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
4882if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
4883 cat >>confdefs.h <<_ACEOF
4884#define HAVE_LIBCRYPTO 1
4885_ACEOF
4886
4887 LIBS="-lcrypto $LIBS"
4888
4889else
4890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4891$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
jfigus5b22e372013-05-09 09:23:26 -04004892as_fn_error $? "can't find openssl >1.0.1 crypto lib
4893See \`config.log' for more details" "$LINENO" 5; }
4894fi
4895
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_ctr in -lcrypto" >&5
4897$as_echo_n "checking for EVP_aes_128_ctr in -lcrypto... " >&6; }
4898if ${ac_cv_lib_crypto_EVP_aes_128_ctr+:} false; then :
4899 $as_echo_n "(cached) " >&6
4900else
4901 ac_check_lib_save_LIBS=$LIBS
4902LIBS="-lcrypto $LIBS"
4903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904/* end confdefs.h. */
4905
4906/* Override any GCC internal prototype to avoid an error.
4907 Use char because int might match the return type of a GCC
4908 builtin and then its argument prototype would still apply. */
4909#ifdef __cplusplus
4910extern "C"
4911#endif
4912char EVP_aes_128_ctr ();
4913int
4914main ()
4915{
4916return EVP_aes_128_ctr ();
4917 ;
4918 return 0;
4919}
4920_ACEOF
4921if ac_fn_c_try_link "$LINENO"; then :
4922 ac_cv_lib_crypto_EVP_aes_128_ctr=yes
4923else
4924 ac_cv_lib_crypto_EVP_aes_128_ctr=no
4925fi
4926rm -f core conftest.err conftest.$ac_objext \
4927 conftest$ac_exeext conftest.$ac_ext
4928LIBS=$ac_check_lib_save_LIBS
4929fi
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_ctr" >&5
4931$as_echo "$ac_cv_lib_crypto_EVP_aes_128_ctr" >&6; }
4932if test "x$ac_cv_lib_crypto_EVP_aes_128_ctr" = xyes; then :
4933 cat >>confdefs.h <<_ACEOF
4934#define HAVE_LIBCRYPTO 1
4935_ACEOF
4936
4937 LIBS="-lcrypto $LIBS"
4938
4939else
4940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4941$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4942as_fn_error $? "can't find openssl >1.0.1 crypto lib
jfigusc7e66e32013-05-08 11:32:55 -04004943See \`config.log' for more details" "$LINENO" 5; }
4944fi
4945
jfigus7882dd92013-08-02 16:08:23 -04004946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_gcm in -lcrypto" >&5
4947$as_echo_n "checking for EVP_aes_128_gcm in -lcrypto... " >&6; }
4948if ${ac_cv_lib_crypto_EVP_aes_128_gcm+:} false; then :
4949 $as_echo_n "(cached) " >&6
4950else
4951 ac_check_lib_save_LIBS=$LIBS
4952LIBS="-lcrypto $LIBS"
4953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954/* end confdefs.h. */
4955
4956/* Override any GCC internal prototype to avoid an error.
4957 Use char because int might match the return type of a GCC
4958 builtin and then its argument prototype would still apply. */
4959#ifdef __cplusplus
4960extern "C"
4961#endif
4962char EVP_aes_128_gcm ();
4963int
4964main ()
4965{
4966return EVP_aes_128_gcm ();
4967 ;
4968 return 0;
4969}
4970_ACEOF
4971if ac_fn_c_try_link "$LINENO"; then :
4972 ac_cv_lib_crypto_EVP_aes_128_gcm=yes
4973else
4974 ac_cv_lib_crypto_EVP_aes_128_gcm=no
4975fi
4976rm -f core conftest.err conftest.$ac_objext \
4977 conftest$ac_exeext conftest.$ac_ext
4978LIBS=$ac_check_lib_save_LIBS
4979fi
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_gcm" >&5
4981$as_echo "$ac_cv_lib_crypto_EVP_aes_128_gcm" >&6; }
4982if test "x$ac_cv_lib_crypto_EVP_aes_128_gcm" = xyes; then :
4983 cat >>confdefs.h <<_ACEOF
4984#define HAVE_LIBCRYPTO 1
4985_ACEOF
4986
4987 LIBS="-lcrypto $LIBS"
4988
4989else
4990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4992as_fn_error $? "can't find openssl >1.0.1 crypto lib
4993See \`config.log' for more details" "$LINENO" 5; }
4994fi
4995
jfigusc7e66e32013-05-08 11:32:55 -04004996
4997$as_echo "#define OPENSSL 1" >>confdefs.h
4998
jfigus7882dd92013-08-02 16:08:23 -04004999 AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
jfigusc7e66e32013-05-08 11:32:55 -04005000 RNG_OBJS=rand_source_ossl.o
5001 HMAC_OBJS=crypto/hash/hmac_ossl.o
5002 USE_OPENSSL=1
5003
5004else
5005 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o crypto/cipher/aes_cbc.o"
jfigus7882dd92013-08-02 16:08:23 -04005006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random device to use" >&5
5007$as_echo_n "checking which random device to use... " >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04005008 if test "$enable_kernel_linux" = "yes"; then
5009 RNG_OBJS=rand_linux_kernel.o
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux kernel builtin" >&5
5011$as_echo "Linux kernel builtin" >&6; }
5012 else
5013 RNG_OBJS=rand_source.o
5014 if test -n "$DEV_URANDOM"; then
5015
5016cat >>confdefs.h <<_ACEOF
5017#define DEV_URANDOM "$DEV_URANDOM"
5018_ACEOF
5019
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_URANDOM" >&5
5021$as_echo "$DEV_URANDOM" >&6; }
5022 else
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: standard rand() function..." >&5
5024$as_echo "standard rand() function..." >&6; }
5025 fi
5026 fi
5027 RNG_EXTRA_OBJS="crypto/rng/prng.o crypto/rng/ctr_prng.o"
5028 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
5029fi
5030
5031
5032
5033
jfigusc7e66e32013-05-08 11:32:55 -04005034
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use syslog for error reporting" >&5
5036$as_echo_n "checking whether to use syslog for error reporting... " >&6; }
5037# Check whether --enable-syslog was given.
5038if test "${enable_syslog+set}" = set; then :
5039 enableval=$enable_syslog;
David McGrewb67061f2005-09-28 14:23:06 +00005040else
5041 enable_syslog=no
jfigusc7e66e32013-05-08 11:32:55 -04005042fi
5043
David McGrewb67061f2005-09-28 14:23:06 +00005044if test "$enable_syslog" = "yes"; then
5045
jfigusc7e66e32013-05-08 11:32:55 -04005046$as_echo "#define USE_SYSLOG 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005047
5048fi
jfigusc7e66e32013-05-08 11:32:55 -04005049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_syslog" >&5
5050$as_echo "$enable_syslog" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005051
jfigusc7e66e32013-05-08 11:32:55 -04005052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use stdout for error reporting" >&5
5053$as_echo_n "checking whether to use stdout for error reporting... " >&6; }
5054# Check whether --enable-stdout was given.
5055if test "${enable_stdout+set}" = set; then :
5056 enableval=$enable_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00005057else
5058 enable_stdout=yes
jfigusc7e66e32013-05-08 11:32:55 -04005059fi
5060
David McGrewb67061f2005-09-28 14:23:06 +00005061if test "$enable_stdout" = "yes"; then
5062
jfigusc7e66e32013-05-08 11:32:55 -04005063$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005064
5065fi
jfigusc7e66e32013-05-08 11:32:55 -04005066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdout" >&5
5067$as_echo "$enable_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005068
jfigusc7e66e32013-05-08 11:32:55 -04005069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use /dev/console for error reporting" >&5
5070$as_echo_n "checking whether to use /dev/console for error reporting... " >&6; }
5071# Check whether --enable-console was given.
5072if test "${enable_console+set}" = set; then :
5073 enableval=$enable_console;
David McGrewb67061f2005-09-28 14:23:06 +00005074else
5075 enable_console=no
jfigusc7e66e32013-05-08 11:32:55 -04005076fi
5077
David McGrewb67061f2005-09-28 14:23:06 +00005078if test "$enable_console" = "yes"; then
5079
jfigusc7e66e32013-05-08 11:32:55 -04005080$as_echo "#define USE_ERR_REPORTING_FILE 1" >>confdefs.h
David McGrewb67061f2005-09-28 14:23:06 +00005081
5082
jfigusc7e66e32013-05-08 11:32:55 -04005083$as_echo "#define ERR_REPORTING_FILE \"/dev/console\"" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005084
5085fi
jfigusc7e66e32013-05-08 11:32:55 -04005086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_console" >&5
5087$as_echo "$enable_console" >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00005088
jfigusc7e66e32013-05-08 11:32:55 -04005089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GDOI key management" >&5
5090$as_echo_n "checking whether to use GDOI key management... " >&6; }
5091# Check whether --enable-gdoi was given.
5092if test "${enable_gdoi+set}" = set; then :
5093 enableval=$enable_gdoi;
David McGrewb67061f2005-09-28 14:23:06 +00005094else
5095 enable_gdoi=no
jfigusc7e66e32013-05-08 11:32:55 -04005096fi
5097
David McGrewb67061f2005-09-28 14:23:06 +00005098if test "$enable_gdoi" = "yes"; then
5099
jfigusc7e66e32013-05-08 11:32:55 -04005100$as_echo "#define SRTP_GDOI 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005101
5102 GDOI_OBJS=gdoi/srtp+gdoi.o
5103
5104fi
jfigusc7e66e32013-05-08 11:32:55 -04005105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gdoi" >&5
5106$as_echo "$enable_gdoi" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005107
jfigusc7e66e32013-05-08 11:32:55 -04005108ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00005109
5110
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005111# Extract the first word of "pkg-config", so it can be a program name with args.
5112set dummy pkg-config; ac_word=$2
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114$as_echo_n "checking for $ac_word... " >&6; }
5115if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5116 $as_echo_n "(cached) " >&6
5117else
5118 if test -n "$PKG_CONFIG"; then
5119 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5120else
5121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122for as_dir in $PATH
5123do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128 ac_cv_prog_PKG_CONFIG="yes"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5131 fi
5132done
5133 done
5134IFS=$as_save_IFS
5135
5136fi
5137fi
5138PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5139if test -n "$PKG_CONFIG"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5141$as_echo "$PKG_CONFIG" >&6; }
5142else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144$as_echo "no" >&6; }
5145fi
5146
5147
5148if test "x$PKG_CONFIG" != "x"; then
5149 HAVE_PKG_CONFIG=1
5150 ac_config_files="$ac_config_files libsrtp.pc"
5151
5152else
5153 HAVE_PKG_CONFIG=0
5154fi
5155
jfigusc7e66e32013-05-08 11:32:55 -04005156ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile"
5157
Cullen Jennings235513a2005-09-21 22:51:36 +00005158cat >confcache <<\_ACEOF
5159# This file is a shell script that caches the results of configure
5160# tests run on this system so they can be shared between configure
5161# scripts and configure runs, see configure's option --config-cache.
5162# It is not useful on other systems. If it contains results you don't
5163# want to keep, you may remove or edit it.
5164#
5165# config.status only pays attention to the cache file if you give it
5166# the --recheck option to rerun configure.
5167#
5168# `ac_cv_env_foo' variables (set or unset) will be overridden when
5169# loading this file, other *unset* `ac_cv_foo' will be assigned the
5170# following values.
5171
5172_ACEOF
5173
5174# The following way of writing the cache mishandles newlines in values,
5175# but we know of no workaround that is simple, portable, and efficient.
jfigusc7e66e32013-05-08 11:32:55 -04005176# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00005177# Ultrix sh set writes to stderr and can't be redirected directly,
5178# and sets the high bit in the cache file unless we assign to the vars.
jfigusc7e66e32013-05-08 11:32:55 -04005179(
5180 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5181 eval ac_val=\$$ac_var
5182 case $ac_val in #(
5183 *${as_nl}*)
5184 case $ac_var in #(
5185 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5186$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5187 esac
5188 case $ac_var in #(
5189 _ | IFS | as_nl) ;; #(
5190 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5191 *) { eval $ac_var=; unset $ac_var;} ;;
5192 esac ;;
5193 esac
5194 done
5195
Cullen Jennings235513a2005-09-21 22:51:36 +00005196 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04005197 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5198 *${as_nl}ac_space=\ *)
5199 # `set' does not quote correctly, so add quotes: double-quote
5200 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00005201 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00005202 "s/'/'\\\\''/g;
5203 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusc7e66e32013-05-08 11:32:55 -04005204 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00005205 *)
5206 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusc7e66e32013-05-08 11:32:55 -04005207 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00005208 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005209 esac |
5210 sort
5211) |
Cullen Jennings235513a2005-09-21 22:51:36 +00005212 sed '
jfigusc7e66e32013-05-08 11:32:55 -04005213 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00005214 t clear
jfigusc7e66e32013-05-08 11:32:55 -04005215 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00005216 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5217 t end
jfigusc7e66e32013-05-08 11:32:55 -04005218 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5219 :end' >>confcache
5220if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5221 if test -w "$cache_file"; then
5222 if test "x$cache_file" != "x/dev/null"; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5224$as_echo "$as_me: updating cache $cache_file" >&6;}
5225 if test ! -f "$cache_file" || test -h "$cache_file"; then
5226 cat confcache >"$cache_file"
5227 else
5228 case $cache_file in #(
5229 */* | ?:*)
5230 mv -f confcache "$cache_file"$$ &&
5231 mv -f "$cache_file"$$ "$cache_file" ;; #(
5232 *)
5233 mv -f confcache "$cache_file" ;;
5234 esac
5235 fi
5236 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005237 else
jfigusc7e66e32013-05-08 11:32:55 -04005238 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5239$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00005240 fi
5241fi
5242rm -f confcache
5243
5244test "x$prefix" = xNONE && prefix=$ac_default_prefix
5245# Let make expand exec_prefix.
5246test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5247
Cullen Jennings235513a2005-09-21 22:51:36 +00005248DEFS=-DHAVE_CONFIG_H
5249
5250ac_libobjs=
5251ac_ltlibobjs=
jfigusc7e66e32013-05-08 11:32:55 -04005252U=
Cullen Jennings235513a2005-09-21 22:51:36 +00005253for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5254 # 1. Remove the extension, and $U if already installed.
jfigusc7e66e32013-05-08 11:32:55 -04005255 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5256 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5257 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5258 # will be set to the directory where LIBOBJS objects are built.
5259 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5260 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00005261done
5262LIBOBJS=$ac_libobjs
5263
5264LTLIBOBJS=$ac_ltlibobjs
5265
5266
5267
jfigusc7e66e32013-05-08 11:32:55 -04005268
5269: "${CONFIG_STATUS=./config.status}"
5270ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00005271ac_clean_files_save=$ac_clean_files
5272ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusc7e66e32013-05-08 11:32:55 -04005273{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5274$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5275as_write_fail=0
5276cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005277#! $SHELL
5278# Generated by $as_me.
5279# Run this file to recreate the current configuration.
5280# Compiler output produced by configure, useful for debugging
5281# configure, is in config.log if it exists.
5282
5283debug=false
5284ac_cs_recheck=false
5285ac_cs_silent=false
jfigusc7e66e32013-05-08 11:32:55 -04005286
Cullen Jennings235513a2005-09-21 22:51:36 +00005287SHELL=\${CONFIG_SHELL-$SHELL}
jfigusc7e66e32013-05-08 11:32:55 -04005288export SHELL
5289_ASEOF
5290cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5291## -------------------- ##
5292## M4sh Initialization. ##
5293## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00005294
jfigusc7e66e32013-05-08 11:32:55 -04005295# Be more Bourne compatible
5296DUALCASE=1; export DUALCASE # for MKS sh
5297if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005298 emulate sh
5299 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -04005300 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00005301 # is contrary to our usage. Disable this feature.
5302 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -04005303 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00005304else
jfigusc7e66e32013-05-08 11:32:55 -04005305 case `(set -o) 2>/dev/null` in #(
5306 *posix*) :
5307 set -o posix ;; #(
5308 *) :
5309 ;;
5310esac
Cullen Jennings235513a2005-09-21 22:51:36 +00005311fi
5312
5313
jfigusc7e66e32013-05-08 11:32:55 -04005314as_nl='
5315'
5316export as_nl
5317# Printing a long string crashes Solaris 7 /usr/bin/printf.
5318as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5319as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5320as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5321# Prefer a ksh shell builtin over an external printf program on Solaris,
5322# but without wasting forks for bash or zsh.
5323if test -z "$BASH_VERSION$ZSH_VERSION" \
5324 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5325 as_echo='print -r --'
5326 as_echo_n='print -rn --'
5327elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5328 as_echo='printf %s\n'
5329 as_echo_n='printf %s'
5330else
5331 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5332 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5333 as_echo_n='/usr/ucb/echo -n'
5334 else
5335 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5336 as_echo_n_body='eval
5337 arg=$1;
5338 case $arg in #(
5339 *"$as_nl"*)
5340 expr "X$arg" : "X\\(.*\\)$as_nl";
5341 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5342 esac;
5343 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5344 '
5345 export as_echo_n_body
5346 as_echo_n='sh -c $as_echo_n_body as_echo'
5347 fi
5348 export as_echo_body
5349 as_echo='sh -c $as_echo_body as_echo'
5350fi
5351
5352# The user is always right.
5353if test "${PATH_SEPARATOR+set}" != set; then
5354 PATH_SEPARATOR=:
5355 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5356 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5357 PATH_SEPARATOR=';'
5358 }
5359fi
5360
5361
5362# IFS
5363# We need space, tab and new line, in precisely that order. Quoting is
5364# there to prevent editors from complaining about space-tab.
5365# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5366# splitting by setting IFS to empty value.)
5367IFS=" "" $as_nl"
5368
5369# Find who we are. Look in the path if we contain no directory separator.
5370as_myself=
5371case $0 in #((
5372 *[\\/]* ) as_myself=$0 ;;
5373 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374for as_dir in $PATH
5375do
5376 IFS=$as_save_IFS
5377 test -z "$as_dir" && as_dir=.
5378 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5379 done
5380IFS=$as_save_IFS
5381
5382 ;;
5383esac
5384# We did not find ourselves, most probably we were run as `sh COMMAND'
5385# in which case we are not to be found in the path.
5386if test "x$as_myself" = x; then
5387 as_myself=$0
5388fi
5389if test ! -f "$as_myself"; then
5390 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5391 exit 1
5392fi
5393
5394# Unset variables that we do not need and which cause bugs (e.g. in
5395# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5396# suppresses any "Segmentation fault" message there. '((' could
5397# trigger a bug in pdksh 5.2.14.
5398for as_var in BASH_ENV ENV MAIL MAILPATH
5399do eval test x\${$as_var+set} = xset \
5400 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5401done
Cullen Jennings235513a2005-09-21 22:51:36 +00005402PS1='$ '
5403PS2='> '
5404PS4='+ '
5405
5406# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -04005407LC_ALL=C
5408export LC_ALL
5409LANGUAGE=C
5410export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -04005411
jfigusc7e66e32013-05-08 11:32:55 -04005412# CDPATH.
5413(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5414
5415
5416# as_fn_error STATUS ERROR [LINENO LOG_FD]
5417# ----------------------------------------
5418# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5419# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5420# script with STATUS, using 1 if that was 0.
5421as_fn_error ()
5422{
5423 as_status=$1; test $as_status -eq 0 && as_status=1
5424 if test "$4"; then
5425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5427 fi
5428 $as_echo "$as_me: error: $2" >&2
5429 as_fn_exit $as_status
5430} # as_fn_error
5431
5432
5433# as_fn_set_status STATUS
5434# -----------------------
5435# Set $? to STATUS, without forking.
5436as_fn_set_status ()
5437{
5438 return $1
5439} # as_fn_set_status
5440
5441# as_fn_exit STATUS
5442# -----------------
5443# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5444as_fn_exit ()
5445{
5446 set +e
5447 as_fn_set_status $1
5448 exit $1
5449} # as_fn_exit
5450
5451# as_fn_unset VAR
5452# ---------------
5453# Portably unset VAR.
5454as_fn_unset ()
5455{
5456 { eval $1=; unset $1;}
5457}
5458as_unset=as_fn_unset
5459# as_fn_append VAR VALUE
5460# ----------------------
5461# Append the text in VALUE to the end of the definition contained in VAR. Take
5462# advantage of any shell optimizations that allow amortized linear growth over
5463# repeated appends, instead of the typical quadratic growth present in naive
5464# implementations.
5465if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5466 eval 'as_fn_append ()
5467 {
5468 eval $1+=\$2
5469 }'
5470else
5471 as_fn_append ()
5472 {
5473 eval $1=\$$1\$2
5474 }
5475fi # as_fn_append
5476
5477# as_fn_arith ARG...
5478# ------------------
5479# Perform arithmetic evaluation on the ARGs, and store the result in the
5480# global $as_val. Take advantage of shells that can avoid forks. The arguments
5481# must be portable across $(()) and expr.
5482if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5483 eval 'as_fn_arith ()
5484 {
5485 as_val=$(( $* ))
5486 }'
5487else
5488 as_fn_arith ()
5489 {
5490 as_val=`expr "$@" || test $? -eq 1`
5491 }
5492fi # as_fn_arith
5493
5494
5495if expr a : '\(a\)' >/dev/null 2>&1 &&
5496 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005497 as_expr=expr
5498else
5499 as_expr=false
5500fi
5501
jfigusc7e66e32013-05-08 11:32:55 -04005502if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005503 as_basename=basename
5504else
5505 as_basename=false
5506fi
5507
jfigusc7e66e32013-05-08 11:32:55 -04005508if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5509 as_dirname=dirname
5510else
5511 as_dirname=false
5512fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005513
jfigusc7e66e32013-05-08 11:32:55 -04005514as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00005515$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5516 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04005517 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5518$as_echo X/"$0" |
5519 sed '/^.*\/\([^/][^/]*\)\/*$/{
5520 s//\1/
5521 q
5522 }
5523 /^X\/\(\/\/\)$/{
5524 s//\1/
5525 q
5526 }
5527 /^X\/\(\/\).*/{
5528 s//\1/
5529 q
5530 }
5531 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005532
Cullen Jennings235513a2005-09-21 22:51:36 +00005533# Avoid depending upon Character Ranges.
5534as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5535as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5536as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5537as_cr_digits='0123456789'
5538as_cr_alnum=$as_cr_Letters$as_cr_digits
5539
jfigusc7e66e32013-05-08 11:32:55 -04005540ECHO_C= ECHO_N= ECHO_T=
5541case `echo -n x` in #(((((
5542-n*)
5543 case `echo 'xy\c'` in
5544 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5545 xy) ECHO_C='\c';;
5546 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5547 ECHO_T=' ';;
5548 esac;;
5549*)
5550 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00005551esac
5552
Cullen Jennings235513a2005-09-21 22:51:36 +00005553rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -04005554if test -d conf$$.dir; then
5555 rm -f conf$$.dir/conf$$.file
5556else
5557 rm -f conf$$.dir
5558 mkdir conf$$.dir 2>/dev/null
5559fi
5560if (echo >conf$$.file) 2>/dev/null; then
5561 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005562 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -04005563 # ... but there are two gotchas:
5564 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5565 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5566 # In both cases, we have to default to `cp -pR'.
5567 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5568 as_ln_s='cp -pR'
5569 elif ln conf$$.file conf$$ 2>/dev/null; then
5570 as_ln_s=ln
5571 else
5572 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005573 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005574else
jfigusc7e66e32013-05-08 11:32:55 -04005575 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005576fi
jfigusc7e66e32013-05-08 11:32:55 -04005577rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5578rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00005579
jfigusc7e66e32013-05-08 11:32:55 -04005580
5581# as_fn_mkdir_p
5582# -------------
5583# Create "$as_dir" as a directory, including parents if necessary.
5584as_fn_mkdir_p ()
5585{
5586
5587 case $as_dir in #(
5588 -*) as_dir=./$as_dir;;
5589 esac
5590 test -d "$as_dir" || eval $as_mkdir_p || {
5591 as_dirs=
5592 while :; do
5593 case $as_dir in #(
5594 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5595 *) as_qdir=$as_dir;;
5596 esac
5597 as_dirs="'$as_qdir' $as_dirs"
5598 as_dir=`$as_dirname -- "$as_dir" ||
5599$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5600 X"$as_dir" : 'X\(//\)[^/]' \| \
5601 X"$as_dir" : 'X\(//\)$' \| \
5602 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5603$as_echo X"$as_dir" |
5604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5605 s//\1/
5606 q
5607 }
5608 /^X\(\/\/\)[^/].*/{
5609 s//\1/
5610 q
5611 }
5612 /^X\(\/\/\)$/{
5613 s//\1/
5614 q
5615 }
5616 /^X\(\/\).*/{
5617 s//\1/
5618 q
5619 }
5620 s/.*/./; q'`
5621 test -d "$as_dir" && break
5622 done
5623 test -z "$as_dirs" || eval "mkdir $as_dirs"
5624 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5625
5626
5627} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005628if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -04005629 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00005630else
David McGrewfec49dd2005-09-23 19:34:11 +00005631 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00005632 as_mkdir_p=false
5633fi
5634
jfigusc7e66e32013-05-08 11:32:55 -04005635
5636# as_fn_executable_p FILE
5637# -----------------------
5638# Test if FILE is an executable regular file.
5639as_fn_executable_p ()
5640{
5641 test -f "$1" && test -x "$1"
5642} # as_fn_executable_p
5643as_test_x='test -x'
5644as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005645
5646# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00005647as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005648
5649# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00005650as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005651
5652
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005653exec 6>&1
jfigusc7e66e32013-05-08 11:32:55 -04005654## ----------------------------------- ##
5655## Main body of $CONFIG_STATUS script. ##
5656## ----------------------------------- ##
5657_ASEOF
5658test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005659
jfigusc7e66e32013-05-08 11:32:55 -04005660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5661# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00005662# report actual input values of CONFIG_FILES etc. instead of their
jfigusc7e66e32013-05-08 11:32:55 -04005663# values after options handling.
5664ac_log="
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005665This file was extended by libsrtp $as_me 1.4.5, which was
jfigusc7e66e32013-05-08 11:32:55 -04005666generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00005667
5668 CONFIG_FILES = $CONFIG_FILES
5669 CONFIG_HEADERS = $CONFIG_HEADERS
5670 CONFIG_LINKS = $CONFIG_LINKS
5671 CONFIG_COMMANDS = $CONFIG_COMMANDS
5672 $ $0 $@
5673
jfigusc7e66e32013-05-08 11:32:55 -04005674on `(hostname || uname -n) 2>/dev/null | sed 1q`
5675"
5676
Cullen Jennings235513a2005-09-21 22:51:36 +00005677_ACEOF
5678
jfigusc7e66e32013-05-08 11:32:55 -04005679case $ac_config_files in *"
5680"*) set x $ac_config_files; shift; ac_config_files=$*;;
5681esac
5682
5683case $ac_config_headers in *"
5684"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5685esac
5686
5687
5688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005689# Files that config.status was made for.
jfigusc7e66e32013-05-08 11:32:55 -04005690config_files="$ac_config_files"
5691config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00005692
jfigusc7e66e32013-05-08 11:32:55 -04005693_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005694
jfigusc7e66e32013-05-08 11:32:55 -04005695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005696ac_cs_usage="\
jfigusc7e66e32013-05-08 11:32:55 -04005697\`$as_me' instantiates files and other configuration actions
5698from templates according to the current configuration. Unless the files
5699and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00005700
jfigusc7e66e32013-05-08 11:32:55 -04005701Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00005702
5703 -h, --help print this help, then exit
jfigusc7e66e32013-05-08 11:32:55 -04005704 -V, --version print version number and configuration settings, then exit
5705 --config print configuration, then exit
5706 -q, --quiet, --silent
5707 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00005708 -d, --debug don't remove temporary files
5709 --recheck update $as_me by reconfiguring in the same conditions
jfigusc7e66e32013-05-08 11:32:55 -04005710 --file=FILE[:TEMPLATE]
5711 instantiate the configuration file FILE
5712 --header=FILE[:TEMPLATE]
5713 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00005714
5715Configuration files:
5716$config_files
5717
5718Configuration headers:
5719$config_headers
5720
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005721Report bugs to <https://github.com/cisco/libsrtp/issues>."
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005722
jfigusc7e66e32013-05-08 11:32:55 -04005723_ACEOF
5724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5725ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00005726ac_cs_version="\\
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005727libsrtp config.status 1.4.5
jfigusc7e66e32013-05-08 11:32:55 -04005728configured by $0, generated by GNU Autoconf 2.69,
5729 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00005730
jfigusc7e66e32013-05-08 11:32:55 -04005731Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00005732This config.status script is free software; the Free Software Foundation
5733gives unlimited permission to copy, distribute and modify it."
jfigusc7e66e32013-05-08 11:32:55 -04005734
5735ac_pwd='$ac_pwd'
5736srcdir='$srcdir'
5737INSTALL='$INSTALL'
5738test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00005739_ACEOF
5740
jfigusc7e66e32013-05-08 11:32:55 -04005741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5742# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00005743ac_need_defaults=:
5744while test $# != 0
5745do
5746 case $1 in
jfigusc7e66e32013-05-08 11:32:55 -04005747 --*=?*)
5748 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5749 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005750 ac_shift=:
5751 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005752 --*=)
5753 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5754 ac_optarg=
5755 ac_shift=:
5756 ;;
5757 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00005758 ac_option=$1
5759 ac_optarg=$2
5760 ac_shift=shift
5761 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005762 esac
5763
5764 case $ac_option in
5765 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00005766 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5767 ac_cs_recheck=: ;;
jfigusc7e66e32013-05-08 11:32:55 -04005768 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5769 $as_echo "$ac_cs_version"; exit ;;
5770 --config | --confi | --conf | --con | --co | --c )
5771 $as_echo "$ac_cs_config"; exit ;;
5772 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00005773 debug=: ;;
5774 --file | --fil | --fi | --f )
5775 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04005776 case $ac_optarg in
5777 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5778 '') as_fn_error $? "missing file argument" ;;
5779 esac
5780 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005781 ac_need_defaults=false;;
5782 --header | --heade | --head | --hea )
5783 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04005784 case $ac_optarg in
5785 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5786 esac
5787 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005788 ac_need_defaults=false;;
jfigusc7e66e32013-05-08 11:32:55 -04005789 --he | --h)
5790 # Conflict between --help and --header
5791 as_fn_error $? "ambiguous option: \`$1'
5792Try \`$0 --help' for more information.";;
5793 --help | --hel | -h )
5794 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005795 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5796 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5797 ac_cs_silent=: ;;
5798
5799 # This is an error.
jfigusc7e66e32013-05-08 11:32:55 -04005800 -*) as_fn_error $? "unrecognized option: \`$1'
5801Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005802
jfigusc7e66e32013-05-08 11:32:55 -04005803 *) as_fn_append ac_config_targets " $1"
5804 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005805
5806 esac
5807 shift
5808done
5809
5810ac_configure_extra_args=
5811
5812if $ac_cs_silent; then
5813 exec 6>/dev/null
5814 ac_configure_extra_args="$ac_configure_extra_args --silent"
5815fi
5816
5817_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005819if \$ac_cs_recheck; then
jfigusc7e66e32013-05-08 11:32:55 -04005820 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5821 shift
5822 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5823 CONFIG_SHELL='$SHELL'
5824 export CONFIG_SHELL
5825 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00005826fi
5827
5828_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5830exec 5>>config.log
5831{
5832 echo
5833 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5834## Running $as_me. ##
5835_ASBOX
5836 $as_echo "$ac_log"
5837} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00005838
jfigusc7e66e32013-05-08 11:32:55 -04005839_ACEOF
5840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5841_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005842
jfigusc7e66e32013-05-08 11:32:55 -04005843cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005844
jfigusc7e66e32013-05-08 11:32:55 -04005845# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00005846for ac_config_target in $ac_config_targets
5847do
jfigusc7e66e32013-05-08 11:32:55 -04005848 case $ac_config_target in
5849 "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 +02005850 "libsrtp.pc") CONFIG_FILES="$CONFIG_FILES libsrtp.pc" ;;
jfigusc7e66e32013-05-08 11:32:55 -04005851 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5852 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
5853 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5854
5855 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005856 esac
5857done
5858
jfigusc7e66e32013-05-08 11:32:55 -04005859
Cullen Jennings235513a2005-09-21 22:51:36 +00005860# If the user did not use the arguments to specify the items to instantiate,
5861# then the envvar interface is used. Set only those that are not.
5862# We use the long form for the default assignment because of an extremely
5863# bizarre bug on SunOS 4.1.3.
5864if $ac_need_defaults; then
5865 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5866 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5867fi
5868
5869# Have a temporary directory for convenience. Make it in the build tree
jfigusc7e66e32013-05-08 11:32:55 -04005870# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00005871# creating and moving files from /tmp can sometimes cause problems.
jfigusc7e66e32013-05-08 11:32:55 -04005872# Hook for its removal unless debugging.
5873# Note that there is a small window in which the directory will not be cleaned:
5874# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00005875$debug ||
5876{
jfigusc7e66e32013-05-08 11:32:55 -04005877 tmp= ac_tmp=
5878 trap 'exit_status=$?
5879 : "${ac_tmp:=$tmp}"
5880 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5881' 0
5882 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00005883}
Cullen Jennings235513a2005-09-21 22:51:36 +00005884# Create a (secure) tmp directory for tmp files.
5885
5886{
jfigusc7e66e32013-05-08 11:32:55 -04005887 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5888 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00005889} ||
5890{
jfigusc7e66e32013-05-08 11:32:55 -04005891 tmp=./conf$$-$RANDOM
5892 (umask 077 && mkdir "$tmp")
5893} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5894ac_tmp=$tmp
5895
5896# Set up the scripts for CONFIG_FILES section.
5897# No need to generate them if there are no CONFIG_FILES.
5898# This happens for instance with `./config.status config.h'.
5899if test -n "$CONFIG_FILES"; then
5900
5901
5902ac_cr=`echo X | tr X '\015'`
5903# On cygwin, bash can eat \r inside `` if the user requested igncr.
5904# But we know of no other shell where ac_cr would be empty at this
5905# point, so we can use a bashism as a fallback.
5906if test "x$ac_cr" = x; then
5907 eval ac_cr=\$\'\\r\'
5908fi
5909ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5910if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5911 ac_cs_awk_cr='\\r'
5912else
5913 ac_cs_awk_cr=$ac_cr
5914fi
5915
5916echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5917_ACEOF
5918
5919
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005920{
jfigusc7e66e32013-05-08 11:32:55 -04005921 echo "cat >conf$$subs.awk <<_ACEOF" &&
5922 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5923 echo "_ACEOF"
5924} >conf$$subs.sh ||
5925 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5926ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5927ac_delim='%!_!# '
5928for ac_last_try in false false false false false :; do
5929 . ./conf$$subs.sh ||
5930 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5931
5932 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5933 if test $ac_delim_n = $ac_delim_num; then
5934 break
5935 elif $ac_last_try; then
5936 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5937 else
5938 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5939 fi
5940done
5941rm -f conf$$subs.sh
5942
5943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5944cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5945_ACEOF
5946sed -n '
5947h
5948s/^/S["/; s/!.*/"]=/
5949p
5950g
5951s/^[^!]*!//
5952:repl
5953t repl
5954s/'"$ac_delim"'$//
5955t delim
5956:nl
5957h
5958s/\(.\{148\}\)..*/\1/
5959t more1
5960s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5961p
5962n
5963b repl
5964:more1
5965s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5966p
5967g
5968s/.\{148\}//
5969t nl
5970:delim
5971h
5972s/\(.\{148\}\)..*/\1/
5973t more2
5974s/["\\]/\\&/g; s/^/"/; s/$/"/
5975p
5976b
5977:more2
5978s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5979p
5980g
5981s/.\{148\}//
5982t delim
5983' <conf$$subs.awk | sed '
5984/^[^""]/{
5985 N
5986 s/\n//
5987}
5988' >>$CONFIG_STATUS || ac_write_fail=1
5989rm -f conf$$subs.awk
5990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5991_ACAWK
5992cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5993 for (key in S) S_is_set[key] = 1
5994 FS = ""
5995
5996}
5997{
5998 line = $ 0
5999 nfields = split(line, field, "@")
6000 substed = 0
6001 len = length(field[1])
6002 for (i = 2; i < nfields; i++) {
6003 key = field[i]
6004 keylen = length(key)
6005 if (S_is_set[key]) {
6006 value = S[key]
6007 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6008 len += length(value) + length(field[++i])
6009 substed = 1
6010 } else
6011 len += 1 + keylen
6012 }
6013
6014 print line
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006015}
jfigusa14b5a02013-03-29 12:24:12 -04006016
jfigusc7e66e32013-05-08 11:32:55 -04006017_ACAWK
6018_ACEOF
6019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6020if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6021 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6022else
6023 cat
6024fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6025 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
jfigusa14b5a02013-03-29 12:24:12 -04006026_ACEOF
6027
jfigusc7e66e32013-05-08 11:32:55 -04006028# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6029# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6030# trailing colons and then remove the whole line if VPATH becomes empty
6031# (actually we leave an empty line to preserve line numbers).
6032if test "x$srcdir" = x.; then
6033 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6034h
6035s///
6036s/^/:/
6037s/[ ]*$/:/
6038s/:\$(srcdir):/:/g
6039s/:\${srcdir}:/:/g
6040s/:@srcdir@:/:/g
6041s/^:*//
6042s/:*$//
6043x
6044s/\(=[ ]*\).*/\1/
6045G
6046s/\n//
6047s/^[^=]*=[ ]*$//
6048}'
6049fi
jfigusa14b5a02013-03-29 12:24:12 -04006050
jfigusc7e66e32013-05-08 11:32:55 -04006051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006052fi # test -n "$CONFIG_FILES"
6053
jfigusc7e66e32013-05-08 11:32:55 -04006054# Set up the scripts for CONFIG_HEADERS section.
6055# No need to generate them if there are no CONFIG_HEADERS.
6056# This happens for instance with `./config.status Makefile'.
6057if test -n "$CONFIG_HEADERS"; then
6058cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6059BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00006060_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006061
6062# Transform confdefs.h into an awk script `defines.awk', embedded as
6063# here-document in config.status, that substitutes the proper values into
6064# config.h.in to produce config.h.
6065
6066# Create a delimiter string that does not exist in confdefs.h, to ease
6067# handling of long lines.
6068ac_delim='%!_!# '
6069for ac_last_try in false false :; do
6070 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6071 if test -z "$ac_tt"; then
6072 break
6073 elif $ac_last_try; then
6074 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6075 else
6076 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6077 fi
6078done
6079
6080# For the awk script, D is an array of macro values keyed by name,
6081# likewise P contains macro parameters if any. Preserve backslash
6082# newline sequences.
6083
6084ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6085sed -n '
6086s/.\{148\}/&'"$ac_delim"'/g
6087t rset
6088:rset
6089s/^[ ]*#[ ]*define[ ][ ]*/ /
6090t def
6091d
6092:def
6093s/\\$//
6094t bsnl
6095s/["\\]/\\&/g
6096s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6097D["\1"]=" \3"/p
6098s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6099d
6100:bsnl
6101s/["\\]/\\&/g
6102s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6103D["\1"]=" \3\\\\\\n"\\/p
6104t cont
6105s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6106t cont
6107d
6108:cont
6109n
6110s/.\{148\}/&'"$ac_delim"'/g
6111t clear
6112:clear
6113s/\\$//
6114t bsnlc
6115s/["\\]/\\&/g; s/^/"/; s/$/"/p
6116d
6117:bsnlc
6118s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6119b cont
6120' <confdefs.h | sed '
6121s/'"$ac_delim"'/"\\\
6122"/g' >>$CONFIG_STATUS || ac_write_fail=1
6123
6124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6125 for (key in D) D_is_set[key] = 1
6126 FS = ""
6127}
6128/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6129 line = \$ 0
6130 split(line, arg, " ")
6131 if (arg[1] == "#") {
6132 defundef = arg[2]
6133 mac1 = arg[3]
6134 } else {
6135 defundef = substr(arg[1], 2)
6136 mac1 = arg[2]
6137 }
6138 split(mac1, mac2, "(") #)
6139 macro = mac2[1]
6140 prefix = substr(line, 1, index(line, defundef) - 1)
6141 if (D_is_set[macro]) {
6142 # Preserve the white space surrounding the "#".
6143 print prefix "define", macro P[macro] D[macro]
6144 next
6145 } else {
6146 # Replace #undef with comments. This is necessary, for example,
6147 # in the case of _POSIX_SOURCE, which is predefined and required
6148 # on some systems where configure will not decide to define it.
6149 if (defundef == "undef") {
6150 print "/*", prefix defundef, macro, "*/"
6151 next
6152 }
6153 }
6154}
6155{ print }
6156_ACAWK
6157_ACEOF
6158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6159 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6160fi # test -n "$CONFIG_HEADERS"
6161
6162
6163eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6164shift
6165for ac_tag
6166do
6167 case $ac_tag in
6168 :[FHLC]) ac_mode=$ac_tag; continue;;
6169 esac
6170 case $ac_mode$ac_tag in
6171 :[FHL]*:*);;
6172 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6173 :[FH]-) ac_tag=-:-;;
6174 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6175 esac
6176 ac_save_IFS=$IFS
6177 IFS=:
6178 set x $ac_tag
6179 IFS=$ac_save_IFS
6180 shift
6181 ac_file=$1
6182 shift
6183
6184 case $ac_mode in
6185 :L) ac_source=$1;;
6186 :[FH])
6187 ac_file_inputs=
6188 for ac_f
6189 do
6190 case $ac_f in
6191 -) ac_f="$ac_tmp/stdin";;
6192 *) # Look for the file first in the build tree, then in the source tree
6193 # (if the path is not absolute). The absolute path cannot be DOS-style,
6194 # because $ac_f cannot contain `:'.
6195 test -f "$ac_f" ||
6196 case $ac_f in
6197 [\\/$]*) false;;
6198 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6199 esac ||
6200 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6201 esac
6202 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6203 as_fn_append ac_file_inputs " '$ac_f'"
6204 done
6205
6206 # Let's still pretend it is `configure' which instantiates (i.e., don't
6207 # use $as_me), people would be surprised to read:
6208 # /* config.h. Generated by config.status. */
6209 configure_input='Generated from '`
6210 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6211 `' by configure.'
6212 if test x"$ac_file" != x-; then
6213 configure_input="$ac_file. $configure_input"
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6215$as_echo "$as_me: creating $ac_file" >&6;}
6216 fi
6217 # Neutralize special characters interpreted by sed in replacement strings.
6218 case $configure_input in #(
6219 *\&* | *\|* | *\\* )
6220 ac_sed_conf_input=`$as_echo "$configure_input" |
6221 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6222 *) ac_sed_conf_input=$configure_input;;
6223 esac
6224
6225 case $ac_tag in
6226 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6227 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6228 esac
6229 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006230 esac
6231
jfigusc7e66e32013-05-08 11:32:55 -04006232 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006233$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006234 X"$ac_file" : 'X\(//\)[^/]' \| \
6235 X"$ac_file" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006236 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6237$as_echo X"$ac_file" |
6238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6239 s//\1/
6240 q
6241 }
6242 /^X\(\/\/\)[^/].*/{
6243 s//\1/
6244 q
6245 }
6246 /^X\(\/\/\)$/{
6247 s//\1/
6248 q
6249 }
6250 /^X\(\/\).*/{
6251 s//\1/
6252 q
6253 }
6254 s/.*/./; q'`
6255 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006256 ac_builddir=.
6257
jfigusc7e66e32013-05-08 11:32:55 -04006258case "$ac_dir" in
6259.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6260*)
6261 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6262 # A ".." for each directory in $ac_dir_suffix.
6263 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6264 case $ac_top_builddir_sub in
6265 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6266 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6267 esac ;;
6268esac
6269ac_abs_top_builddir=$ac_pwd
6270ac_abs_builddir=$ac_pwd$ac_dir_suffix
6271# for backward compatibility:
6272ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00006273
6274case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04006275 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00006276 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04006277 ac_top_srcdir=$ac_top_builddir_sub
6278 ac_abs_top_srcdir=$ac_pwd ;;
6279 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00006280 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04006281 ac_top_srcdir=$srcdir
6282 ac_abs_top_srcdir=$srcdir ;;
6283 *) # Relative name.
6284 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6285 ac_top_srcdir=$ac_top_build_prefix$srcdir
6286 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006287esac
jfigusc7e66e32013-05-08 11:32:55 -04006288ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00006289
Cullen Jennings235513a2005-09-21 22:51:36 +00006290
jfigusc7e66e32013-05-08 11:32:55 -04006291 case $ac_mode in
6292 :F)
6293 #
6294 # CONFIG_FILE
6295 #
Cullen Jennings235513a2005-09-21 22:51:36 +00006296
David McGrewb67061f2005-09-28 14:23:06 +00006297 case $INSTALL in
6298 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusc7e66e32013-05-08 11:32:55 -04006299 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00006300 esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006301_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006302
6303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6304# If the template does not know about datarootdir, expand it.
6305# FIXME: This hack should be removed a few years after 2.60.
6306ac_datarootdir_hack=; ac_datarootdir_seen=
6307ac_sed_dataroot='
6308/datarootdir/ {
6309 p
6310 q
6311}
6312/@datadir@/p
6313/@docdir@/p
6314/@infodir@/p
6315/@localedir@/p
6316/@mandir@/p'
6317case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6318*datarootdir*) ac_datarootdir_seen=yes;;
6319*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6321$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6322_ACEOF
6323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6324 ac_datarootdir_hack='
6325 s&@datadir@&$datadir&g
6326 s&@docdir@&$docdir&g
6327 s&@infodir@&$infodir&g
6328 s&@localedir@&$localedir&g
6329 s&@mandir@&$mandir&g
6330 s&\\\${datarootdir}&$datarootdir&g' ;;
6331esac
6332_ACEOF
6333
6334# Neutralize VPATH when `$srcdir' = `.'.
6335# Shell code in configure.ac might set extrasub.
6336# FIXME: do we really want to maintain this feature?
6337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6338ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00006339$extrasub
6340_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006342:t
6343/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusc7e66e32013-05-08 11:32:55 -04006344s|@configure_input@|$ac_sed_conf_input|;t t
6345s&@top_builddir@&$ac_top_builddir_sub&;t t
6346s&@top_build_prefix@&$ac_top_build_prefix&;t t
6347s&@srcdir@&$ac_srcdir&;t t
6348s&@abs_srcdir@&$ac_abs_srcdir&;t t
6349s&@top_srcdir@&$ac_top_srcdir&;t t
6350s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6351s&@builddir@&$ac_builddir&;t t
6352s&@abs_builddir@&$ac_abs_builddir&;t t
6353s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6354s&@INSTALL@&$ac_INSTALL&;t t
6355$ac_datarootdir_hack
6356"
6357eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6358 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00006359
jfigusc7e66e32013-05-08 11:32:55 -04006360test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6361 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6362 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6363 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6365which seems to be undefined. Please make sure it is defined" >&5
6366$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6367which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006368
jfigusc7e66e32013-05-08 11:32:55 -04006369 rm -f "$ac_tmp/stdin"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006370 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04006371 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6372 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6373 esac \
6374 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6375 ;;
6376 :H)
6377 #
6378 # CONFIG_HEADER
6379 #
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006380 if test x"$ac_file" != x-; then
jfigusc7e66e32013-05-08 11:32:55 -04006381 {
6382 $as_echo "/* $configure_input */" \
6383 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6384 } >"$ac_tmp/config.h" \
6385 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6386 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6388$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006389 else
jfigusc7e66e32013-05-08 11:32:55 -04006390 rm -f "$ac_file"
6391 mv "$ac_tmp/config.h" "$ac_file" \
6392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006393 fi
6394 else
jfigusc7e66e32013-05-08 11:32:55 -04006395 $as_echo "/* $configure_input */" \
6396 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6397 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006398 fi
jfigusc7e66e32013-05-08 11:32:55 -04006399 ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006400
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006401
jfigusc7e66e32013-05-08 11:32:55 -04006402 esac
6403
6404done # for ac_tag
6405
6406
6407as_fn_exit 0
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006408_ACEOF
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006409ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04006410
jfigusc7e66e32013-05-08 11:32:55 -04006411test $ac_write_fail = 0 ||
6412 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6413
Cullen Jennings235513a2005-09-21 22:51:36 +00006414
6415# configure is writing to config.log, and then calls config.status.
6416# config.status does its own redirection, appending to config.log.
6417# Unfortunately, on DOS this fails, as config.log is still kept open
6418# by configure, so config.status won't be able to write to it; its
6419# output is simply discarded. So we exec the FD to /dev/null,
6420# effectively closing config.log, so it can be properly (re)opened and
6421# appended to by config.status. When coming back to configure, we
6422# need to make the FD available again.
6423if test "$no_create" != yes; then
6424 ac_cs_success=:
6425 ac_config_status_args=
6426 test "$silent" = yes &&
6427 ac_config_status_args="$ac_config_status_args --quiet"
6428 exec 5>/dev/null
6429 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6430 exec 5>>config.log
6431 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6432 # would make configure fail if this is the last instruction.
jfigusc7e66e32013-05-08 11:32:55 -04006433 $ac_cs_success || as_fn_exit 1
6434fi
6435if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6437$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006438fi
6439
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00006440
6441# This is needed when building outside the source dir.
jfigusc7e66e32013-05-08 11:32:55 -04006442as_dir=crypto/ae_xfm; as_fn_mkdir_p
6443as_dir=crypto/cipher; as_fn_mkdir_p
6444as_dir=crypto/hash; as_fn_mkdir_p
6445as_dir=crypto/kernel; as_fn_mkdir_p
6446as_dir=crypto/math; as_fn_mkdir_p
6447as_dir=crypto/replay; as_fn_mkdir_p
6448as_dir=crypto/rng; as_fn_mkdir_p
6449as_dir=crypto/test; as_fn_mkdir_p
6450as_dir=doc; as_fn_mkdir_p
6451as_dir=srtp; as_fn_mkdir_p
6452as_dir=tables; as_fn_mkdir_p
6453as_dir=test; as_fn_mkdir_p