blob: 2bbc1ab64c53a9d9fcedf9fc93a37c6fa10aae23 [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 -0400630AES_ICM_OBJS
631USE_OPENSSL
632EXE
633host_os
634host_vendor
635host_cpu
636host
637build_os
638build_vendor
639build_cpu
640build
641EGREP
642GREP
643CPP
644INSTALL_DATA
645INSTALL_SCRIPT
646INSTALL_PROGRAM
647OBJEXT
648EXEEXT
649ac_ct_CC
650CPPFLAGS
651LDFLAGS
652CFLAGS
653CC
654RANLIB
655target_alias
656host_alias
657build_alias
658LIBS
659ECHO_T
660ECHO_N
661ECHO_C
662DEFS
663mandir
664localedir
665libdir
666psdir
667pdfdir
668dvidir
669htmldir
670infodir
671docdir
672oldincludedir
673includedir
674localstatedir
675sharedstatedir
676sysconfdir
677datadir
678datarootdir
679libexecdir
680sbindir
681bindir
682program_transform_name
683prefix
684exec_prefix
685PACKAGE_URL
686PACKAGE_BUGREPORT
687PACKAGE_STRING
688PACKAGE_VERSION
689PACKAGE_TARNAME
690PACKAGE_NAME
691PATH_SEPARATOR
692SHELL'
Cullen Jennings235513a2005-09-21 22:51:36 +0000693ac_subst_files=''
jfigusc7e66e32013-05-08 11:32:55 -0400694ac_user_opts='
695enable_option_checking
jfigusc7e66e32013-05-08 11:32:55 -0400696enable_debug
697enable_generic_aesicm
698enable_openssl
jfigusc7e66e32013-05-08 11:32:55 -0400699enable_stdout
700enable_console
jfigusc7e66e32013-05-08 11:32:55 -0400701'
702 ac_precious_vars='build_alias
703host_alias
704target_alias
705CC
706CFLAGS
707LDFLAGS
708LIBS
709CPPFLAGS
710CPP'
711
Cullen Jennings235513a2005-09-21 22:51:36 +0000712
713# Initialize some variables set by options.
714ac_init_help=
715ac_init_version=false
jfigusc7e66e32013-05-08 11:32:55 -0400716ac_unrecognized_opts=
717ac_unrecognized_sep=
Cullen Jennings235513a2005-09-21 22:51:36 +0000718# The variables have the same names as the options, with
719# dashes changed to underlines.
720cache_file=/dev/null
721exec_prefix=NONE
722no_create=
723no_recursion=
724prefix=NONE
725program_prefix=NONE
726program_suffix=NONE
727program_transform_name=s,x,x,
728silent=
729site=
730srcdir=
731verbose=
732x_includes=NONE
733x_libraries=NONE
734
735# Installation directory options.
736# These are left unexpanded so users can "make install exec_prefix=/foo"
737# and all the variables that are supposed to be based on exec_prefix
738# by default will actually change.
739# Use braces instead of parens because sh, perl, etc. also accept them.
jfigusc7e66e32013-05-08 11:32:55 -0400740# (The list follows the same order as the GNU Coding Standards.)
Cullen Jennings235513a2005-09-21 22:51:36 +0000741bindir='${exec_prefix}/bin'
742sbindir='${exec_prefix}/sbin'
743libexecdir='${exec_prefix}/libexec'
jfigusc7e66e32013-05-08 11:32:55 -0400744datarootdir='${prefix}/share'
745datadir='${datarootdir}'
Cullen Jennings235513a2005-09-21 22:51:36 +0000746sysconfdir='${prefix}/etc'
747sharedstatedir='${prefix}/com'
748localstatedir='${prefix}/var'
Cullen Jennings235513a2005-09-21 22:51:36 +0000749includedir='${prefix}/include'
750oldincludedir='/usr/include'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200751docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
jfigusc7e66e32013-05-08 11:32:55 -0400752infodir='${datarootdir}/info'
753htmldir='${docdir}'
754dvidir='${docdir}'
755pdfdir='${docdir}'
756psdir='${docdir}'
757libdir='${exec_prefix}/lib'
758localedir='${datarootdir}/locale'
759mandir='${datarootdir}/man'
Cullen Jennings235513a2005-09-21 22:51:36 +0000760
761ac_prev=
jfigusc7e66e32013-05-08 11:32:55 -0400762ac_dashdash=
Cullen Jennings235513a2005-09-21 22:51:36 +0000763for ac_option
764do
765 # If the previous option needs an argument, assign it.
766 if test -n "$ac_prev"; then
jfigusc7e66e32013-05-08 11:32:55 -0400767 eval $ac_prev=\$ac_option
Cullen Jennings235513a2005-09-21 22:51:36 +0000768 ac_prev=
769 continue
770 fi
771
jfigusc7e66e32013-05-08 11:32:55 -0400772 case $ac_option in
773 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
774 *=) ac_optarg= ;;
775 *) ac_optarg=yes ;;
776 esac
Cullen Jennings235513a2005-09-21 22:51:36 +0000777
778 # Accept the important Cygnus configure options, so we can diagnose typos.
779
jfigusc7e66e32013-05-08 11:32:55 -0400780 case $ac_dashdash$ac_option in
781 --)
782 ac_dashdash=yes ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000783
784 -bindir | --bindir | --bindi | --bind | --bin | --bi)
785 ac_prev=bindir ;;
786 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
787 bindir=$ac_optarg ;;
788
789 -build | --build | --buil | --bui | --bu)
790 ac_prev=build_alias ;;
791 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
792 build_alias=$ac_optarg ;;
793
794 -cache-file | --cache-file | --cache-fil | --cache-fi \
795 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
796 ac_prev=cache_file ;;
797 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
798 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
799 cache_file=$ac_optarg ;;
800
801 --config-cache | -C)
802 cache_file=config.cache ;;
803
jfigusc7e66e32013-05-08 11:32:55 -0400804 -datadir | --datadir | --datadi | --datad)
Cullen Jennings235513a2005-09-21 22:51:36 +0000805 ac_prev=datadir ;;
jfigusc7e66e32013-05-08 11:32:55 -0400806 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000807 datadir=$ac_optarg ;;
808
jfigusc7e66e32013-05-08 11:32:55 -0400809 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
810 | --dataroo | --dataro | --datar)
811 ac_prev=datarootdir ;;
812 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
813 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
814 datarootdir=$ac_optarg ;;
815
Cullen Jennings235513a2005-09-21 22:51:36 +0000816 -disable-* | --disable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400817 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000818 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400819 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
820 as_fn_error $? "invalid feature name: $ac_useropt"
821 ac_useropt_orig=$ac_useropt
822 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
823 case $ac_user_opts in
824 *"
825"enable_$ac_useropt"
826"*) ;;
827 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
828 ac_unrecognized_sep=', ';;
829 esac
830 eval enable_$ac_useropt=no ;;
831
832 -docdir | --docdir | --docdi | --doc | --do)
833 ac_prev=docdir ;;
834 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
835 docdir=$ac_optarg ;;
836
837 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
838 ac_prev=dvidir ;;
839 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
840 dvidir=$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000841
842 -enable-* | --enable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400843 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000844 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400845 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
846 as_fn_error $? "invalid feature name: $ac_useropt"
847 ac_useropt_orig=$ac_useropt
848 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
849 case $ac_user_opts in
850 *"
851"enable_$ac_useropt"
852"*) ;;
853 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
854 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000855 esac
jfigusc7e66e32013-05-08 11:32:55 -0400856 eval enable_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000857
858 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
859 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
860 | --exec | --exe | --ex)
861 ac_prev=exec_prefix ;;
862 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
863 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
864 | --exec=* | --exe=* | --ex=*)
865 exec_prefix=$ac_optarg ;;
866
867 -gas | --gas | --ga | --g)
868 # Obsolete; use --with-gas.
869 with_gas=yes ;;
870
871 -help | --help | --hel | --he | -h)
872 ac_init_help=long ;;
873 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
874 ac_init_help=recursive ;;
875 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
876 ac_init_help=short ;;
877
878 -host | --host | --hos | --ho)
879 ac_prev=host_alias ;;
880 -host=* | --host=* | --hos=* | --ho=*)
881 host_alias=$ac_optarg ;;
882
jfigusc7e66e32013-05-08 11:32:55 -0400883 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
884 ac_prev=htmldir ;;
885 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
886 | --ht=*)
887 htmldir=$ac_optarg ;;
888
Cullen Jennings235513a2005-09-21 22:51:36 +0000889 -includedir | --includedir | --includedi | --included | --include \
890 | --includ | --inclu | --incl | --inc)
891 ac_prev=includedir ;;
892 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
893 | --includ=* | --inclu=* | --incl=* | --inc=*)
894 includedir=$ac_optarg ;;
895
896 -infodir | --infodir | --infodi | --infod | --info | --inf)
897 ac_prev=infodir ;;
898 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
899 infodir=$ac_optarg ;;
900
901 -libdir | --libdir | --libdi | --libd)
902 ac_prev=libdir ;;
903 -libdir=* | --libdir=* | --libdi=* | --libd=*)
904 libdir=$ac_optarg ;;
905
906 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
907 | --libexe | --libex | --libe)
908 ac_prev=libexecdir ;;
909 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
910 | --libexe=* | --libex=* | --libe=*)
911 libexecdir=$ac_optarg ;;
912
jfigusc7e66e32013-05-08 11:32:55 -0400913 -localedir | --localedir | --localedi | --localed | --locale)
914 ac_prev=localedir ;;
915 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
916 localedir=$ac_optarg ;;
917
Cullen Jennings235513a2005-09-21 22:51:36 +0000918 -localstatedir | --localstatedir | --localstatedi | --localstated \
jfigusc7e66e32013-05-08 11:32:55 -0400919 | --localstate | --localstat | --localsta | --localst | --locals)
Cullen Jennings235513a2005-09-21 22:51:36 +0000920 ac_prev=localstatedir ;;
921 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
jfigusc7e66e32013-05-08 11:32:55 -0400922 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000923 localstatedir=$ac_optarg ;;
924
925 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
926 ac_prev=mandir ;;
927 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
928 mandir=$ac_optarg ;;
929
930 -nfp | --nfp | --nf)
931 # Obsolete; use --without-fp.
932 with_fp=no ;;
933
934 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
935 | --no-cr | --no-c | -n)
936 no_create=yes ;;
937
938 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
939 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
940 no_recursion=yes ;;
941
942 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
943 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
944 | --oldin | --oldi | --old | --ol | --o)
945 ac_prev=oldincludedir ;;
946 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
947 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
948 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
949 oldincludedir=$ac_optarg ;;
950
951 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
952 ac_prev=prefix ;;
953 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
954 prefix=$ac_optarg ;;
955
956 -program-prefix | --program-prefix | --program-prefi | --program-pref \
957 | --program-pre | --program-pr | --program-p)
958 ac_prev=program_prefix ;;
959 -program-prefix=* | --program-prefix=* | --program-prefi=* \
960 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
961 program_prefix=$ac_optarg ;;
962
963 -program-suffix | --program-suffix | --program-suffi | --program-suff \
964 | --program-suf | --program-su | --program-s)
965 ac_prev=program_suffix ;;
966 -program-suffix=* | --program-suffix=* | --program-suffi=* \
967 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
968 program_suffix=$ac_optarg ;;
969
970 -program-transform-name | --program-transform-name \
971 | --program-transform-nam | --program-transform-na \
972 | --program-transform-n | --program-transform- \
973 | --program-transform | --program-transfor \
974 | --program-transfo | --program-transf \
975 | --program-trans | --program-tran \
976 | --progr-tra | --program-tr | --program-t)
977 ac_prev=program_transform_name ;;
978 -program-transform-name=* | --program-transform-name=* \
979 | --program-transform-nam=* | --program-transform-na=* \
980 | --program-transform-n=* | --program-transform-=* \
981 | --program-transform=* | --program-transfor=* \
982 | --program-transfo=* | --program-transf=* \
983 | --program-trans=* | --program-tran=* \
984 | --progr-tra=* | --program-tr=* | --program-t=*)
985 program_transform_name=$ac_optarg ;;
986
jfigusc7e66e32013-05-08 11:32:55 -0400987 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
988 ac_prev=pdfdir ;;
989 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
990 pdfdir=$ac_optarg ;;
991
992 -psdir | --psdir | --psdi | --psd | --ps)
993 ac_prev=psdir ;;
994 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
995 psdir=$ac_optarg ;;
996
Cullen Jennings235513a2005-09-21 22:51:36 +0000997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
998 | -silent | --silent | --silen | --sile | --sil)
999 silent=yes ;;
1000
1001 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1002 ac_prev=sbindir ;;
1003 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1004 | --sbi=* | --sb=*)
1005 sbindir=$ac_optarg ;;
1006
1007 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1008 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1009 | --sharedst | --shareds | --shared | --share | --shar \
1010 | --sha | --sh)
1011 ac_prev=sharedstatedir ;;
1012 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1013 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1014 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1015 | --sha=* | --sh=*)
1016 sharedstatedir=$ac_optarg ;;
1017
1018 -site | --site | --sit)
1019 ac_prev=site ;;
1020 -site=* | --site=* | --sit=*)
1021 site=$ac_optarg ;;
1022
1023 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1024 ac_prev=srcdir ;;
1025 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1026 srcdir=$ac_optarg ;;
1027
1028 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1029 | --syscon | --sysco | --sysc | --sys | --sy)
1030 ac_prev=sysconfdir ;;
1031 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1032 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1033 sysconfdir=$ac_optarg ;;
1034
1035 -target | --target | --targe | --targ | --tar | --ta | --t)
1036 ac_prev=target_alias ;;
1037 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1038 target_alias=$ac_optarg ;;
1039
1040 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1041 verbose=yes ;;
1042
1043 -version | --version | --versio | --versi | --vers | -V)
1044 ac_init_version=: ;;
1045
1046 -with-* | --with-*)
jfigusc7e66e32013-05-08 11:32:55 -04001047 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001048 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050 as_fn_error $? "invalid package name: $ac_useropt"
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1054 *"
1055"with_$ac_useropt"
1056"*) ;;
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +00001059 esac
jfigusc7e66e32013-05-08 11:32:55 -04001060 eval with_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001061
1062 -without-* | --without-*)
jfigusc7e66e32013-05-08 11:32:55 -04001063 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001064 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error $? "invalid package name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1070 *"
1071"with_$ac_useropt"
1072"*) ;;
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1075 esac
1076 eval with_$ac_useropt=no ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001077
1078 --x)
1079 # Obsolete; use --with-x.
1080 with_x=yes ;;
1081
1082 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1083 | --x-incl | --x-inc | --x-in | --x-i)
1084 ac_prev=x_includes ;;
1085 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1086 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1087 x_includes=$ac_optarg ;;
1088
1089 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1090 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1091 ac_prev=x_libraries ;;
1092 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1093 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1094 x_libraries=$ac_optarg ;;
1095
jfigusc7e66e32013-05-08 11:32:55 -04001096 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1097Try \`$0 --help' for more information"
Cullen Jennings235513a2005-09-21 22:51:36 +00001098 ;;
1099
1100 *=*)
1101 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1102 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001103 case $ac_envvar in #(
1104 '' | [0-9]* | *[!_$as_cr_alnum]* )
1105 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1106 esac
1107 eval $ac_envvar=\$ac_optarg
Cullen Jennings235513a2005-09-21 22:51:36 +00001108 export $ac_envvar ;;
1109
1110 *)
1111 # FIXME: should be removed in autoconf 3.0.
jfigusc7e66e32013-05-08 11:32:55 -04001112 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Cullen Jennings235513a2005-09-21 22:51:36 +00001113 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jfigusc7e66e32013-05-08 11:32:55 -04001114 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1115 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Cullen Jennings235513a2005-09-21 22:51:36 +00001116 ;;
1117
1118 esac
1119done
1120
1121if test -n "$ac_prev"; then
1122 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jfigusc7e66e32013-05-08 11:32:55 -04001123 as_fn_error $? "missing argument to $ac_option"
Cullen Jennings235513a2005-09-21 22:51:36 +00001124fi
1125
jfigusc7e66e32013-05-08 11:32:55 -04001126if test -n "$ac_unrecognized_opts"; then
1127 case $enable_option_checking in
1128 no) ;;
1129 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1130 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001131 esac
jfigusc7e66e32013-05-08 11:32:55 -04001132fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001133
jfigusc7e66e32013-05-08 11:32:55 -04001134# Check all directory arguments for consistency.
1135for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001139do
jfigusc7e66e32013-05-08 11:32:55 -04001140 eval ac_val=\$$ac_var
1141 # Remove trailing slashes.
jfigusa14b5a02013-03-29 12:24:12 -04001142 case $ac_val in
jfigusc7e66e32013-05-08 11:32:55 -04001143 */ )
1144 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1145 eval $ac_var=\$ac_val;;
jfigusa14b5a02013-03-29 12:24:12 -04001146 esac
jfigusc7e66e32013-05-08 11:32:55 -04001147 # Be sure to have absolute directory names.
1148 case $ac_val in
1149 [\\/$]* | ?:[\\/]* ) continue;;
1150 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1151 esac
1152 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Cullen Jennings235513a2005-09-21 22:51:36 +00001153done
1154
1155# There might be people who depend on the old broken behavior: `$host'
1156# used to hold the argument of --host etc.
1157# FIXME: To remove some day.
1158build=$build_alias
1159host=$host_alias
1160target=$target_alias
1161
1162# FIXME: To remove some day.
1163if test "x$host_alias" != x; then
1164 if test "x$build_alias" = x; then
1165 cross_compiling=maybe
Cullen Jennings235513a2005-09-21 22:51:36 +00001166 elif test "x$build_alias" != "x$host_alias"; then
1167 cross_compiling=yes
1168 fi
1169fi
1170
1171ac_tool_prefix=
1172test -n "$host_alias" && ac_tool_prefix=$host_alias-
1173
1174test "$silent" = yes && exec 6>/dev/null
1175
1176
jfigusc7e66e32013-05-08 11:32:55 -04001177ac_pwd=`pwd` && test -n "$ac_pwd" &&
1178ac_ls_di=`ls -di .` &&
1179ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1180 as_fn_error $? "working directory cannot be determined"
1181test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1182 as_fn_error $? "pwd does not report name of working directory"
1183
1184
Cullen Jennings235513a2005-09-21 22:51:36 +00001185# Find the source files, if location was not specified.
1186if test -z "$srcdir"; then
1187 ac_srcdir_defaulted=yes
jfigusc7e66e32013-05-08 11:32:55 -04001188 # Try the directory containing this script, then the parent directory.
1189 ac_confdir=`$as_dirname -- "$as_myself" ||
1190$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1191 X"$as_myself" : 'X\(//\)[^/]' \| \
1192 X"$as_myself" : 'X\(//\)$' \| \
1193 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1194$as_echo X"$as_myself" |
1195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1196 s//\1/
1197 q
1198 }
1199 /^X\(\/\/\)[^/].*/{
1200 s//\1/
1201 q
1202 }
1203 /^X\(\/\/\)$/{
1204 s//\1/
1205 q
1206 }
1207 /^X\(\/\).*/{
1208 s//\1/
1209 q
1210 }
1211 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001212 srcdir=$ac_confdir
jfigusc7e66e32013-05-08 11:32:55 -04001213 if test ! -r "$srcdir/$ac_unique_file"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00001214 srcdir=..
1215 fi
1216else
1217 ac_srcdir_defaulted=no
1218fi
jfigusc7e66e32013-05-08 11:32:55 -04001219if test ! -r "$srcdir/$ac_unique_file"; then
1220 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1221 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Cullen Jennings235513a2005-09-21 22:51:36 +00001222fi
jfigusc7e66e32013-05-08 11:32:55 -04001223ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1224ac_abs_confdir=`(
1225 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1226 pwd)`
1227# When building in place, set srcdir=.
1228if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 srcdir=.
1230fi
1231# Remove unnecessary trailing slashes from srcdir.
1232# Double slashes in file names in object file debugging info
1233# mess up M-x gdb in Emacs.
1234case $srcdir in
1235*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236esac
1237for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242done
Cullen Jennings235513a2005-09-21 22:51:36 +00001243
1244#
1245# Report the --help message.
1246#
1247if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1250 cat <<_ACEOF
jfigusd196e022014-11-20 16:43:44 -05001251\`configure' configures libsrtp2 2.0.0-pre to adapt to many kinds of systems.
Cullen Jennings235513a2005-09-21 22:51:36 +00001252
1253Usage: $0 [OPTION]... [VAR=VALUE]...
1254
1255To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256VAR=VALUE. See below for descriptions of some of the useful variables.
1257
1258Defaults for the options are specified in brackets.
1259
1260Configuration:
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
jfigusc7e66e32013-05-08 11:32:55 -04001265 -q, --quiet, --silent do not print \`checking ...' messages
Cullen Jennings235513a2005-09-21 22:51:36 +00001266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1270
Cullen Jennings235513a2005-09-21 22:51:36 +00001271Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001273 [$ac_default_prefix]
Cullen Jennings235513a2005-09-21 22:51:36 +00001274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001275 [PREFIX]
Cullen Jennings235513a2005-09-21 22:51:36 +00001276
1277By default, \`make install' will install all the files in
1278\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280for instance \`--prefix=\$HOME'.
1281
1282For better control, use the options below.
1283
1284Fine tuning of the installation directories:
jfigusc7e66e32013-05-08 11:32:55 -04001285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
jfigusd196e022014-11-20 16:43:44 -05001299 --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp2]
jfigusc7e66e32013-05-08 11:32:55 -04001300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
Cullen Jennings235513a2005-09-21 22:51:36 +00001304_ACEOF
1305
1306 cat <<\_ACEOF
1307
1308System types:
1309 --build=BUILD configure for building on BUILD [guessed]
1310 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1311_ACEOF
1312fi
1313
1314if test -n "$ac_init_help"; then
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001315 case $ac_init_help in
jfigusd196e022014-11-20 16:43:44 -05001316 short | recursive ) echo "Configuration of libsrtp2 2.0.0-pre:";;
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001317 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00001318 cat <<\_ACEOF
1319
1320Optional Features:
jfigusc7e66e32013-05-08 11:32:55 -04001321 --disable-option-checking ignore unrecognized --enable/--with options
Cullen Jennings235513a2005-09-21 22:51:36 +00001322 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1323 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
David McGrewb67061f2005-09-28 14:23:06 +00001324 --disable-debug do not compile in dynamic debugging system
1325 --enable-generic-aesicm compile in changes for ISMAcryp
jfigusc7e66e32013-05-08 11:32:55 -04001326 --enable-openssl compile in OpenSSL crypto engine
jfigus97a80f42014-11-04 14:15:40 -05001327 --enable-stdout use stdout for debug/error reporting
David McGrewb67061f2005-09-28 14:23:06 +00001328 --enable-console use /dev/console for error reporting
Cullen Jennings235513a2005-09-21 22:51:36 +00001329
1330Some influential environment variables:
1331 CC C compiler command
1332 CFLAGS C compiler flags
1333 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1334 nonstandard directory <lib dir>
jfigusc7e66e32013-05-08 11:32:55 -04001335 LIBS libraries to pass to the linker, e.g. -l<library>
1336 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1337 you have headers in a nonstandard directory <include dir>
Cullen Jennings235513a2005-09-21 22:51:36 +00001338 CPP C preprocessor
1339
1340Use these variables to override the choices made by `configure' or to help
1341it to find libraries and programs with nonstandard names/locations.
1342
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001343Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00001344_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001345ac_status=$?
Cullen Jennings235513a2005-09-21 22:51:36 +00001346fi
1347
1348if test "$ac_init_help" = "recursive"; then
1349 # If there are subdirs, report their specific --help.
Cullen Jennings235513a2005-09-21 22:51:36 +00001350 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jfigusc7e66e32013-05-08 11:32:55 -04001351 test -d "$ac_dir" ||
1352 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1353 continue
Cullen Jennings235513a2005-09-21 22:51:36 +00001354 ac_builddir=.
1355
jfigusc7e66e32013-05-08 11:32:55 -04001356case "$ac_dir" in
1357.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1358*)
1359 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1360 # A ".." for each directory in $ac_dir_suffix.
1361 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1362 case $ac_top_builddir_sub in
1363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1365 esac ;;
1366esac
1367ac_abs_top_builddir=$ac_pwd
1368ac_abs_builddir=$ac_pwd$ac_dir_suffix
1369# for backward compatibility:
1370ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00001371
1372case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04001373 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00001374 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04001375 ac_top_srcdir=$ac_top_builddir_sub
1376 ac_abs_top_srcdir=$ac_pwd ;;
1377 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001378 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04001379 ac_top_srcdir=$srcdir
1380 ac_abs_top_srcdir=$srcdir ;;
1381 *) # Relative name.
1382 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1383 ac_top_srcdir=$ac_top_build_prefix$srcdir
1384 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001385esac
jfigusc7e66e32013-05-08 11:32:55 -04001386ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001387
jfigusc7e66e32013-05-08 11:32:55 -04001388 cd "$ac_dir" || { ac_status=$?; continue; }
1389 # Check for guested configure.
1390 if test -f "$ac_srcdir/configure.gnu"; then
1391 echo &&
1392 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1393 elif test -f "$ac_srcdir/configure"; then
1394 echo &&
1395 $SHELL "$ac_srcdir/configure" --help=recursive
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001396 else
jfigusc7e66e32013-05-08 11:32:55 -04001397 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1398 fi || ac_status=$?
1399 cd "$ac_pwd" || { ac_status=$?; break; }
Cullen Jennings235513a2005-09-21 22:51:36 +00001400 done
1401fi
1402
jfigusc7e66e32013-05-08 11:32:55 -04001403test -n "$ac_init_help" && exit $ac_status
Cullen Jennings235513a2005-09-21 22:51:36 +00001404if $ac_init_version; then
1405 cat <<\_ACEOF
jfigusd196e022014-11-20 16:43:44 -05001406libsrtp2 configure 2.0.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04001407generated by GNU Autoconf 2.69
Cullen Jennings235513a2005-09-21 22:51:36 +00001408
jfigusc7e66e32013-05-08 11:32:55 -04001409Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00001410This configure script is free software; the Free Software Foundation
1411gives unlimited permission to copy, distribute and modify it.
1412_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001413 exit
Cullen Jennings235513a2005-09-21 22:51:36 +00001414fi
jfigusc7e66e32013-05-08 11:32:55 -04001415
1416## ------------------------ ##
1417## Autoconf initialization. ##
1418## ------------------------ ##
1419
1420# ac_fn_c_try_compile LINENO
1421# --------------------------
1422# Try to compile conftest.$ac_ext, and return whether this succeeded.
1423ac_fn_c_try_compile ()
1424{
1425 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1426 rm -f conftest.$ac_objext
1427 if { { ac_try="$ac_compile"
1428case "(($ac_try" in
1429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1430 *) ac_try_echo=$ac_try;;
1431esac
1432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1433$as_echo "$ac_try_echo"; } >&5
1434 (eval "$ac_compile") 2>conftest.err
1435 ac_status=$?
1436 if test -s conftest.err; then
1437 grep -v '^ *+' conftest.err >conftest.er1
1438 cat conftest.er1 >&5
1439 mv -f conftest.er1 conftest.err
1440 fi
1441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1442 test $ac_status = 0; } && {
1443 test -z "$ac_c_werror_flag" ||
1444 test ! -s conftest.err
1445 } && test -s conftest.$ac_objext; then :
1446 ac_retval=0
1447else
1448 $as_echo "$as_me: failed program was:" >&5
1449sed 's/^/| /' conftest.$ac_ext >&5
1450
1451 ac_retval=1
1452fi
1453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1454 as_fn_set_status $ac_retval
1455
1456} # ac_fn_c_try_compile
1457
1458# ac_fn_c_try_run LINENO
1459# ----------------------
1460# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1461# that executables *can* be run.
1462ac_fn_c_try_run ()
1463{
1464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1465 if { { ac_try="$ac_link"
1466case "(($ac_try" in
1467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1468 *) ac_try_echo=$ac_try;;
1469esac
1470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1471$as_echo "$ac_try_echo"; } >&5
1472 (eval "$ac_link") 2>&5
1473 ac_status=$?
1474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1475 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1476 { { case "(($ac_try" in
1477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478 *) ac_try_echo=$ac_try;;
1479esac
1480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481$as_echo "$ac_try_echo"; } >&5
1482 (eval "$ac_try") 2>&5
1483 ac_status=$?
1484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1485 test $ac_status = 0; }; }; then :
1486 ac_retval=0
1487else
1488 $as_echo "$as_me: program exited with status $ac_status" >&5
1489 $as_echo "$as_me: failed program was:" >&5
1490sed 's/^/| /' conftest.$ac_ext >&5
1491
1492 ac_retval=$ac_status
1493fi
1494 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1495 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1496 as_fn_set_status $ac_retval
1497
1498} # ac_fn_c_try_run
1499
1500# ac_fn_c_try_cpp LINENO
1501# ----------------------
1502# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1503ac_fn_c_try_cpp ()
1504{
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 if { { ac_try="$ac_cpp conftest.$ac_ext"
1507case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510esac
1511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512$as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1514 ac_status=$?
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1519 fi
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } > conftest.i && {
1522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1524 }; then :
1525 ac_retval=0
1526else
1527 $as_echo "$as_me: failed program was:" >&5
1528sed 's/^/| /' conftest.$ac_ext >&5
1529
1530 ac_retval=1
1531fi
1532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533 as_fn_set_status $ac_retval
1534
1535} # ac_fn_c_try_cpp
1536
1537# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1538# -------------------------------------------------------
1539# Tests whether HEADER exists and can be compiled using the include files in
1540# INCLUDES, setting the cache variable VAR accordingly.
1541ac_fn_c_check_header_compile ()
1542{
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1545$as_echo_n "checking for $2... " >&6; }
1546if eval \${$3+:} false; then :
1547 $as_echo_n "(cached) " >&6
1548else
1549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1550/* end confdefs.h. */
1551$4
1552#include <$2>
1553_ACEOF
1554if ac_fn_c_try_compile "$LINENO"; then :
1555 eval "$3=yes"
1556else
1557 eval "$3=no"
1558fi
1559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1560fi
1561eval ac_res=\$$3
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1563$as_echo "$ac_res" >&6; }
1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565
1566} # ac_fn_c_check_header_compile
1567
1568# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1569# -------------------------------------------------------
1570# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1571# the include files in INCLUDES and setting the cache variable VAR
1572# accordingly.
1573ac_fn_c_check_header_mongrel ()
1574{
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 if eval \${$3+:} false; then :
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1578$as_echo_n "checking for $2... " >&6; }
1579if eval \${$3+:} false; then :
1580 $as_echo_n "(cached) " >&6
1581fi
1582eval ac_res=\$$3
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1584$as_echo "$ac_res" >&6; }
1585else
1586 # Is the header compilable?
1587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1588$as_echo_n "checking $2 usability... " >&6; }
1589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1590/* end confdefs.h. */
1591$4
1592#include <$2>
1593_ACEOF
1594if ac_fn_c_try_compile "$LINENO"; then :
1595 ac_header_compiler=yes
1596else
1597 ac_header_compiler=no
1598fi
1599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1601$as_echo "$ac_header_compiler" >&6; }
1602
1603# Is the header present?
1604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1605$as_echo_n "checking $2 presence... " >&6; }
1606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607/* end confdefs.h. */
1608#include <$2>
1609_ACEOF
1610if ac_fn_c_try_cpp "$LINENO"; then :
1611 ac_header_preproc=yes
1612else
1613 ac_header_preproc=no
1614fi
1615rm -f conftest.err conftest.i conftest.$ac_ext
1616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1617$as_echo "$ac_header_preproc" >&6; }
1618
1619# So? What about this header?
1620case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1621 yes:no: )
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1623$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1625$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1626 ;;
1627 no:yes:* )
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1629$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1631$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1633$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1635$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1637$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001638( $as_echo "## ------------------------------------------------------ ##
1639## Report this to https://github.com/cisco/libsrtp/issues ##
1640## ------------------------------------------------------ ##"
1641 ) | sed "s/^/$as_me: WARNING: /" >&2
jfigusc7e66e32013-05-08 11:32:55 -04001642 ;;
1643esac
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645$as_echo_n "checking for $2... " >&6; }
1646if eval \${$3+:} false; then :
1647 $as_echo_n "(cached) " >&6
1648else
1649 eval "$3=\$ac_header_compiler"
1650fi
1651eval ac_res=\$$3
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653$as_echo "$ac_res" >&6; }
1654fi
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
1657} # ac_fn_c_check_header_mongrel
1658
1659# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1660# -------------------------------------------
1661# Tests whether TYPE exists after having included INCLUDES, setting cache
1662# variable VAR accordingly.
1663ac_fn_c_check_type ()
1664{
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1667$as_echo_n "checking for $2... " >&6; }
1668if eval \${$3+:} false; then :
1669 $as_echo_n "(cached) " >&6
1670else
1671 eval "$3=no"
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673/* end confdefs.h. */
1674$4
1675int
1676main ()
1677{
1678if (sizeof ($2))
1679 return 0;
1680 ;
1681 return 0;
1682}
1683_ACEOF
1684if ac_fn_c_try_compile "$LINENO"; then :
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686/* end confdefs.h. */
1687$4
1688int
1689main ()
1690{
1691if (sizeof (($2)))
1692 return 0;
1693 ;
1694 return 0;
1695}
1696_ACEOF
1697if ac_fn_c_try_compile "$LINENO"; then :
1698
1699else
1700 eval "$3=yes"
1701fi
1702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1703fi
1704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1705fi
1706eval ac_res=\$$3
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708$as_echo "$ac_res" >&6; }
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710
1711} # ac_fn_c_check_type
1712
1713# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1714# --------------------------------------------
1715# Tries to find the compile-time value of EXPR in a program that includes
1716# INCLUDES, setting VAR accordingly. Returns whether the value could be
1717# computed
1718ac_fn_c_compute_int ()
1719{
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if test "$cross_compiling" = yes; then
1722 # Depending upon the size, compute the lo and hi bounds.
1723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724/* end confdefs.h. */
1725$4
1726int
1727main ()
1728{
1729static int test_array [1 - 2 * !(($2) >= 0)];
1730test_array [0] = 0;
1731return test_array [0];
1732
1733 ;
1734 return 0;
1735}
1736_ACEOF
1737if ac_fn_c_try_compile "$LINENO"; then :
1738 ac_lo=0 ac_mid=0
1739 while :; do
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741/* end confdefs.h. */
1742$4
1743int
1744main ()
1745{
1746static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1747test_array [0] = 0;
1748return test_array [0];
1749
1750 ;
1751 return 0;
1752}
1753_ACEOF
1754if ac_fn_c_try_compile "$LINENO"; then :
1755 ac_hi=$ac_mid; break
1756else
1757 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1758 if test $ac_lo -le $ac_mid; then
1759 ac_lo= ac_hi=
1760 break
1761 fi
1762 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1763fi
1764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1765 done
1766else
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768/* end confdefs.h. */
1769$4
1770int
1771main ()
1772{
1773static int test_array [1 - 2 * !(($2) < 0)];
1774test_array [0] = 0;
1775return test_array [0];
1776
1777 ;
1778 return 0;
1779}
1780_ACEOF
1781if ac_fn_c_try_compile "$LINENO"; then :
1782 ac_hi=-1 ac_mid=-1
1783 while :; do
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785/* end confdefs.h. */
1786$4
1787int
1788main ()
1789{
1790static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1791test_array [0] = 0;
1792return test_array [0];
1793
1794 ;
1795 return 0;
1796}
1797_ACEOF
1798if ac_fn_c_try_compile "$LINENO"; then :
1799 ac_lo=$ac_mid; break
1800else
1801 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1802 if test $ac_mid -le $ac_hi; then
1803 ac_lo= ac_hi=
1804 break
1805 fi
1806 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1807fi
1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809 done
1810else
1811 ac_lo= ac_hi=
1812fi
1813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814fi
1815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816# Binary search between lo and hi bounds.
1817while test "x$ac_lo" != "x$ac_hi"; do
1818 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820/* end confdefs.h. */
1821$4
1822int
1823main ()
1824{
1825static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1826test_array [0] = 0;
1827return test_array [0];
1828
1829 ;
1830 return 0;
1831}
1832_ACEOF
1833if ac_fn_c_try_compile "$LINENO"; then :
1834 ac_hi=$ac_mid
1835else
1836 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1837fi
1838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839done
1840case $ac_lo in #((
1841?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1842'') ac_retval=1 ;;
1843esac
1844 else
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846/* end confdefs.h. */
1847$4
1848static long int longval () { return $2; }
1849static unsigned long int ulongval () { return $2; }
1850#include <stdio.h>
1851#include <stdlib.h>
1852int
1853main ()
1854{
1855
1856 FILE *f = fopen ("conftest.val", "w");
1857 if (! f)
1858 return 1;
1859 if (($2) < 0)
1860 {
1861 long int i = longval ();
1862 if (i != ($2))
1863 return 1;
1864 fprintf (f, "%ld", i);
1865 }
1866 else
1867 {
1868 unsigned long int i = ulongval ();
1869 if (i != ($2))
1870 return 1;
1871 fprintf (f, "%lu", i);
1872 }
1873 /* Do not output a trailing newline, as this causes \r\n confusion
1874 on some platforms. */
1875 return ferror (f) || fclose (f) != 0;
1876
1877 ;
1878 return 0;
1879}
1880_ACEOF
1881if ac_fn_c_try_run "$LINENO"; then :
1882 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1883else
1884 ac_retval=1
1885fi
1886rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1887 conftest.$ac_objext conftest.beam conftest.$ac_ext
1888rm -f conftest.val
1889
1890 fi
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 as_fn_set_status $ac_retval
1893
1894} # ac_fn_c_compute_int
1895
1896# ac_fn_c_try_link LINENO
1897# -----------------------
1898# Try to link conftest.$ac_ext, and return whether this succeeded.
1899ac_fn_c_try_link ()
1900{
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 rm -f conftest.$ac_objext conftest$ac_exeext
1903 if { { ac_try="$ac_link"
1904case "(($ac_try" in
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1907esac
1908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909$as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_link") 2>conftest.err
1911 ac_status=$?
1912 if test -s conftest.err; then
1913 grep -v '^ *+' conftest.err >conftest.er1
1914 cat conftest.er1 >&5
1915 mv -f conftest.er1 conftest.err
1916 fi
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && {
1919 test -z "$ac_c_werror_flag" ||
1920 test ! -s conftest.err
1921 } && test -s conftest$ac_exeext && {
1922 test "$cross_compiling" = yes ||
1923 test -x conftest$ac_exeext
1924 }; then :
1925 ac_retval=0
1926else
1927 $as_echo "$as_me: failed program was:" >&5
1928sed 's/^/| /' conftest.$ac_ext >&5
1929
1930 ac_retval=1
1931fi
1932 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1933 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1934 # interfere with the next link command; also delete a directory that is
1935 # left behind by Apple's compiler. We do this before executing the actions.
1936 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 as_fn_set_status $ac_retval
1939
1940} # ac_fn_c_try_link
1941
1942# ac_fn_c_check_func LINENO FUNC VAR
1943# ----------------------------------
1944# Tests whether FUNC exists, setting the cache variable VAR accordingly
1945ac_fn_c_check_func ()
1946{
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949$as_echo_n "checking for $2... " >&6; }
1950if eval \${$3+:} false; then :
1951 $as_echo_n "(cached) " >&6
1952else
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954/* end confdefs.h. */
1955/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1957#define $2 innocuous_$2
1958
1959/* System header to define __stub macros and hopefully few prototypes,
1960 which can conflict with char $2 (); below.
1961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1962 <limits.h> exists even on freestanding compilers. */
1963
1964#ifdef __STDC__
1965# include <limits.h>
1966#else
1967# include <assert.h>
1968#endif
1969
1970#undef $2
1971
1972/* Override any GCC internal prototype to avoid an error.
1973 Use char because int might match the return type of a GCC
1974 builtin and then its argument prototype would still apply. */
1975#ifdef __cplusplus
1976extern "C"
1977#endif
1978char $2 ();
1979/* The GNU C library defines this for functions which it implements
1980 to always fail with ENOSYS. Some functions are actually named
1981 something starting with __ and the normal name is an alias. */
1982#if defined __stub_$2 || defined __stub___$2
1983choke me
1984#endif
1985
1986int
1987main ()
1988{
1989return $2 ();
1990 ;
1991 return 0;
1992}
1993_ACEOF
1994if ac_fn_c_try_link "$LINENO"; then :
1995 eval "$3=yes"
1996else
1997 eval "$3=no"
1998fi
1999rm -f core conftest.err conftest.$ac_objext \
2000 conftest$ac_exeext conftest.$ac_ext
2001fi
2002eval ac_res=\$$3
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004$as_echo "$ac_res" >&6; }
2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006
2007} # ac_fn_c_check_func
2008cat >config.log <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002009This file contains any messages produced by compilers while
2010running configure, to aid debugging if configure makes a mistake.
2011
jfigusd196e022014-11-20 16:43:44 -05002012It was created by libsrtp2 $as_me 2.0.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04002013generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00002014
2015 $ $0 $@
2016
2017_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002018exec 5>>config.log
Cullen Jennings235513a2005-09-21 22:51:36 +00002019{
2020cat <<_ASUNAME
2021## --------- ##
2022## Platform. ##
2023## --------- ##
2024
2025hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2026uname -m = `(uname -m) 2>/dev/null || echo unknown`
2027uname -r = `(uname -r) 2>/dev/null || echo unknown`
2028uname -s = `(uname -s) 2>/dev/null || echo unknown`
2029uname -v = `(uname -v) 2>/dev/null || echo unknown`
2030
2031/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2032/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2033
2034/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2035/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2036/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
jfigusc7e66e32013-05-08 11:32:55 -04002037/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Cullen Jennings235513a2005-09-21 22:51:36 +00002038/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2039/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2040/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2041
2042_ASUNAME
2043
2044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045for as_dir in $PATH
2046do
2047 IFS=$as_save_IFS
2048 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002049 $as_echo "PATH: $as_dir"
2050 done
2051IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002052
2053} >&5
2054
2055cat >&5 <<_ACEOF
2056
2057
2058## ----------- ##
2059## Core tests. ##
2060## ----------- ##
2061
2062_ACEOF
2063
2064
2065# Keep a trace of the command line.
2066# Strip out --no-create and --no-recursion so they do not pile up.
2067# Strip out --silent because we don't want to record it for future runs.
2068# Also quote any args containing shell meta-characters.
2069# Make two passes to allow for proper duplicate-argument suppression.
2070ac_configure_args=
2071ac_configure_args0=
2072ac_configure_args1=
Cullen Jennings235513a2005-09-21 22:51:36 +00002073ac_must_keep_next=false
2074for ac_pass in 1 2
2075do
2076 for ac_arg
2077 do
2078 case $ac_arg in
2079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2081 | -silent | --silent | --silen | --sile | --sil)
2082 continue ;;
jfigusc7e66e32013-05-08 11:32:55 -04002083 *\'*)
2084 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002085 esac
2086 case $ac_pass in
jfigusc7e66e32013-05-08 11:32:55 -04002087 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002088 2)
jfigusc7e66e32013-05-08 11:32:55 -04002089 as_fn_append ac_configure_args1 " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002090 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00002091 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00002092 else
David McGrewfec49dd2005-09-23 19:34:11 +00002093 case $ac_arg in
2094 *=* | --config-cache | -C | -disable-* | --disable-* \
2095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2097 | -with-* | --with-* | -without-* | --without-* | --x)
2098 case "$ac_configure_args0 " in
2099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2100 esac
2101 ;;
2102 -* ) ac_must_keep_next=true ;;
2103 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00002104 fi
jfigusc7e66e32013-05-08 11:32:55 -04002105 as_fn_append ac_configure_args " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002106 ;;
2107 esac
2108 done
2109done
jfigusc7e66e32013-05-08 11:32:55 -04002110{ ac_configure_args0=; unset ac_configure_args0;}
2111{ ac_configure_args1=; unset ac_configure_args1;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002112
2113# When interrupted or exit'd, cleanup temporary files, and complete
2114# config.log. We remove comments because anyway the quotes in there
2115# would cause problems or look ugly.
jfigusc7e66e32013-05-08 11:32:55 -04002116# WARNING: Use '\'' to represent an apostrophe within the trap.
2117# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Cullen Jennings235513a2005-09-21 22:51:36 +00002118trap 'exit_status=$?
2119 # Save into config.log some information that might help in debugging.
2120 {
2121 echo
2122
jfigusc7e66e32013-05-08 11:32:55 -04002123 $as_echo "## ---------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002124## Cache variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002125## ---------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002126 echo
2127 # The following way of writing the cache mishandles newlines in values,
jfigusc7e66e32013-05-08 11:32:55 -04002128(
2129 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2130 eval ac_val=\$$ac_var
2131 case $ac_val in #(
2132 *${as_nl}*)
2133 case $ac_var in #(
2134 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2135$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2136 esac
2137 case $ac_var in #(
2138 _ | IFS | as_nl) ;; #(
2139 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2140 *) { eval $ac_var=; unset $ac_var;} ;;
2141 esac ;;
2142 esac
2143 done
Cullen Jennings235513a2005-09-21 22:51:36 +00002144 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04002145 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2146 *${as_nl}ac_space=\ *)
Cullen Jennings235513a2005-09-21 22:51:36 +00002147 sed -n \
jfigusc7e66e32013-05-08 11:32:55 -04002148 "s/'\''/'\''\\\\'\'''\''/g;
2149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2150 ;; #(
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002151 *)
jfigusc7e66e32013-05-08 11:32:55 -04002152 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002153 ;;
jfigusc7e66e32013-05-08 11:32:55 -04002154 esac |
2155 sort
2156)
Cullen Jennings235513a2005-09-21 22:51:36 +00002157 echo
2158
jfigusc7e66e32013-05-08 11:32:55 -04002159 $as_echo "## ----------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002160## Output variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002161## ----------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002162 echo
2163 for ac_var in $ac_subst_vars
2164 do
jfigusc7e66e32013-05-08 11:32:55 -04002165 eval ac_val=\$$ac_var
2166 case $ac_val in
2167 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2168 esac
2169 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002170 done | sort
2171 echo
2172
2173 if test -n "$ac_subst_files"; then
jfigusc7e66e32013-05-08 11:32:55 -04002174 $as_echo "## ------------------- ##
2175## File substitutions. ##
2176## ------------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002177 echo
2178 for ac_var in $ac_subst_files
2179 do
jfigusc7e66e32013-05-08 11:32:55 -04002180 eval ac_val=\$$ac_var
2181 case $ac_val in
2182 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2183 esac
2184 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002185 done | sort
2186 echo
2187 fi
2188
2189 if test -s confdefs.h; then
jfigusc7e66e32013-05-08 11:32:55 -04002190 $as_echo "## ----------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002191## confdefs.h. ##
jfigusc7e66e32013-05-08 11:32:55 -04002192## ----------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002193 echo
jfigusc7e66e32013-05-08 11:32:55 -04002194 cat confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002195 echo
2196 fi
2197 test "$ac_signal" != 0 &&
jfigusc7e66e32013-05-08 11:32:55 -04002198 $as_echo "$as_me: caught signal $ac_signal"
2199 $as_echo "$as_me: exit $exit_status"
Cullen Jennings235513a2005-09-21 22:51:36 +00002200 } >&5
jfigusc7e66e32013-05-08 11:32:55 -04002201 rm -f core *.core core.conftest.* &&
2202 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Cullen Jennings235513a2005-09-21 22:51:36 +00002203 exit $exit_status
jfigusc7e66e32013-05-08 11:32:55 -04002204' 0
Cullen Jennings235513a2005-09-21 22:51:36 +00002205for ac_signal in 1 2 13 15; do
jfigusc7e66e32013-05-08 11:32:55 -04002206 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Cullen Jennings235513a2005-09-21 22:51:36 +00002207done
2208ac_signal=0
2209
2210# confdefs.h avoids OS command line length limits that DEFS can exceed.
jfigusc7e66e32013-05-08 11:32:55 -04002211rm -f -r conftest* confdefs.h
2212
2213$as_echo "/* confdefs.h */" > confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002214
2215# Predefined preprocessor variables.
2216
2217cat >>confdefs.h <<_ACEOF
2218#define PACKAGE_NAME "$PACKAGE_NAME"
2219_ACEOF
2220
Cullen Jennings235513a2005-09-21 22:51:36 +00002221cat >>confdefs.h <<_ACEOF
2222#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2223_ACEOF
2224
Cullen Jennings235513a2005-09-21 22:51:36 +00002225cat >>confdefs.h <<_ACEOF
2226#define PACKAGE_VERSION "$PACKAGE_VERSION"
2227_ACEOF
2228
Cullen Jennings235513a2005-09-21 22:51:36 +00002229cat >>confdefs.h <<_ACEOF
2230#define PACKAGE_STRING "$PACKAGE_STRING"
2231_ACEOF
2232
Cullen Jennings235513a2005-09-21 22:51:36 +00002233cat >>confdefs.h <<_ACEOF
2234#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2235_ACEOF
2236
jfigusc7e66e32013-05-08 11:32:55 -04002237cat >>confdefs.h <<_ACEOF
2238#define PACKAGE_URL "$PACKAGE_URL"
2239_ACEOF
2240
Cullen Jennings235513a2005-09-21 22:51:36 +00002241
2242# Let the site file select an alternate cache file if it wants to.
jfigusc7e66e32013-05-08 11:32:55 -04002243# Prefer an explicitly selected file to automatically selected ones.
2244ac_site_file1=NONE
2245ac_site_file2=NONE
2246if test -n "$CONFIG_SITE"; then
2247 # We do not want a PATH search for config.site.
2248 case $CONFIG_SITE in #((
2249 -*) ac_site_file1=./$CONFIG_SITE;;
2250 */*) ac_site_file1=$CONFIG_SITE;;
2251 *) ac_site_file1=./$CONFIG_SITE;;
2252 esac
2253elif test "x$prefix" != xNONE; then
2254 ac_site_file1=$prefix/share/config.site
2255 ac_site_file2=$prefix/etc/config.site
2256else
2257 ac_site_file1=$ac_default_prefix/share/config.site
2258 ac_site_file2=$ac_default_prefix/etc/config.site
Cullen Jennings235513a2005-09-21 22:51:36 +00002259fi
jfigusc7e66e32013-05-08 11:32:55 -04002260for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2261do
2262 test "x$ac_site_file" = xNONE && continue
2263 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2265$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002266 sed 's/^/| /' "$ac_site_file" >&5
jfigusc7e66e32013-05-08 11:32:55 -04002267 . "$ac_site_file" \
2268 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2270as_fn_error $? "failed to load site script $ac_site_file
2271See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002272 fi
2273done
2274
2275if test -r "$cache_file"; then
jfigusc7e66e32013-05-08 11:32:55 -04002276 # Some versions of bash will fail to source /dev/null (special files
2277 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2278 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2280$as_echo "$as_me: loading cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002281 case $cache_file in
jfigusc7e66e32013-05-08 11:32:55 -04002282 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2283 *) . "./$cache_file";;
Cullen Jennings235513a2005-09-21 22:51:36 +00002284 esac
2285 fi
2286else
jfigusc7e66e32013-05-08 11:32:55 -04002287 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2288$as_echo "$as_me: creating cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002289 >$cache_file
2290fi
2291
2292# Check that the precious variables saved in the cache have kept the same
2293# value.
2294ac_cache_corrupted=false
jfigusc7e66e32013-05-08 11:32:55 -04002295for ac_var in $ac_precious_vars; do
Cullen Jennings235513a2005-09-21 22:51:36 +00002296 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2297 eval ac_new_set=\$ac_env_${ac_var}_set
jfigusc7e66e32013-05-08 11:32:55 -04002298 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2299 eval ac_new_val=\$ac_env_${ac_var}_value
Cullen Jennings235513a2005-09-21 22:51:36 +00002300 case $ac_old_set,$ac_new_set in
2301 set,)
jfigusc7e66e32013-05-08 11:32:55 -04002302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2303$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 +00002304 ac_cache_corrupted=: ;;
2305 ,set)
jfigusc7e66e32013-05-08 11:32:55 -04002306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2307$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002308 ac_cache_corrupted=: ;;
2309 ,);;
2310 *)
2311 if test "x$ac_old_val" != "x$ac_new_val"; then
jfigusc7e66e32013-05-08 11:32:55 -04002312 # differences in whitespace do not lead to failure.
2313 ac_old_val_w=`echo x $ac_old_val`
2314 ac_new_val_w=`echo x $ac_new_val`
2315 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2317$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2318 ac_cache_corrupted=:
2319 else
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2321$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2322 eval $ac_var=\$ac_old_val
2323 fi
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2325$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2327$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002328 fi;;
2329 esac
2330 # Pass precious variables to config.status.
2331 if test "$ac_new_set" = set; then
2332 case $ac_new_val in
jfigusc7e66e32013-05-08 11:32:55 -04002333 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002334 *) ac_arg=$ac_var=$ac_new_val ;;
2335 esac
2336 case " $ac_configure_args " in
2337 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jfigusc7e66e32013-05-08 11:32:55 -04002338 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002339 esac
2340 fi
2341done
2342if $ac_cache_corrupted; then
jfigusc7e66e32013-05-08 11:32:55 -04002343 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2346$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2347 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00002348fi
jfigusc7e66e32013-05-08 11:32:55 -04002349## -------------------- ##
2350## Main body of script. ##
2351## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002352
2353ac_ext=c
2354ac_cpp='$CPP $CPPFLAGS'
2355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358
2359
2360
David McGrewb67061f2005-09-28 14:23:06 +00002361if test -z "$CFLAGS"; then
Sean Brightbfb9e302014-03-24 20:45:17 -04002362 CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops"
David McGrewb67061f2005-09-28 14:23:06 +00002363fi
2364
Cullen Jennings235513a2005-09-21 22:51:36 +00002365if test -n "$ac_tool_prefix"; then
2366 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2367set dummy ${ac_tool_prefix}ranlib; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2369$as_echo_n "checking for $ac_word... " >&6; }
2370if ${ac_cv_prog_RANLIB+:} false; then :
2371 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002372else
2373 if test -n "$RANLIB"; then
2374 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2375else
2376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377for as_dir in $PATH
2378do
2379 IFS=$as_save_IFS
2380 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002381 for ac_exec_ext in '' $ac_executable_extensions; do
2382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002383 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
jfigusc7e66e32013-05-08 11:32:55 -04002384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002385 break 2
2386 fi
2387done
jfigusc7e66e32013-05-08 11:32:55 -04002388 done
2389IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002390
2391fi
2392fi
2393RANLIB=$ac_cv_prog_RANLIB
2394if test -n "$RANLIB"; then
jfigusc7e66e32013-05-08 11:32:55 -04002395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2396$as_echo "$RANLIB" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002397else
jfigusc7e66e32013-05-08 11:32:55 -04002398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2399$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002400fi
2401
jfigusc7e66e32013-05-08 11:32:55 -04002402
Cullen Jennings235513a2005-09-21 22:51:36 +00002403fi
2404if test -z "$ac_cv_prog_RANLIB"; then
2405 ac_ct_RANLIB=$RANLIB
2406 # Extract the first word of "ranlib", so it can be a program name with args.
2407set dummy ranlib; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2409$as_echo_n "checking for $ac_word... " >&6; }
2410if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2411 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002412else
2413 if test -n "$ac_ct_RANLIB"; then
2414 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2415else
2416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417for as_dir in $PATH
2418do
2419 IFS=$as_save_IFS
2420 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002423 ac_cv_prog_ac_ct_RANLIB="ranlib"
jfigusc7e66e32013-05-08 11:32:55 -04002424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002425 break 2
2426 fi
2427done
jfigusc7e66e32013-05-08 11:32:55 -04002428 done
2429IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002430
Cullen Jennings235513a2005-09-21 22:51:36 +00002431fi
2432fi
2433ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2434if test -n "$ac_ct_RANLIB"; then
jfigusc7e66e32013-05-08 11:32:55 -04002435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2436$as_echo "$ac_ct_RANLIB" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002437else
jfigusc7e66e32013-05-08 11:32:55 -04002438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2439$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002440fi
2441
jfigusc7e66e32013-05-08 11:32:55 -04002442 if test "x$ac_ct_RANLIB" = x; then
2443 RANLIB=":"
2444 else
2445 case $cross_compiling:$ac_tool_warned in
2446yes:)
2447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2449ac_tool_warned=yes ;;
2450esac
2451 RANLIB=$ac_ct_RANLIB
2452 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002453else
2454 RANLIB="$ac_cv_prog_RANLIB"
2455fi
2456
2457ac_ext=c
2458ac_cpp='$CPP $CPPFLAGS'
2459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461ac_compiler_gnu=$ac_cv_c_compiler_gnu
2462if test -n "$ac_tool_prefix"; then
2463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2464set dummy ${ac_tool_prefix}gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2466$as_echo_n "checking for $ac_word... " >&6; }
2467if ${ac_cv_prog_CC+:} false; then :
2468 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002469else
2470 if test -n "$CC"; then
2471 ac_cv_prog_CC="$CC" # Let the user override the test.
2472else
2473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474for as_dir in $PATH
2475do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002480 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002482 break 2
2483 fi
2484done
jfigusc7e66e32013-05-08 11:32:55 -04002485 done
2486IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002487
2488fi
2489fi
2490CC=$ac_cv_prog_CC
2491if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2493$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002494else
jfigusc7e66e32013-05-08 11:32:55 -04002495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2496$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002497fi
2498
jfigusc7e66e32013-05-08 11:32:55 -04002499
Cullen Jennings235513a2005-09-21 22:51:36 +00002500fi
2501if test -z "$ac_cv_prog_CC"; then
2502 ac_ct_CC=$CC
2503 # Extract the first word of "gcc", so it can be a program name with args.
2504set dummy gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2506$as_echo_n "checking for $ac_word... " >&6; }
2507if ${ac_cv_prog_ac_ct_CC+:} false; then :
2508 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002509else
2510 if test -n "$ac_ct_CC"; then
2511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2512else
2513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH
2515do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002520 ac_cv_prog_ac_ct_CC="gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002522 break 2
2523 fi
2524done
jfigusc7e66e32013-05-08 11:32:55 -04002525 done
2526IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002527
2528fi
2529fi
2530ac_ct_CC=$ac_cv_prog_ac_ct_CC
2531if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2533$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002534else
jfigusc7e66e32013-05-08 11:32:55 -04002535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2536$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002537fi
2538
jfigusc7e66e32013-05-08 11:32:55 -04002539 if test "x$ac_ct_CC" = x; then
2540 CC=""
2541 else
2542 case $cross_compiling:$ac_tool_warned in
2543yes:)
2544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2546ac_tool_warned=yes ;;
2547esac
2548 CC=$ac_ct_CC
2549 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002550else
2551 CC="$ac_cv_prog_CC"
2552fi
2553
2554if test -z "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002555 if test -n "$ac_tool_prefix"; then
2556 # 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 +00002557set dummy ${ac_tool_prefix}cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559$as_echo_n "checking for $ac_word... " >&6; }
2560if ${ac_cv_prog_CC+:} false; then :
2561 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002562else
2563 if test -n "$CC"; then
2564 ac_cv_prog_CC="$CC" # Let the user override the test.
2565else
2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002573 ac_cv_prog_CC="${ac_tool_prefix}cc"
jfigusc7e66e32013-05-08 11:32:55 -04002574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002575 break 2
2576 fi
2577done
jfigusc7e66e32013-05-08 11:32:55 -04002578 done
2579IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002580
2581fi
2582fi
2583CC=$ac_cv_prog_CC
2584if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2586$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002587else
jfigusc7e66e32013-05-08 11:32:55 -04002588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002590fi
2591
jfigusc7e66e32013-05-08 11:32:55 -04002592
Cullen Jennings235513a2005-09-21 22:51:36 +00002593 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002594fi
2595if test -z "$CC"; then
2596 # Extract the first word of "cc", so it can be a program name with args.
2597set dummy cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599$as_echo_n "checking for $ac_word... " >&6; }
2600if ${ac_cv_prog_CC+:} false; then :
2601 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002602else
2603 if test -n "$CC"; then
2604 ac_cv_prog_CC="$CC" # Let the user override the test.
2605else
2606 ac_prog_rejected=no
2607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608for as_dir in $PATH
2609do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2615 ac_prog_rejected=yes
2616 continue
2617 fi
2618 ac_cv_prog_CC="cc"
jfigusc7e66e32013-05-08 11:32:55 -04002619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002620 break 2
2621 fi
2622done
jfigusc7e66e32013-05-08 11:32:55 -04002623 done
2624IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002625
2626if test $ac_prog_rejected = yes; then
2627 # We found a bogon in the path, so make sure we never use it.
2628 set dummy $ac_cv_prog_CC
2629 shift
2630 if test $# != 0; then
2631 # We chose a different compiler from the bogus one.
2632 # However, it has the same basename, so the bogon will be chosen
2633 # first if we set CC to just the basename; use the full file name.
2634 shift
2635 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2636 fi
2637fi
2638fi
2639fi
2640CC=$ac_cv_prog_CC
2641if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2643$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002644else
jfigusc7e66e32013-05-08 11:32:55 -04002645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002647fi
2648
jfigusc7e66e32013-05-08 11:32:55 -04002649
Cullen Jennings235513a2005-09-21 22:51:36 +00002650fi
2651if test -z "$CC"; then
2652 if test -n "$ac_tool_prefix"; then
jfigusc7e66e32013-05-08 11:32:55 -04002653 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002654 do
2655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2656set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658$as_echo_n "checking for $ac_word... " >&6; }
2659if ${ac_cv_prog_CC+:} false; then :
2660 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002661else
2662 if test -n "$CC"; then
2663 ac_cv_prog_CC="$CC" # Let the user override the test.
2664else
2665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666for as_dir in $PATH
2667do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002674 break 2
2675 fi
2676done
jfigusc7e66e32013-05-08 11:32:55 -04002677 done
2678IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002679
2680fi
2681fi
2682CC=$ac_cv_prog_CC
2683if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2685$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002686else
jfigusc7e66e32013-05-08 11:32:55 -04002687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002689fi
2690
jfigusc7e66e32013-05-08 11:32:55 -04002691
Cullen Jennings235513a2005-09-21 22:51:36 +00002692 test -n "$CC" && break
2693 done
2694fi
2695if test -z "$CC"; then
2696 ac_ct_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04002697 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002698do
2699 # Extract the first word of "$ac_prog", so it can be a program name with args.
2700set dummy $ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702$as_echo_n "checking for $ac_word... " >&6; }
2703if ${ac_cv_prog_ac_ct_CC+:} false; then :
2704 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002705else
2706 if test -n "$ac_ct_CC"; then
2707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2708else
2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710for as_dir in $PATH
2711do
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002716 ac_cv_prog_ac_ct_CC="$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002718 break 2
2719 fi
2720done
jfigusc7e66e32013-05-08 11:32:55 -04002721 done
2722IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002723
2724fi
2725fi
2726ac_ct_CC=$ac_cv_prog_ac_ct_CC
2727if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2729$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002730else
jfigusc7e66e32013-05-08 11:32:55 -04002731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002733fi
2734
jfigusc7e66e32013-05-08 11:32:55 -04002735
Cullen Jennings235513a2005-09-21 22:51:36 +00002736 test -n "$ac_ct_CC" && break
2737done
2738
jfigusc7e66e32013-05-08 11:32:55 -04002739 if test "x$ac_ct_CC" = x; then
2740 CC=""
2741 else
2742 case $cross_compiling:$ac_tool_warned in
2743yes:)
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2746ac_tool_warned=yes ;;
2747esac
2748 CC=$ac_ct_CC
2749 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002750fi
2751
2752fi
2753
2754
jfigusc7e66e32013-05-08 11:32:55 -04002755test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2757as_fn_error $? "no acceptable C compiler found in \$PATH
2758See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002759
2760# Provide some information about the compiler.
jfigusc7e66e32013-05-08 11:32:55 -04002761$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2762set X $ac_compile
2763ac_compiler=$2
2764for ac_option in --version -v -V -qversion; do
2765 { { ac_try="$ac_compiler $ac_option >&5"
2766case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2769esac
2770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2771$as_echo "$ac_try_echo"; } >&5
2772 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Cullen Jennings235513a2005-09-21 22:51:36 +00002773 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002774 if test -s conftest.err; then
2775 sed '10a\
2776... rest of stderr output deleted ...
2777 10q' conftest.err >conftest.er1
2778 cat conftest.er1 >&5
2779 fi
2780 rm -f conftest.er1 conftest.err
2781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2782 test $ac_status = 0; }
2783done
Cullen Jennings235513a2005-09-21 22:51:36 +00002784
jfigusc7e66e32013-05-08 11:32:55 -04002785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002786/* end confdefs.h. */
2787
2788int
2789main ()
2790{
2791
2792 ;
2793 return 0;
2794}
2795_ACEOF
2796ac_clean_files_save=$ac_clean_files
jfigusc7e66e32013-05-08 11:32:55 -04002797ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Cullen Jennings235513a2005-09-21 22:51:36 +00002798# Try to create an executable without -o first, disregard a.out.
2799# It will help us diagnose broken compilers, and finding out an intuition
2800# of exeext.
jfigusc7e66e32013-05-08 11:32:55 -04002801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2802$as_echo_n "checking whether the C compiler works... " >&6; }
2803ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002804
jfigusc7e66e32013-05-08 11:32:55 -04002805# The possible output files:
2806ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2807
2808ac_rmfiles=
2809for ac_file in $ac_files
2810do
2811 case $ac_file in
2812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2813 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2814 esac
2815done
2816rm -f $ac_rmfiles
2817
2818if { { ac_try="$ac_link_default"
2819case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822esac
2823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2824$as_echo "$ac_try_echo"; } >&5
2825 (eval "$ac_link_default") 2>&5
2826 ac_status=$?
2827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2828 test $ac_status = 0; }; then :
2829 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2830# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2831# in a Makefile. We should not override ac_cv_exeext if it was cached,
2832# so that the user can short-circuit this test for compilers unknown to
2833# Autoconf.
2834for ac_file in $ac_files ''
Cullen Jennings235513a2005-09-21 22:51:36 +00002835do
2836 test -f "$ac_file" || continue
2837 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00002839 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002840 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00002841 # We found the default executable, but exeext='' is most
2842 # certainly right.
2843 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002844 *.* )
jfigusc7e66e32013-05-08 11:32:55 -04002845 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2846 then :; else
2847 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2848 fi
2849 # We set ac_cv_exeext here because the later test for it is not
2850 # safe: cross compilers may not add the suffix if given an `-o'
2851 # argument, so we may need to know it at that point already.
2852 # Even if this section looks crufty: it has the advantage of
2853 # actually working.
David McGrewfec49dd2005-09-23 19:34:11 +00002854 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002855 * )
David McGrewfec49dd2005-09-23 19:34:11 +00002856 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002857 esac
2858done
jfigusc7e66e32013-05-08 11:32:55 -04002859test "$ac_cv_exeext" = no && ac_cv_exeext=
2860
Cullen Jennings235513a2005-09-21 22:51:36 +00002861else
jfigusc7e66e32013-05-08 11:32:55 -04002862 ac_file=''
2863fi
2864if test -z "$ac_file"; then :
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866$as_echo "no" >&6; }
2867$as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002868sed 's/^/| /' conftest.$ac_ext >&5
2869
jfigusc7e66e32013-05-08 11:32:55 -04002870{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2872as_fn_error 77 "C compiler cannot create executables
2873See \`config.log' for more details" "$LINENO" 5; }
2874else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2876$as_echo "yes" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002877fi
jfigusc7e66e32013-05-08 11:32:55 -04002878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2879$as_echo_n "checking for C compiler default output file name... " >&6; }
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2881$as_echo "$ac_file" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002882ac_exeext=$ac_cv_exeext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002883
jfigusc7e66e32013-05-08 11:32:55 -04002884rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002885ac_clean_files=$ac_clean_files_save
jfigusc7e66e32013-05-08 11:32:55 -04002886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2887$as_echo_n "checking for suffix of executables... " >&6; }
2888if { { ac_try="$ac_link"
2889case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892esac
2893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2894$as_echo "$ac_try_echo"; } >&5
2895 (eval "$ac_link") 2>&5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002896 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2898 test $ac_status = 0; }; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002899 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2900# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2901# work properly (i.e., refer to `conftest.exe'), while it won't with
2902# `rm'.
2903for ac_file in conftest.exe conftest conftest.*; do
2904 test -f "$ac_file" || continue
2905 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002907 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00002908 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002909 * ) break;;
2910 esac
2911done
2912else
jfigusc7e66e32013-05-08 11:32:55 -04002913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2915as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2916See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002917fi
jfigusc7e66e32013-05-08 11:32:55 -04002918rm -f conftest conftest$ac_cv_exeext
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2920$as_echo "$ac_cv_exeext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002921
2922rm -f conftest.$ac_ext
2923EXEEXT=$ac_cv_exeext
2924ac_exeext=$EXEEXT
jfigusc7e66e32013-05-08 11:32:55 -04002925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926/* end confdefs.h. */
2927#include <stdio.h>
2928int
2929main ()
2930{
2931FILE *f = fopen ("conftest.out", "w");
2932 return ferror (f) || fclose (f) != 0;
2933
2934 ;
2935 return 0;
2936}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002937_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002938ac_clean_files="$ac_clean_files conftest.out"
2939# Check that the compiler produces executables we can run. If not, either
2940# the compiler is broken, or we cross compile.
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2942$as_echo_n "checking whether we are cross compiling... " >&6; }
2943if test "$cross_compiling" != yes; then
2944 { { ac_try="$ac_link"
2945case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948esac
2949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2950$as_echo "$ac_try_echo"; } >&5
2951 (eval "$ac_link") 2>&5
2952 ac_status=$?
2953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2954 test $ac_status = 0; }
2955 if { ac_try='./conftest$ac_cv_exeext'
2956 { { case "(($ac_try" in
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2959esac
2960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2961$as_echo "$ac_try_echo"; } >&5
2962 (eval "$ac_try") 2>&5
2963 ac_status=$?
2964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2965 test $ac_status = 0; }; }; then
2966 cross_compiling=no
2967 else
2968 if test "$cross_compiling" = maybe; then
2969 cross_compiling=yes
2970 else
2971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2973as_fn_error $? "cannot run C compiled programs.
2974If you meant to cross compile, use \`--host'.
2975See \`config.log' for more details" "$LINENO" 5; }
2976 fi
2977 fi
2978fi
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2980$as_echo "$cross_compiling" >&6; }
2981
2982rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2983ac_clean_files=$ac_clean_files_save
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2985$as_echo_n "checking for suffix of object files... " >&6; }
2986if ${ac_cv_objext+:} false; then :
2987 $as_echo_n "(cached) " >&6
2988else
2989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002990/* end confdefs.h. */
2991
2992int
2993main ()
2994{
2995
2996 ;
2997 return 0;
2998}
2999_ACEOF
3000rm -f conftest.o conftest.obj
jfigusc7e66e32013-05-08 11:32:55 -04003001if { { ac_try="$ac_compile"
3002case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005esac
3006eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007$as_echo "$ac_try_echo"; } >&5
3008 (eval "$ac_compile") 2>&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003009 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04003010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3011 test $ac_status = 0; }; then :
3012 for ac_file in conftest.o conftest.obj conftest.*; do
3013 test -f "$ac_file" || continue;
Cullen Jennings235513a2005-09-21 22:51:36 +00003014 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04003015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003016 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3017 break;;
3018 esac
3019done
3020else
jfigusc7e66e32013-05-08 11:32:55 -04003021 $as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00003022sed 's/^/| /' conftest.$ac_ext >&5
3023
jfigusc7e66e32013-05-08 11:32:55 -04003024{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3026as_fn_error $? "cannot compute suffix of object files: cannot compile
3027See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003028fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003029rm -f conftest.$ac_cv_objext conftest.$ac_ext
3030fi
jfigusc7e66e32013-05-08 11:32:55 -04003031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3032$as_echo "$ac_cv_objext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003033OBJEXT=$ac_cv_objext
3034ac_objext=$OBJEXT
jfigusc7e66e32013-05-08 11:32:55 -04003035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3036$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3037if ${ac_cv_c_compiler_gnu+:} false; then :
3038 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003039else
jfigusc7e66e32013-05-08 11:32:55 -04003040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003041/* end confdefs.h. */
3042
3043int
3044main ()
3045{
3046#ifndef __GNUC__
3047 choke me
3048#endif
3049
3050 ;
3051 return 0;
3052}
3053_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003054if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003055 ac_compiler_gnu=yes
3056else
jfigusc7e66e32013-05-08 11:32:55 -04003057 ac_compiler_gnu=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003058fi
jfigusc7e66e32013-05-08 11:32:55 -04003059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003060ac_cv_c_compiler_gnu=$ac_compiler_gnu
3061
3062fi
jfigusc7e66e32013-05-08 11:32:55 -04003063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3064$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3065if test $ac_compiler_gnu = yes; then
3066 GCC=yes
3067else
3068 GCC=
3069fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003070ac_test_CFLAGS=${CFLAGS+set}
3071ac_save_CFLAGS=$CFLAGS
jfigusc7e66e32013-05-08 11:32:55 -04003072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3073$as_echo_n "checking whether $CC accepts -g... " >&6; }
3074if ${ac_cv_prog_cc_g+:} false; then :
3075 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003076else
jfigusc7e66e32013-05-08 11:32:55 -04003077 ac_save_c_werror_flag=$ac_c_werror_flag
3078 ac_c_werror_flag=yes
3079 ac_cv_prog_cc_g=no
3080 CFLAGS="-g"
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003082/* end confdefs.h. */
3083
3084int
3085main ()
3086{
3087
3088 ;
3089 return 0;
3090}
3091_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003092if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003093 ac_cv_prog_cc_g=yes
3094else
jfigusc7e66e32013-05-08 11:32:55 -04003095 CFLAGS=""
3096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3097/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00003098
jfigusc7e66e32013-05-08 11:32:55 -04003099int
3100main ()
3101{
3102
3103 ;
3104 return 0;
3105}
3106_ACEOF
3107if ac_fn_c_try_compile "$LINENO"; then :
3108
3109else
3110 ac_c_werror_flag=$ac_save_c_werror_flag
3111 CFLAGS="-g"
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113/* end confdefs.h. */
3114
3115int
3116main ()
3117{
3118
3119 ;
3120 return 0;
3121}
3122_ACEOF
3123if ac_fn_c_try_compile "$LINENO"; then :
3124 ac_cv_prog_cc_g=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003125fi
jfigusc7e66e32013-05-08 11:32:55 -04003126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003127fi
jfigusc7e66e32013-05-08 11:32:55 -04003128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129fi
3130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3131 ac_c_werror_flag=$ac_save_c_werror_flag
3132fi
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3134$as_echo "$ac_cv_prog_cc_g" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003135if test "$ac_test_CFLAGS" = set; then
3136 CFLAGS=$ac_save_CFLAGS
3137elif test $ac_cv_prog_cc_g = yes; then
3138 if test "$GCC" = yes; then
3139 CFLAGS="-g -O2"
3140 else
3141 CFLAGS="-g"
3142 fi
3143else
3144 if test "$GCC" = yes; then
3145 CFLAGS="-O2"
3146 else
3147 CFLAGS=
3148 fi
3149fi
jfigusc7e66e32013-05-08 11:32:55 -04003150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3151$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3152if ${ac_cv_prog_cc_c89+:} false; then :
3153 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003154else
jfigusc7e66e32013-05-08 11:32:55 -04003155 ac_cv_prog_cc_c89=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003156ac_save_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04003157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003158/* end confdefs.h. */
3159#include <stdarg.h>
3160#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -04003161struct stat;
Cullen Jennings235513a2005-09-21 22:51:36 +00003162/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3163struct buf { int x; };
3164FILE * (*rcsopen) (struct buf *, struct stat *, int);
3165static char *e (p, i)
3166 char **p;
3167 int i;
3168{
3169 return p[i];
3170}
3171static char *f (char * (*g) (char **, int), char **p, ...)
3172{
3173 char *s;
3174 va_list v;
3175 va_start (v,p);
3176 s = g (p, va_arg (v,int));
3177 va_end (v);
3178 return s;
3179}
David McGrewfec49dd2005-09-23 19:34:11 +00003180
3181/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3182 function prototypes and stuff, but not '\xHH' hex character constants.
3183 These don't provoke an error unfortunately, instead are silently treated
jfigusc7e66e32013-05-08 11:32:55 -04003184 as 'x'. The following induces an error, until -std is added to get
David McGrewfec49dd2005-09-23 19:34:11 +00003185 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3186 array size at least. It's necessary to write '\x00'==0 to get something
jfigusc7e66e32013-05-08 11:32:55 -04003187 that's true only with -std. */
David McGrewfec49dd2005-09-23 19:34:11 +00003188int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3189
jfigusc7e66e32013-05-08 11:32:55 -04003190/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3191 inside strings and character constants. */
3192#define FOO(x) 'x'
3193int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3194
Cullen Jennings235513a2005-09-21 22:51:36 +00003195int test (int i, double x);
3196struct s1 {int (*f) (int a);};
3197struct s2 {int (*f) (double a);};
3198int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3199int argc;
3200char **argv;
3201int
3202main ()
3203{
3204return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3205 ;
3206 return 0;
3207}
3208_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003209for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3210 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Cullen Jennings235513a2005-09-21 22:51:36 +00003211do
3212 CC="$ac_save_CC $ac_arg"
jfigusc7e66e32013-05-08 11:32:55 -04003213 if ac_fn_c_try_compile "$LINENO"; then :
3214 ac_cv_prog_cc_c89=$ac_arg
Cullen Jennings235513a2005-09-21 22:51:36 +00003215fi
jfigusc7e66e32013-05-08 11:32:55 -04003216rm -f core conftest.err conftest.$ac_objext
3217 test "x$ac_cv_prog_cc_c89" != "xno" && break
Cullen Jennings235513a2005-09-21 22:51:36 +00003218done
jfigusc7e66e32013-05-08 11:32:55 -04003219rm -f conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003220CC=$ac_save_CC
3221
3222fi
jfigusc7e66e32013-05-08 11:32:55 -04003223# AC_CACHE_VAL
3224case "x$ac_cv_prog_cc_c89" in
3225 x)
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3227$as_echo "none needed" >&6; } ;;
3228 xno)
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3230$as_echo "unsupported" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003231 *)
jfigusc7e66e32013-05-08 11:32:55 -04003232 CC="$CC $ac_cv_prog_cc_c89"
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3234$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003235esac
jfigusc7e66e32013-05-08 11:32:55 -04003236if test "x$ac_cv_prog_cc_c89" != xno; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003237
3238fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003239
Cullen Jennings235513a2005-09-21 22:51:36 +00003240ac_ext=c
3241ac_cpp='$CPP $CPPFLAGS'
3242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244ac_compiler_gnu=$ac_cv_c_compiler_gnu
3245
David McGrewb67061f2005-09-28 14:23:06 +00003246ac_aux_dir=
jfigusc7e66e32013-05-08 11:32:55 -04003247for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3248 if test -f "$ac_dir/install-sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003249 ac_aux_dir=$ac_dir
3250 ac_install_sh="$ac_aux_dir/install-sh -c"
3251 break
jfigusc7e66e32013-05-08 11:32:55 -04003252 elif test -f "$ac_dir/install.sh"; then
David McGrewb67061f2005-09-28 14:23:06 +00003253 ac_aux_dir=$ac_dir
3254 ac_install_sh="$ac_aux_dir/install.sh -c"
3255 break
jfigusc7e66e32013-05-08 11:32:55 -04003256 elif test -f "$ac_dir/shtool"; then
David McGrewb67061f2005-09-28 14:23:06 +00003257 ac_aux_dir=$ac_dir
3258 ac_install_sh="$ac_aux_dir/shtool install -c"
3259 break
3260 fi
3261done
3262if test -z "$ac_aux_dir"; then
jfigusc7e66e32013-05-08 11:32:55 -04003263 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
David McGrewb67061f2005-09-28 14:23:06 +00003264fi
jfigusc7e66e32013-05-08 11:32:55 -04003265
3266# These three variables are undocumented and unsupported,
3267# and are intended to be withdrawn in a future Autoconf release.
3268# They can cause serious problems if a builder's source tree is in a directory
3269# whose full name contains unusual characters.
3270ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3271ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3272ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3273
Cullen Jennings235513a2005-09-21 22:51:36 +00003274
David McGrewb67061f2005-09-28 14:23:06 +00003275# Find a good install program. We prefer a C program (faster),
3276# so one script is as good as another. But avoid the broken or
3277# incompatible versions:
3278# SysV /etc/install, /usr/sbin/install
3279# SunOS /usr/etc/install
3280# IRIX /sbin/install
3281# AIX /bin/install
3282# AmigaOS /C/install, which installs bootblocks on floppy discs
3283# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3284# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3285# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3286# OS/2's system install, which has a completely different semantic
3287# ./install, which can be erroneously created by make from ./install.sh.
jfigusc7e66e32013-05-08 11:32:55 -04003288# Reject install programs that cannot install multiple files.
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3290$as_echo_n "checking for a BSD-compatible install... " >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00003291if test -z "$INSTALL"; then
jfigusc7e66e32013-05-08 11:32:55 -04003292if ${ac_cv_path_install+:} false; then :
3293 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003294else
David McGrewb67061f2005-09-28 14:23:06 +00003295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296for as_dir in $PATH
3297do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04003300 # Account for people who put trailing slashes in PATH elements.
3301case $as_dir/ in #((
3302 ./ | .// | /[cC]/* | \
David McGrewb67061f2005-09-28 14:23:06 +00003303 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jfigusc7e66e32013-05-08 11:32:55 -04003304 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
David McGrewb67061f2005-09-28 14:23:06 +00003305 /usr/ucb/* ) ;;
3306 *)
3307 # OSF1 and SCO ODT 3.0 have their own names for install.
3308 # Don't use installbsd from OSF since it installs stuff as root
3309 # by default.
3310 for ac_prog in ginstall scoinst install; do
3311 for ac_exec_ext in '' $ac_executable_extensions; do
jfigusc7e66e32013-05-08 11:32:55 -04003312 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
David McGrewb67061f2005-09-28 14:23:06 +00003313 if test $ac_prog = install &&
3314 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3315 # AIX install. It has an incompatible calling convention.
3316 :
3317 elif test $ac_prog = install &&
3318 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3319 # program-specific install script used by HP pwplus--don't use.
3320 :
3321 else
jfigusc7e66e32013-05-08 11:32:55 -04003322 rm -rf conftest.one conftest.two conftest.dir
3323 echo one > conftest.one
3324 echo two > conftest.two
3325 mkdir conftest.dir
3326 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3327 test -s conftest.one && test -s conftest.two &&
3328 test -s conftest.dir/conftest.one &&
3329 test -s conftest.dir/conftest.two
3330 then
3331 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3332 break 3
3333 fi
David McGrewb67061f2005-09-28 14:23:06 +00003334 fi
3335 fi
3336 done
3337 done
3338 ;;
3339esac
Cullen Jennings235513a2005-09-21 22:51:36 +00003340
jfigusc7e66e32013-05-08 11:32:55 -04003341 done
3342IFS=$as_save_IFS
3343
3344rm -rf conftest.one conftest.two conftest.dir
Cullen Jennings235513a2005-09-21 22:51:36 +00003345
3346fi
David McGrewb67061f2005-09-28 14:23:06 +00003347 if test "${ac_cv_path_install+set}" = set; then
3348 INSTALL=$ac_cv_path_install
3349 else
jfigusc7e66e32013-05-08 11:32:55 -04003350 # As a last resort, use the slow shell script. Don't cache a
3351 # value for INSTALL within a source directory, because that will
David McGrewb67061f2005-09-28 14:23:06 +00003352 # break other packages using the cache if that directory is
jfigusc7e66e32013-05-08 11:32:55 -04003353 # removed, or if the value is a relative name.
David McGrewb67061f2005-09-28 14:23:06 +00003354 INSTALL=$ac_install_sh
3355 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003356fi
jfigusc7e66e32013-05-08 11:32:55 -04003357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3358$as_echo "$INSTALL" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003359
David McGrewb67061f2005-09-28 14:23:06 +00003360# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3361# It thinks the first close brace ends the variable substitution.
3362test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00003363
David McGrewb67061f2005-09-28 14:23:06 +00003364test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3365
3366test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00003367
3368
3369
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003370ac_ext=c
3371ac_cpp='$CPP $CPPFLAGS'
3372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374ac_compiler_gnu=$ac_cv_c_compiler_gnu
jfigusc7e66e32013-05-08 11:32:55 -04003375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3376$as_echo_n "checking how to run the C preprocessor... " >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003377# On Suns, sometimes $CPP names a directory.
3378if test -n "$CPP" && test -d "$CPP"; then
3379 CPP=
3380fi
3381if test -z "$CPP"; then
jfigusc7e66e32013-05-08 11:32:55 -04003382 if ${ac_cv_prog_CPP+:} false; then :
3383 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003384else
3385 # Double quotes because CPP needs to be expanded
3386 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3387 do
3388 ac_preproc_ok=false
3389for ac_c_preproc_warn_flag in '' yes
3390do
3391 # Use a header file that comes with gcc, so configuring glibc
3392 # with a fresh cross-compiler works.
3393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394 # <limits.h> exists even on freestanding compilers.
3395 # On the NeXT, cc -E runs the code through the compiler's parser,
3396 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04003397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003398/* end confdefs.h. */
3399#ifdef __STDC__
3400# include <limits.h>
3401#else
3402# include <assert.h>
3403#endif
3404 Syntax error
3405_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003406if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003407
jfigusc7e66e32013-05-08 11:32:55 -04003408else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003409 # Broken: fails on valid input.
3410continue
3411fi
jfigusc7e66e32013-05-08 11:32:55 -04003412rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003413
jfigusc7e66e32013-05-08 11:32:55 -04003414 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003415 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04003416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003417/* end confdefs.h. */
3418#include <ac_nonexistent.h>
3419_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003420if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003421 # Broken: success on invalid input.
3422continue
3423else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003424 # Passes both tests.
3425ac_preproc_ok=:
3426break
3427fi
jfigusc7e66e32013-05-08 11:32:55 -04003428rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003429
3430done
3431# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04003432rm -f conftest.i conftest.err conftest.$ac_ext
3433if $ac_preproc_ok; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003434 break
3435fi
3436
3437 done
3438 ac_cv_prog_CPP=$CPP
3439
3440fi
3441 CPP=$ac_cv_prog_CPP
3442else
3443 ac_cv_prog_CPP=$CPP
3444fi
jfigusc7e66e32013-05-08 11:32:55 -04003445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3446$as_echo "$CPP" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003447ac_preproc_ok=false
3448for ac_c_preproc_warn_flag in '' yes
3449do
3450 # Use a header file that comes with gcc, so configuring glibc
3451 # with a fresh cross-compiler works.
3452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3453 # <limits.h> exists even on freestanding compilers.
3454 # On the NeXT, cc -E runs the code through the compiler's parser,
3455 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04003456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003457/* end confdefs.h. */
3458#ifdef __STDC__
3459# include <limits.h>
3460#else
3461# include <assert.h>
3462#endif
3463 Syntax error
3464_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003465if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003466
jfigusc7e66e32013-05-08 11:32:55 -04003467else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003468 # Broken: fails on valid input.
3469continue
3470fi
jfigusc7e66e32013-05-08 11:32:55 -04003471rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003472
jfigusc7e66e32013-05-08 11:32:55 -04003473 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003474 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04003475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003476/* end confdefs.h. */
3477#include <ac_nonexistent.h>
3478_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003479if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003480 # Broken: success on invalid input.
3481continue
3482else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003483 # Passes both tests.
3484ac_preproc_ok=:
3485break
3486fi
jfigusc7e66e32013-05-08 11:32:55 -04003487rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003488
3489done
3490# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04003491rm -f conftest.i conftest.err conftest.$ac_ext
3492if $ac_preproc_ok; then :
3493
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003494else
jfigusc7e66e32013-05-08 11:32:55 -04003495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3498See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003499fi
3500
3501ac_ext=c
3502ac_cpp='$CPP $CPPFLAGS'
3503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505ac_compiler_gnu=$ac_cv_c_compiler_gnu
3506
3507
jfigusc7e66e32013-05-08 11:32:55 -04003508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3509$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3510if ${ac_cv_path_GREP+:} false; then :
3511 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003512else
jfigusc7e66e32013-05-08 11:32:55 -04003513 if test -z "$GREP"; then
3514 ac_path_GREP_found=false
3515 # Loop through the user's path and test for each of PROGNAME-LIST
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3518do
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 for ac_prog in grep ggrep; do
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3524 as_fn_executable_p "$ac_path_GREP" || continue
3525# Check for GNU ac_path_GREP and select it if it is found.
3526 # Check for GNU $ac_path_GREP
3527case `"$ac_path_GREP" --version 2>&1` in
3528*GNU*)
3529 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3530*)
3531 ac_count=0
3532 $as_echo_n 0123456789 >"conftest.in"
3533 while :
3534 do
3535 cat "conftest.in" "conftest.in" >"conftest.tmp"
3536 mv "conftest.tmp" "conftest.in"
3537 cp "conftest.in" "conftest.nl"
3538 $as_echo 'GREP' >> "conftest.nl"
3539 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3540 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3541 as_fn_arith $ac_count + 1 && ac_count=$as_val
3542 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3543 # Best one so far, save it but keep looking for a better one
3544 ac_cv_path_GREP="$ac_path_GREP"
3545 ac_path_GREP_max=$ac_count
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003546 fi
jfigusc7e66e32013-05-08 11:32:55 -04003547 # 10*(2^10) chars as input seems more than enough
3548 test $ac_count -gt 10 && break
3549 done
3550 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3551esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003552
jfigusc7e66e32013-05-08 11:32:55 -04003553 $ac_path_GREP_found && break 3
3554 done
3555 done
3556 done
3557IFS=$as_save_IFS
3558 if test -z "$ac_cv_path_GREP"; then
3559 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3560 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003561else
jfigusc7e66e32013-05-08 11:32:55 -04003562 ac_cv_path_GREP=$GREP
3563fi
3564
3565fi
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3567$as_echo "$ac_cv_path_GREP" >&6; }
3568 GREP="$ac_cv_path_GREP"
3569
3570
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3572$as_echo_n "checking for egrep... " >&6; }
3573if ${ac_cv_path_EGREP+:} false; then :
3574 $as_echo_n "(cached) " >&6
3575else
3576 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3577 then ac_cv_path_EGREP="$GREP -E"
3578 else
3579 if test -z "$EGREP"; then
3580 ac_path_EGREP_found=false
3581 # Loop through the user's path and test for each of PROGNAME-LIST
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3584do
3585 IFS=$as_save_IFS
3586 test -z "$as_dir" && as_dir=.
3587 for ac_prog in egrep; do
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3590 as_fn_executable_p "$ac_path_EGREP" || continue
3591# Check for GNU ac_path_EGREP and select it if it is found.
3592 # Check for GNU $ac_path_EGREP
3593case `"$ac_path_EGREP" --version 2>&1` in
3594*GNU*)
3595 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3596*)
3597 ac_count=0
3598 $as_echo_n 0123456789 >"conftest.in"
3599 while :
3600 do
3601 cat "conftest.in" "conftest.in" >"conftest.tmp"
3602 mv "conftest.tmp" "conftest.in"
3603 cp "conftest.in" "conftest.nl"
3604 $as_echo 'EGREP' >> "conftest.nl"
3605 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3607 as_fn_arith $ac_count + 1 && ac_count=$as_val
3608 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3609 # Best one so far, save it but keep looking for a better one
3610 ac_cv_path_EGREP="$ac_path_EGREP"
3611 ac_path_EGREP_max=$ac_count
3612 fi
3613 # 10*(2^10) chars as input seems more than enough
3614 test $ac_count -gt 10 && break
3615 done
3616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3617esac
3618
3619 $ac_path_EGREP_found && break 3
3620 done
3621 done
3622 done
3623IFS=$as_save_IFS
3624 if test -z "$ac_cv_path_EGREP"; then
3625 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3626 fi
3627else
3628 ac_cv_path_EGREP=$EGREP
3629fi
3630
3631 fi
3632fi
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3634$as_echo "$ac_cv_path_EGREP" >&6; }
3635 EGREP="$ac_cv_path_EGREP"
3636
3637
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3639$as_echo_n "checking for ANSI C header files... " >&6; }
3640if ${ac_cv_header_stdc+:} false; then :
3641 $as_echo_n "(cached) " >&6
3642else
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003644/* end confdefs.h. */
3645#include <stdlib.h>
3646#include <stdarg.h>
3647#include <string.h>
3648#include <float.h>
3649
3650int
3651main ()
3652{
3653
3654 ;
3655 return 0;
3656}
3657_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003658if ac_fn_c_try_compile "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003659 ac_cv_header_stdc=yes
3660else
jfigusc7e66e32013-05-08 11:32:55 -04003661 ac_cv_header_stdc=no
jfigusa14b5a02013-03-29 12:24:12 -04003662fi
jfigusc7e66e32013-05-08 11:32:55 -04003663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003664
3665if test $ac_cv_header_stdc = yes; then
3666 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003668/* end confdefs.h. */
3669#include <string.h>
3670
3671_ACEOF
3672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003673 $EGREP "memchr" >/dev/null 2>&1; then :
3674
jfigusa14b5a02013-03-29 12:24:12 -04003675else
3676 ac_cv_header_stdc=no
3677fi
3678rm -f conftest*
3679
3680fi
3681
3682if test $ac_cv_header_stdc = yes; then
3683 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04003684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003685/* end confdefs.h. */
3686#include <stdlib.h>
3687
3688_ACEOF
3689if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04003690 $EGREP "free" >/dev/null 2>&1; then :
3691
jfigusa14b5a02013-03-29 12:24:12 -04003692else
3693 ac_cv_header_stdc=no
3694fi
3695rm -f conftest*
3696
3697fi
3698
3699if test $ac_cv_header_stdc = yes; then
3700 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jfigusc7e66e32013-05-08 11:32:55 -04003701 if test "$cross_compiling" = yes; then :
jfigusa14b5a02013-03-29 12:24:12 -04003702 :
3703else
jfigusc7e66e32013-05-08 11:32:55 -04003704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04003705/* end confdefs.h. */
3706#include <ctype.h>
jfigusc7e66e32013-05-08 11:32:55 -04003707#include <stdlib.h>
jfigusa14b5a02013-03-29 12:24:12 -04003708#if ((' ' & 0x0FF) == 0x020)
3709# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3710# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3711#else
3712# define ISLOWER(c) \
3713 (('a' <= (c) && (c) <= 'i') \
3714 || ('j' <= (c) && (c) <= 'r') \
3715 || ('s' <= (c) && (c) <= 'z'))
3716# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3717#endif
3718
3719#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3720int
3721main ()
3722{
3723 int i;
3724 for (i = 0; i < 256; i++)
3725 if (XOR (islower (i), ISLOWER (i))
3726 || toupper (i) != TOUPPER (i))
jfigusc7e66e32013-05-08 11:32:55 -04003727 return 2;
3728 return 0;
jfigusa14b5a02013-03-29 12:24:12 -04003729}
3730_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003731if ac_fn_c_try_run "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04003732
jfigusc7e66e32013-05-08 11:32:55 -04003733else
3734 ac_cv_header_stdc=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003735fi
jfigusc7e66e32013-05-08 11:32:55 -04003736rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3737 conftest.$ac_objext conftest.beam conftest.$ac_ext
3738fi
3739
jfigusa14b5a02013-03-29 12:24:12 -04003740fi
3741fi
jfigusc7e66e32013-05-08 11:32:55 -04003742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3743$as_echo "$ac_cv_header_stdc" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04003744if test $ac_cv_header_stdc = yes; then
3745
jfigusc7e66e32013-05-08 11:32:55 -04003746$as_echo "#define STDC_HEADERS 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04003747
3748fi
3749
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003750# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003751for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3752 inttypes.h stdint.h unistd.h
jfigusc7e66e32013-05-08 11:32:55 -04003753do :
3754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3755ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3756"
3757if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003758 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003759#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003760_ACEOF
3761
3762fi
3763
3764done
3765
3766
jfigusc7e66e32013-05-08 11:32:55 -04003767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3768$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3769if ${ac_cv_c_bigendian+:} false; then :
3770 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003771else
jfigusc7e66e32013-05-08 11:32:55 -04003772 ac_cv_c_bigendian=unknown
3773 # See if we're dealing with a universal compiler.
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003775/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003776#ifndef __APPLE_CC__
3777 not a universal capable compiler
3778 #endif
3779 typedef int dummy;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003780
jfigusc7e66e32013-05-08 11:32:55 -04003781_ACEOF
3782if ac_fn_c_try_compile "$LINENO"; then :
3783
3784 # Check for potential -arch flags. It is not universal unless
3785 # there are at least two -arch flags with different values.
3786 ac_arch=
3787 ac_prev=
3788 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3789 if test -n "$ac_prev"; then
3790 case $ac_word in
3791 i?86 | x86_64 | ppc | ppc64)
3792 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3793 ac_arch=$ac_word
3794 else
3795 ac_cv_c_bigendian=universal
3796 break
3797 fi
3798 ;;
3799 esac
3800 ac_prev=
3801 elif test "x$ac_word" = "x-arch"; then
3802 ac_prev=arch
3803 fi
3804 done
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003805fi
jfigusc7e66e32013-05-08 11:32:55 -04003806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 if test $ac_cv_c_bigendian = unknown; then
3808 # See if sys/param.h defines the BYTE_ORDER macro.
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003810/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003811#include <sys/types.h>
3812 #include <sys/param.h>
3813
3814int
3815main ()
3816{
3817#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3818 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3819 && LITTLE_ENDIAN)
3820 bogus endian macros
3821 #endif
3822
3823 ;
3824 return 0;
3825}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003826_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003827if ac_fn_c_try_compile "$LINENO"; then :
3828 # It does; now see whether it defined to BIG_ENDIAN or not.
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003830/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003831#include <sys/types.h>
3832 #include <sys/param.h>
3833
3834int
3835main ()
3836{
3837#if BYTE_ORDER != BIG_ENDIAN
3838 not big endian
3839 #endif
3840
3841 ;
3842 return 0;
3843}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003844_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003845if ac_fn_c_try_compile "$LINENO"; then :
3846 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003847else
jfigusc7e66e32013-05-08 11:32:55 -04003848 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003849fi
jfigusc7e66e32013-05-08 11:32:55 -04003850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851fi
3852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 fi
3854 if test $ac_cv_c_bigendian = unknown; then
3855 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003857/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003858#include <limits.h>
3859
3860int
3861main ()
3862{
3863#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3864 bogus endian macros
3865 #endif
3866
3867 ;
3868 return 0;
3869}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003870_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003871if ac_fn_c_try_compile "$LINENO"; then :
3872 # It does; now see whether it defined to _BIG_ENDIAN or not.
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003874/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003875#include <limits.h>
3876
3877int
3878main ()
3879{
3880#ifndef _BIG_ENDIAN
3881 not big endian
3882 #endif
3883
3884 ;
3885 return 0;
3886}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003887_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003888if ac_fn_c_try_compile "$LINENO"; then :
3889 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003890else
jfigusc7e66e32013-05-08 11:32:55 -04003891 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003892fi
jfigusc7e66e32013-05-08 11:32:55 -04003893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894fi
3895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 fi
3897 if test $ac_cv_c_bigendian = unknown; then
3898 # Compile a test program.
3899 if test "$cross_compiling" = yes; then :
3900 # Try to guess by grepping values from an object file.
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003902/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04003903short int ascii_mm[] =
3904 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3905 short int ascii_ii[] =
3906 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3907 int use_ascii (int i) {
3908 return ascii_mm[i] + ascii_ii[i];
3909 }
3910 short int ebcdic_ii[] =
3911 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3912 short int ebcdic_mm[] =
3913 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3914 int use_ebcdic (int i) {
3915 return ebcdic_mm[i] + ebcdic_ii[i];
3916 }
3917 extern int foo;
3918
3919int
3920main ()
3921{
3922return use_ascii (foo) == use_ebcdic (foo);
3923 ;
3924 return 0;
3925}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003926_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003927if ac_fn_c_try_compile "$LINENO"; then :
3928 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3929 ac_cv_c_bigendian=yes
3930 fi
3931 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3932 if test "$ac_cv_c_bigendian" = unknown; then
3933 ac_cv_c_bigendian=no
3934 else
3935 # finding both strings is unlikely to happen, but who knows?
3936 ac_cv_c_bigendian=unknown
3937 fi
3938 fi
3939fi
3940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003941else
jfigusc7e66e32013-05-08 11:32:55 -04003942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003943/* end confdefs.h. */
3944$ac_includes_default
3945int
3946main ()
3947{
jfigusc7e66e32013-05-08 11:32:55 -04003948
3949 /* Are we little or big endian? From Harbison&Steele. */
3950 union
3951 {
3952 long int l;
3953 char c[sizeof (long int)];
3954 } u;
3955 u.l = 1;
3956 return u.c[sizeof (long int) - 1] == 1;
3957
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003958 ;
3959 return 0;
3960}
3961_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003962if ac_fn_c_try_run "$LINENO"; then :
3963 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003964else
jfigusc7e66e32013-05-08 11:32:55 -04003965 ac_cv_c_bigendian=yes
3966fi
3967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3968 conftest.$ac_objext conftest.beam conftest.$ac_ext
3969fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003970
jfigusc7e66e32013-05-08 11:32:55 -04003971 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06003972fi
jfigusc7e66e32013-05-08 11:32:55 -04003973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3974$as_echo "$ac_cv_c_bigendian" >&6; }
3975 case $ac_cv_c_bigendian in #(
3976 yes)
3977 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
3978;; #(
3979 no)
3980 ;; #(
3981 universal)
3982
3983$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3984
3985 ;; #(
3986 *)
3987 as_fn_error $? "unknown endianness
3988 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3989 esac
3990
3991
3992# Make sure we can run config.sub.
3993$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3994 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3995
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3997$as_echo_n "checking build system type... " >&6; }
3998if ${ac_cv_build+:} false; then :
3999 $as_echo_n "(cached) " >&6
4000else
4001 ac_build_alias=$build_alias
4002test "x$ac_build_alias" = x &&
4003 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4004test "x$ac_build_alias" = x &&
4005 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4006ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4007 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4008
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004009fi
jfigusc7e66e32013-05-08 11:32:55 -04004010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4011$as_echo "$ac_cv_build" >&6; }
4012case $ac_cv_build in
4013*-*-*) ;;
4014*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4015esac
4016build=$ac_cv_build
4017ac_save_IFS=$IFS; IFS='-'
4018set x $ac_cv_build
4019shift
4020build_cpu=$1
4021build_vendor=$2
4022shift; shift
4023# Remember, the first character of IFS is used to create $*,
4024# except with old shells:
4025build_os=$*
4026IFS=$ac_save_IFS
4027case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4028
4029
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4031$as_echo_n "checking host system type... " >&6; }
4032if ${ac_cv_host+:} false; then :
4033 $as_echo_n "(cached) " >&6
4034else
4035 if test "x$host_alias" = x; then
4036 ac_cv_host=$ac_cv_build
4037else
4038 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4039 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4040fi
4041
4042fi
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4044$as_echo "$ac_cv_host" >&6; }
4045case $ac_cv_host in
4046*-*-*) ;;
4047*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4048esac
4049host=$ac_cv_host
4050ac_save_IFS=$IFS; IFS='-'
4051set x $ac_cv_host
4052shift
4053host_cpu=$1
4054host_vendor=$2
4055shift; shift
4056# Remember, the first character of IFS is used to create $*,
4057# except with old shells:
4058host_os=$*
4059IFS=$ac_save_IFS
4060case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4061
4062
4063
4064case $host_cpu in
4065 i*86 | x86_64 )
4066
4067$as_echo "#define CPU_CISC 1" >>confdefs.h
4068
4069
4070$as_echo "#define HAVE_X86 1" >>confdefs.h
4071;;
4072 * )
jfigusc7e66e32013-05-08 11:32:55 -04004073
4074$as_echo "#define CPU_RISC 1" >>confdefs.h
jfigusfb838412014-12-04 10:15:47 -05004075
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 HMAC_OBJS=crypto/hash/hmac_ossl.o
4953 USE_OPENSSL=1
4954
4955else
jfigusa3127b82014-11-19 14:46:52 -05004956 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o"
jfigus7882dd92013-08-02 16:08:23 -04004957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random device to use" >&5
4958$as_echo_n "checking which random device to use... " >&6; }
jfigusa6cf2082014-11-21 10:04:03 -05004959 if test -n "$DEV_URANDOM"; then
jfigusc7e66e32013-05-08 11:32:55 -04004960
4961cat >>confdefs.h <<_ACEOF
4962#define DEV_URANDOM "$DEV_URANDOM"
4963_ACEOF
4964
jfigusa6cf2082014-11-21 10:04:03 -05004965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_URANDOM" >&5
jfigusc7e66e32013-05-08 11:32:55 -04004966$as_echo "$DEV_URANDOM" >&6; }
jfigusa6cf2082014-11-21 10:04:03 -05004967 else
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: standard rand() function..." >&5
jfigusc7e66e32013-05-08 11:32:55 -04004969$as_echo "standard rand() function..." >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04004970 fi
jfigusc7e66e32013-05-08 11:32:55 -04004971 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
4972fi
4973
4974
4975
Bernardo Torres79e38ae2014-10-10 05:29:36 -03004976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
4977$as_echo_n "checking for pcap_create in -lpcap... " >&6; }
4978if ${ac_cv_lib_pcap_pcap_create+:} false; then :
4979 $as_echo_n "(cached) " >&6
4980else
4981 ac_check_lib_save_LIBS=$LIBS
4982LIBS="-lpcap $LIBS"
4983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984/* end confdefs.h. */
4985
4986/* Override any GCC internal prototype to avoid an error.
4987 Use char because int might match the return type of a GCC
4988 builtin and then its argument prototype would still apply. */
4989#ifdef __cplusplus
4990extern "C"
4991#endif
4992char pcap_create ();
4993int
4994main ()
4995{
4996return pcap_create ();
4997 ;
4998 return 0;
4999}
5000_ACEOF
5001if ac_fn_c_try_link "$LINENO"; then :
5002 ac_cv_lib_pcap_pcap_create=yes
5003else
5004 ac_cv_lib_pcap_pcap_create=no
5005fi
5006rm -f core conftest.err conftest.$ac_objext \
5007 conftest$ac_exeext conftest.$ac_ext
5008LIBS=$ac_check_lib_save_LIBS
5009fi
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
5011$as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
5012if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
Bernardo Torresb3c51422014-10-14 12:40:09 -03005013 PCAP=1
5014 LIBS="-lpcap $LIBS"
5015 HAVE_PCAP=1
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005016
Bernardo Torresb3c51422014-10-14 12:40:09 -03005017$as_echo "#define HAVE_PCAP 1" >>confdefs.h
5018
5019
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005020
5021fi
5022
Bernardo Torres79e38ae2014-10-10 05:29:36 -03005023
jfigusc7e66e32013-05-08 11:32:55 -04005024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use stdout for error reporting" >&5
5025$as_echo_n "checking whether to use stdout for error reporting... " >&6; }
5026# Check whether --enable-stdout was given.
5027if test "${enable_stdout+set}" = set; then :
5028 enableval=$enable_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00005029else
jfigus97a80f42014-11-04 14:15:40 -05005030 enable_stdout=no
jfigusc7e66e32013-05-08 11:32:55 -04005031fi
5032
David McGrewb67061f2005-09-28 14:23:06 +00005033if test "$enable_stdout" = "yes"; then
5034
jfigusc7e66e32013-05-08 11:32:55 -04005035$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005036
5037fi
jfigusc7e66e32013-05-08 11:32:55 -04005038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdout" >&5
5039$as_echo "$enable_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005040
jfigusc7e66e32013-05-08 11:32:55 -04005041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use /dev/console for error reporting" >&5
5042$as_echo_n "checking whether to use /dev/console for error reporting... " >&6; }
5043# Check whether --enable-console was given.
5044if test "${enable_console+set}" = set; then :
5045 enableval=$enable_console;
David McGrewb67061f2005-09-28 14:23:06 +00005046else
5047 enable_console=no
jfigusc7e66e32013-05-08 11:32:55 -04005048fi
5049
David McGrewb67061f2005-09-28 14:23:06 +00005050if test "$enable_console" = "yes"; then
5051
jfigusc7e66e32013-05-08 11:32:55 -04005052$as_echo "#define USE_ERR_REPORTING_FILE 1" >>confdefs.h
David McGrewb67061f2005-09-28 14:23:06 +00005053
5054
jfigusc7e66e32013-05-08 11:32:55 -04005055$as_echo "#define ERR_REPORTING_FILE \"/dev/console\"" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005056
5057fi
jfigusc7e66e32013-05-08 11:32:55 -04005058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_console" >&5
5059$as_echo "$enable_console" >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00005060
jfigusc7e66e32013-05-08 11:32:55 -04005061ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00005062
5063
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005064# Extract the first word of "pkg-config", so it can be a program name with args.
5065set dummy pkg-config; ac_word=$2
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067$as_echo_n "checking for $ac_word... " >&6; }
5068if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5069 $as_echo_n "(cached) " >&6
5070else
5071 if test -n "$PKG_CONFIG"; then
5072 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5073else
5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081 ac_cv_prog_PKG_CONFIG="yes"
5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5084 fi
5085done
5086 done
5087IFS=$as_save_IFS
5088
5089fi
5090fi
5091PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5092if test -n "$PKG_CONFIG"; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5094$as_echo "$PKG_CONFIG" >&6; }
5095else
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097$as_echo "no" >&6; }
5098fi
5099
5100
5101if test "x$PKG_CONFIG" != "x"; then
5102 HAVE_PKG_CONFIG=1
jfigusd196e022014-11-20 16:43:44 -05005103 ac_config_files="$ac_config_files libsrtp2.pc"
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005104
5105else
5106 HAVE_PKG_CONFIG=0
5107fi
5108
jfigusc7e66e32013-05-08 11:32:55 -04005109ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile"
5110
Cullen Jennings235513a2005-09-21 22:51:36 +00005111cat >confcache <<\_ACEOF
5112# This file is a shell script that caches the results of configure
5113# tests run on this system so they can be shared between configure
5114# scripts and configure runs, see configure's option --config-cache.
5115# It is not useful on other systems. If it contains results you don't
5116# want to keep, you may remove or edit it.
5117#
5118# config.status only pays attention to the cache file if you give it
5119# the --recheck option to rerun configure.
5120#
5121# `ac_cv_env_foo' variables (set or unset) will be overridden when
5122# loading this file, other *unset* `ac_cv_foo' will be assigned the
5123# following values.
5124
5125_ACEOF
5126
5127# The following way of writing the cache mishandles newlines in values,
5128# but we know of no workaround that is simple, portable, and efficient.
jfigusc7e66e32013-05-08 11:32:55 -04005129# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00005130# Ultrix sh set writes to stderr and can't be redirected directly,
5131# and sets the high bit in the cache file unless we assign to the vars.
jfigusc7e66e32013-05-08 11:32:55 -04005132(
5133 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5134 eval ac_val=\$$ac_var
5135 case $ac_val in #(
5136 *${as_nl}*)
5137 case $ac_var in #(
5138 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5139$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5140 esac
5141 case $ac_var in #(
5142 _ | IFS | as_nl) ;; #(
5143 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5144 *) { eval $ac_var=; unset $ac_var;} ;;
5145 esac ;;
5146 esac
5147 done
5148
Cullen Jennings235513a2005-09-21 22:51:36 +00005149 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04005150 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5151 *${as_nl}ac_space=\ *)
5152 # `set' does not quote correctly, so add quotes: double-quote
5153 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00005154 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00005155 "s/'/'\\\\''/g;
5156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusc7e66e32013-05-08 11:32:55 -04005157 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00005158 *)
5159 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusc7e66e32013-05-08 11:32:55 -04005160 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00005161 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005162 esac |
5163 sort
5164) |
Cullen Jennings235513a2005-09-21 22:51:36 +00005165 sed '
jfigusc7e66e32013-05-08 11:32:55 -04005166 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00005167 t clear
jfigusc7e66e32013-05-08 11:32:55 -04005168 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00005169 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5170 t end
jfigusc7e66e32013-05-08 11:32:55 -04005171 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5172 :end' >>confcache
5173if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5174 if test -w "$cache_file"; then
5175 if test "x$cache_file" != "x/dev/null"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5177$as_echo "$as_me: updating cache $cache_file" >&6;}
5178 if test ! -f "$cache_file" || test -h "$cache_file"; then
5179 cat confcache >"$cache_file"
5180 else
5181 case $cache_file in #(
5182 */* | ?:*)
5183 mv -f confcache "$cache_file"$$ &&
5184 mv -f "$cache_file"$$ "$cache_file" ;; #(
5185 *)
5186 mv -f confcache "$cache_file" ;;
5187 esac
5188 fi
5189 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005190 else
jfigusc7e66e32013-05-08 11:32:55 -04005191 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5192$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00005193 fi
5194fi
5195rm -f confcache
5196
5197test "x$prefix" = xNONE && prefix=$ac_default_prefix
5198# Let make expand exec_prefix.
5199test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5200
Cullen Jennings235513a2005-09-21 22:51:36 +00005201DEFS=-DHAVE_CONFIG_H
5202
5203ac_libobjs=
5204ac_ltlibobjs=
jfigusc7e66e32013-05-08 11:32:55 -04005205U=
Cullen Jennings235513a2005-09-21 22:51:36 +00005206for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5207 # 1. Remove the extension, and $U if already installed.
jfigusc7e66e32013-05-08 11:32:55 -04005208 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5209 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5210 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5211 # will be set to the directory where LIBOBJS objects are built.
5212 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5213 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00005214done
5215LIBOBJS=$ac_libobjs
5216
5217LTLIBOBJS=$ac_ltlibobjs
5218
5219
5220
jfigusc7e66e32013-05-08 11:32:55 -04005221
5222: "${CONFIG_STATUS=./config.status}"
5223ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00005224ac_clean_files_save=$ac_clean_files
5225ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusc7e66e32013-05-08 11:32:55 -04005226{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5227$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5228as_write_fail=0
5229cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005230#! $SHELL
5231# Generated by $as_me.
5232# Run this file to recreate the current configuration.
5233# Compiler output produced by configure, useful for debugging
5234# configure, is in config.log if it exists.
5235
5236debug=false
5237ac_cs_recheck=false
5238ac_cs_silent=false
jfigusc7e66e32013-05-08 11:32:55 -04005239
Cullen Jennings235513a2005-09-21 22:51:36 +00005240SHELL=\${CONFIG_SHELL-$SHELL}
jfigusc7e66e32013-05-08 11:32:55 -04005241export SHELL
5242_ASEOF
5243cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5244## -------------------- ##
5245## M4sh Initialization. ##
5246## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00005247
jfigusc7e66e32013-05-08 11:32:55 -04005248# Be more Bourne compatible
5249DUALCASE=1; export DUALCASE # for MKS sh
5250if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005251 emulate sh
5252 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -04005253 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00005254 # is contrary to our usage. Disable this feature.
5255 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -04005256 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00005257else
jfigusc7e66e32013-05-08 11:32:55 -04005258 case `(set -o) 2>/dev/null` in #(
5259 *posix*) :
5260 set -o posix ;; #(
5261 *) :
5262 ;;
5263esac
Cullen Jennings235513a2005-09-21 22:51:36 +00005264fi
5265
5266
jfigusc7e66e32013-05-08 11:32:55 -04005267as_nl='
5268'
5269export as_nl
5270# Printing a long string crashes Solaris 7 /usr/bin/printf.
5271as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5272as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5273as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5274# Prefer a ksh shell builtin over an external printf program on Solaris,
5275# but without wasting forks for bash or zsh.
5276if test -z "$BASH_VERSION$ZSH_VERSION" \
5277 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5278 as_echo='print -r --'
5279 as_echo_n='print -rn --'
5280elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5281 as_echo='printf %s\n'
5282 as_echo_n='printf %s'
5283else
5284 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5285 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5286 as_echo_n='/usr/ucb/echo -n'
5287 else
5288 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5289 as_echo_n_body='eval
5290 arg=$1;
5291 case $arg in #(
5292 *"$as_nl"*)
5293 expr "X$arg" : "X\\(.*\\)$as_nl";
5294 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5295 esac;
5296 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5297 '
5298 export as_echo_n_body
5299 as_echo_n='sh -c $as_echo_n_body as_echo'
5300 fi
5301 export as_echo_body
5302 as_echo='sh -c $as_echo_body as_echo'
5303fi
5304
5305# The user is always right.
5306if test "${PATH_SEPARATOR+set}" != set; then
5307 PATH_SEPARATOR=:
5308 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5309 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5310 PATH_SEPARATOR=';'
5311 }
5312fi
5313
5314
5315# IFS
5316# We need space, tab and new line, in precisely that order. Quoting is
5317# there to prevent editors from complaining about space-tab.
5318# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5319# splitting by setting IFS to empty value.)
5320IFS=" "" $as_nl"
5321
5322# Find who we are. Look in the path if we contain no directory separator.
5323as_myself=
5324case $0 in #((
5325 *[\\/]* ) as_myself=$0 ;;
5326 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327for as_dir in $PATH
5328do
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5332 done
5333IFS=$as_save_IFS
5334
5335 ;;
5336esac
5337# We did not find ourselves, most probably we were run as `sh COMMAND'
5338# in which case we are not to be found in the path.
5339if test "x$as_myself" = x; then
5340 as_myself=$0
5341fi
5342if test ! -f "$as_myself"; then
5343 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5344 exit 1
5345fi
5346
5347# Unset variables that we do not need and which cause bugs (e.g. in
5348# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5349# suppresses any "Segmentation fault" message there. '((' could
5350# trigger a bug in pdksh 5.2.14.
5351for as_var in BASH_ENV ENV MAIL MAILPATH
5352do eval test x\${$as_var+set} = xset \
5353 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5354done
Cullen Jennings235513a2005-09-21 22:51:36 +00005355PS1='$ '
5356PS2='> '
5357PS4='+ '
5358
5359# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -04005360LC_ALL=C
5361export LC_ALL
5362LANGUAGE=C
5363export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -04005364
jfigusc7e66e32013-05-08 11:32:55 -04005365# CDPATH.
5366(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5367
5368
5369# as_fn_error STATUS ERROR [LINENO LOG_FD]
5370# ----------------------------------------
5371# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5372# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5373# script with STATUS, using 1 if that was 0.
5374as_fn_error ()
5375{
5376 as_status=$1; test $as_status -eq 0 && as_status=1
5377 if test "$4"; then
5378 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5380 fi
5381 $as_echo "$as_me: error: $2" >&2
5382 as_fn_exit $as_status
5383} # as_fn_error
5384
5385
5386# as_fn_set_status STATUS
5387# -----------------------
5388# Set $? to STATUS, without forking.
5389as_fn_set_status ()
5390{
5391 return $1
5392} # as_fn_set_status
5393
5394# as_fn_exit STATUS
5395# -----------------
5396# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5397as_fn_exit ()
5398{
5399 set +e
5400 as_fn_set_status $1
5401 exit $1
5402} # as_fn_exit
5403
5404# as_fn_unset VAR
5405# ---------------
5406# Portably unset VAR.
5407as_fn_unset ()
5408{
5409 { eval $1=; unset $1;}
5410}
5411as_unset=as_fn_unset
5412# as_fn_append VAR VALUE
5413# ----------------------
5414# Append the text in VALUE to the end of the definition contained in VAR. Take
5415# advantage of any shell optimizations that allow amortized linear growth over
5416# repeated appends, instead of the typical quadratic growth present in naive
5417# implementations.
5418if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5419 eval 'as_fn_append ()
5420 {
5421 eval $1+=\$2
5422 }'
5423else
5424 as_fn_append ()
5425 {
5426 eval $1=\$$1\$2
5427 }
5428fi # as_fn_append
5429
5430# as_fn_arith ARG...
5431# ------------------
5432# Perform arithmetic evaluation on the ARGs, and store the result in the
5433# global $as_val. Take advantage of shells that can avoid forks. The arguments
5434# must be portable across $(()) and expr.
5435if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5436 eval 'as_fn_arith ()
5437 {
5438 as_val=$(( $* ))
5439 }'
5440else
5441 as_fn_arith ()
5442 {
5443 as_val=`expr "$@" || test $? -eq 1`
5444 }
5445fi # as_fn_arith
5446
5447
5448if expr a : '\(a\)' >/dev/null 2>&1 &&
5449 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005450 as_expr=expr
5451else
5452 as_expr=false
5453fi
5454
jfigusc7e66e32013-05-08 11:32:55 -04005455if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00005456 as_basename=basename
5457else
5458 as_basename=false
5459fi
5460
jfigusc7e66e32013-05-08 11:32:55 -04005461if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5462 as_dirname=dirname
5463else
5464 as_dirname=false
5465fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005466
jfigusc7e66e32013-05-08 11:32:55 -04005467as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00005468$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5469 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04005470 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5471$as_echo X/"$0" |
5472 sed '/^.*\/\([^/][^/]*\)\/*$/{
5473 s//\1/
5474 q
5475 }
5476 /^X\/\(\/\/\)$/{
5477 s//\1/
5478 q
5479 }
5480 /^X\/\(\/\).*/{
5481 s//\1/
5482 q
5483 }
5484 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005485
Cullen Jennings235513a2005-09-21 22:51:36 +00005486# Avoid depending upon Character Ranges.
5487as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5488as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5489as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5490as_cr_digits='0123456789'
5491as_cr_alnum=$as_cr_Letters$as_cr_digits
5492
jfigusc7e66e32013-05-08 11:32:55 -04005493ECHO_C= ECHO_N= ECHO_T=
5494case `echo -n x` in #(((((
5495-n*)
5496 case `echo 'xy\c'` in
5497 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5498 xy) ECHO_C='\c';;
5499 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5500 ECHO_T=' ';;
5501 esac;;
5502*)
5503 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00005504esac
5505
Cullen Jennings235513a2005-09-21 22:51:36 +00005506rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -04005507if test -d conf$$.dir; then
5508 rm -f conf$$.dir/conf$$.file
5509else
5510 rm -f conf$$.dir
5511 mkdir conf$$.dir 2>/dev/null
5512fi
5513if (echo >conf$$.file) 2>/dev/null; then
5514 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005515 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -04005516 # ... but there are two gotchas:
5517 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5518 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5519 # In both cases, we have to default to `cp -pR'.
5520 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5521 as_ln_s='cp -pR'
5522 elif ln conf$$.file conf$$ 2>/dev/null; then
5523 as_ln_s=ln
5524 else
5525 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005526 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00005527else
jfigusc7e66e32013-05-08 11:32:55 -04005528 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00005529fi
jfigusc7e66e32013-05-08 11:32:55 -04005530rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5531rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00005532
jfigusc7e66e32013-05-08 11:32:55 -04005533
5534# as_fn_mkdir_p
5535# -------------
5536# Create "$as_dir" as a directory, including parents if necessary.
5537as_fn_mkdir_p ()
5538{
5539
5540 case $as_dir in #(
5541 -*) as_dir=./$as_dir;;
5542 esac
5543 test -d "$as_dir" || eval $as_mkdir_p || {
5544 as_dirs=
5545 while :; do
5546 case $as_dir in #(
5547 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5548 *) as_qdir=$as_dir;;
5549 esac
5550 as_dirs="'$as_qdir' $as_dirs"
5551 as_dir=`$as_dirname -- "$as_dir" ||
5552$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5553 X"$as_dir" : 'X\(//\)[^/]' \| \
5554 X"$as_dir" : 'X\(//\)$' \| \
5555 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5556$as_echo X"$as_dir" |
5557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5558 s//\1/
5559 q
5560 }
5561 /^X\(\/\/\)[^/].*/{
5562 s//\1/
5563 q
5564 }
5565 /^X\(\/\/\)$/{
5566 s//\1/
5567 q
5568 }
5569 /^X\(\/\).*/{
5570 s//\1/
5571 q
5572 }
5573 s/.*/./; q'`
5574 test -d "$as_dir" && break
5575 done
5576 test -z "$as_dirs" || eval "mkdir $as_dirs"
5577 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5578
5579
5580} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005581if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -04005582 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00005583else
David McGrewfec49dd2005-09-23 19:34:11 +00005584 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00005585 as_mkdir_p=false
5586fi
5587
jfigusc7e66e32013-05-08 11:32:55 -04005588
5589# as_fn_executable_p FILE
5590# -----------------------
5591# Test if FILE is an executable regular file.
5592as_fn_executable_p ()
5593{
5594 test -f "$1" && test -x "$1"
5595} # as_fn_executable_p
5596as_test_x='test -x'
5597as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00005598
5599# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00005600as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005601
5602# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00005603as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005604
5605
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005606exec 6>&1
jfigusc7e66e32013-05-08 11:32:55 -04005607## ----------------------------------- ##
5608## Main body of $CONFIG_STATUS script. ##
5609## ----------------------------------- ##
5610_ASEOF
5611test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005612
jfigusc7e66e32013-05-08 11:32:55 -04005613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5614# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00005615# report actual input values of CONFIG_FILES etc. instead of their
jfigusc7e66e32013-05-08 11:32:55 -04005616# values after options handling.
5617ac_log="
jfigusd196e022014-11-20 16:43:44 -05005618This file was extended by libsrtp2 $as_me 2.0.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04005619generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00005620
5621 CONFIG_FILES = $CONFIG_FILES
5622 CONFIG_HEADERS = $CONFIG_HEADERS
5623 CONFIG_LINKS = $CONFIG_LINKS
5624 CONFIG_COMMANDS = $CONFIG_COMMANDS
5625 $ $0 $@
5626
jfigusc7e66e32013-05-08 11:32:55 -04005627on `(hostname || uname -n) 2>/dev/null | sed 1q`
5628"
5629
Cullen Jennings235513a2005-09-21 22:51:36 +00005630_ACEOF
5631
jfigusc7e66e32013-05-08 11:32:55 -04005632case $ac_config_files in *"
5633"*) set x $ac_config_files; shift; ac_config_files=$*;;
5634esac
5635
5636case $ac_config_headers in *"
5637"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5638esac
5639
5640
5641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005642# Files that config.status was made for.
jfigusc7e66e32013-05-08 11:32:55 -04005643config_files="$ac_config_files"
5644config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00005645
jfigusc7e66e32013-05-08 11:32:55 -04005646_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005647
jfigusc7e66e32013-05-08 11:32:55 -04005648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005649ac_cs_usage="\
jfigusc7e66e32013-05-08 11:32:55 -04005650\`$as_me' instantiates files and other configuration actions
5651from templates according to the current configuration. Unless the files
5652and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00005653
jfigusc7e66e32013-05-08 11:32:55 -04005654Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00005655
5656 -h, --help print this help, then exit
jfigusc7e66e32013-05-08 11:32:55 -04005657 -V, --version print version number and configuration settings, then exit
5658 --config print configuration, then exit
5659 -q, --quiet, --silent
5660 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00005661 -d, --debug don't remove temporary files
5662 --recheck update $as_me by reconfiguring in the same conditions
jfigusc7e66e32013-05-08 11:32:55 -04005663 --file=FILE[:TEMPLATE]
5664 instantiate the configuration file FILE
5665 --header=FILE[:TEMPLATE]
5666 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00005667
5668Configuration files:
5669$config_files
5670
5671Configuration headers:
5672$config_headers
5673
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02005674Report bugs to <https://github.com/cisco/libsrtp/issues>."
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005675
jfigusc7e66e32013-05-08 11:32:55 -04005676_ACEOF
5677cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5678ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00005679ac_cs_version="\\
jfigusd196e022014-11-20 16:43:44 -05005680libsrtp2 config.status 2.0.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04005681configured by $0, generated by GNU Autoconf 2.69,
5682 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00005683
jfigusc7e66e32013-05-08 11:32:55 -04005684Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00005685This config.status script is free software; the Free Software Foundation
5686gives unlimited permission to copy, distribute and modify it."
jfigusc7e66e32013-05-08 11:32:55 -04005687
5688ac_pwd='$ac_pwd'
5689srcdir='$srcdir'
5690INSTALL='$INSTALL'
5691test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00005692_ACEOF
5693
jfigusc7e66e32013-05-08 11:32:55 -04005694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5695# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00005696ac_need_defaults=:
5697while test $# != 0
5698do
5699 case $1 in
jfigusc7e66e32013-05-08 11:32:55 -04005700 --*=?*)
5701 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5702 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00005703 ac_shift=:
5704 ;;
jfigusc7e66e32013-05-08 11:32:55 -04005705 --*=)
5706 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5707 ac_optarg=
5708 ac_shift=:
5709 ;;
5710 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00005711 ac_option=$1
5712 ac_optarg=$2
5713 ac_shift=shift
5714 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005715 esac
5716
5717 case $ac_option in
5718 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00005719 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5720 ac_cs_recheck=: ;;
jfigusc7e66e32013-05-08 11:32:55 -04005721 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5722 $as_echo "$ac_cs_version"; exit ;;
5723 --config | --confi | --conf | --con | --co | --c )
5724 $as_echo "$ac_cs_config"; exit ;;
5725 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00005726 debug=: ;;
5727 --file | --fil | --fi | --f )
5728 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04005729 case $ac_optarg in
5730 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5731 '') as_fn_error $? "missing file argument" ;;
5732 esac
5733 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005734 ac_need_defaults=false;;
5735 --header | --heade | --head | --hea )
5736 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04005737 case $ac_optarg in
5738 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5739 esac
5740 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00005741 ac_need_defaults=false;;
jfigusc7e66e32013-05-08 11:32:55 -04005742 --he | --h)
5743 # Conflict between --help and --header
5744 as_fn_error $? "ambiguous option: \`$1'
5745Try \`$0 --help' for more information.";;
5746 --help | --hel | -h )
5747 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005748 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5749 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5750 ac_cs_silent=: ;;
5751
5752 # This is an error.
jfigusc7e66e32013-05-08 11:32:55 -04005753 -*) as_fn_error $? "unrecognized option: \`$1'
5754Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005755
jfigusc7e66e32013-05-08 11:32:55 -04005756 *) as_fn_append ac_config_targets " $1"
5757 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005758
5759 esac
5760 shift
5761done
5762
5763ac_configure_extra_args=
5764
5765if $ac_cs_silent; then
5766 exec 6>/dev/null
5767 ac_configure_extra_args="$ac_configure_extra_args --silent"
5768fi
5769
5770_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005772if \$ac_cs_recheck; then
jfigusc7e66e32013-05-08 11:32:55 -04005773 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5774 shift
5775 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5776 CONFIG_SHELL='$SHELL'
5777 export CONFIG_SHELL
5778 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00005779fi
5780
5781_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5783exec 5>>config.log
5784{
5785 echo
5786 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5787## Running $as_me. ##
5788_ASBOX
5789 $as_echo "$ac_log"
5790} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00005791
jfigusc7e66e32013-05-08 11:32:55 -04005792_ACEOF
5793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5794_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00005795
jfigusc7e66e32013-05-08 11:32:55 -04005796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00005797
jfigusc7e66e32013-05-08 11:32:55 -04005798# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00005799for ac_config_target in $ac_config_targets
5800do
jfigusc7e66e32013-05-08 11:32:55 -04005801 case $ac_config_target in
5802 "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
jfigusd196e022014-11-20 16:43:44 -05005803 "libsrtp2.pc") CONFIG_FILES="$CONFIG_FILES libsrtp2.pc" ;;
jfigusc7e66e32013-05-08 11:32:55 -04005804 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5805 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
5806 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5807
5808 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005809 esac
5810done
5811
jfigusc7e66e32013-05-08 11:32:55 -04005812
Cullen Jennings235513a2005-09-21 22:51:36 +00005813# If the user did not use the arguments to specify the items to instantiate,
5814# then the envvar interface is used. Set only those that are not.
5815# We use the long form for the default assignment because of an extremely
5816# bizarre bug on SunOS 4.1.3.
5817if $ac_need_defaults; then
5818 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5819 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5820fi
5821
5822# Have a temporary directory for convenience. Make it in the build tree
jfigusc7e66e32013-05-08 11:32:55 -04005823# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00005824# creating and moving files from /tmp can sometimes cause problems.
jfigusc7e66e32013-05-08 11:32:55 -04005825# Hook for its removal unless debugging.
5826# Note that there is a small window in which the directory will not be cleaned:
5827# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00005828$debug ||
5829{
jfigusc7e66e32013-05-08 11:32:55 -04005830 tmp= ac_tmp=
5831 trap 'exit_status=$?
5832 : "${ac_tmp:=$tmp}"
5833 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5834' 0
5835 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00005836}
Cullen Jennings235513a2005-09-21 22:51:36 +00005837# Create a (secure) tmp directory for tmp files.
5838
5839{
jfigusc7e66e32013-05-08 11:32:55 -04005840 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5841 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00005842} ||
5843{
jfigusc7e66e32013-05-08 11:32:55 -04005844 tmp=./conf$$-$RANDOM
5845 (umask 077 && mkdir "$tmp")
5846} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5847ac_tmp=$tmp
5848
5849# Set up the scripts for CONFIG_FILES section.
5850# No need to generate them if there are no CONFIG_FILES.
5851# This happens for instance with `./config.status config.h'.
5852if test -n "$CONFIG_FILES"; then
5853
5854
5855ac_cr=`echo X | tr X '\015'`
5856# On cygwin, bash can eat \r inside `` if the user requested igncr.
5857# But we know of no other shell where ac_cr would be empty at this
5858# point, so we can use a bashism as a fallback.
5859if test "x$ac_cr" = x; then
5860 eval ac_cr=\$\'\\r\'
5861fi
5862ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5863if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5864 ac_cs_awk_cr='\\r'
5865else
5866 ac_cs_awk_cr=$ac_cr
5867fi
5868
5869echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5870_ACEOF
5871
5872
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005873{
jfigusc7e66e32013-05-08 11:32:55 -04005874 echo "cat >conf$$subs.awk <<_ACEOF" &&
5875 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5876 echo "_ACEOF"
5877} >conf$$subs.sh ||
5878 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5879ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5880ac_delim='%!_!# '
5881for ac_last_try in false false false false false :; do
5882 . ./conf$$subs.sh ||
5883 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5884
5885 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5886 if test $ac_delim_n = $ac_delim_num; then
5887 break
5888 elif $ac_last_try; then
5889 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5890 else
5891 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5892 fi
5893done
5894rm -f conf$$subs.sh
5895
5896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5897cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5898_ACEOF
5899sed -n '
5900h
5901s/^/S["/; s/!.*/"]=/
5902p
5903g
5904s/^[^!]*!//
5905:repl
5906t repl
5907s/'"$ac_delim"'$//
5908t delim
5909:nl
5910h
5911s/\(.\{148\}\)..*/\1/
5912t more1
5913s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5914p
5915n
5916b repl
5917:more1
5918s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5919p
5920g
5921s/.\{148\}//
5922t nl
5923:delim
5924h
5925s/\(.\{148\}\)..*/\1/
5926t more2
5927s/["\\]/\\&/g; s/^/"/; s/$/"/
5928p
5929b
5930:more2
5931s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5932p
5933g
5934s/.\{148\}//
5935t delim
5936' <conf$$subs.awk | sed '
5937/^[^""]/{
5938 N
5939 s/\n//
5940}
5941' >>$CONFIG_STATUS || ac_write_fail=1
5942rm -f conf$$subs.awk
5943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5944_ACAWK
5945cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5946 for (key in S) S_is_set[key] = 1
5947 FS = ""
5948
5949}
5950{
5951 line = $ 0
5952 nfields = split(line, field, "@")
5953 substed = 0
5954 len = length(field[1])
5955 for (i = 2; i < nfields; i++) {
5956 key = field[i]
5957 keylen = length(key)
5958 if (S_is_set[key]) {
5959 value = S[key]
5960 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5961 len += length(value) + length(field[++i])
5962 substed = 1
5963 } else
5964 len += 1 + keylen
5965 }
5966
5967 print line
Cullen Jennings52c5cd32013-05-01 18:07:29 -06005968}
jfigusa14b5a02013-03-29 12:24:12 -04005969
jfigusc7e66e32013-05-08 11:32:55 -04005970_ACAWK
5971_ACEOF
5972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5973if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5974 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5975else
5976 cat
5977fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5978 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
jfigusa14b5a02013-03-29 12:24:12 -04005979_ACEOF
5980
jfigusc7e66e32013-05-08 11:32:55 -04005981# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5982# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5983# trailing colons and then remove the whole line if VPATH becomes empty
5984# (actually we leave an empty line to preserve line numbers).
5985if test "x$srcdir" = x.; then
5986 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5987h
5988s///
5989s/^/:/
5990s/[ ]*$/:/
5991s/:\$(srcdir):/:/g
5992s/:\${srcdir}:/:/g
5993s/:@srcdir@:/:/g
5994s/^:*//
5995s/:*$//
5996x
5997s/\(=[ ]*\).*/\1/
5998G
5999s/\n//
6000s/^[^=]*=[ ]*$//
6001}'
6002fi
jfigusa14b5a02013-03-29 12:24:12 -04006003
jfigusc7e66e32013-05-08 11:32:55 -04006004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006005fi # test -n "$CONFIG_FILES"
6006
jfigusc7e66e32013-05-08 11:32:55 -04006007# Set up the scripts for CONFIG_HEADERS section.
6008# No need to generate them if there are no CONFIG_HEADERS.
6009# This happens for instance with `./config.status Makefile'.
6010if test -n "$CONFIG_HEADERS"; then
6011cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6012BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00006013_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006014
6015# Transform confdefs.h into an awk script `defines.awk', embedded as
6016# here-document in config.status, that substitutes the proper values into
6017# config.h.in to produce config.h.
6018
6019# Create a delimiter string that does not exist in confdefs.h, to ease
6020# handling of long lines.
6021ac_delim='%!_!# '
6022for ac_last_try in false false :; do
6023 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6024 if test -z "$ac_tt"; then
6025 break
6026 elif $ac_last_try; then
6027 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6028 else
6029 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6030 fi
6031done
6032
6033# For the awk script, D is an array of macro values keyed by name,
6034# likewise P contains macro parameters if any. Preserve backslash
6035# newline sequences.
6036
6037ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6038sed -n '
6039s/.\{148\}/&'"$ac_delim"'/g
6040t rset
6041:rset
6042s/^[ ]*#[ ]*define[ ][ ]*/ /
6043t def
6044d
6045:def
6046s/\\$//
6047t bsnl
6048s/["\\]/\\&/g
6049s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6050D["\1"]=" \3"/p
6051s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6052d
6053:bsnl
6054s/["\\]/\\&/g
6055s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6056D["\1"]=" \3\\\\\\n"\\/p
6057t cont
6058s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6059t cont
6060d
6061:cont
6062n
6063s/.\{148\}/&'"$ac_delim"'/g
6064t clear
6065:clear
6066s/\\$//
6067t bsnlc
6068s/["\\]/\\&/g; s/^/"/; s/$/"/p
6069d
6070:bsnlc
6071s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6072b cont
6073' <confdefs.h | sed '
6074s/'"$ac_delim"'/"\\\
6075"/g' >>$CONFIG_STATUS || ac_write_fail=1
6076
6077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6078 for (key in D) D_is_set[key] = 1
6079 FS = ""
6080}
6081/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6082 line = \$ 0
6083 split(line, arg, " ")
6084 if (arg[1] == "#") {
6085 defundef = arg[2]
6086 mac1 = arg[3]
6087 } else {
6088 defundef = substr(arg[1], 2)
6089 mac1 = arg[2]
6090 }
6091 split(mac1, mac2, "(") #)
6092 macro = mac2[1]
6093 prefix = substr(line, 1, index(line, defundef) - 1)
6094 if (D_is_set[macro]) {
6095 # Preserve the white space surrounding the "#".
6096 print prefix "define", macro P[macro] D[macro]
6097 next
6098 } else {
6099 # Replace #undef with comments. This is necessary, for example,
6100 # in the case of _POSIX_SOURCE, which is predefined and required
6101 # on some systems where configure will not decide to define it.
6102 if (defundef == "undef") {
6103 print "/*", prefix defundef, macro, "*/"
6104 next
6105 }
6106 }
6107}
6108{ print }
6109_ACAWK
6110_ACEOF
6111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6112 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6113fi # test -n "$CONFIG_HEADERS"
6114
6115
6116eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6117shift
6118for ac_tag
6119do
6120 case $ac_tag in
6121 :[FHLC]) ac_mode=$ac_tag; continue;;
6122 esac
6123 case $ac_mode$ac_tag in
6124 :[FHL]*:*);;
6125 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6126 :[FH]-) ac_tag=-:-;;
6127 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6128 esac
6129 ac_save_IFS=$IFS
6130 IFS=:
6131 set x $ac_tag
6132 IFS=$ac_save_IFS
6133 shift
6134 ac_file=$1
6135 shift
6136
6137 case $ac_mode in
6138 :L) ac_source=$1;;
6139 :[FH])
6140 ac_file_inputs=
6141 for ac_f
6142 do
6143 case $ac_f in
6144 -) ac_f="$ac_tmp/stdin";;
6145 *) # Look for the file first in the build tree, then in the source tree
6146 # (if the path is not absolute). The absolute path cannot be DOS-style,
6147 # because $ac_f cannot contain `:'.
6148 test -f "$ac_f" ||
6149 case $ac_f in
6150 [\\/$]*) false;;
6151 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6152 esac ||
6153 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6154 esac
6155 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6156 as_fn_append ac_file_inputs " '$ac_f'"
6157 done
6158
6159 # Let's still pretend it is `configure' which instantiates (i.e., don't
6160 # use $as_me), people would be surprised to read:
6161 # /* config.h. Generated by config.status. */
6162 configure_input='Generated from '`
6163 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6164 `' by configure.'
6165 if test x"$ac_file" != x-; then
6166 configure_input="$ac_file. $configure_input"
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6168$as_echo "$as_me: creating $ac_file" >&6;}
6169 fi
6170 # Neutralize special characters interpreted by sed in replacement strings.
6171 case $configure_input in #(
6172 *\&* | *\|* | *\\* )
6173 ac_sed_conf_input=`$as_echo "$configure_input" |
6174 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6175 *) ac_sed_conf_input=$configure_input;;
6176 esac
6177
6178 case $ac_tag in
6179 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6181 esac
6182 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006183 esac
6184
jfigusc7e66e32013-05-08 11:32:55 -04006185 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006186$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00006187 X"$ac_file" : 'X\(//\)[^/]' \| \
6188 X"$ac_file" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006189 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6190$as_echo X"$ac_file" |
6191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6192 s//\1/
6193 q
6194 }
6195 /^X\(\/\/\)[^/].*/{
6196 s//\1/
6197 q
6198 }
6199 /^X\(\/\/\)$/{
6200 s//\1/
6201 q
6202 }
6203 /^X\(\/\).*/{
6204 s//\1/
6205 q
6206 }
6207 s/.*/./; q'`
6208 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006209 ac_builddir=.
6210
jfigusc7e66e32013-05-08 11:32:55 -04006211case "$ac_dir" in
6212.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6213*)
6214 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6215 # A ".." for each directory in $ac_dir_suffix.
6216 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6217 case $ac_top_builddir_sub in
6218 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6219 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6220 esac ;;
6221esac
6222ac_abs_top_builddir=$ac_pwd
6223ac_abs_builddir=$ac_pwd$ac_dir_suffix
6224# for backward compatibility:
6225ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00006226
6227case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04006228 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00006229 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04006230 ac_top_srcdir=$ac_top_builddir_sub
6231 ac_abs_top_srcdir=$ac_pwd ;;
6232 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00006233 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04006234 ac_top_srcdir=$srcdir
6235 ac_abs_top_srcdir=$srcdir ;;
6236 *) # Relative name.
6237 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6238 ac_top_srcdir=$ac_top_build_prefix$srcdir
6239 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006240esac
jfigusc7e66e32013-05-08 11:32:55 -04006241ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00006242
Cullen Jennings235513a2005-09-21 22:51:36 +00006243
jfigusc7e66e32013-05-08 11:32:55 -04006244 case $ac_mode in
6245 :F)
6246 #
6247 # CONFIG_FILE
6248 #
Cullen Jennings235513a2005-09-21 22:51:36 +00006249
David McGrewb67061f2005-09-28 14:23:06 +00006250 case $INSTALL in
6251 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusc7e66e32013-05-08 11:32:55 -04006252 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00006253 esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006254_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006255
6256cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6257# If the template does not know about datarootdir, expand it.
6258# FIXME: This hack should be removed a few years after 2.60.
6259ac_datarootdir_hack=; ac_datarootdir_seen=
6260ac_sed_dataroot='
6261/datarootdir/ {
6262 p
6263 q
6264}
6265/@datadir@/p
6266/@docdir@/p
6267/@infodir@/p
6268/@localedir@/p
6269/@mandir@/p'
6270case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6271*datarootdir*) ac_datarootdir_seen=yes;;
6272*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6274$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6275_ACEOF
6276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6277 ac_datarootdir_hack='
6278 s&@datadir@&$datadir&g
6279 s&@docdir@&$docdir&g
6280 s&@infodir@&$infodir&g
6281 s&@localedir@&$localedir&g
6282 s&@mandir@&$mandir&g
6283 s&\\\${datarootdir}&$datarootdir&g' ;;
6284esac
6285_ACEOF
6286
6287# Neutralize VPATH when `$srcdir' = `.'.
6288# Shell code in configure.ac might set extrasub.
6289# FIXME: do we really want to maintain this feature?
6290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6291ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00006292$extrasub
6293_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006295:t
6296/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusc7e66e32013-05-08 11:32:55 -04006297s|@configure_input@|$ac_sed_conf_input|;t t
6298s&@top_builddir@&$ac_top_builddir_sub&;t t
6299s&@top_build_prefix@&$ac_top_build_prefix&;t t
6300s&@srcdir@&$ac_srcdir&;t t
6301s&@abs_srcdir@&$ac_abs_srcdir&;t t
6302s&@top_srcdir@&$ac_top_srcdir&;t t
6303s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6304s&@builddir@&$ac_builddir&;t t
6305s&@abs_builddir@&$ac_abs_builddir&;t t
6306s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6307s&@INSTALL@&$ac_INSTALL&;t t
6308$ac_datarootdir_hack
6309"
6310eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6311 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00006312
jfigusc7e66e32013-05-08 11:32:55 -04006313test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6314 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6315 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6316 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6318which seems to be undefined. Please make sure it is defined" >&5
6319$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6320which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006321
jfigusc7e66e32013-05-08 11:32:55 -04006322 rm -f "$ac_tmp/stdin"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006323 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04006324 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6325 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6326 esac \
6327 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6328 ;;
6329 :H)
6330 #
6331 # CONFIG_HEADER
6332 #
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006333 if test x"$ac_file" != x-; then
jfigusc7e66e32013-05-08 11:32:55 -04006334 {
6335 $as_echo "/* $configure_input */" \
6336 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6337 } >"$ac_tmp/config.h" \
6338 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6339 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6341$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006342 else
jfigusc7e66e32013-05-08 11:32:55 -04006343 rm -f "$ac_file"
6344 mv "$ac_tmp/config.h" "$ac_file" \
6345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006346 fi
6347 else
jfigusc7e66e32013-05-08 11:32:55 -04006348 $as_echo "/* $configure_input */" \
6349 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6350 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006351 fi
jfigusc7e66e32013-05-08 11:32:55 -04006352 ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006353
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006354
jfigusc7e66e32013-05-08 11:32:55 -04006355 esac
6356
6357done # for ac_tag
6358
6359
6360as_fn_exit 0
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006361_ACEOF
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006362ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04006363
jfigusc7e66e32013-05-08 11:32:55 -04006364test $ac_write_fail = 0 ||
6365 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6366
Cullen Jennings235513a2005-09-21 22:51:36 +00006367
6368# configure is writing to config.log, and then calls config.status.
6369# config.status does its own redirection, appending to config.log.
6370# Unfortunately, on DOS this fails, as config.log is still kept open
6371# by configure, so config.status won't be able to write to it; its
6372# output is simply discarded. So we exec the FD to /dev/null,
6373# effectively closing config.log, so it can be properly (re)opened and
6374# appended to by config.status. When coming back to configure, we
6375# need to make the FD available again.
6376if test "$no_create" != yes; then
6377 ac_cs_success=:
6378 ac_config_status_args=
6379 test "$silent" = yes &&
6380 ac_config_status_args="$ac_config_status_args --quiet"
6381 exec 5>/dev/null
6382 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6383 exec 5>>config.log
6384 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6385 # would make configure fail if this is the last instruction.
jfigusc7e66e32013-05-08 11:32:55 -04006386 $ac_cs_success || as_fn_exit 1
6387fi
6388if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6390$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006391fi
6392
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00006393
6394# This is needed when building outside the source dir.
jfigusc7e66e32013-05-08 11:32:55 -04006395as_dir=crypto/cipher; as_fn_mkdir_p
6396as_dir=crypto/hash; as_fn_mkdir_p
6397as_dir=crypto/kernel; as_fn_mkdir_p
6398as_dir=crypto/math; as_fn_mkdir_p
6399as_dir=crypto/replay; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04006400as_dir=crypto/test; as_fn_mkdir_p
6401as_dir=doc; as_fn_mkdir_p
6402as_dir=srtp; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04006403as_dir=test; as_fn_mkdir_p