blob: e775d724b9abfab3822457e91235d6a85a51d736 [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 * )
jfigusc7e66e32013-05-08 11:32:55 -04004074
4075$as_echo "#define CPU_RISC 1" >>confdefs.h
jfigusc7e66e32013-05-08 11:32:55 -04004076 ;;
4077esac
4078
4079case $host_os in
4080 *cygwin*|*mingw* )
4081 EXE=.exe
4082 HOST_IS_WINDOWS=yes
4083 ;;
4084 * )
4085 EXE=""
4086 ;;
4087esac
4088 # define executable suffix; this is needed for `make clean'
4089
jfigusc7e66e32013-05-08 11:32:55 -04004090if test "$cross_compiling" != yes -a "$HOST_IS_WINDOWS" != yes; then
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
4092$as_echo_n "checking for /dev/urandom... " >&6; }
4093if ${ac_cv_file__dev_urandom+:} false; then :
4094 $as_echo_n "(cached) " >&6
4095else
4096 test "$cross_compiling" = yes &&
4097 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4098if test -r "/dev/urandom"; then
4099 ac_cv_file__dev_urandom=yes
4100else
4101 ac_cv_file__dev_urandom=no
4102fi
4103fi
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
4105$as_echo "$ac_cv_file__dev_urandom" >&6; }
4106if test "x$ac_cv_file__dev_urandom" = xyes; then :
4107 DEV_URANDOM=/dev/urandom
4108else
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
4110$as_echo_n "checking for /dev/random... " >&6; }
4111if ${ac_cv_file__dev_random+:} false; then :
4112 $as_echo_n "(cached) " >&6
4113else
4114 test "$cross_compiling" = yes &&
4115 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4116if test -r "/dev/random"; then
4117 ac_cv_file__dev_random=yes
4118else
4119 ac_cv_file__dev_random=no
4120fi
4121fi
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
4123$as_echo "$ac_cv_file__dev_random" >&6; }
4124if test "x$ac_cv_file__dev_random" = xyes; then :
4125 DEV_URANDOM=/dev/random
4126fi
4127
4128fi
4129
4130fi
4131
4132
4133
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4135$as_echo_n "checking for ANSI C header files... " >&6; }
4136if ${ac_cv_header_stdc+:} false; then :
4137 $as_echo_n "(cached) " >&6
4138else
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140/* end confdefs.h. */
4141#include <stdlib.h>
4142#include <stdarg.h>
4143#include <string.h>
4144#include <float.h>
4145
4146int
4147main ()
4148{
4149
4150 ;
4151 return 0;
4152}
4153_ACEOF
4154if ac_fn_c_try_compile "$LINENO"; then :
4155 ac_cv_header_stdc=yes
4156else
4157 ac_cv_header_stdc=no
4158fi
4159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160
4161if test $ac_cv_header_stdc = yes; then
4162 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164/* end confdefs.h. */
4165#include <string.h>
4166
4167_ACEOF
4168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169 $EGREP "memchr" >/dev/null 2>&1; then :
4170
4171else
4172 ac_cv_header_stdc=no
4173fi
4174rm -f conftest*
4175
4176fi
4177
4178if test $ac_cv_header_stdc = yes; then
4179 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181/* end confdefs.h. */
4182#include <stdlib.h>
4183
4184_ACEOF
4185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4186 $EGREP "free" >/dev/null 2>&1; then :
4187
4188else
4189 ac_cv_header_stdc=no
4190fi
4191rm -f conftest*
4192
4193fi
4194
4195if test $ac_cv_header_stdc = yes; then
4196 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4197 if test "$cross_compiling" = yes; then :
4198 :
4199else
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201/* end confdefs.h. */
4202#include <ctype.h>
4203#include <stdlib.h>
4204#if ((' ' & 0x0FF) == 0x020)
4205# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4206# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4207#else
4208# define ISLOWER(c) \
4209 (('a' <= (c) && (c) <= 'i') \
4210 || ('j' <= (c) && (c) <= 'r') \
4211 || ('s' <= (c) && (c) <= 'z'))
4212# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4213#endif
4214
4215#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4216int
4217main ()
4218{
4219 int i;
4220 for (i = 0; i < 256; i++)
4221 if (XOR (islower (i), ISLOWER (i))
4222 || toupper (i) != TOUPPER (i))
4223 return 2;
4224 return 0;
4225}
4226_ACEOF
4227if ac_fn_c_try_run "$LINENO"; then :
4228
4229else
4230 ac_cv_header_stdc=no
4231fi
4232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4233 conftest.$ac_objext conftest.beam conftest.$ac_ext
4234fi
4235
4236fi
4237fi
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4239$as_echo "$ac_cv_header_stdc" >&6; }
4240if test $ac_cv_header_stdc = yes; then
4241
4242$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4243
4244fi
4245
4246for ac_header in stdlib.h
4247do :
4248 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4249if test "x$ac_cv_header_stdlib_h" = xyes; then :
4250 cat >>confdefs.h <<_ACEOF
4251#define HAVE_STDLIB_H 1
4252_ACEOF
4253
4254fi
4255
4256done
4257
4258for ac_header in unistd.h
4259do :
4260 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4261if test "x$ac_cv_header_unistd_h" = xyes; then :
4262 cat >>confdefs.h <<_ACEOF
4263#define HAVE_UNISTD_H 1
4264_ACEOF
4265
4266fi
4267
4268done
4269
4270for ac_header in byteswap.h
4271do :
4272 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
4273if test "x$ac_cv_header_byteswap_h" = xyes; then :
4274 cat >>confdefs.h <<_ACEOF
4275#define HAVE_BYTESWAP_H 1
4276_ACEOF
4277
4278fi
4279
4280done
4281
4282for ac_header in stdint.h
4283do :
4284 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4285if test "x$ac_cv_header_stdint_h" = xyes; then :
4286 cat >>confdefs.h <<_ACEOF
4287#define HAVE_STDINT_H 1
4288_ACEOF
4289
4290fi
4291
4292done
4293
4294for ac_header in sys/uio.h
4295do :
4296 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
4297if test "x$ac_cv_header_sys_uio_h" = xyes; then :
4298 cat >>confdefs.h <<_ACEOF
4299#define HAVE_SYS_UIO_H 1
4300_ACEOF
4301
4302fi
4303
4304done
4305
4306for ac_header in inttypes.h
4307do :
4308 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
4309if test "x$ac_cv_header_inttypes_h" = xyes; then :
4310 cat >>confdefs.h <<_ACEOF
4311#define HAVE_INTTYPES_H 1
4312_ACEOF
4313
4314fi
4315
4316done
4317
4318for ac_header in sys/types.h
4319do :
4320 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4321if test "x$ac_cv_header_sys_types_h" = xyes; then :
4322 cat >>confdefs.h <<_ACEOF
4323#define HAVE_SYS_TYPES_H 1
4324_ACEOF
4325
4326fi
4327
4328done
4329
4330for ac_header in machine/types.h
4331do :
4332 ac_fn_c_check_header_mongrel "$LINENO" "machine/types.h" "ac_cv_header_machine_types_h" "$ac_includes_default"
4333if test "x$ac_cv_header_machine_types_h" = xyes; then :
4334 cat >>confdefs.h <<_ACEOF
4335#define HAVE_MACHINE_TYPES_H 1
4336_ACEOF
4337
4338fi
4339
4340done
4341
4342for ac_header in sys/int_types.h
4343do :
4344 ac_fn_c_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default"
4345if test "x$ac_cv_header_sys_int_types_h" = xyes; then :
4346 cat >>confdefs.h <<_ACEOF
4347#define HAVE_SYS_INT_TYPES_H 1
4348_ACEOF
4349
4350fi
4351
4352done
4353
4354
4355for ac_header in sys/socket.h netinet/in.h arpa/inet.h
4356do :
4357 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4358ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4359if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4360 cat >>confdefs.h <<_ACEOF
4361#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4362_ACEOF
4363
4364fi
4365
4366done
4367
4368for ac_header in windows.h
4369do :
4370 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
4371if test "x$ac_cv_header_windows_h" = xyes; then :
4372 cat >>confdefs.h <<_ACEOF
4373#define HAVE_WINDOWS_H 1
4374_ACEOF
4375 for ac_header in winsock2.h
4376do :
4377 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
4378if test "x$ac_cv_header_winsock2_h" = xyes; then :
4379 cat >>confdefs.h <<_ACEOF
4380#define HAVE_WINSOCK2_H 1
4381_ACEOF
4382
4383fi
4384
4385done
4386
4387fi
4388
4389done
4390
4391
jfigusc7e66e32013-05-08 11:32:55 -04004392ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
4393if test "x$ac_cv_type_int8_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004394
David McGrewfec49dd2005-09-23 19:34:11 +00004395cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004396#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004397_ACEOF
4398
4399
4400fi
jfigusc7e66e32013-05-08 11:32:55 -04004401ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4402if test "x$ac_cv_type_uint8_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004403
4404cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004405#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004406_ACEOF
4407
4408
4409fi
jfigusc7e66e32013-05-08 11:32:55 -04004410ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4411if test "x$ac_cv_type_int16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004412
4413cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004414#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004415_ACEOF
4416
4417
4418fi
jfigusc7e66e32013-05-08 11:32:55 -04004419ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4420if test "x$ac_cv_type_uint16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004421
4422cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004423#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004424_ACEOF
4425
4426
4427fi
jfigusc7e66e32013-05-08 11:32:55 -04004428ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
4429if test "x$ac_cv_type_int32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004430
4431cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004432#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004433_ACEOF
4434
4435
4436fi
jfigusc7e66e32013-05-08 11:32:55 -04004437ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4438if test "x$ac_cv_type_uint32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004439
4440cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004441#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004442_ACEOF
4443
4444
4445fi
jfigusc7e66e32013-05-08 11:32:55 -04004446ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
4447if test "x$ac_cv_type_uint64_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004448
4449cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004450#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004451_ACEOF
4452
4453
4454fi
4455
jfigusc7e66e32013-05-08 11:32:55 -04004456# The cast to long int works around a bug in the HP C Compiler
4457# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4458# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4459# This bug is HP SR number 8606223364.
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4461$as_echo_n "checking size of unsigned long... " >&6; }
4462if ${ac_cv_sizeof_unsigned_long+:} false; then :
4463 $as_echo_n "(cached) " >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004464else
jfigusc7e66e32013-05-08 11:32:55 -04004465 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 +00004466
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004467else
4468 if test "$ac_cv_type_unsigned_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4471as_fn_error 77 "cannot compute sizeof (unsigned long)
4472See \`config.log' for more details" "$LINENO" 5; }
4473 else
4474 ac_cv_sizeof_unsigned_long=0
4475 fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004476fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004477
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004478fi
jfigusc7e66e32013-05-08 11:32:55 -04004479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
4480$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004481
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004482
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004483
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004484cat >>confdefs.h <<_ACEOF
4485#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
4486_ACEOF
4487
David McGrewfec49dd2005-09-23 19:34:11 +00004488
jfigusc7e66e32013-05-08 11:32:55 -04004489# The cast to long int works around a bug in the HP C Compiler
4490# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4491# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4492# This bug is HP SR number 8606223364.
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
4494$as_echo_n "checking size of unsigned long long... " >&6; }
4495if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
4496 $as_echo_n "(cached) " >&6
David McGrewfec49dd2005-09-23 19:34:11 +00004497else
jfigusc7e66e32013-05-08 11:32:55 -04004498 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 +00004499
David McGrewfec49dd2005-09-23 19:34:11 +00004500else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004501 if test "$ac_cv_type_unsigned_long_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04004502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4504as_fn_error 77 "cannot compute sizeof (unsigned long long)
4505See \`config.log' for more details" "$LINENO" 5; }
4506 else
4507 ac_cv_sizeof_unsigned_long_long=0
4508 fi
David McGrewfec49dd2005-09-23 19:34:11 +00004509fi
4510
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004511fi
jfigusc7e66e32013-05-08 11:32:55 -04004512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
4513$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004514
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004515
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004516
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004517cat >>confdefs.h <<_ACEOF
4518#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00004519_ACEOF
4520
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004521
Cullen Jennings235513a2005-09-21 22:51:36 +00004522
jfigusc7e66e32013-05-08 11:32:55 -04004523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4524$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4525if ${ac_cv_c_const+:} false; then :
4526 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004527else
jfigusc7e66e32013-05-08 11:32:55 -04004528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004529/* end confdefs.h. */
4530
4531int
4532main ()
4533{
jfigusc7e66e32013-05-08 11:32:55 -04004534
Cullen Jennings235513a2005-09-21 22:51:36 +00004535#ifndef __cplusplus
jfigusc7e66e32013-05-08 11:32:55 -04004536 /* Ultrix mips cc rejects this sort of thing. */
Cullen Jennings235513a2005-09-21 22:51:36 +00004537 typedef int charset[2];
jfigusc7e66e32013-05-08 11:32:55 -04004538 const charset cs = { 0, 0 };
Cullen Jennings235513a2005-09-21 22:51:36 +00004539 /* SunOS 4.1.1 cc rejects this. */
jfigusc7e66e32013-05-08 11:32:55 -04004540 char const *const *pcpcc;
4541 char **ppc;
Cullen Jennings235513a2005-09-21 22:51:36 +00004542 /* NEC SVR4.0.2 mips cc rejects this. */
4543 struct point {int x, y;};
4544 static struct point const zero = {0,0};
4545 /* AIX XL C 1.02.0.0 rejects this.
4546 It does not let you subtract one const X* pointer from another in
4547 an arm of an if-expression whose if-part is not a constant
4548 expression */
4549 const char *g = "string";
jfigusc7e66e32013-05-08 11:32:55 -04004550 pcpcc = &g + (g ? g-g : 0);
Cullen Jennings235513a2005-09-21 22:51:36 +00004551 /* HPUX 7.0 cc rejects these. */
jfigusc7e66e32013-05-08 11:32:55 -04004552 ++pcpcc;
4553 ppc = (char**) pcpcc;
4554 pcpcc = (char const *const *) ppc;
4555 { /* SCO 3.2v4 cc rejects this sort of thing. */
4556 char tx;
4557 char *t = &tx;
Cullen Jennings235513a2005-09-21 22:51:36 +00004558 char const *s = 0 ? (char *) 0 : (char const *) 0;
4559
4560 *t++ = 0;
jfigusc7e66e32013-05-08 11:32:55 -04004561 if (s) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004562 }
4563 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4564 int x[] = {25, 17};
4565 const int *foo = &x[0];
4566 ++foo;
4567 }
4568 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4569 typedef const int *iptr;
4570 iptr p = 0;
4571 ++p;
4572 }
jfigusc7e66e32013-05-08 11:32:55 -04004573 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Cullen Jennings235513a2005-09-21 22:51:36 +00004574 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
jfigusc7e66e32013-05-08 11:32:55 -04004575 struct s { int j; const int *ap[3]; } bx;
4576 struct s *b = &bx; b->j = 5;
Cullen Jennings235513a2005-09-21 22:51:36 +00004577 }
4578 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4579 const int foo = 10;
jfigusc7e66e32013-05-08 11:32:55 -04004580 if (!foo) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00004581 }
jfigusc7e66e32013-05-08 11:32:55 -04004582 return !cs[0] && !zero.x;
Cullen Jennings235513a2005-09-21 22:51:36 +00004583#endif
4584
4585 ;
4586 return 0;
4587}
4588_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004589if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004590 ac_cv_c_const=yes
4591else
jfigusc7e66e32013-05-08 11:32:55 -04004592 ac_cv_c_const=no
Cullen Jennings235513a2005-09-21 22:51:36 +00004593fi
jfigusc7e66e32013-05-08 11:32:55 -04004594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004595fi
jfigusc7e66e32013-05-08 11:32:55 -04004596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4597$as_echo "$ac_cv_c_const" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004598if test $ac_cv_c_const = no; then
4599
jfigusc7e66e32013-05-08 11:32:55 -04004600$as_echo "#define const /**/" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004601
4602fi
4603
jfigusc7e66e32013-05-08 11:32:55 -04004604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4605$as_echo_n "checking for inline... " >&6; }
4606if ${ac_cv_c_inline+:} false; then :
4607 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00004608else
4609 ac_cv_c_inline=no
4610for ac_kw in inline __inline__ __inline; do
jfigusc7e66e32013-05-08 11:32:55 -04004611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00004612/* end confdefs.h. */
4613#ifndef __cplusplus
4614typedef int foo_t;
4615static $ac_kw foo_t static_foo () {return 0; }
4616$ac_kw foo_t foo () {return 0; }
4617#endif
4618
4619_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004620if ac_fn_c_try_compile "$LINENO"; then :
4621 ac_cv_c_inline=$ac_kw
Cullen Jennings235513a2005-09-21 22:51:36 +00004622fi
jfigusc7e66e32013-05-08 11:32:55 -04004623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 test "$ac_cv_c_inline" != no && break
Cullen Jennings235513a2005-09-21 22:51:36 +00004625done
4626
4627fi
jfigusc7e66e32013-05-08 11:32:55 -04004628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4629$as_echo "$ac_cv_c_inline" >&6; }
David McGrewfec49dd2005-09-23 19:34:11 +00004630
Cullen Jennings235513a2005-09-21 22:51:36 +00004631case $ac_cv_c_inline in
4632 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00004633 *)
4634 case $ac_cv_c_inline in
4635 no) ac_val=;;
4636 *) ac_val=$ac_cv_c_inline;;
4637 esac
4638 cat >>confdefs.h <<_ACEOF
4639#ifndef __cplusplus
4640#define inline $ac_val
4641#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00004642_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00004643 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00004644esac
4645
jfigusc7e66e32013-05-08 11:32:55 -04004646ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4647if test "x$ac_cv_type_size_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004648
Cullen Jennings235513a2005-09-21 22:51:36 +00004649else
4650
4651cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004652#define size_t unsigned int
Cullen Jennings235513a2005-09-21 22:51:36 +00004653_ACEOF
4654
4655fi
4656
4657
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00004658for ac_func in socket inet_aton usleep sigaction
jfigusc7e66e32013-05-08 11:32:55 -04004659do :
4660 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4661ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4662if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004663 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004664#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00004665_ACEOF
4666
4667fi
4668done
4669
4670
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004671if test "x$ac_cv_func_socket" = "xno"; then
jfigusc7e66e32013-05-08 11:32:55 -04004672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4673$as_echo_n "checking for socket in -lsocket... " >&6; }
4674if ${ac_cv_lib_socket_socket+:} false; then :
4675 $as_echo_n "(cached) " >&6
David McGrewb67061f2005-09-28 14:23:06 +00004676else
4677 ac_check_lib_save_LIBS=$LIBS
4678LIBS="-lsocket $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04004679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004680/* end confdefs.h. */
4681
jfigusc7e66e32013-05-08 11:32:55 -04004682/* Override any GCC internal prototype to avoid an error.
4683 Use char because int might match the return type of a GCC
4684 builtin and then its argument prototype would still apply. */
David McGrewb67061f2005-09-28 14:23:06 +00004685#ifdef __cplusplus
4686extern "C"
4687#endif
David McGrewb67061f2005-09-28 14:23:06 +00004688char socket ();
4689int
4690main ()
4691{
jfigusc7e66e32013-05-08 11:32:55 -04004692return socket ();
David McGrewb67061f2005-09-28 14:23:06 +00004693 ;
4694 return 0;
4695}
4696_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004697if ac_fn_c_try_link "$LINENO"; then :
David McGrewb67061f2005-09-28 14:23:06 +00004698 ac_cv_lib_socket_socket=yes
4699else
jfigusc7e66e32013-05-08 11:32:55 -04004700 ac_cv_lib_socket_socket=no
David McGrewb67061f2005-09-28 14:23:06 +00004701fi
jfigusc7e66e32013-05-08 11:32:55 -04004702rm -f core conftest.err conftest.$ac_objext \
4703 conftest$ac_exeext conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00004704LIBS=$ac_check_lib_save_LIBS
4705fi
jfigusc7e66e32013-05-08 11:32:55 -04004706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4707$as_echo "$ac_cv_lib_socket_socket" >&6; }
4708if test "x$ac_cv_lib_socket_socket" = xyes; then :
David McGrewb67061f2005-09-28 14:23:06 +00004709 cat >>confdefs.h <<_ACEOF
4710#define HAVE_LIBSOCKET 1
4711_ACEOF
4712
4713 LIBS="-lsocket $LIBS"
4714
4715fi
4716
jfigusc7e66e32013-05-08 11:32:55 -04004717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
4718$as_echo_n "checking for socket in -lwsock32... " >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004719 SAVELIBS="$LIBS"
4720 LIBS="$LIBS -lwsock32"
jfigusc7e66e32013-05-08 11:32:55 -04004721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004722/* end confdefs.h. */
4723
4724#include <winsock2.h>
4725
4726int
4727main ()
4728{
4729
4730socket(0, 0, 0);
4731
4732 ;
4733 return 0;
4734}
4735_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004736if ac_fn_c_try_link "$LINENO"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004737 ac_cv_func_socket=yes
jfigusc7e66e32013-05-08 11:32:55 -04004738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4739$as_echo "yes" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004740else
jfigusc7e66e32013-05-08 11:32:55 -04004741 LIBS="$SAVELIBS"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743$as_echo "no" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004744fi
jfigusc7e66e32013-05-08 11:32:55 -04004745rm -f core conftest.err conftest.$ac_objext \
4746 conftest$ac_exeext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00004747fi
David McGrewb67061f2005-09-28 14:23:06 +00004748
jfigusc7e66e32013-05-08 11:32:55 -04004749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debugging" >&5
4750$as_echo_n "checking whether to compile in debugging... " >&6; }
4751# Check whether --enable-debug was given.
4752if test "${enable_debug+set}" = set; then :
4753 enableval=$enable_debug;
David McGrewb67061f2005-09-28 14:23:06 +00004754else
4755 enable_debug=yes
jfigusc7e66e32013-05-08 11:32:55 -04004756fi
4757
David McGrewb67061f2005-09-28 14:23:06 +00004758if test "$enable_debug" = "yes"; then
4759
jfigusc7e66e32013-05-08 11:32:55 -04004760$as_echo "#define ENABLE_DEBUGGING 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00004761
4762fi
jfigusc7e66e32013-05-08 11:32:55 -04004763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
4764$as_echo "$enable_debug" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004765
jfigusc7e66e32013-05-08 11:32:55 -04004766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ISMAcryp code" >&5
4767$as_echo_n "checking whether to use ISMAcryp code... " >&6; }
4768# Check whether --enable-generic-aesicm was given.
4769if test "${enable_generic_aesicm+set}" = set; then :
4770 enableval=$enable_generic_aesicm;
David McGrewb67061f2005-09-28 14:23:06 +00004771else
4772 enable_generic_aesicm=no
jfigusc7e66e32013-05-08 11:32:55 -04004773fi
4774
David McGrewb67061f2005-09-28 14:23:06 +00004775if test "$enable_generic_aesicm" = "yes"; then
4776
jfigusc7e66e32013-05-08 11:32:55 -04004777$as_echo "#define GENERIC_AESICM 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04004778
jfigusa14b5a02013-03-29 12:24:12 -04004779fi
jfigusc7e66e32013-05-08 11:32:55 -04004780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generic_aesicm" >&5
4781$as_echo "$enable_generic_aesicm" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04004782
jfigusc7e66e32013-05-08 11:32:55 -04004783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
4784$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
4785# Check whether --enable-openssl was given.
4786if test "${enable_openssl+set}" = set; then :
4787 enableval=$enable_openssl;
4788else
4789 enable_openssl=no
4790fi
jfigusa14b5a02013-03-29 12:24:12 -04004791
jfigus2b486652014-07-24 15:01:41 -04004792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
4793$as_echo "$enable_openssl" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04004794if test "$enable_openssl" = "yes"; then
Sean Brightbfb9e302014-03-24 20:45:17 -04004795 LDFLAGS="$LDFLAGS $(pkg-config --libs openssl)";
4796 CFLAGS="$CFLAGS $(pkg-config --cflags openssl)";
Cullen Jenningse1de50f2013-05-22 12:27:28 -06004797
jfigusc7e66e32013-05-08 11:32:55 -04004798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
4799$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
4800if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802else
4803 ac_check_lib_save_LIBS=$LIBS
4804LIBS="-lcrypto $LIBS"
4805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806/* end confdefs.h. */
4807
4808/* Override any GCC internal prototype to avoid an error.
4809 Use char because int might match the return type of a GCC
4810 builtin and then its argument prototype would still apply. */
4811#ifdef __cplusplus
4812extern "C"
4813#endif
4814char EVP_EncryptInit ();
4815int
4816main ()
4817{
4818return EVP_EncryptInit ();
4819 ;
4820 return 0;
4821}
4822_ACEOF
4823if ac_fn_c_try_link "$LINENO"; then :
4824 ac_cv_lib_crypto_EVP_EncryptInit=yes
4825else
4826 ac_cv_lib_crypto_EVP_EncryptInit=no
4827fi
4828rm -f core conftest.err conftest.$ac_objext \
4829 conftest$ac_exeext conftest.$ac_ext
4830LIBS=$ac_check_lib_save_LIBS
4831fi
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
4833$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
4834if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
4835 cat >>confdefs.h <<_ACEOF
4836#define HAVE_LIBCRYPTO 1
4837_ACEOF
4838
4839 LIBS="-lcrypto $LIBS"
4840
4841else
4842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
jfigus5b22e372013-05-09 09:23:26 -04004844as_fn_error $? "can't find openssl >1.0.1 crypto lib
4845See \`config.log' for more details" "$LINENO" 5; }
4846fi
4847
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_ctr in -lcrypto" >&5
4849$as_echo_n "checking for EVP_aes_128_ctr in -lcrypto... " >&6; }
4850if ${ac_cv_lib_crypto_EVP_aes_128_ctr+:} false; then :
4851 $as_echo_n "(cached) " >&6
4852else
4853 ac_check_lib_save_LIBS=$LIBS
4854LIBS="-lcrypto $LIBS"
4855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856/* end confdefs.h. */
4857
4858/* Override any GCC internal prototype to avoid an error.
4859 Use char because int might match the return type of a GCC
4860 builtin and then its argument prototype would still apply. */
4861#ifdef __cplusplus
4862extern "C"
4863#endif
4864char EVP_aes_128_ctr ();
4865int
4866main ()
4867{
4868return EVP_aes_128_ctr ();
4869 ;
4870 return 0;
4871}
4872_ACEOF
4873if ac_fn_c_try_link "$LINENO"; then :
4874 ac_cv_lib_crypto_EVP_aes_128_ctr=yes
4875else
4876 ac_cv_lib_crypto_EVP_aes_128_ctr=no
4877fi
4878rm -f core conftest.err conftest.$ac_objext \
4879 conftest$ac_exeext conftest.$ac_ext
4880LIBS=$ac_check_lib_save_LIBS
4881fi
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_ctr" >&5
4883$as_echo "$ac_cv_lib_crypto_EVP_aes_128_ctr" >&6; }
4884if test "x$ac_cv_lib_crypto_EVP_aes_128_ctr" = xyes; then :
4885 cat >>confdefs.h <<_ACEOF
4886#define HAVE_LIBCRYPTO 1
4887_ACEOF
4888
4889 LIBS="-lcrypto $LIBS"
4890
4891else
4892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4894as_fn_error $? "can't find openssl >1.0.1 crypto lib
jfigusc7e66e32013-05-08 11:32:55 -04004895See \`config.log' for more details" "$LINENO" 5; }
4896fi
4897
jfigus7882dd92013-08-02 16:08:23 -04004898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_gcm in -lcrypto" >&5
4899$as_echo_n "checking for EVP_aes_128_gcm in -lcrypto... " >&6; }
4900if ${ac_cv_lib_crypto_EVP_aes_128_gcm+:} false; then :
4901 $as_echo_n "(cached) " >&6
4902else
4903 ac_check_lib_save_LIBS=$LIBS
4904LIBS="-lcrypto $LIBS"
4905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906/* end confdefs.h. */
4907
4908/* Override any GCC internal prototype to avoid an error.
4909 Use char because int might match the return type of a GCC
4910 builtin and then its argument prototype would still apply. */
4911#ifdef __cplusplus
4912extern "C"
4913#endif
4914char EVP_aes_128_gcm ();
4915int
4916main ()
4917{
4918return EVP_aes_128_gcm ();
4919 ;
4920 return 0;
4921}
4922_ACEOF
4923if ac_fn_c_try_link "$LINENO"; then :
4924 ac_cv_lib_crypto_EVP_aes_128_gcm=yes
4925else
4926 ac_cv_lib_crypto_EVP_aes_128_gcm=no
4927fi
4928rm -f core conftest.err conftest.$ac_objext \
4929 conftest$ac_exeext conftest.$ac_ext
4930LIBS=$ac_check_lib_save_LIBS
4931fi
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_gcm" >&5
4933$as_echo "$ac_cv_lib_crypto_EVP_aes_128_gcm" >&6; }
4934if test "x$ac_cv_lib_crypto_EVP_aes_128_gcm" = xyes; then :
4935 cat >>confdefs.h <<_ACEOF
4936#define HAVE_LIBCRYPTO 1
4937_ACEOF
4938
4939 LIBS="-lcrypto $LIBS"
4940
4941else
4942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4944as_fn_error $? "can't find openssl >1.0.1 crypto lib
4945See \`config.log' for more details" "$LINENO" 5; }
4946fi
4947
jfigusc7e66e32013-05-08 11:32:55 -04004948
4949$as_echo "#define OPENSSL 1" >>confdefs.h
4950
jfigus7882dd92013-08-02 16:08:23 -04004951 AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
jfigusc7e66e32013-05-08 11:32:55 -04004952 RNG_OBJS=rand_source_ossl.o
4953 HMAC_OBJS=crypto/hash/hmac_ossl.o
4954 USE_OPENSSL=1
4955
4956else
jfigusa3127b82014-11-19 14:46:52 -05004957 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o"
jfigus7882dd92013-08-02 16:08:23 -04004958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random device to use" >&5
4959$as_echo_n "checking which random device to use... " >&6; }
jfigusa6cf2082014-11-21 10:04:03 -05004960 RNG_OBJS=rand_source.o
4961 if test -n "$DEV_URANDOM"; then
jfigusc7e66e32013-05-08 11:32:55 -04004962
4963cat >>confdefs.h <<_ACEOF
4964#define DEV_URANDOM "$DEV_URANDOM"
4965_ACEOF
4966
jfigusa6cf2082014-11-21 10:04:03 -05004967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_URANDOM" >&5
jfigusc7e66e32013-05-08 11:32:55 -04004968$as_echo "$DEV_URANDOM" >&6; }
jfigusa6cf2082014-11-21 10:04:03 -05004969 else
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: standard rand() function..." >&5
jfigusc7e66e32013-05-08 11:32:55 -04004971$as_echo "standard rand() function..." >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04004972 fi
jfigusc7e66e32013-05-08 11:32:55 -04004973 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
4974fi
4975
4976
4977
4978
Bernardo Torres79e38ae2014-10-10 05:29:36 -03004979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
4980$as_echo_n "checking for pcap_create in -lpcap... " >&6; }
4981if ${ac_cv_lib_pcap_pcap_create+:} false; then :
4982 $as_echo_n "(cached) " >&6
4983else
4984 ac_check_lib_save_LIBS=$LIBS
4985LIBS="-lpcap $LIBS"
4986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987/* end confdefs.h. */
4988
4989/* Override any GCC internal prototype to avoid an error.
4990 Use char because int might match the return type of a GCC
4991 builtin and then its argument prototype would still apply. */
4992#ifdef __cplusplus
4993extern "C"
4994#endif
4995char pcap_create ();
4996int
4997main ()
4998{
4999return pcap_create ();
5000 ;
5001 return 0;
5002}
5003_ACEOF
5004if ac_fn_c_try_link "$LINENO"; then :
5005 ac_cv_lib_pcap_pcap_create=yes
5006else
5007 ac_cv_lib_pcap_pcap_create=no
5008fi
5009rm -f core conftest.err conftest.$ac_objext \
5010 conftest$ac_exeext conftest.$ac_ext
5011LIBS=$ac_check_lib_save_LIBS
5012fi
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
5014$as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
5015if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
Bernardo Torresb3c51422014-10-14 12:40:09 -03005016 PCAP=1
5017 LIBS="-lpcap $LIBS"
5018 HAVE_PCAP=1
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005019
Bernardo Torresb3c51422014-10-14 12:40:09 -03005020$as_echo "#define HAVE_PCAP 1" >>confdefs.h
5021
5022
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005023
5024fi
5025
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005026
jfigusc7e66e32013-05-08 11:32:55 -04005027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use stdout for error reporting" >&5
5028$as_echo_n "checking whether to use stdout for error reporting... " >&6; }
5029# Check whether --enable-stdout was given.
5030if test "${enable_stdout+set}" = set; then :
5031 enableval=$enable_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00005032else
jfigus97a80f42014-11-04 14:15:40 -05005033 enable_stdout=no
jfigusc7e66e32013-05-08 11:32:55 -04005034fi
5035
David McGrewb67061f2005-09-28 14:23:06 +00005036if test "$enable_stdout" = "yes"; then
5037
jfigusc7e66e32013-05-08 11:32:55 -04005038$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005039
5040fi
jfigusc7e66e32013-05-08 11:32:55 -04005041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdout" >&5
5042$as_echo "$enable_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005043
jfigusc7e66e32013-05-08 11:32:55 -04005044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use /dev/console for error reporting" >&5
5045$as_echo_n "checking whether to use /dev/console for error reporting... " >&6; }
5046# Check whether --enable-console was given.
5047if test "${enable_console+set}" = set; then :
5048 enableval=$enable_console;
David McGrewb67061f2005-09-28 14:23:06 +00005049else
5050 enable_console=no
jfigusc7e66e32013-05-08 11:32:55 -04005051fi
5052
David McGrewb67061f2005-09-28 14:23:06 +00005053if test "$enable_console" = "yes"; then
5054
jfigusc7e66e32013-05-08 11:32:55 -04005055$as_echo "#define USE_ERR_REPORTING_FILE 1" >>confdefs.h
David McGrewb67061f2005-09-28 14:23:06 +00005056
5057
jfigusc7e66e32013-05-08 11:32:55 -04005058$as_echo "#define ERR_REPORTING_FILE \"/dev/console\"" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005059
5060fi
jfigusc7e66e32013-05-08 11:32:55 -04005061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_console" >&5
5062$as_echo "$enable_console" >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00005063
jfigusc7e66e32013-05-08 11:32:55 -04005064ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00005065
5066
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005067# Extract the first word of "pkg-config", so it can be a program name with args.
5068set dummy pkg-config; ac_word=$2
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070$as_echo_n "checking for $ac_word... " >&6; }
5071if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073else
5074 if test -n "$PKG_CONFIG"; then
5075 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5076else
5077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078for as_dir in $PATH
5079do
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5084 ac_cv_prog_PKG_CONFIG="yes"
5085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 break 2
5087 fi
5088done
5089 done
5090IFS=$as_save_IFS
5091
5092fi
5093fi
5094PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5095if test -n "$PKG_CONFIG"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5097$as_echo "$PKG_CONFIG" >&6; }
5098else
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100$as_echo "no" >&6; }
5101fi
5102
5103
5104if test "x$PKG_CONFIG" != "x"; then
5105 HAVE_PKG_CONFIG=1
jfigusd196e022014-11-20 16:43:44 -05005106 ac_config_files="$ac_config_files libsrtp2.pc"
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005107
5108else
5109 HAVE_PKG_CONFIG=0
5110fi
5111
jfigusc7e66e32013-05-08 11:32:55 -04005112ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile"
5113
Cullen Jennings235513a2005-09-21 22:51:36 +00005114cat >confcache <<\_ACEOF
5115# This file is a shell script that caches the results of configure
5116# tests run on this system so they can be shared between configure
5117# scripts and configure runs, see configure's option --config-cache.
5118# It is not useful on other systems. If it contains results you don't
5119# want to keep, you may remove or edit it.
5120#
5121# config.status only pays attention to the cache file if you give it
5122# the --recheck option to rerun configure.
5123#
5124# `ac_cv_env_foo' variables (set or unset) will be overridden when
5125# loading this file, other *unset* `ac_cv_foo' will be assigned the
5126# following values.
5127
5128_ACEOF
5129
5130# The following way of writing the cache mishandles newlines in values,
5131# but we know of no workaround that is simple, portable, and efficient.
jfigusc7e66e32013-05-08 11:32:55 -04005132# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00005133# Ultrix sh set writes to stderr and can't be redirected directly,
5134# and sets the high bit in the cache file unless we assign to the vars.
jfigusc7e66e32013-05-08 11:32:55 -04005135(
5136 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5137 eval ac_val=\$$ac_var
5138 case $ac_val in #(
5139 *${as_nl}*)
5140 case $ac_var in #(
5141 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5142$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5143 esac
5144 case $ac_var in #(
5145 _ | IFS | as_nl) ;; #(
5146 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5147 *) { eval $ac_var=; unset $ac_var;} ;;
5148 esac ;;
5149 esac
5150 done
5151
Cullen Jennings235513a2005-09-21 22:51:36 +00005152 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04005153 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5154 *${as_nl}ac_space=\ *)
5155 # `set' does not quote correctly, so add quotes: double-quote
5156 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00005157 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00005158 "s/'/'\\\\''/g;
5159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusc7e66e32013-05-08 11:32:55 -04005160 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00005161 *)
5162 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusc7e66e32013-05-08 11:32:55 -04005163 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00005164 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005165 esac |
5166 sort
5167) |
Cullen Jennings235513a2005-09-21 22:51:36 +00005168 sed '
jfigusc7e66e32013-05-08 11:32:55 -04005169 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00005170 t clear
jfigusc7e66e32013-05-08 11:32:55 -04005171 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00005172 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5173 t end
jfigusc7e66e32013-05-08 11:32:55 -04005174 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5175 :end' >>confcache
5176if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5177 if test -w "$cache_file"; then
5178 if test "x$cache_file" != "x/dev/null"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5180$as_echo "$as_me: updating cache $cache_file" >&6;}
5181 if test ! -f "$cache_file" || test -h "$cache_file"; then
5182 cat confcache >"$cache_file"
5183 else
5184 case $cache_file in #(
5185 */* | ?:*)
5186 mv -f confcache "$cache_file"$$ &&
5187 mv -f "$cache_file"$$ "$cache_file" ;; #(
5188 *)
5189 mv -f confcache "$cache_file" ;;
5190 esac
5191 fi
5192 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005193 else
jfigusc7e66e32013-05-08 11:32:55 -04005194 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5195$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00005196 fi
5197fi
5198rm -f confcache
5199
5200test "x$prefix" = xNONE && prefix=$ac_default_prefix
5201# Let make expand exec_prefix.
5202test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5203
Cullen Jennings235513a2005-09-21 22:51:36 +00005204DEFS=-DHAVE_CONFIG_H
5205
5206ac_libobjs=
5207ac_ltlibobjs=
jfigusc7e66e32013-05-08 11:32:55 -04005208U=
Cullen Jennings235513a2005-09-21 22:51:36 +00005209for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5210 # 1. Remove the extension, and $U if already installed.
jfigusc7e66e32013-05-08 11:32:55 -04005211 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5212 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5213 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5214 # will be set to the directory where LIBOBJS objects are built.
5215 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5216 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00005217done
5218LIBOBJS=$ac_libobjs
5219
5220LTLIBOBJS=$ac_ltlibobjs
5221
5222
5223
jfigusc7e66e32013-05-08 11:32:55 -04005224
5225: "${CONFIG_STATUS=./config.status}"
5226ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00005227ac_clean_files_save=$ac_clean_files
5228ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusc7e66e32013-05-08 11:32:55 -04005229{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5230$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5231as_write_fail=0
5232cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005233#! $SHELL
5234# Generated by $as_me.
5235# Run this file to recreate the current configuration.
5236# Compiler output produced by configure, useful for debugging
5237# configure, is in config.log if it exists.
5238
5239debug=false
5240ac_cs_recheck=false
5241ac_cs_silent=false
jfigusc7e66e32013-05-08 11:32:55 -04005242
Cullen Jennings235513a2005-09-21 22:51:36 +00005243SHELL=\${CONFIG_SHELL-$SHELL}
jfigusc7e66e32013-05-08 11:32:55 -04005244export SHELL
5245_ASEOF
5246cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5247## -------------------- ##
5248## M4sh Initialization. ##
5249## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00005250
jfigusc7e66e32013-05-08 11:32:55 -04005251# Be more Bourne compatible
5252DUALCASE=1; export DUALCASE # for MKS sh
5253if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005254 emulate sh
5255 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -04005256 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00005257 # is contrary to our usage. Disable this feature.
5258 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -04005259 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00005260else
jfigusc7e66e32013-05-08 11:32:55 -04005261 case `(set -o) 2>/dev/null` in #(
5262 *posix*) :
5263 set -o posix ;; #(
5264 *) :
5265 ;;
5266esac
Cullen Jennings235513a2005-09-21 22:51:36 +00005267fi
5268
5269
jfigusc7e66e32013-05-08 11:32:55 -04005270as_nl='
5271'
5272export as_nl
5273# Printing a long string crashes Solaris 7 /usr/bin/printf.
5274as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5275as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5276as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5277# Prefer a ksh shell builtin over an external printf program on Solaris,
5278# but without wasting forks for bash or zsh.
5279if test -z "$BASH_VERSION$ZSH_VERSION" \
5280 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5281 as_echo='print -r --'
5282 as_echo_n='print -rn --'
5283elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5284 as_echo='printf %s\n'
5285 as_echo_n='printf %s'
5286else
5287 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5288 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5289 as_echo_n='/usr/ucb/echo -n'
5290 else
5291 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5292 as_echo_n_body='eval
5293 arg=$1;
5294 case $arg in #(
5295 *"$as_nl"*)
5296 expr "X$arg" : "X\\(.*\\)$as_nl";
5297 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5298 esac;
5299 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5300 '
5301 export as_echo_n_body
5302 as_echo_n='sh -c $as_echo_n_body as_echo'
5303 fi
5304 export as_echo_body
5305 as_echo='sh -c $as_echo_body as_echo'
5306fi
5307
5308# The user is always right.
5309if test "${PATH_SEPARATOR+set}" != set; then
5310 PATH_SEPARATOR=:
5311 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5312 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5313 PATH_SEPARATOR=';'
5314 }
5315fi
5316
5317
5318# IFS
5319# We need space, tab and new line, in precisely that order. Quoting is
5320# there to prevent editors from complaining about space-tab.
5321# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5322# splitting by setting IFS to empty value.)
5323IFS=" "" $as_nl"
5324
5325# Find who we are. Look in the path if we contain no directory separator.
5326as_myself=
5327case $0 in #((
5328 *[\\/]* ) as_myself=$0 ;;
5329 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330for as_dir in $PATH
5331do
5332 IFS=$as_save_IFS
5333 test -z "$as_dir" && as_dir=.
5334 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5335 done
5336IFS=$as_save_IFS
5337
5338 ;;
5339esac
5340# We did not find ourselves, most probably we were run as `sh COMMAND'
5341# in which case we are not to be found in the path.
5342if test "x$as_myself" = x; then
5343 as_myself=$0
5344fi
5345if test ! -f "$as_myself"; then
5346 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5347 exit 1
5348fi
5349
5350# Unset variables that we do not need and which cause bugs (e.g. in
5351# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5352# suppresses any "Segmentation fault" message there. '((' could
5353# trigger a bug in pdksh 5.2.14.
5354for as_var in BASH_ENV ENV MAIL MAILPATH
5355do eval test x\${$as_var+set} = xset \
5356 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5357done
Cullen Jennings235513a2005-09-21 22:51:36 +00005358PS1='$ '
5359PS2='> '
5360PS4='+ '
5361
5362# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -04005363LC_ALL=C
5364export LC_ALL
5365LANGUAGE=C
5366export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -04005367
jfigusc7e66e32013-05-08 11:32:55 -04005368# CDPATH.
5369(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5370
5371
5372# as_fn_error STATUS ERROR [LINENO LOG_FD]
5373# ----------------------------------------
5374# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5375# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5376# script with STATUS, using 1 if that was 0.
5377as_fn_error ()
5378{
5379 as_status=$1; test $as_status -eq 0 && as_status=1
5380 if test "$4"; then
5381 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5382 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5383 fi
5384 $as_echo "$as_me: error: $2" >&2
5385 as_fn_exit $as_status
5386} # as_fn_error
5387
5388
5389# as_fn_set_status STATUS
5390# -----------------------
5391# Set $? to STATUS, without forking.
5392as_fn_set_status ()
5393{
5394 return $1
5395} # as_fn_set_status
5396
5397# as_fn_exit STATUS
5398# -----------------
5399# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5400as_fn_exit ()
5401{
5402 set +e
5403 as_fn_set_status $1
5404 exit $1
5405} # as_fn_exit
5406
5407# as_fn_unset VAR
5408# ---------------
5409# Portably unset VAR.
5410as_fn_unset ()
5411{
5412 { eval $1=; unset $1;}
5413}
5414as_unset=as_fn_unset
5415# as_fn_append VAR VALUE
5416# ----------------------
5417# Append the text in VALUE to the end of the definition contained in VAR. Take
5418# advantage of any shell optimizations that allow amortized linear growth over
5419# repeated appends, instead of the typical quadratic growth present in naive
5420# implementations.
5421if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5422 eval 'as_fn_append ()
5423 {
5424 eval $1+=\$2
5425 }'
5426else
5427 as_fn_append ()
5428 {
5429 eval $1=\$$1\$2
5430 }
5431fi # as_fn_append
5432
5433# as_fn_arith ARG...
5434# ------------------
5435# Perform arithmetic evaluation on the ARGs, and store the result in the
5436# global $as_val. Take advantage of shells that can avoid forks. The arguments
5437# must be portable across $(()) and expr.
5438if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5439 eval 'as_fn_arith ()
5440 {
5441 as_val=$(( $* ))
5442 }'
5443else
5444 as_fn_arith ()
5445 {
5446 as_val=`expr "$@" || test $? -eq 1`
5447 }
5448fi # as_fn_arith
5449
5450
5451if expr a : '\(a\)' >/dev/null 2>&1 &&
5452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005453 as_expr=expr
5454else
5455 as_expr=false
5456fi
5457
jfigusc7e66e32013-05-08 11:32:55 -04005458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005459 as_basename=basename
5460else
5461 as_basename=false
5462fi
5463
jfigusc7e66e32013-05-08 11:32:55 -04005464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5465 as_dirname=dirname
5466else
5467 as_dirname=false
5468fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005469
jfigusc7e66e32013-05-08 11:32:55 -04005470as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00005471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5472 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04005473 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5474$as_echo X/"$0" |
5475 sed '/^.*\/\([^/][^/]*\)\/*$/{
5476 s//\1/
5477 q
5478 }
5479 /^X\/\(\/\/\)$/{
5480 s//\1/
5481 q
5482 }
5483 /^X\/\(\/\).*/{
5484 s//\1/
5485 q
5486 }
5487 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005488
Cullen Jennings235513a2005-09-21 22:51:36 +00005489# Avoid depending upon Character Ranges.
5490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5493as_cr_digits='0123456789'
5494as_cr_alnum=$as_cr_Letters$as_cr_digits
5495
jfigusc7e66e32013-05-08 11:32:55 -04005496ECHO_C= ECHO_N= ECHO_T=
5497case `echo -n x` in #(((((
5498-n*)
5499 case `echo 'xy\c'` in
5500 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5501 xy) ECHO_C='\c';;
5502 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5503 ECHO_T=' ';;
5504 esac;;
5505*)
5506 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00005507esac
5508
Cullen Jennings235513a2005-09-21 22:51:36 +00005509rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -04005510if test -d conf$$.dir; then
5511 rm -f conf$$.dir/conf$$.file
5512else
5513 rm -f conf$$.dir
5514 mkdir conf$$.dir 2>/dev/null
5515fi
5516if (echo >conf$$.file) 2>/dev/null; then
5517 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005518 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -04005519 # ... but there are two gotchas:
5520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5522 # In both cases, we have to default to `cp -pR'.
5523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5524 as_ln_s='cp -pR'
5525 elif ln conf$$.file conf$$ 2>/dev/null; then
5526 as_ln_s=ln
5527 else
5528 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005529 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005530else
jfigusc7e66e32013-05-08 11:32:55 -04005531 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005532fi
jfigusc7e66e32013-05-08 11:32:55 -04005533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5534rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00005535
jfigusc7e66e32013-05-08 11:32:55 -04005536
5537# as_fn_mkdir_p
5538# -------------
5539# Create "$as_dir" as a directory, including parents if necessary.
5540as_fn_mkdir_p ()
5541{
5542
5543 case $as_dir in #(
5544 -*) as_dir=./$as_dir;;
5545 esac
5546 test -d "$as_dir" || eval $as_mkdir_p || {
5547 as_dirs=
5548 while :; do
5549 case $as_dir in #(
5550 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5551 *) as_qdir=$as_dir;;
5552 esac
5553 as_dirs="'$as_qdir' $as_dirs"
5554 as_dir=`$as_dirname -- "$as_dir" ||
5555$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5556 X"$as_dir" : 'X\(//\)[^/]' \| \
5557 X"$as_dir" : 'X\(//\)$' \| \
5558 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5559$as_echo X"$as_dir" |
5560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5561 s//\1/
5562 q
5563 }
5564 /^X\(\/\/\)[^/].*/{
5565 s//\1/
5566 q
5567 }
5568 /^X\(\/\/\)$/{
5569 s//\1/
5570 q
5571 }
5572 /^X\(\/\).*/{
5573 s//\1/
5574 q
5575 }
5576 s/.*/./; q'`
5577 test -d "$as_dir" && break
5578 done
5579 test -z "$as_dirs" || eval "mkdir $as_dirs"
5580 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5581
5582
5583} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005584if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -04005585 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00005586else
David McGrewfec49dd2005-09-23 19:34:11 +00005587 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00005588 as_mkdir_p=false
5589fi
5590
jfigusc7e66e32013-05-08 11:32:55 -04005591
5592# as_fn_executable_p FILE
5593# -----------------------
5594# Test if FILE is an executable regular file.
5595as_fn_executable_p ()
5596{
5597 test -f "$1" && test -x "$1"
5598} # as_fn_executable_p
5599as_test_x='test -x'
5600as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005601
5602# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00005603as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005604
5605# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00005606as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005607
5608
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005609exec 6>&1
jfigusc7e66e32013-05-08 11:32:55 -04005610## ----------------------------------- ##
5611## Main body of $CONFIG_STATUS script. ##
5612## ----------------------------------- ##
5613_ASEOF
5614test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005615
jfigusc7e66e32013-05-08 11:32:55 -04005616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5617# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00005618# report actual input values of CONFIG_FILES etc. instead of their
jfigusc7e66e32013-05-08 11:32:55 -04005619# values after options handling.
5620ac_log="
jfigusd196e022014-11-20 16:43:44 -05005621This file was extended by libsrtp2 $as_me 2.0.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04005622generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00005623
5624 CONFIG_FILES = $CONFIG_FILES
5625 CONFIG_HEADERS = $CONFIG_HEADERS
5626 CONFIG_LINKS = $CONFIG_LINKS
5627 CONFIG_COMMANDS = $CONFIG_COMMANDS
5628 $ $0 $@
5629
jfigusc7e66e32013-05-08 11:32:55 -04005630on `(hostname || uname -n) 2>/dev/null | sed 1q`
5631"
5632
Cullen Jennings235513a2005-09-21 22:51:36 +00005633_ACEOF
5634
jfigusc7e66e32013-05-08 11:32:55 -04005635case $ac_config_files in *"
5636"*) set x $ac_config_files; shift; ac_config_files=$*;;
5637esac
5638
5639case $ac_config_headers in *"
5640"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5641esac
5642
5643
5644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005645# Files that config.status was made for.
jfigusc7e66e32013-05-08 11:32:55 -04005646config_files="$ac_config_files"
5647config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00005648
jfigusc7e66e32013-05-08 11:32:55 -04005649_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005650
jfigusc7e66e32013-05-08 11:32:55 -04005651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005652ac_cs_usage="\
jfigusc7e66e32013-05-08 11:32:55 -04005653\`$as_me' instantiates files and other configuration actions
5654from templates according to the current configuration. Unless the files
5655and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00005656
jfigusc7e66e32013-05-08 11:32:55 -04005657Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00005658
5659 -h, --help print this help, then exit
jfigusc7e66e32013-05-08 11:32:55 -04005660 -V, --version print version number and configuration settings, then exit
5661 --config print configuration, then exit
5662 -q, --quiet, --silent
5663 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00005664 -d, --debug don't remove temporary files
5665 --recheck update $as_me by reconfiguring in the same conditions
jfigusc7e66e32013-05-08 11:32:55 -04005666 --file=FILE[:TEMPLATE]
5667 instantiate the configuration file FILE
5668 --header=FILE[:TEMPLATE]
5669 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00005670
5671Configuration files:
5672$config_files
5673
5674Configuration headers:
5675$config_headers
5676
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005677Report bugs to <https://github.com/cisco/libsrtp/issues>."
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005678
jfigusc7e66e32013-05-08 11:32:55 -04005679_ACEOF
5680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5681ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00005682ac_cs_version="\\
jfigusd196e022014-11-20 16:43:44 -05005683libsrtp2 config.status 2.0.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04005684configured by $0, generated by GNU Autoconf 2.69,
5685 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00005686
jfigusc7e66e32013-05-08 11:32:55 -04005687Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00005688This config.status script is free software; the Free Software Foundation
5689gives unlimited permission to copy, distribute and modify it."
jfigusc7e66e32013-05-08 11:32:55 -04005690
5691ac_pwd='$ac_pwd'
5692srcdir='$srcdir'
5693INSTALL='$INSTALL'
5694test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00005695_ACEOF
5696
jfigusc7e66e32013-05-08 11:32:55 -04005697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5698# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00005699ac_need_defaults=:
5700while test $# != 0
5701do
5702 case $1 in
jfigusc7e66e32013-05-08 11:32:55 -04005703 --*=?*)
5704 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5705 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005706 ac_shift=:
5707 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005708 --*=)
5709 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5710 ac_optarg=
5711 ac_shift=:
5712 ;;
5713 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00005714 ac_option=$1
5715 ac_optarg=$2
5716 ac_shift=shift
5717 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005718 esac
5719
5720 case $ac_option in
5721 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00005722 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5723 ac_cs_recheck=: ;;
jfigusc7e66e32013-05-08 11:32:55 -04005724 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5725 $as_echo "$ac_cs_version"; exit ;;
5726 --config | --confi | --conf | --con | --co | --c )
5727 $as_echo "$ac_cs_config"; exit ;;
5728 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00005729 debug=: ;;
5730 --file | --fil | --fi | --f )
5731 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04005732 case $ac_optarg in
5733 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5734 '') as_fn_error $? "missing file argument" ;;
5735 esac
5736 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005737 ac_need_defaults=false;;
5738 --header | --heade | --head | --hea )
5739 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04005740 case $ac_optarg in
5741 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5742 esac
5743 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005744 ac_need_defaults=false;;
jfigusc7e66e32013-05-08 11:32:55 -04005745 --he | --h)
5746 # Conflict between --help and --header
5747 as_fn_error $? "ambiguous option: \`$1'
5748Try \`$0 --help' for more information.";;
5749 --help | --hel | -h )
5750 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5752 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5753 ac_cs_silent=: ;;
5754
5755 # This is an error.
jfigusc7e66e32013-05-08 11:32:55 -04005756 -*) as_fn_error $? "unrecognized option: \`$1'
5757Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005758
jfigusc7e66e32013-05-08 11:32:55 -04005759 *) as_fn_append ac_config_targets " $1"
5760 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005761
5762 esac
5763 shift
5764done
5765
5766ac_configure_extra_args=
5767
5768if $ac_cs_silent; then
5769 exec 6>/dev/null
5770 ac_configure_extra_args="$ac_configure_extra_args --silent"
5771fi
5772
5773_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005775if \$ac_cs_recheck; then
jfigusc7e66e32013-05-08 11:32:55 -04005776 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5777 shift
5778 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5779 CONFIG_SHELL='$SHELL'
5780 export CONFIG_SHELL
5781 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00005782fi
5783
5784_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5786exec 5>>config.log
5787{
5788 echo
5789 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5790## Running $as_me. ##
5791_ASBOX
5792 $as_echo "$ac_log"
5793} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00005794
jfigusc7e66e32013-05-08 11:32:55 -04005795_ACEOF
5796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5797_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005798
jfigusc7e66e32013-05-08 11:32:55 -04005799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005800
jfigusc7e66e32013-05-08 11:32:55 -04005801# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00005802for ac_config_target in $ac_config_targets
5803do
jfigusc7e66e32013-05-08 11:32:55 -04005804 case $ac_config_target in
5805 "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
jfigusd196e022014-11-20 16:43:44 -05005806 "libsrtp2.pc") CONFIG_FILES="$CONFIG_FILES libsrtp2.pc" ;;
jfigusc7e66e32013-05-08 11:32:55 -04005807 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5808 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
5809 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5810
5811 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005812 esac
5813done
5814
jfigusc7e66e32013-05-08 11:32:55 -04005815
Cullen Jennings235513a2005-09-21 22:51:36 +00005816# If the user did not use the arguments to specify the items to instantiate,
5817# then the envvar interface is used. Set only those that are not.
5818# We use the long form for the default assignment because of an extremely
5819# bizarre bug on SunOS 4.1.3.
5820if $ac_need_defaults; then
5821 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5822 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5823fi
5824
5825# Have a temporary directory for convenience. Make it in the build tree
jfigusc7e66e32013-05-08 11:32:55 -04005826# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00005827# creating and moving files from /tmp can sometimes cause problems.
jfigusc7e66e32013-05-08 11:32:55 -04005828# Hook for its removal unless debugging.
5829# Note that there is a small window in which the directory will not be cleaned:
5830# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00005831$debug ||
5832{
jfigusc7e66e32013-05-08 11:32:55 -04005833 tmp= ac_tmp=
5834 trap 'exit_status=$?
5835 : "${ac_tmp:=$tmp}"
5836 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5837' 0
5838 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00005839}
Cullen Jennings235513a2005-09-21 22:51:36 +00005840# Create a (secure) tmp directory for tmp files.
5841
5842{
jfigusc7e66e32013-05-08 11:32:55 -04005843 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5844 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00005845} ||
5846{
jfigusc7e66e32013-05-08 11:32:55 -04005847 tmp=./conf$$-$RANDOM
5848 (umask 077 && mkdir "$tmp")
5849} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5850ac_tmp=$tmp
5851
5852# Set up the scripts for CONFIG_FILES section.
5853# No need to generate them if there are no CONFIG_FILES.
5854# This happens for instance with `./config.status config.h'.
5855if test -n "$CONFIG_FILES"; then
5856
5857
5858ac_cr=`echo X | tr X '\015'`
5859# On cygwin, bash can eat \r inside `` if the user requested igncr.
5860# But we know of no other shell where ac_cr would be empty at this
5861# point, so we can use a bashism as a fallback.
5862if test "x$ac_cr" = x; then
5863 eval ac_cr=\$\'\\r\'
5864fi
5865ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5866if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5867 ac_cs_awk_cr='\\r'
5868else
5869 ac_cs_awk_cr=$ac_cr
5870fi
5871
5872echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5873_ACEOF
5874
5875
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005876{
jfigusc7e66e32013-05-08 11:32:55 -04005877 echo "cat >conf$$subs.awk <<_ACEOF" &&
5878 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5879 echo "_ACEOF"
5880} >conf$$subs.sh ||
5881 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5882ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5883ac_delim='%!_!# '
5884for ac_last_try in false false false false false :; do
5885 . ./conf$$subs.sh ||
5886 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5887
5888 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5889 if test $ac_delim_n = $ac_delim_num; then
5890 break
5891 elif $ac_last_try; then
5892 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5893 else
5894 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5895 fi
5896done
5897rm -f conf$$subs.sh
5898
5899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5900cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5901_ACEOF
5902sed -n '
5903h
5904s/^/S["/; s/!.*/"]=/
5905p
5906g
5907s/^[^!]*!//
5908:repl
5909t repl
5910s/'"$ac_delim"'$//
5911t delim
5912:nl
5913h
5914s/\(.\{148\}\)..*/\1/
5915t more1
5916s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5917p
5918n
5919b repl
5920:more1
5921s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5922p
5923g
5924s/.\{148\}//
5925t nl
5926:delim
5927h
5928s/\(.\{148\}\)..*/\1/
5929t more2
5930s/["\\]/\\&/g; s/^/"/; s/$/"/
5931p
5932b
5933:more2
5934s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5935p
5936g
5937s/.\{148\}//
5938t delim
5939' <conf$$subs.awk | sed '
5940/^[^""]/{
5941 N
5942 s/\n//
5943}
5944' >>$CONFIG_STATUS || ac_write_fail=1
5945rm -f conf$$subs.awk
5946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5947_ACAWK
5948cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5949 for (key in S) S_is_set[key] = 1
5950 FS = ""
5951
5952}
5953{
5954 line = $ 0
5955 nfields = split(line, field, "@")
5956 substed = 0
5957 len = length(field[1])
5958 for (i = 2; i < nfields; i++) {
5959 key = field[i]
5960 keylen = length(key)
5961 if (S_is_set[key]) {
5962 value = S[key]
5963 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5964 len += length(value) + length(field[++i])
5965 substed = 1
5966 } else
5967 len += 1 + keylen
5968 }
5969
5970 print line
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005971}
jfigusa14b5a02013-03-29 12:24:12 -04005972
jfigusc7e66e32013-05-08 11:32:55 -04005973_ACAWK
5974_ACEOF
5975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5976if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5977 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5978else
5979 cat
5980fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5981 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
jfigusa14b5a02013-03-29 12:24:12 -04005982_ACEOF
5983
jfigusc7e66e32013-05-08 11:32:55 -04005984# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5985# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5986# trailing colons and then remove the whole line if VPATH becomes empty
5987# (actually we leave an empty line to preserve line numbers).
5988if test "x$srcdir" = x.; then
5989 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5990h
5991s///
5992s/^/:/
5993s/[ ]*$/:/
5994s/:\$(srcdir):/:/g
5995s/:\${srcdir}:/:/g
5996s/:@srcdir@:/:/g
5997s/^:*//
5998s/:*$//
5999x
6000s/\(=[ ]*\).*/\1/
6001G
6002s/\n//
6003s/^[^=]*=[ ]*$//
6004}'
6005fi
jfigusa14b5a02013-03-29 12:24:12 -04006006
jfigusc7e66e32013-05-08 11:32:55 -04006007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006008fi # test -n "$CONFIG_FILES"
6009
jfigusc7e66e32013-05-08 11:32:55 -04006010# Set up the scripts for CONFIG_HEADERS section.
6011# No need to generate them if there are no CONFIG_HEADERS.
6012# This happens for instance with `./config.status Makefile'.
6013if test -n "$CONFIG_HEADERS"; then
6014cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6015BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00006016_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006017
6018# Transform confdefs.h into an awk script `defines.awk', embedded as
6019# here-document in config.status, that substitutes the proper values into
6020# config.h.in to produce config.h.
6021
6022# Create a delimiter string that does not exist in confdefs.h, to ease
6023# handling of long lines.
6024ac_delim='%!_!# '
6025for ac_last_try in false false :; do
6026 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6027 if test -z "$ac_tt"; then
6028 break
6029 elif $ac_last_try; then
6030 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6031 else
6032 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6033 fi
6034done
6035
6036# For the awk script, D is an array of macro values keyed by name,
6037# likewise P contains macro parameters if any. Preserve backslash
6038# newline sequences.
6039
6040ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6041sed -n '
6042s/.\{148\}/&'"$ac_delim"'/g
6043t rset
6044:rset
6045s/^[ ]*#[ ]*define[ ][ ]*/ /
6046t def
6047d
6048:def
6049s/\\$//
6050t bsnl
6051s/["\\]/\\&/g
6052s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6053D["\1"]=" \3"/p
6054s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6055d
6056:bsnl
6057s/["\\]/\\&/g
6058s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6059D["\1"]=" \3\\\\\\n"\\/p
6060t cont
6061s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6062t cont
6063d
6064:cont
6065n
6066s/.\{148\}/&'"$ac_delim"'/g
6067t clear
6068:clear
6069s/\\$//
6070t bsnlc
6071s/["\\]/\\&/g; s/^/"/; s/$/"/p
6072d
6073:bsnlc
6074s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6075b cont
6076' <confdefs.h | sed '
6077s/'"$ac_delim"'/"\\\
6078"/g' >>$CONFIG_STATUS || ac_write_fail=1
6079
6080cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6081 for (key in D) D_is_set[key] = 1
6082 FS = ""
6083}
6084/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6085 line = \$ 0
6086 split(line, arg, " ")
6087 if (arg[1] == "#") {
6088 defundef = arg[2]
6089 mac1 = arg[3]
6090 } else {
6091 defundef = substr(arg[1], 2)
6092 mac1 = arg[2]
6093 }
6094 split(mac1, mac2, "(") #)
6095 macro = mac2[1]
6096 prefix = substr(line, 1, index(line, defundef) - 1)
6097 if (D_is_set[macro]) {
6098 # Preserve the white space surrounding the "#".
6099 print prefix "define", macro P[macro] D[macro]
6100 next
6101 } else {
6102 # Replace #undef with comments. This is necessary, for example,
6103 # in the case of _POSIX_SOURCE, which is predefined and required
6104 # on some systems where configure will not decide to define it.
6105 if (defundef == "undef") {
6106 print "/*", prefix defundef, macro, "*/"
6107 next
6108 }
6109 }
6110}
6111{ print }
6112_ACAWK
6113_ACEOF
6114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6115 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6116fi # test -n "$CONFIG_HEADERS"
6117
6118
6119eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6120shift
6121for ac_tag
6122do
6123 case $ac_tag in
6124 :[FHLC]) ac_mode=$ac_tag; continue;;
6125 esac
6126 case $ac_mode$ac_tag in
6127 :[FHL]*:*);;
6128 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6129 :[FH]-) ac_tag=-:-;;
6130 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6131 esac
6132 ac_save_IFS=$IFS
6133 IFS=:
6134 set x $ac_tag
6135 IFS=$ac_save_IFS
6136 shift
6137 ac_file=$1
6138 shift
6139
6140 case $ac_mode in
6141 :L) ac_source=$1;;
6142 :[FH])
6143 ac_file_inputs=
6144 for ac_f
6145 do
6146 case $ac_f in
6147 -) ac_f="$ac_tmp/stdin";;
6148 *) # Look for the file first in the build tree, then in the source tree
6149 # (if the path is not absolute). The absolute path cannot be DOS-style,
6150 # because $ac_f cannot contain `:'.
6151 test -f "$ac_f" ||
6152 case $ac_f in
6153 [\\/$]*) false;;
6154 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6155 esac ||
6156 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6157 esac
6158 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6159 as_fn_append ac_file_inputs " '$ac_f'"
6160 done
6161
6162 # Let's still pretend it is `configure' which instantiates (i.e., don't
6163 # use $as_me), people would be surprised to read:
6164 # /* config.h. Generated by config.status. */
6165 configure_input='Generated from '`
6166 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6167 `' by configure.'
6168 if test x"$ac_file" != x-; then
6169 configure_input="$ac_file. $configure_input"
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6171$as_echo "$as_me: creating $ac_file" >&6;}
6172 fi
6173 # Neutralize special characters interpreted by sed in replacement strings.
6174 case $configure_input in #(
6175 *\&* | *\|* | *\\* )
6176 ac_sed_conf_input=`$as_echo "$configure_input" |
6177 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6178 *) ac_sed_conf_input=$configure_input;;
6179 esac
6180
6181 case $ac_tag in
6182 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6183 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6184 esac
6185 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006186 esac
6187
jfigusc7e66e32013-05-08 11:32:55 -04006188 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006189$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006190 X"$ac_file" : 'X\(//\)[^/]' \| \
6191 X"$ac_file" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006192 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6193$as_echo X"$ac_file" |
6194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6195 s//\1/
6196 q
6197 }
6198 /^X\(\/\/\)[^/].*/{
6199 s//\1/
6200 q
6201 }
6202 /^X\(\/\/\)$/{
6203 s//\1/
6204 q
6205 }
6206 /^X\(\/\).*/{
6207 s//\1/
6208 q
6209 }
6210 s/.*/./; q'`
6211 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006212 ac_builddir=.
6213
jfigusc7e66e32013-05-08 11:32:55 -04006214case "$ac_dir" in
6215.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6216*)
6217 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6218 # A ".." for each directory in $ac_dir_suffix.
6219 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6220 case $ac_top_builddir_sub in
6221 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6222 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6223 esac ;;
6224esac
6225ac_abs_top_builddir=$ac_pwd
6226ac_abs_builddir=$ac_pwd$ac_dir_suffix
6227# for backward compatibility:
6228ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00006229
6230case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04006231 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00006232 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04006233 ac_top_srcdir=$ac_top_builddir_sub
6234 ac_abs_top_srcdir=$ac_pwd ;;
6235 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00006236 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04006237 ac_top_srcdir=$srcdir
6238 ac_abs_top_srcdir=$srcdir ;;
6239 *) # Relative name.
6240 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6241 ac_top_srcdir=$ac_top_build_prefix$srcdir
6242 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006243esac
jfigusc7e66e32013-05-08 11:32:55 -04006244ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00006245
Cullen Jennings235513a2005-09-21 22:51:36 +00006246
jfigusc7e66e32013-05-08 11:32:55 -04006247 case $ac_mode in
6248 :F)
6249 #
6250 # CONFIG_FILE
6251 #
Cullen Jennings235513a2005-09-21 22:51:36 +00006252
David McGrewb67061f2005-09-28 14:23:06 +00006253 case $INSTALL in
6254 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusc7e66e32013-05-08 11:32:55 -04006255 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00006256 esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006257_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006258
6259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6260# If the template does not know about datarootdir, expand it.
6261# FIXME: This hack should be removed a few years after 2.60.
6262ac_datarootdir_hack=; ac_datarootdir_seen=
6263ac_sed_dataroot='
6264/datarootdir/ {
6265 p
6266 q
6267}
6268/@datadir@/p
6269/@docdir@/p
6270/@infodir@/p
6271/@localedir@/p
6272/@mandir@/p'
6273case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6274*datarootdir*) ac_datarootdir_seen=yes;;
6275*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6277$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6278_ACEOF
6279cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6280 ac_datarootdir_hack='
6281 s&@datadir@&$datadir&g
6282 s&@docdir@&$docdir&g
6283 s&@infodir@&$infodir&g
6284 s&@localedir@&$localedir&g
6285 s&@mandir@&$mandir&g
6286 s&\\\${datarootdir}&$datarootdir&g' ;;
6287esac
6288_ACEOF
6289
6290# Neutralize VPATH when `$srcdir' = `.'.
6291# Shell code in configure.ac might set extrasub.
6292# FIXME: do we really want to maintain this feature?
6293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6294ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00006295$extrasub
6296_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006298:t
6299/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusc7e66e32013-05-08 11:32:55 -04006300s|@configure_input@|$ac_sed_conf_input|;t t
6301s&@top_builddir@&$ac_top_builddir_sub&;t t
6302s&@top_build_prefix@&$ac_top_build_prefix&;t t
6303s&@srcdir@&$ac_srcdir&;t t
6304s&@abs_srcdir@&$ac_abs_srcdir&;t t
6305s&@top_srcdir@&$ac_top_srcdir&;t t
6306s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6307s&@builddir@&$ac_builddir&;t t
6308s&@abs_builddir@&$ac_abs_builddir&;t t
6309s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6310s&@INSTALL@&$ac_INSTALL&;t t
6311$ac_datarootdir_hack
6312"
6313eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6314 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00006315
jfigusc7e66e32013-05-08 11:32:55 -04006316test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6317 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6318 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6319 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6321which seems to be undefined. Please make sure it is defined" >&5
6322$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6323which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006324
jfigusc7e66e32013-05-08 11:32:55 -04006325 rm -f "$ac_tmp/stdin"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006326 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04006327 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6328 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6329 esac \
6330 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6331 ;;
6332 :H)
6333 #
6334 # CONFIG_HEADER
6335 #
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006336 if test x"$ac_file" != x-; then
jfigusc7e66e32013-05-08 11:32:55 -04006337 {
6338 $as_echo "/* $configure_input */" \
6339 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6340 } >"$ac_tmp/config.h" \
6341 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6342 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6344$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006345 else
jfigusc7e66e32013-05-08 11:32:55 -04006346 rm -f "$ac_file"
6347 mv "$ac_tmp/config.h" "$ac_file" \
6348 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006349 fi
6350 else
jfigusc7e66e32013-05-08 11:32:55 -04006351 $as_echo "/* $configure_input */" \
6352 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6353 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006354 fi
jfigusc7e66e32013-05-08 11:32:55 -04006355 ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006356
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006357
jfigusc7e66e32013-05-08 11:32:55 -04006358 esac
6359
6360done # for ac_tag
6361
6362
6363as_fn_exit 0
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006364_ACEOF
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006365ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04006366
jfigusc7e66e32013-05-08 11:32:55 -04006367test $ac_write_fail = 0 ||
6368 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6369
Cullen Jennings235513a2005-09-21 22:51:36 +00006370
6371# configure is writing to config.log, and then calls config.status.
6372# config.status does its own redirection, appending to config.log.
6373# Unfortunately, on DOS this fails, as config.log is still kept open
6374# by configure, so config.status won't be able to write to it; its
6375# output is simply discarded. So we exec the FD to /dev/null,
6376# effectively closing config.log, so it can be properly (re)opened and
6377# appended to by config.status. When coming back to configure, we
6378# need to make the FD available again.
6379if test "$no_create" != yes; then
6380 ac_cs_success=:
6381 ac_config_status_args=
6382 test "$silent" = yes &&
6383 ac_config_status_args="$ac_config_status_args --quiet"
6384 exec 5>/dev/null
6385 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6386 exec 5>>config.log
6387 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6388 # would make configure fail if this is the last instruction.
jfigusc7e66e32013-05-08 11:32:55 -04006389 $ac_cs_success || as_fn_exit 1
6390fi
6391if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6393$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006394fi
6395
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00006396
6397# This is needed when building outside the source dir.
jfigusc7e66e32013-05-08 11:32:55 -04006398as_dir=crypto/cipher; as_fn_mkdir_p
6399as_dir=crypto/hash; as_fn_mkdir_p
6400as_dir=crypto/kernel; as_fn_mkdir_p
6401as_dir=crypto/math; as_fn_mkdir_p
6402as_dir=crypto/replay; as_fn_mkdir_p
6403as_dir=crypto/rng; as_fn_mkdir_p
6404as_dir=crypto/test; as_fn_mkdir_p
6405as_dir=doc; as_fn_mkdir_p
6406as_dir=srtp; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04006407as_dir=test; as_fn_mkdir_p