blob: c41c86cd7ef11652dee3121db7bd33f221d011a7 [file] [log] [blame]
Cullen Jennings235513a2005-09-21 22:51:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
jfigusd6580192014-10-13 10:31:30 -04003# Generated by GNU Autoconf 2.69 for libsrtp 1.5.x.
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02004#
5# Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00006#
jfigusc7e66e32013-05-08 11:32:55 -04007#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
Cullen Jennings235513a2005-09-21 22:51:36 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
jfigusc7e66e32013-05-08 11:32:55 -040013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +000016
jfigusc7e66e32013-05-08 11:32:55 -040017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +000020 emulate sh
21 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -040022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -040025 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +000026else
jfigusc7e66e32013-05-08 11:32:55 -040027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
Cullen Jennings235513a2005-09-21 22:51:36 +000033fi
34
35
jfigusc7e66e32013-05-08 11:32:55 -040036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
Cullen Jennings235513a2005-09-21 22:51:36 +0000124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -0400129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -0400133
jfigusc7e66e32013-05-08 11:32:55 -0400134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://github.com/cisco/libsrtp/issues about your
271$0: system, including any error possibly output before this
jfigusc7e66e32013-05-08 11:32:55 -0400272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000424 as_expr=expr
425else
426 as_expr=false
427fi
428
jfigusc7e66e32013-05-08 11:32:55 -0400429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000430 as_basename=basename
431else
432 as_basename=false
433fi
434
jfigusc7e66e32013-05-08 11:32:55 -0400435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
Cullen Jennings235513a2005-09-21 22:51:36 +0000440
jfigusc7e66e32013-05-08 11:32:55 -0400441as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +0000442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -0400444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000459
Cullen Jennings235513a2005-09-21 22:51:36 +0000460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
Cullen Jennings235513a2005-09-21 22:51:36 +0000467
jfigusc7e66e32013-05-08 11:32:55 -0400468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
Cullen Jennings235513a2005-09-21 22:51:36 +0000477 sed '
jfigusc7e66e32013-05-08 11:32:55 -0400478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
Cullen Jennings235513a2005-09-21 22:51:36 +0000482 N
jfigusc7e66e32013-05-08 11:32:55 -0400483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Cullen Jennings235513a2005-09-21 22:51:36 +0000485 t loop
jfigusc7e66e32013-05-08 11:32:55 -0400486 s/-\n.*//
Cullen Jennings235513a2005-09-21 22:51:36 +0000487 ' >$as_me.lineno &&
jfigusc7e66e32013-05-08 11:32:55 -0400488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Cullen Jennings235513a2005-09-21 22:51:36 +0000490
jfigusc7e66e32013-05-08 11:32:55 -0400491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
Cullen Jennings235513a2005-09-21 22:51:36 +0000495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
jfigusc7e66e32013-05-08 11:32:55 -0400497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
Cullen Jennings235513a2005-09-21 22:51:36 +0000499 # Exit status is that of the last command.
500 exit
501}
502
jfigusc7e66e32013-05-08 11:32:55 -0400503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512*)
513 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000514esac
515
Cullen Jennings235513a2005-09-21 22:51:36 +0000516rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -0400517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -0600525 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -0400526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +0000536 fi
Cullen Jennings235513a2005-09-21 22:51:36 +0000537else
jfigusc7e66e32013-05-08 11:32:55 -0400538 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +0000539fi
jfigusc7e66e32013-05-08 11:32:55 -0400540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +0000542
543if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -0400544 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +0000545else
David McGrewfec49dd2005-09-23 19:34:11 +0000546 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +0000547 as_mkdir_p=false
548fi
549
jfigusc7e66e32013-05-08 11:32:55 -0400550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +0000552
553# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +0000554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000555
556# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +0000557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000558
559
jfigusc7e66e32013-05-08 11:32:55 -0400560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
Cullen Jennings235513a2005-09-21 22:51:36 +0000562
563# Name of the host.
jfigusc7e66e32013-05-08 11:32:55 -0400564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Cullen Jennings235513a2005-09-21 22:51:36 +0000565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
Cullen Jennings235513a2005-09-21 22:51:36 +0000568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
jfigusc7e66e32013-05-08 11:32:55 -0400572ac_clean_files=
Cullen Jennings235513a2005-09-21 22:51:36 +0000573ac_config_libobj_dir=.
jfigusc7e66e32013-05-08 11:32:55 -0400574LIBOBJS=
Cullen Jennings235513a2005-09-21 22:51:36 +0000575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
Cullen Jennings235513a2005-09-21 22:51:36 +0000579
580# Identity of this package.
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200581PACKAGE_NAME='libsrtp'
582PACKAGE_TARNAME='libsrtp'
jfigusd6580192014-10-13 10:31:30 -0400583PACKAGE_VERSION='1.5.x'
584PACKAGE_STRING='libsrtp 1.5.x'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200585PACKAGE_BUGREPORT='https://github.com/cisco/libsrtp/issues'
586PACKAGE_URL=''
Cullen Jennings235513a2005-09-21 22:51:36 +0000587
Cullen Jennings235513a2005-09-21 22:51:36 +0000588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -0400591#ifdef HAVE_SYS_TYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000592# include <sys/types.h>
593#endif
jfigusc7e66e32013-05-08 11:32:55 -0400594#ifdef HAVE_SYS_STAT_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000595# include <sys/stat.h>
596#endif
jfigusc7e66e32013-05-08 11:32:55 -0400597#ifdef STDC_HEADERS
Cullen Jennings235513a2005-09-21 22:51:36 +0000598# include <stdlib.h>
599# include <stddef.h>
600#else
jfigusc7e66e32013-05-08 11:32:55 -0400601# ifdef HAVE_STDLIB_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000602# include <stdlib.h>
603# endif
604#endif
jfigusc7e66e32013-05-08 11:32:55 -0400605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000607# include <memory.h>
608# endif
609# include <string.h>
610#endif
jfigusc7e66e32013-05-08 11:32:55 -0400611#ifdef HAVE_STRINGS_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000612# include <strings.h>
613#endif
jfigusc7e66e32013-05-08 11:32:55 -0400614#ifdef HAVE_INTTYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000615# include <inttypes.h>
Cullen Jennings235513a2005-09-21 22:51:36 +0000616#endif
jfigusc7e66e32013-05-08 11:32:55 -0400617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000621# include <unistd.h>
622#endif"
623
jfigusc7e66e32013-05-08 11:32:55 -0400624ac_subst_vars='LTLIBOBJS
625LIBOBJS
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200626HAVE_PKG_CONFIG
627PKG_CONFIG
jfigusc7e66e32013-05-08 11:32:55 -0400628GDOI_OBJS
Bernardo Torresb3c51422014-10-14 12:40:09 -0300629HAVE_PCAP
jfigusc7e66e32013-05-08 11:32:55 -0400630HMAC_OBJS
631RNG_EXTRA_OBJS
632RNG_OBJS
633AES_ICM_OBJS
634USE_OPENSSL
635EXE
636host_os
637host_vendor
638host_cpu
639host
640build_os
641build_vendor
642build_cpu
643build
644EGREP
645GREP
646CPP
647INSTALL_DATA
648INSTALL_SCRIPT
649INSTALL_PROGRAM
650OBJEXT
651EXEEXT
652ac_ct_CC
653CPPFLAGS
654LDFLAGS
655CFLAGS
656CC
657RANLIB
658target_alias
659host_alias
660build_alias
661LIBS
662ECHO_T
663ECHO_N
664ECHO_C
665DEFS
666mandir
667localedir
668libdir
669psdir
670pdfdir
671dvidir
672htmldir
673infodir
674docdir
675oldincludedir
676includedir
677localstatedir
678sharedstatedir
679sysconfdir
680datadir
681datarootdir
682libexecdir
683sbindir
684bindir
685program_transform_name
686prefix
687exec_prefix
688PACKAGE_URL
689PACKAGE_BUGREPORT
690PACKAGE_STRING
691PACKAGE_VERSION
692PACKAGE_TARNAME
693PACKAGE_NAME
694PATH_SEPARATOR
695SHELL'
Cullen Jennings235513a2005-09-21 22:51:36 +0000696ac_subst_files=''
jfigusc7e66e32013-05-08 11:32:55 -0400697ac_user_opts='
698enable_option_checking
699enable_kernel_linux
700enable_debug
701enable_generic_aesicm
702enable_openssl
703enable_syslog
704enable_stdout
705enable_console
706enable_gdoi
707'
708 ac_precious_vars='build_alias
709host_alias
710target_alias
711CC
712CFLAGS
713LDFLAGS
714LIBS
715CPPFLAGS
716CPP'
717
Cullen Jennings235513a2005-09-21 22:51:36 +0000718
719# Initialize some variables set by options.
720ac_init_help=
721ac_init_version=false
jfigusc7e66e32013-05-08 11:32:55 -0400722ac_unrecognized_opts=
723ac_unrecognized_sep=
Cullen Jennings235513a2005-09-21 22:51:36 +0000724# The variables have the same names as the options, with
725# dashes changed to underlines.
726cache_file=/dev/null
727exec_prefix=NONE
728no_create=
729no_recursion=
730prefix=NONE
731program_prefix=NONE
732program_suffix=NONE
733program_transform_name=s,x,x,
734silent=
735site=
736srcdir=
737verbose=
738x_includes=NONE
739x_libraries=NONE
740
741# Installation directory options.
742# These are left unexpanded so users can "make install exec_prefix=/foo"
743# and all the variables that are supposed to be based on exec_prefix
744# by default will actually change.
745# Use braces instead of parens because sh, perl, etc. also accept them.
jfigusc7e66e32013-05-08 11:32:55 -0400746# (The list follows the same order as the GNU Coding Standards.)
Cullen Jennings235513a2005-09-21 22:51:36 +0000747bindir='${exec_prefix}/bin'
748sbindir='${exec_prefix}/sbin'
749libexecdir='${exec_prefix}/libexec'
jfigusc7e66e32013-05-08 11:32:55 -0400750datarootdir='${prefix}/share'
751datadir='${datarootdir}'
Cullen Jennings235513a2005-09-21 22:51:36 +0000752sysconfdir='${prefix}/etc'
753sharedstatedir='${prefix}/com'
754localstatedir='${prefix}/var'
Cullen Jennings235513a2005-09-21 22:51:36 +0000755includedir='${prefix}/include'
756oldincludedir='/usr/include'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200757docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
jfigusc7e66e32013-05-08 11:32:55 -0400758infodir='${datarootdir}/info'
759htmldir='${docdir}'
760dvidir='${docdir}'
761pdfdir='${docdir}'
762psdir='${docdir}'
763libdir='${exec_prefix}/lib'
764localedir='${datarootdir}/locale'
765mandir='${datarootdir}/man'
Cullen Jennings235513a2005-09-21 22:51:36 +0000766
767ac_prev=
jfigusc7e66e32013-05-08 11:32:55 -0400768ac_dashdash=
Cullen Jennings235513a2005-09-21 22:51:36 +0000769for ac_option
770do
771 # If the previous option needs an argument, assign it.
772 if test -n "$ac_prev"; then
jfigusc7e66e32013-05-08 11:32:55 -0400773 eval $ac_prev=\$ac_option
Cullen Jennings235513a2005-09-21 22:51:36 +0000774 ac_prev=
775 continue
776 fi
777
jfigusc7e66e32013-05-08 11:32:55 -0400778 case $ac_option in
779 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
780 *=) ac_optarg= ;;
781 *) ac_optarg=yes ;;
782 esac
Cullen Jennings235513a2005-09-21 22:51:36 +0000783
784 # Accept the important Cygnus configure options, so we can diagnose typos.
785
jfigusc7e66e32013-05-08 11:32:55 -0400786 case $ac_dashdash$ac_option in
787 --)
788 ac_dashdash=yes ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000789
790 -bindir | --bindir | --bindi | --bind | --bin | --bi)
791 ac_prev=bindir ;;
792 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
793 bindir=$ac_optarg ;;
794
795 -build | --build | --buil | --bui | --bu)
796 ac_prev=build_alias ;;
797 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
798 build_alias=$ac_optarg ;;
799
800 -cache-file | --cache-file | --cache-fil | --cache-fi \
801 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
802 ac_prev=cache_file ;;
803 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
804 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
805 cache_file=$ac_optarg ;;
806
807 --config-cache | -C)
808 cache_file=config.cache ;;
809
jfigusc7e66e32013-05-08 11:32:55 -0400810 -datadir | --datadir | --datadi | --datad)
Cullen Jennings235513a2005-09-21 22:51:36 +0000811 ac_prev=datadir ;;
jfigusc7e66e32013-05-08 11:32:55 -0400812 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000813 datadir=$ac_optarg ;;
814
jfigusc7e66e32013-05-08 11:32:55 -0400815 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
816 | --dataroo | --dataro | --datar)
817 ac_prev=datarootdir ;;
818 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
819 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
820 datarootdir=$ac_optarg ;;
821
Cullen Jennings235513a2005-09-21 22:51:36 +0000822 -disable-* | --disable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400823 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000824 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400825 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
826 as_fn_error $? "invalid feature name: $ac_useropt"
827 ac_useropt_orig=$ac_useropt
828 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
829 case $ac_user_opts in
830 *"
831"enable_$ac_useropt"
832"*) ;;
833 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
834 ac_unrecognized_sep=', ';;
835 esac
836 eval enable_$ac_useropt=no ;;
837
838 -docdir | --docdir | --docdi | --doc | --do)
839 ac_prev=docdir ;;
840 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
841 docdir=$ac_optarg ;;
842
843 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
844 ac_prev=dvidir ;;
845 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
846 dvidir=$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000847
848 -enable-* | --enable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400849 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000850 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 as_fn_error $? "invalid feature name: $ac_useropt"
853 ac_useropt_orig=$ac_useropt
854 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855 case $ac_user_opts in
856 *"
857"enable_$ac_useropt"
858"*) ;;
859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
860 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000861 esac
jfigusc7e66e32013-05-08 11:32:55 -0400862 eval enable_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000863
864 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
865 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
866 | --exec | --exe | --ex)
867 ac_prev=exec_prefix ;;
868 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
869 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
870 | --exec=* | --exe=* | --ex=*)
871 exec_prefix=$ac_optarg ;;
872
873 -gas | --gas | --ga | --g)
874 # Obsolete; use --with-gas.
875 with_gas=yes ;;
876
877 -help | --help | --hel | --he | -h)
878 ac_init_help=long ;;
879 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
880 ac_init_help=recursive ;;
881 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
882 ac_init_help=short ;;
883
884 -host | --host | --hos | --ho)
885 ac_prev=host_alias ;;
886 -host=* | --host=* | --hos=* | --ho=*)
887 host_alias=$ac_optarg ;;
888
jfigusc7e66e32013-05-08 11:32:55 -0400889 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
890 ac_prev=htmldir ;;
891 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
892 | --ht=*)
893 htmldir=$ac_optarg ;;
894
Cullen Jennings235513a2005-09-21 22:51:36 +0000895 -includedir | --includedir | --includedi | --included | --include \
896 | --includ | --inclu | --incl | --inc)
897 ac_prev=includedir ;;
898 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
899 | --includ=* | --inclu=* | --incl=* | --inc=*)
900 includedir=$ac_optarg ;;
901
902 -infodir | --infodir | --infodi | --infod | --info | --inf)
903 ac_prev=infodir ;;
904 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
905 infodir=$ac_optarg ;;
906
907 -libdir | --libdir | --libdi | --libd)
908 ac_prev=libdir ;;
909 -libdir=* | --libdir=* | --libdi=* | --libd=*)
910 libdir=$ac_optarg ;;
911
912 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
913 | --libexe | --libex | --libe)
914 ac_prev=libexecdir ;;
915 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
916 | --libexe=* | --libex=* | --libe=*)
917 libexecdir=$ac_optarg ;;
918
jfigusc7e66e32013-05-08 11:32:55 -0400919 -localedir | --localedir | --localedi | --localed | --locale)
920 ac_prev=localedir ;;
921 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
922 localedir=$ac_optarg ;;
923
Cullen Jennings235513a2005-09-21 22:51:36 +0000924 -localstatedir | --localstatedir | --localstatedi | --localstated \
jfigusc7e66e32013-05-08 11:32:55 -0400925 | --localstate | --localstat | --localsta | --localst | --locals)
Cullen Jennings235513a2005-09-21 22:51:36 +0000926 ac_prev=localstatedir ;;
927 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
jfigusc7e66e32013-05-08 11:32:55 -0400928 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000929 localstatedir=$ac_optarg ;;
930
931 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
932 ac_prev=mandir ;;
933 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
934 mandir=$ac_optarg ;;
935
936 -nfp | --nfp | --nf)
937 # Obsolete; use --without-fp.
938 with_fp=no ;;
939
940 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
941 | --no-cr | --no-c | -n)
942 no_create=yes ;;
943
944 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
945 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
946 no_recursion=yes ;;
947
948 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
949 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
950 | --oldin | --oldi | --old | --ol | --o)
951 ac_prev=oldincludedir ;;
952 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
953 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
954 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
955 oldincludedir=$ac_optarg ;;
956
957 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
958 ac_prev=prefix ;;
959 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
960 prefix=$ac_optarg ;;
961
962 -program-prefix | --program-prefix | --program-prefi | --program-pref \
963 | --program-pre | --program-pr | --program-p)
964 ac_prev=program_prefix ;;
965 -program-prefix=* | --program-prefix=* | --program-prefi=* \
966 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
967 program_prefix=$ac_optarg ;;
968
969 -program-suffix | --program-suffix | --program-suffi | --program-suff \
970 | --program-suf | --program-su | --program-s)
971 ac_prev=program_suffix ;;
972 -program-suffix=* | --program-suffix=* | --program-suffi=* \
973 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
974 program_suffix=$ac_optarg ;;
975
976 -program-transform-name | --program-transform-name \
977 | --program-transform-nam | --program-transform-na \
978 | --program-transform-n | --program-transform- \
979 | --program-transform | --program-transfor \
980 | --program-transfo | --program-transf \
981 | --program-trans | --program-tran \
982 | --progr-tra | --program-tr | --program-t)
983 ac_prev=program_transform_name ;;
984 -program-transform-name=* | --program-transform-name=* \
985 | --program-transform-nam=* | --program-transform-na=* \
986 | --program-transform-n=* | --program-transform-=* \
987 | --program-transform=* | --program-transfor=* \
988 | --program-transfo=* | --program-transf=* \
989 | --program-trans=* | --program-tran=* \
990 | --progr-tra=* | --program-tr=* | --program-t=*)
991 program_transform_name=$ac_optarg ;;
992
jfigusc7e66e32013-05-08 11:32:55 -0400993 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
994 ac_prev=pdfdir ;;
995 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
996 pdfdir=$ac_optarg ;;
997
998 -psdir | --psdir | --psdi | --psd | --ps)
999 ac_prev=psdir ;;
1000 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1001 psdir=$ac_optarg ;;
1002
Cullen Jennings235513a2005-09-21 22:51:36 +00001003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1004 | -silent | --silent | --silen | --sile | --sil)
1005 silent=yes ;;
1006
1007 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1008 ac_prev=sbindir ;;
1009 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1010 | --sbi=* | --sb=*)
1011 sbindir=$ac_optarg ;;
1012
1013 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1014 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1015 | --sharedst | --shareds | --shared | --share | --shar \
1016 | --sha | --sh)
1017 ac_prev=sharedstatedir ;;
1018 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1019 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1020 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1021 | --sha=* | --sh=*)
1022 sharedstatedir=$ac_optarg ;;
1023
1024 -site | --site | --sit)
1025 ac_prev=site ;;
1026 -site=* | --site=* | --sit=*)
1027 site=$ac_optarg ;;
1028
1029 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1030 ac_prev=srcdir ;;
1031 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1032 srcdir=$ac_optarg ;;
1033
1034 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1035 | --syscon | --sysco | --sysc | --sys | --sy)
1036 ac_prev=sysconfdir ;;
1037 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1038 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1039 sysconfdir=$ac_optarg ;;
1040
1041 -target | --target | --targe | --targ | --tar | --ta | --t)
1042 ac_prev=target_alias ;;
1043 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1044 target_alias=$ac_optarg ;;
1045
1046 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1047 verbose=yes ;;
1048
1049 -version | --version | --versio | --versi | --vers | -V)
1050 ac_init_version=: ;;
1051
1052 -with-* | --with-*)
jfigusc7e66e32013-05-08 11:32:55 -04001053 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001054 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error $? "invalid package name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1060 *"
1061"with_$ac_useropt"
1062"*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +00001065 esac
jfigusc7e66e32013-05-08 11:32:55 -04001066 eval with_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001067
1068 -without-* | --without-*)
jfigusc7e66e32013-05-08 11:32:55 -04001069 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001070 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error $? "invalid package name: $ac_useropt"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1076 *"
1077"with_$ac_useropt"
1078"*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1081 esac
1082 eval with_$ac_useropt=no ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001083
1084 --x)
1085 # Obsolete; use --with-x.
1086 with_x=yes ;;
1087
1088 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1089 | --x-incl | --x-inc | --x-in | --x-i)
1090 ac_prev=x_includes ;;
1091 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1092 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1093 x_includes=$ac_optarg ;;
1094
1095 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1096 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1097 ac_prev=x_libraries ;;
1098 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1099 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1100 x_libraries=$ac_optarg ;;
1101
jfigusc7e66e32013-05-08 11:32:55 -04001102 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1103Try \`$0 --help' for more information"
Cullen Jennings235513a2005-09-21 22:51:36 +00001104 ;;
1105
1106 *=*)
1107 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001109 case $ac_envvar in #(
1110 '' | [0-9]* | *[!_$as_cr_alnum]* )
1111 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1112 esac
1113 eval $ac_envvar=\$ac_optarg
Cullen Jennings235513a2005-09-21 22:51:36 +00001114 export $ac_envvar ;;
1115
1116 *)
1117 # FIXME: should be removed in autoconf 3.0.
jfigusc7e66e32013-05-08 11:32:55 -04001118 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Cullen Jennings235513a2005-09-21 22:51:36 +00001119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jfigusc7e66e32013-05-08 11:32:55 -04001120 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Cullen Jennings235513a2005-09-21 22:51:36 +00001122 ;;
1123
1124 esac
1125done
1126
1127if test -n "$ac_prev"; then
1128 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jfigusc7e66e32013-05-08 11:32:55 -04001129 as_fn_error $? "missing argument to $ac_option"
Cullen Jennings235513a2005-09-21 22:51:36 +00001130fi
1131
jfigusc7e66e32013-05-08 11:32:55 -04001132if test -n "$ac_unrecognized_opts"; then
1133 case $enable_option_checking in
1134 no) ;;
1135 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1136 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001137 esac
jfigusc7e66e32013-05-08 11:32:55 -04001138fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001139
jfigusc7e66e32013-05-08 11:32:55 -04001140# Check all directory arguments for consistency.
1141for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1142 datadir sysconfdir sharedstatedir localstatedir includedir \
1143 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1144 libdir localedir mandir
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001145do
jfigusc7e66e32013-05-08 11:32:55 -04001146 eval ac_val=\$$ac_var
1147 # Remove trailing slashes.
jfigusa14b5a02013-03-29 12:24:12 -04001148 case $ac_val in
jfigusc7e66e32013-05-08 11:32:55 -04001149 */ )
1150 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1151 eval $ac_var=\$ac_val;;
jfigusa14b5a02013-03-29 12:24:12 -04001152 esac
jfigusc7e66e32013-05-08 11:32:55 -04001153 # Be sure to have absolute directory names.
1154 case $ac_val in
1155 [\\/$]* | ?:[\\/]* ) continue;;
1156 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1157 esac
1158 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Cullen Jennings235513a2005-09-21 22:51:36 +00001159done
1160
1161# There might be people who depend on the old broken behavior: `$host'
1162# used to hold the argument of --host etc.
1163# FIXME: To remove some day.
1164build=$build_alias
1165host=$host_alias
1166target=$target_alias
1167
1168# FIXME: To remove some day.
1169if test "x$host_alias" != x; then
1170 if test "x$build_alias" = x; then
1171 cross_compiling=maybe
Cullen Jennings235513a2005-09-21 22:51:36 +00001172 elif test "x$build_alias" != "x$host_alias"; then
1173 cross_compiling=yes
1174 fi
1175fi
1176
1177ac_tool_prefix=
1178test -n "$host_alias" && ac_tool_prefix=$host_alias-
1179
1180test "$silent" = yes && exec 6>/dev/null
1181
1182
jfigusc7e66e32013-05-08 11:32:55 -04001183ac_pwd=`pwd` && test -n "$ac_pwd" &&
1184ac_ls_di=`ls -di .` &&
1185ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1186 as_fn_error $? "working directory cannot be determined"
1187test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1188 as_fn_error $? "pwd does not report name of working directory"
1189
1190
Cullen Jennings235513a2005-09-21 22:51:36 +00001191# Find the source files, if location was not specified.
1192if test -z "$srcdir"; then
1193 ac_srcdir_defaulted=yes
jfigusc7e66e32013-05-08 11:32:55 -04001194 # Try the directory containing this script, then the parent directory.
1195 ac_confdir=`$as_dirname -- "$as_myself" ||
1196$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1197 X"$as_myself" : 'X\(//\)[^/]' \| \
1198 X"$as_myself" : 'X\(//\)$' \| \
1199 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1200$as_echo X"$as_myself" |
1201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1202 s//\1/
1203 q
1204 }
1205 /^X\(\/\/\)[^/].*/{
1206 s//\1/
1207 q
1208 }
1209 /^X\(\/\/\)$/{
1210 s//\1/
1211 q
1212 }
1213 /^X\(\/\).*/{
1214 s//\1/
1215 q
1216 }
1217 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001218 srcdir=$ac_confdir
jfigusc7e66e32013-05-08 11:32:55 -04001219 if test ! -r "$srcdir/$ac_unique_file"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00001220 srcdir=..
1221 fi
1222else
1223 ac_srcdir_defaulted=no
1224fi
jfigusc7e66e32013-05-08 11:32:55 -04001225if test ! -r "$srcdir/$ac_unique_file"; then
1226 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1227 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Cullen Jennings235513a2005-09-21 22:51:36 +00001228fi
jfigusc7e66e32013-05-08 11:32:55 -04001229ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1230ac_abs_confdir=`(
1231 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1232 pwd)`
1233# When building in place, set srcdir=.
1234if test "$ac_abs_confdir" = "$ac_pwd"; then
1235 srcdir=.
1236fi
1237# Remove unnecessary trailing slashes from srcdir.
1238# Double slashes in file names in object file debugging info
1239# mess up M-x gdb in Emacs.
1240case $srcdir in
1241*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1242esac
1243for ac_var in $ac_precious_vars; do
1244 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1245 eval ac_env_${ac_var}_value=\$${ac_var}
1246 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1248done
Cullen Jennings235513a2005-09-21 22:51:36 +00001249
1250#
1251# Report the --help message.
1252#
1253if test "$ac_init_help" = "long"; then
1254 # Omit some internal or obsolete options to make the list less imposing.
1255 # This message is too long to be a string in the A/UX 3.1 sh.
1256 cat <<_ACEOF
jfigusd6580192014-10-13 10:31:30 -04001257\`configure' configures libsrtp 1.5.x to adapt to many kinds of systems.
Cullen Jennings235513a2005-09-21 22:51:36 +00001258
1259Usage: $0 [OPTION]... [VAR=VALUE]...
1260
1261To assign environment variables (e.g., CC, CFLAGS...), specify them as
1262VAR=VALUE. See below for descriptions of some of the useful variables.
1263
1264Defaults for the options are specified in brackets.
1265
1266Configuration:
1267 -h, --help display this help and exit
1268 --help=short display options specific to this package
1269 --help=recursive display the short help of all the included packages
1270 -V, --version display version information and exit
jfigusc7e66e32013-05-08 11:32:55 -04001271 -q, --quiet, --silent do not print \`checking ...' messages
Cullen Jennings235513a2005-09-21 22:51:36 +00001272 --cache-file=FILE cache test results in FILE [disabled]
1273 -C, --config-cache alias for \`--cache-file=config.cache'
1274 -n, --no-create do not create output files
1275 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1276
Cullen Jennings235513a2005-09-21 22:51:36 +00001277Installation directories:
1278 --prefix=PREFIX install architecture-independent files in PREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001279 [$ac_default_prefix]
Cullen Jennings235513a2005-09-21 22:51:36 +00001280 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001281 [PREFIX]
Cullen Jennings235513a2005-09-21 22:51:36 +00001282
1283By default, \`make install' will install all the files in
1284\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1285an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1286for instance \`--prefix=\$HOME'.
1287
1288For better control, use the options below.
1289
1290Fine tuning of the installation directories:
jfigusc7e66e32013-05-08 11:32:55 -04001291 --bindir=DIR user executables [EPREFIX/bin]
1292 --sbindir=DIR system admin executables [EPREFIX/sbin]
1293 --libexecdir=DIR program executables [EPREFIX/libexec]
1294 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1295 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1296 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1297 --libdir=DIR object code libraries [EPREFIX/lib]
1298 --includedir=DIR C header files [PREFIX/include]
1299 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1300 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1301 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1302 --infodir=DIR info documentation [DATAROOTDIR/info]
1303 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1304 --mandir=DIR man documentation [DATAROOTDIR/man]
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001305 --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp]
jfigusc7e66e32013-05-08 11:32:55 -04001306 --htmldir=DIR html documentation [DOCDIR]
1307 --dvidir=DIR dvi documentation [DOCDIR]
1308 --pdfdir=DIR pdf documentation [DOCDIR]
1309 --psdir=DIR ps documentation [DOCDIR]
Cullen Jennings235513a2005-09-21 22:51:36 +00001310_ACEOF
1311
1312 cat <<\_ACEOF
1313
1314System types:
1315 --build=BUILD configure for building on BUILD [guessed]
1316 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1317_ACEOF
1318fi
1319
1320if test -n "$ac_init_help"; then
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001321 case $ac_init_help in
jfigusd6580192014-10-13 10:31:30 -04001322 short | recursive ) echo "Configuration of libsrtp 1.5.x:";;
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001323 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00001324 cat <<\_ACEOF
1325
1326Optional Features:
jfigusc7e66e32013-05-08 11:32:55 -04001327 --disable-option-checking ignore unrecognized --enable/--with options
Cullen Jennings235513a2005-09-21 22:51:36 +00001328 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1329 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Marcus Sundberg64536cc2005-10-03 15:23:13 +00001330 --enable-kernel-linux build library to run in Linux kernel context
David McGrewb67061f2005-09-28 14:23:06 +00001331 --disable-debug do not compile in dynamic debugging system
1332 --enable-generic-aesicm compile in changes for ISMAcryp
jfigusc7e66e32013-05-08 11:32:55 -04001333 --enable-openssl compile in OpenSSL crypto engine
David McGrewb67061f2005-09-28 14:23:06 +00001334 --enable-syslog use syslog for error reporting
1335 --disable-stdout don't use stdout for error reporting
1336 --enable-console use /dev/console for error reporting
1337 --enable-gdoi enable GDOI key management
Cullen Jennings235513a2005-09-21 22:51:36 +00001338
1339Some influential environment variables:
1340 CC C compiler command
1341 CFLAGS C compiler flags
1342 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1343 nonstandard directory <lib dir>
jfigusc7e66e32013-05-08 11:32:55 -04001344 LIBS libraries to pass to the linker, e.g. -l<library>
1345 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1346 you have headers in a nonstandard directory <include dir>
Cullen Jennings235513a2005-09-21 22:51:36 +00001347 CPP C preprocessor
1348
1349Use these variables to override the choices made by `configure' or to help
1350it to find libraries and programs with nonstandard names/locations.
1351
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001352Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00001353_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001354ac_status=$?
Cullen Jennings235513a2005-09-21 22:51:36 +00001355fi
1356
1357if test "$ac_init_help" = "recursive"; then
1358 # If there are subdirs, report their specific --help.
Cullen Jennings235513a2005-09-21 22:51:36 +00001359 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jfigusc7e66e32013-05-08 11:32:55 -04001360 test -d "$ac_dir" ||
1361 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1362 continue
Cullen Jennings235513a2005-09-21 22:51:36 +00001363 ac_builddir=.
1364
jfigusc7e66e32013-05-08 11:32:55 -04001365case "$ac_dir" in
1366.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1367*)
1368 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1369 # A ".." for each directory in $ac_dir_suffix.
1370 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1371 case $ac_top_builddir_sub in
1372 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1373 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1374 esac ;;
1375esac
1376ac_abs_top_builddir=$ac_pwd
1377ac_abs_builddir=$ac_pwd$ac_dir_suffix
1378# for backward compatibility:
1379ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00001380
1381case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04001382 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00001383 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04001384 ac_top_srcdir=$ac_top_builddir_sub
1385 ac_abs_top_srcdir=$ac_pwd ;;
1386 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001387 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04001388 ac_top_srcdir=$srcdir
1389 ac_abs_top_srcdir=$srcdir ;;
1390 *) # Relative name.
1391 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1392 ac_top_srcdir=$ac_top_build_prefix$srcdir
1393 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001394esac
jfigusc7e66e32013-05-08 11:32:55 -04001395ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001396
jfigusc7e66e32013-05-08 11:32:55 -04001397 cd "$ac_dir" || { ac_status=$?; continue; }
1398 # Check for guested configure.
1399 if test -f "$ac_srcdir/configure.gnu"; then
1400 echo &&
1401 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1402 elif test -f "$ac_srcdir/configure"; then
1403 echo &&
1404 $SHELL "$ac_srcdir/configure" --help=recursive
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001405 else
jfigusc7e66e32013-05-08 11:32:55 -04001406 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1407 fi || ac_status=$?
1408 cd "$ac_pwd" || { ac_status=$?; break; }
Cullen Jennings235513a2005-09-21 22:51:36 +00001409 done
1410fi
1411
jfigusc7e66e32013-05-08 11:32:55 -04001412test -n "$ac_init_help" && exit $ac_status
Cullen Jennings235513a2005-09-21 22:51:36 +00001413if $ac_init_version; then
1414 cat <<\_ACEOF
jfigusd6580192014-10-13 10:31:30 -04001415libsrtp configure 1.5.x
jfigusc7e66e32013-05-08 11:32:55 -04001416generated by GNU Autoconf 2.69
Cullen Jennings235513a2005-09-21 22:51:36 +00001417
jfigusc7e66e32013-05-08 11:32:55 -04001418Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00001419This configure script is free software; the Free Software Foundation
1420gives unlimited permission to copy, distribute and modify it.
1421_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001422 exit
Cullen Jennings235513a2005-09-21 22:51:36 +00001423fi
jfigusc7e66e32013-05-08 11:32:55 -04001424
1425## ------------------------ ##
1426## Autoconf initialization. ##
1427## ------------------------ ##
1428
1429# ac_fn_c_try_compile LINENO
1430# --------------------------
1431# Try to compile conftest.$ac_ext, and return whether this succeeded.
1432ac_fn_c_try_compile ()
1433{
1434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1435 rm -f conftest.$ac_objext
1436 if { { ac_try="$ac_compile"
1437case "(($ac_try" in
1438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1439 *) ac_try_echo=$ac_try;;
1440esac
1441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1442$as_echo "$ac_try_echo"; } >&5
1443 (eval "$ac_compile") 2>conftest.err
1444 ac_status=$?
1445 if test -s conftest.err; then
1446 grep -v '^ *+' conftest.err >conftest.er1
1447 cat conftest.er1 >&5
1448 mv -f conftest.er1 conftest.err
1449 fi
1450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1451 test $ac_status = 0; } && {
1452 test -z "$ac_c_werror_flag" ||
1453 test ! -s conftest.err
1454 } && test -s conftest.$ac_objext; then :
1455 ac_retval=0
1456else
1457 $as_echo "$as_me: failed program was:" >&5
1458sed 's/^/| /' conftest.$ac_ext >&5
1459
1460 ac_retval=1
1461fi
1462 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1463 as_fn_set_status $ac_retval
1464
1465} # ac_fn_c_try_compile
1466
1467# ac_fn_c_try_run LINENO
1468# ----------------------
1469# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1470# that executables *can* be run.
1471ac_fn_c_try_run ()
1472{
1473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474 if { { ac_try="$ac_link"
1475case "(($ac_try" in
1476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1477 *) ac_try_echo=$ac_try;;
1478esac
1479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1480$as_echo "$ac_try_echo"; } >&5
1481 (eval "$ac_link") 2>&5
1482 ac_status=$?
1483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1484 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1485 { { case "(($ac_try" in
1486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487 *) ac_try_echo=$ac_try;;
1488esac
1489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490$as_echo "$ac_try_echo"; } >&5
1491 (eval "$ac_try") 2>&5
1492 ac_status=$?
1493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1494 test $ac_status = 0; }; }; then :
1495 ac_retval=0
1496else
1497 $as_echo "$as_me: program exited with status $ac_status" >&5
1498 $as_echo "$as_me: failed program was:" >&5
1499sed 's/^/| /' conftest.$ac_ext >&5
1500
1501 ac_retval=$ac_status
1502fi
1503 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1504 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1505 as_fn_set_status $ac_retval
1506
1507} # ac_fn_c_try_run
1508
1509# ac_fn_c_try_cpp LINENO
1510# ----------------------
1511# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1512ac_fn_c_try_cpp ()
1513{
1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515 if { { ac_try="$ac_cpp conftest.$ac_ext"
1516case "(($ac_try" in
1517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518 *) ac_try_echo=$ac_try;;
1519esac
1520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521$as_echo "$ac_try_echo"; } >&5
1522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1523 ac_status=$?
1524 if test -s conftest.err; then
1525 grep -v '^ *+' conftest.err >conftest.er1
1526 cat conftest.er1 >&5
1527 mv -f conftest.er1 conftest.err
1528 fi
1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530 test $ac_status = 0; } > conftest.i && {
1531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1532 test ! -s conftest.err
1533 }; then :
1534 ac_retval=0
1535else
1536 $as_echo "$as_me: failed program was:" >&5
1537sed 's/^/| /' conftest.$ac_ext >&5
1538
1539 ac_retval=1
1540fi
1541 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1542 as_fn_set_status $ac_retval
1543
1544} # ac_fn_c_try_cpp
1545
1546# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1547# -------------------------------------------------------
1548# Tests whether HEADER exists and can be compiled using the include files in
1549# INCLUDES, setting the cache variable VAR accordingly.
1550ac_fn_c_check_header_compile ()
1551{
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1554$as_echo_n "checking for $2... " >&6; }
1555if eval \${$3+:} false; then :
1556 $as_echo_n "(cached) " >&6
1557else
1558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1559/* end confdefs.h. */
1560$4
1561#include <$2>
1562_ACEOF
1563if ac_fn_c_try_compile "$LINENO"; then :
1564 eval "$3=yes"
1565else
1566 eval "$3=no"
1567fi
1568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1569fi
1570eval ac_res=\$$3
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1572$as_echo "$ac_res" >&6; }
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574
1575} # ac_fn_c_check_header_compile
1576
1577# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1578# -------------------------------------------------------
1579# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1580# the include files in INCLUDES and setting the cache variable VAR
1581# accordingly.
1582ac_fn_c_check_header_mongrel ()
1583{
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 if eval \${$3+:} false; then :
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1587$as_echo_n "checking for $2... " >&6; }
1588if eval \${$3+:} false; then :
1589 $as_echo_n "(cached) " >&6
1590fi
1591eval ac_res=\$$3
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1593$as_echo "$ac_res" >&6; }
1594else
1595 # Is the header compilable?
1596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1597$as_echo_n "checking $2 usability... " >&6; }
1598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1599/* end confdefs.h. */
1600$4
1601#include <$2>
1602_ACEOF
1603if ac_fn_c_try_compile "$LINENO"; then :
1604 ac_header_compiler=yes
1605else
1606 ac_header_compiler=no
1607fi
1608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1610$as_echo "$ac_header_compiler" >&6; }
1611
1612# Is the header present?
1613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1614$as_echo_n "checking $2 presence... " >&6; }
1615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616/* end confdefs.h. */
1617#include <$2>
1618_ACEOF
1619if ac_fn_c_try_cpp "$LINENO"; then :
1620 ac_header_preproc=yes
1621else
1622 ac_header_preproc=no
1623fi
1624rm -f conftest.err conftest.i conftest.$ac_ext
1625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1626$as_echo "$ac_header_preproc" >&6; }
1627
1628# So? What about this header?
1629case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1630 yes:no: )
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1632$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1634$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1635 ;;
1636 no:yes:* )
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1638$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1640$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1642$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1644$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1646$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001647( $as_echo "## ------------------------------------------------------ ##
1648## Report this to https://github.com/cisco/libsrtp/issues ##
1649## ------------------------------------------------------ ##"
1650 ) | sed "s/^/$as_me: WARNING: /" >&2
jfigusc7e66e32013-05-08 11:32:55 -04001651 ;;
1652esac
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654$as_echo_n "checking for $2... " >&6; }
1655if eval \${$3+:} false; then :
1656 $as_echo_n "(cached) " >&6
1657else
1658 eval "$3=\$ac_header_compiler"
1659fi
1660eval ac_res=\$$3
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662$as_echo "$ac_res" >&6; }
1663fi
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665
1666} # ac_fn_c_check_header_mongrel
1667
1668# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1669# -------------------------------------------
1670# Tests whether TYPE exists after having included INCLUDES, setting cache
1671# variable VAR accordingly.
1672ac_fn_c_check_type ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676$as_echo_n "checking for $2... " >&6; }
1677if eval \${$3+:} false; then :
1678 $as_echo_n "(cached) " >&6
1679else
1680 eval "$3=no"
1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682/* end confdefs.h. */
1683$4
1684int
1685main ()
1686{
1687if (sizeof ($2))
1688 return 0;
1689 ;
1690 return 0;
1691}
1692_ACEOF
1693if ac_fn_c_try_compile "$LINENO"; then :
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695/* end confdefs.h. */
1696$4
1697int
1698main ()
1699{
1700if (sizeof (($2)))
1701 return 0;
1702 ;
1703 return 0;
1704}
1705_ACEOF
1706if ac_fn_c_try_compile "$LINENO"; then :
1707
1708else
1709 eval "$3=yes"
1710fi
1711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712fi
1713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1714fi
1715eval ac_res=\$$3
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717$as_echo "$ac_res" >&6; }
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719
1720} # ac_fn_c_check_type
1721
1722# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1723# --------------------------------------------
1724# Tries to find the compile-time value of EXPR in a program that includes
1725# INCLUDES, setting VAR accordingly. Returns whether the value could be
1726# computed
1727ac_fn_c_compute_int ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if test "$cross_compiling" = yes; then
1731 # Depending upon the size, compute the lo and hi bounds.
1732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733/* end confdefs.h. */
1734$4
1735int
1736main ()
1737{
1738static int test_array [1 - 2 * !(($2) >= 0)];
1739test_array [0] = 0;
1740return test_array [0];
1741
1742 ;
1743 return 0;
1744}
1745_ACEOF
1746if ac_fn_c_try_compile "$LINENO"; then :
1747 ac_lo=0 ac_mid=0
1748 while :; do
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750/* end confdefs.h. */
1751$4
1752int
1753main ()
1754{
1755static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1756test_array [0] = 0;
1757return test_array [0];
1758
1759 ;
1760 return 0;
1761}
1762_ACEOF
1763if ac_fn_c_try_compile "$LINENO"; then :
1764 ac_hi=$ac_mid; break
1765else
1766 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1767 if test $ac_lo -le $ac_mid; then
1768 ac_lo= ac_hi=
1769 break
1770 fi
1771 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1772fi
1773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 done
1775else
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777/* end confdefs.h. */
1778$4
1779int
1780main ()
1781{
1782static int test_array [1 - 2 * !(($2) < 0)];
1783test_array [0] = 0;
1784return test_array [0];
1785
1786 ;
1787 return 0;
1788}
1789_ACEOF
1790if ac_fn_c_try_compile "$LINENO"; then :
1791 ac_hi=-1 ac_mid=-1
1792 while :; do
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794/* end confdefs.h. */
1795$4
1796int
1797main ()
1798{
1799static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1800test_array [0] = 0;
1801return test_array [0];
1802
1803 ;
1804 return 0;
1805}
1806_ACEOF
1807if ac_fn_c_try_compile "$LINENO"; then :
1808 ac_lo=$ac_mid; break
1809else
1810 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1811 if test $ac_mid -le $ac_hi; then
1812 ac_lo= ac_hi=
1813 break
1814 fi
1815 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1816fi
1817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 done
1819else
1820 ac_lo= ac_hi=
1821fi
1822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823fi
1824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825# Binary search between lo and hi bounds.
1826while test "x$ac_lo" != "x$ac_hi"; do
1827 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h. */
1830$4
1831int
1832main ()
1833{
1834static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1835test_array [0] = 0;
1836return test_array [0];
1837
1838 ;
1839 return 0;
1840}
1841_ACEOF
1842if ac_fn_c_try_compile "$LINENO"; then :
1843 ac_hi=$ac_mid
1844else
1845 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1846fi
1847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1848done
1849case $ac_lo in #((
1850?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1851'') ac_retval=1 ;;
1852esac
1853 else
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855/* end confdefs.h. */
1856$4
1857static long int longval () { return $2; }
1858static unsigned long int ulongval () { return $2; }
1859#include <stdio.h>
1860#include <stdlib.h>
1861int
1862main ()
1863{
1864
1865 FILE *f = fopen ("conftest.val", "w");
1866 if (! f)
1867 return 1;
1868 if (($2) < 0)
1869 {
1870 long int i = longval ();
1871 if (i != ($2))
1872 return 1;
1873 fprintf (f, "%ld", i);
1874 }
1875 else
1876 {
1877 unsigned long int i = ulongval ();
1878 if (i != ($2))
1879 return 1;
1880 fprintf (f, "%lu", i);
1881 }
1882 /* Do not output a trailing newline, as this causes \r\n confusion
1883 on some platforms. */
1884 return ferror (f) || fclose (f) != 0;
1885
1886 ;
1887 return 0;
1888}
1889_ACEOF
1890if ac_fn_c_try_run "$LINENO"; then :
1891 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1892else
1893 ac_retval=1
1894fi
1895rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1896 conftest.$ac_objext conftest.beam conftest.$ac_ext
1897rm -f conftest.val
1898
1899 fi
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 as_fn_set_status $ac_retval
1902
1903} # ac_fn_c_compute_int
1904
1905# ac_fn_c_try_link LINENO
1906# -----------------------
1907# Try to link conftest.$ac_ext, and return whether this succeeded.
1908ac_fn_c_try_link ()
1909{
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 rm -f conftest.$ac_objext conftest$ac_exeext
1912 if { { ac_try="$ac_link"
1913case "(($ac_try" in
1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915 *) ac_try_echo=$ac_try;;
1916esac
1917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918$as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_link") 2>conftest.err
1920 ac_status=$?
1921 if test -s conftest.err; then
1922 grep -v '^ *+' conftest.err >conftest.er1
1923 cat conftest.er1 >&5
1924 mv -f conftest.er1 conftest.err
1925 fi
1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927 test $ac_status = 0; } && {
1928 test -z "$ac_c_werror_flag" ||
1929 test ! -s conftest.err
1930 } && test -s conftest$ac_exeext && {
1931 test "$cross_compiling" = yes ||
1932 test -x conftest$ac_exeext
1933 }; then :
1934 ac_retval=0
1935else
1936 $as_echo "$as_me: failed program was:" >&5
1937sed 's/^/| /' conftest.$ac_ext >&5
1938
1939 ac_retval=1
1940fi
1941 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1942 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1943 # interfere with the next link command; also delete a directory that is
1944 # left behind by Apple's compiler. We do this before executing the actions.
1945 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947 as_fn_set_status $ac_retval
1948
1949} # ac_fn_c_try_link
1950
1951# ac_fn_c_check_func LINENO FUNC VAR
1952# ----------------------------------
1953# Tests whether FUNC exists, setting the cache variable VAR accordingly
1954ac_fn_c_check_func ()
1955{
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958$as_echo_n "checking for $2... " >&6; }
1959if eval \${$3+:} false; then :
1960 $as_echo_n "(cached) " >&6
1961else
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963/* end confdefs.h. */
1964/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1966#define $2 innocuous_$2
1967
1968/* System header to define __stub macros and hopefully few prototypes,
1969 which can conflict with char $2 (); below.
1970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1971 <limits.h> exists even on freestanding compilers. */
1972
1973#ifdef __STDC__
1974# include <limits.h>
1975#else
1976# include <assert.h>
1977#endif
1978
1979#undef $2
1980
1981/* Override any GCC internal prototype to avoid an error.
1982 Use char because int might match the return type of a GCC
1983 builtin and then its argument prototype would still apply. */
1984#ifdef __cplusplus
1985extern "C"
1986#endif
1987char $2 ();
1988/* The GNU C library defines this for functions which it implements
1989 to always fail with ENOSYS. Some functions are actually named
1990 something starting with __ and the normal name is an alias. */
1991#if defined __stub_$2 || defined __stub___$2
1992choke me
1993#endif
1994
1995int
1996main ()
1997{
1998return $2 ();
1999 ;
2000 return 0;
2001}
2002_ACEOF
2003if ac_fn_c_try_link "$LINENO"; then :
2004 eval "$3=yes"
2005else
2006 eval "$3=no"
2007fi
2008rm -f core conftest.err conftest.$ac_objext \
2009 conftest$ac_exeext conftest.$ac_ext
2010fi
2011eval ac_res=\$$3
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013$as_echo "$ac_res" >&6; }
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015
2016} # ac_fn_c_check_func
2017cat >config.log <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002018This file contains any messages produced by compilers while
2019running configure, to aid debugging if configure makes a mistake.
2020
jfigusd6580192014-10-13 10:31:30 -04002021It was created by libsrtp $as_me 1.5.x, which was
jfigusc7e66e32013-05-08 11:32:55 -04002022generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00002023
2024 $ $0 $@
2025
2026_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002027exec 5>>config.log
Cullen Jennings235513a2005-09-21 22:51:36 +00002028{
2029cat <<_ASUNAME
2030## --------- ##
2031## Platform. ##
2032## --------- ##
2033
2034hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2035uname -m = `(uname -m) 2>/dev/null || echo unknown`
2036uname -r = `(uname -r) 2>/dev/null || echo unknown`
2037uname -s = `(uname -s) 2>/dev/null || echo unknown`
2038uname -v = `(uname -v) 2>/dev/null || echo unknown`
2039
2040/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2041/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2042
2043/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2044/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2045/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
jfigusc7e66e32013-05-08 11:32:55 -04002046/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Cullen Jennings235513a2005-09-21 22:51:36 +00002047/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2048/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2049/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2050
2051_ASUNAME
2052
2053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054for as_dir in $PATH
2055do
2056 IFS=$as_save_IFS
2057 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002058 $as_echo "PATH: $as_dir"
2059 done
2060IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002061
2062} >&5
2063
2064cat >&5 <<_ACEOF
2065
2066
2067## ----------- ##
2068## Core tests. ##
2069## ----------- ##
2070
2071_ACEOF
2072
2073
2074# Keep a trace of the command line.
2075# Strip out --no-create and --no-recursion so they do not pile up.
2076# Strip out --silent because we don't want to record it for future runs.
2077# Also quote any args containing shell meta-characters.
2078# Make two passes to allow for proper duplicate-argument suppression.
2079ac_configure_args=
2080ac_configure_args0=
2081ac_configure_args1=
Cullen Jennings235513a2005-09-21 22:51:36 +00002082ac_must_keep_next=false
2083for ac_pass in 1 2
2084do
2085 for ac_arg
2086 do
2087 case $ac_arg in
2088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2090 | -silent | --silent | --silen | --sile | --sil)
2091 continue ;;
jfigusc7e66e32013-05-08 11:32:55 -04002092 *\'*)
2093 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002094 esac
2095 case $ac_pass in
jfigusc7e66e32013-05-08 11:32:55 -04002096 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002097 2)
jfigusc7e66e32013-05-08 11:32:55 -04002098 as_fn_append ac_configure_args1 " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002099 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00002100 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00002101 else
David McGrewfec49dd2005-09-23 19:34:11 +00002102 case $ac_arg in
2103 *=* | --config-cache | -C | -disable-* | --disable-* \
2104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2106 | -with-* | --with-* | -without-* | --without-* | --x)
2107 case "$ac_configure_args0 " in
2108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2109 esac
2110 ;;
2111 -* ) ac_must_keep_next=true ;;
2112 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00002113 fi
jfigusc7e66e32013-05-08 11:32:55 -04002114 as_fn_append ac_configure_args " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002115 ;;
2116 esac
2117 done
2118done
jfigusc7e66e32013-05-08 11:32:55 -04002119{ ac_configure_args0=; unset ac_configure_args0;}
2120{ ac_configure_args1=; unset ac_configure_args1;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002121
2122# When interrupted or exit'd, cleanup temporary files, and complete
2123# config.log. We remove comments because anyway the quotes in there
2124# would cause problems or look ugly.
jfigusc7e66e32013-05-08 11:32:55 -04002125# WARNING: Use '\'' to represent an apostrophe within the trap.
2126# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Cullen Jennings235513a2005-09-21 22:51:36 +00002127trap 'exit_status=$?
2128 # Save into config.log some information that might help in debugging.
2129 {
2130 echo
2131
jfigusc7e66e32013-05-08 11:32:55 -04002132 $as_echo "## ---------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002133## Cache variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002134## ---------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002135 echo
2136 # The following way of writing the cache mishandles newlines in values,
jfigusc7e66e32013-05-08 11:32:55 -04002137(
2138 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2139 eval ac_val=\$$ac_var
2140 case $ac_val in #(
2141 *${as_nl}*)
2142 case $ac_var in #(
2143 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2144$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2145 esac
2146 case $ac_var in #(
2147 _ | IFS | as_nl) ;; #(
2148 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2149 *) { eval $ac_var=; unset $ac_var;} ;;
2150 esac ;;
2151 esac
2152 done
Cullen Jennings235513a2005-09-21 22:51:36 +00002153 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04002154 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2155 *${as_nl}ac_space=\ *)
Cullen Jennings235513a2005-09-21 22:51:36 +00002156 sed -n \
jfigusc7e66e32013-05-08 11:32:55 -04002157 "s/'\''/'\''\\\\'\'''\''/g;
2158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2159 ;; #(
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002160 *)
jfigusc7e66e32013-05-08 11:32:55 -04002161 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002162 ;;
jfigusc7e66e32013-05-08 11:32:55 -04002163 esac |
2164 sort
2165)
Cullen Jennings235513a2005-09-21 22:51:36 +00002166 echo
2167
jfigusc7e66e32013-05-08 11:32:55 -04002168 $as_echo "## ----------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002169## Output variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002170## ----------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002171 echo
2172 for ac_var in $ac_subst_vars
2173 do
jfigusc7e66e32013-05-08 11:32:55 -04002174 eval ac_val=\$$ac_var
2175 case $ac_val in
2176 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2177 esac
2178 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002179 done | sort
2180 echo
2181
2182 if test -n "$ac_subst_files"; then
jfigusc7e66e32013-05-08 11:32:55 -04002183 $as_echo "## ------------------- ##
2184## File substitutions. ##
2185## ------------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002186 echo
2187 for ac_var in $ac_subst_files
2188 do
jfigusc7e66e32013-05-08 11:32:55 -04002189 eval ac_val=\$$ac_var
2190 case $ac_val in
2191 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192 esac
2193 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002194 done | sort
2195 echo
2196 fi
2197
2198 if test -s confdefs.h; then
jfigusc7e66e32013-05-08 11:32:55 -04002199 $as_echo "## ----------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002200## confdefs.h. ##
jfigusc7e66e32013-05-08 11:32:55 -04002201## ----------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002202 echo
jfigusc7e66e32013-05-08 11:32:55 -04002203 cat confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002204 echo
2205 fi
2206 test "$ac_signal" != 0 &&
jfigusc7e66e32013-05-08 11:32:55 -04002207 $as_echo "$as_me: caught signal $ac_signal"
2208 $as_echo "$as_me: exit $exit_status"
Cullen Jennings235513a2005-09-21 22:51:36 +00002209 } >&5
jfigusc7e66e32013-05-08 11:32:55 -04002210 rm -f core *.core core.conftest.* &&
2211 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Cullen Jennings235513a2005-09-21 22:51:36 +00002212 exit $exit_status
jfigusc7e66e32013-05-08 11:32:55 -04002213' 0
Cullen Jennings235513a2005-09-21 22:51:36 +00002214for ac_signal in 1 2 13 15; do
jfigusc7e66e32013-05-08 11:32:55 -04002215 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Cullen Jennings235513a2005-09-21 22:51:36 +00002216done
2217ac_signal=0
2218
2219# confdefs.h avoids OS command line length limits that DEFS can exceed.
jfigusc7e66e32013-05-08 11:32:55 -04002220rm -f -r conftest* confdefs.h
2221
2222$as_echo "/* confdefs.h */" > confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002223
2224# Predefined preprocessor variables.
2225
2226cat >>confdefs.h <<_ACEOF
2227#define PACKAGE_NAME "$PACKAGE_NAME"
2228_ACEOF
2229
Cullen Jennings235513a2005-09-21 22:51:36 +00002230cat >>confdefs.h <<_ACEOF
2231#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2232_ACEOF
2233
Cullen Jennings235513a2005-09-21 22:51:36 +00002234cat >>confdefs.h <<_ACEOF
2235#define PACKAGE_VERSION "$PACKAGE_VERSION"
2236_ACEOF
2237
Cullen Jennings235513a2005-09-21 22:51:36 +00002238cat >>confdefs.h <<_ACEOF
2239#define PACKAGE_STRING "$PACKAGE_STRING"
2240_ACEOF
2241
Cullen Jennings235513a2005-09-21 22:51:36 +00002242cat >>confdefs.h <<_ACEOF
2243#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2244_ACEOF
2245
jfigusc7e66e32013-05-08 11:32:55 -04002246cat >>confdefs.h <<_ACEOF
2247#define PACKAGE_URL "$PACKAGE_URL"
2248_ACEOF
2249
Cullen Jennings235513a2005-09-21 22:51:36 +00002250
2251# Let the site file select an alternate cache file if it wants to.
jfigusc7e66e32013-05-08 11:32:55 -04002252# Prefer an explicitly selected file to automatically selected ones.
2253ac_site_file1=NONE
2254ac_site_file2=NONE
2255if test -n "$CONFIG_SITE"; then
2256 # We do not want a PATH search for config.site.
2257 case $CONFIG_SITE in #((
2258 -*) ac_site_file1=./$CONFIG_SITE;;
2259 */*) ac_site_file1=$CONFIG_SITE;;
2260 *) ac_site_file1=./$CONFIG_SITE;;
2261 esac
2262elif test "x$prefix" != xNONE; then
2263 ac_site_file1=$prefix/share/config.site
2264 ac_site_file2=$prefix/etc/config.site
2265else
2266 ac_site_file1=$ac_default_prefix/share/config.site
2267 ac_site_file2=$ac_default_prefix/etc/config.site
Cullen Jennings235513a2005-09-21 22:51:36 +00002268fi
jfigusc7e66e32013-05-08 11:32:55 -04002269for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2270do
2271 test "x$ac_site_file" = xNONE && continue
2272 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2274$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002275 sed 's/^/| /' "$ac_site_file" >&5
jfigusc7e66e32013-05-08 11:32:55 -04002276 . "$ac_site_file" \
2277 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2279as_fn_error $? "failed to load site script $ac_site_file
2280See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002281 fi
2282done
2283
2284if test -r "$cache_file"; then
jfigusc7e66e32013-05-08 11:32:55 -04002285 # Some versions of bash will fail to source /dev/null (special files
2286 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2287 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2289$as_echo "$as_me: loading cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002290 case $cache_file in
jfigusc7e66e32013-05-08 11:32:55 -04002291 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2292 *) . "./$cache_file";;
Cullen Jennings235513a2005-09-21 22:51:36 +00002293 esac
2294 fi
2295else
jfigusc7e66e32013-05-08 11:32:55 -04002296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2297$as_echo "$as_me: creating cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002298 >$cache_file
2299fi
2300
2301# Check that the precious variables saved in the cache have kept the same
2302# value.
2303ac_cache_corrupted=false
jfigusc7e66e32013-05-08 11:32:55 -04002304for ac_var in $ac_precious_vars; do
Cullen Jennings235513a2005-09-21 22:51:36 +00002305 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2306 eval ac_new_set=\$ac_env_${ac_var}_set
jfigusc7e66e32013-05-08 11:32:55 -04002307 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2308 eval ac_new_val=\$ac_env_${ac_var}_value
Cullen Jennings235513a2005-09-21 22:51:36 +00002309 case $ac_old_set,$ac_new_set in
2310 set,)
jfigusc7e66e32013-05-08 11:32:55 -04002311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2312$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002313 ac_cache_corrupted=: ;;
2314 ,set)
jfigusc7e66e32013-05-08 11:32:55 -04002315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2316$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002317 ac_cache_corrupted=: ;;
2318 ,);;
2319 *)
2320 if test "x$ac_old_val" != "x$ac_new_val"; then
jfigusc7e66e32013-05-08 11:32:55 -04002321 # differences in whitespace do not lead to failure.
2322 ac_old_val_w=`echo x $ac_old_val`
2323 ac_new_val_w=`echo x $ac_new_val`
2324 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2326$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2327 ac_cache_corrupted=:
2328 else
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2330$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2331 eval $ac_var=\$ac_old_val
2332 fi
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2334$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2336$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002337 fi;;
2338 esac
2339 # Pass precious variables to config.status.
2340 if test "$ac_new_set" = set; then
2341 case $ac_new_val in
jfigusc7e66e32013-05-08 11:32:55 -04002342 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002343 *) ac_arg=$ac_var=$ac_new_val ;;
2344 esac
2345 case " $ac_configure_args " in
2346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jfigusc7e66e32013-05-08 11:32:55 -04002347 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002348 esac
2349 fi
2350done
2351if $ac_cache_corrupted; then
jfigusc7e66e32013-05-08 11:32:55 -04002352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2355$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2356 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00002357fi
jfigusc7e66e32013-05-08 11:32:55 -04002358## -------------------- ##
2359## Main body of script. ##
2360## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002361
2362ac_ext=c
2363ac_cpp='$CPP $CPPFLAGS'
2364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366ac_compiler_gnu=$ac_cv_c_compiler_gnu
2367
2368
2369
David McGrewb67061f2005-09-28 14:23:06 +00002370if test -z "$CFLAGS"; then
Sean Brightbfb9e302014-03-24 20:45:17 -04002371 CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops"
David McGrewb67061f2005-09-28 14:23:06 +00002372fi
2373
Cullen Jennings235513a2005-09-21 22:51:36 +00002374if test -n "$ac_tool_prefix"; then
2375 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2376set dummy ${ac_tool_prefix}ranlib; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2378$as_echo_n "checking for $ac_word... " >&6; }
2379if ${ac_cv_prog_RANLIB+:} false; then :
2380 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002381else
2382 if test -n "$RANLIB"; then
2383 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2384else
2385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386for as_dir in $PATH
2387do
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002392 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
jfigusc7e66e32013-05-08 11:32:55 -04002393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002394 break 2
2395 fi
2396done
jfigusc7e66e32013-05-08 11:32:55 -04002397 done
2398IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002399
2400fi
2401fi
2402RANLIB=$ac_cv_prog_RANLIB
2403if test -n "$RANLIB"; then
jfigusc7e66e32013-05-08 11:32:55 -04002404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2405$as_echo "$RANLIB" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002406else
jfigusc7e66e32013-05-08 11:32:55 -04002407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2408$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002409fi
2410
jfigusc7e66e32013-05-08 11:32:55 -04002411
Cullen Jennings235513a2005-09-21 22:51:36 +00002412fi
2413if test -z "$ac_cv_prog_RANLIB"; then
2414 ac_ct_RANLIB=$RANLIB
2415 # Extract the first word of "ranlib", so it can be a program name with args.
2416set dummy ranlib; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2418$as_echo_n "checking for $ac_word... " >&6; }
2419if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2420 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002421else
2422 if test -n "$ac_ct_RANLIB"; then
2423 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2424else
2425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426for as_dir in $PATH
2427do
2428 IFS=$as_save_IFS
2429 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002432 ac_cv_prog_ac_ct_RANLIB="ranlib"
jfigusc7e66e32013-05-08 11:32:55 -04002433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002434 break 2
2435 fi
2436done
jfigusc7e66e32013-05-08 11:32:55 -04002437 done
2438IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002439
Cullen Jennings235513a2005-09-21 22:51:36 +00002440fi
2441fi
2442ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2443if test -n "$ac_ct_RANLIB"; then
jfigusc7e66e32013-05-08 11:32:55 -04002444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2445$as_echo "$ac_ct_RANLIB" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002446else
jfigusc7e66e32013-05-08 11:32:55 -04002447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2448$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002449fi
2450
jfigusc7e66e32013-05-08 11:32:55 -04002451 if test "x$ac_ct_RANLIB" = x; then
2452 RANLIB=":"
2453 else
2454 case $cross_compiling:$ac_tool_warned in
2455yes:)
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2458ac_tool_warned=yes ;;
2459esac
2460 RANLIB=$ac_ct_RANLIB
2461 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002462else
2463 RANLIB="$ac_cv_prog_RANLIB"
2464fi
2465
2466ac_ext=c
2467ac_cpp='$CPP $CPPFLAGS'
2468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470ac_compiler_gnu=$ac_cv_c_compiler_gnu
2471if test -n "$ac_tool_prefix"; then
2472 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2473set dummy ${ac_tool_prefix}gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2475$as_echo_n "checking for $ac_word... " >&6; }
2476if ${ac_cv_prog_CC+:} false; then :
2477 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002478else
2479 if test -n "$CC"; then
2480 ac_cv_prog_CC="$CC" # Let the user override the test.
2481else
2482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483for as_dir in $PATH
2484do
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002489 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002491 break 2
2492 fi
2493done
jfigusc7e66e32013-05-08 11:32:55 -04002494 done
2495IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002496
2497fi
2498fi
2499CC=$ac_cv_prog_CC
2500if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2502$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002503else
jfigusc7e66e32013-05-08 11:32:55 -04002504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2505$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002506fi
2507
jfigusc7e66e32013-05-08 11:32:55 -04002508
Cullen Jennings235513a2005-09-21 22:51:36 +00002509fi
2510if test -z "$ac_cv_prog_CC"; then
2511 ac_ct_CC=$CC
2512 # Extract the first word of "gcc", so it can be a program name with args.
2513set dummy gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2515$as_echo_n "checking for $ac_word... " >&6; }
2516if ${ac_cv_prog_ac_ct_CC+:} false; then :
2517 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002518else
2519 if test -n "$ac_ct_CC"; then
2520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2521else
2522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523for as_dir in $PATH
2524do
2525 IFS=$as_save_IFS
2526 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002529 ac_cv_prog_ac_ct_CC="gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002531 break 2
2532 fi
2533done
jfigusc7e66e32013-05-08 11:32:55 -04002534 done
2535IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002536
2537fi
2538fi
2539ac_ct_CC=$ac_cv_prog_ac_ct_CC
2540if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2542$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002543else
jfigusc7e66e32013-05-08 11:32:55 -04002544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2545$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002546fi
2547
jfigusc7e66e32013-05-08 11:32:55 -04002548 if test "x$ac_ct_CC" = x; then
2549 CC=""
2550 else
2551 case $cross_compiling:$ac_tool_warned in
2552yes:)
2553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2555ac_tool_warned=yes ;;
2556esac
2557 CC=$ac_ct_CC
2558 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002559else
2560 CC="$ac_cv_prog_CC"
2561fi
2562
2563if test -z "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002564 if test -n "$ac_tool_prefix"; then
2565 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Cullen Jennings235513a2005-09-21 22:51:36 +00002566set dummy ${ac_tool_prefix}cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568$as_echo_n "checking for $ac_word... " >&6; }
2569if ${ac_cv_prog_CC+:} false; then :
2570 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002571else
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2574else
2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002582 ac_cv_prog_CC="${ac_tool_prefix}cc"
jfigusc7e66e32013-05-08 11:32:55 -04002583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002584 break 2
2585 fi
2586done
jfigusc7e66e32013-05-08 11:32:55 -04002587 done
2588IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002589
2590fi
2591fi
2592CC=$ac_cv_prog_CC
2593if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2595$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002596else
jfigusc7e66e32013-05-08 11:32:55 -04002597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002599fi
2600
jfigusc7e66e32013-05-08 11:32:55 -04002601
Cullen Jennings235513a2005-09-21 22:51:36 +00002602 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002603fi
2604if test -z "$CC"; then
2605 # Extract the first word of "cc", so it can be a program name with args.
2606set dummy cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608$as_echo_n "checking for $ac_word... " >&6; }
2609if ${ac_cv_prog_CC+:} false; then :
2610 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002611else
2612 if test -n "$CC"; then
2613 ac_cv_prog_CC="$CC" # Let the user override the test.
2614else
2615 ac_prog_rejected=no
2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH
2618do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002623 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2624 ac_prog_rejected=yes
2625 continue
2626 fi
2627 ac_cv_prog_CC="cc"
jfigusc7e66e32013-05-08 11:32:55 -04002628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002629 break 2
2630 fi
2631done
jfigusc7e66e32013-05-08 11:32:55 -04002632 done
2633IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002634
2635if test $ac_prog_rejected = yes; then
2636 # We found a bogon in the path, so make sure we never use it.
2637 set dummy $ac_cv_prog_CC
2638 shift
2639 if test $# != 0; then
2640 # We chose a different compiler from the bogus one.
2641 # However, it has the same basename, so the bogon will be chosen
2642 # first if we set CC to just the basename; use the full file name.
2643 shift
2644 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2645 fi
2646fi
2647fi
2648fi
2649CC=$ac_cv_prog_CC
2650if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2652$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002653else
jfigusc7e66e32013-05-08 11:32:55 -04002654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002656fi
2657
jfigusc7e66e32013-05-08 11:32:55 -04002658
Cullen Jennings235513a2005-09-21 22:51:36 +00002659fi
2660if test -z "$CC"; then
2661 if test -n "$ac_tool_prefix"; then
jfigusc7e66e32013-05-08 11:32:55 -04002662 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002663 do
2664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2665set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667$as_echo_n "checking for $ac_word... " >&6; }
2668if ${ac_cv_prog_CC+:} false; then :
2669 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002670else
2671 if test -n "$CC"; then
2672 ac_cv_prog_CC="$CC" # Let the user override the test.
2673else
2674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675for as_dir in $PATH
2676do
2677 IFS=$as_save_IFS
2678 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002681 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002683 break 2
2684 fi
2685done
jfigusc7e66e32013-05-08 11:32:55 -04002686 done
2687IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002688
2689fi
2690fi
2691CC=$ac_cv_prog_CC
2692if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2694$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002695else
jfigusc7e66e32013-05-08 11:32:55 -04002696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002698fi
2699
jfigusc7e66e32013-05-08 11:32:55 -04002700
Cullen Jennings235513a2005-09-21 22:51:36 +00002701 test -n "$CC" && break
2702 done
2703fi
2704if test -z "$CC"; then
2705 ac_ct_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04002706 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002707do
2708 # Extract the first word of "$ac_prog", so it can be a program name with args.
2709set dummy $ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2711$as_echo_n "checking for $ac_word... " >&6; }
2712if ${ac_cv_prog_ac_ct_CC+:} false; then :
2713 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002714else
2715 if test -n "$ac_ct_CC"; then
2716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2717else
2718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719for as_dir in $PATH
2720do
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002725 ac_cv_prog_ac_ct_CC="$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002727 break 2
2728 fi
2729done
jfigusc7e66e32013-05-08 11:32:55 -04002730 done
2731IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002732
2733fi
2734fi
2735ac_ct_CC=$ac_cv_prog_ac_ct_CC
2736if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2738$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002739else
jfigusc7e66e32013-05-08 11:32:55 -04002740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002742fi
2743
jfigusc7e66e32013-05-08 11:32:55 -04002744
Cullen Jennings235513a2005-09-21 22:51:36 +00002745 test -n "$ac_ct_CC" && break
2746done
2747
jfigusc7e66e32013-05-08 11:32:55 -04002748 if test "x$ac_ct_CC" = x; then
2749 CC=""
2750 else
2751 case $cross_compiling:$ac_tool_warned in
2752yes:)
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2755ac_tool_warned=yes ;;
2756esac
2757 CC=$ac_ct_CC
2758 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002759fi
2760
2761fi
2762
2763
jfigusc7e66e32013-05-08 11:32:55 -04002764test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2766as_fn_error $? "no acceptable C compiler found in \$PATH
2767See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002768
2769# Provide some information about the compiler.
jfigusc7e66e32013-05-08 11:32:55 -04002770$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2771set X $ac_compile
2772ac_compiler=$2
2773for ac_option in --version -v -V -qversion; do
2774 { { ac_try="$ac_compiler $ac_option >&5"
2775case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778esac
2779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2780$as_echo "$ac_try_echo"; } >&5
2781 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Cullen Jennings235513a2005-09-21 22:51:36 +00002782 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002783 if test -s conftest.err; then
2784 sed '10a\
2785... rest of stderr output deleted ...
2786 10q' conftest.err >conftest.er1
2787 cat conftest.er1 >&5
2788 fi
2789 rm -f conftest.er1 conftest.err
2790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2791 test $ac_status = 0; }
2792done
Cullen Jennings235513a2005-09-21 22:51:36 +00002793
jfigusc7e66e32013-05-08 11:32:55 -04002794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002795/* end confdefs.h. */
2796
2797int
2798main ()
2799{
2800
2801 ;
2802 return 0;
2803}
2804_ACEOF
2805ac_clean_files_save=$ac_clean_files
jfigusc7e66e32013-05-08 11:32:55 -04002806ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Cullen Jennings235513a2005-09-21 22:51:36 +00002807# Try to create an executable without -o first, disregard a.out.
2808# It will help us diagnose broken compilers, and finding out an intuition
2809# of exeext.
jfigusc7e66e32013-05-08 11:32:55 -04002810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2811$as_echo_n "checking whether the C compiler works... " >&6; }
2812ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002813
jfigusc7e66e32013-05-08 11:32:55 -04002814# The possible output files:
2815ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2816
2817ac_rmfiles=
2818for ac_file in $ac_files
2819do
2820 case $ac_file in
2821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2822 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2823 esac
2824done
2825rm -f $ac_rmfiles
2826
2827if { { ac_try="$ac_link_default"
2828case "(($ac_try" in
2829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830 *) ac_try_echo=$ac_try;;
2831esac
2832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2833$as_echo "$ac_try_echo"; } >&5
2834 (eval "$ac_link_default") 2>&5
2835 ac_status=$?
2836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2837 test $ac_status = 0; }; then :
2838 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2839# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2840# in a Makefile. We should not override ac_cv_exeext if it was cached,
2841# so that the user can short-circuit this test for compilers unknown to
2842# Autoconf.
2843for ac_file in $ac_files ''
Cullen Jennings235513a2005-09-21 22:51:36 +00002844do
2845 test -f "$ac_file" || continue
2846 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00002848 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002849 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00002850 # We found the default executable, but exeext='' is most
2851 # certainly right.
2852 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002853 *.* )
jfigusc7e66e32013-05-08 11:32:55 -04002854 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2855 then :; else
2856 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2857 fi
2858 # We set ac_cv_exeext here because the later test for it is not
2859 # safe: cross compilers may not add the suffix if given an `-o'
2860 # argument, so we may need to know it at that point already.
2861 # Even if this section looks crufty: it has the advantage of
2862 # actually working.
David McGrewfec49dd2005-09-23 19:34:11 +00002863 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002864 * )
David McGrewfec49dd2005-09-23 19:34:11 +00002865 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002866 esac
2867done
jfigusc7e66e32013-05-08 11:32:55 -04002868test "$ac_cv_exeext" = no && ac_cv_exeext=
2869
Cullen Jennings235513a2005-09-21 22:51:36 +00002870else
jfigusc7e66e32013-05-08 11:32:55 -04002871 ac_file=''
2872fi
2873if test -z "$ac_file"; then :
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875$as_echo "no" >&6; }
2876$as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002877sed 's/^/| /' conftest.$ac_ext >&5
2878
jfigusc7e66e32013-05-08 11:32:55 -04002879{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2881as_fn_error 77 "C compiler cannot create executables
2882See \`config.log' for more details" "$LINENO" 5; }
2883else
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2885$as_echo "yes" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002886fi
jfigusc7e66e32013-05-08 11:32:55 -04002887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2888$as_echo_n "checking for C compiler default output file name... " >&6; }
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2890$as_echo "$ac_file" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002891ac_exeext=$ac_cv_exeext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002892
jfigusc7e66e32013-05-08 11:32:55 -04002893rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002894ac_clean_files=$ac_clean_files_save
jfigusc7e66e32013-05-08 11:32:55 -04002895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2896$as_echo_n "checking for suffix of executables... " >&6; }
2897if { { ac_try="$ac_link"
2898case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901esac
2902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2903$as_echo "$ac_try_echo"; } >&5
2904 (eval "$ac_link") 2>&5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002905 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2907 test $ac_status = 0; }; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002908 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2909# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2910# work properly (i.e., refer to `conftest.exe'), while it won't with
2911# `rm'.
2912for ac_file in conftest.exe conftest conftest.*; do
2913 test -f "$ac_file" || continue
2914 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002916 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00002917 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002918 * ) break;;
2919 esac
2920done
2921else
jfigusc7e66e32013-05-08 11:32:55 -04002922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2924as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2925See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002926fi
jfigusc7e66e32013-05-08 11:32:55 -04002927rm -f conftest conftest$ac_cv_exeext
2928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2929$as_echo "$ac_cv_exeext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002930
2931rm -f conftest.$ac_ext
2932EXEEXT=$ac_cv_exeext
2933ac_exeext=$EXEEXT
jfigusc7e66e32013-05-08 11:32:55 -04002934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2935/* end confdefs.h. */
2936#include <stdio.h>
2937int
2938main ()
2939{
2940FILE *f = fopen ("conftest.out", "w");
2941 return ferror (f) || fclose (f) != 0;
2942
2943 ;
2944 return 0;
2945}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002946_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002947ac_clean_files="$ac_clean_files conftest.out"
2948# Check that the compiler produces executables we can run. If not, either
2949# the compiler is broken, or we cross compile.
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2951$as_echo_n "checking whether we are cross compiling... " >&6; }
2952if test "$cross_compiling" != yes; then
2953 { { ac_try="$ac_link"
2954case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957esac
2958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959$as_echo "$ac_try_echo"; } >&5
2960 (eval "$ac_link") 2>&5
2961 ac_status=$?
2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963 test $ac_status = 0; }
2964 if { ac_try='./conftest$ac_cv_exeext'
2965 { { case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968esac
2969eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2970$as_echo "$ac_try_echo"; } >&5
2971 (eval "$ac_try") 2>&5
2972 ac_status=$?
2973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2974 test $ac_status = 0; }; }; then
2975 cross_compiling=no
2976 else
2977 if test "$cross_compiling" = maybe; then
2978 cross_compiling=yes
2979 else
2980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982as_fn_error $? "cannot run C compiled programs.
2983If you meant to cross compile, use \`--host'.
2984See \`config.log' for more details" "$LINENO" 5; }
2985 fi
2986 fi
2987fi
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2989$as_echo "$cross_compiling" >&6; }
2990
2991rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2992ac_clean_files=$ac_clean_files_save
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2994$as_echo_n "checking for suffix of object files... " >&6; }
2995if ${ac_cv_objext+:} false; then :
2996 $as_echo_n "(cached) " >&6
2997else
2998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002999/* end confdefs.h. */
3000
3001int
3002main ()
3003{
3004
3005 ;
3006 return 0;
3007}
3008_ACEOF
3009rm -f conftest.o conftest.obj
jfigusc7e66e32013-05-08 11:32:55 -04003010if { { ac_try="$ac_compile"
3011case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3014esac
3015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3016$as_echo "$ac_try_echo"; } >&5
3017 (eval "$ac_compile") 2>&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003018 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04003019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3020 test $ac_status = 0; }; then :
3021 for ac_file in conftest.o conftest.obj conftest.*; do
3022 test -f "$ac_file" || continue;
Cullen Jennings235513a2005-09-21 22:51:36 +00003023 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04003024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003025 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3026 break;;
3027 esac
3028done
3029else
jfigusc7e66e32013-05-08 11:32:55 -04003030 $as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003031sed 's/^/| /' conftest.$ac_ext >&5
3032
jfigusc7e66e32013-05-08 11:32:55 -04003033{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3035as_fn_error $? "cannot compute suffix of object files: cannot compile
3036See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003037fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003038rm -f conftest.$ac_cv_objext conftest.$ac_ext
3039fi
jfigusc7e66e32013-05-08 11:32:55 -04003040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3041$as_echo "$ac_cv_objext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003042OBJEXT=$ac_cv_objext
3043ac_objext=$OBJEXT
jfigusc7e66e32013-05-08 11:32:55 -04003044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3045$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3046if ${ac_cv_c_compiler_gnu+:} false; then :
3047 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003048else
jfigusc7e66e32013-05-08 11:32:55 -04003049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003050/* end confdefs.h. */
3051
3052int
3053main ()
3054{
3055#ifndef __GNUC__
3056 choke me
3057#endif
3058
3059 ;
3060 return 0;
3061}
3062_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003063if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003064 ac_compiler_gnu=yes
3065else
jfigusc7e66e32013-05-08 11:32:55 -04003066 ac_compiler_gnu=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003067fi
jfigusc7e66e32013-05-08 11:32:55 -04003068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003069ac_cv_c_compiler_gnu=$ac_compiler_gnu
3070
3071fi
jfigusc7e66e32013-05-08 11:32:55 -04003072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3073$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3074if test $ac_compiler_gnu = yes; then
3075 GCC=yes
3076else
3077 GCC=
3078fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003079ac_test_CFLAGS=${CFLAGS+set}
3080ac_save_CFLAGS=$CFLAGS
jfigusc7e66e32013-05-08 11:32:55 -04003081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3082$as_echo_n "checking whether $CC accepts -g... " >&6; }
3083if ${ac_cv_prog_cc_g+:} false; then :
3084 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003085else
jfigusc7e66e32013-05-08 11:32:55 -04003086 ac_save_c_werror_flag=$ac_c_werror_flag
3087 ac_c_werror_flag=yes
3088 ac_cv_prog_cc_g=no
3089 CFLAGS="-g"
3090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003091/* end confdefs.h. */
3092
3093int
3094main ()
3095{
3096
3097 ;
3098 return 0;
3099}
3100_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003101if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003102 ac_cv_prog_cc_g=yes
3103else
jfigusc7e66e32013-05-08 11:32:55 -04003104 CFLAGS=""
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00003107
jfigusc7e66e32013-05-08 11:32:55 -04003108int
3109main ()
3110{
3111
3112 ;
3113 return 0;
3114}
3115_ACEOF
3116if ac_fn_c_try_compile "$LINENO"; then :
3117
3118else
3119 ac_c_werror_flag=$ac_save_c_werror_flag
3120 CFLAGS="-g"
3121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122/* end confdefs.h. */
3123
3124int
3125main ()
3126{
3127
3128 ;
3129 return 0;
3130}
3131_ACEOF
3132if ac_fn_c_try_compile "$LINENO"; then :
3133 ac_cv_prog_cc_g=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003134fi
jfigusc7e66e32013-05-08 11:32:55 -04003135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003136fi
jfigusc7e66e32013-05-08 11:32:55 -04003137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3138fi
3139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3140 ac_c_werror_flag=$ac_save_c_werror_flag
3141fi
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3143$as_echo "$ac_cv_prog_cc_g" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003144if test "$ac_test_CFLAGS" = set; then
3145 CFLAGS=$ac_save_CFLAGS
3146elif test $ac_cv_prog_cc_g = yes; then
3147 if test "$GCC" = yes; then
3148 CFLAGS="-g -O2"
3149 else
3150 CFLAGS="-g"
3151 fi
3152else
3153 if test "$GCC" = yes; then
3154 CFLAGS="-O2"
3155 else
3156 CFLAGS=
3157 fi
3158fi
jfigusc7e66e32013-05-08 11:32:55 -04003159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3160$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3161if ${ac_cv_prog_cc_c89+:} false; then :
3162 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003163else
jfigusc7e66e32013-05-08 11:32:55 -04003164 ac_cv_prog_cc_c89=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003165ac_save_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04003166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003167/* end confdefs.h. */
3168#include <stdarg.h>
3169#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -04003170struct stat;
Cullen Jennings235513a2005-09-21 22:51:36 +00003171/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3172struct buf { int x; };
3173FILE * (*rcsopen) (struct buf *, struct stat *, int);
3174static char *e (p, i)
3175 char **p;
3176 int i;
3177{
3178 return p[i];
3179}
3180static char *f (char * (*g) (char **, int), char **p, ...)
3181{
3182 char *s;
3183 va_list v;
3184 va_start (v,p);
3185 s = g (p, va_arg (v,int));
3186 va_end (v);
3187 return s;
3188}
David McGrewfec49dd2005-09-23 19:34:11 +00003189
3190/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3191 function prototypes and stuff, but not '\xHH' hex character constants.
3192 These don't provoke an error unfortunately, instead are silently treated
jfigusc7e66e32013-05-08 11:32:55 -04003193 as 'x'. The following induces an error, until -std is added to get
David McGrewfec49dd2005-09-23 19:34:11 +00003194 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3195 array size at least. It's necessary to write '\x00'==0 to get something
jfigusc7e66e32013-05-08 11:32:55 -04003196 that's true only with -std. */
David McGrewfec49dd2005-09-23 19:34:11 +00003197int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3198
jfigusc7e66e32013-05-08 11:32:55 -04003199/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3200 inside strings and character constants. */
3201#define FOO(x) 'x'
3202int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3203
Cullen Jennings235513a2005-09-21 22:51:36 +00003204int test (int i, double x);
3205struct s1 {int (*f) (int a);};
3206struct s2 {int (*f) (double a);};
3207int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3208int argc;
3209char **argv;
3210int
3211main ()
3212{
3213return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3214 ;
3215 return 0;
3216}
3217_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003218for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3219 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Cullen Jennings235513a2005-09-21 22:51:36 +00003220do
3221 CC="$ac_save_CC $ac_arg"
jfigusc7e66e32013-05-08 11:32:55 -04003222 if ac_fn_c_try_compile "$LINENO"; then :
3223 ac_cv_prog_cc_c89=$ac_arg
Cullen Jennings235513a2005-09-21 22:51:36 +00003224fi
jfigusc7e66e32013-05-08 11:32:55 -04003225rm -f core conftest.err conftest.$ac_objext
3226 test "x$ac_cv_prog_cc_c89" != "xno" && break
Cullen Jennings235513a2005-09-21 22:51:36 +00003227done
jfigusc7e66e32013-05-08 11:32:55 -04003228rm -f conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003229CC=$ac_save_CC
3230
3231fi
jfigusc7e66e32013-05-08 11:32:55 -04003232# AC_CACHE_VAL
3233case "x$ac_cv_prog_cc_c89" in
3234 x)
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3236$as_echo "none needed" >&6; } ;;
3237 xno)
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3239$as_echo "unsupported" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003240 *)
jfigusc7e66e32013-05-08 11:32:55 -04003241 CC="$CC $ac_cv_prog_cc_c89"
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3243$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003244esac
jfigusc7e66e32013-05-08 11:32:55 -04003245if test "x$ac_cv_prog_cc_c89" != xno; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003246
3247fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003248
Cullen Jennings235513a2005-09-21 22:51:36 +00003249ac_ext=c
3250ac_cpp='$CPP $CPPFLAGS'
3251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3253ac_compiler_gnu=$ac_cv_c_compiler_gnu
3254
David McGrewb67061f2005-09-28 14:23:06 +00003255ac_aux_dir=
jfigusc7e66e32013-05-08 11:32:55 -04003256for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3257 if test -f "$ac_dir/install-sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003258 ac_aux_dir=$ac_dir
3259 ac_install_sh="$ac_aux_dir/install-sh -c"
3260 break
jfigusc7e66e32013-05-08 11:32:55 -04003261 elif test -f "$ac_dir/install.sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003262 ac_aux_dir=$ac_dir
3263 ac_install_sh="$ac_aux_dir/install.sh -c"
3264 break
jfigusc7e66e32013-05-08 11:32:55 -04003265 elif test -f "$ac_dir/shtool"; then
David McGrewb67061f2005-09-28 14:23:06 +00003266 ac_aux_dir=$ac_dir
3267 ac_install_sh="$ac_aux_dir/shtool install -c"
3268 break
3269 fi
3270done
3271if test -z "$ac_aux_dir"; then
jfigusc7e66e32013-05-08 11:32:55 -04003272 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
David McGrewb67061f2005-09-28 14:23:06 +00003273fi
jfigusc7e66e32013-05-08 11:32:55 -04003274
3275# These three variables are undocumented and unsupported,
3276# and are intended to be withdrawn in a future Autoconf release.
3277# They can cause serious problems if a builder's source tree is in a directory
3278# whose full name contains unusual characters.
3279ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3280ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3281ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3282
Cullen Jennings235513a2005-09-21 22:51:36 +00003283
David McGrewb67061f2005-09-28 14:23:06 +00003284# Find a good install program. We prefer a C program (faster),
3285# so one script is as good as another. But avoid the broken or
3286# incompatible versions:
3287# SysV /etc/install, /usr/sbin/install
3288# SunOS /usr/etc/install
3289# IRIX /sbin/install
3290# AIX /bin/install
3291# AmigaOS /C/install, which installs bootblocks on floppy discs
3292# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3293# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3294# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3295# OS/2's system install, which has a completely different semantic
3296# ./install, which can be erroneously created by make from ./install.sh.
jfigusc7e66e32013-05-08 11:32:55 -04003297# Reject install programs that cannot install multiple files.
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3299$as_echo_n "checking for a BSD-compatible install... " >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00003300if test -z "$INSTALL"; then
jfigusc7e66e32013-05-08 11:32:55 -04003301if ${ac_cv_path_install+:} false; then :
3302 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003303else
David McGrewb67061f2005-09-28 14:23:06 +00003304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305for as_dir in $PATH
3306do
3307 IFS=$as_save_IFS
3308 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04003309 # Account for people who put trailing slashes in PATH elements.
3310case $as_dir/ in #((
3311 ./ | .// | /[cC]/* | \
David McGrewb67061f2005-09-28 14:23:06 +00003312 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jfigusc7e66e32013-05-08 11:32:55 -04003313 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
David McGrewb67061f2005-09-28 14:23:06 +00003314 /usr/ucb/* ) ;;
3315 *)
3316 # OSF1 and SCO ODT 3.0 have their own names for install.
3317 # Don't use installbsd from OSF since it installs stuff as root
3318 # by default.
3319 for ac_prog in ginstall scoinst install; do
3320 for ac_exec_ext in '' $ac_executable_extensions; do
jfigusc7e66e32013-05-08 11:32:55 -04003321 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
David McGrewb67061f2005-09-28 14:23:06 +00003322 if test $ac_prog = install &&
3323 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3324 # AIX install. It has an incompatible calling convention.
3325 :
3326 elif test $ac_prog = install &&
3327 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3328 # program-specific install script used by HP pwplus--don't use.
3329 :
3330 else
jfigusc7e66e32013-05-08 11:32:55 -04003331 rm -rf conftest.one conftest.two conftest.dir
3332 echo one > conftest.one
3333 echo two > conftest.two
3334 mkdir conftest.dir
3335 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3336 test -s conftest.one && test -s conftest.two &&
3337 test -s conftest.dir/conftest.one &&
3338 test -s conftest.dir/conftest.two
3339 then
3340 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3341 break 3
3342 fi
David McGrewb67061f2005-09-28 14:23:06 +00003343 fi
3344 fi
3345 done
3346 done
3347 ;;
3348esac
Cullen Jennings235513a2005-09-21 22:51:36 +00003349
jfigusc7e66e32013-05-08 11:32:55 -04003350 done
3351IFS=$as_save_IFS
3352
3353rm -rf conftest.one conftest.two conftest.dir
Cullen Jennings235513a2005-09-21 22:51:36 +00003354
3355fi
David McGrewb67061f2005-09-28 14:23:06 +00003356 if test "${ac_cv_path_install+set}" = set; then
3357 INSTALL=$ac_cv_path_install
3358 else
jfigusc7e66e32013-05-08 11:32:55 -04003359 # As a last resort, use the slow shell script. Don't cache a
3360 # value for INSTALL within a source directory, because that will
David McGrewb67061f2005-09-28 14:23:06 +00003361 # break other packages using the cache if that directory is
jfigusc7e66e32013-05-08 11:32:55 -04003362 # removed, or if the value is a relative name.
David McGrewb67061f2005-09-28 14:23:06 +00003363 INSTALL=$ac_install_sh
3364 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003365fi
jfigusc7e66e32013-05-08 11:32:55 -04003366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3367$as_echo "$INSTALL" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003368
David McGrewb67061f2005-09-28 14:23:06 +00003369# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3370# It thinks the first close brace ends the variable substitution.
3371test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00003372
David McGrewb67061f2005-09-28 14:23:06 +00003373test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3374
3375test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00003376
3377
3378
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003379ac_ext=c
3380ac_cpp='$CPP $CPPFLAGS'
3381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383ac_compiler_gnu=$ac_cv_c_compiler_gnu
jfigusc7e66e32013-05-08 11:32:55 -04003384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3385$as_echo_n "checking how to run the C preprocessor... " >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003386# On Suns, sometimes $CPP names a directory.
3387if test -n "$CPP" && test -d "$CPP"; then
3388 CPP=
3389fi
3390if test -z "$CPP"; then
jfigusc7e66e32013-05-08 11:32:55 -04003391 if ${ac_cv_prog_CPP+:} false; then :
3392 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003393else
3394 # Double quotes because CPP needs to be expanded
3395 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3396 do
3397 ac_preproc_ok=false
3398for ac_c_preproc_warn_flag in '' yes
3399do
3400 # Use a header file that comes with gcc, so configuring glibc
3401 # with a fresh cross-compiler works.
3402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3403 # <limits.h> exists even on freestanding compilers.
3404 # On the NeXT, cc -E runs the code through the compiler's parser,
3405 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04003406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003407/* end confdefs.h. */
3408#ifdef __STDC__
3409# include <limits.h>
3410#else
3411# include <assert.h>
3412#endif
3413 Syntax error
3414_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003415if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003416
jfigusc7e66e32013-05-08 11:32:55 -04003417else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003418 # Broken: fails on valid input.
3419continue
3420fi
jfigusc7e66e32013-05-08 11:32:55 -04003421rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003422
jfigusc7e66e32013-05-08 11:32:55 -04003423 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003424 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04003425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003426/* end confdefs.h. */
3427#include <ac_nonexistent.h>
3428_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003429if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003430 # Broken: success on invalid input.
3431continue
3432else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003433 # Passes both tests.
3434ac_preproc_ok=:
3435break
3436fi
jfigusc7e66e32013-05-08 11:32:55 -04003437rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003438
3439done
3440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04003441rm -f conftest.i conftest.err conftest.$ac_ext
3442if $ac_preproc_ok; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003443 break
3444fi
3445
3446 done
3447 ac_cv_prog_CPP=$CPP
3448
3449fi
3450 CPP=$ac_cv_prog_CPP
3451else
3452 ac_cv_prog_CPP=$CPP
3453fi
jfigusc7e66e32013-05-08 11:32:55 -04003454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3455$as_echo "$CPP" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003456ac_preproc_ok=false
3457for ac_c_preproc_warn_flag in '' yes
3458do
3459 # Use a header file that comes with gcc, so configuring glibc
3460 # with a fresh cross-compiler works.
3461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3462 # <limits.h> exists even on freestanding compilers.
3463 # On the NeXT, cc -E runs the code through the compiler's parser,
3464 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04003465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003466/* end confdefs.h. */
3467#ifdef __STDC__
3468# include <limits.h>
3469#else
3470# include <assert.h>
3471#endif
3472 Syntax error
3473_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003474if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003475
jfigusc7e66e32013-05-08 11:32:55 -04003476else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003477 # Broken: fails on valid input.
3478continue
3479fi
jfigusc7e66e32013-05-08 11:32:55 -04003480rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003481
jfigusc7e66e32013-05-08 11:32:55 -04003482 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003483 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04003484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003485/* end confdefs.h. */
3486#include <ac_nonexistent.h>
3487_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003488if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003489 # Broken: success on invalid input.
3490continue
3491else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003492 # Passes both tests.
3493ac_preproc_ok=:
3494break
3495fi
jfigusc7e66e32013-05-08 11:32:55 -04003496rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003497
3498done
3499# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04003500rm -f conftest.i conftest.err conftest.$ac_ext
3501if $ac_preproc_ok; then :
3502
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003503else
jfigusc7e66e32013-05-08 11:32:55 -04003504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3507See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003508fi
3509
3510ac_ext=c
3511ac_cpp='$CPP $CPPFLAGS'
3512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515
3516
jfigusc7e66e32013-05-08 11:32:55 -04003517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3518$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3519if ${ac_cv_path_GREP+:} false; then :
3520 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003521else
jfigusc7e66e32013-05-08 11:32:55 -04003522 if test -z "$GREP"; then
3523 ac_path_GREP_found=false
3524 # Loop through the user's path and test for each of PROGNAME-LIST
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3527do
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_prog in grep ggrep; do
3531 for ac_exec_ext in '' $ac_executable_extensions; do
3532 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3533 as_fn_executable_p "$ac_path_GREP" || continue
3534# Check for GNU ac_path_GREP and select it if it is found.
3535 # Check for GNU $ac_path_GREP
3536case `"$ac_path_GREP" --version 2>&1` in
3537*GNU*)
3538 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3539*)
3540 ac_count=0
3541 $as_echo_n 0123456789 >"conftest.in"
3542 while :
3543 do
3544 cat "conftest.in" "conftest.in" >"conftest.tmp"
3545 mv "conftest.tmp" "conftest.in"
3546 cp "conftest.in" "conftest.nl"
3547 $as_echo 'GREP' >> "conftest.nl"
3548 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3549 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3550 as_fn_arith $ac_count + 1 && ac_count=$as_val
3551 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3552 # Best one so far, save it but keep looking for a better one
3553 ac_cv_path_GREP="$ac_path_GREP"
3554 ac_path_GREP_max=$ac_count
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003555 fi
jfigusc7e66e32013-05-08 11:32:55 -04003556 # 10*(2^10) chars as input seems more than enough
3557 test $ac_count -gt 10 && break
3558 done
3559 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3560esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003561
jfigusc7e66e32013-05-08 11:32:55 -04003562 $ac_path_GREP_found && break 3
3563 done
3564 done
3565 done
3566IFS=$as_save_IFS
3567 if test -z "$ac_cv_path_GREP"; then
3568 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3569 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003570else
jfigusc7e66e32013-05-08 11:32:55 -04003571 ac_cv_path_GREP=$GREP
3572fi
3573
3574fi
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3576$as_echo "$ac_cv_path_GREP" >&6; }
3577 GREP="$ac_cv_path_GREP"
3578
3579
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3581$as_echo_n "checking for egrep... " >&6; }
3582if ${ac_cv_path_EGREP+:} false; then :
3583 $as_echo_n "(cached) " >&6
3584else
3585 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3586 then ac_cv_path_EGREP="$GREP -E"
3587 else
3588 if test -z "$EGREP"; then
3589 ac_path_EGREP_found=false
3590 # Loop through the user's path and test for each of PROGNAME-LIST
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3593do
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_prog in egrep; do
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3599 as_fn_executable_p "$ac_path_EGREP" || continue
3600# Check for GNU ac_path_EGREP and select it if it is found.
3601 # Check for GNU $ac_path_EGREP
3602case `"$ac_path_EGREP" --version 2>&1` in
3603*GNU*)
3604 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3605*)
3606 ac_count=0
3607 $as_echo_n 0123456789 >"conftest.in"
3608 while :
3609 do
3610 cat "conftest.in" "conftest.in" >"conftest.tmp"
3611 mv "conftest.tmp" "conftest.in"
3612 cp "conftest.in" "conftest.nl"
3613 $as_echo 'EGREP' >> "conftest.nl"
3614 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3615 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3616 as_fn_arith $ac_count + 1 && ac_count=$as_val
3617 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3618 # Best one so far, save it but keep looking for a better one
3619 ac_cv_path_EGREP="$ac_path_EGREP"
3620 ac_path_EGREP_max=$ac_count
3621 fi
3622 # 10*(2^10) chars as input seems more than enough
3623 test $ac_count -gt 10 && break
3624 done
3625 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3626esac
3627
3628 $ac_path_EGREP_found && break 3
3629 done
3630 done
3631 done
3632IFS=$as_save_IFS
3633 if test -z "$ac_cv_path_EGREP"; then
3634 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3635 fi
3636else
3637 ac_cv_path_EGREP=$EGREP
3638fi
3639
3640 fi
3641fi
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3643$as_echo "$ac_cv_path_EGREP" >&6; }
3644 EGREP="$ac_cv_path_EGREP"
3645
3646
3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3648$as_echo_n "checking for ANSI C header files... " >&6; }
3649if ${ac_cv_header_stdc+:} false; then :
3650 $as_echo_n "(cached) " >&6
3651else
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003653/* end confdefs.h. */
3654#include <stdlib.h>
3655#include <stdarg.h>
3656#include <string.h>
3657#include <float.h>
3658
3659int
3660main ()
3661{
3662
3663 ;
3664 return 0;
3665}
3666_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003667if ac_fn_c_try_compile "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003668 ac_cv_header_stdc=yes
3669else
jfigusc7e66e32013-05-08 11:32:55 -04003670 ac_cv_header_stdc=no
jfigusa14b5a02013-03-29 12:24:12 -04003671fi
jfigusc7e66e32013-05-08 11:32:55 -04003672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003673
3674if test $ac_cv_header_stdc = yes; then
3675 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003677/* end confdefs.h. */
3678#include <string.h>
3679
3680_ACEOF
3681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003682 $EGREP "memchr" >/dev/null 2>&1; then :
3683
jfigusa14b5a02013-03-29 12:24:12 -04003684else
3685 ac_cv_header_stdc=no
3686fi
3687rm -f conftest*
3688
3689fi
3690
3691if test $ac_cv_header_stdc = yes; then
3692 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003694/* end confdefs.h. */
3695#include <stdlib.h>
3696
3697_ACEOF
3698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003699 $EGREP "free" >/dev/null 2>&1; then :
3700
jfigusa14b5a02013-03-29 12:24:12 -04003701else
3702 ac_cv_header_stdc=no
3703fi
3704rm -f conftest*
3705
3706fi
3707
3708if test $ac_cv_header_stdc = yes; then
3709 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jfigusc7e66e32013-05-08 11:32:55 -04003710 if test "$cross_compiling" = yes; then :
jfigusa14b5a02013-03-29 12:24:12 -04003711 :
3712else
jfigusc7e66e32013-05-08 11:32:55 -04003713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003714/* end confdefs.h. */
3715#include <ctype.h>
jfigusc7e66e32013-05-08 11:32:55 -04003716#include <stdlib.h>
jfigusa14b5a02013-03-29 12:24:12 -04003717#if ((' ' & 0x0FF) == 0x020)
3718# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3719# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3720#else
3721# define ISLOWER(c) \
3722 (('a' <= (c) && (c) <= 'i') \
3723 || ('j' <= (c) && (c) <= 'r') \
3724 || ('s' <= (c) && (c) <= 'z'))
3725# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3726#endif
3727
3728#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3729int
3730main ()
3731{
3732 int i;
3733 for (i = 0; i < 256; i++)
3734 if (XOR (islower (i), ISLOWER (i))
3735 || toupper (i) != TOUPPER (i))
jfigusc7e66e32013-05-08 11:32:55 -04003736 return 2;
3737 return 0;
jfigusa14b5a02013-03-29 12:24:12 -04003738}
3739_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003740if ac_fn_c_try_run "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003741
jfigusc7e66e32013-05-08 11:32:55 -04003742else
3743 ac_cv_header_stdc=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003744fi
jfigusc7e66e32013-05-08 11:32:55 -04003745rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3746 conftest.$ac_objext conftest.beam conftest.$ac_ext
3747fi
3748
jfigusa14b5a02013-03-29 12:24:12 -04003749fi
3750fi
jfigusc7e66e32013-05-08 11:32:55 -04003751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3752$as_echo "$ac_cv_header_stdc" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04003753if test $ac_cv_header_stdc = yes; then
3754
jfigusc7e66e32013-05-08 11:32:55 -04003755$as_echo "#define STDC_HEADERS 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04003756
3757fi
3758
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003759# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003760for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3761 inttypes.h stdint.h unistd.h
jfigusc7e66e32013-05-08 11:32:55 -04003762do :
3763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3764ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3765"
3766if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003767 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003768#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003769_ACEOF
3770
3771fi
3772
3773done
3774
3775
jfigusc7e66e32013-05-08 11:32:55 -04003776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3777$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3778if ${ac_cv_c_bigendian+:} false; then :
3779 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003780else
jfigusc7e66e32013-05-08 11:32:55 -04003781 ac_cv_c_bigendian=unknown
3782 # See if we're dealing with a universal compiler.
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003784/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003785#ifndef __APPLE_CC__
3786 not a universal capable compiler
3787 #endif
3788 typedef int dummy;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003789
jfigusc7e66e32013-05-08 11:32:55 -04003790_ACEOF
3791if ac_fn_c_try_compile "$LINENO"; then :
3792
3793 # Check for potential -arch flags. It is not universal unless
3794 # there are at least two -arch flags with different values.
3795 ac_arch=
3796 ac_prev=
3797 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3798 if test -n "$ac_prev"; then
3799 case $ac_word in
3800 i?86 | x86_64 | ppc | ppc64)
3801 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3802 ac_arch=$ac_word
3803 else
3804 ac_cv_c_bigendian=universal
3805 break
3806 fi
3807 ;;
3808 esac
3809 ac_prev=
3810 elif test "x$ac_word" = "x-arch"; then
3811 ac_prev=arch
3812 fi
3813 done
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003814fi
jfigusc7e66e32013-05-08 11:32:55 -04003815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 if test $ac_cv_c_bigendian = unknown; then
3817 # See if sys/param.h defines the BYTE_ORDER macro.
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003819/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003820#include <sys/types.h>
3821 #include <sys/param.h>
3822
3823int
3824main ()
3825{
3826#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3827 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3828 && LITTLE_ENDIAN)
3829 bogus endian macros
3830 #endif
3831
3832 ;
3833 return 0;
3834}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003835_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003836if ac_fn_c_try_compile "$LINENO"; then :
3837 # It does; now see whether it defined to BIG_ENDIAN or not.
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003839/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003840#include <sys/types.h>
3841 #include <sys/param.h>
3842
3843int
3844main ()
3845{
3846#if BYTE_ORDER != BIG_ENDIAN
3847 not big endian
3848 #endif
3849
3850 ;
3851 return 0;
3852}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003853_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003854if ac_fn_c_try_compile "$LINENO"; then :
3855 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003856else
jfigusc7e66e32013-05-08 11:32:55 -04003857 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003858fi
jfigusc7e66e32013-05-08 11:32:55 -04003859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860fi
3861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862 fi
3863 if test $ac_cv_c_bigendian = unknown; then
3864 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003866/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003867#include <limits.h>
3868
3869int
3870main ()
3871{
3872#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3873 bogus endian macros
3874 #endif
3875
3876 ;
3877 return 0;
3878}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003879_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003880if ac_fn_c_try_compile "$LINENO"; then :
3881 # It does; now see whether it defined to _BIG_ENDIAN or not.
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003883/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003884#include <limits.h>
3885
3886int
3887main ()
3888{
3889#ifndef _BIG_ENDIAN
3890 not big endian
3891 #endif
3892
3893 ;
3894 return 0;
3895}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003896_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003897if ac_fn_c_try_compile "$LINENO"; then :
3898 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003899else
jfigusc7e66e32013-05-08 11:32:55 -04003900 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003901fi
jfigusc7e66e32013-05-08 11:32:55 -04003902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903fi
3904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 fi
3906 if test $ac_cv_c_bigendian = unknown; then
3907 # Compile a test program.
3908 if test "$cross_compiling" = yes; then :
3909 # Try to guess by grepping values from an object file.
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003911/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003912short int ascii_mm[] =
3913 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3914 short int ascii_ii[] =
3915 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3916 int use_ascii (int i) {
3917 return ascii_mm[i] + ascii_ii[i];
3918 }
3919 short int ebcdic_ii[] =
3920 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3921 short int ebcdic_mm[] =
3922 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3923 int use_ebcdic (int i) {
3924 return ebcdic_mm[i] + ebcdic_ii[i];
3925 }
3926 extern int foo;
3927
3928int
3929main ()
3930{
3931return use_ascii (foo) == use_ebcdic (foo);
3932 ;
3933 return 0;
3934}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003935_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003936if ac_fn_c_try_compile "$LINENO"; then :
3937 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3938 ac_cv_c_bigendian=yes
3939 fi
3940 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3941 if test "$ac_cv_c_bigendian" = unknown; then
3942 ac_cv_c_bigendian=no
3943 else
3944 # finding both strings is unlikely to happen, but who knows?
3945 ac_cv_c_bigendian=unknown
3946 fi
3947 fi
3948fi
3949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003950else
jfigusc7e66e32013-05-08 11:32:55 -04003951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003952/* end confdefs.h. */
3953$ac_includes_default
3954int
3955main ()
3956{
jfigusc7e66e32013-05-08 11:32:55 -04003957
3958 /* Are we little or big endian? From Harbison&Steele. */
3959 union
3960 {
3961 long int l;
3962 char c[sizeof (long int)];
3963 } u;
3964 u.l = 1;
3965 return u.c[sizeof (long int) - 1] == 1;
3966
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003967 ;
3968 return 0;
3969}
3970_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003971if ac_fn_c_try_run "$LINENO"; then :
3972 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003973else
jfigusc7e66e32013-05-08 11:32:55 -04003974 ac_cv_c_bigendian=yes
3975fi
3976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3977 conftest.$ac_objext conftest.beam conftest.$ac_ext
3978fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003979
jfigusc7e66e32013-05-08 11:32:55 -04003980 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003981fi
jfigusc7e66e32013-05-08 11:32:55 -04003982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3983$as_echo "$ac_cv_c_bigendian" >&6; }
3984 case $ac_cv_c_bigendian in #(
3985 yes)
3986 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
3987;; #(
3988 no)
3989 ;; #(
3990 universal)
3991
3992$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3993
3994 ;; #(
3995 *)
3996 as_fn_error $? "unknown endianness
3997 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3998 esac
3999
4000
4001# Make sure we can run config.sub.
4002$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4003 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4004
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4006$as_echo_n "checking build system type... " >&6; }
4007if ${ac_cv_build+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009else
4010 ac_build_alias=$build_alias
4011test "x$ac_build_alias" = x &&
4012 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4013test "x$ac_build_alias" = x &&
4014 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4015ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4016 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4017
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004018fi
jfigusc7e66e32013-05-08 11:32:55 -04004019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4020$as_echo "$ac_cv_build" >&6; }
4021case $ac_cv_build in
4022*-*-*) ;;
4023*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4024esac
4025build=$ac_cv_build
4026ac_save_IFS=$IFS; IFS='-'
4027set x $ac_cv_build
4028shift
4029build_cpu=$1
4030build_vendor=$2
4031shift; shift
4032# Remember, the first character of IFS is used to create $*,
4033# except with old shells:
4034build_os=$*
4035IFS=$ac_save_IFS
4036case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4037
4038
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4040$as_echo_n "checking host system type... " >&6; }
4041if ${ac_cv_host+:} false; then :
4042 $as_echo_n "(cached) " >&6
4043else
4044 if test "x$host_alias" = x; then
4045 ac_cv_host=$ac_cv_build
4046else
4047 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4048 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4049fi
4050
4051fi
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4053$as_echo "$ac_cv_host" >&6; }
4054case $ac_cv_host in
4055*-*-*) ;;
4056*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4057esac
4058host=$ac_cv_host
4059ac_save_IFS=$IFS; IFS='-'
4060set x $ac_cv_host
4061shift
4062host_cpu=$1
4063host_vendor=$2
4064shift; shift
4065# Remember, the first character of IFS is used to create $*,
4066# except with old shells:
4067host_os=$*
4068IFS=$ac_save_IFS
4069case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4070
4071
4072
4073case $host_cpu in
4074 i*86 | x86_64 )
4075
4076$as_echo "#define CPU_CISC 1" >>confdefs.h
4077
4078
4079$as_echo "#define HAVE_X86 1" >>confdefs.h
4080;;
4081 * )
4082 # CPU_RISC is only supported for big endian machines.
4083 if test "$ac_cv_c_bigendian" = "yes"; then
4084
4085$as_echo "#define CPU_RISC 1" >>confdefs.h
4086
4087 else
4088 $as_echo "#define CPU_CISC 1" >>confdefs.h
4089
4090 fi
4091 ;;
4092esac
4093
4094case $host_os in
4095 *cygwin*|*mingw* )
4096 EXE=.exe
4097 HOST_IS_WINDOWS=yes
4098 ;;
4099 * )
4100 EXE=""
4101 ;;
4102esac
4103 # define executable suffix; this is needed for `make clean'
4104
4105
4106# Check whether --enable-kernel-linux was given.
4107if test "${enable_kernel_linux+set}" = set; then :
4108 enableval=$enable_kernel_linux;
4109else
4110 enable_kernel_linux=no
4111fi
4112
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build for Linux kernel context" >&5
4114$as_echo_n "checking whether to build for Linux kernel context... " >&6; }
4115if test "$enable_kernel_linux" = "yes"; then
4116
4117$as_echo "#define SRTP_KERNEL 1" >>confdefs.h
4118
4119
4120$as_echo "#define SRTP_KERNEL_LINUX 1" >>confdefs.h
4121
4122fi
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_kernel_linux" >&5
4124$as_echo "$enable_kernel_linux" >&6; }
4125
4126if test "$cross_compiling" != yes -a "$HOST_IS_WINDOWS" != yes; then
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
4128$as_echo_n "checking for /dev/urandom... " >&6; }
4129if ${ac_cv_file__dev_urandom+:} false; then :
4130 $as_echo_n "(cached) " >&6
4131else
4132 test "$cross_compiling" = yes &&
4133 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4134if test -r "/dev/urandom"; then
4135 ac_cv_file__dev_urandom=yes
4136else
4137 ac_cv_file__dev_urandom=no
4138fi
4139fi
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
4141$as_echo "$ac_cv_file__dev_urandom" >&6; }
4142if test "x$ac_cv_file__dev_urandom" = xyes; then :
4143 DEV_URANDOM=/dev/urandom
4144else
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
4146$as_echo_n "checking for /dev/random... " >&6; }
4147if ${ac_cv_file__dev_random+:} false; then :
4148 $as_echo_n "(cached) " >&6
4149else
4150 test "$cross_compiling" = yes &&
4151 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4152if test -r "/dev/random"; then
4153 ac_cv_file__dev_random=yes
4154else
4155 ac_cv_file__dev_random=no
4156fi
4157fi
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
4159$as_echo "$ac_cv_file__dev_random" >&6; }
4160if test "x$ac_cv_file__dev_random" = xyes; then :
4161 DEV_URANDOM=/dev/random
4162fi
4163
4164fi
4165
4166fi
4167
4168
4169
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4171$as_echo_n "checking for ANSI C header files... " >&6; }
4172if ${ac_cv_header_stdc+:} false; then :
4173 $as_echo_n "(cached) " >&6
4174else
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176/* end confdefs.h. */
4177#include <stdlib.h>
4178#include <stdarg.h>
4179#include <string.h>
4180#include <float.h>
4181
4182int
4183main ()
4184{
4185
4186 ;
4187 return 0;
4188}
4189_ACEOF
4190if ac_fn_c_try_compile "$LINENO"; then :
4191 ac_cv_header_stdc=yes
4192else
4193 ac_cv_header_stdc=no
4194fi
4195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196
4197if test $ac_cv_header_stdc = yes; then
4198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200/* end confdefs.h. */
4201#include <string.h>
4202
4203_ACEOF
4204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4205 $EGREP "memchr" >/dev/null 2>&1; then :
4206
4207else
4208 ac_cv_header_stdc=no
4209fi
4210rm -f conftest*
4211
4212fi
4213
4214if test $ac_cv_header_stdc = yes; then
4215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217/* end confdefs.h. */
4218#include <stdlib.h>
4219
4220_ACEOF
4221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4222 $EGREP "free" >/dev/null 2>&1; then :
4223
4224else
4225 ac_cv_header_stdc=no
4226fi
4227rm -f conftest*
4228
4229fi
4230
4231if test $ac_cv_header_stdc = yes; then
4232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4233 if test "$cross_compiling" = yes; then :
4234 :
4235else
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237/* end confdefs.h. */
4238#include <ctype.h>
4239#include <stdlib.h>
4240#if ((' ' & 0x0FF) == 0x020)
4241# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4242# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4243#else
4244# define ISLOWER(c) \
4245 (('a' <= (c) && (c) <= 'i') \
4246 || ('j' <= (c) && (c) <= 'r') \
4247 || ('s' <= (c) && (c) <= 'z'))
4248# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4249#endif
4250
4251#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4252int
4253main ()
4254{
4255 int i;
4256 for (i = 0; i < 256; i++)
4257 if (XOR (islower (i), ISLOWER (i))
4258 || toupper (i) != TOUPPER (i))
4259 return 2;
4260 return 0;
4261}
4262_ACEOF
4263if ac_fn_c_try_run "$LINENO"; then :
4264
4265else
4266 ac_cv_header_stdc=no
4267fi
4268rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4269 conftest.$ac_objext conftest.beam conftest.$ac_ext
4270fi
4271
4272fi
4273fi
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4275$as_echo "$ac_cv_header_stdc" >&6; }
4276if test $ac_cv_header_stdc = yes; then
4277
4278$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4279
4280fi
4281
4282for ac_header in stdlib.h
4283do :
4284 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4285if test "x$ac_cv_header_stdlib_h" = xyes; then :
4286 cat >>confdefs.h <<_ACEOF
4287#define HAVE_STDLIB_H 1
4288_ACEOF
4289
4290fi
4291
4292done
4293
4294for ac_header in unistd.h
4295do :
4296 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4297if test "x$ac_cv_header_unistd_h" = xyes; then :
4298 cat >>confdefs.h <<_ACEOF
4299#define HAVE_UNISTD_H 1
4300_ACEOF
4301
4302fi
4303
4304done
4305
4306for ac_header in byteswap.h
4307do :
4308 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
4309if test "x$ac_cv_header_byteswap_h" = xyes; then :
4310 cat >>confdefs.h <<_ACEOF
4311#define HAVE_BYTESWAP_H 1
4312_ACEOF
4313
4314fi
4315
4316done
4317
4318for ac_header in stdint.h
4319do :
4320 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4321if test "x$ac_cv_header_stdint_h" = xyes; then :
4322 cat >>confdefs.h <<_ACEOF
4323#define HAVE_STDINT_H 1
4324_ACEOF
4325
4326fi
4327
4328done
4329
4330for ac_header in sys/uio.h
4331do :
4332 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
4333if test "x$ac_cv_header_sys_uio_h" = xyes; then :
4334 cat >>confdefs.h <<_ACEOF
4335#define HAVE_SYS_UIO_H 1
4336_ACEOF
4337
4338fi
4339
4340done
4341
4342for ac_header in inttypes.h
4343do :
4344 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
4345if test "x$ac_cv_header_inttypes_h" = xyes; then :
4346 cat >>confdefs.h <<_ACEOF
4347#define HAVE_INTTYPES_H 1
4348_ACEOF
4349
4350fi
4351
4352done
4353
4354for ac_header in sys/types.h
4355do :
4356 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4357if test "x$ac_cv_header_sys_types_h" = xyes; then :
4358 cat >>confdefs.h <<_ACEOF
4359#define HAVE_SYS_TYPES_H 1
4360_ACEOF
4361
4362fi
4363
4364done
4365
4366for ac_header in machine/types.h
4367do :
4368 ac_fn_c_check_header_mongrel "$LINENO" "machine/types.h" "ac_cv_header_machine_types_h" "$ac_includes_default"
4369if test "x$ac_cv_header_machine_types_h" = xyes; then :
4370 cat >>confdefs.h <<_ACEOF
4371#define HAVE_MACHINE_TYPES_H 1
4372_ACEOF
4373
4374fi
4375
4376done
4377
4378for ac_header in sys/int_types.h
4379do :
4380 ac_fn_c_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default"
4381if test "x$ac_cv_header_sys_int_types_h" = xyes; then :
4382 cat >>confdefs.h <<_ACEOF
4383#define HAVE_SYS_INT_TYPES_H 1
4384_ACEOF
4385
4386fi
4387
4388done
4389
4390
4391for ac_header in sys/socket.h netinet/in.h arpa/inet.h
4392do :
4393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4394ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4395if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4396 cat >>confdefs.h <<_ACEOF
4397#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4398_ACEOF
4399
4400fi
4401
4402done
4403
4404for ac_header in windows.h
4405do :
4406 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
4407if test "x$ac_cv_header_windows_h" = xyes; then :
4408 cat >>confdefs.h <<_ACEOF
4409#define HAVE_WINDOWS_H 1
4410_ACEOF
4411 for ac_header in winsock2.h
4412do :
4413 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4414if test "x$ac_cv_header_winsock2_h" = xyes; then :
4415 cat >>confdefs.h <<_ACEOF
4416#define HAVE_WINSOCK2_H 1
4417_ACEOF
4418
4419fi
4420
4421done
4422
4423fi
4424
4425done
4426
4427
4428for ac_header in syslog.h
4429do :
4430 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
4431if test "x$ac_cv_header_syslog_h" = xyes; then :
4432 cat >>confdefs.h <<_ACEOF
4433#define HAVE_SYSLOG_H 1
4434_ACEOF
4435
4436fi
4437
4438done
4439
4440
4441ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
4442if test "x$ac_cv_type_int8_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004443
David McGrewfec49dd2005-09-23 19:34:11 +00004444cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004445#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004446_ACEOF
4447
4448
4449fi
jfigusc7e66e32013-05-08 11:32:55 -04004450ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4451if test "x$ac_cv_type_uint8_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004452
4453cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004454#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004455_ACEOF
4456
4457
4458fi
jfigusc7e66e32013-05-08 11:32:55 -04004459ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4460if test "x$ac_cv_type_int16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004461
4462cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004463#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004464_ACEOF
4465
4466
4467fi
jfigusc7e66e32013-05-08 11:32:55 -04004468ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4469if test "x$ac_cv_type_uint16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004470
4471cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004472#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004473_ACEOF
4474
4475
4476fi
jfigusc7e66e32013-05-08 11:32:55 -04004477ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
4478if test "x$ac_cv_type_int32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004479
4480cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004481#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004482_ACEOF
4483
4484
4485fi
jfigusc7e66e32013-05-08 11:32:55 -04004486ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4487if test "x$ac_cv_type_uint32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004488
4489cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004490#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004491_ACEOF
4492
4493
4494fi
jfigusc7e66e32013-05-08 11:32:55 -04004495ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
4496if test "x$ac_cv_type_uint64_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004497
4498cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004499#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004500_ACEOF
4501
4502
4503fi
4504
jfigusc7e66e32013-05-08 11:32:55 -04004505# The cast to long int works around a bug in the HP C Compiler
4506# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4507# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4508# This bug is HP SR number 8606223364.
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4510$as_echo_n "checking size of unsigned long... " >&6; }
4511if ${ac_cv_sizeof_unsigned_long+:} false; then :
4512 $as_echo_n "(cached) " >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004513else
jfigusc7e66e32013-05-08 11:32:55 -04004514 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 +00004515
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004516else
4517 if test "$ac_cv_type_unsigned_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4520as_fn_error 77 "cannot compute sizeof (unsigned long)
4521See \`config.log' for more details" "$LINENO" 5; }
4522 else
4523 ac_cv_sizeof_unsigned_long=0
4524 fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004525fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004526
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004527fi
jfigusc7e66e32013-05-08 11:32:55 -04004528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
4529$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004530
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004531
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004532
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004533cat >>confdefs.h <<_ACEOF
4534#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
4535_ACEOF
4536
David McGrewfec49dd2005-09-23 19:34:11 +00004537
jfigusc7e66e32013-05-08 11:32:55 -04004538# The cast to long int works around a bug in the HP C Compiler
4539# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4540# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4541# This bug is HP SR number 8606223364.
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
4543$as_echo_n "checking size of unsigned long long... " >&6; }
4544if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
4545 $as_echo_n "(cached) " >&6
David McGrewfec49dd2005-09-23 19:34:11 +00004546else
jfigusc7e66e32013-05-08 11:32:55 -04004547 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 +00004548
David McGrewfec49dd2005-09-23 19:34:11 +00004549else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004550 if test "$ac_cv_type_unsigned_long_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4553as_fn_error 77 "cannot compute sizeof (unsigned long long)
4554See \`config.log' for more details" "$LINENO" 5; }
4555 else
4556 ac_cv_sizeof_unsigned_long_long=0
4557 fi
David McGrewfec49dd2005-09-23 19:34:11 +00004558fi
4559
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004560fi
jfigusc7e66e32013-05-08 11:32:55 -04004561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
4562$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004563
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004564
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004565
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004566cat >>confdefs.h <<_ACEOF
4567#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00004568_ACEOF
4569
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004570
Cullen Jennings235513a2005-09-21 22:51:36 +00004571
jfigusc7e66e32013-05-08 11:32:55 -04004572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4573$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4574if ${ac_cv_c_const+:} false; then :
4575 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004576else
jfigusc7e66e32013-05-08 11:32:55 -04004577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004578/* end confdefs.h. */
4579
4580int
4581main ()
4582{
jfigusc7e66e32013-05-08 11:32:55 -04004583
Cullen Jennings235513a2005-09-21 22:51:36 +00004584#ifndef __cplusplus
jfigusc7e66e32013-05-08 11:32:55 -04004585 /* Ultrix mips cc rejects this sort of thing. */
Cullen Jennings235513a2005-09-21 22:51:36 +00004586 typedef int charset[2];
jfigusc7e66e32013-05-08 11:32:55 -04004587 const charset cs = { 0, 0 };
Cullen Jennings235513a2005-09-21 22:51:36 +00004588 /* SunOS 4.1.1 cc rejects this. */
jfigusc7e66e32013-05-08 11:32:55 -04004589 char const *const *pcpcc;
4590 char **ppc;
Cullen Jennings235513a2005-09-21 22:51:36 +00004591 /* NEC SVR4.0.2 mips cc rejects this. */
4592 struct point {int x, y;};
4593 static struct point const zero = {0,0};
4594 /* AIX XL C 1.02.0.0 rejects this.
4595 It does not let you subtract one const X* pointer from another in
4596 an arm of an if-expression whose if-part is not a constant
4597 expression */
4598 const char *g = "string";
jfigusc7e66e32013-05-08 11:32:55 -04004599 pcpcc = &g + (g ? g-g : 0);
Cullen Jennings235513a2005-09-21 22:51:36 +00004600 /* HPUX 7.0 cc rejects these. */
jfigusc7e66e32013-05-08 11:32:55 -04004601 ++pcpcc;
4602 ppc = (char**) pcpcc;
4603 pcpcc = (char const *const *) ppc;
4604 { /* SCO 3.2v4 cc rejects this sort of thing. */
4605 char tx;
4606 char *t = &tx;
Cullen Jennings235513a2005-09-21 22:51:36 +00004607 char const *s = 0 ? (char *) 0 : (char const *) 0;
4608
4609 *t++ = 0;
jfigusc7e66e32013-05-08 11:32:55 -04004610 if (s) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004611 }
4612 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4613 int x[] = {25, 17};
4614 const int *foo = &x[0];
4615 ++foo;
4616 }
4617 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4618 typedef const int *iptr;
4619 iptr p = 0;
4620 ++p;
4621 }
jfigusc7e66e32013-05-08 11:32:55 -04004622 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Cullen Jennings235513a2005-09-21 22:51:36 +00004623 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
jfigusc7e66e32013-05-08 11:32:55 -04004624 struct s { int j; const int *ap[3]; } bx;
4625 struct s *b = &bx; b->j = 5;
Cullen Jennings235513a2005-09-21 22:51:36 +00004626 }
4627 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4628 const int foo = 10;
jfigusc7e66e32013-05-08 11:32:55 -04004629 if (!foo) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004630 }
jfigusc7e66e32013-05-08 11:32:55 -04004631 return !cs[0] && !zero.x;
Cullen Jennings235513a2005-09-21 22:51:36 +00004632#endif
4633
4634 ;
4635 return 0;
4636}
4637_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004638if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004639 ac_cv_c_const=yes
4640else
jfigusc7e66e32013-05-08 11:32:55 -04004641 ac_cv_c_const=no
Cullen Jennings235513a2005-09-21 22:51:36 +00004642fi
jfigusc7e66e32013-05-08 11:32:55 -04004643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004644fi
jfigusc7e66e32013-05-08 11:32:55 -04004645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4646$as_echo "$ac_cv_c_const" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004647if test $ac_cv_c_const = no; then
4648
jfigusc7e66e32013-05-08 11:32:55 -04004649$as_echo "#define const /**/" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004650
4651fi
4652
jfigusc7e66e32013-05-08 11:32:55 -04004653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4654$as_echo_n "checking for inline... " >&6; }
4655if ${ac_cv_c_inline+:} false; then :
4656 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004657else
4658 ac_cv_c_inline=no
4659for ac_kw in inline __inline__ __inline; do
jfigusc7e66e32013-05-08 11:32:55 -04004660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004661/* end confdefs.h. */
4662#ifndef __cplusplus
4663typedef int foo_t;
4664static $ac_kw foo_t static_foo () {return 0; }
4665$ac_kw foo_t foo () {return 0; }
4666#endif
4667
4668_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004669if ac_fn_c_try_compile "$LINENO"; then :
4670 ac_cv_c_inline=$ac_kw
Cullen Jennings235513a2005-09-21 22:51:36 +00004671fi
jfigusc7e66e32013-05-08 11:32:55 -04004672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673 test "$ac_cv_c_inline" != no && break
Cullen Jennings235513a2005-09-21 22:51:36 +00004674done
4675
4676fi
jfigusc7e66e32013-05-08 11:32:55 -04004677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4678$as_echo "$ac_cv_c_inline" >&6; }
David McGrewfec49dd2005-09-23 19:34:11 +00004679
Cullen Jennings235513a2005-09-21 22:51:36 +00004680case $ac_cv_c_inline in
4681 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00004682 *)
4683 case $ac_cv_c_inline in
4684 no) ac_val=;;
4685 *) ac_val=$ac_cv_c_inline;;
4686 esac
4687 cat >>confdefs.h <<_ACEOF
4688#ifndef __cplusplus
4689#define inline $ac_val
4690#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00004691_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00004692 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00004693esac
4694
jfigusc7e66e32013-05-08 11:32:55 -04004695ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4696if test "x$ac_cv_type_size_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004697
Cullen Jennings235513a2005-09-21 22:51:36 +00004698else
4699
4700cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004701#define size_t unsigned int
Cullen Jennings235513a2005-09-21 22:51:36 +00004702_ACEOF
4703
4704fi
4705
4706
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00004707for ac_func in socket inet_aton usleep sigaction
jfigusc7e66e32013-05-08 11:32:55 -04004708do :
4709 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4710ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4711if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004712 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004713#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00004714_ACEOF
4715
4716fi
4717done
4718
4719
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004720if test "x$ac_cv_func_socket" = "xno"; then
jfigusc7e66e32013-05-08 11:32:55 -04004721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4722$as_echo_n "checking for socket in -lsocket... " >&6; }
4723if ${ac_cv_lib_socket_socket+:} false; then :
4724 $as_echo_n "(cached) " >&6
David McGrewb67061f2005-09-28 14:23:06 +00004725else
4726 ac_check_lib_save_LIBS=$LIBS
4727LIBS="-lsocket $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04004728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004729/* end confdefs.h. */
4730
jfigusc7e66e32013-05-08 11:32:55 -04004731/* Override any GCC internal prototype to avoid an error.
4732 Use char because int might match the return type of a GCC
4733 builtin and then its argument prototype would still apply. */
David McGrewb67061f2005-09-28 14:23:06 +00004734#ifdef __cplusplus
4735extern "C"
4736#endif
David McGrewb67061f2005-09-28 14:23:06 +00004737char socket ();
4738int
4739main ()
4740{
jfigusc7e66e32013-05-08 11:32:55 -04004741return socket ();
David McGrewb67061f2005-09-28 14:23:06 +00004742 ;
4743 return 0;
4744}
4745_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004746if ac_fn_c_try_link "$LINENO"; then :
David McGrewb67061f2005-09-28 14:23:06 +00004747 ac_cv_lib_socket_socket=yes
4748else
jfigusc7e66e32013-05-08 11:32:55 -04004749 ac_cv_lib_socket_socket=no
David McGrewb67061f2005-09-28 14:23:06 +00004750fi
jfigusc7e66e32013-05-08 11:32:55 -04004751rm -f core conftest.err conftest.$ac_objext \
4752 conftest$ac_exeext conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004753LIBS=$ac_check_lib_save_LIBS
4754fi
jfigusc7e66e32013-05-08 11:32:55 -04004755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4756$as_echo "$ac_cv_lib_socket_socket" >&6; }
4757if test "x$ac_cv_lib_socket_socket" = xyes; then :
David McGrewb67061f2005-09-28 14:23:06 +00004758 cat >>confdefs.h <<_ACEOF
4759#define HAVE_LIBSOCKET 1
4760_ACEOF
4761
4762 LIBS="-lsocket $LIBS"
4763
4764fi
4765
jfigusc7e66e32013-05-08 11:32:55 -04004766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
4767$as_echo_n "checking for socket in -lwsock32... " >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004768 SAVELIBS="$LIBS"
4769 LIBS="$LIBS -lwsock32"
jfigusc7e66e32013-05-08 11:32:55 -04004770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004771/* end confdefs.h. */
4772
4773#include <winsock2.h>
4774
4775int
4776main ()
4777{
4778
4779socket(0, 0, 0);
4780
4781 ;
4782 return 0;
4783}
4784_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004785if ac_fn_c_try_link "$LINENO"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004786 ac_cv_func_socket=yes
jfigusc7e66e32013-05-08 11:32:55 -04004787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4788$as_echo "yes" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004789else
jfigusc7e66e32013-05-08 11:32:55 -04004790 LIBS="$SAVELIBS"
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792$as_echo "no" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004793fi
jfigusc7e66e32013-05-08 11:32:55 -04004794rm -f core conftest.err conftest.$ac_objext \
4795 conftest$ac_exeext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004796fi
David McGrewb67061f2005-09-28 14:23:06 +00004797
jfigusc7e66e32013-05-08 11:32:55 -04004798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debugging" >&5
4799$as_echo_n "checking whether to compile in debugging... " >&6; }
4800# Check whether --enable-debug was given.
4801if test "${enable_debug+set}" = set; then :
4802 enableval=$enable_debug;
David McGrewb67061f2005-09-28 14:23:06 +00004803else
4804 enable_debug=yes
jfigusc7e66e32013-05-08 11:32:55 -04004805fi
4806
David McGrewb67061f2005-09-28 14:23:06 +00004807if test "$enable_debug" = "yes"; then
4808
jfigusc7e66e32013-05-08 11:32:55 -04004809$as_echo "#define ENABLE_DEBUGGING 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004810
4811fi
jfigusc7e66e32013-05-08 11:32:55 -04004812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
4813$as_echo "$enable_debug" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004814
jfigusc7e66e32013-05-08 11:32:55 -04004815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ISMAcryp code" >&5
4816$as_echo_n "checking whether to use ISMAcryp code... " >&6; }
4817# Check whether --enable-generic-aesicm was given.
4818if test "${enable_generic_aesicm+set}" = set; then :
4819 enableval=$enable_generic_aesicm;
David McGrewb67061f2005-09-28 14:23:06 +00004820else
4821 enable_generic_aesicm=no
jfigusc7e66e32013-05-08 11:32:55 -04004822fi
4823
David McGrewb67061f2005-09-28 14:23:06 +00004824if test "$enable_generic_aesicm" = "yes"; then
4825
jfigusc7e66e32013-05-08 11:32:55 -04004826$as_echo "#define GENERIC_AESICM 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04004827
jfigusa14b5a02013-03-29 12:24:12 -04004828fi
jfigusc7e66e32013-05-08 11:32:55 -04004829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generic_aesicm" >&5
4830$as_echo "$enable_generic_aesicm" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04004831
jfigusc7e66e32013-05-08 11:32:55 -04004832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
4833$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
4834# Check whether --enable-openssl was given.
4835if test "${enable_openssl+set}" = set; then :
4836 enableval=$enable_openssl;
4837else
4838 enable_openssl=no
4839fi
jfigusa14b5a02013-03-29 12:24:12 -04004840
jfigus2b486652014-07-24 15:01:41 -04004841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
4842$as_echo "$enable_openssl" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04004843if test "$enable_openssl" = "yes"; then
Sean Brightbfb9e302014-03-24 20:45:17 -04004844 LDFLAGS="$LDFLAGS $(pkg-config --libs openssl)";
4845 CFLAGS="$CFLAGS $(pkg-config --cflags openssl)";
Cullen Jenningse1de50f2013-05-22 12:27:28 -06004846
jfigusc7e66e32013-05-08 11:32:55 -04004847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
4848$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
4849if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
4850 $as_echo_n "(cached) " >&6
4851else
4852 ac_check_lib_save_LIBS=$LIBS
4853LIBS="-lcrypto $LIBS"
4854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855/* end confdefs.h. */
4856
4857/* Override any GCC internal prototype to avoid an error.
4858 Use char because int might match the return type of a GCC
4859 builtin and then its argument prototype would still apply. */
4860#ifdef __cplusplus
4861extern "C"
4862#endif
4863char EVP_EncryptInit ();
4864int
4865main ()
4866{
4867return EVP_EncryptInit ();
4868 ;
4869 return 0;
4870}
4871_ACEOF
4872if ac_fn_c_try_link "$LINENO"; then :
4873 ac_cv_lib_crypto_EVP_EncryptInit=yes
4874else
4875 ac_cv_lib_crypto_EVP_EncryptInit=no
4876fi
4877rm -f core conftest.err conftest.$ac_objext \
4878 conftest$ac_exeext conftest.$ac_ext
4879LIBS=$ac_check_lib_save_LIBS
4880fi
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
4882$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
4883if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
4884 cat >>confdefs.h <<_ACEOF
4885#define HAVE_LIBCRYPTO 1
4886_ACEOF
4887
4888 LIBS="-lcrypto $LIBS"
4889
4890else
4891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
jfigus5b22e372013-05-09 09:23:26 -04004893as_fn_error $? "can't find openssl >1.0.1 crypto lib
4894See \`config.log' for more details" "$LINENO" 5; }
4895fi
4896
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_ctr in -lcrypto" >&5
4898$as_echo_n "checking for EVP_aes_128_ctr in -lcrypto... " >&6; }
4899if ${ac_cv_lib_crypto_EVP_aes_128_ctr+:} false; then :
4900 $as_echo_n "(cached) " >&6
4901else
4902 ac_check_lib_save_LIBS=$LIBS
4903LIBS="-lcrypto $LIBS"
4904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905/* end confdefs.h. */
4906
4907/* Override any GCC internal prototype to avoid an error.
4908 Use char because int might match the return type of a GCC
4909 builtin and then its argument prototype would still apply. */
4910#ifdef __cplusplus
4911extern "C"
4912#endif
4913char EVP_aes_128_ctr ();
4914int
4915main ()
4916{
4917return EVP_aes_128_ctr ();
4918 ;
4919 return 0;
4920}
4921_ACEOF
4922if ac_fn_c_try_link "$LINENO"; then :
4923 ac_cv_lib_crypto_EVP_aes_128_ctr=yes
4924else
4925 ac_cv_lib_crypto_EVP_aes_128_ctr=no
4926fi
4927rm -f core conftest.err conftest.$ac_objext \
4928 conftest$ac_exeext conftest.$ac_ext
4929LIBS=$ac_check_lib_save_LIBS
4930fi
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_ctr" >&5
4932$as_echo "$ac_cv_lib_crypto_EVP_aes_128_ctr" >&6; }
4933if test "x$ac_cv_lib_crypto_EVP_aes_128_ctr" = xyes; then :
4934 cat >>confdefs.h <<_ACEOF
4935#define HAVE_LIBCRYPTO 1
4936_ACEOF
4937
4938 LIBS="-lcrypto $LIBS"
4939
4940else
4941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4943as_fn_error $? "can't find openssl >1.0.1 crypto lib
jfigusc7e66e32013-05-08 11:32:55 -04004944See \`config.log' for more details" "$LINENO" 5; }
4945fi
4946
jfigus7882dd92013-08-02 16:08:23 -04004947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_gcm in -lcrypto" >&5
4948$as_echo_n "checking for EVP_aes_128_gcm in -lcrypto... " >&6; }
4949if ${ac_cv_lib_crypto_EVP_aes_128_gcm+:} false; then :
4950 $as_echo_n "(cached) " >&6
4951else
4952 ac_check_lib_save_LIBS=$LIBS
4953LIBS="-lcrypto $LIBS"
4954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955/* end confdefs.h. */
4956
4957/* Override any GCC internal prototype to avoid an error.
4958 Use char because int might match the return type of a GCC
4959 builtin and then its argument prototype would still apply. */
4960#ifdef __cplusplus
4961extern "C"
4962#endif
4963char EVP_aes_128_gcm ();
4964int
4965main ()
4966{
4967return EVP_aes_128_gcm ();
4968 ;
4969 return 0;
4970}
4971_ACEOF
4972if ac_fn_c_try_link "$LINENO"; then :
4973 ac_cv_lib_crypto_EVP_aes_128_gcm=yes
4974else
4975 ac_cv_lib_crypto_EVP_aes_128_gcm=no
4976fi
4977rm -f core conftest.err conftest.$ac_objext \
4978 conftest$ac_exeext conftest.$ac_ext
4979LIBS=$ac_check_lib_save_LIBS
4980fi
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_gcm" >&5
4982$as_echo "$ac_cv_lib_crypto_EVP_aes_128_gcm" >&6; }
4983if test "x$ac_cv_lib_crypto_EVP_aes_128_gcm" = xyes; then :
4984 cat >>confdefs.h <<_ACEOF
4985#define HAVE_LIBCRYPTO 1
4986_ACEOF
4987
4988 LIBS="-lcrypto $LIBS"
4989
4990else
4991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4993as_fn_error $? "can't find openssl >1.0.1 crypto lib
4994See \`config.log' for more details" "$LINENO" 5; }
4995fi
4996
jfigusc7e66e32013-05-08 11:32:55 -04004997
4998$as_echo "#define OPENSSL 1" >>confdefs.h
4999
jfigus7882dd92013-08-02 16:08:23 -04005000 AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
jfigusc7e66e32013-05-08 11:32:55 -04005001 RNG_OBJS=rand_source_ossl.o
5002 HMAC_OBJS=crypto/hash/hmac_ossl.o
5003 USE_OPENSSL=1
5004
5005else
5006 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o crypto/cipher/aes_cbc.o"
jfigus7882dd92013-08-02 16:08:23 -04005007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random device to use" >&5
5008$as_echo_n "checking which random device to use... " >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04005009 if test "$enable_kernel_linux" = "yes"; then
5010 RNG_OBJS=rand_linux_kernel.o
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux kernel builtin" >&5
5012$as_echo "Linux kernel builtin" >&6; }
5013 else
5014 RNG_OBJS=rand_source.o
5015 if test -n "$DEV_URANDOM"; then
5016
5017cat >>confdefs.h <<_ACEOF
5018#define DEV_URANDOM "$DEV_URANDOM"
5019_ACEOF
5020
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_URANDOM" >&5
5022$as_echo "$DEV_URANDOM" >&6; }
5023 else
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: standard rand() function..." >&5
5025$as_echo "standard rand() function..." >&6; }
5026 fi
5027 fi
5028 RNG_EXTRA_OBJS="crypto/rng/prng.o crypto/rng/ctr_prng.o"
5029 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
5030fi
5031
5032
5033
5034
jfigusc7e66e32013-05-08 11:32:55 -04005035
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
5037$as_echo_n "checking for pcap_create in -lpcap... " >&6; }
5038if ${ac_cv_lib_pcap_pcap_create+:} false; then :
5039 $as_echo_n "(cached) " >&6
5040else
5041 ac_check_lib_save_LIBS=$LIBS
5042LIBS="-lpcap $LIBS"
5043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044/* end confdefs.h. */
5045
5046/* Override any GCC internal prototype to avoid an error.
5047 Use char because int might match the return type of a GCC
5048 builtin and then its argument prototype would still apply. */
5049#ifdef __cplusplus
5050extern "C"
5051#endif
5052char pcap_create ();
5053int
5054main ()
5055{
5056return pcap_create ();
5057 ;
5058 return 0;
5059}
5060_ACEOF
5061if ac_fn_c_try_link "$LINENO"; then :
5062 ac_cv_lib_pcap_pcap_create=yes
5063else
5064 ac_cv_lib_pcap_pcap_create=no
5065fi
5066rm -f core conftest.err conftest.$ac_objext \
5067 conftest$ac_exeext conftest.$ac_ext
5068LIBS=$ac_check_lib_save_LIBS
5069fi
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
5071$as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
5072if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
Bernardo Torresb3c51422014-10-14 12:40:09 -03005073 PCAP=1
5074 LIBS="-lpcap $LIBS"
5075 HAVE_PCAP=1
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005076
Bernardo Torresb3c51422014-10-14 12:40:09 -03005077$as_echo "#define HAVE_PCAP 1" >>confdefs.h
5078
5079
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005080
5081fi
5082
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005083
jfigusc7e66e32013-05-08 11:32:55 -04005084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use syslog for error reporting" >&5
5085$as_echo_n "checking whether to use syslog for error reporting... " >&6; }
5086# Check whether --enable-syslog was given.
5087if test "${enable_syslog+set}" = set; then :
5088 enableval=$enable_syslog;
David McGrewb67061f2005-09-28 14:23:06 +00005089else
5090 enable_syslog=no
jfigusc7e66e32013-05-08 11:32:55 -04005091fi
5092
David McGrewb67061f2005-09-28 14:23:06 +00005093if test "$enable_syslog" = "yes"; then
5094
jfigusc7e66e32013-05-08 11:32:55 -04005095$as_echo "#define USE_SYSLOG 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005096
5097fi
jfigusc7e66e32013-05-08 11:32:55 -04005098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_syslog" >&5
5099$as_echo "$enable_syslog" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005100
jfigusc7e66e32013-05-08 11:32:55 -04005101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use stdout for error reporting" >&5
5102$as_echo_n "checking whether to use stdout for error reporting... " >&6; }
5103# Check whether --enable-stdout was given.
5104if test "${enable_stdout+set}" = set; then :
5105 enableval=$enable_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00005106else
5107 enable_stdout=yes
jfigusc7e66e32013-05-08 11:32:55 -04005108fi
5109
David McGrewb67061f2005-09-28 14:23:06 +00005110if test "$enable_stdout" = "yes"; then
5111
jfigusc7e66e32013-05-08 11:32:55 -04005112$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005113
5114fi
jfigusc7e66e32013-05-08 11:32:55 -04005115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdout" >&5
5116$as_echo "$enable_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005117
jfigusc7e66e32013-05-08 11:32:55 -04005118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use /dev/console for error reporting" >&5
5119$as_echo_n "checking whether to use /dev/console for error reporting... " >&6; }
5120# Check whether --enable-console was given.
5121if test "${enable_console+set}" = set; then :
5122 enableval=$enable_console;
David McGrewb67061f2005-09-28 14:23:06 +00005123else
5124 enable_console=no
jfigusc7e66e32013-05-08 11:32:55 -04005125fi
5126
David McGrewb67061f2005-09-28 14:23:06 +00005127if test "$enable_console" = "yes"; then
5128
jfigusc7e66e32013-05-08 11:32:55 -04005129$as_echo "#define USE_ERR_REPORTING_FILE 1" >>confdefs.h
David McGrewb67061f2005-09-28 14:23:06 +00005130
5131
jfigusc7e66e32013-05-08 11:32:55 -04005132$as_echo "#define ERR_REPORTING_FILE \"/dev/console\"" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005133
5134fi
jfigusc7e66e32013-05-08 11:32:55 -04005135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_console" >&5
5136$as_echo "$enable_console" >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00005137
jfigusc7e66e32013-05-08 11:32:55 -04005138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GDOI key management" >&5
5139$as_echo_n "checking whether to use GDOI key management... " >&6; }
5140# Check whether --enable-gdoi was given.
5141if test "${enable_gdoi+set}" = set; then :
5142 enableval=$enable_gdoi;
David McGrewb67061f2005-09-28 14:23:06 +00005143else
5144 enable_gdoi=no
jfigusc7e66e32013-05-08 11:32:55 -04005145fi
5146
David McGrewb67061f2005-09-28 14:23:06 +00005147if test "$enable_gdoi" = "yes"; then
5148
jfigusc7e66e32013-05-08 11:32:55 -04005149$as_echo "#define SRTP_GDOI 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005150
5151 GDOI_OBJS=gdoi/srtp+gdoi.o
5152
5153fi
jfigusc7e66e32013-05-08 11:32:55 -04005154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gdoi" >&5
5155$as_echo "$enable_gdoi" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005156
jfigusc7e66e32013-05-08 11:32:55 -04005157ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00005158
5159
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005160# Extract the first word of "pkg-config", so it can be a program name with args.
5161set dummy pkg-config; ac_word=$2
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163$as_echo_n "checking for $ac_word... " >&6; }
5164if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5165 $as_echo_n "(cached) " >&6
5166else
5167 if test -n "$PKG_CONFIG"; then
5168 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5169else
5170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171for as_dir in $PATH
5172do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5177 ac_cv_prog_PKG_CONFIG="yes"
5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5180 fi
5181done
5182 done
5183IFS=$as_save_IFS
5184
5185fi
5186fi
5187PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5188if test -n "$PKG_CONFIG"; then
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5190$as_echo "$PKG_CONFIG" >&6; }
5191else
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193$as_echo "no" >&6; }
5194fi
5195
5196
5197if test "x$PKG_CONFIG" != "x"; then
5198 HAVE_PKG_CONFIG=1
5199 ac_config_files="$ac_config_files libsrtp.pc"
5200
5201else
5202 HAVE_PKG_CONFIG=0
5203fi
5204
jfigusc7e66e32013-05-08 11:32:55 -04005205ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile"
5206
Cullen Jennings235513a2005-09-21 22:51:36 +00005207cat >confcache <<\_ACEOF
5208# This file is a shell script that caches the results of configure
5209# tests run on this system so they can be shared between configure
5210# scripts and configure runs, see configure's option --config-cache.
5211# It is not useful on other systems. If it contains results you don't
5212# want to keep, you may remove or edit it.
5213#
5214# config.status only pays attention to the cache file if you give it
5215# the --recheck option to rerun configure.
5216#
5217# `ac_cv_env_foo' variables (set or unset) will be overridden when
5218# loading this file, other *unset* `ac_cv_foo' will be assigned the
5219# following values.
5220
5221_ACEOF
5222
5223# The following way of writing the cache mishandles newlines in values,
5224# but we know of no workaround that is simple, portable, and efficient.
jfigusc7e66e32013-05-08 11:32:55 -04005225# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00005226# Ultrix sh set writes to stderr and can't be redirected directly,
5227# and sets the high bit in the cache file unless we assign to the vars.
jfigusc7e66e32013-05-08 11:32:55 -04005228(
5229 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5230 eval ac_val=\$$ac_var
5231 case $ac_val in #(
5232 *${as_nl}*)
5233 case $ac_var in #(
5234 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5235$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5236 esac
5237 case $ac_var in #(
5238 _ | IFS | as_nl) ;; #(
5239 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5240 *) { eval $ac_var=; unset $ac_var;} ;;
5241 esac ;;
5242 esac
5243 done
5244
Cullen Jennings235513a2005-09-21 22:51:36 +00005245 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04005246 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5247 *${as_nl}ac_space=\ *)
5248 # `set' does not quote correctly, so add quotes: double-quote
5249 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00005250 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00005251 "s/'/'\\\\''/g;
5252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusc7e66e32013-05-08 11:32:55 -04005253 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00005254 *)
5255 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusc7e66e32013-05-08 11:32:55 -04005256 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00005257 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005258 esac |
5259 sort
5260) |
Cullen Jennings235513a2005-09-21 22:51:36 +00005261 sed '
jfigusc7e66e32013-05-08 11:32:55 -04005262 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00005263 t clear
jfigusc7e66e32013-05-08 11:32:55 -04005264 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00005265 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5266 t end
jfigusc7e66e32013-05-08 11:32:55 -04005267 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5268 :end' >>confcache
5269if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5270 if test -w "$cache_file"; then
5271 if test "x$cache_file" != "x/dev/null"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5273$as_echo "$as_me: updating cache $cache_file" >&6;}
5274 if test ! -f "$cache_file" || test -h "$cache_file"; then
5275 cat confcache >"$cache_file"
5276 else
5277 case $cache_file in #(
5278 */* | ?:*)
5279 mv -f confcache "$cache_file"$$ &&
5280 mv -f "$cache_file"$$ "$cache_file" ;; #(
5281 *)
5282 mv -f confcache "$cache_file" ;;
5283 esac
5284 fi
5285 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005286 else
jfigusc7e66e32013-05-08 11:32:55 -04005287 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5288$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00005289 fi
5290fi
5291rm -f confcache
5292
5293test "x$prefix" = xNONE && prefix=$ac_default_prefix
5294# Let make expand exec_prefix.
5295test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5296
Cullen Jennings235513a2005-09-21 22:51:36 +00005297DEFS=-DHAVE_CONFIG_H
5298
5299ac_libobjs=
5300ac_ltlibobjs=
jfigusc7e66e32013-05-08 11:32:55 -04005301U=
Cullen Jennings235513a2005-09-21 22:51:36 +00005302for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5303 # 1. Remove the extension, and $U if already installed.
jfigusc7e66e32013-05-08 11:32:55 -04005304 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5305 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5306 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5307 # will be set to the directory where LIBOBJS objects are built.
5308 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5309 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00005310done
5311LIBOBJS=$ac_libobjs
5312
5313LTLIBOBJS=$ac_ltlibobjs
5314
5315
5316
jfigusc7e66e32013-05-08 11:32:55 -04005317
5318: "${CONFIG_STATUS=./config.status}"
5319ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00005320ac_clean_files_save=$ac_clean_files
5321ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusc7e66e32013-05-08 11:32:55 -04005322{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5323$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5324as_write_fail=0
5325cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005326#! $SHELL
5327# Generated by $as_me.
5328# Run this file to recreate the current configuration.
5329# Compiler output produced by configure, useful for debugging
5330# configure, is in config.log if it exists.
5331
5332debug=false
5333ac_cs_recheck=false
5334ac_cs_silent=false
jfigusc7e66e32013-05-08 11:32:55 -04005335
Cullen Jennings235513a2005-09-21 22:51:36 +00005336SHELL=\${CONFIG_SHELL-$SHELL}
jfigusc7e66e32013-05-08 11:32:55 -04005337export SHELL
5338_ASEOF
5339cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5340## -------------------- ##
5341## M4sh Initialization. ##
5342## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00005343
jfigusc7e66e32013-05-08 11:32:55 -04005344# Be more Bourne compatible
5345DUALCASE=1; export DUALCASE # for MKS sh
5346if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005347 emulate sh
5348 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -04005349 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00005350 # is contrary to our usage. Disable this feature.
5351 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -04005352 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00005353else
jfigusc7e66e32013-05-08 11:32:55 -04005354 case `(set -o) 2>/dev/null` in #(
5355 *posix*) :
5356 set -o posix ;; #(
5357 *) :
5358 ;;
5359esac
Cullen Jennings235513a2005-09-21 22:51:36 +00005360fi
5361
5362
jfigusc7e66e32013-05-08 11:32:55 -04005363as_nl='
5364'
5365export as_nl
5366# Printing a long string crashes Solaris 7 /usr/bin/printf.
5367as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5368as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5369as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5370# Prefer a ksh shell builtin over an external printf program on Solaris,
5371# but without wasting forks for bash or zsh.
5372if test -z "$BASH_VERSION$ZSH_VERSION" \
5373 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5374 as_echo='print -r --'
5375 as_echo_n='print -rn --'
5376elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5377 as_echo='printf %s\n'
5378 as_echo_n='printf %s'
5379else
5380 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5381 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5382 as_echo_n='/usr/ucb/echo -n'
5383 else
5384 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5385 as_echo_n_body='eval
5386 arg=$1;
5387 case $arg in #(
5388 *"$as_nl"*)
5389 expr "X$arg" : "X\\(.*\\)$as_nl";
5390 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5391 esac;
5392 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5393 '
5394 export as_echo_n_body
5395 as_echo_n='sh -c $as_echo_n_body as_echo'
5396 fi
5397 export as_echo_body
5398 as_echo='sh -c $as_echo_body as_echo'
5399fi
5400
5401# The user is always right.
5402if test "${PATH_SEPARATOR+set}" != set; then
5403 PATH_SEPARATOR=:
5404 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5405 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5406 PATH_SEPARATOR=';'
5407 }
5408fi
5409
5410
5411# IFS
5412# We need space, tab and new line, in precisely that order. Quoting is
5413# there to prevent editors from complaining about space-tab.
5414# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5415# splitting by setting IFS to empty value.)
5416IFS=" "" $as_nl"
5417
5418# Find who we are. Look in the path if we contain no directory separator.
5419as_myself=
5420case $0 in #((
5421 *[\\/]* ) as_myself=$0 ;;
5422 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423for as_dir in $PATH
5424do
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5427 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5428 done
5429IFS=$as_save_IFS
5430
5431 ;;
5432esac
5433# We did not find ourselves, most probably we were run as `sh COMMAND'
5434# in which case we are not to be found in the path.
5435if test "x$as_myself" = x; then
5436 as_myself=$0
5437fi
5438if test ! -f "$as_myself"; then
5439 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5440 exit 1
5441fi
5442
5443# Unset variables that we do not need and which cause bugs (e.g. in
5444# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5445# suppresses any "Segmentation fault" message there. '((' could
5446# trigger a bug in pdksh 5.2.14.
5447for as_var in BASH_ENV ENV MAIL MAILPATH
5448do eval test x\${$as_var+set} = xset \
5449 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5450done
Cullen Jennings235513a2005-09-21 22:51:36 +00005451PS1='$ '
5452PS2='> '
5453PS4='+ '
5454
5455# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -04005456LC_ALL=C
5457export LC_ALL
5458LANGUAGE=C
5459export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -04005460
jfigusc7e66e32013-05-08 11:32:55 -04005461# CDPATH.
5462(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5463
5464
5465# as_fn_error STATUS ERROR [LINENO LOG_FD]
5466# ----------------------------------------
5467# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5468# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5469# script with STATUS, using 1 if that was 0.
5470as_fn_error ()
5471{
5472 as_status=$1; test $as_status -eq 0 && as_status=1
5473 if test "$4"; then
5474 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5475 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5476 fi
5477 $as_echo "$as_me: error: $2" >&2
5478 as_fn_exit $as_status
5479} # as_fn_error
5480
5481
5482# as_fn_set_status STATUS
5483# -----------------------
5484# Set $? to STATUS, without forking.
5485as_fn_set_status ()
5486{
5487 return $1
5488} # as_fn_set_status
5489
5490# as_fn_exit STATUS
5491# -----------------
5492# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5493as_fn_exit ()
5494{
5495 set +e
5496 as_fn_set_status $1
5497 exit $1
5498} # as_fn_exit
5499
5500# as_fn_unset VAR
5501# ---------------
5502# Portably unset VAR.
5503as_fn_unset ()
5504{
5505 { eval $1=; unset $1;}
5506}
5507as_unset=as_fn_unset
5508# as_fn_append VAR VALUE
5509# ----------------------
5510# Append the text in VALUE to the end of the definition contained in VAR. Take
5511# advantage of any shell optimizations that allow amortized linear growth over
5512# repeated appends, instead of the typical quadratic growth present in naive
5513# implementations.
5514if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5515 eval 'as_fn_append ()
5516 {
5517 eval $1+=\$2
5518 }'
5519else
5520 as_fn_append ()
5521 {
5522 eval $1=\$$1\$2
5523 }
5524fi # as_fn_append
5525
5526# as_fn_arith ARG...
5527# ------------------
5528# Perform arithmetic evaluation on the ARGs, and store the result in the
5529# global $as_val. Take advantage of shells that can avoid forks. The arguments
5530# must be portable across $(()) and expr.
5531if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5532 eval 'as_fn_arith ()
5533 {
5534 as_val=$(( $* ))
5535 }'
5536else
5537 as_fn_arith ()
5538 {
5539 as_val=`expr "$@" || test $? -eq 1`
5540 }
5541fi # as_fn_arith
5542
5543
5544if expr a : '\(a\)' >/dev/null 2>&1 &&
5545 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005546 as_expr=expr
5547else
5548 as_expr=false
5549fi
5550
jfigusc7e66e32013-05-08 11:32:55 -04005551if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005552 as_basename=basename
5553else
5554 as_basename=false
5555fi
5556
jfigusc7e66e32013-05-08 11:32:55 -04005557if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5558 as_dirname=dirname
5559else
5560 as_dirname=false
5561fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005562
jfigusc7e66e32013-05-08 11:32:55 -04005563as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00005564$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5565 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04005566 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5567$as_echo X/"$0" |
5568 sed '/^.*\/\([^/][^/]*\)\/*$/{
5569 s//\1/
5570 q
5571 }
5572 /^X\/\(\/\/\)$/{
5573 s//\1/
5574 q
5575 }
5576 /^X\/\(\/\).*/{
5577 s//\1/
5578 q
5579 }
5580 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005581
Cullen Jennings235513a2005-09-21 22:51:36 +00005582# Avoid depending upon Character Ranges.
5583as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5584as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5585as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5586as_cr_digits='0123456789'
5587as_cr_alnum=$as_cr_Letters$as_cr_digits
5588
jfigusc7e66e32013-05-08 11:32:55 -04005589ECHO_C= ECHO_N= ECHO_T=
5590case `echo -n x` in #(((((
5591-n*)
5592 case `echo 'xy\c'` in
5593 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5594 xy) ECHO_C='\c';;
5595 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5596 ECHO_T=' ';;
5597 esac;;
5598*)
5599 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00005600esac
5601
Cullen Jennings235513a2005-09-21 22:51:36 +00005602rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -04005603if test -d conf$$.dir; then
5604 rm -f conf$$.dir/conf$$.file
5605else
5606 rm -f conf$$.dir
5607 mkdir conf$$.dir 2>/dev/null
5608fi
5609if (echo >conf$$.file) 2>/dev/null; then
5610 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005611 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -04005612 # ... but there are two gotchas:
5613 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5614 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5615 # In both cases, we have to default to `cp -pR'.
5616 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5617 as_ln_s='cp -pR'
5618 elif ln conf$$.file conf$$ 2>/dev/null; then
5619 as_ln_s=ln
5620 else
5621 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005622 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005623else
jfigusc7e66e32013-05-08 11:32:55 -04005624 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005625fi
jfigusc7e66e32013-05-08 11:32:55 -04005626rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5627rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00005628
jfigusc7e66e32013-05-08 11:32:55 -04005629
5630# as_fn_mkdir_p
5631# -------------
5632# Create "$as_dir" as a directory, including parents if necessary.
5633as_fn_mkdir_p ()
5634{
5635
5636 case $as_dir in #(
5637 -*) as_dir=./$as_dir;;
5638 esac
5639 test -d "$as_dir" || eval $as_mkdir_p || {
5640 as_dirs=
5641 while :; do
5642 case $as_dir in #(
5643 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5644 *) as_qdir=$as_dir;;
5645 esac
5646 as_dirs="'$as_qdir' $as_dirs"
5647 as_dir=`$as_dirname -- "$as_dir" ||
5648$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5649 X"$as_dir" : 'X\(//\)[^/]' \| \
5650 X"$as_dir" : 'X\(//\)$' \| \
5651 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5652$as_echo X"$as_dir" |
5653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5654 s//\1/
5655 q
5656 }
5657 /^X\(\/\/\)[^/].*/{
5658 s//\1/
5659 q
5660 }
5661 /^X\(\/\/\)$/{
5662 s//\1/
5663 q
5664 }
5665 /^X\(\/\).*/{
5666 s//\1/
5667 q
5668 }
5669 s/.*/./; q'`
5670 test -d "$as_dir" && break
5671 done
5672 test -z "$as_dirs" || eval "mkdir $as_dirs"
5673 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5674
5675
5676} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005677if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -04005678 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00005679else
David McGrewfec49dd2005-09-23 19:34:11 +00005680 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00005681 as_mkdir_p=false
5682fi
5683
jfigusc7e66e32013-05-08 11:32:55 -04005684
5685# as_fn_executable_p FILE
5686# -----------------------
5687# Test if FILE is an executable regular file.
5688as_fn_executable_p ()
5689{
5690 test -f "$1" && test -x "$1"
5691} # as_fn_executable_p
5692as_test_x='test -x'
5693as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005694
5695# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00005696as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005697
5698# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00005699as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005700
5701
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005702exec 6>&1
jfigusc7e66e32013-05-08 11:32:55 -04005703## ----------------------------------- ##
5704## Main body of $CONFIG_STATUS script. ##
5705## ----------------------------------- ##
5706_ASEOF
5707test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005708
jfigusc7e66e32013-05-08 11:32:55 -04005709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5710# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00005711# report actual input values of CONFIG_FILES etc. instead of their
jfigusc7e66e32013-05-08 11:32:55 -04005712# values after options handling.
5713ac_log="
jfigusd6580192014-10-13 10:31:30 -04005714This file was extended by libsrtp $as_me 1.5.x, which was
jfigusc7e66e32013-05-08 11:32:55 -04005715generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00005716
5717 CONFIG_FILES = $CONFIG_FILES
5718 CONFIG_HEADERS = $CONFIG_HEADERS
5719 CONFIG_LINKS = $CONFIG_LINKS
5720 CONFIG_COMMANDS = $CONFIG_COMMANDS
5721 $ $0 $@
5722
jfigusc7e66e32013-05-08 11:32:55 -04005723on `(hostname || uname -n) 2>/dev/null | sed 1q`
5724"
5725
Cullen Jennings235513a2005-09-21 22:51:36 +00005726_ACEOF
5727
jfigusc7e66e32013-05-08 11:32:55 -04005728case $ac_config_files in *"
5729"*) set x $ac_config_files; shift; ac_config_files=$*;;
5730esac
5731
5732case $ac_config_headers in *"
5733"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5734esac
5735
5736
5737cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005738# Files that config.status was made for.
jfigusc7e66e32013-05-08 11:32:55 -04005739config_files="$ac_config_files"
5740config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00005741
jfigusc7e66e32013-05-08 11:32:55 -04005742_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005743
jfigusc7e66e32013-05-08 11:32:55 -04005744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005745ac_cs_usage="\
jfigusc7e66e32013-05-08 11:32:55 -04005746\`$as_me' instantiates files and other configuration actions
5747from templates according to the current configuration. Unless the files
5748and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00005749
jfigusc7e66e32013-05-08 11:32:55 -04005750Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00005751
5752 -h, --help print this help, then exit
jfigusc7e66e32013-05-08 11:32:55 -04005753 -V, --version print version number and configuration settings, then exit
5754 --config print configuration, then exit
5755 -q, --quiet, --silent
5756 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00005757 -d, --debug don't remove temporary files
5758 --recheck update $as_me by reconfiguring in the same conditions
jfigusc7e66e32013-05-08 11:32:55 -04005759 --file=FILE[:TEMPLATE]
5760 instantiate the configuration file FILE
5761 --header=FILE[:TEMPLATE]
5762 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00005763
5764Configuration files:
5765$config_files
5766
5767Configuration headers:
5768$config_headers
5769
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005770Report bugs to <https://github.com/cisco/libsrtp/issues>."
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005771
jfigusc7e66e32013-05-08 11:32:55 -04005772_ACEOF
5773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5774ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00005775ac_cs_version="\\
jfigusd6580192014-10-13 10:31:30 -04005776libsrtp config.status 1.5.x
jfigusc7e66e32013-05-08 11:32:55 -04005777configured by $0, generated by GNU Autoconf 2.69,
5778 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00005779
jfigusc7e66e32013-05-08 11:32:55 -04005780Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00005781This config.status script is free software; the Free Software Foundation
5782gives unlimited permission to copy, distribute and modify it."
jfigusc7e66e32013-05-08 11:32:55 -04005783
5784ac_pwd='$ac_pwd'
5785srcdir='$srcdir'
5786INSTALL='$INSTALL'
5787test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00005788_ACEOF
5789
jfigusc7e66e32013-05-08 11:32:55 -04005790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5791# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00005792ac_need_defaults=:
5793while test $# != 0
5794do
5795 case $1 in
jfigusc7e66e32013-05-08 11:32:55 -04005796 --*=?*)
5797 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5798 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005799 ac_shift=:
5800 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005801 --*=)
5802 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5803 ac_optarg=
5804 ac_shift=:
5805 ;;
5806 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00005807 ac_option=$1
5808 ac_optarg=$2
5809 ac_shift=shift
5810 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005811 esac
5812
5813 case $ac_option in
5814 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00005815 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5816 ac_cs_recheck=: ;;
jfigusc7e66e32013-05-08 11:32:55 -04005817 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5818 $as_echo "$ac_cs_version"; exit ;;
5819 --config | --confi | --conf | --con | --co | --c )
5820 $as_echo "$ac_cs_config"; exit ;;
5821 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00005822 debug=: ;;
5823 --file | --fil | --fi | --f )
5824 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04005825 case $ac_optarg in
5826 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5827 '') as_fn_error $? "missing file argument" ;;
5828 esac
5829 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005830 ac_need_defaults=false;;
5831 --header | --heade | --head | --hea )
5832 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04005833 case $ac_optarg in
5834 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5835 esac
5836 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005837 ac_need_defaults=false;;
jfigusc7e66e32013-05-08 11:32:55 -04005838 --he | --h)
5839 # Conflict between --help and --header
5840 as_fn_error $? "ambiguous option: \`$1'
5841Try \`$0 --help' for more information.";;
5842 --help | --hel | -h )
5843 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005844 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5845 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5846 ac_cs_silent=: ;;
5847
5848 # This is an error.
jfigusc7e66e32013-05-08 11:32:55 -04005849 -*) as_fn_error $? "unrecognized option: \`$1'
5850Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005851
jfigusc7e66e32013-05-08 11:32:55 -04005852 *) as_fn_append ac_config_targets " $1"
5853 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005854
5855 esac
5856 shift
5857done
5858
5859ac_configure_extra_args=
5860
5861if $ac_cs_silent; then
5862 exec 6>/dev/null
5863 ac_configure_extra_args="$ac_configure_extra_args --silent"
5864fi
5865
5866_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005867cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005868if \$ac_cs_recheck; then
jfigusc7e66e32013-05-08 11:32:55 -04005869 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5870 shift
5871 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5872 CONFIG_SHELL='$SHELL'
5873 export CONFIG_SHELL
5874 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00005875fi
5876
5877_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5879exec 5>>config.log
5880{
5881 echo
5882 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5883## Running $as_me. ##
5884_ASBOX
5885 $as_echo "$ac_log"
5886} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00005887
jfigusc7e66e32013-05-08 11:32:55 -04005888_ACEOF
5889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5890_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005891
jfigusc7e66e32013-05-08 11:32:55 -04005892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005893
jfigusc7e66e32013-05-08 11:32:55 -04005894# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00005895for ac_config_target in $ac_config_targets
5896do
jfigusc7e66e32013-05-08 11:32:55 -04005897 case $ac_config_target in
5898 "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 +02005899 "libsrtp.pc") CONFIG_FILES="$CONFIG_FILES libsrtp.pc" ;;
jfigusc7e66e32013-05-08 11:32:55 -04005900 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5901 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
5902 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5903
5904 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005905 esac
5906done
5907
jfigusc7e66e32013-05-08 11:32:55 -04005908
Cullen Jennings235513a2005-09-21 22:51:36 +00005909# If the user did not use the arguments to specify the items to instantiate,
5910# then the envvar interface is used. Set only those that are not.
5911# We use the long form for the default assignment because of an extremely
5912# bizarre bug on SunOS 4.1.3.
5913if $ac_need_defaults; then
5914 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5915 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5916fi
5917
5918# Have a temporary directory for convenience. Make it in the build tree
jfigusc7e66e32013-05-08 11:32:55 -04005919# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00005920# creating and moving files from /tmp can sometimes cause problems.
jfigusc7e66e32013-05-08 11:32:55 -04005921# Hook for its removal unless debugging.
5922# Note that there is a small window in which the directory will not be cleaned:
5923# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00005924$debug ||
5925{
jfigusc7e66e32013-05-08 11:32:55 -04005926 tmp= ac_tmp=
5927 trap 'exit_status=$?
5928 : "${ac_tmp:=$tmp}"
5929 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5930' 0
5931 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00005932}
Cullen Jennings235513a2005-09-21 22:51:36 +00005933# Create a (secure) tmp directory for tmp files.
5934
5935{
jfigusc7e66e32013-05-08 11:32:55 -04005936 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5937 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00005938} ||
5939{
jfigusc7e66e32013-05-08 11:32:55 -04005940 tmp=./conf$$-$RANDOM
5941 (umask 077 && mkdir "$tmp")
5942} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5943ac_tmp=$tmp
5944
5945# Set up the scripts for CONFIG_FILES section.
5946# No need to generate them if there are no CONFIG_FILES.
5947# This happens for instance with `./config.status config.h'.
5948if test -n "$CONFIG_FILES"; then
5949
5950
5951ac_cr=`echo X | tr X '\015'`
5952# On cygwin, bash can eat \r inside `` if the user requested igncr.
5953# But we know of no other shell where ac_cr would be empty at this
5954# point, so we can use a bashism as a fallback.
5955if test "x$ac_cr" = x; then
5956 eval ac_cr=\$\'\\r\'
5957fi
5958ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5959if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5960 ac_cs_awk_cr='\\r'
5961else
5962 ac_cs_awk_cr=$ac_cr
5963fi
5964
5965echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5966_ACEOF
5967
5968
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005969{
jfigusc7e66e32013-05-08 11:32:55 -04005970 echo "cat >conf$$subs.awk <<_ACEOF" &&
5971 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5972 echo "_ACEOF"
5973} >conf$$subs.sh ||
5974 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5975ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5976ac_delim='%!_!# '
5977for ac_last_try in false false false false false :; do
5978 . ./conf$$subs.sh ||
5979 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5980
5981 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5982 if test $ac_delim_n = $ac_delim_num; then
5983 break
5984 elif $ac_last_try; then
5985 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5986 else
5987 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5988 fi
5989done
5990rm -f conf$$subs.sh
5991
5992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5993cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5994_ACEOF
5995sed -n '
5996h
5997s/^/S["/; s/!.*/"]=/
5998p
5999g
6000s/^[^!]*!//
6001:repl
6002t repl
6003s/'"$ac_delim"'$//
6004t delim
6005:nl
6006h
6007s/\(.\{148\}\)..*/\1/
6008t more1
6009s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6010p
6011n
6012b repl
6013:more1
6014s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6015p
6016g
6017s/.\{148\}//
6018t nl
6019:delim
6020h
6021s/\(.\{148\}\)..*/\1/
6022t more2
6023s/["\\]/\\&/g; s/^/"/; s/$/"/
6024p
6025b
6026:more2
6027s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6028p
6029g
6030s/.\{148\}//
6031t delim
6032' <conf$$subs.awk | sed '
6033/^[^""]/{
6034 N
6035 s/\n//
6036}
6037' >>$CONFIG_STATUS || ac_write_fail=1
6038rm -f conf$$subs.awk
6039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6040_ACAWK
6041cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6042 for (key in S) S_is_set[key] = 1
6043 FS = ""
6044
6045}
6046{
6047 line = $ 0
6048 nfields = split(line, field, "@")
6049 substed = 0
6050 len = length(field[1])
6051 for (i = 2; i < nfields; i++) {
6052 key = field[i]
6053 keylen = length(key)
6054 if (S_is_set[key]) {
6055 value = S[key]
6056 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6057 len += length(value) + length(field[++i])
6058 substed = 1
6059 } else
6060 len += 1 + keylen
6061 }
6062
6063 print line
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006064}
jfigusa14b5a02013-03-29 12:24:12 -04006065
jfigusc7e66e32013-05-08 11:32:55 -04006066_ACAWK
6067_ACEOF
6068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6069if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6070 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6071else
6072 cat
6073fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6074 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
jfigusa14b5a02013-03-29 12:24:12 -04006075_ACEOF
6076
jfigusc7e66e32013-05-08 11:32:55 -04006077# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6078# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6079# trailing colons and then remove the whole line if VPATH becomes empty
6080# (actually we leave an empty line to preserve line numbers).
6081if test "x$srcdir" = x.; then
6082 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6083h
6084s///
6085s/^/:/
6086s/[ ]*$/:/
6087s/:\$(srcdir):/:/g
6088s/:\${srcdir}:/:/g
6089s/:@srcdir@:/:/g
6090s/^:*//
6091s/:*$//
6092x
6093s/\(=[ ]*\).*/\1/
6094G
6095s/\n//
6096s/^[^=]*=[ ]*$//
6097}'
6098fi
jfigusa14b5a02013-03-29 12:24:12 -04006099
jfigusc7e66e32013-05-08 11:32:55 -04006100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006101fi # test -n "$CONFIG_FILES"
6102
jfigusc7e66e32013-05-08 11:32:55 -04006103# Set up the scripts for CONFIG_HEADERS section.
6104# No need to generate them if there are no CONFIG_HEADERS.
6105# This happens for instance with `./config.status Makefile'.
6106if test -n "$CONFIG_HEADERS"; then
6107cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6108BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00006109_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006110
6111# Transform confdefs.h into an awk script `defines.awk', embedded as
6112# here-document in config.status, that substitutes the proper values into
6113# config.h.in to produce config.h.
6114
6115# Create a delimiter string that does not exist in confdefs.h, to ease
6116# handling of long lines.
6117ac_delim='%!_!# '
6118for ac_last_try in false false :; do
6119 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6120 if test -z "$ac_tt"; then
6121 break
6122 elif $ac_last_try; then
6123 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6124 else
6125 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6126 fi
6127done
6128
6129# For the awk script, D is an array of macro values keyed by name,
6130# likewise P contains macro parameters if any. Preserve backslash
6131# newline sequences.
6132
6133ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6134sed -n '
6135s/.\{148\}/&'"$ac_delim"'/g
6136t rset
6137:rset
6138s/^[ ]*#[ ]*define[ ][ ]*/ /
6139t def
6140d
6141:def
6142s/\\$//
6143t bsnl
6144s/["\\]/\\&/g
6145s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6146D["\1"]=" \3"/p
6147s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6148d
6149:bsnl
6150s/["\\]/\\&/g
6151s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6152D["\1"]=" \3\\\\\\n"\\/p
6153t cont
6154s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6155t cont
6156d
6157:cont
6158n
6159s/.\{148\}/&'"$ac_delim"'/g
6160t clear
6161:clear
6162s/\\$//
6163t bsnlc
6164s/["\\]/\\&/g; s/^/"/; s/$/"/p
6165d
6166:bsnlc
6167s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6168b cont
6169' <confdefs.h | sed '
6170s/'"$ac_delim"'/"\\\
6171"/g' >>$CONFIG_STATUS || ac_write_fail=1
6172
6173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6174 for (key in D) D_is_set[key] = 1
6175 FS = ""
6176}
6177/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6178 line = \$ 0
6179 split(line, arg, " ")
6180 if (arg[1] == "#") {
6181 defundef = arg[2]
6182 mac1 = arg[3]
6183 } else {
6184 defundef = substr(arg[1], 2)
6185 mac1 = arg[2]
6186 }
6187 split(mac1, mac2, "(") #)
6188 macro = mac2[1]
6189 prefix = substr(line, 1, index(line, defundef) - 1)
6190 if (D_is_set[macro]) {
6191 # Preserve the white space surrounding the "#".
6192 print prefix "define", macro P[macro] D[macro]
6193 next
6194 } else {
6195 # Replace #undef with comments. This is necessary, for example,
6196 # in the case of _POSIX_SOURCE, which is predefined and required
6197 # on some systems where configure will not decide to define it.
6198 if (defundef == "undef") {
6199 print "/*", prefix defundef, macro, "*/"
6200 next
6201 }
6202 }
6203}
6204{ print }
6205_ACAWK
6206_ACEOF
6207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6208 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6209fi # test -n "$CONFIG_HEADERS"
6210
6211
6212eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6213shift
6214for ac_tag
6215do
6216 case $ac_tag in
6217 :[FHLC]) ac_mode=$ac_tag; continue;;
6218 esac
6219 case $ac_mode$ac_tag in
6220 :[FHL]*:*);;
6221 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6222 :[FH]-) ac_tag=-:-;;
6223 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6224 esac
6225 ac_save_IFS=$IFS
6226 IFS=:
6227 set x $ac_tag
6228 IFS=$ac_save_IFS
6229 shift
6230 ac_file=$1
6231 shift
6232
6233 case $ac_mode in
6234 :L) ac_source=$1;;
6235 :[FH])
6236 ac_file_inputs=
6237 for ac_f
6238 do
6239 case $ac_f in
6240 -) ac_f="$ac_tmp/stdin";;
6241 *) # Look for the file first in the build tree, then in the source tree
6242 # (if the path is not absolute). The absolute path cannot be DOS-style,
6243 # because $ac_f cannot contain `:'.
6244 test -f "$ac_f" ||
6245 case $ac_f in
6246 [\\/$]*) false;;
6247 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6248 esac ||
6249 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6250 esac
6251 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6252 as_fn_append ac_file_inputs " '$ac_f'"
6253 done
6254
6255 # Let's still pretend it is `configure' which instantiates (i.e., don't
6256 # use $as_me), people would be surprised to read:
6257 # /* config.h. Generated by config.status. */
6258 configure_input='Generated from '`
6259 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6260 `' by configure.'
6261 if test x"$ac_file" != x-; then
6262 configure_input="$ac_file. $configure_input"
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6264$as_echo "$as_me: creating $ac_file" >&6;}
6265 fi
6266 # Neutralize special characters interpreted by sed in replacement strings.
6267 case $configure_input in #(
6268 *\&* | *\|* | *\\* )
6269 ac_sed_conf_input=`$as_echo "$configure_input" |
6270 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6271 *) ac_sed_conf_input=$configure_input;;
6272 esac
6273
6274 case $ac_tag in
6275 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6276 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6277 esac
6278 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006279 esac
6280
jfigusc7e66e32013-05-08 11:32:55 -04006281 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006282$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006283 X"$ac_file" : 'X\(//\)[^/]' \| \
6284 X"$ac_file" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006285 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6286$as_echo X"$ac_file" |
6287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6288 s//\1/
6289 q
6290 }
6291 /^X\(\/\/\)[^/].*/{
6292 s//\1/
6293 q
6294 }
6295 /^X\(\/\/\)$/{
6296 s//\1/
6297 q
6298 }
6299 /^X\(\/\).*/{
6300 s//\1/
6301 q
6302 }
6303 s/.*/./; q'`
6304 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006305 ac_builddir=.
6306
jfigusc7e66e32013-05-08 11:32:55 -04006307case "$ac_dir" in
6308.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6309*)
6310 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6311 # A ".." for each directory in $ac_dir_suffix.
6312 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6313 case $ac_top_builddir_sub in
6314 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6315 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6316 esac ;;
6317esac
6318ac_abs_top_builddir=$ac_pwd
6319ac_abs_builddir=$ac_pwd$ac_dir_suffix
6320# for backward compatibility:
6321ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00006322
6323case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04006324 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00006325 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04006326 ac_top_srcdir=$ac_top_builddir_sub
6327 ac_abs_top_srcdir=$ac_pwd ;;
6328 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00006329 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04006330 ac_top_srcdir=$srcdir
6331 ac_abs_top_srcdir=$srcdir ;;
6332 *) # Relative name.
6333 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6334 ac_top_srcdir=$ac_top_build_prefix$srcdir
6335 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006336esac
jfigusc7e66e32013-05-08 11:32:55 -04006337ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00006338
Cullen Jennings235513a2005-09-21 22:51:36 +00006339
jfigusc7e66e32013-05-08 11:32:55 -04006340 case $ac_mode in
6341 :F)
6342 #
6343 # CONFIG_FILE
6344 #
Cullen Jennings235513a2005-09-21 22:51:36 +00006345
David McGrewb67061f2005-09-28 14:23:06 +00006346 case $INSTALL in
6347 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusc7e66e32013-05-08 11:32:55 -04006348 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00006349 esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006350_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006351
6352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6353# If the template does not know about datarootdir, expand it.
6354# FIXME: This hack should be removed a few years after 2.60.
6355ac_datarootdir_hack=; ac_datarootdir_seen=
6356ac_sed_dataroot='
6357/datarootdir/ {
6358 p
6359 q
6360}
6361/@datadir@/p
6362/@docdir@/p
6363/@infodir@/p
6364/@localedir@/p
6365/@mandir@/p'
6366case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6367*datarootdir*) ac_datarootdir_seen=yes;;
6368*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6370$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6371_ACEOF
6372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6373 ac_datarootdir_hack='
6374 s&@datadir@&$datadir&g
6375 s&@docdir@&$docdir&g
6376 s&@infodir@&$infodir&g
6377 s&@localedir@&$localedir&g
6378 s&@mandir@&$mandir&g
6379 s&\\\${datarootdir}&$datarootdir&g' ;;
6380esac
6381_ACEOF
6382
6383# Neutralize VPATH when `$srcdir' = `.'.
6384# Shell code in configure.ac might set extrasub.
6385# FIXME: do we really want to maintain this feature?
6386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6387ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00006388$extrasub
6389_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006390cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006391:t
6392/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusc7e66e32013-05-08 11:32:55 -04006393s|@configure_input@|$ac_sed_conf_input|;t t
6394s&@top_builddir@&$ac_top_builddir_sub&;t t
6395s&@top_build_prefix@&$ac_top_build_prefix&;t t
6396s&@srcdir@&$ac_srcdir&;t t
6397s&@abs_srcdir@&$ac_abs_srcdir&;t t
6398s&@top_srcdir@&$ac_top_srcdir&;t t
6399s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6400s&@builddir@&$ac_builddir&;t t
6401s&@abs_builddir@&$ac_abs_builddir&;t t
6402s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6403s&@INSTALL@&$ac_INSTALL&;t t
6404$ac_datarootdir_hack
6405"
6406eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6407 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00006408
jfigusc7e66e32013-05-08 11:32:55 -04006409test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6410 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6411 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6412 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6414which seems to be undefined. Please make sure it is defined" >&5
6415$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6416which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006417
jfigusc7e66e32013-05-08 11:32:55 -04006418 rm -f "$ac_tmp/stdin"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006419 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04006420 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6421 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6422 esac \
6423 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6424 ;;
6425 :H)
6426 #
6427 # CONFIG_HEADER
6428 #
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006429 if test x"$ac_file" != x-; then
jfigusc7e66e32013-05-08 11:32:55 -04006430 {
6431 $as_echo "/* $configure_input */" \
6432 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6433 } >"$ac_tmp/config.h" \
6434 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6435 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6437$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006438 else
jfigusc7e66e32013-05-08 11:32:55 -04006439 rm -f "$ac_file"
6440 mv "$ac_tmp/config.h" "$ac_file" \
6441 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006442 fi
6443 else
jfigusc7e66e32013-05-08 11:32:55 -04006444 $as_echo "/* $configure_input */" \
6445 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6446 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006447 fi
jfigusc7e66e32013-05-08 11:32:55 -04006448 ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006449
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006450
jfigusc7e66e32013-05-08 11:32:55 -04006451 esac
6452
6453done # for ac_tag
6454
6455
6456as_fn_exit 0
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006457_ACEOF
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006458ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04006459
jfigusc7e66e32013-05-08 11:32:55 -04006460test $ac_write_fail = 0 ||
6461 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6462
Cullen Jennings235513a2005-09-21 22:51:36 +00006463
6464# configure is writing to config.log, and then calls config.status.
6465# config.status does its own redirection, appending to config.log.
6466# Unfortunately, on DOS this fails, as config.log is still kept open
6467# by configure, so config.status won't be able to write to it; its
6468# output is simply discarded. So we exec the FD to /dev/null,
6469# effectively closing config.log, so it can be properly (re)opened and
6470# appended to by config.status. When coming back to configure, we
6471# need to make the FD available again.
6472if test "$no_create" != yes; then
6473 ac_cs_success=:
6474 ac_config_status_args=
6475 test "$silent" = yes &&
6476 ac_config_status_args="$ac_config_status_args --quiet"
6477 exec 5>/dev/null
6478 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6479 exec 5>>config.log
6480 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6481 # would make configure fail if this is the last instruction.
jfigusc7e66e32013-05-08 11:32:55 -04006482 $ac_cs_success || as_fn_exit 1
6483fi
6484if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6486$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006487fi
6488
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00006489
6490# This is needed when building outside the source dir.
jfigusc7e66e32013-05-08 11:32:55 -04006491as_dir=crypto/ae_xfm; as_fn_mkdir_p
6492as_dir=crypto/cipher; as_fn_mkdir_p
6493as_dir=crypto/hash; as_fn_mkdir_p
6494as_dir=crypto/kernel; as_fn_mkdir_p
6495as_dir=crypto/math; as_fn_mkdir_p
6496as_dir=crypto/replay; as_fn_mkdir_p
6497as_dir=crypto/rng; as_fn_mkdir_p
6498as_dir=crypto/test; as_fn_mkdir_p
6499as_dir=doc; as_fn_mkdir_p
6500as_dir=srtp; as_fn_mkdir_p
6501as_dir=tables; as_fn_mkdir_p
6502as_dir=test; as_fn_mkdir_p