blob: 2a7ef22b5cd9fb458b2070806f15d4471cc18f97 [file] [log] [blame]
Cullen Jennings235513a2005-09-21 22:51:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
jfigusd196e022014-11-20 16:43:44 -05003# Generated by GNU Autoconf 2.69 for libsrtp2 2.0.0-pre.
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02004#
5# Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00006#
jfigusc7e66e32013-05-08 11:32:55 -04007#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
Cullen Jennings235513a2005-09-21 22:51:36 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
jfigusc7e66e32013-05-08 11:32:55 -040013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +000016
jfigusc7e66e32013-05-08 11:32:55 -040017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +000020 emulate sh
21 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -040022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -040025 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +000026else
jfigusc7e66e32013-05-08 11:32:55 -040027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
Cullen Jennings235513a2005-09-21 22:51:36 +000033fi
34
35
jfigusc7e66e32013-05-08 11:32:55 -040036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
Cullen Jennings235513a2005-09-21 22:51:36 +0000124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -0400129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -0400133
jfigusc7e66e32013-05-08 11:32:55 -0400134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://github.com/cisco/libsrtp/issues about your
271$0: system, including any error possibly output before this
jfigusc7e66e32013-05-08 11:32:55 -0400272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000424 as_expr=expr
425else
426 as_expr=false
427fi
428
jfigusc7e66e32013-05-08 11:32:55 -0400429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000430 as_basename=basename
431else
432 as_basename=false
433fi
434
jfigusc7e66e32013-05-08 11:32:55 -0400435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
Cullen Jennings235513a2005-09-21 22:51:36 +0000440
jfigusc7e66e32013-05-08 11:32:55 -0400441as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +0000442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -0400444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000459
Cullen Jennings235513a2005-09-21 22:51:36 +0000460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
Cullen Jennings235513a2005-09-21 22:51:36 +0000467
jfigusc7e66e32013-05-08 11:32:55 -0400468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
Cullen Jennings235513a2005-09-21 22:51:36 +0000477 sed '
jfigusc7e66e32013-05-08 11:32:55 -0400478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
Cullen Jennings235513a2005-09-21 22:51:36 +0000482 N
jfigusc7e66e32013-05-08 11:32:55 -0400483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Cullen Jennings235513a2005-09-21 22:51:36 +0000485 t loop
jfigusc7e66e32013-05-08 11:32:55 -0400486 s/-\n.*//
Cullen Jennings235513a2005-09-21 22:51:36 +0000487 ' >$as_me.lineno &&
jfigusc7e66e32013-05-08 11:32:55 -0400488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Cullen Jennings235513a2005-09-21 22:51:36 +0000490
jfigusc7e66e32013-05-08 11:32:55 -0400491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
Cullen Jennings235513a2005-09-21 22:51:36 +0000495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
jfigusc7e66e32013-05-08 11:32:55 -0400497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
Cullen Jennings235513a2005-09-21 22:51:36 +0000499 # Exit status is that of the last command.
500 exit
501}
502
jfigusc7e66e32013-05-08 11:32:55 -0400503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512*)
513 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000514esac
515
Cullen Jennings235513a2005-09-21 22:51:36 +0000516rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -0400517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -0600525 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -0400526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +0000536 fi
Cullen Jennings235513a2005-09-21 22:51:36 +0000537else
jfigusc7e66e32013-05-08 11:32:55 -0400538 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +0000539fi
jfigusc7e66e32013-05-08 11:32:55 -0400540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +0000542
543if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -0400544 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +0000545else
David McGrewfec49dd2005-09-23 19:34:11 +0000546 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +0000547 as_mkdir_p=false
548fi
549
jfigusc7e66e32013-05-08 11:32:55 -0400550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +0000552
553# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +0000554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000555
556# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +0000557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000558
559
jfigusc7e66e32013-05-08 11:32:55 -0400560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
Cullen Jennings235513a2005-09-21 22:51:36 +0000562
563# Name of the host.
jfigusc7e66e32013-05-08 11:32:55 -0400564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Cullen Jennings235513a2005-09-21 22:51:36 +0000565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
Cullen Jennings235513a2005-09-21 22:51:36 +0000568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
jfigusc7e66e32013-05-08 11:32:55 -0400572ac_clean_files=
Cullen Jennings235513a2005-09-21 22:51:36 +0000573ac_config_libobj_dir=.
jfigusc7e66e32013-05-08 11:32:55 -0400574LIBOBJS=
Cullen Jennings235513a2005-09-21 22:51:36 +0000575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
Cullen Jennings235513a2005-09-21 22:51:36 +0000579
580# Identity of this package.
jfigusd196e022014-11-20 16:43:44 -0500581PACKAGE_NAME='libsrtp2'
582PACKAGE_TARNAME='libsrtp2'
jfigusb058a3b2014-10-31 09:27:18 -0400583PACKAGE_VERSION='2.0.0-pre'
jfigusd196e022014-11-20 16:43:44 -0500584PACKAGE_STRING='libsrtp2 2.0.0-pre'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200585PACKAGE_BUGREPORT='https://github.com/cisco/libsrtp/issues'
586PACKAGE_URL=''
Cullen Jennings235513a2005-09-21 22:51:36 +0000587
Cullen Jennings235513a2005-09-21 22:51:36 +0000588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -0400591#ifdef HAVE_SYS_TYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000592# include <sys/types.h>
593#endif
jfigusc7e66e32013-05-08 11:32:55 -0400594#ifdef HAVE_SYS_STAT_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000595# include <sys/stat.h>
596#endif
jfigusc7e66e32013-05-08 11:32:55 -0400597#ifdef STDC_HEADERS
Cullen Jennings235513a2005-09-21 22:51:36 +0000598# include <stdlib.h>
599# include <stddef.h>
600#else
jfigusc7e66e32013-05-08 11:32:55 -0400601# ifdef HAVE_STDLIB_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000602# include <stdlib.h>
603# endif
604#endif
jfigusc7e66e32013-05-08 11:32:55 -0400605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000607# include <memory.h>
608# endif
609# include <string.h>
610#endif
jfigusc7e66e32013-05-08 11:32:55 -0400611#ifdef HAVE_STRINGS_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000612# include <strings.h>
613#endif
jfigusc7e66e32013-05-08 11:32:55 -0400614#ifdef HAVE_INTTYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000615# include <inttypes.h>
Cullen Jennings235513a2005-09-21 22:51:36 +0000616#endif
jfigusc7e66e32013-05-08 11:32:55 -0400617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000621# include <unistd.h>
622#endif"
623
jfigusc7e66e32013-05-08 11:32:55 -0400624ac_subst_vars='LTLIBOBJS
625LIBOBJS
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200626HAVE_PKG_CONFIG
627PKG_CONFIG
Bernardo Torresb3c51422014-10-14 12:40:09 -0300628HAVE_PCAP
jfigusc7e66e32013-05-08 11:32:55 -0400629HMAC_OBJS
jfigusc7e66e32013-05-08 11:32:55 -0400630RNG_OBJS
631AES_ICM_OBJS
632USE_OPENSSL
633EXE
634host_os
635host_vendor
636host_cpu
637host
638build_os
639build_vendor
640build_cpu
641build
642EGREP
643GREP
644CPP
645INSTALL_DATA
646INSTALL_SCRIPT
647INSTALL_PROGRAM
648OBJEXT
649EXEEXT
650ac_ct_CC
651CPPFLAGS
652LDFLAGS
653CFLAGS
654CC
655RANLIB
656target_alias
657host_alias
658build_alias
659LIBS
660ECHO_T
661ECHO_N
662ECHO_C
663DEFS
664mandir
665localedir
666libdir
667psdir
668pdfdir
669dvidir
670htmldir
671infodir
672docdir
673oldincludedir
674includedir
675localstatedir
676sharedstatedir
677sysconfdir
678datadir
679datarootdir
680libexecdir
681sbindir
682bindir
683program_transform_name
684prefix
685exec_prefix
686PACKAGE_URL
687PACKAGE_BUGREPORT
688PACKAGE_STRING
689PACKAGE_VERSION
690PACKAGE_TARNAME
691PACKAGE_NAME
692PATH_SEPARATOR
693SHELL'
Cullen Jennings235513a2005-09-21 22:51:36 +0000694ac_subst_files=''
jfigusc7e66e32013-05-08 11:32:55 -0400695ac_user_opts='
696enable_option_checking
jfigusc7e66e32013-05-08 11:32:55 -0400697enable_debug
698enable_generic_aesicm
699enable_openssl
jfigusc7e66e32013-05-08 11:32:55 -0400700enable_stdout
701enable_console
jfigusc7e66e32013-05-08 11:32:55 -0400702'
703 ac_precious_vars='build_alias
704host_alias
705target_alias
706CC
707CFLAGS
708LDFLAGS
709LIBS
710CPPFLAGS
711CPP'
712
Cullen Jennings235513a2005-09-21 22:51:36 +0000713
714# Initialize some variables set by options.
715ac_init_help=
716ac_init_version=false
jfigusc7e66e32013-05-08 11:32:55 -0400717ac_unrecognized_opts=
718ac_unrecognized_sep=
Cullen Jennings235513a2005-09-21 22:51:36 +0000719# The variables have the same names as the options, with
720# dashes changed to underlines.
721cache_file=/dev/null
722exec_prefix=NONE
723no_create=
724no_recursion=
725prefix=NONE
726program_prefix=NONE
727program_suffix=NONE
728program_transform_name=s,x,x,
729silent=
730site=
731srcdir=
732verbose=
733x_includes=NONE
734x_libraries=NONE
735
736# Installation directory options.
737# These are left unexpanded so users can "make install exec_prefix=/foo"
738# and all the variables that are supposed to be based on exec_prefix
739# by default will actually change.
740# Use braces instead of parens because sh, perl, etc. also accept them.
jfigusc7e66e32013-05-08 11:32:55 -0400741# (The list follows the same order as the GNU Coding Standards.)
Cullen Jennings235513a2005-09-21 22:51:36 +0000742bindir='${exec_prefix}/bin'
743sbindir='${exec_prefix}/sbin'
744libexecdir='${exec_prefix}/libexec'
jfigusc7e66e32013-05-08 11:32:55 -0400745datarootdir='${prefix}/share'
746datadir='${datarootdir}'
Cullen Jennings235513a2005-09-21 22:51:36 +0000747sysconfdir='${prefix}/etc'
748sharedstatedir='${prefix}/com'
749localstatedir='${prefix}/var'
Cullen Jennings235513a2005-09-21 22:51:36 +0000750includedir='${prefix}/include'
751oldincludedir='/usr/include'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200752docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
jfigusc7e66e32013-05-08 11:32:55 -0400753infodir='${datarootdir}/info'
754htmldir='${docdir}'
755dvidir='${docdir}'
756pdfdir='${docdir}'
757psdir='${docdir}'
758libdir='${exec_prefix}/lib'
759localedir='${datarootdir}/locale'
760mandir='${datarootdir}/man'
Cullen Jennings235513a2005-09-21 22:51:36 +0000761
762ac_prev=
jfigusc7e66e32013-05-08 11:32:55 -0400763ac_dashdash=
Cullen Jennings235513a2005-09-21 22:51:36 +0000764for ac_option
765do
766 # If the previous option needs an argument, assign it.
767 if test -n "$ac_prev"; then
jfigusc7e66e32013-05-08 11:32:55 -0400768 eval $ac_prev=\$ac_option
Cullen Jennings235513a2005-09-21 22:51:36 +0000769 ac_prev=
770 continue
771 fi
772
jfigusc7e66e32013-05-08 11:32:55 -0400773 case $ac_option in
774 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
775 *=) ac_optarg= ;;
776 *) ac_optarg=yes ;;
777 esac
Cullen Jennings235513a2005-09-21 22:51:36 +0000778
779 # Accept the important Cygnus configure options, so we can diagnose typos.
780
jfigusc7e66e32013-05-08 11:32:55 -0400781 case $ac_dashdash$ac_option in
782 --)
783 ac_dashdash=yes ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000784
785 -bindir | --bindir | --bindi | --bind | --bin | --bi)
786 ac_prev=bindir ;;
787 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
788 bindir=$ac_optarg ;;
789
790 -build | --build | --buil | --bui | --bu)
791 ac_prev=build_alias ;;
792 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
793 build_alias=$ac_optarg ;;
794
795 -cache-file | --cache-file | --cache-fil | --cache-fi \
796 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
797 ac_prev=cache_file ;;
798 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
799 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
800 cache_file=$ac_optarg ;;
801
802 --config-cache | -C)
803 cache_file=config.cache ;;
804
jfigusc7e66e32013-05-08 11:32:55 -0400805 -datadir | --datadir | --datadi | --datad)
Cullen Jennings235513a2005-09-21 22:51:36 +0000806 ac_prev=datadir ;;
jfigusc7e66e32013-05-08 11:32:55 -0400807 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000808 datadir=$ac_optarg ;;
809
jfigusc7e66e32013-05-08 11:32:55 -0400810 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
811 | --dataroo | --dataro | --datar)
812 ac_prev=datarootdir ;;
813 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
814 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
815 datarootdir=$ac_optarg ;;
816
Cullen Jennings235513a2005-09-21 22:51:36 +0000817 -disable-* | --disable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400818 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000819 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400820 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
821 as_fn_error $? "invalid feature name: $ac_useropt"
822 ac_useropt_orig=$ac_useropt
823 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
824 case $ac_user_opts in
825 *"
826"enable_$ac_useropt"
827"*) ;;
828 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
829 ac_unrecognized_sep=', ';;
830 esac
831 eval enable_$ac_useropt=no ;;
832
833 -docdir | --docdir | --docdi | --doc | --do)
834 ac_prev=docdir ;;
835 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
836 docdir=$ac_optarg ;;
837
838 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
839 ac_prev=dvidir ;;
840 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
841 dvidir=$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000842
843 -enable-* | --enable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400844 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000845 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400846 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
847 as_fn_error $? "invalid feature name: $ac_useropt"
848 ac_useropt_orig=$ac_useropt
849 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
850 case $ac_user_opts in
851 *"
852"enable_$ac_useropt"
853"*) ;;
854 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
855 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000856 esac
jfigusc7e66e32013-05-08 11:32:55 -0400857 eval enable_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000858
859 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
860 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
861 | --exec | --exe | --ex)
862 ac_prev=exec_prefix ;;
863 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
864 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
865 | --exec=* | --exe=* | --ex=*)
866 exec_prefix=$ac_optarg ;;
867
868 -gas | --gas | --ga | --g)
869 # Obsolete; use --with-gas.
870 with_gas=yes ;;
871
872 -help | --help | --hel | --he | -h)
873 ac_init_help=long ;;
874 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
875 ac_init_help=recursive ;;
876 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
877 ac_init_help=short ;;
878
879 -host | --host | --hos | --ho)
880 ac_prev=host_alias ;;
881 -host=* | --host=* | --hos=* | --ho=*)
882 host_alias=$ac_optarg ;;
883
jfigusc7e66e32013-05-08 11:32:55 -0400884 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
885 ac_prev=htmldir ;;
886 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
887 | --ht=*)
888 htmldir=$ac_optarg ;;
889
Cullen Jennings235513a2005-09-21 22:51:36 +0000890 -includedir | --includedir | --includedi | --included | --include \
891 | --includ | --inclu | --incl | --inc)
892 ac_prev=includedir ;;
893 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
894 | --includ=* | --inclu=* | --incl=* | --inc=*)
895 includedir=$ac_optarg ;;
896
897 -infodir | --infodir | --infodi | --infod | --info | --inf)
898 ac_prev=infodir ;;
899 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
900 infodir=$ac_optarg ;;
901
902 -libdir | --libdir | --libdi | --libd)
903 ac_prev=libdir ;;
904 -libdir=* | --libdir=* | --libdi=* | --libd=*)
905 libdir=$ac_optarg ;;
906
907 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
908 | --libexe | --libex | --libe)
909 ac_prev=libexecdir ;;
910 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
911 | --libexe=* | --libex=* | --libe=*)
912 libexecdir=$ac_optarg ;;
913
jfigusc7e66e32013-05-08 11:32:55 -0400914 -localedir | --localedir | --localedi | --localed | --locale)
915 ac_prev=localedir ;;
916 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
917 localedir=$ac_optarg ;;
918
Cullen Jennings235513a2005-09-21 22:51:36 +0000919 -localstatedir | --localstatedir | --localstatedi | --localstated \
jfigusc7e66e32013-05-08 11:32:55 -0400920 | --localstate | --localstat | --localsta | --localst | --locals)
Cullen Jennings235513a2005-09-21 22:51:36 +0000921 ac_prev=localstatedir ;;
922 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
jfigusc7e66e32013-05-08 11:32:55 -0400923 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000924 localstatedir=$ac_optarg ;;
925
926 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
927 ac_prev=mandir ;;
928 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
929 mandir=$ac_optarg ;;
930
931 -nfp | --nfp | --nf)
932 # Obsolete; use --without-fp.
933 with_fp=no ;;
934
935 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
936 | --no-cr | --no-c | -n)
937 no_create=yes ;;
938
939 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
940 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
941 no_recursion=yes ;;
942
943 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
944 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
945 | --oldin | --oldi | --old | --ol | --o)
946 ac_prev=oldincludedir ;;
947 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
948 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
949 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
950 oldincludedir=$ac_optarg ;;
951
952 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
953 ac_prev=prefix ;;
954 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
955 prefix=$ac_optarg ;;
956
957 -program-prefix | --program-prefix | --program-prefi | --program-pref \
958 | --program-pre | --program-pr | --program-p)
959 ac_prev=program_prefix ;;
960 -program-prefix=* | --program-prefix=* | --program-prefi=* \
961 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
962 program_prefix=$ac_optarg ;;
963
964 -program-suffix | --program-suffix | --program-suffi | --program-suff \
965 | --program-suf | --program-su | --program-s)
966 ac_prev=program_suffix ;;
967 -program-suffix=* | --program-suffix=* | --program-suffi=* \
968 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
969 program_suffix=$ac_optarg ;;
970
971 -program-transform-name | --program-transform-name \
972 | --program-transform-nam | --program-transform-na \
973 | --program-transform-n | --program-transform- \
974 | --program-transform | --program-transfor \
975 | --program-transfo | --program-transf \
976 | --program-trans | --program-tran \
977 | --progr-tra | --program-tr | --program-t)
978 ac_prev=program_transform_name ;;
979 -program-transform-name=* | --program-transform-name=* \
980 | --program-transform-nam=* | --program-transform-na=* \
981 | --program-transform-n=* | --program-transform-=* \
982 | --program-transform=* | --program-transfor=* \
983 | --program-transfo=* | --program-transf=* \
984 | --program-trans=* | --program-tran=* \
985 | --progr-tra=* | --program-tr=* | --program-t=*)
986 program_transform_name=$ac_optarg ;;
987
jfigusc7e66e32013-05-08 11:32:55 -0400988 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
989 ac_prev=pdfdir ;;
990 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
991 pdfdir=$ac_optarg ;;
992
993 -psdir | --psdir | --psdi | --psd | --ps)
994 ac_prev=psdir ;;
995 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
996 psdir=$ac_optarg ;;
997
Cullen Jennings235513a2005-09-21 22:51:36 +0000998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
999 | -silent | --silent | --silen | --sile | --sil)
1000 silent=yes ;;
1001
1002 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1003 ac_prev=sbindir ;;
1004 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1005 | --sbi=* | --sb=*)
1006 sbindir=$ac_optarg ;;
1007
1008 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1009 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1010 | --sharedst | --shareds | --shared | --share | --shar \
1011 | --sha | --sh)
1012 ac_prev=sharedstatedir ;;
1013 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1014 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1015 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1016 | --sha=* | --sh=*)
1017 sharedstatedir=$ac_optarg ;;
1018
1019 -site | --site | --sit)
1020 ac_prev=site ;;
1021 -site=* | --site=* | --sit=*)
1022 site=$ac_optarg ;;
1023
1024 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1025 ac_prev=srcdir ;;
1026 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1027 srcdir=$ac_optarg ;;
1028
1029 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1030 | --syscon | --sysco | --sysc | --sys | --sy)
1031 ac_prev=sysconfdir ;;
1032 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1033 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1034 sysconfdir=$ac_optarg ;;
1035
1036 -target | --target | --targe | --targ | --tar | --ta | --t)
1037 ac_prev=target_alias ;;
1038 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1039 target_alias=$ac_optarg ;;
1040
1041 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1042 verbose=yes ;;
1043
1044 -version | --version | --versio | --versi | --vers | -V)
1045 ac_init_version=: ;;
1046
1047 -with-* | --with-*)
jfigusc7e66e32013-05-08 11:32:55 -04001048 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001049 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error $? "invalid package name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1055 *"
1056"with_$ac_useropt"
1057"*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +00001060 esac
jfigusc7e66e32013-05-08 11:32:55 -04001061 eval with_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001062
1063 -without-* | --without-*)
jfigusc7e66e32013-05-08 11:32:55 -04001064 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001065 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067 as_fn_error $? "invalid package name: $ac_useropt"
1068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1071 *"
1072"with_$ac_useropt"
1073"*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
1076 esac
1077 eval with_$ac_useropt=no ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001078
1079 --x)
1080 # Obsolete; use --with-x.
1081 with_x=yes ;;
1082
1083 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1084 | --x-incl | --x-inc | --x-in | --x-i)
1085 ac_prev=x_includes ;;
1086 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1087 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1088 x_includes=$ac_optarg ;;
1089
1090 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1091 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1092 ac_prev=x_libraries ;;
1093 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1094 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1095 x_libraries=$ac_optarg ;;
1096
jfigusc7e66e32013-05-08 11:32:55 -04001097 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1098Try \`$0 --help' for more information"
Cullen Jennings235513a2005-09-21 22:51:36 +00001099 ;;
1100
1101 *=*)
1102 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1103 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001104 case $ac_envvar in #(
1105 '' | [0-9]* | *[!_$as_cr_alnum]* )
1106 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1107 esac
1108 eval $ac_envvar=\$ac_optarg
Cullen Jennings235513a2005-09-21 22:51:36 +00001109 export $ac_envvar ;;
1110
1111 *)
1112 # FIXME: should be removed in autoconf 3.0.
jfigusc7e66e32013-05-08 11:32:55 -04001113 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Cullen Jennings235513a2005-09-21 22:51:36 +00001114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jfigusc7e66e32013-05-08 11:32:55 -04001115 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Cullen Jennings235513a2005-09-21 22:51:36 +00001117 ;;
1118
1119 esac
1120done
1121
1122if test -n "$ac_prev"; then
1123 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jfigusc7e66e32013-05-08 11:32:55 -04001124 as_fn_error $? "missing argument to $ac_option"
Cullen Jennings235513a2005-09-21 22:51:36 +00001125fi
1126
jfigusc7e66e32013-05-08 11:32:55 -04001127if test -n "$ac_unrecognized_opts"; then
1128 case $enable_option_checking in
1129 no) ;;
1130 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1131 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001132 esac
jfigusc7e66e32013-05-08 11:32:55 -04001133fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001134
jfigusc7e66e32013-05-08 11:32:55 -04001135# Check all directory arguments for consistency.
1136for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1137 datadir sysconfdir sharedstatedir localstatedir includedir \
1138 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1139 libdir localedir mandir
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001140do
jfigusc7e66e32013-05-08 11:32:55 -04001141 eval ac_val=\$$ac_var
1142 # Remove trailing slashes.
jfigusa14b5a02013-03-29 12:24:12 -04001143 case $ac_val in
jfigusc7e66e32013-05-08 11:32:55 -04001144 */ )
1145 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1146 eval $ac_var=\$ac_val;;
jfigusa14b5a02013-03-29 12:24:12 -04001147 esac
jfigusc7e66e32013-05-08 11:32:55 -04001148 # Be sure to have absolute directory names.
1149 case $ac_val in
1150 [\\/$]* | ?:[\\/]* ) continue;;
1151 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1152 esac
1153 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Cullen Jennings235513a2005-09-21 22:51:36 +00001154done
1155
1156# There might be people who depend on the old broken behavior: `$host'
1157# used to hold the argument of --host etc.
1158# FIXME: To remove some day.
1159build=$build_alias
1160host=$host_alias
1161target=$target_alias
1162
1163# FIXME: To remove some day.
1164if test "x$host_alias" != x; then
1165 if test "x$build_alias" = x; then
1166 cross_compiling=maybe
Cullen Jennings235513a2005-09-21 22:51:36 +00001167 elif test "x$build_alias" != "x$host_alias"; then
1168 cross_compiling=yes
1169 fi
1170fi
1171
1172ac_tool_prefix=
1173test -n "$host_alias" && ac_tool_prefix=$host_alias-
1174
1175test "$silent" = yes && exec 6>/dev/null
1176
1177
jfigusc7e66e32013-05-08 11:32:55 -04001178ac_pwd=`pwd` && test -n "$ac_pwd" &&
1179ac_ls_di=`ls -di .` &&
1180ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1181 as_fn_error $? "working directory cannot be determined"
1182test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1183 as_fn_error $? "pwd does not report name of working directory"
1184
1185
Cullen Jennings235513a2005-09-21 22:51:36 +00001186# Find the source files, if location was not specified.
1187if test -z "$srcdir"; then
1188 ac_srcdir_defaulted=yes
jfigusc7e66e32013-05-08 11:32:55 -04001189 # Try the directory containing this script, then the parent directory.
1190 ac_confdir=`$as_dirname -- "$as_myself" ||
1191$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1192 X"$as_myself" : 'X\(//\)[^/]' \| \
1193 X"$as_myself" : 'X\(//\)$' \| \
1194 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1195$as_echo X"$as_myself" |
1196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1197 s//\1/
1198 q
1199 }
1200 /^X\(\/\/\)[^/].*/{
1201 s//\1/
1202 q
1203 }
1204 /^X\(\/\/\)$/{
1205 s//\1/
1206 q
1207 }
1208 /^X\(\/\).*/{
1209 s//\1/
1210 q
1211 }
1212 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001213 srcdir=$ac_confdir
jfigusc7e66e32013-05-08 11:32:55 -04001214 if test ! -r "$srcdir/$ac_unique_file"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00001215 srcdir=..
1216 fi
1217else
1218 ac_srcdir_defaulted=no
1219fi
jfigusc7e66e32013-05-08 11:32:55 -04001220if test ! -r "$srcdir/$ac_unique_file"; then
1221 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1222 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Cullen Jennings235513a2005-09-21 22:51:36 +00001223fi
jfigusc7e66e32013-05-08 11:32:55 -04001224ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1225ac_abs_confdir=`(
1226 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1227 pwd)`
1228# When building in place, set srcdir=.
1229if test "$ac_abs_confdir" = "$ac_pwd"; then
1230 srcdir=.
1231fi
1232# Remove unnecessary trailing slashes from srcdir.
1233# Double slashes in file names in object file debugging info
1234# mess up M-x gdb in Emacs.
1235case $srcdir in
1236*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237esac
1238for ac_var in $ac_precious_vars; do
1239 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_env_${ac_var}_value=\$${ac_var}
1241 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1242 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1243done
Cullen Jennings235513a2005-09-21 22:51:36 +00001244
1245#
1246# Report the --help message.
1247#
1248if test "$ac_init_help" = "long"; then
1249 # Omit some internal or obsolete options to make the list less imposing.
1250 # This message is too long to be a string in the A/UX 3.1 sh.
1251 cat <<_ACEOF
jfigusd196e022014-11-20 16:43:44 -05001252\`configure' configures libsrtp2 2.0.0-pre to adapt to many kinds of systems.
Cullen Jennings235513a2005-09-21 22:51:36 +00001253
1254Usage: $0 [OPTION]... [VAR=VALUE]...
1255
1256To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257VAR=VALUE. See below for descriptions of some of the useful variables.
1258
1259Defaults for the options are specified in brackets.
1260
1261Configuration:
1262 -h, --help display this help and exit
1263 --help=short display options specific to this package
1264 --help=recursive display the short help of all the included packages
1265 -V, --version display version information and exit
jfigusc7e66e32013-05-08 11:32:55 -04001266 -q, --quiet, --silent do not print \`checking ...' messages
Cullen Jennings235513a2005-09-21 22:51:36 +00001267 --cache-file=FILE cache test results in FILE [disabled]
1268 -C, --config-cache alias for \`--cache-file=config.cache'
1269 -n, --no-create do not create output files
1270 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271
Cullen Jennings235513a2005-09-21 22:51:36 +00001272Installation directories:
1273 --prefix=PREFIX install architecture-independent files in PREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001274 [$ac_default_prefix]
Cullen Jennings235513a2005-09-21 22:51:36 +00001275 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001276 [PREFIX]
Cullen Jennings235513a2005-09-21 22:51:36 +00001277
1278By default, \`make install' will install all the files in
1279\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1280an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281for instance \`--prefix=\$HOME'.
1282
1283For better control, use the options below.
1284
1285Fine tuning of the installation directories:
jfigusc7e66e32013-05-08 11:32:55 -04001286 --bindir=DIR user executables [EPREFIX/bin]
1287 --sbindir=DIR system admin executables [EPREFIX/sbin]
1288 --libexecdir=DIR program executables [EPREFIX/libexec]
1289 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1290 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1291 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1292 --libdir=DIR object code libraries [EPREFIX/lib]
1293 --includedir=DIR C header files [PREFIX/include]
1294 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1295 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1296 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1297 --infodir=DIR info documentation [DATAROOTDIR/info]
1298 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1299 --mandir=DIR man documentation [DATAROOTDIR/man]
jfigusd196e022014-11-20 16:43:44 -05001300 --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp2]
jfigusc7e66e32013-05-08 11:32:55 -04001301 --htmldir=DIR html documentation [DOCDIR]
1302 --dvidir=DIR dvi documentation [DOCDIR]
1303 --pdfdir=DIR pdf documentation [DOCDIR]
1304 --psdir=DIR ps documentation [DOCDIR]
Cullen Jennings235513a2005-09-21 22:51:36 +00001305_ACEOF
1306
1307 cat <<\_ACEOF
1308
1309System types:
1310 --build=BUILD configure for building on BUILD [guessed]
1311 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1312_ACEOF
1313fi
1314
1315if test -n "$ac_init_help"; then
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001316 case $ac_init_help in
jfigusd196e022014-11-20 16:43:44 -05001317 short | recursive ) echo "Configuration of libsrtp2 2.0.0-pre:";;
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001318 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00001319 cat <<\_ACEOF
1320
1321Optional Features:
jfigusc7e66e32013-05-08 11:32:55 -04001322 --disable-option-checking ignore unrecognized --enable/--with options
Cullen Jennings235513a2005-09-21 22:51:36 +00001323 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1324 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
David McGrewb67061f2005-09-28 14:23:06 +00001325 --disable-debug do not compile in dynamic debugging system
1326 --enable-generic-aesicm compile in changes for ISMAcryp
jfigusc7e66e32013-05-08 11:32:55 -04001327 --enable-openssl compile in OpenSSL crypto engine
jfigus97a80f42014-11-04 14:15:40 -05001328 --enable-stdout use stdout for debug/error reporting
David McGrewb67061f2005-09-28 14:23:06 +00001329 --enable-console use /dev/console for error reporting
Cullen Jennings235513a2005-09-21 22:51:36 +00001330
1331Some influential environment variables:
1332 CC C compiler command
1333 CFLAGS C compiler flags
1334 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1335 nonstandard directory <lib dir>
jfigusc7e66e32013-05-08 11:32:55 -04001336 LIBS libraries to pass to the linker, e.g. -l<library>
1337 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1338 you have headers in a nonstandard directory <include dir>
Cullen Jennings235513a2005-09-21 22:51:36 +00001339 CPP C preprocessor
1340
1341Use these variables to override the choices made by `configure' or to help
1342it to find libraries and programs with nonstandard names/locations.
1343
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001344Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00001345_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001346ac_status=$?
Cullen Jennings235513a2005-09-21 22:51:36 +00001347fi
1348
1349if test "$ac_init_help" = "recursive"; then
1350 # If there are subdirs, report their specific --help.
Cullen Jennings235513a2005-09-21 22:51:36 +00001351 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jfigusc7e66e32013-05-08 11:32:55 -04001352 test -d "$ac_dir" ||
1353 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1354 continue
Cullen Jennings235513a2005-09-21 22:51:36 +00001355 ac_builddir=.
1356
jfigusc7e66e32013-05-08 11:32:55 -04001357case "$ac_dir" in
1358.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359*)
1360 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1361 # A ".." for each directory in $ac_dir_suffix.
1362 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1363 case $ac_top_builddir_sub in
1364 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1365 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1366 esac ;;
1367esac
1368ac_abs_top_builddir=$ac_pwd
1369ac_abs_builddir=$ac_pwd$ac_dir_suffix
1370# for backward compatibility:
1371ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00001372
1373case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04001374 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00001375 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04001376 ac_top_srcdir=$ac_top_builddir_sub
1377 ac_abs_top_srcdir=$ac_pwd ;;
1378 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001379 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04001380 ac_top_srcdir=$srcdir
1381 ac_abs_top_srcdir=$srcdir ;;
1382 *) # Relative name.
1383 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1384 ac_top_srcdir=$ac_top_build_prefix$srcdir
1385 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001386esac
jfigusc7e66e32013-05-08 11:32:55 -04001387ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001388
jfigusc7e66e32013-05-08 11:32:55 -04001389 cd "$ac_dir" || { ac_status=$?; continue; }
1390 # Check for guested configure.
1391 if test -f "$ac_srcdir/configure.gnu"; then
1392 echo &&
1393 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1394 elif test -f "$ac_srcdir/configure"; then
1395 echo &&
1396 $SHELL "$ac_srcdir/configure" --help=recursive
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001397 else
jfigusc7e66e32013-05-08 11:32:55 -04001398 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1399 fi || ac_status=$?
1400 cd "$ac_pwd" || { ac_status=$?; break; }
Cullen Jennings235513a2005-09-21 22:51:36 +00001401 done
1402fi
1403
jfigusc7e66e32013-05-08 11:32:55 -04001404test -n "$ac_init_help" && exit $ac_status
Cullen Jennings235513a2005-09-21 22:51:36 +00001405if $ac_init_version; then
1406 cat <<\_ACEOF
jfigusd196e022014-11-20 16:43:44 -05001407libsrtp2 configure 2.0.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04001408generated by GNU Autoconf 2.69
Cullen Jennings235513a2005-09-21 22:51:36 +00001409
jfigusc7e66e32013-05-08 11:32:55 -04001410Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00001411This configure script is free software; the Free Software Foundation
1412gives unlimited permission to copy, distribute and modify it.
1413_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001414 exit
Cullen Jennings235513a2005-09-21 22:51:36 +00001415fi
jfigusc7e66e32013-05-08 11:32:55 -04001416
1417## ------------------------ ##
1418## Autoconf initialization. ##
1419## ------------------------ ##
1420
1421# ac_fn_c_try_compile LINENO
1422# --------------------------
1423# Try to compile conftest.$ac_ext, and return whether this succeeded.
1424ac_fn_c_try_compile ()
1425{
1426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1427 rm -f conftest.$ac_objext
1428 if { { ac_try="$ac_compile"
1429case "(($ac_try" in
1430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1431 *) ac_try_echo=$ac_try;;
1432esac
1433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1434$as_echo "$ac_try_echo"; } >&5
1435 (eval "$ac_compile") 2>conftest.err
1436 ac_status=$?
1437 if test -s conftest.err; then
1438 grep -v '^ *+' conftest.err >conftest.er1
1439 cat conftest.er1 >&5
1440 mv -f conftest.er1 conftest.err
1441 fi
1442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1443 test $ac_status = 0; } && {
1444 test -z "$ac_c_werror_flag" ||
1445 test ! -s conftest.err
1446 } && test -s conftest.$ac_objext; then :
1447 ac_retval=0
1448else
1449 $as_echo "$as_me: failed program was:" >&5
1450sed 's/^/| /' conftest.$ac_ext >&5
1451
1452 ac_retval=1
1453fi
1454 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1455 as_fn_set_status $ac_retval
1456
1457} # ac_fn_c_try_compile
1458
1459# ac_fn_c_try_run LINENO
1460# ----------------------
1461# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1462# that executables *can* be run.
1463ac_fn_c_try_run ()
1464{
1465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1466 if { { ac_try="$ac_link"
1467case "(($ac_try" in
1468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1469 *) ac_try_echo=$ac_try;;
1470esac
1471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1472$as_echo "$ac_try_echo"; } >&5
1473 (eval "$ac_link") 2>&5
1474 ac_status=$?
1475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1476 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1477 { { case "(($ac_try" in
1478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1479 *) ac_try_echo=$ac_try;;
1480esac
1481eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1482$as_echo "$ac_try_echo"; } >&5
1483 (eval "$ac_try") 2>&5
1484 ac_status=$?
1485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1486 test $ac_status = 0; }; }; then :
1487 ac_retval=0
1488else
1489 $as_echo "$as_me: program exited with status $ac_status" >&5
1490 $as_echo "$as_me: failed program was:" >&5
1491sed 's/^/| /' conftest.$ac_ext >&5
1492
1493 ac_retval=$ac_status
1494fi
1495 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1496 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1497 as_fn_set_status $ac_retval
1498
1499} # ac_fn_c_try_run
1500
1501# ac_fn_c_try_cpp LINENO
1502# ----------------------
1503# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1504ac_fn_c_try_cpp ()
1505{
1506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1507 if { { ac_try="$ac_cpp conftest.$ac_ext"
1508case "(($ac_try" in
1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510 *) ac_try_echo=$ac_try;;
1511esac
1512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513$as_echo "$ac_try_echo"; } >&5
1514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1515 ac_status=$?
1516 if test -s conftest.err; then
1517 grep -v '^ *+' conftest.err >conftest.er1
1518 cat conftest.er1 >&5
1519 mv -f conftest.er1 conftest.err
1520 fi
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } > conftest.i && {
1523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1524 test ! -s conftest.err
1525 }; then :
1526 ac_retval=0
1527else
1528 $as_echo "$as_me: failed program was:" >&5
1529sed 's/^/| /' conftest.$ac_ext >&5
1530
1531 ac_retval=1
1532fi
1533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534 as_fn_set_status $ac_retval
1535
1536} # ac_fn_c_try_cpp
1537
1538# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1539# -------------------------------------------------------
1540# Tests whether HEADER exists and can be compiled using the include files in
1541# INCLUDES, setting the cache variable VAR accordingly.
1542ac_fn_c_check_header_compile ()
1543{
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1546$as_echo_n "checking for $2... " >&6; }
1547if eval \${$3+:} false; then :
1548 $as_echo_n "(cached) " >&6
1549else
1550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1551/* end confdefs.h. */
1552$4
1553#include <$2>
1554_ACEOF
1555if ac_fn_c_try_compile "$LINENO"; then :
1556 eval "$3=yes"
1557else
1558 eval "$3=no"
1559fi
1560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1561fi
1562eval ac_res=\$$3
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1564$as_echo "$ac_res" >&6; }
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566
1567} # ac_fn_c_check_header_compile
1568
1569# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1570# -------------------------------------------------------
1571# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1572# the include files in INCLUDES and setting the cache variable VAR
1573# accordingly.
1574ac_fn_c_check_header_mongrel ()
1575{
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 if eval \${$3+:} false; then :
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1579$as_echo_n "checking for $2... " >&6; }
1580if eval \${$3+:} false; then :
1581 $as_echo_n "(cached) " >&6
1582fi
1583eval ac_res=\$$3
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1585$as_echo "$ac_res" >&6; }
1586else
1587 # Is the header compilable?
1588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1589$as_echo_n "checking $2 usability... " >&6; }
1590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1591/* end confdefs.h. */
1592$4
1593#include <$2>
1594_ACEOF
1595if ac_fn_c_try_compile "$LINENO"; then :
1596 ac_header_compiler=yes
1597else
1598 ac_header_compiler=no
1599fi
1600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1602$as_echo "$ac_header_compiler" >&6; }
1603
1604# Is the header present?
1605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1606$as_echo_n "checking $2 presence... " >&6; }
1607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608/* end confdefs.h. */
1609#include <$2>
1610_ACEOF
1611if ac_fn_c_try_cpp "$LINENO"; then :
1612 ac_header_preproc=yes
1613else
1614 ac_header_preproc=no
1615fi
1616rm -f conftest.err conftest.i conftest.$ac_ext
1617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1618$as_echo "$ac_header_preproc" >&6; }
1619
1620# So? What about this header?
1621case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1622 yes:no: )
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1624$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1626$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1627 ;;
1628 no:yes:* )
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1630$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1632$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1634$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1636$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1638$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001639( $as_echo "## ------------------------------------------------------ ##
1640## Report this to https://github.com/cisco/libsrtp/issues ##
1641## ------------------------------------------------------ ##"
1642 ) | sed "s/^/$as_me: WARNING: /" >&2
jfigusc7e66e32013-05-08 11:32:55 -04001643 ;;
1644esac
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646$as_echo_n "checking for $2... " >&6; }
1647if eval \${$3+:} false; then :
1648 $as_echo_n "(cached) " >&6
1649else
1650 eval "$3=\$ac_header_compiler"
1651fi
1652eval ac_res=\$$3
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654$as_echo "$ac_res" >&6; }
1655fi
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657
1658} # ac_fn_c_check_header_mongrel
1659
1660# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1661# -------------------------------------------
1662# Tests whether TYPE exists after having included INCLUDES, setting cache
1663# variable VAR accordingly.
1664ac_fn_c_check_type ()
1665{
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668$as_echo_n "checking for $2... " >&6; }
1669if eval \${$3+:} false; then :
1670 $as_echo_n "(cached) " >&6
1671else
1672 eval "$3=no"
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674/* end confdefs.h. */
1675$4
1676int
1677main ()
1678{
1679if (sizeof ($2))
1680 return 0;
1681 ;
1682 return 0;
1683}
1684_ACEOF
1685if ac_fn_c_try_compile "$LINENO"; then :
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687/* end confdefs.h. */
1688$4
1689int
1690main ()
1691{
1692if (sizeof (($2)))
1693 return 0;
1694 ;
1695 return 0;
1696}
1697_ACEOF
1698if ac_fn_c_try_compile "$LINENO"; then :
1699
1700else
1701 eval "$3=yes"
1702fi
1703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1704fi
1705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1706fi
1707eval ac_res=\$$3
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709$as_echo "$ac_res" >&6; }
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711
1712} # ac_fn_c_check_type
1713
1714# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1715# --------------------------------------------
1716# Tries to find the compile-time value of EXPR in a program that includes
1717# INCLUDES, setting VAR accordingly. Returns whether the value could be
1718# computed
1719ac_fn_c_compute_int ()
1720{
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if test "$cross_compiling" = yes; then
1723 # Depending upon the size, compute the lo and hi bounds.
1724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725/* end confdefs.h. */
1726$4
1727int
1728main ()
1729{
1730static int test_array [1 - 2 * !(($2) >= 0)];
1731test_array [0] = 0;
1732return test_array [0];
1733
1734 ;
1735 return 0;
1736}
1737_ACEOF
1738if ac_fn_c_try_compile "$LINENO"; then :
1739 ac_lo=0 ac_mid=0
1740 while :; do
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742/* end confdefs.h. */
1743$4
1744int
1745main ()
1746{
1747static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1748test_array [0] = 0;
1749return test_array [0];
1750
1751 ;
1752 return 0;
1753}
1754_ACEOF
1755if ac_fn_c_try_compile "$LINENO"; then :
1756 ac_hi=$ac_mid; break
1757else
1758 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1759 if test $ac_lo -le $ac_mid; then
1760 ac_lo= ac_hi=
1761 break
1762 fi
1763 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1764fi
1765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766 done
1767else
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769/* end confdefs.h. */
1770$4
1771int
1772main ()
1773{
1774static int test_array [1 - 2 * !(($2) < 0)];
1775test_array [0] = 0;
1776return test_array [0];
1777
1778 ;
1779 return 0;
1780}
1781_ACEOF
1782if ac_fn_c_try_compile "$LINENO"; then :
1783 ac_hi=-1 ac_mid=-1
1784 while :; do
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786/* end confdefs.h. */
1787$4
1788int
1789main ()
1790{
1791static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1792test_array [0] = 0;
1793return test_array [0];
1794
1795 ;
1796 return 0;
1797}
1798_ACEOF
1799if ac_fn_c_try_compile "$LINENO"; then :
1800 ac_lo=$ac_mid; break
1801else
1802 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1803 if test $ac_mid -le $ac_hi; then
1804 ac_lo= ac_hi=
1805 break
1806 fi
1807 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1808fi
1809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810 done
1811else
1812 ac_lo= ac_hi=
1813fi
1814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815fi
1816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817# Binary search between lo and hi bounds.
1818while test "x$ac_lo" != "x$ac_hi"; do
1819 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821/* end confdefs.h. */
1822$4
1823int
1824main ()
1825{
1826static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1827test_array [0] = 0;
1828return test_array [0];
1829
1830 ;
1831 return 0;
1832}
1833_ACEOF
1834if ac_fn_c_try_compile "$LINENO"; then :
1835 ac_hi=$ac_mid
1836else
1837 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1838fi
1839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840done
1841case $ac_lo in #((
1842?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1843'') ac_retval=1 ;;
1844esac
1845 else
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h. */
1848$4
1849static long int longval () { return $2; }
1850static unsigned long int ulongval () { return $2; }
1851#include <stdio.h>
1852#include <stdlib.h>
1853int
1854main ()
1855{
1856
1857 FILE *f = fopen ("conftest.val", "w");
1858 if (! f)
1859 return 1;
1860 if (($2) < 0)
1861 {
1862 long int i = longval ();
1863 if (i != ($2))
1864 return 1;
1865 fprintf (f, "%ld", i);
1866 }
1867 else
1868 {
1869 unsigned long int i = ulongval ();
1870 if (i != ($2))
1871 return 1;
1872 fprintf (f, "%lu", i);
1873 }
1874 /* Do not output a trailing newline, as this causes \r\n confusion
1875 on some platforms. */
1876 return ferror (f) || fclose (f) != 0;
1877
1878 ;
1879 return 0;
1880}
1881_ACEOF
1882if ac_fn_c_try_run "$LINENO"; then :
1883 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1884else
1885 ac_retval=1
1886fi
1887rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1888 conftest.$ac_objext conftest.beam conftest.$ac_ext
1889rm -f conftest.val
1890
1891 fi
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 as_fn_set_status $ac_retval
1894
1895} # ac_fn_c_compute_int
1896
1897# ac_fn_c_try_link LINENO
1898# -----------------------
1899# Try to link conftest.$ac_ext, and return whether this succeeded.
1900ac_fn_c_try_link ()
1901{
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 rm -f conftest.$ac_objext conftest$ac_exeext
1904 if { { ac_try="$ac_link"
1905case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908esac
1909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910$as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>conftest.err
1912 ac_status=$?
1913 if test -s conftest.err; then
1914 grep -v '^ *+' conftest.err >conftest.er1
1915 cat conftest.er1 >&5
1916 mv -f conftest.er1 conftest.err
1917 fi
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } && {
1920 test -z "$ac_c_werror_flag" ||
1921 test ! -s conftest.err
1922 } && test -s conftest$ac_exeext && {
1923 test "$cross_compiling" = yes ||
1924 test -x conftest$ac_exeext
1925 }; then :
1926 ac_retval=0
1927else
1928 $as_echo "$as_me: failed program was:" >&5
1929sed 's/^/| /' conftest.$ac_ext >&5
1930
1931 ac_retval=1
1932fi
1933 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1934 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1935 # interfere with the next link command; also delete a directory that is
1936 # left behind by Apple's compiler. We do this before executing the actions.
1937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1940
1941} # ac_fn_c_try_link
1942
1943# ac_fn_c_check_func LINENO FUNC VAR
1944# ----------------------------------
1945# Tests whether FUNC exists, setting the cache variable VAR accordingly
1946ac_fn_c_check_func ()
1947{
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950$as_echo_n "checking for $2... " >&6; }
1951if eval \${$3+:} false; then :
1952 $as_echo_n "(cached) " >&6
1953else
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955/* end confdefs.h. */
1956/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1958#define $2 innocuous_$2
1959
1960/* System header to define __stub macros and hopefully few prototypes,
1961 which can conflict with char $2 (); below.
1962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1963 <limits.h> exists even on freestanding compilers. */
1964
1965#ifdef __STDC__
1966# include <limits.h>
1967#else
1968# include <assert.h>
1969#endif
1970
1971#undef $2
1972
1973/* Override any GCC internal prototype to avoid an error.
1974 Use char because int might match the return type of a GCC
1975 builtin and then its argument prototype would still apply. */
1976#ifdef __cplusplus
1977extern "C"
1978#endif
1979char $2 ();
1980/* The GNU C library defines this for functions which it implements
1981 to always fail with ENOSYS. Some functions are actually named
1982 something starting with __ and the normal name is an alias. */
1983#if defined __stub_$2 || defined __stub___$2
1984choke me
1985#endif
1986
1987int
1988main ()
1989{
1990return $2 ();
1991 ;
1992 return 0;
1993}
1994_ACEOF
1995if ac_fn_c_try_link "$LINENO"; then :
1996 eval "$3=yes"
1997else
1998 eval "$3=no"
1999fi
2000rm -f core conftest.err conftest.$ac_objext \
2001 conftest$ac_exeext conftest.$ac_ext
2002fi
2003eval ac_res=\$$3
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005$as_echo "$ac_res" >&6; }
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007
2008} # ac_fn_c_check_func
2009cat >config.log <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002010This file contains any messages produced by compilers while
2011running configure, to aid debugging if configure makes a mistake.
2012
jfigusd196e022014-11-20 16:43:44 -05002013It was created by libsrtp2 $as_me 2.0.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04002014generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00002015
2016 $ $0 $@
2017
2018_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002019exec 5>>config.log
Cullen Jennings235513a2005-09-21 22:51:36 +00002020{
2021cat <<_ASUNAME
2022## --------- ##
2023## Platform. ##
2024## --------- ##
2025
2026hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2027uname -m = `(uname -m) 2>/dev/null || echo unknown`
2028uname -r = `(uname -r) 2>/dev/null || echo unknown`
2029uname -s = `(uname -s) 2>/dev/null || echo unknown`
2030uname -v = `(uname -v) 2>/dev/null || echo unknown`
2031
2032/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2033/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2034
2035/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2036/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2037/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
jfigusc7e66e32013-05-08 11:32:55 -04002038/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Cullen Jennings235513a2005-09-21 22:51:36 +00002039/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2040/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2041/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2042
2043_ASUNAME
2044
2045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046for as_dir in $PATH
2047do
2048 IFS=$as_save_IFS
2049 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002050 $as_echo "PATH: $as_dir"
2051 done
2052IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002053
2054} >&5
2055
2056cat >&5 <<_ACEOF
2057
2058
2059## ----------- ##
2060## Core tests. ##
2061## ----------- ##
2062
2063_ACEOF
2064
2065
2066# Keep a trace of the command line.
2067# Strip out --no-create and --no-recursion so they do not pile up.
2068# Strip out --silent because we don't want to record it for future runs.
2069# Also quote any args containing shell meta-characters.
2070# Make two passes to allow for proper duplicate-argument suppression.
2071ac_configure_args=
2072ac_configure_args0=
2073ac_configure_args1=
Cullen Jennings235513a2005-09-21 22:51:36 +00002074ac_must_keep_next=false
2075for ac_pass in 1 2
2076do
2077 for ac_arg
2078 do
2079 case $ac_arg in
2080 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2082 | -silent | --silent | --silen | --sile | --sil)
2083 continue ;;
jfigusc7e66e32013-05-08 11:32:55 -04002084 *\'*)
2085 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002086 esac
2087 case $ac_pass in
jfigusc7e66e32013-05-08 11:32:55 -04002088 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002089 2)
jfigusc7e66e32013-05-08 11:32:55 -04002090 as_fn_append ac_configure_args1 " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002091 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00002092 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00002093 else
David McGrewfec49dd2005-09-23 19:34:11 +00002094 case $ac_arg in
2095 *=* | --config-cache | -C | -disable-* | --disable-* \
2096 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2097 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2098 | -with-* | --with-* | -without-* | --without-* | --x)
2099 case "$ac_configure_args0 " in
2100 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2101 esac
2102 ;;
2103 -* ) ac_must_keep_next=true ;;
2104 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00002105 fi
jfigusc7e66e32013-05-08 11:32:55 -04002106 as_fn_append ac_configure_args " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002107 ;;
2108 esac
2109 done
2110done
jfigusc7e66e32013-05-08 11:32:55 -04002111{ ac_configure_args0=; unset ac_configure_args0;}
2112{ ac_configure_args1=; unset ac_configure_args1;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002113
2114# When interrupted or exit'd, cleanup temporary files, and complete
2115# config.log. We remove comments because anyway the quotes in there
2116# would cause problems or look ugly.
jfigusc7e66e32013-05-08 11:32:55 -04002117# WARNING: Use '\'' to represent an apostrophe within the trap.
2118# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Cullen Jennings235513a2005-09-21 22:51:36 +00002119trap 'exit_status=$?
2120 # Save into config.log some information that might help in debugging.
2121 {
2122 echo
2123
jfigusc7e66e32013-05-08 11:32:55 -04002124 $as_echo "## ---------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002125## Cache variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002126## ---------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002127 echo
2128 # The following way of writing the cache mishandles newlines in values,
jfigusc7e66e32013-05-08 11:32:55 -04002129(
2130 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2131 eval ac_val=\$$ac_var
2132 case $ac_val in #(
2133 *${as_nl}*)
2134 case $ac_var in #(
2135 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2136$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2137 esac
2138 case $ac_var in #(
2139 _ | IFS | as_nl) ;; #(
2140 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2141 *) { eval $ac_var=; unset $ac_var;} ;;
2142 esac ;;
2143 esac
2144 done
Cullen Jennings235513a2005-09-21 22:51:36 +00002145 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04002146 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2147 *${as_nl}ac_space=\ *)
Cullen Jennings235513a2005-09-21 22:51:36 +00002148 sed -n \
jfigusc7e66e32013-05-08 11:32:55 -04002149 "s/'\''/'\''\\\\'\'''\''/g;
2150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2151 ;; #(
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002152 *)
jfigusc7e66e32013-05-08 11:32:55 -04002153 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002154 ;;
jfigusc7e66e32013-05-08 11:32:55 -04002155 esac |
2156 sort
2157)
Cullen Jennings235513a2005-09-21 22:51:36 +00002158 echo
2159
jfigusc7e66e32013-05-08 11:32:55 -04002160 $as_echo "## ----------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002161## Output variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002162## ----------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002163 echo
2164 for ac_var in $ac_subst_vars
2165 do
jfigusc7e66e32013-05-08 11:32:55 -04002166 eval ac_val=\$$ac_var
2167 case $ac_val in
2168 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2169 esac
2170 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002171 done | sort
2172 echo
2173
2174 if test -n "$ac_subst_files"; then
jfigusc7e66e32013-05-08 11:32:55 -04002175 $as_echo "## ------------------- ##
2176## File substitutions. ##
2177## ------------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002178 echo
2179 for ac_var in $ac_subst_files
2180 do
jfigusc7e66e32013-05-08 11:32:55 -04002181 eval ac_val=\$$ac_var
2182 case $ac_val in
2183 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2184 esac
2185 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002186 done | sort
2187 echo
2188 fi
2189
2190 if test -s confdefs.h; then
jfigusc7e66e32013-05-08 11:32:55 -04002191 $as_echo "## ----------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002192## confdefs.h. ##
jfigusc7e66e32013-05-08 11:32:55 -04002193## ----------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002194 echo
jfigusc7e66e32013-05-08 11:32:55 -04002195 cat confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002196 echo
2197 fi
2198 test "$ac_signal" != 0 &&
jfigusc7e66e32013-05-08 11:32:55 -04002199 $as_echo "$as_me: caught signal $ac_signal"
2200 $as_echo "$as_me: exit $exit_status"
Cullen Jennings235513a2005-09-21 22:51:36 +00002201 } >&5
jfigusc7e66e32013-05-08 11:32:55 -04002202 rm -f core *.core core.conftest.* &&
2203 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Cullen Jennings235513a2005-09-21 22:51:36 +00002204 exit $exit_status
jfigusc7e66e32013-05-08 11:32:55 -04002205' 0
Cullen Jennings235513a2005-09-21 22:51:36 +00002206for ac_signal in 1 2 13 15; do
jfigusc7e66e32013-05-08 11:32:55 -04002207 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Cullen Jennings235513a2005-09-21 22:51:36 +00002208done
2209ac_signal=0
2210
2211# confdefs.h avoids OS command line length limits that DEFS can exceed.
jfigusc7e66e32013-05-08 11:32:55 -04002212rm -f -r conftest* confdefs.h
2213
2214$as_echo "/* confdefs.h */" > confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002215
2216# Predefined preprocessor variables.
2217
2218cat >>confdefs.h <<_ACEOF
2219#define PACKAGE_NAME "$PACKAGE_NAME"
2220_ACEOF
2221
Cullen Jennings235513a2005-09-21 22:51:36 +00002222cat >>confdefs.h <<_ACEOF
2223#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2224_ACEOF
2225
Cullen Jennings235513a2005-09-21 22:51:36 +00002226cat >>confdefs.h <<_ACEOF
2227#define PACKAGE_VERSION "$PACKAGE_VERSION"
2228_ACEOF
2229
Cullen Jennings235513a2005-09-21 22:51:36 +00002230cat >>confdefs.h <<_ACEOF
2231#define PACKAGE_STRING "$PACKAGE_STRING"
2232_ACEOF
2233
Cullen Jennings235513a2005-09-21 22:51:36 +00002234cat >>confdefs.h <<_ACEOF
2235#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2236_ACEOF
2237
jfigusc7e66e32013-05-08 11:32:55 -04002238cat >>confdefs.h <<_ACEOF
2239#define PACKAGE_URL "$PACKAGE_URL"
2240_ACEOF
2241
Cullen Jennings235513a2005-09-21 22:51:36 +00002242
2243# Let the site file select an alternate cache file if it wants to.
jfigusc7e66e32013-05-08 11:32:55 -04002244# Prefer an explicitly selected file to automatically selected ones.
2245ac_site_file1=NONE
2246ac_site_file2=NONE
2247if test -n "$CONFIG_SITE"; then
2248 # We do not want a PATH search for config.site.
2249 case $CONFIG_SITE in #((
2250 -*) ac_site_file1=./$CONFIG_SITE;;
2251 */*) ac_site_file1=$CONFIG_SITE;;
2252 *) ac_site_file1=./$CONFIG_SITE;;
2253 esac
2254elif test "x$prefix" != xNONE; then
2255 ac_site_file1=$prefix/share/config.site
2256 ac_site_file2=$prefix/etc/config.site
2257else
2258 ac_site_file1=$ac_default_prefix/share/config.site
2259 ac_site_file2=$ac_default_prefix/etc/config.site
Cullen Jennings235513a2005-09-21 22:51:36 +00002260fi
jfigusc7e66e32013-05-08 11:32:55 -04002261for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2262do
2263 test "x$ac_site_file" = xNONE && continue
2264 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2266$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002267 sed 's/^/| /' "$ac_site_file" >&5
jfigusc7e66e32013-05-08 11:32:55 -04002268 . "$ac_site_file" \
2269 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2270$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2271as_fn_error $? "failed to load site script $ac_site_file
2272See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002273 fi
2274done
2275
2276if test -r "$cache_file"; then
jfigusc7e66e32013-05-08 11:32:55 -04002277 # Some versions of bash will fail to source /dev/null (special files
2278 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2279 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2281$as_echo "$as_me: loading cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002282 case $cache_file in
jfigusc7e66e32013-05-08 11:32:55 -04002283 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2284 *) . "./$cache_file";;
Cullen Jennings235513a2005-09-21 22:51:36 +00002285 esac
2286 fi
2287else
jfigusc7e66e32013-05-08 11:32:55 -04002288 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2289$as_echo "$as_me: creating cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002290 >$cache_file
2291fi
2292
2293# Check that the precious variables saved in the cache have kept the same
2294# value.
2295ac_cache_corrupted=false
jfigusc7e66e32013-05-08 11:32:55 -04002296for ac_var in $ac_precious_vars; do
Cullen Jennings235513a2005-09-21 22:51:36 +00002297 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2298 eval ac_new_set=\$ac_env_${ac_var}_set
jfigusc7e66e32013-05-08 11:32:55 -04002299 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2300 eval ac_new_val=\$ac_env_${ac_var}_value
Cullen Jennings235513a2005-09-21 22:51:36 +00002301 case $ac_old_set,$ac_new_set in
2302 set,)
jfigusc7e66e32013-05-08 11:32:55 -04002303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2304$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 +00002305 ac_cache_corrupted=: ;;
2306 ,set)
jfigusc7e66e32013-05-08 11:32:55 -04002307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2308$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002309 ac_cache_corrupted=: ;;
2310 ,);;
2311 *)
2312 if test "x$ac_old_val" != "x$ac_new_val"; then
jfigusc7e66e32013-05-08 11:32:55 -04002313 # differences in whitespace do not lead to failure.
2314 ac_old_val_w=`echo x $ac_old_val`
2315 ac_new_val_w=`echo x $ac_new_val`
2316 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2318$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2319 ac_cache_corrupted=:
2320 else
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2322$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2323 eval $ac_var=\$ac_old_val
2324 fi
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2326$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2328$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002329 fi;;
2330 esac
2331 # Pass precious variables to config.status.
2332 if test "$ac_new_set" = set; then
2333 case $ac_new_val in
jfigusc7e66e32013-05-08 11:32:55 -04002334 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002335 *) ac_arg=$ac_var=$ac_new_val ;;
2336 esac
2337 case " $ac_configure_args " in
2338 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jfigusc7e66e32013-05-08 11:32:55 -04002339 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002340 esac
2341 fi
2342done
2343if $ac_cache_corrupted; then
jfigusc7e66e32013-05-08 11:32:55 -04002344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2347$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2348 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00002349fi
jfigusc7e66e32013-05-08 11:32:55 -04002350## -------------------- ##
2351## Main body of script. ##
2352## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002353
2354ac_ext=c
2355ac_cpp='$CPP $CPPFLAGS'
2356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359
2360
2361
David McGrewb67061f2005-09-28 14:23:06 +00002362if test -z "$CFLAGS"; then
Sean Brightbfb9e302014-03-24 20:45:17 -04002363 CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops"
David McGrewb67061f2005-09-28 14:23:06 +00002364fi
2365
Cullen Jennings235513a2005-09-21 22:51:36 +00002366if test -n "$ac_tool_prefix"; then
2367 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2368set dummy ${ac_tool_prefix}ranlib; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2370$as_echo_n "checking for $ac_word... " >&6; }
2371if ${ac_cv_prog_RANLIB+:} false; then :
2372 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002373else
2374 if test -n "$RANLIB"; then
2375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2376else
2377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378for as_dir in $PATH
2379do
2380 IFS=$as_save_IFS
2381 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002382 for ac_exec_ext in '' $ac_executable_extensions; do
2383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002384 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
jfigusc7e66e32013-05-08 11:32:55 -04002385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002386 break 2
2387 fi
2388done
jfigusc7e66e32013-05-08 11:32:55 -04002389 done
2390IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002391
2392fi
2393fi
2394RANLIB=$ac_cv_prog_RANLIB
2395if test -n "$RANLIB"; then
jfigusc7e66e32013-05-08 11:32:55 -04002396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2397$as_echo "$RANLIB" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002398else
jfigusc7e66e32013-05-08 11:32:55 -04002399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2400$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002401fi
2402
jfigusc7e66e32013-05-08 11:32:55 -04002403
Cullen Jennings235513a2005-09-21 22:51:36 +00002404fi
2405if test -z "$ac_cv_prog_RANLIB"; then
2406 ac_ct_RANLIB=$RANLIB
2407 # Extract the first word of "ranlib", so it can be a program name with args.
2408set dummy ranlib; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2410$as_echo_n "checking for $ac_word... " >&6; }
2411if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2412 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002413else
2414 if test -n "$ac_ct_RANLIB"; then
2415 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2416else
2417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418for as_dir in $PATH
2419do
2420 IFS=$as_save_IFS
2421 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002422 for ac_exec_ext in '' $ac_executable_extensions; do
2423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002424 ac_cv_prog_ac_ct_RANLIB="ranlib"
jfigusc7e66e32013-05-08 11:32:55 -04002425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002426 break 2
2427 fi
2428done
jfigusc7e66e32013-05-08 11:32:55 -04002429 done
2430IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002431
Cullen Jennings235513a2005-09-21 22:51:36 +00002432fi
2433fi
2434ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2435if test -n "$ac_ct_RANLIB"; then
jfigusc7e66e32013-05-08 11:32:55 -04002436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2437$as_echo "$ac_ct_RANLIB" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002438else
jfigusc7e66e32013-05-08 11:32:55 -04002439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2440$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002441fi
2442
jfigusc7e66e32013-05-08 11:32:55 -04002443 if test "x$ac_ct_RANLIB" = x; then
2444 RANLIB=":"
2445 else
2446 case $cross_compiling:$ac_tool_warned in
2447yes:)
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2450ac_tool_warned=yes ;;
2451esac
2452 RANLIB=$ac_ct_RANLIB
2453 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002454else
2455 RANLIB="$ac_cv_prog_RANLIB"
2456fi
2457
2458ac_ext=c
2459ac_cpp='$CPP $CPPFLAGS'
2460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463if test -n "$ac_tool_prefix"; then
2464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2465set dummy ${ac_tool_prefix}gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2467$as_echo_n "checking for $ac_word... " >&6; }
2468if ${ac_cv_prog_CC+:} false; then :
2469 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002470else
2471 if test -n "$CC"; then
2472 ac_cv_prog_CC="$CC" # Let the user override the test.
2473else
2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475for as_dir in $PATH
2476do
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002481 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002483 break 2
2484 fi
2485done
jfigusc7e66e32013-05-08 11:32:55 -04002486 done
2487IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002488
2489fi
2490fi
2491CC=$ac_cv_prog_CC
2492if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2494$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002495else
jfigusc7e66e32013-05-08 11:32:55 -04002496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2497$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002498fi
2499
jfigusc7e66e32013-05-08 11:32:55 -04002500
Cullen Jennings235513a2005-09-21 22:51:36 +00002501fi
2502if test -z "$ac_cv_prog_CC"; then
2503 ac_ct_CC=$CC
2504 # Extract the first word of "gcc", so it can be a program name with args.
2505set dummy gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2507$as_echo_n "checking for $ac_word... " >&6; }
2508if ${ac_cv_prog_ac_ct_CC+:} false; then :
2509 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002510else
2511 if test -n "$ac_ct_CC"; then
2512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2513else
2514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515for as_dir in $PATH
2516do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002521 ac_cv_prog_ac_ct_CC="gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002523 break 2
2524 fi
2525done
jfigusc7e66e32013-05-08 11:32:55 -04002526 done
2527IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002528
2529fi
2530fi
2531ac_ct_CC=$ac_cv_prog_ac_ct_CC
2532if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2534$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002535else
jfigusc7e66e32013-05-08 11:32:55 -04002536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002538fi
2539
jfigusc7e66e32013-05-08 11:32:55 -04002540 if test "x$ac_ct_CC" = x; then
2541 CC=""
2542 else
2543 case $cross_compiling:$ac_tool_warned in
2544yes:)
2545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2547ac_tool_warned=yes ;;
2548esac
2549 CC=$ac_ct_CC
2550 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002551else
2552 CC="$ac_cv_prog_CC"
2553fi
2554
2555if test -z "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002556 if test -n "$ac_tool_prefix"; then
2557 # 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 +00002558set dummy ${ac_tool_prefix}cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560$as_echo_n "checking for $ac_word... " >&6; }
2561if ${ac_cv_prog_CC+:} false; then :
2562 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002563else
2564 if test -n "$CC"; then
2565 ac_cv_prog_CC="$CC" # Let the user override the test.
2566else
2567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568for as_dir in $PATH
2569do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002574 ac_cv_prog_CC="${ac_tool_prefix}cc"
jfigusc7e66e32013-05-08 11:32:55 -04002575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002576 break 2
2577 fi
2578done
jfigusc7e66e32013-05-08 11:32:55 -04002579 done
2580IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002581
2582fi
2583fi
2584CC=$ac_cv_prog_CC
2585if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2587$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002588else
jfigusc7e66e32013-05-08 11:32:55 -04002589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2590$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002591fi
2592
jfigusc7e66e32013-05-08 11:32:55 -04002593
Cullen Jennings235513a2005-09-21 22:51:36 +00002594 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002595fi
2596if test -z "$CC"; then
2597 # Extract the first word of "cc", so it can be a program name with args.
2598set dummy cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600$as_echo_n "checking for $ac_word... " >&6; }
2601if ${ac_cv_prog_CC+:} false; then :
2602 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002603else
2604 if test -n "$CC"; then
2605 ac_cv_prog_CC="$CC" # Let the user override the test.
2606else
2607 ac_prog_rejected=no
2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609for as_dir in $PATH
2610do
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2616 ac_prog_rejected=yes
2617 continue
2618 fi
2619 ac_cv_prog_CC="cc"
jfigusc7e66e32013-05-08 11:32:55 -04002620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002621 break 2
2622 fi
2623done
jfigusc7e66e32013-05-08 11:32:55 -04002624 done
2625IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002626
2627if test $ac_prog_rejected = yes; then
2628 # We found a bogon in the path, so make sure we never use it.
2629 set dummy $ac_cv_prog_CC
2630 shift
2631 if test $# != 0; then
2632 # We chose a different compiler from the bogus one.
2633 # However, it has the same basename, so the bogon will be chosen
2634 # first if we set CC to just the basename; use the full file name.
2635 shift
2636 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2637 fi
2638fi
2639fi
2640fi
2641CC=$ac_cv_prog_CC
2642if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2644$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002645else
jfigusc7e66e32013-05-08 11:32:55 -04002646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002648fi
2649
jfigusc7e66e32013-05-08 11:32:55 -04002650
Cullen Jennings235513a2005-09-21 22:51:36 +00002651fi
2652if test -z "$CC"; then
2653 if test -n "$ac_tool_prefix"; then
jfigusc7e66e32013-05-08 11:32:55 -04002654 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002655 do
2656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2657set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659$as_echo_n "checking for $ac_word... " >&6; }
2660if ${ac_cv_prog_CC+:} false; then :
2661 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002662else
2663 if test -n "$CC"; then
2664 ac_cv_prog_CC="$CC" # Let the user override the test.
2665else
2666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667for as_dir in $PATH
2668do
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002675 break 2
2676 fi
2677done
jfigusc7e66e32013-05-08 11:32:55 -04002678 done
2679IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002680
2681fi
2682fi
2683CC=$ac_cv_prog_CC
2684if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2686$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002687else
jfigusc7e66e32013-05-08 11:32:55 -04002688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002690fi
2691
jfigusc7e66e32013-05-08 11:32:55 -04002692
Cullen Jennings235513a2005-09-21 22:51:36 +00002693 test -n "$CC" && break
2694 done
2695fi
2696if test -z "$CC"; then
2697 ac_ct_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04002698 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002699do
2700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2701set dummy $ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703$as_echo_n "checking for $ac_word... " >&6; }
2704if ${ac_cv_prog_ac_ct_CC+:} false; then :
2705 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002706else
2707 if test -n "$ac_ct_CC"; then
2708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2709else
2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711for as_dir in $PATH
2712do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002717 ac_cv_prog_ac_ct_CC="$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002719 break 2
2720 fi
2721done
jfigusc7e66e32013-05-08 11:32:55 -04002722 done
2723IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002724
2725fi
2726fi
2727ac_ct_CC=$ac_cv_prog_ac_ct_CC
2728if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2730$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002731else
jfigusc7e66e32013-05-08 11:32:55 -04002732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002734fi
2735
jfigusc7e66e32013-05-08 11:32:55 -04002736
Cullen Jennings235513a2005-09-21 22:51:36 +00002737 test -n "$ac_ct_CC" && break
2738done
2739
jfigusc7e66e32013-05-08 11:32:55 -04002740 if test "x$ac_ct_CC" = x; then
2741 CC=""
2742 else
2743 case $cross_compiling:$ac_tool_warned in
2744yes:)
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2747ac_tool_warned=yes ;;
2748esac
2749 CC=$ac_ct_CC
2750 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002751fi
2752
2753fi
2754
2755
jfigusc7e66e32013-05-08 11:32:55 -04002756test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2758as_fn_error $? "no acceptable C compiler found in \$PATH
2759See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002760
2761# Provide some information about the compiler.
jfigusc7e66e32013-05-08 11:32:55 -04002762$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2763set X $ac_compile
2764ac_compiler=$2
2765for ac_option in --version -v -V -qversion; do
2766 { { ac_try="$ac_compiler $ac_option >&5"
2767case "(($ac_try" in
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2770esac
2771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2772$as_echo "$ac_try_echo"; } >&5
2773 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Cullen Jennings235513a2005-09-21 22:51:36 +00002774 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002775 if test -s conftest.err; then
2776 sed '10a\
2777... rest of stderr output deleted ...
2778 10q' conftest.err >conftest.er1
2779 cat conftest.er1 >&5
2780 fi
2781 rm -f conftest.er1 conftest.err
2782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2783 test $ac_status = 0; }
2784done
Cullen Jennings235513a2005-09-21 22:51:36 +00002785
jfigusc7e66e32013-05-08 11:32:55 -04002786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002787/* end confdefs.h. */
2788
2789int
2790main ()
2791{
2792
2793 ;
2794 return 0;
2795}
2796_ACEOF
2797ac_clean_files_save=$ac_clean_files
jfigusc7e66e32013-05-08 11:32:55 -04002798ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Cullen Jennings235513a2005-09-21 22:51:36 +00002799# Try to create an executable without -o first, disregard a.out.
2800# It will help us diagnose broken compilers, and finding out an intuition
2801# of exeext.
jfigusc7e66e32013-05-08 11:32:55 -04002802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2803$as_echo_n "checking whether the C compiler works... " >&6; }
2804ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002805
jfigusc7e66e32013-05-08 11:32:55 -04002806# The possible output files:
2807ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2808
2809ac_rmfiles=
2810for ac_file in $ac_files
2811do
2812 case $ac_file in
2813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2814 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2815 esac
2816done
2817rm -f $ac_rmfiles
2818
2819if { { ac_try="$ac_link_default"
2820case "(($ac_try" in
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2823esac
2824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2825$as_echo "$ac_try_echo"; } >&5
2826 (eval "$ac_link_default") 2>&5
2827 ac_status=$?
2828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2829 test $ac_status = 0; }; then :
2830 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2831# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2832# in a Makefile. We should not override ac_cv_exeext if it was cached,
2833# so that the user can short-circuit this test for compilers unknown to
2834# Autoconf.
2835for ac_file in $ac_files ''
Cullen Jennings235513a2005-09-21 22:51:36 +00002836do
2837 test -f "$ac_file" || continue
2838 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00002840 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002841 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00002842 # We found the default executable, but exeext='' is most
2843 # certainly right.
2844 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002845 *.* )
jfigusc7e66e32013-05-08 11:32:55 -04002846 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2847 then :; else
2848 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2849 fi
2850 # We set ac_cv_exeext here because the later test for it is not
2851 # safe: cross compilers may not add the suffix if given an `-o'
2852 # argument, so we may need to know it at that point already.
2853 # Even if this section looks crufty: it has the advantage of
2854 # actually working.
David McGrewfec49dd2005-09-23 19:34:11 +00002855 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002856 * )
David McGrewfec49dd2005-09-23 19:34:11 +00002857 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002858 esac
2859done
jfigusc7e66e32013-05-08 11:32:55 -04002860test "$ac_cv_exeext" = no && ac_cv_exeext=
2861
Cullen Jennings235513a2005-09-21 22:51:36 +00002862else
jfigusc7e66e32013-05-08 11:32:55 -04002863 ac_file=''
2864fi
2865if test -z "$ac_file"; then :
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867$as_echo "no" >&6; }
2868$as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002869sed 's/^/| /' conftest.$ac_ext >&5
2870
jfigusc7e66e32013-05-08 11:32:55 -04002871{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2873as_fn_error 77 "C compiler cannot create executables
2874See \`config.log' for more details" "$LINENO" 5; }
2875else
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2877$as_echo "yes" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002878fi
jfigusc7e66e32013-05-08 11:32:55 -04002879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2880$as_echo_n "checking for C compiler default output file name... " >&6; }
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2882$as_echo "$ac_file" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002883ac_exeext=$ac_cv_exeext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002884
jfigusc7e66e32013-05-08 11:32:55 -04002885rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002886ac_clean_files=$ac_clean_files_save
jfigusc7e66e32013-05-08 11:32:55 -04002887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2888$as_echo_n "checking for suffix of executables... " >&6; }
2889if { { ac_try="$ac_link"
2890case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893esac
2894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2895$as_echo "$ac_try_echo"; } >&5
2896 (eval "$ac_link") 2>&5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002897 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2899 test $ac_status = 0; }; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002900 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2901# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2902# work properly (i.e., refer to `conftest.exe'), while it won't with
2903# `rm'.
2904for ac_file in conftest.exe conftest conftest.*; do
2905 test -f "$ac_file" || continue
2906 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002908 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00002909 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002910 * ) break;;
2911 esac
2912done
2913else
jfigusc7e66e32013-05-08 11:32:55 -04002914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2915$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2916as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2917See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002918fi
jfigusc7e66e32013-05-08 11:32:55 -04002919rm -f conftest conftest$ac_cv_exeext
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2921$as_echo "$ac_cv_exeext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002922
2923rm -f conftest.$ac_ext
2924EXEEXT=$ac_cv_exeext
2925ac_exeext=$EXEEXT
jfigusc7e66e32013-05-08 11:32:55 -04002926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2927/* end confdefs.h. */
2928#include <stdio.h>
2929int
2930main ()
2931{
2932FILE *f = fopen ("conftest.out", "w");
2933 return ferror (f) || fclose (f) != 0;
2934
2935 ;
2936 return 0;
2937}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002938_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002939ac_clean_files="$ac_clean_files conftest.out"
2940# Check that the compiler produces executables we can run. If not, either
2941# the compiler is broken, or we cross compile.
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2943$as_echo_n "checking whether we are cross compiling... " >&6; }
2944if test "$cross_compiling" != yes; then
2945 { { ac_try="$ac_link"
2946case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949esac
2950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2951$as_echo "$ac_try_echo"; } >&5
2952 (eval "$ac_link") 2>&5
2953 ac_status=$?
2954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2955 test $ac_status = 0; }
2956 if { ac_try='./conftest$ac_cv_exeext'
2957 { { case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960esac
2961eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2962$as_echo "$ac_try_echo"; } >&5
2963 (eval "$ac_try") 2>&5
2964 ac_status=$?
2965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2966 test $ac_status = 0; }; }; then
2967 cross_compiling=no
2968 else
2969 if test "$cross_compiling" = maybe; then
2970 cross_compiling=yes
2971 else
2972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2974as_fn_error $? "cannot run C compiled programs.
2975If you meant to cross compile, use \`--host'.
2976See \`config.log' for more details" "$LINENO" 5; }
2977 fi
2978 fi
2979fi
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2981$as_echo "$cross_compiling" >&6; }
2982
2983rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2984ac_clean_files=$ac_clean_files_save
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2986$as_echo_n "checking for suffix of object files... " >&6; }
2987if ${ac_cv_objext+:} false; then :
2988 $as_echo_n "(cached) " >&6
2989else
2990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002991/* end confdefs.h. */
2992
2993int
2994main ()
2995{
2996
2997 ;
2998 return 0;
2999}
3000_ACEOF
3001rm -f conftest.o conftest.obj
jfigusc7e66e32013-05-08 11:32:55 -04003002if { { ac_try="$ac_compile"
3003case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3006esac
3007eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3008$as_echo "$ac_try_echo"; } >&5
3009 (eval "$ac_compile") 2>&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003010 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04003011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3012 test $ac_status = 0; }; then :
3013 for ac_file in conftest.o conftest.obj conftest.*; do
3014 test -f "$ac_file" || continue;
Cullen Jennings235513a2005-09-21 22:51:36 +00003015 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04003016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003017 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3018 break;;
3019 esac
3020done
3021else
jfigusc7e66e32013-05-08 11:32:55 -04003022 $as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003023sed 's/^/| /' conftest.$ac_ext >&5
3024
jfigusc7e66e32013-05-08 11:32:55 -04003025{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027as_fn_error $? "cannot compute suffix of object files: cannot compile
3028See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003029fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003030rm -f conftest.$ac_cv_objext conftest.$ac_ext
3031fi
jfigusc7e66e32013-05-08 11:32:55 -04003032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3033$as_echo "$ac_cv_objext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003034OBJEXT=$ac_cv_objext
3035ac_objext=$OBJEXT
jfigusc7e66e32013-05-08 11:32:55 -04003036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3037$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3038if ${ac_cv_c_compiler_gnu+:} false; then :
3039 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003040else
jfigusc7e66e32013-05-08 11:32:55 -04003041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003042/* end confdefs.h. */
3043
3044int
3045main ()
3046{
3047#ifndef __GNUC__
3048 choke me
3049#endif
3050
3051 ;
3052 return 0;
3053}
3054_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003055if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003056 ac_compiler_gnu=yes
3057else
jfigusc7e66e32013-05-08 11:32:55 -04003058 ac_compiler_gnu=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003059fi
jfigusc7e66e32013-05-08 11:32:55 -04003060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003061ac_cv_c_compiler_gnu=$ac_compiler_gnu
3062
3063fi
jfigusc7e66e32013-05-08 11:32:55 -04003064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3065$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3066if test $ac_compiler_gnu = yes; then
3067 GCC=yes
3068else
3069 GCC=
3070fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003071ac_test_CFLAGS=${CFLAGS+set}
3072ac_save_CFLAGS=$CFLAGS
jfigusc7e66e32013-05-08 11:32:55 -04003073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3074$as_echo_n "checking whether $CC accepts -g... " >&6; }
3075if ${ac_cv_prog_cc_g+:} false; then :
3076 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003077else
jfigusc7e66e32013-05-08 11:32:55 -04003078 ac_save_c_werror_flag=$ac_c_werror_flag
3079 ac_c_werror_flag=yes
3080 ac_cv_prog_cc_g=no
3081 CFLAGS="-g"
3082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003083/* end confdefs.h. */
3084
3085int
3086main ()
3087{
3088
3089 ;
3090 return 0;
3091}
3092_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003093if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003094 ac_cv_prog_cc_g=yes
3095else
jfigusc7e66e32013-05-08 11:32:55 -04003096 CFLAGS=""
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00003099
jfigusc7e66e32013-05-08 11:32:55 -04003100int
3101main ()
3102{
3103
3104 ;
3105 return 0;
3106}
3107_ACEOF
3108if ac_fn_c_try_compile "$LINENO"; then :
3109
3110else
3111 ac_c_werror_flag=$ac_save_c_werror_flag
3112 CFLAGS="-g"
3113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114/* end confdefs.h. */
3115
3116int
3117main ()
3118{
3119
3120 ;
3121 return 0;
3122}
3123_ACEOF
3124if ac_fn_c_try_compile "$LINENO"; then :
3125 ac_cv_prog_cc_g=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003126fi
jfigusc7e66e32013-05-08 11:32:55 -04003127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003128fi
jfigusc7e66e32013-05-08 11:32:55 -04003129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3130fi
3131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3132 ac_c_werror_flag=$ac_save_c_werror_flag
3133fi
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3135$as_echo "$ac_cv_prog_cc_g" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003136if test "$ac_test_CFLAGS" = set; then
3137 CFLAGS=$ac_save_CFLAGS
3138elif test $ac_cv_prog_cc_g = yes; then
3139 if test "$GCC" = yes; then
3140 CFLAGS="-g -O2"
3141 else
3142 CFLAGS="-g"
3143 fi
3144else
3145 if test "$GCC" = yes; then
3146 CFLAGS="-O2"
3147 else
3148 CFLAGS=
3149 fi
3150fi
jfigusc7e66e32013-05-08 11:32:55 -04003151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3152$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3153if ${ac_cv_prog_cc_c89+:} false; then :
3154 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003155else
jfigusc7e66e32013-05-08 11:32:55 -04003156 ac_cv_prog_cc_c89=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003157ac_save_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04003158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003159/* end confdefs.h. */
3160#include <stdarg.h>
3161#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -04003162struct stat;
Cullen Jennings235513a2005-09-21 22:51:36 +00003163/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3164struct buf { int x; };
3165FILE * (*rcsopen) (struct buf *, struct stat *, int);
3166static char *e (p, i)
3167 char **p;
3168 int i;
3169{
3170 return p[i];
3171}
3172static char *f (char * (*g) (char **, int), char **p, ...)
3173{
3174 char *s;
3175 va_list v;
3176 va_start (v,p);
3177 s = g (p, va_arg (v,int));
3178 va_end (v);
3179 return s;
3180}
David McGrewfec49dd2005-09-23 19:34:11 +00003181
3182/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3183 function prototypes and stuff, but not '\xHH' hex character constants.
3184 These don't provoke an error unfortunately, instead are silently treated
jfigusc7e66e32013-05-08 11:32:55 -04003185 as 'x'. The following induces an error, until -std is added to get
David McGrewfec49dd2005-09-23 19:34:11 +00003186 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3187 array size at least. It's necessary to write '\x00'==0 to get something
jfigusc7e66e32013-05-08 11:32:55 -04003188 that's true only with -std. */
David McGrewfec49dd2005-09-23 19:34:11 +00003189int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3190
jfigusc7e66e32013-05-08 11:32:55 -04003191/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3192 inside strings and character constants. */
3193#define FOO(x) 'x'
3194int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3195
Cullen Jennings235513a2005-09-21 22:51:36 +00003196int test (int i, double x);
3197struct s1 {int (*f) (int a);};
3198struct s2 {int (*f) (double a);};
3199int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3200int argc;
3201char **argv;
3202int
3203main ()
3204{
3205return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3206 ;
3207 return 0;
3208}
3209_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003210for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3211 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Cullen Jennings235513a2005-09-21 22:51:36 +00003212do
3213 CC="$ac_save_CC $ac_arg"
jfigusc7e66e32013-05-08 11:32:55 -04003214 if ac_fn_c_try_compile "$LINENO"; then :
3215 ac_cv_prog_cc_c89=$ac_arg
Cullen Jennings235513a2005-09-21 22:51:36 +00003216fi
jfigusc7e66e32013-05-08 11:32:55 -04003217rm -f core conftest.err conftest.$ac_objext
3218 test "x$ac_cv_prog_cc_c89" != "xno" && break
Cullen Jennings235513a2005-09-21 22:51:36 +00003219done
jfigusc7e66e32013-05-08 11:32:55 -04003220rm -f conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003221CC=$ac_save_CC
3222
3223fi
jfigusc7e66e32013-05-08 11:32:55 -04003224# AC_CACHE_VAL
3225case "x$ac_cv_prog_cc_c89" in
3226 x)
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3228$as_echo "none needed" >&6; } ;;
3229 xno)
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3231$as_echo "unsupported" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003232 *)
jfigusc7e66e32013-05-08 11:32:55 -04003233 CC="$CC $ac_cv_prog_cc_c89"
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3235$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003236esac
jfigusc7e66e32013-05-08 11:32:55 -04003237if test "x$ac_cv_prog_cc_c89" != xno; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003238
3239fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003240
Cullen Jennings235513a2005-09-21 22:51:36 +00003241ac_ext=c
3242ac_cpp='$CPP $CPPFLAGS'
3243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246
David McGrewb67061f2005-09-28 14:23:06 +00003247ac_aux_dir=
jfigusc7e66e32013-05-08 11:32:55 -04003248for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3249 if test -f "$ac_dir/install-sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003250 ac_aux_dir=$ac_dir
3251 ac_install_sh="$ac_aux_dir/install-sh -c"
3252 break
jfigusc7e66e32013-05-08 11:32:55 -04003253 elif test -f "$ac_dir/install.sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003254 ac_aux_dir=$ac_dir
3255 ac_install_sh="$ac_aux_dir/install.sh -c"
3256 break
jfigusc7e66e32013-05-08 11:32:55 -04003257 elif test -f "$ac_dir/shtool"; then
David McGrewb67061f2005-09-28 14:23:06 +00003258 ac_aux_dir=$ac_dir
3259 ac_install_sh="$ac_aux_dir/shtool install -c"
3260 break
3261 fi
3262done
3263if test -z "$ac_aux_dir"; then
jfigusc7e66e32013-05-08 11:32:55 -04003264 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
David McGrewb67061f2005-09-28 14:23:06 +00003265fi
jfigusc7e66e32013-05-08 11:32:55 -04003266
3267# These three variables are undocumented and unsupported,
3268# and are intended to be withdrawn in a future Autoconf release.
3269# They can cause serious problems if a builder's source tree is in a directory
3270# whose full name contains unusual characters.
3271ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3272ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3273ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3274
Cullen Jennings235513a2005-09-21 22:51:36 +00003275
David McGrewb67061f2005-09-28 14:23:06 +00003276# Find a good install program. We prefer a C program (faster),
3277# so one script is as good as another. But avoid the broken or
3278# incompatible versions:
3279# SysV /etc/install, /usr/sbin/install
3280# SunOS /usr/etc/install
3281# IRIX /sbin/install
3282# AIX /bin/install
3283# AmigaOS /C/install, which installs bootblocks on floppy discs
3284# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3285# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3286# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3287# OS/2's system install, which has a completely different semantic
3288# ./install, which can be erroneously created by make from ./install.sh.
jfigusc7e66e32013-05-08 11:32:55 -04003289# Reject install programs that cannot install multiple files.
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3291$as_echo_n "checking for a BSD-compatible install... " >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00003292if test -z "$INSTALL"; then
jfigusc7e66e32013-05-08 11:32:55 -04003293if ${ac_cv_path_install+:} false; then :
3294 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003295else
David McGrewb67061f2005-09-28 14:23:06 +00003296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297for as_dir in $PATH
3298do
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04003301 # Account for people who put trailing slashes in PATH elements.
3302case $as_dir/ in #((
3303 ./ | .// | /[cC]/* | \
David McGrewb67061f2005-09-28 14:23:06 +00003304 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jfigusc7e66e32013-05-08 11:32:55 -04003305 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
David McGrewb67061f2005-09-28 14:23:06 +00003306 /usr/ucb/* ) ;;
3307 *)
3308 # OSF1 and SCO ODT 3.0 have their own names for install.
3309 # Don't use installbsd from OSF since it installs stuff as root
3310 # by default.
3311 for ac_prog in ginstall scoinst install; do
3312 for ac_exec_ext in '' $ac_executable_extensions; do
jfigusc7e66e32013-05-08 11:32:55 -04003313 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
David McGrewb67061f2005-09-28 14:23:06 +00003314 if test $ac_prog = install &&
3315 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3316 # AIX install. It has an incompatible calling convention.
3317 :
3318 elif test $ac_prog = install &&
3319 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3320 # program-specific install script used by HP pwplus--don't use.
3321 :
3322 else
jfigusc7e66e32013-05-08 11:32:55 -04003323 rm -rf conftest.one conftest.two conftest.dir
3324 echo one > conftest.one
3325 echo two > conftest.two
3326 mkdir conftest.dir
3327 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3328 test -s conftest.one && test -s conftest.two &&
3329 test -s conftest.dir/conftest.one &&
3330 test -s conftest.dir/conftest.two
3331 then
3332 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3333 break 3
3334 fi
David McGrewb67061f2005-09-28 14:23:06 +00003335 fi
3336 fi
3337 done
3338 done
3339 ;;
3340esac
Cullen Jennings235513a2005-09-21 22:51:36 +00003341
jfigusc7e66e32013-05-08 11:32:55 -04003342 done
3343IFS=$as_save_IFS
3344
3345rm -rf conftest.one conftest.two conftest.dir
Cullen Jennings235513a2005-09-21 22:51:36 +00003346
3347fi
David McGrewb67061f2005-09-28 14:23:06 +00003348 if test "${ac_cv_path_install+set}" = set; then
3349 INSTALL=$ac_cv_path_install
3350 else
jfigusc7e66e32013-05-08 11:32:55 -04003351 # As a last resort, use the slow shell script. Don't cache a
3352 # value for INSTALL within a source directory, because that will
David McGrewb67061f2005-09-28 14:23:06 +00003353 # break other packages using the cache if that directory is
jfigusc7e66e32013-05-08 11:32:55 -04003354 # removed, or if the value is a relative name.
David McGrewb67061f2005-09-28 14:23:06 +00003355 INSTALL=$ac_install_sh
3356 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003357fi
jfigusc7e66e32013-05-08 11:32:55 -04003358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3359$as_echo "$INSTALL" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003360
David McGrewb67061f2005-09-28 14:23:06 +00003361# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3362# It thinks the first close brace ends the variable substitution.
3363test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00003364
David McGrewb67061f2005-09-28 14:23:06 +00003365test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3366
3367test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00003368
3369
3370
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003371ac_ext=c
3372ac_cpp='$CPP $CPPFLAGS'
3373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375ac_compiler_gnu=$ac_cv_c_compiler_gnu
jfigusc7e66e32013-05-08 11:32:55 -04003376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3377$as_echo_n "checking how to run the C preprocessor... " >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003378# On Suns, sometimes $CPP names a directory.
3379if test -n "$CPP" && test -d "$CPP"; then
3380 CPP=
3381fi
3382if test -z "$CPP"; then
jfigusc7e66e32013-05-08 11:32:55 -04003383 if ${ac_cv_prog_CPP+:} false; then :
3384 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003385else
3386 # Double quotes because CPP needs to be expanded
3387 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3388 do
3389 ac_preproc_ok=false
3390for ac_c_preproc_warn_flag in '' yes
3391do
3392 # Use a header file that comes with gcc, so configuring glibc
3393 # with a fresh cross-compiler works.
3394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3395 # <limits.h> exists even on freestanding compilers.
3396 # On the NeXT, cc -E runs the code through the compiler's parser,
3397 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04003398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003399/* end confdefs.h. */
3400#ifdef __STDC__
3401# include <limits.h>
3402#else
3403# include <assert.h>
3404#endif
3405 Syntax error
3406_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003407if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003408
jfigusc7e66e32013-05-08 11:32:55 -04003409else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003410 # Broken: fails on valid input.
3411continue
3412fi
jfigusc7e66e32013-05-08 11:32:55 -04003413rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003414
jfigusc7e66e32013-05-08 11:32:55 -04003415 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003416 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04003417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003418/* end confdefs.h. */
3419#include <ac_nonexistent.h>
3420_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003421if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003422 # Broken: success on invalid input.
3423continue
3424else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003425 # Passes both tests.
3426ac_preproc_ok=:
3427break
3428fi
jfigusc7e66e32013-05-08 11:32:55 -04003429rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003430
3431done
3432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04003433rm -f conftest.i conftest.err conftest.$ac_ext
3434if $ac_preproc_ok; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003435 break
3436fi
3437
3438 done
3439 ac_cv_prog_CPP=$CPP
3440
3441fi
3442 CPP=$ac_cv_prog_CPP
3443else
3444 ac_cv_prog_CPP=$CPP
3445fi
jfigusc7e66e32013-05-08 11:32:55 -04003446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3447$as_echo "$CPP" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003448ac_preproc_ok=false
3449for ac_c_preproc_warn_flag in '' yes
3450do
3451 # Use a header file that comes with gcc, so configuring glibc
3452 # with a fresh cross-compiler works.
3453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3454 # <limits.h> exists even on freestanding compilers.
3455 # On the NeXT, cc -E runs the code through the compiler's parser,
3456 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04003457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003458/* end confdefs.h. */
3459#ifdef __STDC__
3460# include <limits.h>
3461#else
3462# include <assert.h>
3463#endif
3464 Syntax error
3465_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003466if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003467
jfigusc7e66e32013-05-08 11:32:55 -04003468else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003469 # Broken: fails on valid input.
3470continue
3471fi
jfigusc7e66e32013-05-08 11:32:55 -04003472rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003473
jfigusc7e66e32013-05-08 11:32:55 -04003474 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003475 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04003476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003477/* end confdefs.h. */
3478#include <ac_nonexistent.h>
3479_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003480if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003481 # Broken: success on invalid input.
3482continue
3483else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003484 # Passes both tests.
3485ac_preproc_ok=:
3486break
3487fi
jfigusc7e66e32013-05-08 11:32:55 -04003488rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003489
3490done
3491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04003492rm -f conftest.i conftest.err conftest.$ac_ext
3493if $ac_preproc_ok; then :
3494
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003495else
jfigusc7e66e32013-05-08 11:32:55 -04003496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3498as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3499See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003500fi
3501
3502ac_ext=c
3503ac_cpp='$CPP $CPPFLAGS'
3504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507
3508
jfigusc7e66e32013-05-08 11:32:55 -04003509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3510$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3511if ${ac_cv_path_GREP+:} false; then :
3512 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003513else
jfigusc7e66e32013-05-08 11:32:55 -04003514 if test -z "$GREP"; then
3515 ac_path_GREP_found=false
3516 # Loop through the user's path and test for each of PROGNAME-LIST
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3519do
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 for ac_prog in grep ggrep; do
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3525 as_fn_executable_p "$ac_path_GREP" || continue
3526# Check for GNU ac_path_GREP and select it if it is found.
3527 # Check for GNU $ac_path_GREP
3528case `"$ac_path_GREP" --version 2>&1` in
3529*GNU*)
3530 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3531*)
3532 ac_count=0
3533 $as_echo_n 0123456789 >"conftest.in"
3534 while :
3535 do
3536 cat "conftest.in" "conftest.in" >"conftest.tmp"
3537 mv "conftest.tmp" "conftest.in"
3538 cp "conftest.in" "conftest.nl"
3539 $as_echo 'GREP' >> "conftest.nl"
3540 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3542 as_fn_arith $ac_count + 1 && ac_count=$as_val
3543 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3544 # Best one so far, save it but keep looking for a better one
3545 ac_cv_path_GREP="$ac_path_GREP"
3546 ac_path_GREP_max=$ac_count
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003547 fi
jfigusc7e66e32013-05-08 11:32:55 -04003548 # 10*(2^10) chars as input seems more than enough
3549 test $ac_count -gt 10 && break
3550 done
3551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3552esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003553
jfigusc7e66e32013-05-08 11:32:55 -04003554 $ac_path_GREP_found && break 3
3555 done
3556 done
3557 done
3558IFS=$as_save_IFS
3559 if test -z "$ac_cv_path_GREP"; then
3560 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3561 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003562else
jfigusc7e66e32013-05-08 11:32:55 -04003563 ac_cv_path_GREP=$GREP
3564fi
3565
3566fi
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3568$as_echo "$ac_cv_path_GREP" >&6; }
3569 GREP="$ac_cv_path_GREP"
3570
3571
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3573$as_echo_n "checking for egrep... " >&6; }
3574if ${ac_cv_path_EGREP+:} false; then :
3575 $as_echo_n "(cached) " >&6
3576else
3577 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3578 then ac_cv_path_EGREP="$GREP -E"
3579 else
3580 if test -z "$EGREP"; then
3581 ac_path_EGREP_found=false
3582 # Loop through the user's path and test for each of PROGNAME-LIST
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3585do
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_prog in egrep; do
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3591 as_fn_executable_p "$ac_path_EGREP" || continue
3592# Check for GNU ac_path_EGREP and select it if it is found.
3593 # Check for GNU $ac_path_EGREP
3594case `"$ac_path_EGREP" --version 2>&1` in
3595*GNU*)
3596 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3597*)
3598 ac_count=0
3599 $as_echo_n 0123456789 >"conftest.in"
3600 while :
3601 do
3602 cat "conftest.in" "conftest.in" >"conftest.tmp"
3603 mv "conftest.tmp" "conftest.in"
3604 cp "conftest.in" "conftest.nl"
3605 $as_echo 'EGREP' >> "conftest.nl"
3606 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3608 as_fn_arith $ac_count + 1 && ac_count=$as_val
3609 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3610 # Best one so far, save it but keep looking for a better one
3611 ac_cv_path_EGREP="$ac_path_EGREP"
3612 ac_path_EGREP_max=$ac_count
3613 fi
3614 # 10*(2^10) chars as input seems more than enough
3615 test $ac_count -gt 10 && break
3616 done
3617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3618esac
3619
3620 $ac_path_EGREP_found && break 3
3621 done
3622 done
3623 done
3624IFS=$as_save_IFS
3625 if test -z "$ac_cv_path_EGREP"; then
3626 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3627 fi
3628else
3629 ac_cv_path_EGREP=$EGREP
3630fi
3631
3632 fi
3633fi
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3635$as_echo "$ac_cv_path_EGREP" >&6; }
3636 EGREP="$ac_cv_path_EGREP"
3637
3638
3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3640$as_echo_n "checking for ANSI C header files... " >&6; }
3641if ${ac_cv_header_stdc+:} false; then :
3642 $as_echo_n "(cached) " >&6
3643else
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003645/* end confdefs.h. */
3646#include <stdlib.h>
3647#include <stdarg.h>
3648#include <string.h>
3649#include <float.h>
3650
3651int
3652main ()
3653{
3654
3655 ;
3656 return 0;
3657}
3658_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003659if ac_fn_c_try_compile "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003660 ac_cv_header_stdc=yes
3661else
jfigusc7e66e32013-05-08 11:32:55 -04003662 ac_cv_header_stdc=no
jfigusa14b5a02013-03-29 12:24:12 -04003663fi
jfigusc7e66e32013-05-08 11:32:55 -04003664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003665
3666if test $ac_cv_header_stdc = yes; then
3667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003669/* end confdefs.h. */
3670#include <string.h>
3671
3672_ACEOF
3673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003674 $EGREP "memchr" >/dev/null 2>&1; then :
3675
jfigusa14b5a02013-03-29 12:24:12 -04003676else
3677 ac_cv_header_stdc=no
3678fi
3679rm -f conftest*
3680
3681fi
3682
3683if test $ac_cv_header_stdc = yes; then
3684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003686/* end confdefs.h. */
3687#include <stdlib.h>
3688
3689_ACEOF
3690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003691 $EGREP "free" >/dev/null 2>&1; then :
3692
jfigusa14b5a02013-03-29 12:24:12 -04003693else
3694 ac_cv_header_stdc=no
3695fi
3696rm -f conftest*
3697
3698fi
3699
3700if test $ac_cv_header_stdc = yes; then
3701 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jfigusc7e66e32013-05-08 11:32:55 -04003702 if test "$cross_compiling" = yes; then :
jfigusa14b5a02013-03-29 12:24:12 -04003703 :
3704else
jfigusc7e66e32013-05-08 11:32:55 -04003705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003706/* end confdefs.h. */
3707#include <ctype.h>
jfigusc7e66e32013-05-08 11:32:55 -04003708#include <stdlib.h>
jfigusa14b5a02013-03-29 12:24:12 -04003709#if ((' ' & 0x0FF) == 0x020)
3710# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3711# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3712#else
3713# define ISLOWER(c) \
3714 (('a' <= (c) && (c) <= 'i') \
3715 || ('j' <= (c) && (c) <= 'r') \
3716 || ('s' <= (c) && (c) <= 'z'))
3717# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3718#endif
3719
3720#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3721int
3722main ()
3723{
3724 int i;
3725 for (i = 0; i < 256; i++)
3726 if (XOR (islower (i), ISLOWER (i))
3727 || toupper (i) != TOUPPER (i))
jfigusc7e66e32013-05-08 11:32:55 -04003728 return 2;
3729 return 0;
jfigusa14b5a02013-03-29 12:24:12 -04003730}
3731_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003732if ac_fn_c_try_run "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003733
jfigusc7e66e32013-05-08 11:32:55 -04003734else
3735 ac_cv_header_stdc=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003736fi
jfigusc7e66e32013-05-08 11:32:55 -04003737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3738 conftest.$ac_objext conftest.beam conftest.$ac_ext
3739fi
3740
jfigusa14b5a02013-03-29 12:24:12 -04003741fi
3742fi
jfigusc7e66e32013-05-08 11:32:55 -04003743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3744$as_echo "$ac_cv_header_stdc" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04003745if test $ac_cv_header_stdc = yes; then
3746
jfigusc7e66e32013-05-08 11:32:55 -04003747$as_echo "#define STDC_HEADERS 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04003748
3749fi
3750
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003751# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003752for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3753 inttypes.h stdint.h unistd.h
jfigusc7e66e32013-05-08 11:32:55 -04003754do :
3755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3756ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3757"
3758if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003759 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003760#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003761_ACEOF
3762
3763fi
3764
3765done
3766
3767
jfigusc7e66e32013-05-08 11:32:55 -04003768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3769$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3770if ${ac_cv_c_bigendian+:} false; then :
3771 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003772else
jfigusc7e66e32013-05-08 11:32:55 -04003773 ac_cv_c_bigendian=unknown
3774 # See if we're dealing with a universal compiler.
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003776/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003777#ifndef __APPLE_CC__
3778 not a universal capable compiler
3779 #endif
3780 typedef int dummy;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003781
jfigusc7e66e32013-05-08 11:32:55 -04003782_ACEOF
3783if ac_fn_c_try_compile "$LINENO"; then :
3784
3785 # Check for potential -arch flags. It is not universal unless
3786 # there are at least two -arch flags with different values.
3787 ac_arch=
3788 ac_prev=
3789 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3790 if test -n "$ac_prev"; then
3791 case $ac_word in
3792 i?86 | x86_64 | ppc | ppc64)
3793 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3794 ac_arch=$ac_word
3795 else
3796 ac_cv_c_bigendian=universal
3797 break
3798 fi
3799 ;;
3800 esac
3801 ac_prev=
3802 elif test "x$ac_word" = "x-arch"; then
3803 ac_prev=arch
3804 fi
3805 done
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003806fi
jfigusc7e66e32013-05-08 11:32:55 -04003807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 if test $ac_cv_c_bigendian = unknown; then
3809 # See if sys/param.h defines the BYTE_ORDER macro.
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003811/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003812#include <sys/types.h>
3813 #include <sys/param.h>
3814
3815int
3816main ()
3817{
3818#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3819 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3820 && LITTLE_ENDIAN)
3821 bogus endian macros
3822 #endif
3823
3824 ;
3825 return 0;
3826}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003827_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003828if ac_fn_c_try_compile "$LINENO"; then :
3829 # It does; now see whether it defined to BIG_ENDIAN or not.
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003831/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003832#include <sys/types.h>
3833 #include <sys/param.h>
3834
3835int
3836main ()
3837{
3838#if BYTE_ORDER != BIG_ENDIAN
3839 not big endian
3840 #endif
3841
3842 ;
3843 return 0;
3844}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003845_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003846if ac_fn_c_try_compile "$LINENO"; then :
3847 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003848else
jfigusc7e66e32013-05-08 11:32:55 -04003849 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003850fi
jfigusc7e66e32013-05-08 11:32:55 -04003851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3852fi
3853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 fi
3855 if test $ac_cv_c_bigendian = unknown; then
3856 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003858/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003859#include <limits.h>
3860
3861int
3862main ()
3863{
3864#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3865 bogus endian macros
3866 #endif
3867
3868 ;
3869 return 0;
3870}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003871_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003872if ac_fn_c_try_compile "$LINENO"; then :
3873 # It does; now see whether it defined to _BIG_ENDIAN or not.
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003875/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003876#include <limits.h>
3877
3878int
3879main ()
3880{
3881#ifndef _BIG_ENDIAN
3882 not big endian
3883 #endif
3884
3885 ;
3886 return 0;
3887}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003888_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003889if ac_fn_c_try_compile "$LINENO"; then :
3890 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003891else
jfigusc7e66e32013-05-08 11:32:55 -04003892 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003893fi
jfigusc7e66e32013-05-08 11:32:55 -04003894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895fi
3896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897 fi
3898 if test $ac_cv_c_bigendian = unknown; then
3899 # Compile a test program.
3900 if test "$cross_compiling" = yes; then :
3901 # Try to guess by grepping values from an object file.
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003903/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003904short int ascii_mm[] =
3905 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3906 short int ascii_ii[] =
3907 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3908 int use_ascii (int i) {
3909 return ascii_mm[i] + ascii_ii[i];
3910 }
3911 short int ebcdic_ii[] =
3912 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3913 short int ebcdic_mm[] =
3914 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3915 int use_ebcdic (int i) {
3916 return ebcdic_mm[i] + ebcdic_ii[i];
3917 }
3918 extern int foo;
3919
3920int
3921main ()
3922{
3923return use_ascii (foo) == use_ebcdic (foo);
3924 ;
3925 return 0;
3926}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003927_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003928if ac_fn_c_try_compile "$LINENO"; then :
3929 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3930 ac_cv_c_bigendian=yes
3931 fi
3932 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3933 if test "$ac_cv_c_bigendian" = unknown; then
3934 ac_cv_c_bigendian=no
3935 else
3936 # finding both strings is unlikely to happen, but who knows?
3937 ac_cv_c_bigendian=unknown
3938 fi
3939 fi
3940fi
3941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003942else
jfigusc7e66e32013-05-08 11:32:55 -04003943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003944/* end confdefs.h. */
3945$ac_includes_default
3946int
3947main ()
3948{
jfigusc7e66e32013-05-08 11:32:55 -04003949
3950 /* Are we little or big endian? From Harbison&Steele. */
3951 union
3952 {
3953 long int l;
3954 char c[sizeof (long int)];
3955 } u;
3956 u.l = 1;
3957 return u.c[sizeof (long int) - 1] == 1;
3958
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003959 ;
3960 return 0;
3961}
3962_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003963if ac_fn_c_try_run "$LINENO"; then :
3964 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003965else
jfigusc7e66e32013-05-08 11:32:55 -04003966 ac_cv_c_bigendian=yes
3967fi
3968rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3969 conftest.$ac_objext conftest.beam conftest.$ac_ext
3970fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003971
jfigusc7e66e32013-05-08 11:32:55 -04003972 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003973fi
jfigusc7e66e32013-05-08 11:32:55 -04003974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3975$as_echo "$ac_cv_c_bigendian" >&6; }
3976 case $ac_cv_c_bigendian in #(
3977 yes)
3978 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
3979;; #(
3980 no)
3981 ;; #(
3982 universal)
3983
3984$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3985
3986 ;; #(
3987 *)
3988 as_fn_error $? "unknown endianness
3989 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3990 esac
3991
3992
3993# Make sure we can run config.sub.
3994$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3995 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3996
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3998$as_echo_n "checking build system type... " >&6; }
3999if ${ac_cv_build+:} false; then :
4000 $as_echo_n "(cached) " >&6
4001else
4002 ac_build_alias=$build_alias
4003test "x$ac_build_alias" = x &&
4004 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4005test "x$ac_build_alias" = x &&
4006 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4007ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4008 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4009
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004010fi
jfigusc7e66e32013-05-08 11:32:55 -04004011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4012$as_echo "$ac_cv_build" >&6; }
4013case $ac_cv_build in
4014*-*-*) ;;
4015*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4016esac
4017build=$ac_cv_build
4018ac_save_IFS=$IFS; IFS='-'
4019set x $ac_cv_build
4020shift
4021build_cpu=$1
4022build_vendor=$2
4023shift; shift
4024# Remember, the first character of IFS is used to create $*,
4025# except with old shells:
4026build_os=$*
4027IFS=$ac_save_IFS
4028case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4029
4030
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4032$as_echo_n "checking host system type... " >&6; }
4033if ${ac_cv_host+:} false; then :
4034 $as_echo_n "(cached) " >&6
4035else
4036 if test "x$host_alias" = x; then
4037 ac_cv_host=$ac_cv_build
4038else
4039 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4040 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4041fi
4042
4043fi
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4045$as_echo "$ac_cv_host" >&6; }
4046case $ac_cv_host in
4047*-*-*) ;;
4048*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4049esac
4050host=$ac_cv_host
4051ac_save_IFS=$IFS; IFS='-'
4052set x $ac_cv_host
4053shift
4054host_cpu=$1
4055host_vendor=$2
4056shift; shift
4057# Remember, the first character of IFS is used to create $*,
4058# except with old shells:
4059host_os=$*
4060IFS=$ac_save_IFS
4061case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4062
4063
4064
4065case $host_cpu in
4066 i*86 | x86_64 )
4067
4068$as_echo "#define CPU_CISC 1" >>confdefs.h
4069
4070
4071$as_echo "#define HAVE_X86 1" >>confdefs.h
4072;;
4073 * )
4074 # CPU_RISC is only supported for big endian machines.
4075 if test "$ac_cv_c_bigendian" = "yes"; then
4076
4077$as_echo "#define CPU_RISC 1" >>confdefs.h
4078
4079 else
4080 $as_echo "#define CPU_CISC 1" >>confdefs.h
4081
4082 fi
4083 ;;
4084esac
4085
4086case $host_os in
4087 *cygwin*|*mingw* )
4088 EXE=.exe
4089 HOST_IS_WINDOWS=yes
4090 ;;
4091 * )
4092 EXE=""
4093 ;;
4094esac
4095 # define executable suffix; this is needed for `make clean'
4096
jfigusc7e66e32013-05-08 11:32:55 -04004097if test "$cross_compiling" != yes -a "$HOST_IS_WINDOWS" != yes; then
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
4099$as_echo_n "checking for /dev/urandom... " >&6; }
4100if ${ac_cv_file__dev_urandom+:} false; then :
4101 $as_echo_n "(cached) " >&6
4102else
4103 test "$cross_compiling" = yes &&
4104 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4105if test -r "/dev/urandom"; then
4106 ac_cv_file__dev_urandom=yes
4107else
4108 ac_cv_file__dev_urandom=no
4109fi
4110fi
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
4112$as_echo "$ac_cv_file__dev_urandom" >&6; }
4113if test "x$ac_cv_file__dev_urandom" = xyes; then :
4114 DEV_URANDOM=/dev/urandom
4115else
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
4117$as_echo_n "checking for /dev/random... " >&6; }
4118if ${ac_cv_file__dev_random+:} false; then :
4119 $as_echo_n "(cached) " >&6
4120else
4121 test "$cross_compiling" = yes &&
4122 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4123if test -r "/dev/random"; then
4124 ac_cv_file__dev_random=yes
4125else
4126 ac_cv_file__dev_random=no
4127fi
4128fi
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
4130$as_echo "$ac_cv_file__dev_random" >&6; }
4131if test "x$ac_cv_file__dev_random" = xyes; then :
4132 DEV_URANDOM=/dev/random
4133fi
4134
4135fi
4136
4137fi
4138
4139
4140
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4142$as_echo_n "checking for ANSI C header files... " >&6; }
4143if ${ac_cv_header_stdc+:} false; then :
4144 $as_echo_n "(cached) " >&6
4145else
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147/* end confdefs.h. */
4148#include <stdlib.h>
4149#include <stdarg.h>
4150#include <string.h>
4151#include <float.h>
4152
4153int
4154main ()
4155{
4156
4157 ;
4158 return 0;
4159}
4160_ACEOF
4161if ac_fn_c_try_compile "$LINENO"; then :
4162 ac_cv_header_stdc=yes
4163else
4164 ac_cv_header_stdc=no
4165fi
4166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167
4168if test $ac_cv_header_stdc = yes; then
4169 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171/* end confdefs.h. */
4172#include <string.h>
4173
4174_ACEOF
4175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4176 $EGREP "memchr" >/dev/null 2>&1; then :
4177
4178else
4179 ac_cv_header_stdc=no
4180fi
4181rm -f conftest*
4182
4183fi
4184
4185if test $ac_cv_header_stdc = yes; then
4186 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188/* end confdefs.h. */
4189#include <stdlib.h>
4190
4191_ACEOF
4192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4193 $EGREP "free" >/dev/null 2>&1; then :
4194
4195else
4196 ac_cv_header_stdc=no
4197fi
4198rm -f conftest*
4199
4200fi
4201
4202if test $ac_cv_header_stdc = yes; then
4203 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4204 if test "$cross_compiling" = yes; then :
4205 :
4206else
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208/* end confdefs.h. */
4209#include <ctype.h>
4210#include <stdlib.h>
4211#if ((' ' & 0x0FF) == 0x020)
4212# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4213# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4214#else
4215# define ISLOWER(c) \
4216 (('a' <= (c) && (c) <= 'i') \
4217 || ('j' <= (c) && (c) <= 'r') \
4218 || ('s' <= (c) && (c) <= 'z'))
4219# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4220#endif
4221
4222#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4223int
4224main ()
4225{
4226 int i;
4227 for (i = 0; i < 256; i++)
4228 if (XOR (islower (i), ISLOWER (i))
4229 || toupper (i) != TOUPPER (i))
4230 return 2;
4231 return 0;
4232}
4233_ACEOF
4234if ac_fn_c_try_run "$LINENO"; then :
4235
4236else
4237 ac_cv_header_stdc=no
4238fi
4239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4240 conftest.$ac_objext conftest.beam conftest.$ac_ext
4241fi
4242
4243fi
4244fi
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4246$as_echo "$ac_cv_header_stdc" >&6; }
4247if test $ac_cv_header_stdc = yes; then
4248
4249$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4250
4251fi
4252
4253for ac_header in stdlib.h
4254do :
4255 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4256if test "x$ac_cv_header_stdlib_h" = xyes; then :
4257 cat >>confdefs.h <<_ACEOF
4258#define HAVE_STDLIB_H 1
4259_ACEOF
4260
4261fi
4262
4263done
4264
4265for ac_header in unistd.h
4266do :
4267 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4268if test "x$ac_cv_header_unistd_h" = xyes; then :
4269 cat >>confdefs.h <<_ACEOF
4270#define HAVE_UNISTD_H 1
4271_ACEOF
4272
4273fi
4274
4275done
4276
4277for ac_header in byteswap.h
4278do :
4279 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
4280if test "x$ac_cv_header_byteswap_h" = xyes; then :
4281 cat >>confdefs.h <<_ACEOF
4282#define HAVE_BYTESWAP_H 1
4283_ACEOF
4284
4285fi
4286
4287done
4288
4289for ac_header in stdint.h
4290do :
4291 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4292if test "x$ac_cv_header_stdint_h" = xyes; then :
4293 cat >>confdefs.h <<_ACEOF
4294#define HAVE_STDINT_H 1
4295_ACEOF
4296
4297fi
4298
4299done
4300
4301for ac_header in sys/uio.h
4302do :
4303 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
4304if test "x$ac_cv_header_sys_uio_h" = xyes; then :
4305 cat >>confdefs.h <<_ACEOF
4306#define HAVE_SYS_UIO_H 1
4307_ACEOF
4308
4309fi
4310
4311done
4312
4313for ac_header in inttypes.h
4314do :
4315 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
4316if test "x$ac_cv_header_inttypes_h" = xyes; then :
4317 cat >>confdefs.h <<_ACEOF
4318#define HAVE_INTTYPES_H 1
4319_ACEOF
4320
4321fi
4322
4323done
4324
4325for ac_header in sys/types.h
4326do :
4327 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4328if test "x$ac_cv_header_sys_types_h" = xyes; then :
4329 cat >>confdefs.h <<_ACEOF
4330#define HAVE_SYS_TYPES_H 1
4331_ACEOF
4332
4333fi
4334
4335done
4336
4337for ac_header in machine/types.h
4338do :
4339 ac_fn_c_check_header_mongrel "$LINENO" "machine/types.h" "ac_cv_header_machine_types_h" "$ac_includes_default"
4340if test "x$ac_cv_header_machine_types_h" = xyes; then :
4341 cat >>confdefs.h <<_ACEOF
4342#define HAVE_MACHINE_TYPES_H 1
4343_ACEOF
4344
4345fi
4346
4347done
4348
4349for ac_header in sys/int_types.h
4350do :
4351 ac_fn_c_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default"
4352if test "x$ac_cv_header_sys_int_types_h" = xyes; then :
4353 cat >>confdefs.h <<_ACEOF
4354#define HAVE_SYS_INT_TYPES_H 1
4355_ACEOF
4356
4357fi
4358
4359done
4360
4361
4362for ac_header in sys/socket.h netinet/in.h arpa/inet.h
4363do :
4364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4365ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4366if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4367 cat >>confdefs.h <<_ACEOF
4368#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4369_ACEOF
4370
4371fi
4372
4373done
4374
4375for ac_header in windows.h
4376do :
4377 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
4378if test "x$ac_cv_header_windows_h" = xyes; then :
4379 cat >>confdefs.h <<_ACEOF
4380#define HAVE_WINDOWS_H 1
4381_ACEOF
4382 for ac_header in winsock2.h
4383do :
4384 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4385if test "x$ac_cv_header_winsock2_h" = xyes; then :
4386 cat >>confdefs.h <<_ACEOF
4387#define HAVE_WINSOCK2_H 1
4388_ACEOF
4389
4390fi
4391
4392done
4393
4394fi
4395
4396done
4397
4398
jfigusc7e66e32013-05-08 11:32:55 -04004399ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
4400if test "x$ac_cv_type_int8_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004401
David McGrewfec49dd2005-09-23 19:34:11 +00004402cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004403#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004404_ACEOF
4405
4406
4407fi
jfigusc7e66e32013-05-08 11:32:55 -04004408ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4409if test "x$ac_cv_type_uint8_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004410
4411cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004412#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004413_ACEOF
4414
4415
4416fi
jfigusc7e66e32013-05-08 11:32:55 -04004417ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4418if test "x$ac_cv_type_int16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004419
4420cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004421#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004422_ACEOF
4423
4424
4425fi
jfigusc7e66e32013-05-08 11:32:55 -04004426ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4427if test "x$ac_cv_type_uint16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004428
4429cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004430#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004431_ACEOF
4432
4433
4434fi
jfigusc7e66e32013-05-08 11:32:55 -04004435ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
4436if test "x$ac_cv_type_int32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004437
4438cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004439#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004440_ACEOF
4441
4442
4443fi
jfigusc7e66e32013-05-08 11:32:55 -04004444ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4445if test "x$ac_cv_type_uint32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004446
4447cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004448#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004449_ACEOF
4450
4451
4452fi
jfigusc7e66e32013-05-08 11:32:55 -04004453ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
4454if test "x$ac_cv_type_uint64_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004455
4456cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004457#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004458_ACEOF
4459
4460
4461fi
4462
jfigusc7e66e32013-05-08 11:32:55 -04004463# The cast to long int works around a bug in the HP C Compiler
4464# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4465# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4466# This bug is HP SR number 8606223364.
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4468$as_echo_n "checking size of unsigned long... " >&6; }
4469if ${ac_cv_sizeof_unsigned_long+:} false; then :
4470 $as_echo_n "(cached) " >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004471else
jfigusc7e66e32013-05-08 11:32:55 -04004472 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 +00004473
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004474else
4475 if test "$ac_cv_type_unsigned_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4478as_fn_error 77 "cannot compute sizeof (unsigned long)
4479See \`config.log' for more details" "$LINENO" 5; }
4480 else
4481 ac_cv_sizeof_unsigned_long=0
4482 fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004483fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004484
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004485fi
jfigusc7e66e32013-05-08 11:32:55 -04004486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
4487$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004488
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004489
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004490
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004491cat >>confdefs.h <<_ACEOF
4492#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
4493_ACEOF
4494
David McGrewfec49dd2005-09-23 19:34:11 +00004495
jfigusc7e66e32013-05-08 11:32:55 -04004496# The cast to long int works around a bug in the HP C Compiler
4497# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4498# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4499# This bug is HP SR number 8606223364.
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
4501$as_echo_n "checking size of unsigned long long... " >&6; }
4502if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
4503 $as_echo_n "(cached) " >&6
David McGrewfec49dd2005-09-23 19:34:11 +00004504else
jfigusc7e66e32013-05-08 11:32:55 -04004505 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 +00004506
David McGrewfec49dd2005-09-23 19:34:11 +00004507else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004508 if test "$ac_cv_type_unsigned_long_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4511as_fn_error 77 "cannot compute sizeof (unsigned long long)
4512See \`config.log' for more details" "$LINENO" 5; }
4513 else
4514 ac_cv_sizeof_unsigned_long_long=0
4515 fi
David McGrewfec49dd2005-09-23 19:34:11 +00004516fi
4517
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004518fi
jfigusc7e66e32013-05-08 11:32:55 -04004519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
4520$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004521
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004522
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004523
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004524cat >>confdefs.h <<_ACEOF
4525#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00004526_ACEOF
4527
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004528
Cullen Jennings235513a2005-09-21 22:51:36 +00004529
jfigusc7e66e32013-05-08 11:32:55 -04004530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4531$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4532if ${ac_cv_c_const+:} false; then :
4533 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004534else
jfigusc7e66e32013-05-08 11:32:55 -04004535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004536/* end confdefs.h. */
4537
4538int
4539main ()
4540{
jfigusc7e66e32013-05-08 11:32:55 -04004541
Cullen Jennings235513a2005-09-21 22:51:36 +00004542#ifndef __cplusplus
jfigusc7e66e32013-05-08 11:32:55 -04004543 /* Ultrix mips cc rejects this sort of thing. */
Cullen Jennings235513a2005-09-21 22:51:36 +00004544 typedef int charset[2];
jfigusc7e66e32013-05-08 11:32:55 -04004545 const charset cs = { 0, 0 };
Cullen Jennings235513a2005-09-21 22:51:36 +00004546 /* SunOS 4.1.1 cc rejects this. */
jfigusc7e66e32013-05-08 11:32:55 -04004547 char const *const *pcpcc;
4548 char **ppc;
Cullen Jennings235513a2005-09-21 22:51:36 +00004549 /* NEC SVR4.0.2 mips cc rejects this. */
4550 struct point {int x, y;};
4551 static struct point const zero = {0,0};
4552 /* AIX XL C 1.02.0.0 rejects this.
4553 It does not let you subtract one const X* pointer from another in
4554 an arm of an if-expression whose if-part is not a constant
4555 expression */
4556 const char *g = "string";
jfigusc7e66e32013-05-08 11:32:55 -04004557 pcpcc = &g + (g ? g-g : 0);
Cullen Jennings235513a2005-09-21 22:51:36 +00004558 /* HPUX 7.0 cc rejects these. */
jfigusc7e66e32013-05-08 11:32:55 -04004559 ++pcpcc;
4560 ppc = (char**) pcpcc;
4561 pcpcc = (char const *const *) ppc;
4562 { /* SCO 3.2v4 cc rejects this sort of thing. */
4563 char tx;
4564 char *t = &tx;
Cullen Jennings235513a2005-09-21 22:51:36 +00004565 char const *s = 0 ? (char *) 0 : (char const *) 0;
4566
4567 *t++ = 0;
jfigusc7e66e32013-05-08 11:32:55 -04004568 if (s) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004569 }
4570 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4571 int x[] = {25, 17};
4572 const int *foo = &x[0];
4573 ++foo;
4574 }
4575 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4576 typedef const int *iptr;
4577 iptr p = 0;
4578 ++p;
4579 }
jfigusc7e66e32013-05-08 11:32:55 -04004580 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Cullen Jennings235513a2005-09-21 22:51:36 +00004581 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
jfigusc7e66e32013-05-08 11:32:55 -04004582 struct s { int j; const int *ap[3]; } bx;
4583 struct s *b = &bx; b->j = 5;
Cullen Jennings235513a2005-09-21 22:51:36 +00004584 }
4585 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4586 const int foo = 10;
jfigusc7e66e32013-05-08 11:32:55 -04004587 if (!foo) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004588 }
jfigusc7e66e32013-05-08 11:32:55 -04004589 return !cs[0] && !zero.x;
Cullen Jennings235513a2005-09-21 22:51:36 +00004590#endif
4591
4592 ;
4593 return 0;
4594}
4595_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004596if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004597 ac_cv_c_const=yes
4598else
jfigusc7e66e32013-05-08 11:32:55 -04004599 ac_cv_c_const=no
Cullen Jennings235513a2005-09-21 22:51:36 +00004600fi
jfigusc7e66e32013-05-08 11:32:55 -04004601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004602fi
jfigusc7e66e32013-05-08 11:32:55 -04004603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4604$as_echo "$ac_cv_c_const" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004605if test $ac_cv_c_const = no; then
4606
jfigusc7e66e32013-05-08 11:32:55 -04004607$as_echo "#define const /**/" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004608
4609fi
4610
jfigusc7e66e32013-05-08 11:32:55 -04004611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4612$as_echo_n "checking for inline... " >&6; }
4613if ${ac_cv_c_inline+:} false; then :
4614 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004615else
4616 ac_cv_c_inline=no
4617for ac_kw in inline __inline__ __inline; do
jfigusc7e66e32013-05-08 11:32:55 -04004618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004619/* end confdefs.h. */
4620#ifndef __cplusplus
4621typedef int foo_t;
4622static $ac_kw foo_t static_foo () {return 0; }
4623$ac_kw foo_t foo () {return 0; }
4624#endif
4625
4626_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004627if ac_fn_c_try_compile "$LINENO"; then :
4628 ac_cv_c_inline=$ac_kw
Cullen Jennings235513a2005-09-21 22:51:36 +00004629fi
jfigusc7e66e32013-05-08 11:32:55 -04004630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 test "$ac_cv_c_inline" != no && break
Cullen Jennings235513a2005-09-21 22:51:36 +00004632done
4633
4634fi
jfigusc7e66e32013-05-08 11:32:55 -04004635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4636$as_echo "$ac_cv_c_inline" >&6; }
David McGrewfec49dd2005-09-23 19:34:11 +00004637
Cullen Jennings235513a2005-09-21 22:51:36 +00004638case $ac_cv_c_inline in
4639 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00004640 *)
4641 case $ac_cv_c_inline in
4642 no) ac_val=;;
4643 *) ac_val=$ac_cv_c_inline;;
4644 esac
4645 cat >>confdefs.h <<_ACEOF
4646#ifndef __cplusplus
4647#define inline $ac_val
4648#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00004649_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00004650 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00004651esac
4652
jfigusc7e66e32013-05-08 11:32:55 -04004653ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4654if test "x$ac_cv_type_size_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004655
Cullen Jennings235513a2005-09-21 22:51:36 +00004656else
4657
4658cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004659#define size_t unsigned int
Cullen Jennings235513a2005-09-21 22:51:36 +00004660_ACEOF
4661
4662fi
4663
4664
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00004665for ac_func in socket inet_aton usleep sigaction
jfigusc7e66e32013-05-08 11:32:55 -04004666do :
4667 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4668ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4669if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004670 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004671#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00004672_ACEOF
4673
4674fi
4675done
4676
4677
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004678if test "x$ac_cv_func_socket" = "xno"; then
jfigusc7e66e32013-05-08 11:32:55 -04004679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4680$as_echo_n "checking for socket in -lsocket... " >&6; }
4681if ${ac_cv_lib_socket_socket+:} false; then :
4682 $as_echo_n "(cached) " >&6
David McGrewb67061f2005-09-28 14:23:06 +00004683else
4684 ac_check_lib_save_LIBS=$LIBS
4685LIBS="-lsocket $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04004686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004687/* end confdefs.h. */
4688
jfigusc7e66e32013-05-08 11:32:55 -04004689/* Override any GCC internal prototype to avoid an error.
4690 Use char because int might match the return type of a GCC
4691 builtin and then its argument prototype would still apply. */
David McGrewb67061f2005-09-28 14:23:06 +00004692#ifdef __cplusplus
4693extern "C"
4694#endif
David McGrewb67061f2005-09-28 14:23:06 +00004695char socket ();
4696int
4697main ()
4698{
jfigusc7e66e32013-05-08 11:32:55 -04004699return socket ();
David McGrewb67061f2005-09-28 14:23:06 +00004700 ;
4701 return 0;
4702}
4703_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004704if ac_fn_c_try_link "$LINENO"; then :
David McGrewb67061f2005-09-28 14:23:06 +00004705 ac_cv_lib_socket_socket=yes
4706else
jfigusc7e66e32013-05-08 11:32:55 -04004707 ac_cv_lib_socket_socket=no
David McGrewb67061f2005-09-28 14:23:06 +00004708fi
jfigusc7e66e32013-05-08 11:32:55 -04004709rm -f core conftest.err conftest.$ac_objext \
4710 conftest$ac_exeext conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004711LIBS=$ac_check_lib_save_LIBS
4712fi
jfigusc7e66e32013-05-08 11:32:55 -04004713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4714$as_echo "$ac_cv_lib_socket_socket" >&6; }
4715if test "x$ac_cv_lib_socket_socket" = xyes; then :
David McGrewb67061f2005-09-28 14:23:06 +00004716 cat >>confdefs.h <<_ACEOF
4717#define HAVE_LIBSOCKET 1
4718_ACEOF
4719
4720 LIBS="-lsocket $LIBS"
4721
4722fi
4723
jfigusc7e66e32013-05-08 11:32:55 -04004724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
4725$as_echo_n "checking for socket in -lwsock32... " >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004726 SAVELIBS="$LIBS"
4727 LIBS="$LIBS -lwsock32"
jfigusc7e66e32013-05-08 11:32:55 -04004728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004729/* end confdefs.h. */
4730
4731#include <winsock2.h>
4732
4733int
4734main ()
4735{
4736
4737socket(0, 0, 0);
4738
4739 ;
4740 return 0;
4741}
4742_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004743if ac_fn_c_try_link "$LINENO"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004744 ac_cv_func_socket=yes
jfigusc7e66e32013-05-08 11:32:55 -04004745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4746$as_echo "yes" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004747else
jfigusc7e66e32013-05-08 11:32:55 -04004748 LIBS="$SAVELIBS"
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4750$as_echo "no" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004751fi
jfigusc7e66e32013-05-08 11:32:55 -04004752rm -f core conftest.err conftest.$ac_objext \
4753 conftest$ac_exeext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004754fi
David McGrewb67061f2005-09-28 14:23:06 +00004755
jfigusc7e66e32013-05-08 11:32:55 -04004756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debugging" >&5
4757$as_echo_n "checking whether to compile in debugging... " >&6; }
4758# Check whether --enable-debug was given.
4759if test "${enable_debug+set}" = set; then :
4760 enableval=$enable_debug;
David McGrewb67061f2005-09-28 14:23:06 +00004761else
4762 enable_debug=yes
jfigusc7e66e32013-05-08 11:32:55 -04004763fi
4764
David McGrewb67061f2005-09-28 14:23:06 +00004765if test "$enable_debug" = "yes"; then
4766
jfigusc7e66e32013-05-08 11:32:55 -04004767$as_echo "#define ENABLE_DEBUGGING 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004768
4769fi
jfigusc7e66e32013-05-08 11:32:55 -04004770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
4771$as_echo "$enable_debug" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004772
jfigusc7e66e32013-05-08 11:32:55 -04004773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ISMAcryp code" >&5
4774$as_echo_n "checking whether to use ISMAcryp code... " >&6; }
4775# Check whether --enable-generic-aesicm was given.
4776if test "${enable_generic_aesicm+set}" = set; then :
4777 enableval=$enable_generic_aesicm;
David McGrewb67061f2005-09-28 14:23:06 +00004778else
4779 enable_generic_aesicm=no
jfigusc7e66e32013-05-08 11:32:55 -04004780fi
4781
David McGrewb67061f2005-09-28 14:23:06 +00004782if test "$enable_generic_aesicm" = "yes"; then
4783
jfigusc7e66e32013-05-08 11:32:55 -04004784$as_echo "#define GENERIC_AESICM 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04004785
jfigusa14b5a02013-03-29 12:24:12 -04004786fi
jfigusc7e66e32013-05-08 11:32:55 -04004787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generic_aesicm" >&5
4788$as_echo "$enable_generic_aesicm" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04004789
jfigusc7e66e32013-05-08 11:32:55 -04004790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
4791$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
4792# Check whether --enable-openssl was given.
4793if test "${enable_openssl+set}" = set; then :
4794 enableval=$enable_openssl;
4795else
4796 enable_openssl=no
4797fi
jfigusa14b5a02013-03-29 12:24:12 -04004798
jfigus2b486652014-07-24 15:01:41 -04004799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
4800$as_echo "$enable_openssl" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04004801if test "$enable_openssl" = "yes"; then
Sean Brightbfb9e302014-03-24 20:45:17 -04004802 LDFLAGS="$LDFLAGS $(pkg-config --libs openssl)";
4803 CFLAGS="$CFLAGS $(pkg-config --cflags openssl)";
Cullen Jenningse1de50f2013-05-22 12:27:28 -06004804
jfigusc7e66e32013-05-08 11:32:55 -04004805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
4806$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
4807if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
4808 $as_echo_n "(cached) " >&6
4809else
4810 ac_check_lib_save_LIBS=$LIBS
4811LIBS="-lcrypto $LIBS"
4812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813/* end confdefs.h. */
4814
4815/* Override any GCC internal prototype to avoid an error.
4816 Use char because int might match the return type of a GCC
4817 builtin and then its argument prototype would still apply. */
4818#ifdef __cplusplus
4819extern "C"
4820#endif
4821char EVP_EncryptInit ();
4822int
4823main ()
4824{
4825return EVP_EncryptInit ();
4826 ;
4827 return 0;
4828}
4829_ACEOF
4830if ac_fn_c_try_link "$LINENO"; then :
4831 ac_cv_lib_crypto_EVP_EncryptInit=yes
4832else
4833 ac_cv_lib_crypto_EVP_EncryptInit=no
4834fi
4835rm -f core conftest.err conftest.$ac_objext \
4836 conftest$ac_exeext conftest.$ac_ext
4837LIBS=$ac_check_lib_save_LIBS
4838fi
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
4840$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
4841if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
4842 cat >>confdefs.h <<_ACEOF
4843#define HAVE_LIBCRYPTO 1
4844_ACEOF
4845
4846 LIBS="-lcrypto $LIBS"
4847
4848else
4849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
jfigus5b22e372013-05-09 09:23:26 -04004851as_fn_error $? "can't find openssl >1.0.1 crypto lib
4852See \`config.log' for more details" "$LINENO" 5; }
4853fi
4854
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_ctr in -lcrypto" >&5
4856$as_echo_n "checking for EVP_aes_128_ctr in -lcrypto... " >&6; }
4857if ${ac_cv_lib_crypto_EVP_aes_128_ctr+:} false; then :
4858 $as_echo_n "(cached) " >&6
4859else
4860 ac_check_lib_save_LIBS=$LIBS
4861LIBS="-lcrypto $LIBS"
4862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863/* end confdefs.h. */
4864
4865/* Override any GCC internal prototype to avoid an error.
4866 Use char because int might match the return type of a GCC
4867 builtin and then its argument prototype would still apply. */
4868#ifdef __cplusplus
4869extern "C"
4870#endif
4871char EVP_aes_128_ctr ();
4872int
4873main ()
4874{
4875return EVP_aes_128_ctr ();
4876 ;
4877 return 0;
4878}
4879_ACEOF
4880if ac_fn_c_try_link "$LINENO"; then :
4881 ac_cv_lib_crypto_EVP_aes_128_ctr=yes
4882else
4883 ac_cv_lib_crypto_EVP_aes_128_ctr=no
4884fi
4885rm -f core conftest.err conftest.$ac_objext \
4886 conftest$ac_exeext conftest.$ac_ext
4887LIBS=$ac_check_lib_save_LIBS
4888fi
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_ctr" >&5
4890$as_echo "$ac_cv_lib_crypto_EVP_aes_128_ctr" >&6; }
4891if test "x$ac_cv_lib_crypto_EVP_aes_128_ctr" = xyes; then :
4892 cat >>confdefs.h <<_ACEOF
4893#define HAVE_LIBCRYPTO 1
4894_ACEOF
4895
4896 LIBS="-lcrypto $LIBS"
4897
4898else
4899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4901as_fn_error $? "can't find openssl >1.0.1 crypto lib
jfigusc7e66e32013-05-08 11:32:55 -04004902See \`config.log' for more details" "$LINENO" 5; }
4903fi
4904
jfigus7882dd92013-08-02 16:08:23 -04004905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_gcm in -lcrypto" >&5
4906$as_echo_n "checking for EVP_aes_128_gcm in -lcrypto... " >&6; }
4907if ${ac_cv_lib_crypto_EVP_aes_128_gcm+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909else
4910 ac_check_lib_save_LIBS=$LIBS
4911LIBS="-lcrypto $LIBS"
4912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913/* end confdefs.h. */
4914
4915/* Override any GCC internal prototype to avoid an error.
4916 Use char because int might match the return type of a GCC
4917 builtin and then its argument prototype would still apply. */
4918#ifdef __cplusplus
4919extern "C"
4920#endif
4921char EVP_aes_128_gcm ();
4922int
4923main ()
4924{
4925return EVP_aes_128_gcm ();
4926 ;
4927 return 0;
4928}
4929_ACEOF
4930if ac_fn_c_try_link "$LINENO"; then :
4931 ac_cv_lib_crypto_EVP_aes_128_gcm=yes
4932else
4933 ac_cv_lib_crypto_EVP_aes_128_gcm=no
4934fi
4935rm -f core conftest.err conftest.$ac_objext \
4936 conftest$ac_exeext conftest.$ac_ext
4937LIBS=$ac_check_lib_save_LIBS
4938fi
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_gcm" >&5
4940$as_echo "$ac_cv_lib_crypto_EVP_aes_128_gcm" >&6; }
4941if test "x$ac_cv_lib_crypto_EVP_aes_128_gcm" = xyes; then :
4942 cat >>confdefs.h <<_ACEOF
4943#define HAVE_LIBCRYPTO 1
4944_ACEOF
4945
4946 LIBS="-lcrypto $LIBS"
4947
4948else
4949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4951as_fn_error $? "can't find openssl >1.0.1 crypto lib
4952See \`config.log' for more details" "$LINENO" 5; }
4953fi
4954
jfigusc7e66e32013-05-08 11:32:55 -04004955
4956$as_echo "#define OPENSSL 1" >>confdefs.h
4957
jfigus7882dd92013-08-02 16:08:23 -04004958 AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
jfigusc7e66e32013-05-08 11:32:55 -04004959 RNG_OBJS=rand_source_ossl.o
4960 HMAC_OBJS=crypto/hash/hmac_ossl.o
4961 USE_OPENSSL=1
4962
4963else
jfigusa3127b82014-11-19 14:46:52 -05004964 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o"
jfigus7882dd92013-08-02 16:08:23 -04004965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random device to use" >&5
4966$as_echo_n "checking which random device to use... " >&6; }
jfigusa6cf2082014-11-21 10:04:03 -05004967 RNG_OBJS=rand_source.o
4968 if test -n "$DEV_URANDOM"; then
jfigusc7e66e32013-05-08 11:32:55 -04004969
4970cat >>confdefs.h <<_ACEOF
4971#define DEV_URANDOM "$DEV_URANDOM"
4972_ACEOF
4973
jfigusa6cf2082014-11-21 10:04:03 -05004974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_URANDOM" >&5
jfigusc7e66e32013-05-08 11:32:55 -04004975$as_echo "$DEV_URANDOM" >&6; }
jfigusa6cf2082014-11-21 10:04:03 -05004976 else
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: standard rand() function..." >&5
jfigusc7e66e32013-05-08 11:32:55 -04004978$as_echo "standard rand() function..." >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04004979 fi
jfigusc7e66e32013-05-08 11:32:55 -04004980 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
4981fi
4982
4983
4984
4985
Bernardo Torres79e38ae2014-10-10 05:29:36 -03004986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
4987$as_echo_n "checking for pcap_create in -lpcap... " >&6; }
4988if ${ac_cv_lib_pcap_pcap_create+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990else
4991 ac_check_lib_save_LIBS=$LIBS
4992LIBS="-lpcap $LIBS"
4993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994/* end confdefs.h. */
4995
4996/* Override any GCC internal prototype to avoid an error.
4997 Use char because int might match the return type of a GCC
4998 builtin and then its argument prototype would still apply. */
4999#ifdef __cplusplus
5000extern "C"
5001#endif
5002char pcap_create ();
5003int
5004main ()
5005{
5006return pcap_create ();
5007 ;
5008 return 0;
5009}
5010_ACEOF
5011if ac_fn_c_try_link "$LINENO"; then :
5012 ac_cv_lib_pcap_pcap_create=yes
5013else
5014 ac_cv_lib_pcap_pcap_create=no
5015fi
5016rm -f core conftest.err conftest.$ac_objext \
5017 conftest$ac_exeext conftest.$ac_ext
5018LIBS=$ac_check_lib_save_LIBS
5019fi
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
5021$as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
5022if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
Bernardo Torresb3c51422014-10-14 12:40:09 -03005023 PCAP=1
5024 LIBS="-lpcap $LIBS"
5025 HAVE_PCAP=1
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005026
Bernardo Torresb3c51422014-10-14 12:40:09 -03005027$as_echo "#define HAVE_PCAP 1" >>confdefs.h
5028
5029
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005030
5031fi
5032
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005033
jfigusc7e66e32013-05-08 11:32:55 -04005034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use stdout for error reporting" >&5
5035$as_echo_n "checking whether to use stdout for error reporting... " >&6; }
5036# Check whether --enable-stdout was given.
5037if test "${enable_stdout+set}" = set; then :
5038 enableval=$enable_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00005039else
jfigus97a80f42014-11-04 14:15:40 -05005040 enable_stdout=no
jfigusc7e66e32013-05-08 11:32:55 -04005041fi
5042
David McGrewb67061f2005-09-28 14:23:06 +00005043if test "$enable_stdout" = "yes"; then
5044
jfigusc7e66e32013-05-08 11:32:55 -04005045$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005046
5047fi
jfigusc7e66e32013-05-08 11:32:55 -04005048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdout" >&5
5049$as_echo "$enable_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005050
jfigusc7e66e32013-05-08 11:32:55 -04005051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use /dev/console for error reporting" >&5
5052$as_echo_n "checking whether to use /dev/console for error reporting... " >&6; }
5053# Check whether --enable-console was given.
5054if test "${enable_console+set}" = set; then :
5055 enableval=$enable_console;
David McGrewb67061f2005-09-28 14:23:06 +00005056else
5057 enable_console=no
jfigusc7e66e32013-05-08 11:32:55 -04005058fi
5059
David McGrewb67061f2005-09-28 14:23:06 +00005060if test "$enable_console" = "yes"; then
5061
jfigusc7e66e32013-05-08 11:32:55 -04005062$as_echo "#define USE_ERR_REPORTING_FILE 1" >>confdefs.h
David McGrewb67061f2005-09-28 14:23:06 +00005063
5064
jfigusc7e66e32013-05-08 11:32:55 -04005065$as_echo "#define ERR_REPORTING_FILE \"/dev/console\"" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005066
5067fi
jfigusc7e66e32013-05-08 11:32:55 -04005068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_console" >&5
5069$as_echo "$enable_console" >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00005070
jfigusc7e66e32013-05-08 11:32:55 -04005071ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00005072
5073
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005074# Extract the first word of "pkg-config", so it can be a program name with args.
5075set dummy pkg-config; ac_word=$2
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077$as_echo_n "checking for $ac_word... " >&6; }
5078if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080else
5081 if test -n "$PKG_CONFIG"; then
5082 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5083else
5084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085for as_dir in $PATH
5086do
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091 ac_cv_prog_PKG_CONFIG="yes"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 break 2
5094 fi
5095done
5096 done
5097IFS=$as_save_IFS
5098
5099fi
5100fi
5101PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5102if test -n "$PKG_CONFIG"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5104$as_echo "$PKG_CONFIG" >&6; }
5105else
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107$as_echo "no" >&6; }
5108fi
5109
5110
5111if test "x$PKG_CONFIG" != "x"; then
5112 HAVE_PKG_CONFIG=1
jfigusd196e022014-11-20 16:43:44 -05005113 ac_config_files="$ac_config_files libsrtp2.pc"
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005114
5115else
5116 HAVE_PKG_CONFIG=0
5117fi
5118
jfigusc7e66e32013-05-08 11:32:55 -04005119ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile"
5120
Cullen Jennings235513a2005-09-21 22:51:36 +00005121cat >confcache <<\_ACEOF
5122# This file is a shell script that caches the results of configure
5123# tests run on this system so they can be shared between configure
5124# scripts and configure runs, see configure's option --config-cache.
5125# It is not useful on other systems. If it contains results you don't
5126# want to keep, you may remove or edit it.
5127#
5128# config.status only pays attention to the cache file if you give it
5129# the --recheck option to rerun configure.
5130#
5131# `ac_cv_env_foo' variables (set or unset) will be overridden when
5132# loading this file, other *unset* `ac_cv_foo' will be assigned the
5133# following values.
5134
5135_ACEOF
5136
5137# The following way of writing the cache mishandles newlines in values,
5138# but we know of no workaround that is simple, portable, and efficient.
jfigusc7e66e32013-05-08 11:32:55 -04005139# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00005140# Ultrix sh set writes to stderr and can't be redirected directly,
5141# and sets the high bit in the cache file unless we assign to the vars.
jfigusc7e66e32013-05-08 11:32:55 -04005142(
5143 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5144 eval ac_val=\$$ac_var
5145 case $ac_val in #(
5146 *${as_nl}*)
5147 case $ac_var in #(
5148 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5149$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5150 esac
5151 case $ac_var in #(
5152 _ | IFS | as_nl) ;; #(
5153 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5154 *) { eval $ac_var=; unset $ac_var;} ;;
5155 esac ;;
5156 esac
5157 done
5158
Cullen Jennings235513a2005-09-21 22:51:36 +00005159 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04005160 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5161 *${as_nl}ac_space=\ *)
5162 # `set' does not quote correctly, so add quotes: double-quote
5163 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00005164 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00005165 "s/'/'\\\\''/g;
5166 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusc7e66e32013-05-08 11:32:55 -04005167 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00005168 *)
5169 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusc7e66e32013-05-08 11:32:55 -04005170 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00005171 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005172 esac |
5173 sort
5174) |
Cullen Jennings235513a2005-09-21 22:51:36 +00005175 sed '
jfigusc7e66e32013-05-08 11:32:55 -04005176 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00005177 t clear
jfigusc7e66e32013-05-08 11:32:55 -04005178 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00005179 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5180 t end
jfigusc7e66e32013-05-08 11:32:55 -04005181 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5182 :end' >>confcache
5183if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5184 if test -w "$cache_file"; then
5185 if test "x$cache_file" != "x/dev/null"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5187$as_echo "$as_me: updating cache $cache_file" >&6;}
5188 if test ! -f "$cache_file" || test -h "$cache_file"; then
5189 cat confcache >"$cache_file"
5190 else
5191 case $cache_file in #(
5192 */* | ?:*)
5193 mv -f confcache "$cache_file"$$ &&
5194 mv -f "$cache_file"$$ "$cache_file" ;; #(
5195 *)
5196 mv -f confcache "$cache_file" ;;
5197 esac
5198 fi
5199 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005200 else
jfigusc7e66e32013-05-08 11:32:55 -04005201 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5202$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00005203 fi
5204fi
5205rm -f confcache
5206
5207test "x$prefix" = xNONE && prefix=$ac_default_prefix
5208# Let make expand exec_prefix.
5209test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5210
Cullen Jennings235513a2005-09-21 22:51:36 +00005211DEFS=-DHAVE_CONFIG_H
5212
5213ac_libobjs=
5214ac_ltlibobjs=
jfigusc7e66e32013-05-08 11:32:55 -04005215U=
Cullen Jennings235513a2005-09-21 22:51:36 +00005216for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5217 # 1. Remove the extension, and $U if already installed.
jfigusc7e66e32013-05-08 11:32:55 -04005218 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5219 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5220 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5221 # will be set to the directory where LIBOBJS objects are built.
5222 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5223 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00005224done
5225LIBOBJS=$ac_libobjs
5226
5227LTLIBOBJS=$ac_ltlibobjs
5228
5229
5230
jfigusc7e66e32013-05-08 11:32:55 -04005231
5232: "${CONFIG_STATUS=./config.status}"
5233ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00005234ac_clean_files_save=$ac_clean_files
5235ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusc7e66e32013-05-08 11:32:55 -04005236{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5237$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5238as_write_fail=0
5239cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005240#! $SHELL
5241# Generated by $as_me.
5242# Run this file to recreate the current configuration.
5243# Compiler output produced by configure, useful for debugging
5244# configure, is in config.log if it exists.
5245
5246debug=false
5247ac_cs_recheck=false
5248ac_cs_silent=false
jfigusc7e66e32013-05-08 11:32:55 -04005249
Cullen Jennings235513a2005-09-21 22:51:36 +00005250SHELL=\${CONFIG_SHELL-$SHELL}
jfigusc7e66e32013-05-08 11:32:55 -04005251export SHELL
5252_ASEOF
5253cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5254## -------------------- ##
5255## M4sh Initialization. ##
5256## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00005257
jfigusc7e66e32013-05-08 11:32:55 -04005258# Be more Bourne compatible
5259DUALCASE=1; export DUALCASE # for MKS sh
5260if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005261 emulate sh
5262 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -04005263 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00005264 # is contrary to our usage. Disable this feature.
5265 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -04005266 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00005267else
jfigusc7e66e32013-05-08 11:32:55 -04005268 case `(set -o) 2>/dev/null` in #(
5269 *posix*) :
5270 set -o posix ;; #(
5271 *) :
5272 ;;
5273esac
Cullen Jennings235513a2005-09-21 22:51:36 +00005274fi
5275
5276
jfigusc7e66e32013-05-08 11:32:55 -04005277as_nl='
5278'
5279export as_nl
5280# Printing a long string crashes Solaris 7 /usr/bin/printf.
5281as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5282as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5283as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5284# Prefer a ksh shell builtin over an external printf program on Solaris,
5285# but without wasting forks for bash or zsh.
5286if test -z "$BASH_VERSION$ZSH_VERSION" \
5287 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5288 as_echo='print -r --'
5289 as_echo_n='print -rn --'
5290elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5291 as_echo='printf %s\n'
5292 as_echo_n='printf %s'
5293else
5294 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5295 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5296 as_echo_n='/usr/ucb/echo -n'
5297 else
5298 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5299 as_echo_n_body='eval
5300 arg=$1;
5301 case $arg in #(
5302 *"$as_nl"*)
5303 expr "X$arg" : "X\\(.*\\)$as_nl";
5304 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5305 esac;
5306 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5307 '
5308 export as_echo_n_body
5309 as_echo_n='sh -c $as_echo_n_body as_echo'
5310 fi
5311 export as_echo_body
5312 as_echo='sh -c $as_echo_body as_echo'
5313fi
5314
5315# The user is always right.
5316if test "${PATH_SEPARATOR+set}" != set; then
5317 PATH_SEPARATOR=:
5318 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5319 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5320 PATH_SEPARATOR=';'
5321 }
5322fi
5323
5324
5325# IFS
5326# We need space, tab and new line, in precisely that order. Quoting is
5327# there to prevent editors from complaining about space-tab.
5328# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5329# splitting by setting IFS to empty value.)
5330IFS=" "" $as_nl"
5331
5332# Find who we are. Look in the path if we contain no directory separator.
5333as_myself=
5334case $0 in #((
5335 *[\\/]* ) as_myself=$0 ;;
5336 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337for as_dir in $PATH
5338do
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5341 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5342 done
5343IFS=$as_save_IFS
5344
5345 ;;
5346esac
5347# We did not find ourselves, most probably we were run as `sh COMMAND'
5348# in which case we are not to be found in the path.
5349if test "x$as_myself" = x; then
5350 as_myself=$0
5351fi
5352if test ! -f "$as_myself"; then
5353 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5354 exit 1
5355fi
5356
5357# Unset variables that we do not need and which cause bugs (e.g. in
5358# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5359# suppresses any "Segmentation fault" message there. '((' could
5360# trigger a bug in pdksh 5.2.14.
5361for as_var in BASH_ENV ENV MAIL MAILPATH
5362do eval test x\${$as_var+set} = xset \
5363 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5364done
Cullen Jennings235513a2005-09-21 22:51:36 +00005365PS1='$ '
5366PS2='> '
5367PS4='+ '
5368
5369# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -04005370LC_ALL=C
5371export LC_ALL
5372LANGUAGE=C
5373export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -04005374
jfigusc7e66e32013-05-08 11:32:55 -04005375# CDPATH.
5376(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5377
5378
5379# as_fn_error STATUS ERROR [LINENO LOG_FD]
5380# ----------------------------------------
5381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5383# script with STATUS, using 1 if that was 0.
5384as_fn_error ()
5385{
5386 as_status=$1; test $as_status -eq 0 && as_status=1
5387 if test "$4"; then
5388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5390 fi
5391 $as_echo "$as_me: error: $2" >&2
5392 as_fn_exit $as_status
5393} # as_fn_error
5394
5395
5396# as_fn_set_status STATUS
5397# -----------------------
5398# Set $? to STATUS, without forking.
5399as_fn_set_status ()
5400{
5401 return $1
5402} # as_fn_set_status
5403
5404# as_fn_exit STATUS
5405# -----------------
5406# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5407as_fn_exit ()
5408{
5409 set +e
5410 as_fn_set_status $1
5411 exit $1
5412} # as_fn_exit
5413
5414# as_fn_unset VAR
5415# ---------------
5416# Portably unset VAR.
5417as_fn_unset ()
5418{
5419 { eval $1=; unset $1;}
5420}
5421as_unset=as_fn_unset
5422# as_fn_append VAR VALUE
5423# ----------------------
5424# Append the text in VALUE to the end of the definition contained in VAR. Take
5425# advantage of any shell optimizations that allow amortized linear growth over
5426# repeated appends, instead of the typical quadratic growth present in naive
5427# implementations.
5428if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5429 eval 'as_fn_append ()
5430 {
5431 eval $1+=\$2
5432 }'
5433else
5434 as_fn_append ()
5435 {
5436 eval $1=\$$1\$2
5437 }
5438fi # as_fn_append
5439
5440# as_fn_arith ARG...
5441# ------------------
5442# Perform arithmetic evaluation on the ARGs, and store the result in the
5443# global $as_val. Take advantage of shells that can avoid forks. The arguments
5444# must be portable across $(()) and expr.
5445if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5446 eval 'as_fn_arith ()
5447 {
5448 as_val=$(( $* ))
5449 }'
5450else
5451 as_fn_arith ()
5452 {
5453 as_val=`expr "$@" || test $? -eq 1`
5454 }
5455fi # as_fn_arith
5456
5457
5458if expr a : '\(a\)' >/dev/null 2>&1 &&
5459 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005460 as_expr=expr
5461else
5462 as_expr=false
5463fi
5464
jfigusc7e66e32013-05-08 11:32:55 -04005465if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005466 as_basename=basename
5467else
5468 as_basename=false
5469fi
5470
jfigusc7e66e32013-05-08 11:32:55 -04005471if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5472 as_dirname=dirname
5473else
5474 as_dirname=false
5475fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005476
jfigusc7e66e32013-05-08 11:32:55 -04005477as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00005478$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5479 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04005480 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5481$as_echo X/"$0" |
5482 sed '/^.*\/\([^/][^/]*\)\/*$/{
5483 s//\1/
5484 q
5485 }
5486 /^X\/\(\/\/\)$/{
5487 s//\1/
5488 q
5489 }
5490 /^X\/\(\/\).*/{
5491 s//\1/
5492 q
5493 }
5494 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005495
Cullen Jennings235513a2005-09-21 22:51:36 +00005496# Avoid depending upon Character Ranges.
5497as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5498as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5499as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5500as_cr_digits='0123456789'
5501as_cr_alnum=$as_cr_Letters$as_cr_digits
5502
jfigusc7e66e32013-05-08 11:32:55 -04005503ECHO_C= ECHO_N= ECHO_T=
5504case `echo -n x` in #(((((
5505-n*)
5506 case `echo 'xy\c'` in
5507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5508 xy) ECHO_C='\c';;
5509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5510 ECHO_T=' ';;
5511 esac;;
5512*)
5513 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00005514esac
5515
Cullen Jennings235513a2005-09-21 22:51:36 +00005516rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -04005517if test -d conf$$.dir; then
5518 rm -f conf$$.dir/conf$$.file
5519else
5520 rm -f conf$$.dir
5521 mkdir conf$$.dir 2>/dev/null
5522fi
5523if (echo >conf$$.file) 2>/dev/null; then
5524 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005525 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -04005526 # ... but there are two gotchas:
5527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5529 # In both cases, we have to default to `cp -pR'.
5530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5531 as_ln_s='cp -pR'
5532 elif ln conf$$.file conf$$ 2>/dev/null; then
5533 as_ln_s=ln
5534 else
5535 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005536 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005537else
jfigusc7e66e32013-05-08 11:32:55 -04005538 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005539fi
jfigusc7e66e32013-05-08 11:32:55 -04005540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5541rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00005542
jfigusc7e66e32013-05-08 11:32:55 -04005543
5544# as_fn_mkdir_p
5545# -------------
5546# Create "$as_dir" as a directory, including parents if necessary.
5547as_fn_mkdir_p ()
5548{
5549
5550 case $as_dir in #(
5551 -*) as_dir=./$as_dir;;
5552 esac
5553 test -d "$as_dir" || eval $as_mkdir_p || {
5554 as_dirs=
5555 while :; do
5556 case $as_dir in #(
5557 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5558 *) as_qdir=$as_dir;;
5559 esac
5560 as_dirs="'$as_qdir' $as_dirs"
5561 as_dir=`$as_dirname -- "$as_dir" ||
5562$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5563 X"$as_dir" : 'X\(//\)[^/]' \| \
5564 X"$as_dir" : 'X\(//\)$' \| \
5565 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5566$as_echo X"$as_dir" |
5567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5568 s//\1/
5569 q
5570 }
5571 /^X\(\/\/\)[^/].*/{
5572 s//\1/
5573 q
5574 }
5575 /^X\(\/\/\)$/{
5576 s//\1/
5577 q
5578 }
5579 /^X\(\/\).*/{
5580 s//\1/
5581 q
5582 }
5583 s/.*/./; q'`
5584 test -d "$as_dir" && break
5585 done
5586 test -z "$as_dirs" || eval "mkdir $as_dirs"
5587 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5588
5589
5590} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005591if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -04005592 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00005593else
David McGrewfec49dd2005-09-23 19:34:11 +00005594 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00005595 as_mkdir_p=false
5596fi
5597
jfigusc7e66e32013-05-08 11:32:55 -04005598
5599# as_fn_executable_p FILE
5600# -----------------------
5601# Test if FILE is an executable regular file.
5602as_fn_executable_p ()
5603{
5604 test -f "$1" && test -x "$1"
5605} # as_fn_executable_p
5606as_test_x='test -x'
5607as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005608
5609# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00005610as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005611
5612# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00005613as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005614
5615
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005616exec 6>&1
jfigusc7e66e32013-05-08 11:32:55 -04005617## ----------------------------------- ##
5618## Main body of $CONFIG_STATUS script. ##
5619## ----------------------------------- ##
5620_ASEOF
5621test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005622
jfigusc7e66e32013-05-08 11:32:55 -04005623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5624# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00005625# report actual input values of CONFIG_FILES etc. instead of their
jfigusc7e66e32013-05-08 11:32:55 -04005626# values after options handling.
5627ac_log="
jfigusd196e022014-11-20 16:43:44 -05005628This file was extended by libsrtp2 $as_me 2.0.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04005629generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00005630
5631 CONFIG_FILES = $CONFIG_FILES
5632 CONFIG_HEADERS = $CONFIG_HEADERS
5633 CONFIG_LINKS = $CONFIG_LINKS
5634 CONFIG_COMMANDS = $CONFIG_COMMANDS
5635 $ $0 $@
5636
jfigusc7e66e32013-05-08 11:32:55 -04005637on `(hostname || uname -n) 2>/dev/null | sed 1q`
5638"
5639
Cullen Jennings235513a2005-09-21 22:51:36 +00005640_ACEOF
5641
jfigusc7e66e32013-05-08 11:32:55 -04005642case $ac_config_files in *"
5643"*) set x $ac_config_files; shift; ac_config_files=$*;;
5644esac
5645
5646case $ac_config_headers in *"
5647"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5648esac
5649
5650
5651cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005652# Files that config.status was made for.
jfigusc7e66e32013-05-08 11:32:55 -04005653config_files="$ac_config_files"
5654config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00005655
jfigusc7e66e32013-05-08 11:32:55 -04005656_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005657
jfigusc7e66e32013-05-08 11:32:55 -04005658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005659ac_cs_usage="\
jfigusc7e66e32013-05-08 11:32:55 -04005660\`$as_me' instantiates files and other configuration actions
5661from templates according to the current configuration. Unless the files
5662and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00005663
jfigusc7e66e32013-05-08 11:32:55 -04005664Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00005665
5666 -h, --help print this help, then exit
jfigusc7e66e32013-05-08 11:32:55 -04005667 -V, --version print version number and configuration settings, then exit
5668 --config print configuration, then exit
5669 -q, --quiet, --silent
5670 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00005671 -d, --debug don't remove temporary files
5672 --recheck update $as_me by reconfiguring in the same conditions
jfigusc7e66e32013-05-08 11:32:55 -04005673 --file=FILE[:TEMPLATE]
5674 instantiate the configuration file FILE
5675 --header=FILE[:TEMPLATE]
5676 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00005677
5678Configuration files:
5679$config_files
5680
5681Configuration headers:
5682$config_headers
5683
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005684Report bugs to <https://github.com/cisco/libsrtp/issues>."
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005685
jfigusc7e66e32013-05-08 11:32:55 -04005686_ACEOF
5687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5688ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00005689ac_cs_version="\\
jfigusd196e022014-11-20 16:43:44 -05005690libsrtp2 config.status 2.0.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04005691configured by $0, generated by GNU Autoconf 2.69,
5692 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00005693
jfigusc7e66e32013-05-08 11:32:55 -04005694Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00005695This config.status script is free software; the Free Software Foundation
5696gives unlimited permission to copy, distribute and modify it."
jfigusc7e66e32013-05-08 11:32:55 -04005697
5698ac_pwd='$ac_pwd'
5699srcdir='$srcdir'
5700INSTALL='$INSTALL'
5701test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00005702_ACEOF
5703
jfigusc7e66e32013-05-08 11:32:55 -04005704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5705# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00005706ac_need_defaults=:
5707while test $# != 0
5708do
5709 case $1 in
jfigusc7e66e32013-05-08 11:32:55 -04005710 --*=?*)
5711 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5712 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005713 ac_shift=:
5714 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005715 --*=)
5716 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5717 ac_optarg=
5718 ac_shift=:
5719 ;;
5720 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00005721 ac_option=$1
5722 ac_optarg=$2
5723 ac_shift=shift
5724 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005725 esac
5726
5727 case $ac_option in
5728 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00005729 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5730 ac_cs_recheck=: ;;
jfigusc7e66e32013-05-08 11:32:55 -04005731 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5732 $as_echo "$ac_cs_version"; exit ;;
5733 --config | --confi | --conf | --con | --co | --c )
5734 $as_echo "$ac_cs_config"; exit ;;
5735 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00005736 debug=: ;;
5737 --file | --fil | --fi | --f )
5738 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04005739 case $ac_optarg in
5740 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5741 '') as_fn_error $? "missing file argument" ;;
5742 esac
5743 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005744 ac_need_defaults=false;;
5745 --header | --heade | --head | --hea )
5746 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04005747 case $ac_optarg in
5748 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5749 esac
5750 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005751 ac_need_defaults=false;;
jfigusc7e66e32013-05-08 11:32:55 -04005752 --he | --h)
5753 # Conflict between --help and --header
5754 as_fn_error $? "ambiguous option: \`$1'
5755Try \`$0 --help' for more information.";;
5756 --help | --hel | -h )
5757 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005758 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5759 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5760 ac_cs_silent=: ;;
5761
5762 # This is an error.
jfigusc7e66e32013-05-08 11:32:55 -04005763 -*) as_fn_error $? "unrecognized option: \`$1'
5764Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005765
jfigusc7e66e32013-05-08 11:32:55 -04005766 *) as_fn_append ac_config_targets " $1"
5767 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005768
5769 esac
5770 shift
5771done
5772
5773ac_configure_extra_args=
5774
5775if $ac_cs_silent; then
5776 exec 6>/dev/null
5777 ac_configure_extra_args="$ac_configure_extra_args --silent"
5778fi
5779
5780_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005781cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005782if \$ac_cs_recheck; then
jfigusc7e66e32013-05-08 11:32:55 -04005783 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5784 shift
5785 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5786 CONFIG_SHELL='$SHELL'
5787 export CONFIG_SHELL
5788 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00005789fi
5790
5791_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5793exec 5>>config.log
5794{
5795 echo
5796 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5797## Running $as_me. ##
5798_ASBOX
5799 $as_echo "$ac_log"
5800} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00005801
jfigusc7e66e32013-05-08 11:32:55 -04005802_ACEOF
5803cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5804_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005805
jfigusc7e66e32013-05-08 11:32:55 -04005806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005807
jfigusc7e66e32013-05-08 11:32:55 -04005808# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00005809for ac_config_target in $ac_config_targets
5810do
jfigusc7e66e32013-05-08 11:32:55 -04005811 case $ac_config_target in
5812 "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
jfigusd196e022014-11-20 16:43:44 -05005813 "libsrtp2.pc") CONFIG_FILES="$CONFIG_FILES libsrtp2.pc" ;;
jfigusc7e66e32013-05-08 11:32:55 -04005814 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5815 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
5816 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5817
5818 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005819 esac
5820done
5821
jfigusc7e66e32013-05-08 11:32:55 -04005822
Cullen Jennings235513a2005-09-21 22:51:36 +00005823# If the user did not use the arguments to specify the items to instantiate,
5824# then the envvar interface is used. Set only those that are not.
5825# We use the long form for the default assignment because of an extremely
5826# bizarre bug on SunOS 4.1.3.
5827if $ac_need_defaults; then
5828 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5829 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5830fi
5831
5832# Have a temporary directory for convenience. Make it in the build tree
jfigusc7e66e32013-05-08 11:32:55 -04005833# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00005834# creating and moving files from /tmp can sometimes cause problems.
jfigusc7e66e32013-05-08 11:32:55 -04005835# Hook for its removal unless debugging.
5836# Note that there is a small window in which the directory will not be cleaned:
5837# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00005838$debug ||
5839{
jfigusc7e66e32013-05-08 11:32:55 -04005840 tmp= ac_tmp=
5841 trap 'exit_status=$?
5842 : "${ac_tmp:=$tmp}"
5843 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5844' 0
5845 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00005846}
Cullen Jennings235513a2005-09-21 22:51:36 +00005847# Create a (secure) tmp directory for tmp files.
5848
5849{
jfigusc7e66e32013-05-08 11:32:55 -04005850 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5851 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00005852} ||
5853{
jfigusc7e66e32013-05-08 11:32:55 -04005854 tmp=./conf$$-$RANDOM
5855 (umask 077 && mkdir "$tmp")
5856} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5857ac_tmp=$tmp
5858
5859# Set up the scripts for CONFIG_FILES section.
5860# No need to generate them if there are no CONFIG_FILES.
5861# This happens for instance with `./config.status config.h'.
5862if test -n "$CONFIG_FILES"; then
5863
5864
5865ac_cr=`echo X | tr X '\015'`
5866# On cygwin, bash can eat \r inside `` if the user requested igncr.
5867# But we know of no other shell where ac_cr would be empty at this
5868# point, so we can use a bashism as a fallback.
5869if test "x$ac_cr" = x; then
5870 eval ac_cr=\$\'\\r\'
5871fi
5872ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5873if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5874 ac_cs_awk_cr='\\r'
5875else
5876 ac_cs_awk_cr=$ac_cr
5877fi
5878
5879echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5880_ACEOF
5881
5882
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005883{
jfigusc7e66e32013-05-08 11:32:55 -04005884 echo "cat >conf$$subs.awk <<_ACEOF" &&
5885 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5886 echo "_ACEOF"
5887} >conf$$subs.sh ||
5888 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5889ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5890ac_delim='%!_!# '
5891for ac_last_try in false false false false false :; do
5892 . ./conf$$subs.sh ||
5893 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5894
5895 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5896 if test $ac_delim_n = $ac_delim_num; then
5897 break
5898 elif $ac_last_try; then
5899 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5900 else
5901 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5902 fi
5903done
5904rm -f conf$$subs.sh
5905
5906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5907cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5908_ACEOF
5909sed -n '
5910h
5911s/^/S["/; s/!.*/"]=/
5912p
5913g
5914s/^[^!]*!//
5915:repl
5916t repl
5917s/'"$ac_delim"'$//
5918t delim
5919:nl
5920h
5921s/\(.\{148\}\)..*/\1/
5922t more1
5923s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5924p
5925n
5926b repl
5927:more1
5928s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5929p
5930g
5931s/.\{148\}//
5932t nl
5933:delim
5934h
5935s/\(.\{148\}\)..*/\1/
5936t more2
5937s/["\\]/\\&/g; s/^/"/; s/$/"/
5938p
5939b
5940:more2
5941s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5942p
5943g
5944s/.\{148\}//
5945t delim
5946' <conf$$subs.awk | sed '
5947/^[^""]/{
5948 N
5949 s/\n//
5950}
5951' >>$CONFIG_STATUS || ac_write_fail=1
5952rm -f conf$$subs.awk
5953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5954_ACAWK
5955cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5956 for (key in S) S_is_set[key] = 1
5957 FS = ""
5958
5959}
5960{
5961 line = $ 0
5962 nfields = split(line, field, "@")
5963 substed = 0
5964 len = length(field[1])
5965 for (i = 2; i < nfields; i++) {
5966 key = field[i]
5967 keylen = length(key)
5968 if (S_is_set[key]) {
5969 value = S[key]
5970 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5971 len += length(value) + length(field[++i])
5972 substed = 1
5973 } else
5974 len += 1 + keylen
5975 }
5976
5977 print line
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005978}
jfigusa14b5a02013-03-29 12:24:12 -04005979
jfigusc7e66e32013-05-08 11:32:55 -04005980_ACAWK
5981_ACEOF
5982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5983if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5984 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5985else
5986 cat
5987fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5988 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
jfigusa14b5a02013-03-29 12:24:12 -04005989_ACEOF
5990
jfigusc7e66e32013-05-08 11:32:55 -04005991# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5992# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5993# trailing colons and then remove the whole line if VPATH becomes empty
5994# (actually we leave an empty line to preserve line numbers).
5995if test "x$srcdir" = x.; then
5996 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5997h
5998s///
5999s/^/:/
6000s/[ ]*$/:/
6001s/:\$(srcdir):/:/g
6002s/:\${srcdir}:/:/g
6003s/:@srcdir@:/:/g
6004s/^:*//
6005s/:*$//
6006x
6007s/\(=[ ]*\).*/\1/
6008G
6009s/\n//
6010s/^[^=]*=[ ]*$//
6011}'
6012fi
jfigusa14b5a02013-03-29 12:24:12 -04006013
jfigusc7e66e32013-05-08 11:32:55 -04006014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006015fi # test -n "$CONFIG_FILES"
6016
jfigusc7e66e32013-05-08 11:32:55 -04006017# Set up the scripts for CONFIG_HEADERS section.
6018# No need to generate them if there are no CONFIG_HEADERS.
6019# This happens for instance with `./config.status Makefile'.
6020if test -n "$CONFIG_HEADERS"; then
6021cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6022BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00006023_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006024
6025# Transform confdefs.h into an awk script `defines.awk', embedded as
6026# here-document in config.status, that substitutes the proper values into
6027# config.h.in to produce config.h.
6028
6029# Create a delimiter string that does not exist in confdefs.h, to ease
6030# handling of long lines.
6031ac_delim='%!_!# '
6032for ac_last_try in false false :; do
6033 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6034 if test -z "$ac_tt"; then
6035 break
6036 elif $ac_last_try; then
6037 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6038 else
6039 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6040 fi
6041done
6042
6043# For the awk script, D is an array of macro values keyed by name,
6044# likewise P contains macro parameters if any. Preserve backslash
6045# newline sequences.
6046
6047ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6048sed -n '
6049s/.\{148\}/&'"$ac_delim"'/g
6050t rset
6051:rset
6052s/^[ ]*#[ ]*define[ ][ ]*/ /
6053t def
6054d
6055:def
6056s/\\$//
6057t bsnl
6058s/["\\]/\\&/g
6059s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6060D["\1"]=" \3"/p
6061s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6062d
6063:bsnl
6064s/["\\]/\\&/g
6065s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6066D["\1"]=" \3\\\\\\n"\\/p
6067t cont
6068s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6069t cont
6070d
6071:cont
6072n
6073s/.\{148\}/&'"$ac_delim"'/g
6074t clear
6075:clear
6076s/\\$//
6077t bsnlc
6078s/["\\]/\\&/g; s/^/"/; s/$/"/p
6079d
6080:bsnlc
6081s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6082b cont
6083' <confdefs.h | sed '
6084s/'"$ac_delim"'/"\\\
6085"/g' >>$CONFIG_STATUS || ac_write_fail=1
6086
6087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6088 for (key in D) D_is_set[key] = 1
6089 FS = ""
6090}
6091/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6092 line = \$ 0
6093 split(line, arg, " ")
6094 if (arg[1] == "#") {
6095 defundef = arg[2]
6096 mac1 = arg[3]
6097 } else {
6098 defundef = substr(arg[1], 2)
6099 mac1 = arg[2]
6100 }
6101 split(mac1, mac2, "(") #)
6102 macro = mac2[1]
6103 prefix = substr(line, 1, index(line, defundef) - 1)
6104 if (D_is_set[macro]) {
6105 # Preserve the white space surrounding the "#".
6106 print prefix "define", macro P[macro] D[macro]
6107 next
6108 } else {
6109 # Replace #undef with comments. This is necessary, for example,
6110 # in the case of _POSIX_SOURCE, which is predefined and required
6111 # on some systems where configure will not decide to define it.
6112 if (defundef == "undef") {
6113 print "/*", prefix defundef, macro, "*/"
6114 next
6115 }
6116 }
6117}
6118{ print }
6119_ACAWK
6120_ACEOF
6121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6122 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6123fi # test -n "$CONFIG_HEADERS"
6124
6125
6126eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6127shift
6128for ac_tag
6129do
6130 case $ac_tag in
6131 :[FHLC]) ac_mode=$ac_tag; continue;;
6132 esac
6133 case $ac_mode$ac_tag in
6134 :[FHL]*:*);;
6135 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6136 :[FH]-) ac_tag=-:-;;
6137 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6138 esac
6139 ac_save_IFS=$IFS
6140 IFS=:
6141 set x $ac_tag
6142 IFS=$ac_save_IFS
6143 shift
6144 ac_file=$1
6145 shift
6146
6147 case $ac_mode in
6148 :L) ac_source=$1;;
6149 :[FH])
6150 ac_file_inputs=
6151 for ac_f
6152 do
6153 case $ac_f in
6154 -) ac_f="$ac_tmp/stdin";;
6155 *) # Look for the file first in the build tree, then in the source tree
6156 # (if the path is not absolute). The absolute path cannot be DOS-style,
6157 # because $ac_f cannot contain `:'.
6158 test -f "$ac_f" ||
6159 case $ac_f in
6160 [\\/$]*) false;;
6161 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6162 esac ||
6163 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6164 esac
6165 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6166 as_fn_append ac_file_inputs " '$ac_f'"
6167 done
6168
6169 # Let's still pretend it is `configure' which instantiates (i.e., don't
6170 # use $as_me), people would be surprised to read:
6171 # /* config.h. Generated by config.status. */
6172 configure_input='Generated from '`
6173 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6174 `' by configure.'
6175 if test x"$ac_file" != x-; then
6176 configure_input="$ac_file. $configure_input"
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6178$as_echo "$as_me: creating $ac_file" >&6;}
6179 fi
6180 # Neutralize special characters interpreted by sed in replacement strings.
6181 case $configure_input in #(
6182 *\&* | *\|* | *\\* )
6183 ac_sed_conf_input=`$as_echo "$configure_input" |
6184 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6185 *) ac_sed_conf_input=$configure_input;;
6186 esac
6187
6188 case $ac_tag in
6189 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6190 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6191 esac
6192 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006193 esac
6194
jfigusc7e66e32013-05-08 11:32:55 -04006195 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006196$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006197 X"$ac_file" : 'X\(//\)[^/]' \| \
6198 X"$ac_file" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006199 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6200$as_echo X"$ac_file" |
6201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6202 s//\1/
6203 q
6204 }
6205 /^X\(\/\/\)[^/].*/{
6206 s//\1/
6207 q
6208 }
6209 /^X\(\/\/\)$/{
6210 s//\1/
6211 q
6212 }
6213 /^X\(\/\).*/{
6214 s//\1/
6215 q
6216 }
6217 s/.*/./; q'`
6218 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006219 ac_builddir=.
6220
jfigusc7e66e32013-05-08 11:32:55 -04006221case "$ac_dir" in
6222.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6223*)
6224 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6225 # A ".." for each directory in $ac_dir_suffix.
6226 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6227 case $ac_top_builddir_sub in
6228 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6229 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6230 esac ;;
6231esac
6232ac_abs_top_builddir=$ac_pwd
6233ac_abs_builddir=$ac_pwd$ac_dir_suffix
6234# for backward compatibility:
6235ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00006236
6237case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04006238 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00006239 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04006240 ac_top_srcdir=$ac_top_builddir_sub
6241 ac_abs_top_srcdir=$ac_pwd ;;
6242 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00006243 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04006244 ac_top_srcdir=$srcdir
6245 ac_abs_top_srcdir=$srcdir ;;
6246 *) # Relative name.
6247 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6248 ac_top_srcdir=$ac_top_build_prefix$srcdir
6249 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006250esac
jfigusc7e66e32013-05-08 11:32:55 -04006251ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00006252
Cullen Jennings235513a2005-09-21 22:51:36 +00006253
jfigusc7e66e32013-05-08 11:32:55 -04006254 case $ac_mode in
6255 :F)
6256 #
6257 # CONFIG_FILE
6258 #
Cullen Jennings235513a2005-09-21 22:51:36 +00006259
David McGrewb67061f2005-09-28 14:23:06 +00006260 case $INSTALL in
6261 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusc7e66e32013-05-08 11:32:55 -04006262 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00006263 esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006264_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006265
6266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6267# If the template does not know about datarootdir, expand it.
6268# FIXME: This hack should be removed a few years after 2.60.
6269ac_datarootdir_hack=; ac_datarootdir_seen=
6270ac_sed_dataroot='
6271/datarootdir/ {
6272 p
6273 q
6274}
6275/@datadir@/p
6276/@docdir@/p
6277/@infodir@/p
6278/@localedir@/p
6279/@mandir@/p'
6280case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6281*datarootdir*) ac_datarootdir_seen=yes;;
6282*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6284$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6285_ACEOF
6286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6287 ac_datarootdir_hack='
6288 s&@datadir@&$datadir&g
6289 s&@docdir@&$docdir&g
6290 s&@infodir@&$infodir&g
6291 s&@localedir@&$localedir&g
6292 s&@mandir@&$mandir&g
6293 s&\\\${datarootdir}&$datarootdir&g' ;;
6294esac
6295_ACEOF
6296
6297# Neutralize VPATH when `$srcdir' = `.'.
6298# Shell code in configure.ac might set extrasub.
6299# FIXME: do we really want to maintain this feature?
6300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6301ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00006302$extrasub
6303_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006305:t
6306/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusc7e66e32013-05-08 11:32:55 -04006307s|@configure_input@|$ac_sed_conf_input|;t t
6308s&@top_builddir@&$ac_top_builddir_sub&;t t
6309s&@top_build_prefix@&$ac_top_build_prefix&;t t
6310s&@srcdir@&$ac_srcdir&;t t
6311s&@abs_srcdir@&$ac_abs_srcdir&;t t
6312s&@top_srcdir@&$ac_top_srcdir&;t t
6313s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6314s&@builddir@&$ac_builddir&;t t
6315s&@abs_builddir@&$ac_abs_builddir&;t t
6316s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6317s&@INSTALL@&$ac_INSTALL&;t t
6318$ac_datarootdir_hack
6319"
6320eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6321 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00006322
jfigusc7e66e32013-05-08 11:32:55 -04006323test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6324 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6325 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6326 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6328which seems to be undefined. Please make sure it is defined" >&5
6329$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6330which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006331
jfigusc7e66e32013-05-08 11:32:55 -04006332 rm -f "$ac_tmp/stdin"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006333 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04006334 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6335 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6336 esac \
6337 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6338 ;;
6339 :H)
6340 #
6341 # CONFIG_HEADER
6342 #
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006343 if test x"$ac_file" != x-; then
jfigusc7e66e32013-05-08 11:32:55 -04006344 {
6345 $as_echo "/* $configure_input */" \
6346 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6347 } >"$ac_tmp/config.h" \
6348 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6349 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6351$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006352 else
jfigusc7e66e32013-05-08 11:32:55 -04006353 rm -f "$ac_file"
6354 mv "$ac_tmp/config.h" "$ac_file" \
6355 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006356 fi
6357 else
jfigusc7e66e32013-05-08 11:32:55 -04006358 $as_echo "/* $configure_input */" \
6359 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6360 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006361 fi
jfigusc7e66e32013-05-08 11:32:55 -04006362 ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006363
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006364
jfigusc7e66e32013-05-08 11:32:55 -04006365 esac
6366
6367done # for ac_tag
6368
6369
6370as_fn_exit 0
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006371_ACEOF
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006372ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04006373
jfigusc7e66e32013-05-08 11:32:55 -04006374test $ac_write_fail = 0 ||
6375 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6376
Cullen Jennings235513a2005-09-21 22:51:36 +00006377
6378# configure is writing to config.log, and then calls config.status.
6379# config.status does its own redirection, appending to config.log.
6380# Unfortunately, on DOS this fails, as config.log is still kept open
6381# by configure, so config.status won't be able to write to it; its
6382# output is simply discarded. So we exec the FD to /dev/null,
6383# effectively closing config.log, so it can be properly (re)opened and
6384# appended to by config.status. When coming back to configure, we
6385# need to make the FD available again.
6386if test "$no_create" != yes; then
6387 ac_cs_success=:
6388 ac_config_status_args=
6389 test "$silent" = yes &&
6390 ac_config_status_args="$ac_config_status_args --quiet"
6391 exec 5>/dev/null
6392 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6393 exec 5>>config.log
6394 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6395 # would make configure fail if this is the last instruction.
jfigusc7e66e32013-05-08 11:32:55 -04006396 $ac_cs_success || as_fn_exit 1
6397fi
6398if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6400$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006401fi
6402
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00006403
6404# This is needed when building outside the source dir.
jfigusc7e66e32013-05-08 11:32:55 -04006405as_dir=crypto/cipher; as_fn_mkdir_p
6406as_dir=crypto/hash; as_fn_mkdir_p
6407as_dir=crypto/kernel; as_fn_mkdir_p
6408as_dir=crypto/math; as_fn_mkdir_p
6409as_dir=crypto/replay; as_fn_mkdir_p
6410as_dir=crypto/rng; as_fn_mkdir_p
6411as_dir=crypto/test; as_fn_mkdir_p
6412as_dir=doc; as_fn_mkdir_p
6413as_dir=srtp; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04006414as_dir=test; as_fn_mkdir_p