blob: 6694dc8a5677eeb15d0fb6924fa8bfdeb0ca5ad1 [file] [log] [blame]
Cullen Jennings235513a2005-09-21 22:51:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Pascal Bühler34acba62017-01-19 10:57:30 +01003# Generated by GNU Autoconf 2.69 for libsrtp2 2.1.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'
Pascal Bühler34acba62017-01-19 10:57:30 +0100583PACKAGE_VERSION='2.1.0-pre'
584PACKAGE_STRING='libsrtp2 2.1.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
Bernardo Torresb3c51422014-10-14 12:40:09 -0300626HAVE_PCAP
jfigusc7e66e32013-05-08 11:32:55 -0400627HMAC_OBJS
jfigusc7e66e32013-05-08 11:32:55 -0400628AES_ICM_OBJS
629USE_OPENSSL
Idar Tollefsen600ad962017-01-26 11:24:51 +0100630crypto_LIBS
631crypto_CFLAGS
632PKG_CONFIG_LIBDIR
633PKG_CONFIG_PATH
634PKG_CONFIG
jfigusc7e66e32013-05-08 11:32:55 -0400635EXE
636host_os
637host_vendor
638host_cpu
639host
640build_os
641build_vendor
642build_cpu
643build
644EGREP
645GREP
646CPP
Idar Tollefsen600ad962017-01-26 11:24:51 +0100647SED
jfigusc7e66e32013-05-08 11:32:55 -0400648INSTALL_DATA
649INSTALL_SCRIPT
650INSTALL_PROGRAM
jfigus1ce6a742015-04-06 08:54:01 -0400651RANLIB
jfigusc7e66e32013-05-08 11:32:55 -0400652OBJEXT
653EXEEXT
654ac_ct_CC
655CPPFLAGS
656LDFLAGS
657CFLAGS
658CC
jfigus1ce6a742015-04-06 08:54:01 -0400659ac_ct_AR
660AR
jfigusc7e66e32013-05-08 11:32:55 -0400661target_alias
662host_alias
663build_alias
664LIBS
665ECHO_T
666ECHO_N
667ECHO_C
668DEFS
669mandir
670localedir
671libdir
672psdir
673pdfdir
674dvidir
675htmldir
676infodir
677docdir
678oldincludedir
679includedir
680localstatedir
681sharedstatedir
682sysconfdir
683datadir
684datarootdir
685libexecdir
686sbindir
687bindir
688program_transform_name
689prefix
690exec_prefix
691PACKAGE_URL
692PACKAGE_BUGREPORT
693PACKAGE_STRING
694PACKAGE_VERSION
695PACKAGE_TARNAME
696PACKAGE_NAME
697PATH_SEPARATOR
698SHELL'
Cullen Jennings235513a2005-09-21 22:51:36 +0000699ac_subst_files=''
jfigusc7e66e32013-05-08 11:32:55 -0400700ac_user_opts='
701enable_option_checking
jfigusc7e66e32013-05-08 11:32:55 -0400702enable_debug
703enable_generic_aesicm
704enable_openssl
jfigus038d2cf2015-05-11 14:10:11 -0400705with_openssl_dir
706enable_openssl_kdf
jfigusc7e66e32013-05-08 11:32:55 -0400707enable_stdout
708enable_console
jfigusc7e66e32013-05-08 11:32:55 -0400709'
710 ac_precious_vars='build_alias
711host_alias
712target_alias
713CC
714CFLAGS
715LDFLAGS
716LIBS
717CPPFLAGS
Idar Tollefsen600ad962017-01-26 11:24:51 +0100718CPP
719PKG_CONFIG
720PKG_CONFIG_PATH
721PKG_CONFIG_LIBDIR
722crypto_CFLAGS
723crypto_LIBS'
jfigusc7e66e32013-05-08 11:32:55 -0400724
Cullen Jennings235513a2005-09-21 22:51:36 +0000725
726# Initialize some variables set by options.
727ac_init_help=
728ac_init_version=false
jfigusc7e66e32013-05-08 11:32:55 -0400729ac_unrecognized_opts=
730ac_unrecognized_sep=
Cullen Jennings235513a2005-09-21 22:51:36 +0000731# The variables have the same names as the options, with
732# dashes changed to underlines.
733cache_file=/dev/null
734exec_prefix=NONE
735no_create=
736no_recursion=
737prefix=NONE
738program_prefix=NONE
739program_suffix=NONE
740program_transform_name=s,x,x,
741silent=
742site=
743srcdir=
744verbose=
745x_includes=NONE
746x_libraries=NONE
747
748# Installation directory options.
749# These are left unexpanded so users can "make install exec_prefix=/foo"
750# and all the variables that are supposed to be based on exec_prefix
751# by default will actually change.
752# Use braces instead of parens because sh, perl, etc. also accept them.
jfigusc7e66e32013-05-08 11:32:55 -0400753# (The list follows the same order as the GNU Coding Standards.)
Cullen Jennings235513a2005-09-21 22:51:36 +0000754bindir='${exec_prefix}/bin'
755sbindir='${exec_prefix}/sbin'
756libexecdir='${exec_prefix}/libexec'
jfigusc7e66e32013-05-08 11:32:55 -0400757datarootdir='${prefix}/share'
758datadir='${datarootdir}'
Cullen Jennings235513a2005-09-21 22:51:36 +0000759sysconfdir='${prefix}/etc'
760sharedstatedir='${prefix}/com'
761localstatedir='${prefix}/var'
Cullen Jennings235513a2005-09-21 22:51:36 +0000762includedir='${prefix}/include'
763oldincludedir='/usr/include'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200764docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
jfigusc7e66e32013-05-08 11:32:55 -0400765infodir='${datarootdir}/info'
766htmldir='${docdir}'
767dvidir='${docdir}'
768pdfdir='${docdir}'
769psdir='${docdir}'
770libdir='${exec_prefix}/lib'
771localedir='${datarootdir}/locale'
772mandir='${datarootdir}/man'
Cullen Jennings235513a2005-09-21 22:51:36 +0000773
774ac_prev=
jfigusc7e66e32013-05-08 11:32:55 -0400775ac_dashdash=
Cullen Jennings235513a2005-09-21 22:51:36 +0000776for ac_option
777do
778 # If the previous option needs an argument, assign it.
779 if test -n "$ac_prev"; then
jfigusc7e66e32013-05-08 11:32:55 -0400780 eval $ac_prev=\$ac_option
Cullen Jennings235513a2005-09-21 22:51:36 +0000781 ac_prev=
782 continue
783 fi
784
jfigusc7e66e32013-05-08 11:32:55 -0400785 case $ac_option in
786 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
787 *=) ac_optarg= ;;
788 *) ac_optarg=yes ;;
789 esac
Cullen Jennings235513a2005-09-21 22:51:36 +0000790
791 # Accept the important Cygnus configure options, so we can diagnose typos.
792
jfigusc7e66e32013-05-08 11:32:55 -0400793 case $ac_dashdash$ac_option in
794 --)
795 ac_dashdash=yes ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000796
797 -bindir | --bindir | --bindi | --bind | --bin | --bi)
798 ac_prev=bindir ;;
799 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
800 bindir=$ac_optarg ;;
801
802 -build | --build | --buil | --bui | --bu)
803 ac_prev=build_alias ;;
804 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
805 build_alias=$ac_optarg ;;
806
807 -cache-file | --cache-file | --cache-fil | --cache-fi \
808 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
809 ac_prev=cache_file ;;
810 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
811 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
812 cache_file=$ac_optarg ;;
813
814 --config-cache | -C)
815 cache_file=config.cache ;;
816
jfigusc7e66e32013-05-08 11:32:55 -0400817 -datadir | --datadir | --datadi | --datad)
Cullen Jennings235513a2005-09-21 22:51:36 +0000818 ac_prev=datadir ;;
jfigusc7e66e32013-05-08 11:32:55 -0400819 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000820 datadir=$ac_optarg ;;
821
jfigusc7e66e32013-05-08 11:32:55 -0400822 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
823 | --dataroo | --dataro | --datar)
824 ac_prev=datarootdir ;;
825 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
826 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
827 datarootdir=$ac_optarg ;;
828
Cullen Jennings235513a2005-09-21 22:51:36 +0000829 -disable-* | --disable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400830 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000831 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400832 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
833 as_fn_error $? "invalid feature name: $ac_useropt"
834 ac_useropt_orig=$ac_useropt
835 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
836 case $ac_user_opts in
837 *"
838"enable_$ac_useropt"
839"*) ;;
840 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
841 ac_unrecognized_sep=', ';;
842 esac
843 eval enable_$ac_useropt=no ;;
844
845 -docdir | --docdir | --docdi | --doc | --do)
846 ac_prev=docdir ;;
847 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
848 docdir=$ac_optarg ;;
849
850 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
851 ac_prev=dvidir ;;
852 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
853 dvidir=$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000854
855 -enable-* | --enable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400856 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000857 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859 as_fn_error $? "invalid feature name: $ac_useropt"
860 ac_useropt_orig=$ac_useropt
861 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862 case $ac_user_opts in
863 *"
864"enable_$ac_useropt"
865"*) ;;
866 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
867 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000868 esac
jfigusc7e66e32013-05-08 11:32:55 -0400869 eval enable_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000870
871 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
872 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
873 | --exec | --exe | --ex)
874 ac_prev=exec_prefix ;;
875 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
876 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
877 | --exec=* | --exe=* | --ex=*)
878 exec_prefix=$ac_optarg ;;
879
880 -gas | --gas | --ga | --g)
881 # Obsolete; use --with-gas.
882 with_gas=yes ;;
883
884 -help | --help | --hel | --he | -h)
885 ac_init_help=long ;;
886 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
887 ac_init_help=recursive ;;
888 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
889 ac_init_help=short ;;
890
891 -host | --host | --hos | --ho)
892 ac_prev=host_alias ;;
893 -host=* | --host=* | --hos=* | --ho=*)
894 host_alias=$ac_optarg ;;
895
jfigusc7e66e32013-05-08 11:32:55 -0400896 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
897 ac_prev=htmldir ;;
898 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
899 | --ht=*)
900 htmldir=$ac_optarg ;;
901
Cullen Jennings235513a2005-09-21 22:51:36 +0000902 -includedir | --includedir | --includedi | --included | --include \
903 | --includ | --inclu | --incl | --inc)
904 ac_prev=includedir ;;
905 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
906 | --includ=* | --inclu=* | --incl=* | --inc=*)
907 includedir=$ac_optarg ;;
908
909 -infodir | --infodir | --infodi | --infod | --info | --inf)
910 ac_prev=infodir ;;
911 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
912 infodir=$ac_optarg ;;
913
914 -libdir | --libdir | --libdi | --libd)
915 ac_prev=libdir ;;
916 -libdir=* | --libdir=* | --libdi=* | --libd=*)
917 libdir=$ac_optarg ;;
918
919 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
920 | --libexe | --libex | --libe)
921 ac_prev=libexecdir ;;
922 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
923 | --libexe=* | --libex=* | --libe=*)
924 libexecdir=$ac_optarg ;;
925
jfigusc7e66e32013-05-08 11:32:55 -0400926 -localedir | --localedir | --localedi | --localed | --locale)
927 ac_prev=localedir ;;
928 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
929 localedir=$ac_optarg ;;
930
Cullen Jennings235513a2005-09-21 22:51:36 +0000931 -localstatedir | --localstatedir | --localstatedi | --localstated \
jfigusc7e66e32013-05-08 11:32:55 -0400932 | --localstate | --localstat | --localsta | --localst | --locals)
Cullen Jennings235513a2005-09-21 22:51:36 +0000933 ac_prev=localstatedir ;;
934 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
jfigusc7e66e32013-05-08 11:32:55 -0400935 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000936 localstatedir=$ac_optarg ;;
937
938 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
939 ac_prev=mandir ;;
940 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
941 mandir=$ac_optarg ;;
942
943 -nfp | --nfp | --nf)
944 # Obsolete; use --without-fp.
945 with_fp=no ;;
946
947 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
948 | --no-cr | --no-c | -n)
949 no_create=yes ;;
950
951 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
952 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
953 no_recursion=yes ;;
954
955 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
956 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
957 | --oldin | --oldi | --old | --ol | --o)
958 ac_prev=oldincludedir ;;
959 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
960 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
961 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
962 oldincludedir=$ac_optarg ;;
963
964 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
965 ac_prev=prefix ;;
966 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
967 prefix=$ac_optarg ;;
968
969 -program-prefix | --program-prefix | --program-prefi | --program-pref \
970 | --program-pre | --program-pr | --program-p)
971 ac_prev=program_prefix ;;
972 -program-prefix=* | --program-prefix=* | --program-prefi=* \
973 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
974 program_prefix=$ac_optarg ;;
975
976 -program-suffix | --program-suffix | --program-suffi | --program-suff \
977 | --program-suf | --program-su | --program-s)
978 ac_prev=program_suffix ;;
979 -program-suffix=* | --program-suffix=* | --program-suffi=* \
980 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
981 program_suffix=$ac_optarg ;;
982
983 -program-transform-name | --program-transform-name \
984 | --program-transform-nam | --program-transform-na \
985 | --program-transform-n | --program-transform- \
986 | --program-transform | --program-transfor \
987 | --program-transfo | --program-transf \
988 | --program-trans | --program-tran \
989 | --progr-tra | --program-tr | --program-t)
990 ac_prev=program_transform_name ;;
991 -program-transform-name=* | --program-transform-name=* \
992 | --program-transform-nam=* | --program-transform-na=* \
993 | --program-transform-n=* | --program-transform-=* \
994 | --program-transform=* | --program-transfor=* \
995 | --program-transfo=* | --program-transf=* \
996 | --program-trans=* | --program-tran=* \
997 | --progr-tra=* | --program-tr=* | --program-t=*)
998 program_transform_name=$ac_optarg ;;
999
jfigusc7e66e32013-05-08 11:32:55 -04001000 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1001 ac_prev=pdfdir ;;
1002 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1003 pdfdir=$ac_optarg ;;
1004
1005 -psdir | --psdir | --psdi | --psd | --ps)
1006 ac_prev=psdir ;;
1007 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1008 psdir=$ac_optarg ;;
1009
Cullen Jennings235513a2005-09-21 22:51:36 +00001010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1011 | -silent | --silent | --silen | --sile | --sil)
1012 silent=yes ;;
1013
1014 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1015 ac_prev=sbindir ;;
1016 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1017 | --sbi=* | --sb=*)
1018 sbindir=$ac_optarg ;;
1019
1020 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1021 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1022 | --sharedst | --shareds | --shared | --share | --shar \
1023 | --sha | --sh)
1024 ac_prev=sharedstatedir ;;
1025 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1026 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1027 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1028 | --sha=* | --sh=*)
1029 sharedstatedir=$ac_optarg ;;
1030
1031 -site | --site | --sit)
1032 ac_prev=site ;;
1033 -site=* | --site=* | --sit=*)
1034 site=$ac_optarg ;;
1035
1036 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1037 ac_prev=srcdir ;;
1038 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1039 srcdir=$ac_optarg ;;
1040
1041 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1042 | --syscon | --sysco | --sysc | --sys | --sy)
1043 ac_prev=sysconfdir ;;
1044 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1045 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1046 sysconfdir=$ac_optarg ;;
1047
1048 -target | --target | --targe | --targ | --tar | --ta | --t)
1049 ac_prev=target_alias ;;
1050 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1051 target_alias=$ac_optarg ;;
1052
1053 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1054 verbose=yes ;;
1055
1056 -version | --version | --versio | --versi | --vers | -V)
1057 ac_init_version=: ;;
1058
1059 -with-* | --with-*)
jfigusc7e66e32013-05-08 11:32:55 -04001060 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001061 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error $? "invalid package name: $ac_useropt"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1067 *"
1068"with_$ac_useropt"
1069"*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +00001072 esac
jfigusc7e66e32013-05-08 11:32:55 -04001073 eval with_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001074
1075 -without-* | --without-*)
jfigusc7e66e32013-05-08 11:32:55 -04001076 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001077 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error $? "invalid package name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1083 *"
1084"with_$ac_useropt"
1085"*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval with_$ac_useropt=no ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001090
1091 --x)
1092 # Obsolete; use --with-x.
1093 with_x=yes ;;
1094
1095 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1096 | --x-incl | --x-inc | --x-in | --x-i)
1097 ac_prev=x_includes ;;
1098 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1099 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1100 x_includes=$ac_optarg ;;
1101
1102 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1103 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1104 ac_prev=x_libraries ;;
1105 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1106 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1107 x_libraries=$ac_optarg ;;
1108
jfigusc7e66e32013-05-08 11:32:55 -04001109 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1110Try \`$0 --help' for more information"
Cullen Jennings235513a2005-09-21 22:51:36 +00001111 ;;
1112
1113 *=*)
1114 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1115 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001116 case $ac_envvar in #(
1117 '' | [0-9]* | *[!_$as_cr_alnum]* )
1118 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1119 esac
1120 eval $ac_envvar=\$ac_optarg
Cullen Jennings235513a2005-09-21 22:51:36 +00001121 export $ac_envvar ;;
1122
1123 *)
1124 # FIXME: should be removed in autoconf 3.0.
jfigusc7e66e32013-05-08 11:32:55 -04001125 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Cullen Jennings235513a2005-09-21 22:51:36 +00001126 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jfigusc7e66e32013-05-08 11:32:55 -04001127 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1128 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Cullen Jennings235513a2005-09-21 22:51:36 +00001129 ;;
1130
1131 esac
1132done
1133
1134if test -n "$ac_prev"; then
1135 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jfigusc7e66e32013-05-08 11:32:55 -04001136 as_fn_error $? "missing argument to $ac_option"
Cullen Jennings235513a2005-09-21 22:51:36 +00001137fi
1138
jfigusc7e66e32013-05-08 11:32:55 -04001139if test -n "$ac_unrecognized_opts"; then
1140 case $enable_option_checking in
1141 no) ;;
1142 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1143 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001144 esac
jfigusc7e66e32013-05-08 11:32:55 -04001145fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001146
jfigusc7e66e32013-05-08 11:32:55 -04001147# Check all directory arguments for consistency.
1148for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1149 datadir sysconfdir sharedstatedir localstatedir includedir \
1150 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Pascal Bühlerac872e72017-02-09 14:55:27 +01001151 libdir localedir mandir
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001152do
jfigusc7e66e32013-05-08 11:32:55 -04001153 eval ac_val=\$$ac_var
1154 # Remove trailing slashes.
jfigusa14b5a02013-03-29 12:24:12 -04001155 case $ac_val in
jfigusc7e66e32013-05-08 11:32:55 -04001156 */ )
1157 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1158 eval $ac_var=\$ac_val;;
jfigusa14b5a02013-03-29 12:24:12 -04001159 esac
jfigusc7e66e32013-05-08 11:32:55 -04001160 # Be sure to have absolute directory names.
1161 case $ac_val in
1162 [\\/$]* | ?:[\\/]* ) continue;;
1163 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1164 esac
1165 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Cullen Jennings235513a2005-09-21 22:51:36 +00001166done
1167
1168# There might be people who depend on the old broken behavior: `$host'
1169# used to hold the argument of --host etc.
1170# FIXME: To remove some day.
1171build=$build_alias
1172host=$host_alias
1173target=$target_alias
1174
1175# FIXME: To remove some day.
1176if test "x$host_alias" != x; then
1177 if test "x$build_alias" = x; then
1178 cross_compiling=maybe
Cullen Jennings235513a2005-09-21 22:51:36 +00001179 elif test "x$build_alias" != "x$host_alias"; then
1180 cross_compiling=yes
1181 fi
1182fi
1183
1184ac_tool_prefix=
1185test -n "$host_alias" && ac_tool_prefix=$host_alias-
1186
1187test "$silent" = yes && exec 6>/dev/null
1188
1189
jfigusc7e66e32013-05-08 11:32:55 -04001190ac_pwd=`pwd` && test -n "$ac_pwd" &&
1191ac_ls_di=`ls -di .` &&
1192ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1193 as_fn_error $? "working directory cannot be determined"
1194test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1195 as_fn_error $? "pwd does not report name of working directory"
1196
1197
Cullen Jennings235513a2005-09-21 22:51:36 +00001198# Find the source files, if location was not specified.
1199if test -z "$srcdir"; then
1200 ac_srcdir_defaulted=yes
jfigusc7e66e32013-05-08 11:32:55 -04001201 # Try the directory containing this script, then the parent directory.
1202 ac_confdir=`$as_dirname -- "$as_myself" ||
1203$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1204 X"$as_myself" : 'X\(//\)[^/]' \| \
1205 X"$as_myself" : 'X\(//\)$' \| \
1206 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1207$as_echo X"$as_myself" |
1208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1209 s//\1/
1210 q
1211 }
1212 /^X\(\/\/\)[^/].*/{
1213 s//\1/
1214 q
1215 }
1216 /^X\(\/\/\)$/{
1217 s//\1/
1218 q
1219 }
1220 /^X\(\/\).*/{
1221 s//\1/
1222 q
1223 }
1224 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001225 srcdir=$ac_confdir
jfigusc7e66e32013-05-08 11:32:55 -04001226 if test ! -r "$srcdir/$ac_unique_file"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00001227 srcdir=..
1228 fi
1229else
1230 ac_srcdir_defaulted=no
1231fi
jfigusc7e66e32013-05-08 11:32:55 -04001232if test ! -r "$srcdir/$ac_unique_file"; then
1233 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1234 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Cullen Jennings235513a2005-09-21 22:51:36 +00001235fi
jfigusc7e66e32013-05-08 11:32:55 -04001236ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1237ac_abs_confdir=`(
1238 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1239 pwd)`
1240# When building in place, set srcdir=.
1241if test "$ac_abs_confdir" = "$ac_pwd"; then
1242 srcdir=.
1243fi
1244# Remove unnecessary trailing slashes from srcdir.
1245# Double slashes in file names in object file debugging info
1246# mess up M-x gdb in Emacs.
1247case $srcdir in
1248*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1249esac
1250for ac_var in $ac_precious_vars; do
1251 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1252 eval ac_env_${ac_var}_value=\$${ac_var}
1253 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1254 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1255done
Cullen Jennings235513a2005-09-21 22:51:36 +00001256
1257#
1258# Report the --help message.
1259#
1260if test "$ac_init_help" = "long"; then
1261 # Omit some internal or obsolete options to make the list less imposing.
1262 # This message is too long to be a string in the A/UX 3.1 sh.
1263 cat <<_ACEOF
Pascal Bühler34acba62017-01-19 10:57:30 +01001264\`configure' configures libsrtp2 2.1.0-pre to adapt to many kinds of systems.
Cullen Jennings235513a2005-09-21 22:51:36 +00001265
1266Usage: $0 [OPTION]... [VAR=VALUE]...
1267
1268To assign environment variables (e.g., CC, CFLAGS...), specify them as
1269VAR=VALUE. See below for descriptions of some of the useful variables.
1270
1271Defaults for the options are specified in brackets.
1272
1273Configuration:
1274 -h, --help display this help and exit
1275 --help=short display options specific to this package
1276 --help=recursive display the short help of all the included packages
1277 -V, --version display version information and exit
jfigusc7e66e32013-05-08 11:32:55 -04001278 -q, --quiet, --silent do not print \`checking ...' messages
Cullen Jennings235513a2005-09-21 22:51:36 +00001279 --cache-file=FILE cache test results in FILE [disabled]
1280 -C, --config-cache alias for \`--cache-file=config.cache'
1281 -n, --no-create do not create output files
1282 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1283
Cullen Jennings235513a2005-09-21 22:51:36 +00001284Installation directories:
1285 --prefix=PREFIX install architecture-independent files in PREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001286 [$ac_default_prefix]
Cullen Jennings235513a2005-09-21 22:51:36 +00001287 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001288 [PREFIX]
Cullen Jennings235513a2005-09-21 22:51:36 +00001289
1290By default, \`make install' will install all the files in
1291\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1292an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1293for instance \`--prefix=\$HOME'.
1294
1295For better control, use the options below.
1296
1297Fine tuning of the installation directories:
jfigusc7e66e32013-05-08 11:32:55 -04001298 --bindir=DIR user executables [EPREFIX/bin]
1299 --sbindir=DIR system admin executables [EPREFIX/sbin]
1300 --libexecdir=DIR program executables [EPREFIX/libexec]
1301 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1302 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1303 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1304 --libdir=DIR object code libraries [EPREFIX/lib]
1305 --includedir=DIR C header files [PREFIX/include]
1306 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1307 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1308 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1309 --infodir=DIR info documentation [DATAROOTDIR/info]
1310 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1311 --mandir=DIR man documentation [DATAROOTDIR/man]
jfigusd196e022014-11-20 16:43:44 -05001312 --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp2]
jfigusc7e66e32013-05-08 11:32:55 -04001313 --htmldir=DIR html documentation [DOCDIR]
1314 --dvidir=DIR dvi documentation [DOCDIR]
1315 --pdfdir=DIR pdf documentation [DOCDIR]
1316 --psdir=DIR ps documentation [DOCDIR]
Cullen Jennings235513a2005-09-21 22:51:36 +00001317_ACEOF
1318
1319 cat <<\_ACEOF
1320
1321System types:
1322 --build=BUILD configure for building on BUILD [guessed]
1323 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1324_ACEOF
1325fi
1326
1327if test -n "$ac_init_help"; then
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001328 case $ac_init_help in
Pascal Bühler34acba62017-01-19 10:57:30 +01001329 short | recursive ) echo "Configuration of libsrtp2 2.1.0-pre:";;
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001330 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00001331 cat <<\_ACEOF
1332
1333Optional Features:
jfigusc7e66e32013-05-08 11:32:55 -04001334 --disable-option-checking ignore unrecognized --enable/--with options
Cullen Jennings235513a2005-09-21 22:51:36 +00001335 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1336 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
David McGrewb67061f2005-09-28 14:23:06 +00001337 --disable-debug do not compile in dynamic debugging system
1338 --enable-generic-aesicm compile in changes for ISMAcryp
jfigusc7e66e32013-05-08 11:32:55 -04001339 --enable-openssl compile in OpenSSL crypto engine
jfigus038d2cf2015-05-11 14:10:11 -04001340 --enable-openssl-kdf Use OpenSSL KDF algorithm
jfigus97a80f42014-11-04 14:15:40 -05001341 --enable-stdout use stdout for debug/error reporting
David McGrewb67061f2005-09-28 14:23:06 +00001342 --enable-console use /dev/console for error reporting
Cullen Jennings235513a2005-09-21 22:51:36 +00001343
jfigus038d2cf2015-05-11 14:10:11 -04001344Optional Packages:
1345 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1346 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1347 --with-openssl-dir Location of OpenSSL installation
1348
Cullen Jennings235513a2005-09-21 22:51:36 +00001349Some influential environment variables:
1350 CC C compiler command
1351 CFLAGS C compiler flags
1352 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1353 nonstandard directory <lib dir>
jfigusc7e66e32013-05-08 11:32:55 -04001354 LIBS libraries to pass to the linker, e.g. -l<library>
1355 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1356 you have headers in a nonstandard directory <include dir>
Cullen Jennings235513a2005-09-21 22:51:36 +00001357 CPP C preprocessor
Idar Tollefsen600ad962017-01-26 11:24:51 +01001358 PKG_CONFIG path to pkg-config utility
1359 PKG_CONFIG_PATH
1360 directories to add to pkg-config's search path
1361 PKG_CONFIG_LIBDIR
1362 path overriding pkg-config's built-in search path
1363 crypto_CFLAGS
1364 C compiler flags for crypto, overriding pkg-config
1365 crypto_LIBS linker flags for crypto, overriding pkg-config
Cullen Jennings235513a2005-09-21 22:51:36 +00001366
1367Use these variables to override the choices made by `configure' or to help
1368it to find libraries and programs with nonstandard names/locations.
1369
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001370Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00001371_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001372ac_status=$?
Cullen Jennings235513a2005-09-21 22:51:36 +00001373fi
1374
1375if test "$ac_init_help" = "recursive"; then
1376 # If there are subdirs, report their specific --help.
Cullen Jennings235513a2005-09-21 22:51:36 +00001377 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jfigusc7e66e32013-05-08 11:32:55 -04001378 test -d "$ac_dir" ||
1379 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1380 continue
Cullen Jennings235513a2005-09-21 22:51:36 +00001381 ac_builddir=.
1382
jfigusc7e66e32013-05-08 11:32:55 -04001383case "$ac_dir" in
1384.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385*)
1386 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1387 # A ".." for each directory in $ac_dir_suffix.
1388 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1389 case $ac_top_builddir_sub in
1390 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1392 esac ;;
1393esac
1394ac_abs_top_builddir=$ac_pwd
1395ac_abs_builddir=$ac_pwd$ac_dir_suffix
1396# for backward compatibility:
1397ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00001398
1399case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04001400 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00001401 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04001402 ac_top_srcdir=$ac_top_builddir_sub
1403 ac_abs_top_srcdir=$ac_pwd ;;
1404 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001405 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04001406 ac_top_srcdir=$srcdir
1407 ac_abs_top_srcdir=$srcdir ;;
1408 *) # Relative name.
1409 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1410 ac_top_srcdir=$ac_top_build_prefix$srcdir
1411 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001412esac
jfigusc7e66e32013-05-08 11:32:55 -04001413ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001414
jfigusc7e66e32013-05-08 11:32:55 -04001415 cd "$ac_dir" || { ac_status=$?; continue; }
1416 # Check for guested configure.
1417 if test -f "$ac_srcdir/configure.gnu"; then
1418 echo &&
1419 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1420 elif test -f "$ac_srcdir/configure"; then
1421 echo &&
1422 $SHELL "$ac_srcdir/configure" --help=recursive
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001423 else
jfigusc7e66e32013-05-08 11:32:55 -04001424 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1425 fi || ac_status=$?
1426 cd "$ac_pwd" || { ac_status=$?; break; }
Cullen Jennings235513a2005-09-21 22:51:36 +00001427 done
1428fi
1429
jfigusc7e66e32013-05-08 11:32:55 -04001430test -n "$ac_init_help" && exit $ac_status
Cullen Jennings235513a2005-09-21 22:51:36 +00001431if $ac_init_version; then
1432 cat <<\_ACEOF
Pascal Bühler34acba62017-01-19 10:57:30 +01001433libsrtp2 configure 2.1.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04001434generated by GNU Autoconf 2.69
Cullen Jennings235513a2005-09-21 22:51:36 +00001435
jfigusc7e66e32013-05-08 11:32:55 -04001436Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00001437This configure script is free software; the Free Software Foundation
1438gives unlimited permission to copy, distribute and modify it.
1439_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001440 exit
Cullen Jennings235513a2005-09-21 22:51:36 +00001441fi
jfigusc7e66e32013-05-08 11:32:55 -04001442
1443## ------------------------ ##
1444## Autoconf initialization. ##
1445## ------------------------ ##
1446
1447# ac_fn_c_try_compile LINENO
1448# --------------------------
1449# Try to compile conftest.$ac_ext, and return whether this succeeded.
1450ac_fn_c_try_compile ()
1451{
1452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1453 rm -f conftest.$ac_objext
1454 if { { ac_try="$ac_compile"
1455case "(($ac_try" in
1456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1457 *) ac_try_echo=$ac_try;;
1458esac
1459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1460$as_echo "$ac_try_echo"; } >&5
1461 (eval "$ac_compile") 2>conftest.err
1462 ac_status=$?
1463 if test -s conftest.err; then
1464 grep -v '^ *+' conftest.err >conftest.er1
1465 cat conftest.er1 >&5
1466 mv -f conftest.er1 conftest.err
1467 fi
1468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1469 test $ac_status = 0; } && {
1470 test -z "$ac_c_werror_flag" ||
1471 test ! -s conftest.err
1472 } && test -s conftest.$ac_objext; then :
1473 ac_retval=0
1474else
1475 $as_echo "$as_me: failed program was:" >&5
1476sed 's/^/| /' conftest.$ac_ext >&5
1477
1478 ac_retval=1
1479fi
1480 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1481 as_fn_set_status $ac_retval
1482
1483} # ac_fn_c_try_compile
1484
1485# ac_fn_c_try_run LINENO
1486# ----------------------
1487# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1488# that executables *can* be run.
1489ac_fn_c_try_run ()
1490{
1491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1492 if { { ac_try="$ac_link"
1493case "(($ac_try" in
1494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1495 *) ac_try_echo=$ac_try;;
1496esac
1497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498$as_echo "$ac_try_echo"; } >&5
1499 (eval "$ac_link") 2>&5
1500 ac_status=$?
1501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1503 { { case "(($ac_try" in
1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505 *) ac_try_echo=$ac_try;;
1506esac
1507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508$as_echo "$ac_try_echo"; } >&5
1509 (eval "$ac_try") 2>&5
1510 ac_status=$?
1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512 test $ac_status = 0; }; }; then :
1513 ac_retval=0
1514else
1515 $as_echo "$as_me: program exited with status $ac_status" >&5
1516 $as_echo "$as_me: failed program was:" >&5
1517sed 's/^/| /' conftest.$ac_ext >&5
1518
1519 ac_retval=$ac_status
1520fi
1521 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1523 as_fn_set_status $ac_retval
1524
1525} # ac_fn_c_try_run
1526
1527# ac_fn_c_try_cpp LINENO
1528# ----------------------
1529# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1530ac_fn_c_try_cpp ()
1531{
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 if { { ac_try="$ac_cpp conftest.$ac_ext"
1534case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537esac
1538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539$as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1546 fi
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } > conftest.i && {
1549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 }; then :
1552 ac_retval=0
1553else
1554 $as_echo "$as_me: failed program was:" >&5
1555sed 's/^/| /' conftest.$ac_ext >&5
1556
1557 ac_retval=1
1558fi
1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560 as_fn_set_status $ac_retval
1561
1562} # ac_fn_c_try_cpp
1563
1564# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1565# -------------------------------------------------------
1566# Tests whether HEADER exists and can be compiled using the include files in
1567# INCLUDES, setting the cache variable VAR accordingly.
1568ac_fn_c_check_header_compile ()
1569{
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1572$as_echo_n "checking for $2... " >&6; }
1573if eval \${$3+:} false; then :
1574 $as_echo_n "(cached) " >&6
1575else
1576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1577/* end confdefs.h. */
1578$4
1579#include <$2>
1580_ACEOF
1581if ac_fn_c_try_compile "$LINENO"; then :
1582 eval "$3=yes"
1583else
1584 eval "$3=no"
1585fi
1586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1587fi
1588eval ac_res=\$$3
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1590$as_echo "$ac_res" >&6; }
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592
1593} # ac_fn_c_check_header_compile
1594
jfigusc7e66e32013-05-08 11:32:55 -04001595# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1596# -------------------------------------------
1597# Tests whether TYPE exists after having included INCLUDES, setting cache
1598# variable VAR accordingly.
1599ac_fn_c_check_type ()
1600{
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1603$as_echo_n "checking for $2... " >&6; }
1604if eval \${$3+:} false; then :
1605 $as_echo_n "(cached) " >&6
1606else
1607 eval "$3=no"
1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609/* end confdefs.h. */
1610$4
1611int
1612main ()
1613{
1614if (sizeof ($2))
1615 return 0;
1616 ;
1617 return 0;
1618}
1619_ACEOF
1620if ac_fn_c_try_compile "$LINENO"; then :
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622/* end confdefs.h. */
1623$4
1624int
1625main ()
1626{
1627if (sizeof (($2)))
1628 return 0;
1629 ;
1630 return 0;
1631}
1632_ACEOF
1633if ac_fn_c_try_compile "$LINENO"; then :
1634
1635else
1636 eval "$3=yes"
1637fi
1638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639fi
1640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641fi
1642eval ac_res=\$$3
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644$as_echo "$ac_res" >&6; }
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646
1647} # ac_fn_c_check_type
1648
1649# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1650# --------------------------------------------
1651# Tries to find the compile-time value of EXPR in a program that includes
1652# INCLUDES, setting VAR accordingly. Returns whether the value could be
1653# computed
1654ac_fn_c_compute_int ()
1655{
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if test "$cross_compiling" = yes; then
1658 # Depending upon the size, compute the lo and hi bounds.
1659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660/* end confdefs.h. */
1661$4
1662int
1663main ()
1664{
1665static int test_array [1 - 2 * !(($2) >= 0)];
1666test_array [0] = 0;
1667return test_array [0];
1668
1669 ;
1670 return 0;
1671}
1672_ACEOF
1673if ac_fn_c_try_compile "$LINENO"; then :
1674 ac_lo=0 ac_mid=0
1675 while :; do
1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677/* end confdefs.h. */
1678$4
1679int
1680main ()
1681{
1682static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1683test_array [0] = 0;
1684return test_array [0];
1685
1686 ;
1687 return 0;
1688}
1689_ACEOF
1690if ac_fn_c_try_compile "$LINENO"; then :
1691 ac_hi=$ac_mid; break
1692else
1693 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1694 if test $ac_lo -le $ac_mid; then
1695 ac_lo= ac_hi=
1696 break
1697 fi
1698 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1699fi
1700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1701 done
1702else
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704/* end confdefs.h. */
1705$4
1706int
1707main ()
1708{
1709static int test_array [1 - 2 * !(($2) < 0)];
1710test_array [0] = 0;
1711return test_array [0];
1712
1713 ;
1714 return 0;
1715}
1716_ACEOF
1717if ac_fn_c_try_compile "$LINENO"; then :
1718 ac_hi=-1 ac_mid=-1
1719 while :; do
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721/* end confdefs.h. */
1722$4
1723int
1724main ()
1725{
1726static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1727test_array [0] = 0;
1728return test_array [0];
1729
1730 ;
1731 return 0;
1732}
1733_ACEOF
1734if ac_fn_c_try_compile "$LINENO"; then :
1735 ac_lo=$ac_mid; break
1736else
1737 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1738 if test $ac_mid -le $ac_hi; then
1739 ac_lo= ac_hi=
1740 break
1741 fi
1742 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1743fi
1744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1745 done
1746else
1747 ac_lo= ac_hi=
1748fi
1749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1750fi
1751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752# Binary search between lo and hi bounds.
1753while test "x$ac_lo" != "x$ac_hi"; do
1754 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h. */
1757$4
1758int
1759main ()
1760{
1761static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1762test_array [0] = 0;
1763return test_array [0];
1764
1765 ;
1766 return 0;
1767}
1768_ACEOF
1769if ac_fn_c_try_compile "$LINENO"; then :
1770 ac_hi=$ac_mid
1771else
1772 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1773fi
1774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775done
1776case $ac_lo in #((
1777?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1778'') ac_retval=1 ;;
1779esac
1780 else
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782/* end confdefs.h. */
1783$4
1784static long int longval () { return $2; }
1785static unsigned long int ulongval () { return $2; }
1786#include <stdio.h>
1787#include <stdlib.h>
1788int
1789main ()
1790{
1791
1792 FILE *f = fopen ("conftest.val", "w");
1793 if (! f)
1794 return 1;
1795 if (($2) < 0)
1796 {
1797 long int i = longval ();
1798 if (i != ($2))
1799 return 1;
1800 fprintf (f, "%ld", i);
1801 }
1802 else
1803 {
1804 unsigned long int i = ulongval ();
1805 if (i != ($2))
1806 return 1;
1807 fprintf (f, "%lu", i);
1808 }
1809 /* Do not output a trailing newline, as this causes \r\n confusion
1810 on some platforms. */
1811 return ferror (f) || fclose (f) != 0;
1812
1813 ;
1814 return 0;
1815}
1816_ACEOF
1817if ac_fn_c_try_run "$LINENO"; then :
1818 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1819else
1820 ac_retval=1
1821fi
1822rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1823 conftest.$ac_objext conftest.beam conftest.$ac_ext
1824rm -f conftest.val
1825
1826 fi
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
1829
1830} # ac_fn_c_compute_int
1831
1832# ac_fn_c_try_link LINENO
1833# -----------------------
1834# Try to link conftest.$ac_ext, and return whether this succeeded.
1835ac_fn_c_try_link ()
1836{
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext conftest$ac_exeext
1839 if { { ac_try="$ac_link"
1840case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845$as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1852 fi
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest$ac_exeext && {
1858 test "$cross_compiling" = yes ||
1859 test -x conftest$ac_exeext
1860 }; then :
1861 ac_retval=0
1862else
1863 $as_echo "$as_me: failed program was:" >&5
1864sed 's/^/| /' conftest.$ac_ext >&5
1865
1866 ac_retval=1
1867fi
1868 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870 # interfere with the next link command; also delete a directory that is
1871 # left behind by Apple's compiler. We do this before executing the actions.
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 as_fn_set_status $ac_retval
1875
1876} # ac_fn_c_try_link
1877
1878# ac_fn_c_check_func LINENO FUNC VAR
1879# ----------------------------------
1880# Tests whether FUNC exists, setting the cache variable VAR accordingly
1881ac_fn_c_check_func ()
1882{
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885$as_echo_n "checking for $2... " >&6; }
1886if eval \${$3+:} false; then :
1887 $as_echo_n "(cached) " >&6
1888else
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890/* end confdefs.h. */
1891/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1893#define $2 innocuous_$2
1894
1895/* System header to define __stub macros and hopefully few prototypes,
1896 which can conflict with char $2 (); below.
1897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1898 <limits.h> exists even on freestanding compilers. */
1899
1900#ifdef __STDC__
1901# include <limits.h>
1902#else
1903# include <assert.h>
1904#endif
1905
1906#undef $2
1907
1908/* Override any GCC internal prototype to avoid an error.
1909 Use char because int might match the return type of a GCC
1910 builtin and then its argument prototype would still apply. */
1911#ifdef __cplusplus
1912extern "C"
1913#endif
1914char $2 ();
1915/* The GNU C library defines this for functions which it implements
1916 to always fail with ENOSYS. Some functions are actually named
1917 something starting with __ and the normal name is an alias. */
1918#if defined __stub_$2 || defined __stub___$2
1919choke me
1920#endif
1921
1922int
1923main ()
1924{
1925return $2 ();
1926 ;
1927 return 0;
1928}
1929_ACEOF
1930if ac_fn_c_try_link "$LINENO"; then :
1931 eval "$3=yes"
1932else
1933 eval "$3=no"
1934fi
1935rm -f core conftest.err conftest.$ac_objext \
1936 conftest$ac_exeext conftest.$ac_ext
1937fi
1938eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940$as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942
1943} # ac_fn_c_check_func
1944cat >config.log <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00001945This file contains any messages produced by compilers while
1946running configure, to aid debugging if configure makes a mistake.
1947
Pascal Bühler34acba62017-01-19 10:57:30 +01001948It was created by libsrtp2 $as_me 2.1.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04001949generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00001950
1951 $ $0 $@
1952
1953_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001954exec 5>>config.log
Cullen Jennings235513a2005-09-21 22:51:36 +00001955{
1956cat <<_ASUNAME
1957## --------- ##
1958## Platform. ##
1959## --------- ##
1960
1961hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1962uname -m = `(uname -m) 2>/dev/null || echo unknown`
1963uname -r = `(uname -r) 2>/dev/null || echo unknown`
1964uname -s = `(uname -s) 2>/dev/null || echo unknown`
1965uname -v = `(uname -v) 2>/dev/null || echo unknown`
1966
1967/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1968/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1969
1970/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1971/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1972/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
jfigusc7e66e32013-05-08 11:32:55 -04001973/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Cullen Jennings235513a2005-09-21 22:51:36 +00001974/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1975/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1976/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1977
1978_ASUNAME
1979
1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981for as_dir in $PATH
1982do
1983 IFS=$as_save_IFS
1984 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04001985 $as_echo "PATH: $as_dir"
1986 done
1987IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00001988
1989} >&5
1990
1991cat >&5 <<_ACEOF
1992
1993
1994## ----------- ##
1995## Core tests. ##
1996## ----------- ##
1997
1998_ACEOF
1999
2000
2001# Keep a trace of the command line.
2002# Strip out --no-create and --no-recursion so they do not pile up.
2003# Strip out --silent because we don't want to record it for future runs.
2004# Also quote any args containing shell meta-characters.
2005# Make two passes to allow for proper duplicate-argument suppression.
2006ac_configure_args=
2007ac_configure_args0=
2008ac_configure_args1=
Cullen Jennings235513a2005-09-21 22:51:36 +00002009ac_must_keep_next=false
2010for ac_pass in 1 2
2011do
2012 for ac_arg
2013 do
2014 case $ac_arg in
2015 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2017 | -silent | --silent | --silen | --sile | --sil)
2018 continue ;;
jfigusc7e66e32013-05-08 11:32:55 -04002019 *\'*)
2020 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002021 esac
2022 case $ac_pass in
jfigusc7e66e32013-05-08 11:32:55 -04002023 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002024 2)
jfigusc7e66e32013-05-08 11:32:55 -04002025 as_fn_append ac_configure_args1 " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002026 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00002027 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00002028 else
David McGrewfec49dd2005-09-23 19:34:11 +00002029 case $ac_arg in
2030 *=* | --config-cache | -C | -disable-* | --disable-* \
2031 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2032 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2033 | -with-* | --with-* | -without-* | --without-* | --x)
2034 case "$ac_configure_args0 " in
2035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2036 esac
2037 ;;
2038 -* ) ac_must_keep_next=true ;;
2039 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00002040 fi
jfigusc7e66e32013-05-08 11:32:55 -04002041 as_fn_append ac_configure_args " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002042 ;;
2043 esac
2044 done
2045done
jfigusc7e66e32013-05-08 11:32:55 -04002046{ ac_configure_args0=; unset ac_configure_args0;}
2047{ ac_configure_args1=; unset ac_configure_args1;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002048
2049# When interrupted or exit'd, cleanup temporary files, and complete
2050# config.log. We remove comments because anyway the quotes in there
2051# would cause problems or look ugly.
jfigusc7e66e32013-05-08 11:32:55 -04002052# WARNING: Use '\'' to represent an apostrophe within the trap.
2053# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Cullen Jennings235513a2005-09-21 22:51:36 +00002054trap 'exit_status=$?
2055 # Save into config.log some information that might help in debugging.
2056 {
2057 echo
2058
jfigusc7e66e32013-05-08 11:32:55 -04002059 $as_echo "## ---------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002060## Cache variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002061## ---------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002062 echo
2063 # The following way of writing the cache mishandles newlines in values,
jfigusc7e66e32013-05-08 11:32:55 -04002064(
2065 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2066 eval ac_val=\$$ac_var
2067 case $ac_val in #(
2068 *${as_nl}*)
2069 case $ac_var in #(
2070 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2071$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2072 esac
2073 case $ac_var in #(
2074 _ | IFS | as_nl) ;; #(
2075 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2076 *) { eval $ac_var=; unset $ac_var;} ;;
2077 esac ;;
2078 esac
2079 done
Cullen Jennings235513a2005-09-21 22:51:36 +00002080 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04002081 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2082 *${as_nl}ac_space=\ *)
Cullen Jennings235513a2005-09-21 22:51:36 +00002083 sed -n \
jfigusc7e66e32013-05-08 11:32:55 -04002084 "s/'\''/'\''\\\\'\'''\''/g;
2085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2086 ;; #(
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002087 *)
jfigusc7e66e32013-05-08 11:32:55 -04002088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002089 ;;
jfigusc7e66e32013-05-08 11:32:55 -04002090 esac |
2091 sort
2092)
Cullen Jennings235513a2005-09-21 22:51:36 +00002093 echo
2094
jfigusc7e66e32013-05-08 11:32:55 -04002095 $as_echo "## ----------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002096## Output variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002097## ----------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002098 echo
2099 for ac_var in $ac_subst_vars
2100 do
jfigusc7e66e32013-05-08 11:32:55 -04002101 eval ac_val=\$$ac_var
2102 case $ac_val in
2103 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2104 esac
2105 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002106 done | sort
2107 echo
2108
2109 if test -n "$ac_subst_files"; then
jfigusc7e66e32013-05-08 11:32:55 -04002110 $as_echo "## ------------------- ##
2111## File substitutions. ##
2112## ------------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002113 echo
2114 for ac_var in $ac_subst_files
2115 do
jfigusc7e66e32013-05-08 11:32:55 -04002116 eval ac_val=\$$ac_var
2117 case $ac_val in
2118 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119 esac
2120 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002121 done | sort
2122 echo
2123 fi
2124
2125 if test -s confdefs.h; then
jfigusc7e66e32013-05-08 11:32:55 -04002126 $as_echo "## ----------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002127## confdefs.h. ##
jfigusc7e66e32013-05-08 11:32:55 -04002128## ----------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002129 echo
jfigusc7e66e32013-05-08 11:32:55 -04002130 cat confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002131 echo
2132 fi
2133 test "$ac_signal" != 0 &&
jfigusc7e66e32013-05-08 11:32:55 -04002134 $as_echo "$as_me: caught signal $ac_signal"
2135 $as_echo "$as_me: exit $exit_status"
Cullen Jennings235513a2005-09-21 22:51:36 +00002136 } >&5
jfigusc7e66e32013-05-08 11:32:55 -04002137 rm -f core *.core core.conftest.* &&
2138 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Cullen Jennings235513a2005-09-21 22:51:36 +00002139 exit $exit_status
jfigusc7e66e32013-05-08 11:32:55 -04002140' 0
Cullen Jennings235513a2005-09-21 22:51:36 +00002141for ac_signal in 1 2 13 15; do
jfigusc7e66e32013-05-08 11:32:55 -04002142 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Cullen Jennings235513a2005-09-21 22:51:36 +00002143done
2144ac_signal=0
2145
2146# confdefs.h avoids OS command line length limits that DEFS can exceed.
jfigusc7e66e32013-05-08 11:32:55 -04002147rm -f -r conftest* confdefs.h
2148
2149$as_echo "/* confdefs.h */" > confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002150
2151# Predefined preprocessor variables.
2152
2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_NAME "$PACKAGE_NAME"
2155_ACEOF
2156
Cullen Jennings235513a2005-09-21 22:51:36 +00002157cat >>confdefs.h <<_ACEOF
2158#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2159_ACEOF
2160
Cullen Jennings235513a2005-09-21 22:51:36 +00002161cat >>confdefs.h <<_ACEOF
2162#define PACKAGE_VERSION "$PACKAGE_VERSION"
2163_ACEOF
2164
Cullen Jennings235513a2005-09-21 22:51:36 +00002165cat >>confdefs.h <<_ACEOF
2166#define PACKAGE_STRING "$PACKAGE_STRING"
2167_ACEOF
2168
Cullen Jennings235513a2005-09-21 22:51:36 +00002169cat >>confdefs.h <<_ACEOF
2170#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2171_ACEOF
2172
jfigusc7e66e32013-05-08 11:32:55 -04002173cat >>confdefs.h <<_ACEOF
2174#define PACKAGE_URL "$PACKAGE_URL"
2175_ACEOF
2176
Cullen Jennings235513a2005-09-21 22:51:36 +00002177
2178# Let the site file select an alternate cache file if it wants to.
jfigusc7e66e32013-05-08 11:32:55 -04002179# Prefer an explicitly selected file to automatically selected ones.
2180ac_site_file1=NONE
2181ac_site_file2=NONE
2182if test -n "$CONFIG_SITE"; then
2183 # We do not want a PATH search for config.site.
2184 case $CONFIG_SITE in #((
2185 -*) ac_site_file1=./$CONFIG_SITE;;
2186 */*) ac_site_file1=$CONFIG_SITE;;
2187 *) ac_site_file1=./$CONFIG_SITE;;
2188 esac
2189elif test "x$prefix" != xNONE; then
2190 ac_site_file1=$prefix/share/config.site
2191 ac_site_file2=$prefix/etc/config.site
2192else
2193 ac_site_file1=$ac_default_prefix/share/config.site
2194 ac_site_file2=$ac_default_prefix/etc/config.site
Cullen Jennings235513a2005-09-21 22:51:36 +00002195fi
jfigusc7e66e32013-05-08 11:32:55 -04002196for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2197do
2198 test "x$ac_site_file" = xNONE && continue
2199 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2201$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002202 sed 's/^/| /' "$ac_site_file" >&5
jfigusc7e66e32013-05-08 11:32:55 -04002203 . "$ac_site_file" \
2204 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2206as_fn_error $? "failed to load site script $ac_site_file
2207See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002208 fi
2209done
2210
2211if test -r "$cache_file"; then
jfigusc7e66e32013-05-08 11:32:55 -04002212 # Some versions of bash will fail to source /dev/null (special files
2213 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2214 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2216$as_echo "$as_me: loading cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002217 case $cache_file in
jfigusc7e66e32013-05-08 11:32:55 -04002218 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2219 *) . "./$cache_file";;
Cullen Jennings235513a2005-09-21 22:51:36 +00002220 esac
2221 fi
2222else
jfigusc7e66e32013-05-08 11:32:55 -04002223 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2224$as_echo "$as_me: creating cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002225 >$cache_file
2226fi
2227
2228# Check that the precious variables saved in the cache have kept the same
2229# value.
2230ac_cache_corrupted=false
jfigusc7e66e32013-05-08 11:32:55 -04002231for ac_var in $ac_precious_vars; do
Cullen Jennings235513a2005-09-21 22:51:36 +00002232 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2233 eval ac_new_set=\$ac_env_${ac_var}_set
jfigusc7e66e32013-05-08 11:32:55 -04002234 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2235 eval ac_new_val=\$ac_env_${ac_var}_value
Cullen Jennings235513a2005-09-21 22:51:36 +00002236 case $ac_old_set,$ac_new_set in
2237 set,)
jfigusc7e66e32013-05-08 11:32:55 -04002238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2239$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 +00002240 ac_cache_corrupted=: ;;
2241 ,set)
jfigusc7e66e32013-05-08 11:32:55 -04002242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2243$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002244 ac_cache_corrupted=: ;;
2245 ,);;
2246 *)
2247 if test "x$ac_old_val" != "x$ac_new_val"; then
jfigusc7e66e32013-05-08 11:32:55 -04002248 # differences in whitespace do not lead to failure.
2249 ac_old_val_w=`echo x $ac_old_val`
2250 ac_new_val_w=`echo x $ac_new_val`
2251 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2253$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2254 ac_cache_corrupted=:
2255 else
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2257$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2258 eval $ac_var=\$ac_old_val
2259 fi
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2261$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2263$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002264 fi;;
2265 esac
2266 # Pass precious variables to config.status.
2267 if test "$ac_new_set" = set; then
2268 case $ac_new_val in
jfigusc7e66e32013-05-08 11:32:55 -04002269 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002270 *) ac_arg=$ac_var=$ac_new_val ;;
2271 esac
2272 case " $ac_configure_args " in
2273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jfigusc7e66e32013-05-08 11:32:55 -04002274 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002275 esac
2276 fi
2277done
2278if $ac_cache_corrupted; then
jfigusc7e66e32013-05-08 11:32:55 -04002279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2282$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2283 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00002284fi
jfigusc7e66e32013-05-08 11:32:55 -04002285## -------------------- ##
2286## Main body of script. ##
2287## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002288
2289ac_ext=c
2290ac_cpp='$CPP $CPPFLAGS'
2291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2293ac_compiler_gnu=$ac_cv_c_compiler_gnu
2294
2295
2296
Idar Tollefsen600ad962017-01-26 11:24:51 +01002297EMPTY_CFLAGS="no"
2298if test "x$CFLAGS" = "x"; then
2299 EMPTY_CFLAGS="yes"
David McGrewb67061f2005-09-28 14:23:06 +00002300fi
2301
Pascal Bühlerac872e72017-02-09 14:55:27 +01002302# expand $ac_aux_dir to an absolute path
2303am_aux_dir=`cd $ac_aux_dir && pwd`
Cullen Jennings235513a2005-09-21 22:51:36 +00002304
2305ac_ext=c
2306ac_cpp='$CPP $CPPFLAGS'
2307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310if test -n "$ac_tool_prefix"; then
2311 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2312set dummy ${ac_tool_prefix}gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2314$as_echo_n "checking for $ac_word... " >&6; }
2315if ${ac_cv_prog_CC+:} false; then :
2316 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002317else
2318 if test -n "$CC"; then
2319 ac_cv_prog_CC="$CC" # Let the user override the test.
2320else
2321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322for as_dir in $PATH
2323do
2324 IFS=$as_save_IFS
2325 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002328 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002330 break 2
2331 fi
2332done
jfigusc7e66e32013-05-08 11:32:55 -04002333 done
2334IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002335
2336fi
2337fi
2338CC=$ac_cv_prog_CC
2339if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2341$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002342else
jfigusc7e66e32013-05-08 11:32:55 -04002343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2344$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002345fi
2346
jfigusc7e66e32013-05-08 11:32:55 -04002347
Cullen Jennings235513a2005-09-21 22:51:36 +00002348fi
2349if test -z "$ac_cv_prog_CC"; then
2350 ac_ct_CC=$CC
2351 # Extract the first word of "gcc", so it can be a program name with args.
2352set dummy gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2354$as_echo_n "checking for $ac_word... " >&6; }
2355if ${ac_cv_prog_ac_ct_CC+:} false; then :
2356 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002357else
2358 if test -n "$ac_ct_CC"; then
2359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2360else
2361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362for as_dir in $PATH
2363do
2364 IFS=$as_save_IFS
2365 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002366 for ac_exec_ext in '' $ac_executable_extensions; do
2367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002368 ac_cv_prog_ac_ct_CC="gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002370 break 2
2371 fi
2372done
jfigusc7e66e32013-05-08 11:32:55 -04002373 done
2374IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002375
2376fi
2377fi
2378ac_ct_CC=$ac_cv_prog_ac_ct_CC
2379if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2381$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002382else
jfigusc7e66e32013-05-08 11:32:55 -04002383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2384$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002385fi
2386
jfigusc7e66e32013-05-08 11:32:55 -04002387 if test "x$ac_ct_CC" = x; then
2388 CC=""
2389 else
2390 case $cross_compiling:$ac_tool_warned in
2391yes:)
2392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2394ac_tool_warned=yes ;;
2395esac
2396 CC=$ac_ct_CC
2397 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002398else
2399 CC="$ac_cv_prog_CC"
2400fi
2401
2402if test -z "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002403 if test -n "$ac_tool_prefix"; then
2404 # 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 +00002405set dummy ${ac_tool_prefix}cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2407$as_echo_n "checking for $ac_word... " >&6; }
2408if ${ac_cv_prog_CC+:} false; then :
2409 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002410else
2411 if test -n "$CC"; then
2412 ac_cv_prog_CC="$CC" # Let the user override the test.
2413else
2414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415for as_dir in $PATH
2416do
2417 IFS=$as_save_IFS
2418 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002421 ac_cv_prog_CC="${ac_tool_prefix}cc"
jfigusc7e66e32013-05-08 11:32:55 -04002422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002423 break 2
2424 fi
2425done
jfigusc7e66e32013-05-08 11:32:55 -04002426 done
2427IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002428
2429fi
2430fi
2431CC=$ac_cv_prog_CC
2432if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2434$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002435else
jfigusc7e66e32013-05-08 11:32:55 -04002436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2437$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002438fi
2439
jfigusc7e66e32013-05-08 11:32:55 -04002440
Cullen Jennings235513a2005-09-21 22:51:36 +00002441 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002442fi
2443if test -z "$CC"; then
2444 # Extract the first word of "cc", so it can be a program name with args.
2445set dummy cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2447$as_echo_n "checking for $ac_word... " >&6; }
2448if ${ac_cv_prog_CC+:} false; then :
2449 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002450else
2451 if test -n "$CC"; then
2452 ac_cv_prog_CC="$CC" # Let the user override the test.
2453else
2454 ac_prog_rejected=no
2455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456for as_dir in $PATH
2457do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002462 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2463 ac_prog_rejected=yes
2464 continue
2465 fi
2466 ac_cv_prog_CC="cc"
jfigusc7e66e32013-05-08 11:32:55 -04002467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002468 break 2
2469 fi
2470done
jfigusc7e66e32013-05-08 11:32:55 -04002471 done
2472IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002473
2474if test $ac_prog_rejected = yes; then
2475 # We found a bogon in the path, so make sure we never use it.
2476 set dummy $ac_cv_prog_CC
2477 shift
2478 if test $# != 0; then
2479 # We chose a different compiler from the bogus one.
2480 # However, it has the same basename, so the bogon will be chosen
2481 # first if we set CC to just the basename; use the full file name.
2482 shift
2483 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2484 fi
2485fi
2486fi
2487fi
2488CC=$ac_cv_prog_CC
2489if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2491$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002492else
jfigusc7e66e32013-05-08 11:32:55 -04002493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2494$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002495fi
2496
jfigusc7e66e32013-05-08 11:32:55 -04002497
Cullen Jennings235513a2005-09-21 22:51:36 +00002498fi
2499if test -z "$CC"; then
2500 if test -n "$ac_tool_prefix"; then
jfigusc7e66e32013-05-08 11:32:55 -04002501 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002502 do
2503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2504set dummy $ac_tool_prefix$ac_prog; 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_CC+:} false; then :
2508 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002509else
2510 if test -n "$CC"; then
2511 ac_cv_prog_CC="$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_CC="$ac_tool_prefix$ac_prog"
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
2530CC=$ac_cv_prog_CC
2531if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2533$as_echo "$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
Cullen Jennings235513a2005-09-21 22:51:36 +00002540 test -n "$CC" && break
2541 done
2542fi
2543if test -z "$CC"; then
2544 ac_ct_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04002545 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002546do
2547 # Extract the first word of "$ac_prog", so it can be a program name with args.
2548set dummy $ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550$as_echo_n "checking for $ac_word... " >&6; }
2551if ${ac_cv_prog_ac_ct_CC+:} false; then :
2552 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002553else
2554 if test -n "$ac_ct_CC"; then
2555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2556else
2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002564 ac_cv_prog_ac_ct_CC="$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002566 break 2
2567 fi
2568done
jfigusc7e66e32013-05-08 11:32:55 -04002569 done
2570IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002571
2572fi
2573fi
2574ac_ct_CC=$ac_cv_prog_ac_ct_CC
2575if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2577$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002578else
jfigusc7e66e32013-05-08 11:32:55 -04002579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002581fi
2582
jfigusc7e66e32013-05-08 11:32:55 -04002583
Cullen Jennings235513a2005-09-21 22:51:36 +00002584 test -n "$ac_ct_CC" && break
2585done
2586
jfigusc7e66e32013-05-08 11:32:55 -04002587 if test "x$ac_ct_CC" = x; then
2588 CC=""
2589 else
2590 case $cross_compiling:$ac_tool_warned in
2591yes:)
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2594ac_tool_warned=yes ;;
2595esac
2596 CC=$ac_ct_CC
2597 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002598fi
2599
2600fi
2601
2602
jfigusc7e66e32013-05-08 11:32:55 -04002603test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2605as_fn_error $? "no acceptable C compiler found in \$PATH
2606See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002607
2608# Provide some information about the compiler.
jfigusc7e66e32013-05-08 11:32:55 -04002609$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2610set X $ac_compile
2611ac_compiler=$2
2612for ac_option in --version -v -V -qversion; do
2613 { { ac_try="$ac_compiler $ac_option >&5"
2614case "(($ac_try" in
2615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616 *) ac_try_echo=$ac_try;;
2617esac
2618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2619$as_echo "$ac_try_echo"; } >&5
2620 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Cullen Jennings235513a2005-09-21 22:51:36 +00002621 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002622 if test -s conftest.err; then
2623 sed '10a\
2624... rest of stderr output deleted ...
2625 10q' conftest.err >conftest.er1
2626 cat conftest.er1 >&5
2627 fi
2628 rm -f conftest.er1 conftest.err
2629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2630 test $ac_status = 0; }
2631done
Cullen Jennings235513a2005-09-21 22:51:36 +00002632
jfigusc7e66e32013-05-08 11:32:55 -04002633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002634/* end confdefs.h. */
2635
2636int
2637main ()
2638{
2639
2640 ;
2641 return 0;
2642}
2643_ACEOF
2644ac_clean_files_save=$ac_clean_files
jfigusc7e66e32013-05-08 11:32:55 -04002645ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Cullen Jennings235513a2005-09-21 22:51:36 +00002646# Try to create an executable without -o first, disregard a.out.
2647# It will help us diagnose broken compilers, and finding out an intuition
2648# of exeext.
jfigusc7e66e32013-05-08 11:32:55 -04002649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2650$as_echo_n "checking whether the C compiler works... " >&6; }
2651ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002652
jfigusc7e66e32013-05-08 11:32:55 -04002653# The possible output files:
2654ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2655
2656ac_rmfiles=
2657for ac_file in $ac_files
2658do
2659 case $ac_file in
2660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2661 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2662 esac
2663done
2664rm -f $ac_rmfiles
2665
2666if { { ac_try="$ac_link_default"
2667case "(($ac_try" in
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2670esac
2671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2672$as_echo "$ac_try_echo"; } >&5
2673 (eval "$ac_link_default") 2>&5
2674 ac_status=$?
2675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2676 test $ac_status = 0; }; then :
2677 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2678# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2679# in a Makefile. We should not override ac_cv_exeext if it was cached,
2680# so that the user can short-circuit this test for compilers unknown to
2681# Autoconf.
2682for ac_file in $ac_files ''
Cullen Jennings235513a2005-09-21 22:51:36 +00002683do
2684 test -f "$ac_file" || continue
2685 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00002687 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002688 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00002689 # We found the default executable, but exeext='' is most
2690 # certainly right.
2691 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002692 *.* )
jfigusc7e66e32013-05-08 11:32:55 -04002693 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2694 then :; else
2695 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2696 fi
2697 # We set ac_cv_exeext here because the later test for it is not
2698 # safe: cross compilers may not add the suffix if given an `-o'
2699 # argument, so we may need to know it at that point already.
2700 # Even if this section looks crufty: it has the advantage of
2701 # actually working.
David McGrewfec49dd2005-09-23 19:34:11 +00002702 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002703 * )
David McGrewfec49dd2005-09-23 19:34:11 +00002704 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002705 esac
2706done
jfigusc7e66e32013-05-08 11:32:55 -04002707test "$ac_cv_exeext" = no && ac_cv_exeext=
2708
Cullen Jennings235513a2005-09-21 22:51:36 +00002709else
jfigusc7e66e32013-05-08 11:32:55 -04002710 ac_file=''
2711fi
2712if test -z "$ac_file"; then :
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714$as_echo "no" >&6; }
2715$as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002716sed 's/^/| /' conftest.$ac_ext >&5
2717
jfigusc7e66e32013-05-08 11:32:55 -04002718{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2720as_fn_error 77 "C compiler cannot create executables
2721See \`config.log' for more details" "$LINENO" 5; }
2722else
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2724$as_echo "yes" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002725fi
jfigusc7e66e32013-05-08 11:32:55 -04002726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2727$as_echo_n "checking for C compiler default output file name... " >&6; }
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2729$as_echo "$ac_file" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002730ac_exeext=$ac_cv_exeext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002731
jfigusc7e66e32013-05-08 11:32:55 -04002732rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002733ac_clean_files=$ac_clean_files_save
jfigusc7e66e32013-05-08 11:32:55 -04002734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2735$as_echo_n "checking for suffix of executables... " >&6; }
2736if { { ac_try="$ac_link"
2737case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2740esac
2741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2742$as_echo "$ac_try_echo"; } >&5
2743 (eval "$ac_link") 2>&5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002744 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2746 test $ac_status = 0; }; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002747 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2748# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2749# work properly (i.e., refer to `conftest.exe'), while it won't with
2750# `rm'.
2751for ac_file in conftest.exe conftest conftest.*; do
2752 test -f "$ac_file" || continue
2753 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002755 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00002756 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002757 * ) break;;
2758 esac
2759done
2760else
jfigusc7e66e32013-05-08 11:32:55 -04002761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2763as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2764See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002765fi
jfigusc7e66e32013-05-08 11:32:55 -04002766rm -f conftest conftest$ac_cv_exeext
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2768$as_echo "$ac_cv_exeext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002769
2770rm -f conftest.$ac_ext
2771EXEEXT=$ac_cv_exeext
2772ac_exeext=$EXEEXT
jfigusc7e66e32013-05-08 11:32:55 -04002773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774/* end confdefs.h. */
2775#include <stdio.h>
2776int
2777main ()
2778{
2779FILE *f = fopen ("conftest.out", "w");
2780 return ferror (f) || fclose (f) != 0;
2781
2782 ;
2783 return 0;
2784}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002785_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002786ac_clean_files="$ac_clean_files conftest.out"
2787# Check that the compiler produces executables we can run. If not, either
2788# the compiler is broken, or we cross compile.
2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2790$as_echo_n "checking whether we are cross compiling... " >&6; }
2791if test "$cross_compiling" != yes; then
2792 { { ac_try="$ac_link"
2793case "(($ac_try" in
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2796esac
2797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2798$as_echo "$ac_try_echo"; } >&5
2799 (eval "$ac_link") 2>&5
2800 ac_status=$?
2801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2802 test $ac_status = 0; }
2803 if { ac_try='./conftest$ac_cv_exeext'
2804 { { case "(($ac_try" in
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2807esac
2808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2809$as_echo "$ac_try_echo"; } >&5
2810 (eval "$ac_try") 2>&5
2811 ac_status=$?
2812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2813 test $ac_status = 0; }; }; then
2814 cross_compiling=no
2815 else
2816 if test "$cross_compiling" = maybe; then
2817 cross_compiling=yes
2818 else
2819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2821as_fn_error $? "cannot run C compiled programs.
2822If you meant to cross compile, use \`--host'.
2823See \`config.log' for more details" "$LINENO" 5; }
2824 fi
2825 fi
2826fi
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2828$as_echo "$cross_compiling" >&6; }
2829
2830rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2831ac_clean_files=$ac_clean_files_save
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2833$as_echo_n "checking for suffix of object files... " >&6; }
2834if ${ac_cv_objext+:} false; then :
2835 $as_echo_n "(cached) " >&6
2836else
2837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002838/* end confdefs.h. */
2839
2840int
2841main ()
2842{
2843
2844 ;
2845 return 0;
2846}
2847_ACEOF
2848rm -f conftest.o conftest.obj
jfigusc7e66e32013-05-08 11:32:55 -04002849if { { ac_try="$ac_compile"
2850case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853esac
2854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2855$as_echo "$ac_try_echo"; } >&5
2856 (eval "$ac_compile") 2>&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002857 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2859 test $ac_status = 0; }; then :
2860 for ac_file in conftest.o conftest.obj conftest.*; do
2861 test -f "$ac_file" || continue;
Cullen Jennings235513a2005-09-21 22:51:36 +00002862 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002864 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2865 break;;
2866 esac
2867done
2868else
jfigusc7e66e32013-05-08 11:32:55 -04002869 $as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002870sed 's/^/| /' conftest.$ac_ext >&5
2871
jfigusc7e66e32013-05-08 11:32:55 -04002872{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2873$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2874as_fn_error $? "cannot compute suffix of object files: cannot compile
2875See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002876fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002877rm -f conftest.$ac_cv_objext conftest.$ac_ext
2878fi
jfigusc7e66e32013-05-08 11:32:55 -04002879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2880$as_echo "$ac_cv_objext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002881OBJEXT=$ac_cv_objext
2882ac_objext=$OBJEXT
jfigusc7e66e32013-05-08 11:32:55 -04002883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2884$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2885if ${ac_cv_c_compiler_gnu+:} false; then :
2886 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002887else
jfigusc7e66e32013-05-08 11:32:55 -04002888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002889/* end confdefs.h. */
2890
2891int
2892main ()
2893{
2894#ifndef __GNUC__
2895 choke me
2896#endif
2897
2898 ;
2899 return 0;
2900}
2901_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002902if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002903 ac_compiler_gnu=yes
2904else
jfigusc7e66e32013-05-08 11:32:55 -04002905 ac_compiler_gnu=no
Cullen Jennings235513a2005-09-21 22:51:36 +00002906fi
jfigusc7e66e32013-05-08 11:32:55 -04002907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002908ac_cv_c_compiler_gnu=$ac_compiler_gnu
2909
2910fi
jfigusc7e66e32013-05-08 11:32:55 -04002911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2912$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2913if test $ac_compiler_gnu = yes; then
2914 GCC=yes
2915else
2916 GCC=
2917fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002918ac_test_CFLAGS=${CFLAGS+set}
2919ac_save_CFLAGS=$CFLAGS
jfigusc7e66e32013-05-08 11:32:55 -04002920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2921$as_echo_n "checking whether $CC accepts -g... " >&6; }
2922if ${ac_cv_prog_cc_g+:} false; then :
2923 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002924else
jfigusc7e66e32013-05-08 11:32:55 -04002925 ac_save_c_werror_flag=$ac_c_werror_flag
2926 ac_c_werror_flag=yes
2927 ac_cv_prog_cc_g=no
2928 CFLAGS="-g"
2929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002930/* end confdefs.h. */
2931
2932int
2933main ()
2934{
2935
2936 ;
2937 return 0;
2938}
2939_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002940if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002941 ac_cv_prog_cc_g=yes
2942else
jfigusc7e66e32013-05-08 11:32:55 -04002943 CFLAGS=""
2944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2945/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00002946
jfigusc7e66e32013-05-08 11:32:55 -04002947int
2948main ()
2949{
2950
2951 ;
2952 return 0;
2953}
2954_ACEOF
2955if ac_fn_c_try_compile "$LINENO"; then :
2956
2957else
2958 ac_c_werror_flag=$ac_save_c_werror_flag
2959 CFLAGS="-g"
2960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2961/* end confdefs.h. */
2962
2963int
2964main ()
2965{
2966
2967 ;
2968 return 0;
2969}
2970_ACEOF
2971if ac_fn_c_try_compile "$LINENO"; then :
2972 ac_cv_prog_cc_g=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00002973fi
jfigusc7e66e32013-05-08 11:32:55 -04002974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002975fi
jfigusc7e66e32013-05-08 11:32:55 -04002976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977fi
2978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979 ac_c_werror_flag=$ac_save_c_werror_flag
2980fi
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2982$as_echo "$ac_cv_prog_cc_g" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002983if test "$ac_test_CFLAGS" = set; then
2984 CFLAGS=$ac_save_CFLAGS
2985elif test $ac_cv_prog_cc_g = yes; then
2986 if test "$GCC" = yes; then
2987 CFLAGS="-g -O2"
2988 else
2989 CFLAGS="-g"
2990 fi
2991else
2992 if test "$GCC" = yes; then
2993 CFLAGS="-O2"
2994 else
2995 CFLAGS=
2996 fi
2997fi
jfigusc7e66e32013-05-08 11:32:55 -04002998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2999$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3000if ${ac_cv_prog_cc_c89+:} false; then :
3001 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003002else
jfigusc7e66e32013-05-08 11:32:55 -04003003 ac_cv_prog_cc_c89=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003004ac_save_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04003005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003006/* end confdefs.h. */
3007#include <stdarg.h>
3008#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -04003009struct stat;
Cullen Jennings235513a2005-09-21 22:51:36 +00003010/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3011struct buf { int x; };
3012FILE * (*rcsopen) (struct buf *, struct stat *, int);
3013static char *e (p, i)
3014 char **p;
3015 int i;
3016{
3017 return p[i];
3018}
3019static char *f (char * (*g) (char **, int), char **p, ...)
3020{
3021 char *s;
3022 va_list v;
3023 va_start (v,p);
3024 s = g (p, va_arg (v,int));
3025 va_end (v);
3026 return s;
3027}
David McGrewfec49dd2005-09-23 19:34:11 +00003028
3029/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3030 function prototypes and stuff, but not '\xHH' hex character constants.
3031 These don't provoke an error unfortunately, instead are silently treated
jfigusc7e66e32013-05-08 11:32:55 -04003032 as 'x'. The following induces an error, until -std is added to get
David McGrewfec49dd2005-09-23 19:34:11 +00003033 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3034 array size at least. It's necessary to write '\x00'==0 to get something
jfigusc7e66e32013-05-08 11:32:55 -04003035 that's true only with -std. */
David McGrewfec49dd2005-09-23 19:34:11 +00003036int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3037
jfigusc7e66e32013-05-08 11:32:55 -04003038/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3039 inside strings and character constants. */
3040#define FOO(x) 'x'
3041int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3042
Cullen Jennings235513a2005-09-21 22:51:36 +00003043int test (int i, double x);
3044struct s1 {int (*f) (int a);};
3045struct s2 {int (*f) (double a);};
3046int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3047int argc;
3048char **argv;
3049int
3050main ()
3051{
3052return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3053 ;
3054 return 0;
3055}
3056_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003057for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3058 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Cullen Jennings235513a2005-09-21 22:51:36 +00003059do
3060 CC="$ac_save_CC $ac_arg"
jfigusc7e66e32013-05-08 11:32:55 -04003061 if ac_fn_c_try_compile "$LINENO"; then :
3062 ac_cv_prog_cc_c89=$ac_arg
Cullen Jennings235513a2005-09-21 22:51:36 +00003063fi
jfigusc7e66e32013-05-08 11:32:55 -04003064rm -f core conftest.err conftest.$ac_objext
3065 test "x$ac_cv_prog_cc_c89" != "xno" && break
Cullen Jennings235513a2005-09-21 22:51:36 +00003066done
jfigusc7e66e32013-05-08 11:32:55 -04003067rm -f conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003068CC=$ac_save_CC
3069
3070fi
jfigusc7e66e32013-05-08 11:32:55 -04003071# AC_CACHE_VAL
3072case "x$ac_cv_prog_cc_c89" in
3073 x)
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3075$as_echo "none needed" >&6; } ;;
3076 xno)
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3078$as_echo "unsupported" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003079 *)
jfigusc7e66e32013-05-08 11:32:55 -04003080 CC="$CC $ac_cv_prog_cc_c89"
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3082$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003083esac
jfigusc7e66e32013-05-08 11:32:55 -04003084if test "x$ac_cv_prog_cc_c89" != xno; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003085
3086fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003087
Cullen Jennings235513a2005-09-21 22:51:36 +00003088ac_ext=c
3089ac_cpp='$CPP $CPPFLAGS'
3090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3092ac_compiler_gnu=$ac_cv_c_compiler_gnu
3093
jfigus1ce6a742015-04-06 08:54:01 -04003094
3095if test -n "$ac_tool_prefix"; then
3096 for ac_prog in ar lib "link -lib"
3097 do
3098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3099set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101$as_echo_n "checking for $ac_word... " >&6; }
3102if ${ac_cv_prog_AR+:} false; then :
3103 $as_echo_n "(cached) " >&6
3104else
3105 if test -n "$AR"; then
3106 ac_cv_prog_AR="$AR" # Let the user override the test.
3107else
3108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109for as_dir in $PATH
3110do
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119done
3120 done
3121IFS=$as_save_IFS
3122
3123fi
3124fi
3125AR=$ac_cv_prog_AR
3126if test -n "$AR"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3128$as_echo "$AR" >&6; }
3129else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131$as_echo "no" >&6; }
3132fi
3133
3134
3135 test -n "$AR" && break
3136 done
3137fi
3138if test -z "$AR"; then
3139 ac_ct_AR=$AR
3140 for ac_prog in ar lib "link -lib"
3141do
3142 # Extract the first word of "$ac_prog", so it can be a program name with args.
3143set dummy $ac_prog; ac_word=$2
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145$as_echo_n "checking for $ac_word... " >&6; }
3146if ${ac_cv_prog_ac_ct_AR+:} false; then :
3147 $as_echo_n "(cached) " >&6
3148else
3149 if test -n "$ac_ct_AR"; then
3150 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3151else
3152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153for as_dir in $PATH
3154do
3155 IFS=$as_save_IFS
3156 test -z "$as_dir" && as_dir=.
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3159 ac_cv_prog_ac_ct_AR="$ac_prog"
3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 break 2
3162 fi
3163done
3164 done
3165IFS=$as_save_IFS
3166
3167fi
3168fi
3169ac_ct_AR=$ac_cv_prog_ac_ct_AR
3170if test -n "$ac_ct_AR"; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3172$as_echo "$ac_ct_AR" >&6; }
3173else
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175$as_echo "no" >&6; }
3176fi
3177
3178
3179 test -n "$ac_ct_AR" && break
3180done
3181
3182 if test "x$ac_ct_AR" = x; then
3183 AR="false"
3184 else
3185 case $cross_compiling:$ac_tool_warned in
3186yes:)
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3189ac_tool_warned=yes ;;
3190esac
3191 AR=$ac_ct_AR
3192 fi
3193fi
3194
3195: ${AR=ar}
3196
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3198$as_echo_n "checking the archiver ($AR) interface... " >&6; }
3199if ${am_cv_ar_interface+:} false; then :
3200 $as_echo_n "(cached) " >&6
3201else
3202 ac_ext=c
3203ac_cpp='$CPP $CPPFLAGS'
3204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207
3208 am_cv_ar_interface=ar
3209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210/* end confdefs.h. */
3211int some_variable = 0;
3212_ACEOF
3213if ac_fn_c_try_compile "$LINENO"; then :
3214 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3216 (eval $am_ar_try) 2>&5
3217 ac_status=$?
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }
3220 if test "$ac_status" -eq 0; then
3221 am_cv_ar_interface=ar
3222 else
3223 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3225 (eval $am_ar_try) 2>&5
3226 ac_status=$?
3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }
3229 if test "$ac_status" -eq 0; then
3230 am_cv_ar_interface=lib
3231 else
3232 am_cv_ar_interface=unknown
3233 fi
3234 fi
3235 rm -f conftest.lib libconftest.a
3236
3237fi
3238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239 ac_ext=c
3240ac_cpp='$CPP $CPPFLAGS'
3241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244
3245fi
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3247$as_echo "$am_cv_ar_interface" >&6; }
3248
3249case $am_cv_ar_interface in
3250ar)
3251 ;;
3252lib)
3253 # Microsoft lib, so override with the ar-lib wrapper script.
3254 # FIXME: It is wrong to rewrite AR.
3255 # But if we don't then we get into trouble of one sort or another.
3256 # A longer-term fix would be to have automake use am__AR in this case,
3257 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3258 # similar.
3259 AR="$am_aux_dir/ar-lib $AR"
3260 ;;
3261unknown)
3262 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3263 ;;
3264esac
3265
3266if test -n "$ac_tool_prefix"; then
3267 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3268set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270$as_echo_n "checking for $ac_word... " >&6; }
3271if ${ac_cv_prog_RANLIB+:} false; then :
3272 $as_echo_n "(cached) " >&6
3273else
3274 if test -n "$RANLIB"; then
3275 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3276else
3277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278for as_dir in $PATH
3279do
3280 IFS=$as_save_IFS
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 break 2
3287 fi
3288done
3289 done
3290IFS=$as_save_IFS
3291
3292fi
3293fi
3294RANLIB=$ac_cv_prog_RANLIB
3295if test -n "$RANLIB"; then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3297$as_echo "$RANLIB" >&6; }
3298else
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300$as_echo "no" >&6; }
3301fi
3302
3303
3304fi
3305if test -z "$ac_cv_prog_RANLIB"; then
3306 ac_ct_RANLIB=$RANLIB
3307 # Extract the first word of "ranlib", so it can be a program name with args.
3308set dummy ranlib; ac_word=$2
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310$as_echo_n "checking for $ac_word... " >&6; }
3311if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313else
3314 if test -n "$ac_ct_RANLIB"; then
3315 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3316else
3317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318for as_dir in $PATH
3319do
3320 IFS=$as_save_IFS
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324 ac_cv_prog_ac_ct_RANLIB="ranlib"
3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 break 2
3327 fi
3328done
3329 done
3330IFS=$as_save_IFS
3331
3332fi
3333fi
3334ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3335if test -n "$ac_ct_RANLIB"; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3337$as_echo "$ac_ct_RANLIB" >&6; }
3338else
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340$as_echo "no" >&6; }
3341fi
3342
3343 if test "x$ac_ct_RANLIB" = x; then
3344 RANLIB=":"
3345 else
3346 case $cross_compiling:$ac_tool_warned in
3347yes:)
3348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3350ac_tool_warned=yes ;;
3351esac
3352 RANLIB=$ac_ct_RANLIB
3353 fi
3354else
3355 RANLIB="$ac_cv_prog_RANLIB"
3356fi
3357
3358ac_ext=c
3359ac_cpp='$CPP $CPPFLAGS'
3360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3362ac_compiler_gnu=$ac_cv_c_compiler_gnu
3363if test -n "$ac_tool_prefix"; then
3364 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3365set dummy ${ac_tool_prefix}gcc; ac_word=$2
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367$as_echo_n "checking for $ac_word... " >&6; }
3368if ${ac_cv_prog_CC+:} false; then :
3369 $as_echo_n "(cached) " >&6
3370else
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC="$CC" # Let the user override the test.
3373else
3374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375for as_dir in $PATH
3376do
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3384 fi
3385done
3386 done
3387IFS=$as_save_IFS
3388
3389fi
3390fi
3391CC=$ac_cv_prog_CC
3392if test -n "$CC"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394$as_echo "$CC" >&6; }
3395else
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397$as_echo "no" >&6; }
3398fi
3399
3400
3401fi
3402if test -z "$ac_cv_prog_CC"; then
3403 ac_ct_CC=$CC
3404 # Extract the first word of "gcc", so it can be a program name with args.
3405set dummy gcc; ac_word=$2
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407$as_echo_n "checking for $ac_word... " >&6; }
3408if ${ac_cv_prog_ac_ct_CC+:} false; then :
3409 $as_echo_n "(cached) " >&6
3410else
3411 if test -n "$ac_ct_CC"; then
3412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3413else
3414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415for as_dir in $PATH
3416do
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421 ac_cv_prog_ac_ct_CC="gcc"
3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 break 2
3424 fi
3425done
3426 done
3427IFS=$as_save_IFS
3428
3429fi
3430fi
3431ac_ct_CC=$ac_cv_prog_ac_ct_CC
3432if test -n "$ac_ct_CC"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3434$as_echo "$ac_ct_CC" >&6; }
3435else
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437$as_echo "no" >&6; }
3438fi
3439
3440 if test "x$ac_ct_CC" = x; then
3441 CC=""
3442 else
3443 case $cross_compiling:$ac_tool_warned in
3444yes:)
3445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3447ac_tool_warned=yes ;;
3448esac
3449 CC=$ac_ct_CC
3450 fi
3451else
3452 CC="$ac_cv_prog_CC"
3453fi
3454
3455if test -z "$CC"; then
3456 if test -n "$ac_tool_prefix"; then
3457 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3458set dummy ${ac_tool_prefix}cc; ac_word=$2
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460$as_echo_n "checking for $ac_word... " >&6; }
3461if ${ac_cv_prog_CC+:} false; then :
3462 $as_echo_n "(cached) " >&6
3463else
3464 if test -n "$CC"; then
3465 ac_cv_prog_CC="$CC" # Let the user override the test.
3466else
3467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468for as_dir in $PATH
3469do
3470 IFS=$as_save_IFS
3471 test -z "$as_dir" && as_dir=.
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474 ac_cv_prog_CC="${ac_tool_prefix}cc"
3475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3476 break 2
3477 fi
3478done
3479 done
3480IFS=$as_save_IFS
3481
3482fi
3483fi
3484CC=$ac_cv_prog_CC
3485if test -n "$CC"; then
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3487$as_echo "$CC" >&6; }
3488else
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490$as_echo "no" >&6; }
3491fi
3492
3493
3494 fi
3495fi
3496if test -z "$CC"; then
3497 # Extract the first word of "cc", so it can be a program name with args.
3498set dummy cc; ac_word=$2
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500$as_echo_n "checking for $ac_word... " >&6; }
3501if ${ac_cv_prog_CC+:} false; then :
3502 $as_echo_n "(cached) " >&6
3503else
3504 if test -n "$CC"; then
3505 ac_cv_prog_CC="$CC" # Let the user override the test.
3506else
3507 ac_prog_rejected=no
3508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509for as_dir in $PATH
3510do
3511 IFS=$as_save_IFS
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3515 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3516 ac_prog_rejected=yes
3517 continue
3518 fi
3519 ac_cv_prog_CC="cc"
3520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 break 2
3522 fi
3523done
3524 done
3525IFS=$as_save_IFS
3526
3527if test $ac_prog_rejected = yes; then
3528 # We found a bogon in the path, so make sure we never use it.
3529 set dummy $ac_cv_prog_CC
3530 shift
3531 if test $# != 0; then
3532 # We chose a different compiler from the bogus one.
3533 # However, it has the same basename, so the bogon will be chosen
3534 # first if we set CC to just the basename; use the full file name.
3535 shift
3536 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3537 fi
3538fi
3539fi
3540fi
3541CC=$ac_cv_prog_CC
3542if test -n "$CC"; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3544$as_echo "$CC" >&6; }
3545else
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547$as_echo "no" >&6; }
3548fi
3549
3550
3551fi
3552if test -z "$CC"; then
3553 if test -n "$ac_tool_prefix"; then
3554 for ac_prog in cl.exe
3555 do
3556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3557set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559$as_echo_n "checking for $ac_word... " >&6; }
3560if ${ac_cv_prog_CC+:} false; then :
3561 $as_echo_n "(cached) " >&6
3562else
3563 if test -n "$CC"; then
3564 ac_cv_prog_CC="$CC" # Let the user override the test.
3565else
3566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567for as_dir in $PATH
3568do
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 break 2
3576 fi
3577done
3578 done
3579IFS=$as_save_IFS
3580
3581fi
3582fi
3583CC=$ac_cv_prog_CC
3584if test -n "$CC"; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3586$as_echo "$CC" >&6; }
3587else
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589$as_echo "no" >&6; }
3590fi
3591
3592
3593 test -n "$CC" && break
3594 done
3595fi
3596if test -z "$CC"; then
3597 ac_ct_CC=$CC
3598 for ac_prog in cl.exe
3599do
3600 # Extract the first word of "$ac_prog", so it can be a program name with args.
3601set dummy $ac_prog; ac_word=$2
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603$as_echo_n "checking for $ac_word... " >&6; }
3604if ${ac_cv_prog_ac_ct_CC+:} false; then :
3605 $as_echo_n "(cached) " >&6
3606else
3607 if test -n "$ac_ct_CC"; then
3608 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3609else
3610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611for as_dir in $PATH
3612do
3613 IFS=$as_save_IFS
3614 test -z "$as_dir" && as_dir=.
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3617 ac_cv_prog_ac_ct_CC="$ac_prog"
3618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3619 break 2
3620 fi
3621done
3622 done
3623IFS=$as_save_IFS
3624
3625fi
3626fi
3627ac_ct_CC=$ac_cv_prog_ac_ct_CC
3628if test -n "$ac_ct_CC"; then
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3630$as_echo "$ac_ct_CC" >&6; }
3631else
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633$as_echo "no" >&6; }
3634fi
3635
3636
3637 test -n "$ac_ct_CC" && break
3638done
3639
3640 if test "x$ac_ct_CC" = x; then
3641 CC=""
3642 else
3643 case $cross_compiling:$ac_tool_warned in
3644yes:)
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3646$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3647ac_tool_warned=yes ;;
3648esac
3649 CC=$ac_ct_CC
3650 fi
3651fi
3652
3653fi
3654
3655
3656test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3658as_fn_error $? "no acceptable C compiler found in \$PATH
3659See \`config.log' for more details" "$LINENO" 5; }
3660
3661# Provide some information about the compiler.
3662$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3663set X $ac_compile
3664ac_compiler=$2
3665for ac_option in --version -v -V -qversion; do
3666 { { ac_try="$ac_compiler $ac_option >&5"
3667case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670esac
3671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672$as_echo "$ac_try_echo"; } >&5
3673 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3674 ac_status=$?
3675 if test -s conftest.err; then
3676 sed '10a\
3677... rest of stderr output deleted ...
3678 10q' conftest.err >conftest.er1
3679 cat conftest.er1 >&5
3680 fi
3681 rm -f conftest.er1 conftest.err
3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683 test $ac_status = 0; }
3684done
3685
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3687$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3688if ${ac_cv_c_compiler_gnu+:} false; then :
3689 $as_echo_n "(cached) " >&6
3690else
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692/* end confdefs.h. */
3693
3694int
3695main ()
3696{
3697#ifndef __GNUC__
3698 choke me
3699#endif
3700
3701 ;
3702 return 0;
3703}
3704_ACEOF
3705if ac_fn_c_try_compile "$LINENO"; then :
3706 ac_compiler_gnu=yes
3707else
3708 ac_compiler_gnu=no
3709fi
3710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711ac_cv_c_compiler_gnu=$ac_compiler_gnu
3712
3713fi
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3715$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3716if test $ac_compiler_gnu = yes; then
3717 GCC=yes
3718else
3719 GCC=
3720fi
3721ac_test_CFLAGS=${CFLAGS+set}
3722ac_save_CFLAGS=$CFLAGS
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3724$as_echo_n "checking whether $CC accepts -g... " >&6; }
3725if ${ac_cv_prog_cc_g+:} false; then :
3726 $as_echo_n "(cached) " >&6
3727else
3728 ac_save_c_werror_flag=$ac_c_werror_flag
3729 ac_c_werror_flag=yes
3730 ac_cv_prog_cc_g=no
3731 CFLAGS="-g"
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733/* end confdefs.h. */
3734
3735int
3736main ()
3737{
3738
3739 ;
3740 return 0;
3741}
3742_ACEOF
3743if ac_fn_c_try_compile "$LINENO"; then :
3744 ac_cv_prog_cc_g=yes
3745else
3746 CFLAGS=""
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748/* end confdefs.h. */
3749
3750int
3751main ()
3752{
3753
3754 ;
3755 return 0;
3756}
3757_ACEOF
3758if ac_fn_c_try_compile "$LINENO"; then :
3759
3760else
3761 ac_c_werror_flag=$ac_save_c_werror_flag
3762 CFLAGS="-g"
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764/* end confdefs.h. */
3765
3766int
3767main ()
3768{
3769
3770 ;
3771 return 0;
3772}
3773_ACEOF
3774if ac_fn_c_try_compile "$LINENO"; then :
3775 ac_cv_prog_cc_g=yes
3776fi
3777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778fi
3779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780fi
3781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782 ac_c_werror_flag=$ac_save_c_werror_flag
3783fi
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3785$as_echo "$ac_cv_prog_cc_g" >&6; }
3786if test "$ac_test_CFLAGS" = set; then
3787 CFLAGS=$ac_save_CFLAGS
3788elif test $ac_cv_prog_cc_g = yes; then
3789 if test "$GCC" = yes; then
3790 CFLAGS="-g -O2"
3791 else
3792 CFLAGS="-g"
3793 fi
3794else
3795 if test "$GCC" = yes; then
3796 CFLAGS="-O2"
3797 else
3798 CFLAGS=
3799 fi
3800fi
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3802$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3803if ${ac_cv_prog_cc_c89+:} false; then :
3804 $as_echo_n "(cached) " >&6
3805else
3806 ac_cv_prog_cc_c89=no
3807ac_save_CC=$CC
3808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809/* end confdefs.h. */
3810#include <stdarg.h>
3811#include <stdio.h>
3812struct stat;
3813/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3814struct buf { int x; };
3815FILE * (*rcsopen) (struct buf *, struct stat *, int);
3816static char *e (p, i)
3817 char **p;
3818 int i;
3819{
3820 return p[i];
3821}
3822static char *f (char * (*g) (char **, int), char **p, ...)
3823{
3824 char *s;
3825 va_list v;
3826 va_start (v,p);
3827 s = g (p, va_arg (v,int));
3828 va_end (v);
3829 return s;
3830}
3831
3832/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3833 function prototypes and stuff, but not '\xHH' hex character constants.
3834 These don't provoke an error unfortunately, instead are silently treated
3835 as 'x'. The following induces an error, until -std is added to get
3836 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3837 array size at least. It's necessary to write '\x00'==0 to get something
3838 that's true only with -std. */
3839int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3840
3841/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3842 inside strings and character constants. */
3843#define FOO(x) 'x'
3844int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3845
3846int test (int i, double x);
3847struct s1 {int (*f) (int a);};
3848struct s2 {int (*f) (double a);};
3849int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3850int argc;
3851char **argv;
3852int
3853main ()
3854{
3855return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3856 ;
3857 return 0;
3858}
3859_ACEOF
3860for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3861 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3862do
3863 CC="$ac_save_CC $ac_arg"
3864 if ac_fn_c_try_compile "$LINENO"; then :
3865 ac_cv_prog_cc_c89=$ac_arg
3866fi
3867rm -f core conftest.err conftest.$ac_objext
3868 test "x$ac_cv_prog_cc_c89" != "xno" && break
3869done
3870rm -f conftest.$ac_ext
3871CC=$ac_save_CC
3872
3873fi
3874# AC_CACHE_VAL
3875case "x$ac_cv_prog_cc_c89" in
3876 x)
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3878$as_echo "none needed" >&6; } ;;
3879 xno)
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3881$as_echo "unsupported" >&6; } ;;
3882 *)
3883 CC="$CC $ac_cv_prog_cc_c89"
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3885$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3886esac
3887if test "x$ac_cv_prog_cc_c89" != xno; then :
3888
3889fi
3890
3891ac_ext=c
3892ac_cpp='$CPP $CPPFLAGS'
3893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895ac_compiler_gnu=$ac_cv_c_compiler_gnu
3896
Pascal Bühlerac872e72017-02-09 14:55:27 +01003897ac_aux_dir=
3898for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3899 if test -f "$ac_dir/install-sh"; then
3900 ac_aux_dir=$ac_dir
3901 ac_install_sh="$ac_aux_dir/install-sh -c"
3902 break
3903 elif test -f "$ac_dir/install.sh"; then
3904 ac_aux_dir=$ac_dir
3905 ac_install_sh="$ac_aux_dir/install.sh -c"
3906 break
3907 elif test -f "$ac_dir/shtool"; then
3908 ac_aux_dir=$ac_dir
3909 ac_install_sh="$ac_aux_dir/shtool install -c"
3910 break
3911 fi
3912done
3913if test -z "$ac_aux_dir"; then
3914 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3915fi
3916
3917# These three variables are undocumented and unsupported,
3918# and are intended to be withdrawn in a future Autoconf release.
3919# They can cause serious problems if a builder's source tree is in a directory
3920# whose full name contains unusual characters.
3921ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3922ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3923ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3924
3925
David McGrewb67061f2005-09-28 14:23:06 +00003926# Find a good install program. We prefer a C program (faster),
3927# so one script is as good as another. But avoid the broken or
3928# incompatible versions:
3929# SysV /etc/install, /usr/sbin/install
3930# SunOS /usr/etc/install
3931# IRIX /sbin/install
3932# AIX /bin/install
3933# AmigaOS /C/install, which installs bootblocks on floppy discs
3934# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3935# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3936# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3937# OS/2's system install, which has a completely different semantic
3938# ./install, which can be erroneously created by make from ./install.sh.
jfigusc7e66e32013-05-08 11:32:55 -04003939# Reject install programs that cannot install multiple files.
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3941$as_echo_n "checking for a BSD-compatible install... " >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00003942if test -z "$INSTALL"; then
jfigusc7e66e32013-05-08 11:32:55 -04003943if ${ac_cv_path_install+:} false; then :
3944 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003945else
David McGrewb67061f2005-09-28 14:23:06 +00003946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947for as_dir in $PATH
3948do
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04003951 # Account for people who put trailing slashes in PATH elements.
3952case $as_dir/ in #((
3953 ./ | .// | /[cC]/* | \
David McGrewb67061f2005-09-28 14:23:06 +00003954 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jfigusc7e66e32013-05-08 11:32:55 -04003955 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
David McGrewb67061f2005-09-28 14:23:06 +00003956 /usr/ucb/* ) ;;
3957 *)
3958 # OSF1 and SCO ODT 3.0 have their own names for install.
3959 # Don't use installbsd from OSF since it installs stuff as root
3960 # by default.
3961 for ac_prog in ginstall scoinst install; do
3962 for ac_exec_ext in '' $ac_executable_extensions; do
jfigusc7e66e32013-05-08 11:32:55 -04003963 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
David McGrewb67061f2005-09-28 14:23:06 +00003964 if test $ac_prog = install &&
3965 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3966 # AIX install. It has an incompatible calling convention.
3967 :
3968 elif test $ac_prog = install &&
3969 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3970 # program-specific install script used by HP pwplus--don't use.
3971 :
3972 else
jfigusc7e66e32013-05-08 11:32:55 -04003973 rm -rf conftest.one conftest.two conftest.dir
3974 echo one > conftest.one
3975 echo two > conftest.two
3976 mkdir conftest.dir
3977 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3978 test -s conftest.one && test -s conftest.two &&
3979 test -s conftest.dir/conftest.one &&
3980 test -s conftest.dir/conftest.two
3981 then
3982 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3983 break 3
3984 fi
David McGrewb67061f2005-09-28 14:23:06 +00003985 fi
3986 fi
3987 done
3988 done
3989 ;;
3990esac
Cullen Jennings235513a2005-09-21 22:51:36 +00003991
jfigusc7e66e32013-05-08 11:32:55 -04003992 done
3993IFS=$as_save_IFS
3994
3995rm -rf conftest.one conftest.two conftest.dir
Cullen Jennings235513a2005-09-21 22:51:36 +00003996
3997fi
David McGrewb67061f2005-09-28 14:23:06 +00003998 if test "${ac_cv_path_install+set}" = set; then
3999 INSTALL=$ac_cv_path_install
4000 else
jfigusc7e66e32013-05-08 11:32:55 -04004001 # As a last resort, use the slow shell script. Don't cache a
4002 # value for INSTALL within a source directory, because that will
David McGrewb67061f2005-09-28 14:23:06 +00004003 # break other packages using the cache if that directory is
jfigusc7e66e32013-05-08 11:32:55 -04004004 # removed, or if the value is a relative name.
David McGrewb67061f2005-09-28 14:23:06 +00004005 INSTALL=$ac_install_sh
4006 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00004007fi
jfigusc7e66e32013-05-08 11:32:55 -04004008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4009$as_echo "$INSTALL" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004010
David McGrewb67061f2005-09-28 14:23:06 +00004011# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4012# It thinks the first close brace ends the variable substitution.
4013test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00004014
David McGrewb67061f2005-09-28 14:23:06 +00004015test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4016
4017test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00004018
Idar Tollefsen600ad962017-01-26 11:24:51 +01004019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4020$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4021if ${ac_cv_path_SED+:} false; then :
4022 $as_echo_n "(cached) " >&6
4023else
4024 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4025 for ac_i in 1 2 3 4 5 6 7; do
4026 ac_script="$ac_script$as_nl$ac_script"
4027 done
4028 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4029 { ac_script=; unset ac_script;}
4030 if test -z "$SED"; then
4031 ac_path_SED_found=false
4032 # Loop through the user's path and test for each of PROGNAME-LIST
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034for as_dir in $PATH
4035do
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_prog in sed gsed; do
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4041 as_fn_executable_p "$ac_path_SED" || continue
4042# Check for GNU ac_path_SED and select it if it is found.
4043 # Check for GNU $ac_path_SED
4044case `"$ac_path_SED" --version 2>&1` in
4045*GNU*)
4046 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4047*)
4048 ac_count=0
4049 $as_echo_n 0123456789 >"conftest.in"
4050 while :
4051 do
4052 cat "conftest.in" "conftest.in" >"conftest.tmp"
4053 mv "conftest.tmp" "conftest.in"
4054 cp "conftest.in" "conftest.nl"
4055 $as_echo '' >> "conftest.nl"
4056 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4058 as_fn_arith $ac_count + 1 && ac_count=$as_val
4059 if test $ac_count -gt ${ac_path_SED_max-0}; then
4060 # Best one so far, save it but keep looking for a better one
4061 ac_cv_path_SED="$ac_path_SED"
4062 ac_path_SED_max=$ac_count
4063 fi
4064 # 10*(2^10) chars as input seems more than enough
4065 test $ac_count -gt 10 && break
4066 done
4067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4068esac
4069
4070 $ac_path_SED_found && break 3
4071 done
4072 done
4073 done
4074IFS=$as_save_IFS
4075 if test -z "$ac_cv_path_SED"; then
4076 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4077 fi
4078else
4079 ac_cv_path_SED=$SED
4080fi
4081
4082fi
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4084$as_echo "$ac_cv_path_SED" >&6; }
4085 SED="$ac_cv_path_SED"
4086 rm -f conftest.sed
4087
Cullen Jennings235513a2005-09-21 22:51:36 +00004088
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004089ac_ext=c
4090ac_cpp='$CPP $CPPFLAGS'
4091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093ac_compiler_gnu=$ac_cv_c_compiler_gnu
jfigusc7e66e32013-05-08 11:32:55 -04004094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4095$as_echo_n "checking how to run the C preprocessor... " >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004096# On Suns, sometimes $CPP names a directory.
4097if test -n "$CPP" && test -d "$CPP"; then
4098 CPP=
4099fi
4100if test -z "$CPP"; then
jfigusc7e66e32013-05-08 11:32:55 -04004101 if ${ac_cv_prog_CPP+:} false; then :
4102 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004103else
4104 # Double quotes because CPP needs to be expanded
4105 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4106 do
4107 ac_preproc_ok=false
4108for ac_c_preproc_warn_flag in '' yes
4109do
4110 # Use a header file that comes with gcc, so configuring glibc
4111 # with a fresh cross-compiler works.
4112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4113 # <limits.h> exists even on freestanding compilers.
4114 # On the NeXT, cc -E runs the code through the compiler's parser,
4115 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04004116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004117/* end confdefs.h. */
4118#ifdef __STDC__
4119# include <limits.h>
4120#else
4121# include <assert.h>
4122#endif
4123 Syntax error
4124_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004125if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004126
jfigusc7e66e32013-05-08 11:32:55 -04004127else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004128 # Broken: fails on valid input.
4129continue
4130fi
jfigusc7e66e32013-05-08 11:32:55 -04004131rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004132
jfigusc7e66e32013-05-08 11:32:55 -04004133 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004134 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04004135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004136/* end confdefs.h. */
4137#include <ac_nonexistent.h>
4138_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004139if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004140 # Broken: success on invalid input.
4141continue
4142else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004143 # Passes both tests.
4144ac_preproc_ok=:
4145break
4146fi
jfigusc7e66e32013-05-08 11:32:55 -04004147rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004148
4149done
4150# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04004151rm -f conftest.i conftest.err conftest.$ac_ext
4152if $ac_preproc_ok; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004153 break
4154fi
4155
4156 done
4157 ac_cv_prog_CPP=$CPP
4158
4159fi
4160 CPP=$ac_cv_prog_CPP
4161else
4162 ac_cv_prog_CPP=$CPP
4163fi
jfigusc7e66e32013-05-08 11:32:55 -04004164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4165$as_echo "$CPP" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004166ac_preproc_ok=false
4167for ac_c_preproc_warn_flag in '' yes
4168do
4169 # Use a header file that comes with gcc, so configuring glibc
4170 # with a fresh cross-compiler works.
4171 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4172 # <limits.h> exists even on freestanding compilers.
4173 # On the NeXT, cc -E runs the code through the compiler's parser,
4174 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04004175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004176/* end confdefs.h. */
4177#ifdef __STDC__
4178# include <limits.h>
4179#else
4180# include <assert.h>
4181#endif
4182 Syntax error
4183_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004184if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004185
jfigusc7e66e32013-05-08 11:32:55 -04004186else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004187 # Broken: fails on valid input.
4188continue
4189fi
jfigusc7e66e32013-05-08 11:32:55 -04004190rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004191
jfigusc7e66e32013-05-08 11:32:55 -04004192 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004193 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04004194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004195/* end confdefs.h. */
4196#include <ac_nonexistent.h>
4197_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004198if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004199 # Broken: success on invalid input.
4200continue
4201else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004202 # Passes both tests.
4203ac_preproc_ok=:
4204break
4205fi
jfigusc7e66e32013-05-08 11:32:55 -04004206rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004207
4208done
4209# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04004210rm -f conftest.i conftest.err conftest.$ac_ext
4211if $ac_preproc_ok; then :
4212
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004213else
jfigusc7e66e32013-05-08 11:32:55 -04004214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4216as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4217See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004218fi
4219
4220ac_ext=c
4221ac_cpp='$CPP $CPPFLAGS'
4222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225
4226
jfigusc7e66e32013-05-08 11:32:55 -04004227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4228$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4229if ${ac_cv_path_GREP+:} false; then :
4230 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004231else
jfigusc7e66e32013-05-08 11:32:55 -04004232 if test -z "$GREP"; then
4233 ac_path_GREP_found=false
4234 # Loop through the user's path and test for each of PROGNAME-LIST
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4237do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_prog in grep ggrep; do
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4243 as_fn_executable_p "$ac_path_GREP" || continue
4244# Check for GNU ac_path_GREP and select it if it is found.
4245 # Check for GNU $ac_path_GREP
4246case `"$ac_path_GREP" --version 2>&1` in
4247*GNU*)
4248 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4249*)
4250 ac_count=0
4251 $as_echo_n 0123456789 >"conftest.in"
4252 while :
4253 do
4254 cat "conftest.in" "conftest.in" >"conftest.tmp"
4255 mv "conftest.tmp" "conftest.in"
4256 cp "conftest.in" "conftest.nl"
4257 $as_echo 'GREP' >> "conftest.nl"
4258 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4260 as_fn_arith $ac_count + 1 && ac_count=$as_val
4261 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4262 # Best one so far, save it but keep looking for a better one
4263 ac_cv_path_GREP="$ac_path_GREP"
4264 ac_path_GREP_max=$ac_count
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004265 fi
jfigusc7e66e32013-05-08 11:32:55 -04004266 # 10*(2^10) chars as input seems more than enough
4267 test $ac_count -gt 10 && break
4268 done
4269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4270esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004271
jfigusc7e66e32013-05-08 11:32:55 -04004272 $ac_path_GREP_found && break 3
4273 done
4274 done
4275 done
4276IFS=$as_save_IFS
4277 if test -z "$ac_cv_path_GREP"; then
4278 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4279 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004280else
jfigusc7e66e32013-05-08 11:32:55 -04004281 ac_cv_path_GREP=$GREP
4282fi
4283
4284fi
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4286$as_echo "$ac_cv_path_GREP" >&6; }
4287 GREP="$ac_cv_path_GREP"
4288
4289
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4291$as_echo_n "checking for egrep... " >&6; }
4292if ${ac_cv_path_EGREP+:} false; then :
4293 $as_echo_n "(cached) " >&6
4294else
4295 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4296 then ac_cv_path_EGREP="$GREP -E"
4297 else
4298 if test -z "$EGREP"; then
4299 ac_path_EGREP_found=false
4300 # Loop through the user's path and test for each of PROGNAME-LIST
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4303do
4304 IFS=$as_save_IFS
4305 test -z "$as_dir" && as_dir=.
4306 for ac_prog in egrep; do
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4309 as_fn_executable_p "$ac_path_EGREP" || continue
4310# Check for GNU ac_path_EGREP and select it if it is found.
4311 # Check for GNU $ac_path_EGREP
4312case `"$ac_path_EGREP" --version 2>&1` in
4313*GNU*)
4314 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4315*)
4316 ac_count=0
4317 $as_echo_n 0123456789 >"conftest.in"
4318 while :
4319 do
4320 cat "conftest.in" "conftest.in" >"conftest.tmp"
4321 mv "conftest.tmp" "conftest.in"
4322 cp "conftest.in" "conftest.nl"
4323 $as_echo 'EGREP' >> "conftest.nl"
4324 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4326 as_fn_arith $ac_count + 1 && ac_count=$as_val
4327 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4328 # Best one so far, save it but keep looking for a better one
4329 ac_cv_path_EGREP="$ac_path_EGREP"
4330 ac_path_EGREP_max=$ac_count
4331 fi
4332 # 10*(2^10) chars as input seems more than enough
4333 test $ac_count -gt 10 && break
4334 done
4335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4336esac
4337
4338 $ac_path_EGREP_found && break 3
4339 done
4340 done
4341 done
4342IFS=$as_save_IFS
4343 if test -z "$ac_cv_path_EGREP"; then
4344 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4345 fi
4346else
4347 ac_cv_path_EGREP=$EGREP
4348fi
4349
4350 fi
4351fi
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4353$as_echo "$ac_cv_path_EGREP" >&6; }
4354 EGREP="$ac_cv_path_EGREP"
4355
4356
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4358$as_echo_n "checking for ANSI C header files... " >&6; }
4359if ${ac_cv_header_stdc+:} false; then :
4360 $as_echo_n "(cached) " >&6
4361else
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004363/* end confdefs.h. */
4364#include <stdlib.h>
4365#include <stdarg.h>
4366#include <string.h>
4367#include <float.h>
4368
4369int
4370main ()
4371{
4372
4373 ;
4374 return 0;
4375}
4376_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004377if ac_fn_c_try_compile "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04004378 ac_cv_header_stdc=yes
4379else
jfigusc7e66e32013-05-08 11:32:55 -04004380 ac_cv_header_stdc=no
jfigusa14b5a02013-03-29 12:24:12 -04004381fi
jfigusc7e66e32013-05-08 11:32:55 -04004382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004383
4384if test $ac_cv_header_stdc = yes; then
4385 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04004386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004387/* end confdefs.h. */
4388#include <string.h>
4389
4390_ACEOF
4391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04004392 $EGREP "memchr" >/dev/null 2>&1; then :
4393
jfigusa14b5a02013-03-29 12:24:12 -04004394else
4395 ac_cv_header_stdc=no
4396fi
4397rm -f conftest*
4398
4399fi
4400
4401if test $ac_cv_header_stdc = yes; then
4402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04004403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004404/* end confdefs.h. */
4405#include <stdlib.h>
4406
4407_ACEOF
4408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04004409 $EGREP "free" >/dev/null 2>&1; then :
4410
jfigusa14b5a02013-03-29 12:24:12 -04004411else
4412 ac_cv_header_stdc=no
4413fi
4414rm -f conftest*
4415
4416fi
4417
4418if test $ac_cv_header_stdc = yes; then
4419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jfigusc7e66e32013-05-08 11:32:55 -04004420 if test "$cross_compiling" = yes; then :
jfigusa14b5a02013-03-29 12:24:12 -04004421 :
4422else
jfigusc7e66e32013-05-08 11:32:55 -04004423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004424/* end confdefs.h. */
4425#include <ctype.h>
jfigusc7e66e32013-05-08 11:32:55 -04004426#include <stdlib.h>
jfigusa14b5a02013-03-29 12:24:12 -04004427#if ((' ' & 0x0FF) == 0x020)
4428# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4429# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4430#else
4431# define ISLOWER(c) \
4432 (('a' <= (c) && (c) <= 'i') \
4433 || ('j' <= (c) && (c) <= 'r') \
4434 || ('s' <= (c) && (c) <= 'z'))
4435# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4436#endif
4437
4438#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4439int
4440main ()
4441{
4442 int i;
4443 for (i = 0; i < 256; i++)
4444 if (XOR (islower (i), ISLOWER (i))
4445 || toupper (i) != TOUPPER (i))
jfigusc7e66e32013-05-08 11:32:55 -04004446 return 2;
4447 return 0;
jfigusa14b5a02013-03-29 12:24:12 -04004448}
4449_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004450if ac_fn_c_try_run "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04004451
jfigusc7e66e32013-05-08 11:32:55 -04004452else
4453 ac_cv_header_stdc=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004454fi
jfigusc7e66e32013-05-08 11:32:55 -04004455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4456 conftest.$ac_objext conftest.beam conftest.$ac_ext
4457fi
4458
jfigusa14b5a02013-03-29 12:24:12 -04004459fi
4460fi
jfigusc7e66e32013-05-08 11:32:55 -04004461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4462$as_echo "$ac_cv_header_stdc" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04004463if test $ac_cv_header_stdc = yes; then
4464
jfigusc7e66e32013-05-08 11:32:55 -04004465$as_echo "#define STDC_HEADERS 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04004466
4467fi
4468
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004469# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004470for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4471 inttypes.h stdint.h unistd.h
jfigusc7e66e32013-05-08 11:32:55 -04004472do :
4473 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4474ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4475"
4476if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004477 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004478#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004479_ACEOF
4480
4481fi
4482
4483done
4484
4485
jfigusc7e66e32013-05-08 11:32:55 -04004486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4487$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4488if ${ac_cv_c_bigendian+:} false; then :
4489 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004490else
jfigusc7e66e32013-05-08 11:32:55 -04004491 ac_cv_c_bigendian=unknown
4492 # See if we're dealing with a universal compiler.
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004494/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004495#ifndef __APPLE_CC__
4496 not a universal capable compiler
4497 #endif
4498 typedef int dummy;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004499
jfigusc7e66e32013-05-08 11:32:55 -04004500_ACEOF
4501if ac_fn_c_try_compile "$LINENO"; then :
4502
4503 # Check for potential -arch flags. It is not universal unless
4504 # there are at least two -arch flags with different values.
4505 ac_arch=
4506 ac_prev=
4507 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4508 if test -n "$ac_prev"; then
4509 case $ac_word in
4510 i?86 | x86_64 | ppc | ppc64)
4511 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4512 ac_arch=$ac_word
4513 else
4514 ac_cv_c_bigendian=universal
4515 break
4516 fi
4517 ;;
4518 esac
4519 ac_prev=
4520 elif test "x$ac_word" = "x-arch"; then
4521 ac_prev=arch
4522 fi
4523 done
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004524fi
jfigusc7e66e32013-05-08 11:32:55 -04004525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 if test $ac_cv_c_bigendian = unknown; then
4527 # See if sys/param.h defines the BYTE_ORDER macro.
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004529/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004530#include <sys/types.h>
4531 #include <sys/param.h>
4532
4533int
4534main ()
4535{
4536#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4537 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4538 && LITTLE_ENDIAN)
4539 bogus endian macros
4540 #endif
4541
4542 ;
4543 return 0;
4544}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004545_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004546if ac_fn_c_try_compile "$LINENO"; then :
4547 # It does; now see whether it defined to BIG_ENDIAN or not.
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004549/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004550#include <sys/types.h>
4551 #include <sys/param.h>
4552
4553int
4554main ()
4555{
4556#if BYTE_ORDER != BIG_ENDIAN
4557 not big endian
4558 #endif
4559
4560 ;
4561 return 0;
4562}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004563_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004564if ac_fn_c_try_compile "$LINENO"; then :
4565 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004566else
jfigusc7e66e32013-05-08 11:32:55 -04004567 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004568fi
jfigusc7e66e32013-05-08 11:32:55 -04004569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570fi
4571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 fi
4573 if test $ac_cv_c_bigendian = unknown; then
4574 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004576/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004577#include <limits.h>
4578
4579int
4580main ()
4581{
4582#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4583 bogus endian macros
4584 #endif
4585
4586 ;
4587 return 0;
4588}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004589_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004590if ac_fn_c_try_compile "$LINENO"; then :
4591 # It does; now see whether it defined to _BIG_ENDIAN or not.
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004593/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004594#include <limits.h>
4595
4596int
4597main ()
4598{
4599#ifndef _BIG_ENDIAN
4600 not big endian
4601 #endif
4602
4603 ;
4604 return 0;
4605}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004606_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004607if ac_fn_c_try_compile "$LINENO"; then :
4608 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004609else
jfigusc7e66e32013-05-08 11:32:55 -04004610 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004611fi
jfigusc7e66e32013-05-08 11:32:55 -04004612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613fi
4614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 fi
4616 if test $ac_cv_c_bigendian = unknown; then
4617 # Compile a test program.
4618 if test "$cross_compiling" = yes; then :
4619 # Try to guess by grepping values from an object file.
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004621/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004622short int ascii_mm[] =
4623 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4624 short int ascii_ii[] =
4625 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4626 int use_ascii (int i) {
4627 return ascii_mm[i] + ascii_ii[i];
4628 }
4629 short int ebcdic_ii[] =
4630 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4631 short int ebcdic_mm[] =
4632 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4633 int use_ebcdic (int i) {
4634 return ebcdic_mm[i] + ebcdic_ii[i];
4635 }
4636 extern int foo;
4637
4638int
4639main ()
4640{
4641return use_ascii (foo) == use_ebcdic (foo);
4642 ;
4643 return 0;
4644}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004645_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004646if ac_fn_c_try_compile "$LINENO"; then :
4647 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4648 ac_cv_c_bigendian=yes
4649 fi
4650 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4651 if test "$ac_cv_c_bigendian" = unknown; then
4652 ac_cv_c_bigendian=no
4653 else
4654 # finding both strings is unlikely to happen, but who knows?
4655 ac_cv_c_bigendian=unknown
4656 fi
4657 fi
4658fi
4659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004660else
jfigusc7e66e32013-05-08 11:32:55 -04004661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004662/* end confdefs.h. */
4663$ac_includes_default
4664int
4665main ()
4666{
jfigusc7e66e32013-05-08 11:32:55 -04004667
4668 /* Are we little or big endian? From Harbison&Steele. */
4669 union
4670 {
4671 long int l;
4672 char c[sizeof (long int)];
4673 } u;
4674 u.l = 1;
4675 return u.c[sizeof (long int) - 1] == 1;
4676
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004677 ;
4678 return 0;
4679}
4680_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004681if ac_fn_c_try_run "$LINENO"; then :
4682 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004683else
jfigusc7e66e32013-05-08 11:32:55 -04004684 ac_cv_c_bigendian=yes
4685fi
4686rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4687 conftest.$ac_objext conftest.beam conftest.$ac_ext
4688fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004689
jfigusc7e66e32013-05-08 11:32:55 -04004690 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004691fi
jfigusc7e66e32013-05-08 11:32:55 -04004692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4693$as_echo "$ac_cv_c_bigendian" >&6; }
4694 case $ac_cv_c_bigendian in #(
4695 yes)
4696 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4697;; #(
4698 no)
4699 ;; #(
4700 universal)
4701
4702$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4703
4704 ;; #(
4705 *)
4706 as_fn_error $? "unknown endianness
4707 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4708 esac
4709
4710
4711# Make sure we can run config.sub.
4712$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4713 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4714
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4716$as_echo_n "checking build system type... " >&6; }
4717if ${ac_cv_build+:} false; then :
4718 $as_echo_n "(cached) " >&6
4719else
4720 ac_build_alias=$build_alias
4721test "x$ac_build_alias" = x &&
4722 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4723test "x$ac_build_alias" = x &&
4724 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4725ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4726 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4727
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004728fi
jfigusc7e66e32013-05-08 11:32:55 -04004729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4730$as_echo "$ac_cv_build" >&6; }
4731case $ac_cv_build in
4732*-*-*) ;;
4733*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4734esac
4735build=$ac_cv_build
4736ac_save_IFS=$IFS; IFS='-'
4737set x $ac_cv_build
4738shift
4739build_cpu=$1
4740build_vendor=$2
4741shift; shift
4742# Remember, the first character of IFS is used to create $*,
4743# except with old shells:
4744build_os=$*
4745IFS=$ac_save_IFS
4746case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4747
4748
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4750$as_echo_n "checking host system type... " >&6; }
4751if ${ac_cv_host+:} false; then :
4752 $as_echo_n "(cached) " >&6
4753else
4754 if test "x$host_alias" = x; then
4755 ac_cv_host=$ac_cv_build
4756else
4757 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4758 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4759fi
4760
4761fi
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4763$as_echo "$ac_cv_host" >&6; }
4764case $ac_cv_host in
4765*-*-*) ;;
4766*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4767esac
4768host=$ac_cv_host
4769ac_save_IFS=$IFS; IFS='-'
4770set x $ac_cv_host
4771shift
4772host_cpu=$1
4773host_vendor=$2
4774shift; shift
4775# Remember, the first character of IFS is used to create $*,
4776# except with old shells:
4777host_os=$*
4778IFS=$ac_save_IFS
4779case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4780
4781
4782
4783case $host_cpu in
Idar Tollefsen600ad962017-01-26 11:24:51 +01004784 i*86 | x86_64 )
jfigusc7e66e32013-05-08 11:32:55 -04004785
4786$as_echo "#define CPU_CISC 1" >>confdefs.h
4787
4788
4789$as_echo "#define HAVE_X86 1" >>confdefs.h
Idar Tollefsen600ad962017-01-26 11:24:51 +01004790
4791 ;;
4792 * )
jfigusc7e66e32013-05-08 11:32:55 -04004793
4794$as_echo "#define CPU_RISC 1" >>confdefs.h
jfigusfb838412014-12-04 10:15:47 -05004795
Idar Tollefsen600ad962017-01-26 11:24:51 +01004796 ;;
jfigusc7e66e32013-05-08 11:32:55 -04004797esac
4798
4799case $host_os in
Idar Tollefsen600ad962017-01-26 11:24:51 +01004800 *cygwin*|*mingw* )
4801 EXE=.exe
4802 ;;
4803 * )
4804 EXE=""
4805 ;;
jfigusc7e66e32013-05-08 11:32:55 -04004806esac
4807 # define executable suffix; this is needed for `make clean'
4808
Idar Tollefsen600ad962017-01-26 11:24:51 +01004809supported_cflags=""
4810if test "$EMPTY_CFLAGS" = "no"; then
4811 supported_cflags="$CFLAGS"
4812fi
4813
4814WERROR=""
4815for w in -Werror -errwarn; do
4816 if test "x$WERROR" = "x"; then
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $w" >&5
4818$as_echo_n "checking whether the compiler supports $w... " >&6; }
4819 save_cflags="$CFLAGS"
4820 if test "x$CFLAGS" = "x"; then :
4821 CFLAGS="$w"
4822else
4823 CFLAGS="$CFLAGS $w"
4824fi
4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826/* end confdefs.h. */
4827
4828int
4829main ()
4830{
4831
4832 ;
4833 return 0;
4834}
4835_ACEOF
4836if ac_fn_c_try_compile "$LINENO"; then :
4837 WERROR="$w"
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4839$as_echo "yes" >&6; }
4840else
4841 CFLAGS="$save_cflags"
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843$as_echo "no" >&6; }
4844fi
4845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846 fi
4847done
4848
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC" >&5
4850$as_echo_n "checking whether the compiler supports -fPIC... " >&6; }
4851save_cflags="$CFLAGS"
4852if test "x$CFLAGS" = "x"; then :
4853 CFLAGS="-fPIC"
4854else
4855 CFLAGS="$CFLAGS -fPIC"
4856fi
4857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858/* end confdefs.h. */
4859
4860int
4861main ()
4862{
4863
4864 ;
4865 return 0;
4866}
4867_ACEOF
4868if ac_fn_c_try_compile "$LINENO"; then :
4869 if test "x$supported_cflags" = "x"; then :
4870 supported_cflags="-fPIC"
4871else
4872 supported_cflags="$supported_cflags -fPIC"
4873fi
4874 if test "x$LDFLAGS" = "x"; then :
4875 LDFLAGS="-fPIC"
4876else
4877 LDFLAGS="$LDFLAGS -fPIC"
4878fi
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4880$as_echo "yes" >&6; }
4881else
4882 CFLAGS="$save_cflags"
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884$as_echo "no" >&6; }
4885fi
4886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4887
4888if test "$EMPTY_CFLAGS" = "yes"; then
4889 for f in -Wall -pedantic; do
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $f" >&5
4891$as_echo_n "checking whether the compiler supports $f... " >&6; }
4892 save_cflags="$CFLAGS"
4893 if test "x$CFLAGS" = "x"; then :
4894 CFLAGS="$f"
4895else
4896 CFLAGS="$CFLAGS $f"
4897fi
4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899/* end confdefs.h. */
4900
4901int
4902main ()
4903{
4904
4905 ;
4906 return 0;
4907}
4908_ACEOF
4909if ac_fn_c_try_compile "$LINENO"; then :
4910 if test "x$supported_cflags" = "x"; then :
4911 supported_cflags="$f"
4912else
4913 supported_cflags="$supported_cflags $f"
4914fi
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4916$as_echo "yes" >&6; }
4917else
4918 CFLAGS="$save_cflags"
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4920$as_echo "no" >&6; }
4921fi
4922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923 done
4924
4925 OOPT=""
4926 for f in -O4 -O3; do
4927 if test "x$OOPT" = "x"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $f" >&5
4929$as_echo_n "checking whether the compiler supports $f... " >&6; }
4930 save_cflags="$CFLAGS"
4931 if test "x$CFLAGS" = "x"; then :
4932 CFLAGS="$f"
4933else
4934 CFLAGS="$CFLAGS $f"
4935fi
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937/* end confdefs.h. */
4938
4939int
4940main ()
4941{
4942
4943 ;
4944 return 0;
4945}
4946_ACEOF
4947if ac_fn_c_try_compile "$LINENO"; then :
4948 if test "x$supported_cflags" = "x"; then :
4949 supported_cflags="$f"
4950else
4951 supported_cflags="$supported_cflags $f"
4952fi
4953 OOPT="$f"
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4955$as_echo "yes" >&6; }
4956else
4957 CFLAGS="$save_cflags"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959$as_echo "no" >&6; }
4960fi
4961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 fi
4963 done
4964
4965 for f in -fexpensive-optimizations -funroll-loops; do
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $f" >&5
4967$as_echo_n "checking whether the compiler supports $f... " >&6; }
4968 save_cflags="$CFLAGS"
4969 if test "x$CFLAGS" = "x"; then :
4970 CFLAGS="$f"
4971else
4972 CFLAGS="$CFLAGS $f"
4973fi
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975/* end confdefs.h. */
4976
4977int
4978main ()
4979{
4980
4981 ;
4982 return 0;
4983}
4984_ACEOF
4985if ac_fn_c_try_compile "$LINENO"; then :
4986 if test "x$supported_cflags" = "x"; then :
4987 supported_cflags="$f"
4988else
4989 supported_cflags="$supported_cflags $f"
4990fi
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4992$as_echo "yes" >&6; }
4993else
4994 CFLAGS="$save_cflags"
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4996$as_echo "no" >&6; }
4997fi
4998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4999 done
5000fi
5001
5002for f in -Wno-language-extension-token; do
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $f" >&5
5004$as_echo_n "checking whether the compiler supports $f... " >&6; }
5005 save_cflags="$CFLAGS"
5006 testf=$(echo "$f" | $SED 's|-Wno-\(.*\)|-W\1|g')
5007 if test "x$CFLAGS" = "x"; then :
5008 CFLAGS="$testf"
5009else
5010 CFLAGS="$CFLAGS $testf"
5011fi
5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013/* end confdefs.h. */
5014
5015int
5016main ()
5017{
5018
5019 ;
5020 return 0;
5021}
5022_ACEOF
5023if ac_fn_c_try_compile "$LINENO"; then :
5024 if test "x$supported_cflags" = "x"; then :
5025 supported_cflags="$f"
5026else
5027 supported_cflags="$supported_cflags $f"
5028fi
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5030$as_echo "yes" >&6; }
5031else
5032 CFLAGS="$save_cflags"
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034$as_echo "no" >&6; }
5035fi
5036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037done
5038
5039CFLAGS="$supported_cflags"
jfigusc7e66e32013-05-08 11:32:55 -04005040
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5042$as_echo_n "checking for ANSI C header files... " >&6; }
5043if ${ac_cv_header_stdc+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045else
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047/* end confdefs.h. */
5048#include <stdlib.h>
5049#include <stdarg.h>
5050#include <string.h>
5051#include <float.h>
5052
5053int
5054main ()
5055{
5056
5057 ;
5058 return 0;
5059}
5060_ACEOF
5061if ac_fn_c_try_compile "$LINENO"; then :
5062 ac_cv_header_stdc=yes
5063else
5064 ac_cv_header_stdc=no
5065fi
5066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067
5068if test $ac_cv_header_stdc = yes; then
5069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071/* end confdefs.h. */
5072#include <string.h>
5073
5074_ACEOF
5075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5076 $EGREP "memchr" >/dev/null 2>&1; then :
5077
5078else
5079 ac_cv_header_stdc=no
5080fi
5081rm -f conftest*
5082
5083fi
5084
5085if test $ac_cv_header_stdc = yes; then
5086 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088/* end confdefs.h. */
5089#include <stdlib.h>
5090
5091_ACEOF
5092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5093 $EGREP "free" >/dev/null 2>&1; then :
5094
5095else
5096 ac_cv_header_stdc=no
5097fi
5098rm -f conftest*
5099
5100fi
5101
5102if test $ac_cv_header_stdc = yes; then
5103 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5104 if test "$cross_compiling" = yes; then :
5105 :
5106else
5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108/* end confdefs.h. */
5109#include <ctype.h>
5110#include <stdlib.h>
5111#if ((' ' & 0x0FF) == 0x020)
5112# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5113# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5114#else
5115# define ISLOWER(c) \
5116 (('a' <= (c) && (c) <= 'i') \
5117 || ('j' <= (c) && (c) <= 'r') \
5118 || ('s' <= (c) && (c) <= 'z'))
5119# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5120#endif
5121
5122#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5123int
5124main ()
5125{
5126 int i;
5127 for (i = 0; i < 256; i++)
5128 if (XOR (islower (i), ISLOWER (i))
5129 || toupper (i) != TOUPPER (i))
5130 return 2;
5131 return 0;
5132}
5133_ACEOF
5134if ac_fn_c_try_run "$LINENO"; then :
5135
5136else
5137 ac_cv_header_stdc=no
5138fi
5139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5140 conftest.$ac_objext conftest.beam conftest.$ac_ext
5141fi
5142
5143fi
5144fi
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5146$as_echo "$ac_cv_header_stdc" >&6; }
5147if test $ac_cv_header_stdc = yes; then
5148
5149$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5150
5151fi
5152
Idar Tollefsen600ad962017-01-26 11:24:51 +01005153for ac_header in unistd.h byteswap.h stdint.h sys/uio.h inttypes.h sys/types.h machine/types.h sys/int_types.h
jfigusc7e66e32013-05-08 11:32:55 -04005154do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01005155 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5156ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5157"
5158if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
jfigusc7e66e32013-05-08 11:32:55 -04005159 cat >>confdefs.h <<_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005160#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
jfigusc7e66e32013-05-08 11:32:55 -04005161_ACEOF
5162
5163fi
5164
5165done
5166
5167
5168for ac_header in sys/socket.h netinet/in.h arpa/inet.h
5169do :
5170 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005171ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5172"
jfigusc7e66e32013-05-08 11:32:55 -04005173if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5174 cat >>confdefs.h <<_ACEOF
5175#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5176_ACEOF
5177
5178fi
5179
5180done
5181
5182for ac_header in windows.h
5183do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01005184 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5185"
jfigusc7e66e32013-05-08 11:32:55 -04005186if test "x$ac_cv_header_windows_h" = xyes; then :
5187 cat >>confdefs.h <<_ACEOF
5188#define HAVE_WINDOWS_H 1
5189_ACEOF
5190 for ac_header in winsock2.h
5191do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01005192 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default
5193"
jfigusc7e66e32013-05-08 11:32:55 -04005194if test "x$ac_cv_header_winsock2_h" = xyes; then :
5195 cat >>confdefs.h <<_ACEOF
5196#define HAVE_WINSOCK2_H 1
5197_ACEOF
5198
5199fi
5200
5201done
5202
5203fi
5204
5205done
5206
5207
jfigusc7e66e32013-05-08 11:32:55 -04005208ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
5209if test "x$ac_cv_type_int8_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005210
David McGrewfec49dd2005-09-23 19:34:11 +00005211cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005212#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005213_ACEOF
5214
5215
5216fi
jfigusc7e66e32013-05-08 11:32:55 -04005217ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
5218if test "x$ac_cv_type_uint8_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005219
5220cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005221#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005222_ACEOF
5223
5224
5225fi
jfigusc7e66e32013-05-08 11:32:55 -04005226ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5227if test "x$ac_cv_type_int16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005228
5229cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005230#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005231_ACEOF
5232
5233
5234fi
jfigusc7e66e32013-05-08 11:32:55 -04005235ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5236if test "x$ac_cv_type_uint16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005237
5238cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005239#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005240_ACEOF
5241
5242
5243fi
jfigusc7e66e32013-05-08 11:32:55 -04005244ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5245if test "x$ac_cv_type_int32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005246
5247cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005248#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005249_ACEOF
5250
5251
5252fi
jfigusc7e66e32013-05-08 11:32:55 -04005253ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5254if test "x$ac_cv_type_uint32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005255
5256cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005257#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005258_ACEOF
5259
5260
5261fi
jfigusc7e66e32013-05-08 11:32:55 -04005262ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
5263if test "x$ac_cv_type_uint64_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005264
5265cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005266#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005267_ACEOF
5268
5269
5270fi
5271
jfigusc7e66e32013-05-08 11:32:55 -04005272# The cast to long int works around a bug in the HP C Compiler
5273# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5274# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5275# This bug is HP SR number 8606223364.
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
5277$as_echo_n "checking size of unsigned long... " >&6; }
5278if ${ac_cv_sizeof_unsigned_long+:} false; then :
5279 $as_echo_n "(cached) " >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005280else
jfigusc7e66e32013-05-08 11:32:55 -04005281 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 +00005282
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005283else
5284 if test "$ac_cv_type_unsigned_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04005285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5287as_fn_error 77 "cannot compute sizeof (unsigned long)
5288See \`config.log' for more details" "$LINENO" 5; }
5289 else
5290 ac_cv_sizeof_unsigned_long=0
5291 fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005292fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005293
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005294fi
jfigusc7e66e32013-05-08 11:32:55 -04005295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
5296$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005297
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005298
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005299
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005300cat >>confdefs.h <<_ACEOF
5301#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
5302_ACEOF
5303
David McGrewfec49dd2005-09-23 19:34:11 +00005304
jfigusc7e66e32013-05-08 11:32:55 -04005305# The cast to long int works around a bug in the HP C Compiler
5306# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5307# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5308# This bug is HP SR number 8606223364.
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
5310$as_echo_n "checking size of unsigned long long... " >&6; }
5311if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
5312 $as_echo_n "(cached) " >&6
David McGrewfec49dd2005-09-23 19:34:11 +00005313else
jfigusc7e66e32013-05-08 11:32:55 -04005314 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 +00005315
David McGrewfec49dd2005-09-23 19:34:11 +00005316else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005317 if test "$ac_cv_type_unsigned_long_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04005318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5320as_fn_error 77 "cannot compute sizeof (unsigned long long)
5321See \`config.log' for more details" "$LINENO" 5; }
5322 else
5323 ac_cv_sizeof_unsigned_long_long=0
5324 fi
David McGrewfec49dd2005-09-23 19:34:11 +00005325fi
5326
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005327fi
jfigusc7e66e32013-05-08 11:32:55 -04005328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
5329$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005330
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005331
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005332
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005333cat >>confdefs.h <<_ACEOF
5334#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00005335_ACEOF
5336
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005337
Cullen Jennings235513a2005-09-21 22:51:36 +00005338
jfigusc7e66e32013-05-08 11:32:55 -04005339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5340$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5341if ${ac_cv_c_const+:} false; then :
5342 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005343else
jfigusc7e66e32013-05-08 11:32:55 -04005344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005345/* end confdefs.h. */
5346
5347int
5348main ()
5349{
jfigusc7e66e32013-05-08 11:32:55 -04005350
Cullen Jennings235513a2005-09-21 22:51:36 +00005351#ifndef __cplusplus
jfigusc7e66e32013-05-08 11:32:55 -04005352 /* Ultrix mips cc rejects this sort of thing. */
Cullen Jennings235513a2005-09-21 22:51:36 +00005353 typedef int charset[2];
jfigusc7e66e32013-05-08 11:32:55 -04005354 const charset cs = { 0, 0 };
Cullen Jennings235513a2005-09-21 22:51:36 +00005355 /* SunOS 4.1.1 cc rejects this. */
jfigusc7e66e32013-05-08 11:32:55 -04005356 char const *const *pcpcc;
5357 char **ppc;
Cullen Jennings235513a2005-09-21 22:51:36 +00005358 /* NEC SVR4.0.2 mips cc rejects this. */
5359 struct point {int x, y;};
5360 static struct point const zero = {0,0};
5361 /* AIX XL C 1.02.0.0 rejects this.
5362 It does not let you subtract one const X* pointer from another in
5363 an arm of an if-expression whose if-part is not a constant
5364 expression */
5365 const char *g = "string";
jfigusc7e66e32013-05-08 11:32:55 -04005366 pcpcc = &g + (g ? g-g : 0);
Cullen Jennings235513a2005-09-21 22:51:36 +00005367 /* HPUX 7.0 cc rejects these. */
jfigusc7e66e32013-05-08 11:32:55 -04005368 ++pcpcc;
5369 ppc = (char**) pcpcc;
5370 pcpcc = (char const *const *) ppc;
5371 { /* SCO 3.2v4 cc rejects this sort of thing. */
5372 char tx;
5373 char *t = &tx;
Cullen Jennings235513a2005-09-21 22:51:36 +00005374 char const *s = 0 ? (char *) 0 : (char const *) 0;
5375
5376 *t++ = 0;
jfigusc7e66e32013-05-08 11:32:55 -04005377 if (s) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00005378 }
5379 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5380 int x[] = {25, 17};
5381 const int *foo = &x[0];
5382 ++foo;
5383 }
5384 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5385 typedef const int *iptr;
5386 iptr p = 0;
5387 ++p;
5388 }
jfigusc7e66e32013-05-08 11:32:55 -04005389 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Cullen Jennings235513a2005-09-21 22:51:36 +00005390 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
jfigusc7e66e32013-05-08 11:32:55 -04005391 struct s { int j; const int *ap[3]; } bx;
5392 struct s *b = &bx; b->j = 5;
Cullen Jennings235513a2005-09-21 22:51:36 +00005393 }
5394 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5395 const int foo = 10;
jfigusc7e66e32013-05-08 11:32:55 -04005396 if (!foo) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00005397 }
jfigusc7e66e32013-05-08 11:32:55 -04005398 return !cs[0] && !zero.x;
Cullen Jennings235513a2005-09-21 22:51:36 +00005399#endif
5400
5401 ;
5402 return 0;
5403}
5404_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005405if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005406 ac_cv_c_const=yes
5407else
jfigusc7e66e32013-05-08 11:32:55 -04005408 ac_cv_c_const=no
Cullen Jennings235513a2005-09-21 22:51:36 +00005409fi
jfigusc7e66e32013-05-08 11:32:55 -04005410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005411fi
jfigusc7e66e32013-05-08 11:32:55 -04005412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5413$as_echo "$ac_cv_c_const" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005414if test $ac_cv_c_const = no; then
5415
jfigusc7e66e32013-05-08 11:32:55 -04005416$as_echo "#define const /**/" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005417
5418fi
5419
jfigusc7e66e32013-05-08 11:32:55 -04005420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5421$as_echo_n "checking for inline... " >&6; }
5422if ${ac_cv_c_inline+:} false; then :
5423 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005424else
5425 ac_cv_c_inline=no
5426for ac_kw in inline __inline__ __inline; do
jfigusc7e66e32013-05-08 11:32:55 -04005427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005428/* end confdefs.h. */
5429#ifndef __cplusplus
5430typedef int foo_t;
5431static $ac_kw foo_t static_foo () {return 0; }
5432$ac_kw foo_t foo () {return 0; }
5433#endif
5434
5435_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005436if ac_fn_c_try_compile "$LINENO"; then :
5437 ac_cv_c_inline=$ac_kw
Cullen Jennings235513a2005-09-21 22:51:36 +00005438fi
jfigusc7e66e32013-05-08 11:32:55 -04005439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440 test "$ac_cv_c_inline" != no && break
Cullen Jennings235513a2005-09-21 22:51:36 +00005441done
5442
5443fi
jfigusc7e66e32013-05-08 11:32:55 -04005444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5445$as_echo "$ac_cv_c_inline" >&6; }
David McGrewfec49dd2005-09-23 19:34:11 +00005446
Cullen Jennings235513a2005-09-21 22:51:36 +00005447case $ac_cv_c_inline in
5448 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00005449 *)
5450 case $ac_cv_c_inline in
5451 no) ac_val=;;
5452 *) ac_val=$ac_cv_c_inline;;
5453 esac
5454 cat >>confdefs.h <<_ACEOF
5455#ifndef __cplusplus
5456#define inline $ac_val
5457#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00005458_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00005459 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005460esac
5461
jfigusc7e66e32013-05-08 11:32:55 -04005462ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5463if test "x$ac_cv_type_size_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005464
Cullen Jennings235513a2005-09-21 22:51:36 +00005465else
5466
5467cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005468#define size_t unsigned int
Cullen Jennings235513a2005-09-21 22:51:36 +00005469_ACEOF
5470
5471fi
5472
5473
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00005474for ac_func in socket inet_aton usleep sigaction
jfigusc7e66e32013-05-08 11:32:55 -04005475do :
5476 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5477ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5478if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005479 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005480#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00005481_ACEOF
5482
5483fi
5484done
5485
5486
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005487if test "x$ac_cv_func_socket" = "xno"; then
jfigusc7e66e32013-05-08 11:32:55 -04005488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5489$as_echo_n "checking for socket in -lsocket... " >&6; }
5490if ${ac_cv_lib_socket_socket+:} false; then :
5491 $as_echo_n "(cached) " >&6
David McGrewb67061f2005-09-28 14:23:06 +00005492else
5493 ac_check_lib_save_LIBS=$LIBS
5494LIBS="-lsocket $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04005495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00005496/* end confdefs.h. */
5497
jfigusc7e66e32013-05-08 11:32:55 -04005498/* Override any GCC internal prototype to avoid an error.
5499 Use char because int might match the return type of a GCC
5500 builtin and then its argument prototype would still apply. */
David McGrewb67061f2005-09-28 14:23:06 +00005501#ifdef __cplusplus
5502extern "C"
5503#endif
David McGrewb67061f2005-09-28 14:23:06 +00005504char socket ();
5505int
5506main ()
5507{
jfigusc7e66e32013-05-08 11:32:55 -04005508return socket ();
David McGrewb67061f2005-09-28 14:23:06 +00005509 ;
5510 return 0;
5511}
5512_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005513if ac_fn_c_try_link "$LINENO"; then :
David McGrewb67061f2005-09-28 14:23:06 +00005514 ac_cv_lib_socket_socket=yes
5515else
jfigusc7e66e32013-05-08 11:32:55 -04005516 ac_cv_lib_socket_socket=no
David McGrewb67061f2005-09-28 14:23:06 +00005517fi
jfigusc7e66e32013-05-08 11:32:55 -04005518rm -f core conftest.err conftest.$ac_objext \
5519 conftest$ac_exeext conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00005520LIBS=$ac_check_lib_save_LIBS
5521fi
jfigusc7e66e32013-05-08 11:32:55 -04005522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5523$as_echo "$ac_cv_lib_socket_socket" >&6; }
5524if test "x$ac_cv_lib_socket_socket" = xyes; then :
David McGrewb67061f2005-09-28 14:23:06 +00005525 cat >>confdefs.h <<_ACEOF
5526#define HAVE_LIBSOCKET 1
5527_ACEOF
5528
5529 LIBS="-lsocket $LIBS"
5530
5531fi
5532
jfigusc7e66e32013-05-08 11:32:55 -04005533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
5534$as_echo_n "checking for socket in -lwsock32... " >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005535 SAVELIBS="$LIBS"
5536 LIBS="$LIBS -lwsock32"
jfigusc7e66e32013-05-08 11:32:55 -04005537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005538/* end confdefs.h. */
5539
5540#include <winsock2.h>
5541
5542int
5543main ()
5544{
5545
5546socket(0, 0, 0);
5547
5548 ;
5549 return 0;
5550}
5551_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005552if ac_fn_c_try_link "$LINENO"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005553 ac_cv_func_socket=yes
jfigusc7e66e32013-05-08 11:32:55 -04005554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5555$as_echo "yes" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005556else
jfigusc7e66e32013-05-08 11:32:55 -04005557 LIBS="$SAVELIBS"
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559$as_echo "no" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005560fi
jfigusc7e66e32013-05-08 11:32:55 -04005561rm -f core conftest.err conftest.$ac_objext \
5562 conftest$ac_exeext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005563fi
David McGrewb67061f2005-09-28 14:23:06 +00005564
jfigusc7e66e32013-05-08 11:32:55 -04005565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debugging" >&5
5566$as_echo_n "checking whether to compile in debugging... " >&6; }
5567# Check whether --enable-debug was given.
5568if test "${enable_debug+set}" = set; then :
5569 enableval=$enable_debug;
David McGrewb67061f2005-09-28 14:23:06 +00005570else
5571 enable_debug=yes
jfigusc7e66e32013-05-08 11:32:55 -04005572fi
5573
David McGrewb67061f2005-09-28 14:23:06 +00005574if test "$enable_debug" = "yes"; then
5575
jfigusc7e66e32013-05-08 11:32:55 -04005576$as_echo "#define ENABLE_DEBUGGING 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005577
5578fi
jfigusc7e66e32013-05-08 11:32:55 -04005579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
5580$as_echo "$enable_debug" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005581
jfigusc7e66e32013-05-08 11:32:55 -04005582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ISMAcryp code" >&5
5583$as_echo_n "checking whether to use ISMAcryp code... " >&6; }
5584# Check whether --enable-generic-aesicm was given.
5585if test "${enable_generic_aesicm+set}" = set; then :
5586 enableval=$enable_generic_aesicm;
David McGrewb67061f2005-09-28 14:23:06 +00005587else
5588 enable_generic_aesicm=no
jfigusc7e66e32013-05-08 11:32:55 -04005589fi
5590
David McGrewb67061f2005-09-28 14:23:06 +00005591if test "$enable_generic_aesicm" = "yes"; then
5592
jfigusc7e66e32013-05-08 11:32:55 -04005593$as_echo "#define GENERIC_AESICM 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04005594
jfigusa14b5a02013-03-29 12:24:12 -04005595fi
jfigusc7e66e32013-05-08 11:32:55 -04005596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generic_aesicm" >&5
5597$as_echo "$enable_generic_aesicm" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04005598
Idar Tollefsen600ad962017-01-26 11:24:51 +01005599
5600
5601
5602
5603
5604
5605
5606if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5607 if test -n "$ac_tool_prefix"; then
5608 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5609set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611$as_echo_n "checking for $ac_word... " >&6; }
5612if ${ac_cv_path_PKG_CONFIG+:} false; then :
5613 $as_echo_n "(cached) " >&6
5614else
5615 case $PKG_CONFIG in
5616 [\\/]* | ?:[\\/]*)
5617 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5618 ;;
5619 *)
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621for as_dir in $PATH
5622do
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5627 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 break 2
5630 fi
5631done
5632 done
5633IFS=$as_save_IFS
5634
5635 ;;
5636esac
5637fi
5638PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5639if test -n "$PKG_CONFIG"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5641$as_echo "$PKG_CONFIG" >&6; }
5642else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644$as_echo "no" >&6; }
5645fi
5646
5647
5648fi
5649if test -z "$ac_cv_path_PKG_CONFIG"; then
5650 ac_pt_PKG_CONFIG=$PKG_CONFIG
5651 # Extract the first word of "pkg-config", so it can be a program name with args.
5652set dummy pkg-config; ac_word=$2
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654$as_echo_n "checking for $ac_word... " >&6; }
5655if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657else
5658 case $ac_pt_PKG_CONFIG in
5659 [\\/]* | ?:[\\/]*)
5660 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5661 ;;
5662 *)
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664for as_dir in $PATH
5665do
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5670 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 break 2
5673 fi
5674done
5675 done
5676IFS=$as_save_IFS
5677
5678 ;;
5679esac
5680fi
5681ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5682if test -n "$ac_pt_PKG_CONFIG"; then
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5684$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5685else
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687$as_echo "no" >&6; }
5688fi
5689
5690 if test "x$ac_pt_PKG_CONFIG" = x; then
5691 PKG_CONFIG=""
5692 else
5693 case $cross_compiling:$ac_tool_warned in
5694yes:)
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5697ac_tool_warned=yes ;;
5698esac
5699 PKG_CONFIG=$ac_pt_PKG_CONFIG
5700 fi
5701else
5702 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5703fi
5704
5705fi
5706if test -n "$PKG_CONFIG"; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005707 _pkg_min_version=0.9.0
Idar Tollefsen600ad962017-01-26 11:24:51 +01005708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5709$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5710 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5712$as_echo "yes" >&6; }
5713 else
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715$as_echo "no" >&6; }
5716 PKG_CONFIG=""
5717 fi
5718fi
Pascal Bühlerac872e72017-02-09 14:55:27 +01005719if test "x$PKG_CONFIG" != "x"; then :
5720 PKG_CONFIG="$PKG_CONFIG --static"
5721fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005722
jfigusc7e66e32013-05-08 11:32:55 -04005723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
5724$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
5725# Check whether --enable-openssl was given.
5726if test "${enable_openssl+set}" = set; then :
5727 enableval=$enable_openssl;
5728else
5729 enable_openssl=no
5730fi
jfigusa14b5a02013-03-29 12:24:12 -04005731
jfigus2b486652014-07-24 15:01:41 -04005732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
5733$as_echo "$enable_openssl" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04005734if test "$enable_openssl" = "yes"; then
jfigus038d2cf2015-05-11 14:10:11 -04005735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user specified OpenSSL directory" >&5
5736$as_echo_n "checking for user specified OpenSSL directory... " >&6; }
5737
5738# Check whether --with-openssl-dir was given.
5739if test "${with_openssl_dir+set}" = set; then :
Idar Tollefsen600ad962017-01-26 11:24:51 +01005740 withval=$with_openssl_dir; if test "x$PKG_CONFIG" != "x" && test -f $with_openssl_dir/lib/pkgconfig/libcrypto.pc; then
5741 if test "x$PKG_CONFIG_PATH" = "x"; then
5742 export PKG_CONFIG_PATH="$with_openssl_dir/lib/pkgconfig"
5743 else
5744 export PKG_CONFIG_PATH="$with_openssl_dir/lib/pkgconfig:$PKG_CONFIG_PATH"
5745 fi
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl_dir" >&5
5747$as_echo "$with_openssl_dir" >&6; }
5748 elif test -d $with_openssl_dir/lib; then
5749 CFLAGS="$CFLAGS -I$with_openssl_dir/include"
5750 if test "x$LDFLAGS" = "x"; then
5751 LDFLAGS="-L$with_openssl_dir/lib"
5752 else
5753 LDFLAGS="$LDFLAGS -L$with_openssl_dir/lib"
5754 fi
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl_dir" >&5
5756$as_echo "$with_openssl_dir" >&6; }
5757 else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
5759$as_echo "invalid" >&6; }
5760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5762as_fn_error $? "Invalid OpenSSL location: $with_openssl_dir
5763See \`config.log' for more details" "$LINENO" 5; }
5764 fi
jfigus038d2cf2015-05-11 14:10:11 -04005765else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767$as_echo "no" >&6; }
jfigus038d2cf2015-05-11 14:10:11 -04005768fi
5769
5770
Idar Tollefsen600ad962017-01-26 11:24:51 +01005771 if test "x$PKG_CONFIG" != "x"; then
Cullen Jenningse1de50f2013-05-22 12:27:28 -06005772
Idar Tollefsen600ad962017-01-26 11:24:51 +01005773pkg_failed=no
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
5775$as_echo_n "checking for crypto... " >&6; }
5776
5777if test -n "$crypto_CFLAGS"; then
5778 pkg_cv_crypto_CFLAGS="$crypto_CFLAGS"
5779 elif test -n "$PKG_CONFIG"; then
5780 if test -n "$PKG_CONFIG" && \
Pascal Bühlerac872e72017-02-09 14:55:27 +01005781 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.1\""; } >&5
5782 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.1") 2>&5
Idar Tollefsen600ad962017-01-26 11:24:51 +01005783 ac_status=$?
5784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5785 test $ac_status = 0; }; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005786 pkg_cv_crypto_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 1.0.1" 2>/dev/null`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005787 test "x$?" != "x0" && pkg_failed=yes
5788else
5789 pkg_failed=yes
5790fi
5791 else
5792 pkg_failed=untried
5793fi
5794if test -n "$crypto_LIBS"; then
5795 pkg_cv_crypto_LIBS="$crypto_LIBS"
5796 elif test -n "$PKG_CONFIG"; then
5797 if test -n "$PKG_CONFIG" && \
Pascal Bühlerac872e72017-02-09 14:55:27 +01005798 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.1\""; } >&5
5799 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.1") 2>&5
Idar Tollefsen600ad962017-01-26 11:24:51 +01005800 ac_status=$?
5801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5802 test $ac_status = 0; }; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005803 pkg_cv_crypto_LIBS=`$PKG_CONFIG --libs "libcrypto >= 1.0.1" 2>/dev/null`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005804 test "x$?" != "x0" && pkg_failed=yes
5805else
5806 pkg_failed=yes
5807fi
5808 else
5809 pkg_failed=untried
5810fi
5811
5812
5813
5814if test $pkg_failed = yes; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816$as_echo "no" >&6; }
5817
5818if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5819 _pkg_short_errors_supported=yes
5820else
5821 _pkg_short_errors_supported=no
5822fi
5823 if test $_pkg_short_errors_supported = yes; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005824 crypto_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 1.0.1" 2>&1`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005825 else
Pascal Bühlerac872e72017-02-09 14:55:27 +01005826 crypto_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 1.0.1" 2>&1`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005827 fi
5828 # Put the nasty error message in config.log where it belongs
5829 echo "$crypto_PKG_ERRORS" >&5
5830
Pascal Bühlerac872e72017-02-09 14:55:27 +01005831 as_fn_error $? "Package requirements (libcrypto >= 1.0.1) were not met:
Idar Tollefsen600ad962017-01-26 11:24:51 +01005832
5833$crypto_PKG_ERRORS
5834
5835Consider adjusting the PKG_CONFIG_PATH environment variable if you
5836installed software in a non-standard prefix.
5837
5838Alternatively, you may set the environment variables crypto_CFLAGS
5839and crypto_LIBS to avoid the need to call pkg-config.
5840See the pkg-config man page for more details." "$LINENO" 5
5841elif test $pkg_failed = untried; then
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843$as_echo "no" >&6; }
5844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5846as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5847is in your PATH or set the PKG_CONFIG environment variable to the full
5848path to pkg-config.
5849
5850Alternatively, you may set the environment variables crypto_CFLAGS
5851and crypto_LIBS to avoid the need to call pkg-config.
5852See the pkg-config man page for more details.
5853
5854To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5855See \`config.log' for more details" "$LINENO" 5; }
5856else
5857 crypto_CFLAGS=$pkg_cv_crypto_CFLAGS
5858 crypto_LIBS=$pkg_cv_crypto_LIBS
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5860$as_echo "yes" >&6; }
5861 CFLAGS="$CFLAGS $crypto_CFLAGS"
5862 LIBS="$crypto_LIBS $LIBS"
5863fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005864 else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
jfigusb5fad5f2015-02-26 12:25:08 -05005866$as_echo_n "checking for dlopen in -ldl... " >&6; }
5867if ${ac_cv_lib_dl_dlopen+:} false; then :
5868 $as_echo_n "(cached) " >&6
5869else
5870 ac_check_lib_save_LIBS=$LIBS
5871LIBS="-ldl $LIBS"
5872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873/* end confdefs.h. */
5874
5875/* Override any GCC internal prototype to avoid an error.
5876 Use char because int might match the return type of a GCC
5877 builtin and then its argument prototype would still apply. */
5878#ifdef __cplusplus
5879extern "C"
5880#endif
5881char dlopen ();
5882int
5883main ()
5884{
5885return dlopen ();
5886 ;
5887 return 0;
5888}
5889_ACEOF
5890if ac_fn_c_try_link "$LINENO"; then :
5891 ac_cv_lib_dl_dlopen=yes
5892else
5893 ac_cv_lib_dl_dlopen=no
5894fi
5895rm -f core conftest.err conftest.$ac_objext \
5896 conftest$ac_exeext conftest.$ac_ext
5897LIBS=$ac_check_lib_save_LIBS
5898fi
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5900$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5901if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5902 cat >>confdefs.h <<_ACEOF
5903#define HAVE_LIBDL 1
5904_ACEOF
5905
5906 LIBS="-ldl $LIBS"
5907
5908else
jfigus13fd6942015-03-02 09:09:13 -05005909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libdl" >&5
5910$as_echo "$as_me: WARNING: can't find libdl" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005911fi
5912
Idar Tollefsen600ad962017-01-26 11:24:51 +01005913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
jfigusb5fad5f2015-02-26 12:25:08 -05005914$as_echo_n "checking for inflate in -lz... " >&6; }
5915if ${ac_cv_lib_z_inflate+:} false; then :
5916 $as_echo_n "(cached) " >&6
5917else
5918 ac_check_lib_save_LIBS=$LIBS
5919LIBS="-lz $LIBS"
5920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921/* end confdefs.h. */
5922
5923/* Override any GCC internal prototype to avoid an error.
5924 Use char because int might match the return type of a GCC
5925 builtin and then its argument prototype would still apply. */
5926#ifdef __cplusplus
5927extern "C"
5928#endif
5929char inflate ();
5930int
5931main ()
5932{
5933return inflate ();
5934 ;
5935 return 0;
5936}
5937_ACEOF
5938if ac_fn_c_try_link "$LINENO"; then :
5939 ac_cv_lib_z_inflate=yes
5940else
5941 ac_cv_lib_z_inflate=no
5942fi
5943rm -f core conftest.err conftest.$ac_objext \
5944 conftest$ac_exeext conftest.$ac_ext
5945LIBS=$ac_check_lib_save_LIBS
5946fi
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
5948$as_echo "$ac_cv_lib_z_inflate" >&6; }
5949if test "x$ac_cv_lib_z_inflate" = xyes; then :
5950 cat >>confdefs.h <<_ACEOF
5951#define HAVE_LIBZ 1
5952_ACEOF
5953
5954 LIBS="-lz $LIBS"
5955
5956else
jfigus13fd6942015-03-02 09:09:13 -05005957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libz" >&5
5958$as_echo "$as_me: WARNING: can't find libz" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005959fi
5960
Idar Tollefsen600ad962017-01-26 11:24:51 +01005961 fi
5962
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_EncryptInit" >&5
5964$as_echo_n "checking for library containing EVP_EncryptInit... " >&6; }
5965if ${ac_cv_search_EVP_EncryptInit+:} false; then :
jfigusc7e66e32013-05-08 11:32:55 -04005966 $as_echo_n "(cached) " >&6
5967else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005968 ac_func_search_save_LIBS=$LIBS
jfigusc7e66e32013-05-08 11:32:55 -04005969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970/* end confdefs.h. */
5971
5972/* Override any GCC internal prototype to avoid an error.
5973 Use char because int might match the return type of a GCC
5974 builtin and then its argument prototype would still apply. */
5975#ifdef __cplusplus
5976extern "C"
5977#endif
5978char EVP_EncryptInit ();
5979int
5980main ()
5981{
5982return EVP_EncryptInit ();
5983 ;
5984 return 0;
5985}
5986_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005987for ac_lib in '' crypto; do
5988 if test -z "$ac_lib"; then
5989 ac_res="none required"
5990 else
5991 ac_res=-l$ac_lib
5992 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5993 fi
5994 if ac_fn_c_try_link "$LINENO"; then :
5995 ac_cv_search_EVP_EncryptInit=$ac_res
jfigusc7e66e32013-05-08 11:32:55 -04005996fi
5997rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01005998 conftest$ac_exeext
5999 if ${ac_cv_search_EVP_EncryptInit+:} false; then :
6000 break
jfigusc7e66e32013-05-08 11:32:55 -04006001fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01006002done
6003if ${ac_cv_search_EVP_EncryptInit+:} false; then :
jfigusc7e66e32013-05-08 11:32:55 -04006004
Idar Tollefsen600ad962017-01-26 11:24:51 +01006005else
6006 ac_cv_search_EVP_EncryptInit=no
6007fi
6008rm conftest.$ac_ext
6009LIBS=$ac_func_search_save_LIBS
6010fi
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_EncryptInit" >&5
6012$as_echo "$ac_cv_search_EVP_EncryptInit" >&6; }
6013ac_res=$ac_cv_search_EVP_EncryptInit
6014if test "$ac_res" != no; then :
6015 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04006016
6017else
6018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Pascal Bühlerac872e72017-02-09 14:55:27 +01006020as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
jfigus5b22e372013-05-09 09:23:26 -04006021See \`config.log' for more details" "$LINENO" 5; }
6022fi
6023
Idar Tollefsen600ad962017-01-26 11:24:51 +01006024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_aes_128_ctr" >&5
6025$as_echo_n "checking for library containing EVP_aes_128_ctr... " >&6; }
6026if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
jfigus5b22e372013-05-09 09:23:26 -04006027 $as_echo_n "(cached) " >&6
6028else
Idar Tollefsen600ad962017-01-26 11:24:51 +01006029 ac_func_search_save_LIBS=$LIBS
jfigus5b22e372013-05-09 09:23:26 -04006030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031/* end confdefs.h. */
6032
6033/* Override any GCC internal prototype to avoid an error.
6034 Use char because int might match the return type of a GCC
6035 builtin and then its argument prototype would still apply. */
6036#ifdef __cplusplus
6037extern "C"
6038#endif
6039char EVP_aes_128_ctr ();
6040int
6041main ()
6042{
6043return EVP_aes_128_ctr ();
6044 ;
6045 return 0;
6046}
6047_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01006048for ac_lib in '' crypto; do
6049 if test -z "$ac_lib"; then
6050 ac_res="none required"
6051 else
6052 ac_res=-l$ac_lib
6053 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6054 fi
6055 if ac_fn_c_try_link "$LINENO"; then :
6056 ac_cv_search_EVP_aes_128_ctr=$ac_res
jfigus5b22e372013-05-09 09:23:26 -04006057fi
6058rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01006059 conftest$ac_exeext
6060 if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
6061 break
jfigus5b22e372013-05-09 09:23:26 -04006062fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01006063done
6064if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
jfigus5b22e372013-05-09 09:23:26 -04006065
Idar Tollefsen600ad962017-01-26 11:24:51 +01006066else
6067 ac_cv_search_EVP_aes_128_ctr=no
6068fi
6069rm conftest.$ac_ext
6070LIBS=$ac_func_search_save_LIBS
6071fi
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_aes_128_ctr" >&5
6073$as_echo "$ac_cv_search_EVP_aes_128_ctr" >&6; }
6074ac_res=$ac_cv_search_EVP_aes_128_ctr
6075if test "$ac_res" != no; then :
6076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus5b22e372013-05-09 09:23:26 -04006077
6078else
6079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Pascal Bühlerac872e72017-02-09 14:55:27 +01006081as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
jfigusc7e66e32013-05-08 11:32:55 -04006082See \`config.log' for more details" "$LINENO" 5; }
6083fi
6084
Idar Tollefsen600ad962017-01-26 11:24:51 +01006085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_aes_128_gcm" >&5
6086$as_echo_n "checking for library containing EVP_aes_128_gcm... " >&6; }
6087if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
jfigus7882dd92013-08-02 16:08:23 -04006088 $as_echo_n "(cached) " >&6
6089else
Idar Tollefsen600ad962017-01-26 11:24:51 +01006090 ac_func_search_save_LIBS=$LIBS
jfigus7882dd92013-08-02 16:08:23 -04006091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092/* end confdefs.h. */
6093
6094/* Override any GCC internal prototype to avoid an error.
6095 Use char because int might match the return type of a GCC
6096 builtin and then its argument prototype would still apply. */
6097#ifdef __cplusplus
6098extern "C"
6099#endif
6100char EVP_aes_128_gcm ();
6101int
6102main ()
6103{
6104return EVP_aes_128_gcm ();
6105 ;
6106 return 0;
6107}
6108_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01006109for ac_lib in '' crypto; do
6110 if test -z "$ac_lib"; then
6111 ac_res="none required"
6112 else
6113 ac_res=-l$ac_lib
6114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6115 fi
6116 if ac_fn_c_try_link "$LINENO"; then :
6117 ac_cv_search_EVP_aes_128_gcm=$ac_res
jfigus7882dd92013-08-02 16:08:23 -04006118fi
6119rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01006120 conftest$ac_exeext
6121 if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
6122 break
jfigus7882dd92013-08-02 16:08:23 -04006123fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01006124done
6125if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
jfigus7882dd92013-08-02 16:08:23 -04006126
Idar Tollefsen600ad962017-01-26 11:24:51 +01006127else
6128 ac_cv_search_EVP_aes_128_gcm=no
6129fi
6130rm conftest.$ac_ext
6131LIBS=$ac_func_search_save_LIBS
6132fi
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_aes_128_gcm" >&5
6134$as_echo "$ac_cv_search_EVP_aes_128_gcm" >&6; }
6135ac_res=$ac_cv_search_EVP_aes_128_gcm
6136if test "$ac_res" != no; then :
6137 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus7882dd92013-08-02 16:08:23 -04006138
6139else
6140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Pascal Bühlerac872e72017-02-09 14:55:27 +01006142as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
jfigus7882dd92013-08-02 16:08:23 -04006143See \`config.log' for more details" "$LINENO" 5; }
6144fi
6145
jfigusc7e66e32013-05-08 11:32:55 -04006146
Idar Tollefsen600ad962017-01-26 11:24:51 +01006147
jfigusc7e66e32013-05-08 11:32:55 -04006148$as_echo "#define OPENSSL 1" >>confdefs.h
6149
jfigus7882dd92013-08-02 16:08:23 -04006150 AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
jfigusc7e66e32013-05-08 11:32:55 -04006151 HMAC_OBJS=crypto/hash/hmac_ossl.o
6152 USE_OPENSSL=1
6153
jfigus038d2cf2015-05-11 14:10:11 -04006154
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL KDF algorithm" >&5
6156$as_echo_n "checking whether to leverage OpenSSL KDF algorithm... " >&6; }
6157 # Check whether --enable-openssl-kdf was given.
6158if test "${enable_openssl_kdf+set}" = set; then :
6159 enableval=$enable_openssl_kdf;
6160else
6161 enable_openssl_kdf=no
6162fi
6163
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl_kdf" >&5
6165$as_echo "$enable_openssl_kdf" >&6; }
6166 if test "$enable_openssl_kdf" = "yes"; then
Idar Tollefsen600ad962017-01-26 11:24:51 +01006167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kdf_srtp" >&5
6168$as_echo_n "checking for library containing kdf_srtp... " >&6; }
6169if ${ac_cv_search_kdf_srtp+:} false; then :
jfigus038d2cf2015-05-11 14:10:11 -04006170 $as_echo_n "(cached) " >&6
6171else
Idar Tollefsen600ad962017-01-26 11:24:51 +01006172 ac_func_search_save_LIBS=$LIBS
jfigus038d2cf2015-05-11 14:10:11 -04006173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174/* end confdefs.h. */
6175
6176/* Override any GCC internal prototype to avoid an error.
6177 Use char because int might match the return type of a GCC
6178 builtin and then its argument prototype would still apply. */
6179#ifdef __cplusplus
6180extern "C"
6181#endif
6182char kdf_srtp ();
6183int
6184main ()
6185{
6186return kdf_srtp ();
6187 ;
6188 return 0;
6189}
6190_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01006191for ac_lib in '' crypto; do
6192 if test -z "$ac_lib"; then
6193 ac_res="none required"
6194 else
6195 ac_res=-l$ac_lib
6196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6197 fi
6198 if ac_fn_c_try_link "$LINENO"; then :
6199 ac_cv_search_kdf_srtp=$ac_res
jfigus038d2cf2015-05-11 14:10:11 -04006200fi
6201rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01006202 conftest$ac_exeext
6203 if ${ac_cv_search_kdf_srtp+:} false; then :
6204 break
jfigus038d2cf2015-05-11 14:10:11 -04006205fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01006206done
6207if ${ac_cv_search_kdf_srtp+:} false; then :
jfigus038d2cf2015-05-11 14:10:11 -04006208
Idar Tollefsen600ad962017-01-26 11:24:51 +01006209else
6210 ac_cv_search_kdf_srtp=no
6211fi
6212rm conftest.$ac_ext
6213LIBS=$ac_func_search_save_LIBS
6214fi
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kdf_srtp" >&5
6216$as_echo "$ac_cv_search_kdf_srtp" >&6; }
6217ac_res=$ac_cv_search_kdf_srtp
6218if test "$ac_res" != no; then :
6219 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus038d2cf2015-05-11 14:10:11 -04006220
6221else
6222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6224as_fn_error $? "can't find openssl KDF lib
6225See \`config.log' for more details" "$LINENO" 5; }
6226fi
6227
6228
6229$as_echo "#define OPENSSL_KDF 1" >>confdefs.h
6230
6231 fi
jfigusc7e66e32013-05-08 11:32:55 -04006232else
jfigusa3127b82014-11-19 14:46:52 -05006233 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o"
jfigusc7e66e32013-05-08 11:32:55 -04006234 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
6235fi
6236
6237
6238
Bernardo Torres79e38ae2014-10-10 05:29:36 -03006239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
6240$as_echo_n "checking for pcap_create in -lpcap... " >&6; }
6241if ${ac_cv_lib_pcap_pcap_create+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243else
6244 ac_check_lib_save_LIBS=$LIBS
6245LIBS="-lpcap $LIBS"
6246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247/* end confdefs.h. */
6248
6249/* Override any GCC internal prototype to avoid an error.
6250 Use char because int might match the return type of a GCC
6251 builtin and then its argument prototype would still apply. */
6252#ifdef __cplusplus
6253extern "C"
6254#endif
6255char pcap_create ();
6256int
6257main ()
6258{
6259return pcap_create ();
6260 ;
6261 return 0;
6262}
6263_ACEOF
6264if ac_fn_c_try_link "$LINENO"; then :
6265 ac_cv_lib_pcap_pcap_create=yes
6266else
6267 ac_cv_lib_pcap_pcap_create=no
6268fi
6269rm -f core conftest.err conftest.$ac_objext \
6270 conftest$ac_exeext conftest.$ac_ext
6271LIBS=$ac_check_lib_save_LIBS
6272fi
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
6274$as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
6275if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
Idar Tollefsen600ad962017-01-26 11:24:51 +01006276 LIBS="-lpcap $LIBS"
Bernardo Torres79e38ae2014-10-10 05:29:36 -03006277
Bernardo Torresb3c51422014-10-14 12:40:09 -03006278$as_echo "#define HAVE_PCAP 1" >>confdefs.h
6279
Idar Tollefsen600ad962017-01-26 11:24:51 +01006280 HAVE_PCAP=1
Bernardo Torres79e38ae2014-10-10 05:29:36 -03006281
6282fi
6283
Bernardo Torres79e38ae2014-10-10 05:29:36 -03006284
jfigusc7e66e32013-05-08 11:32:55 -04006285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use stdout for error reporting" >&5
6286$as_echo_n "checking whether to use stdout for error reporting... " >&6; }
6287# Check whether --enable-stdout was given.
6288if test "${enable_stdout+set}" = set; then :
6289 enableval=$enable_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00006290else
jfigus97a80f42014-11-04 14:15:40 -05006291 enable_stdout=no
jfigusc7e66e32013-05-08 11:32:55 -04006292fi
6293
David McGrewb67061f2005-09-28 14:23:06 +00006294if test "$enable_stdout" = "yes"; then
6295
jfigusc7e66e32013-05-08 11:32:55 -04006296$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00006297
6298fi
jfigusc7e66e32013-05-08 11:32:55 -04006299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdout" >&5
6300$as_echo "$enable_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00006301
jfigusc7e66e32013-05-08 11:32:55 -04006302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use /dev/console for error reporting" >&5
6303$as_echo_n "checking whether to use /dev/console for error reporting... " >&6; }
6304# Check whether --enable-console was given.
6305if test "${enable_console+set}" = set; then :
6306 enableval=$enable_console;
David McGrewb67061f2005-09-28 14:23:06 +00006307else
6308 enable_console=no
jfigusc7e66e32013-05-08 11:32:55 -04006309fi
6310
David McGrewb67061f2005-09-28 14:23:06 +00006311if test "$enable_console" = "yes"; then
6312
jfigusc7e66e32013-05-08 11:32:55 -04006313$as_echo "#define USE_ERR_REPORTING_FILE 1" >>confdefs.h
David McGrewb67061f2005-09-28 14:23:06 +00006314
6315
jfigusc7e66e32013-05-08 11:32:55 -04006316$as_echo "#define ERR_REPORTING_FILE \"/dev/console\"" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00006317
6318fi
jfigusc7e66e32013-05-08 11:32:55 -04006319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_console" >&5
6320$as_echo "$enable_console" >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00006321
jfigusc7e66e32013-05-08 11:32:55 -04006322ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00006323
6324
Idar Tollefsen600ad962017-01-26 11:24:51 +01006325ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile libsrtp2.pc"
jfigusc7e66e32013-05-08 11:32:55 -04006326
Cullen Jennings235513a2005-09-21 22:51:36 +00006327cat >confcache <<\_ACEOF
6328# This file is a shell script that caches the results of configure
6329# tests run on this system so they can be shared between configure
6330# scripts and configure runs, see configure's option --config-cache.
6331# It is not useful on other systems. If it contains results you don't
6332# want to keep, you may remove or edit it.
6333#
6334# config.status only pays attention to the cache file if you give it
6335# the --recheck option to rerun configure.
6336#
6337# `ac_cv_env_foo' variables (set or unset) will be overridden when
6338# loading this file, other *unset* `ac_cv_foo' will be assigned the
6339# following values.
6340
6341_ACEOF
6342
6343# The following way of writing the cache mishandles newlines in values,
6344# but we know of no workaround that is simple, portable, and efficient.
jfigusc7e66e32013-05-08 11:32:55 -04006345# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00006346# Ultrix sh set writes to stderr and can't be redirected directly,
6347# and sets the high bit in the cache file unless we assign to the vars.
jfigusc7e66e32013-05-08 11:32:55 -04006348(
6349 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6350 eval ac_val=\$$ac_var
6351 case $ac_val in #(
6352 *${as_nl}*)
6353 case $ac_var in #(
6354 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6355$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6356 esac
6357 case $ac_var in #(
6358 _ | IFS | as_nl) ;; #(
6359 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6360 *) { eval $ac_var=; unset $ac_var;} ;;
6361 esac ;;
6362 esac
6363 done
6364
Cullen Jennings235513a2005-09-21 22:51:36 +00006365 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04006366 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6367 *${as_nl}ac_space=\ *)
6368 # `set' does not quote correctly, so add quotes: double-quote
6369 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00006370 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00006371 "s/'/'\\\\''/g;
6372 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusc7e66e32013-05-08 11:32:55 -04006373 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00006374 *)
6375 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusc7e66e32013-05-08 11:32:55 -04006376 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00006377 ;;
jfigusc7e66e32013-05-08 11:32:55 -04006378 esac |
6379 sort
6380) |
Cullen Jennings235513a2005-09-21 22:51:36 +00006381 sed '
jfigusc7e66e32013-05-08 11:32:55 -04006382 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00006383 t clear
jfigusc7e66e32013-05-08 11:32:55 -04006384 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00006385 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6386 t end
jfigusc7e66e32013-05-08 11:32:55 -04006387 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6388 :end' >>confcache
6389if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6390 if test -w "$cache_file"; then
6391 if test "x$cache_file" != "x/dev/null"; then
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6393$as_echo "$as_me: updating cache $cache_file" >&6;}
6394 if test ! -f "$cache_file" || test -h "$cache_file"; then
6395 cat confcache >"$cache_file"
6396 else
6397 case $cache_file in #(
6398 */* | ?:*)
6399 mv -f confcache "$cache_file"$$ &&
6400 mv -f "$cache_file"$$ "$cache_file" ;; #(
6401 *)
6402 mv -f confcache "$cache_file" ;;
6403 esac
6404 fi
6405 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006406 else
jfigusc7e66e32013-05-08 11:32:55 -04006407 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6408$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006409 fi
6410fi
6411rm -f confcache
6412
6413test "x$prefix" = xNONE && prefix=$ac_default_prefix
6414# Let make expand exec_prefix.
6415test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6416
Cullen Jennings235513a2005-09-21 22:51:36 +00006417DEFS=-DHAVE_CONFIG_H
6418
6419ac_libobjs=
6420ac_ltlibobjs=
jfigusc7e66e32013-05-08 11:32:55 -04006421U=
Cullen Jennings235513a2005-09-21 22:51:36 +00006422for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6423 # 1. Remove the extension, and $U if already installed.
jfigusc7e66e32013-05-08 11:32:55 -04006424 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6425 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6426 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6427 # will be set to the directory where LIBOBJS objects are built.
6428 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6429 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00006430done
6431LIBOBJS=$ac_libobjs
6432
6433LTLIBOBJS=$ac_ltlibobjs
6434
6435
6436
jfigusc7e66e32013-05-08 11:32:55 -04006437
6438: "${CONFIG_STATUS=./config.status}"
6439ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00006440ac_clean_files_save=$ac_clean_files
6441ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusc7e66e32013-05-08 11:32:55 -04006442{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6443$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6444as_write_fail=0
6445cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006446#! $SHELL
6447# Generated by $as_me.
6448# Run this file to recreate the current configuration.
6449# Compiler output produced by configure, useful for debugging
6450# configure, is in config.log if it exists.
6451
6452debug=false
6453ac_cs_recheck=false
6454ac_cs_silent=false
jfigusc7e66e32013-05-08 11:32:55 -04006455
Cullen Jennings235513a2005-09-21 22:51:36 +00006456SHELL=\${CONFIG_SHELL-$SHELL}
jfigusc7e66e32013-05-08 11:32:55 -04006457export SHELL
6458_ASEOF
6459cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6460## -------------------- ##
6461## M4sh Initialization. ##
6462## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00006463
jfigusc7e66e32013-05-08 11:32:55 -04006464# Be more Bourne compatible
6465DUALCASE=1; export DUALCASE # for MKS sh
6466if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00006467 emulate sh
6468 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -04006469 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00006470 # is contrary to our usage. Disable this feature.
6471 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -04006472 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00006473else
jfigusc7e66e32013-05-08 11:32:55 -04006474 case `(set -o) 2>/dev/null` in #(
6475 *posix*) :
6476 set -o posix ;; #(
6477 *) :
6478 ;;
6479esac
Cullen Jennings235513a2005-09-21 22:51:36 +00006480fi
6481
6482
jfigusc7e66e32013-05-08 11:32:55 -04006483as_nl='
6484'
6485export as_nl
6486# Printing a long string crashes Solaris 7 /usr/bin/printf.
6487as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6488as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6489as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6490# Prefer a ksh shell builtin over an external printf program on Solaris,
6491# but without wasting forks for bash or zsh.
6492if test -z "$BASH_VERSION$ZSH_VERSION" \
6493 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6494 as_echo='print -r --'
6495 as_echo_n='print -rn --'
6496elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6497 as_echo='printf %s\n'
6498 as_echo_n='printf %s'
6499else
6500 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6501 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6502 as_echo_n='/usr/ucb/echo -n'
6503 else
6504 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6505 as_echo_n_body='eval
6506 arg=$1;
6507 case $arg in #(
6508 *"$as_nl"*)
6509 expr "X$arg" : "X\\(.*\\)$as_nl";
6510 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6511 esac;
6512 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6513 '
6514 export as_echo_n_body
6515 as_echo_n='sh -c $as_echo_n_body as_echo'
6516 fi
6517 export as_echo_body
6518 as_echo='sh -c $as_echo_body as_echo'
6519fi
6520
6521# The user is always right.
6522if test "${PATH_SEPARATOR+set}" != set; then
6523 PATH_SEPARATOR=:
6524 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6525 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6526 PATH_SEPARATOR=';'
6527 }
6528fi
6529
6530
6531# IFS
6532# We need space, tab and new line, in precisely that order. Quoting is
6533# there to prevent editors from complaining about space-tab.
6534# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6535# splitting by setting IFS to empty value.)
6536IFS=" "" $as_nl"
6537
6538# Find who we are. Look in the path if we contain no directory separator.
6539as_myself=
6540case $0 in #((
6541 *[\\/]* ) as_myself=$0 ;;
6542 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543for as_dir in $PATH
6544do
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
6547 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6548 done
6549IFS=$as_save_IFS
6550
6551 ;;
6552esac
6553# We did not find ourselves, most probably we were run as `sh COMMAND'
6554# in which case we are not to be found in the path.
6555if test "x$as_myself" = x; then
6556 as_myself=$0
6557fi
6558if test ! -f "$as_myself"; then
6559 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6560 exit 1
6561fi
6562
6563# Unset variables that we do not need and which cause bugs (e.g. in
6564# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6565# suppresses any "Segmentation fault" message there. '((' could
6566# trigger a bug in pdksh 5.2.14.
6567for as_var in BASH_ENV ENV MAIL MAILPATH
6568do eval test x\${$as_var+set} = xset \
6569 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6570done
Cullen Jennings235513a2005-09-21 22:51:36 +00006571PS1='$ '
6572PS2='> '
6573PS4='+ '
6574
6575# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -04006576LC_ALL=C
6577export LC_ALL
6578LANGUAGE=C
6579export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -04006580
jfigusc7e66e32013-05-08 11:32:55 -04006581# CDPATH.
6582(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6583
6584
6585# as_fn_error STATUS ERROR [LINENO LOG_FD]
6586# ----------------------------------------
6587# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6588# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6589# script with STATUS, using 1 if that was 0.
6590as_fn_error ()
6591{
6592 as_status=$1; test $as_status -eq 0 && as_status=1
6593 if test "$4"; then
6594 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6595 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6596 fi
6597 $as_echo "$as_me: error: $2" >&2
6598 as_fn_exit $as_status
6599} # as_fn_error
6600
6601
6602# as_fn_set_status STATUS
6603# -----------------------
6604# Set $? to STATUS, without forking.
6605as_fn_set_status ()
6606{
6607 return $1
6608} # as_fn_set_status
6609
6610# as_fn_exit STATUS
6611# -----------------
6612# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6613as_fn_exit ()
6614{
6615 set +e
6616 as_fn_set_status $1
6617 exit $1
6618} # as_fn_exit
6619
6620# as_fn_unset VAR
6621# ---------------
6622# Portably unset VAR.
6623as_fn_unset ()
6624{
6625 { eval $1=; unset $1;}
6626}
6627as_unset=as_fn_unset
6628# as_fn_append VAR VALUE
6629# ----------------------
6630# Append the text in VALUE to the end of the definition contained in VAR. Take
6631# advantage of any shell optimizations that allow amortized linear growth over
6632# repeated appends, instead of the typical quadratic growth present in naive
6633# implementations.
6634if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6635 eval 'as_fn_append ()
6636 {
6637 eval $1+=\$2
6638 }'
6639else
6640 as_fn_append ()
6641 {
6642 eval $1=\$$1\$2
6643 }
6644fi # as_fn_append
6645
6646# as_fn_arith ARG...
6647# ------------------
6648# Perform arithmetic evaluation on the ARGs, and store the result in the
6649# global $as_val. Take advantage of shells that can avoid forks. The arguments
6650# must be portable across $(()) and expr.
6651if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6652 eval 'as_fn_arith ()
6653 {
6654 as_val=$(( $* ))
6655 }'
6656else
6657 as_fn_arith ()
6658 {
6659 as_val=`expr "$@" || test $? -eq 1`
6660 }
6661fi # as_fn_arith
6662
6663
6664if expr a : '\(a\)' >/dev/null 2>&1 &&
6665 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006666 as_expr=expr
6667else
6668 as_expr=false
6669fi
6670
jfigusc7e66e32013-05-08 11:32:55 -04006671if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006672 as_basename=basename
6673else
6674 as_basename=false
6675fi
6676
jfigusc7e66e32013-05-08 11:32:55 -04006677if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6678 as_dirname=dirname
6679else
6680 as_dirname=false
6681fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006682
jfigusc7e66e32013-05-08 11:32:55 -04006683as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006684$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6685 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006686 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6687$as_echo X/"$0" |
6688 sed '/^.*\/\([^/][^/]*\)\/*$/{
6689 s//\1/
6690 q
6691 }
6692 /^X\/\(\/\/\)$/{
6693 s//\1/
6694 q
6695 }
6696 /^X\/\(\/\).*/{
6697 s//\1/
6698 q
6699 }
6700 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00006701
Cullen Jennings235513a2005-09-21 22:51:36 +00006702# Avoid depending upon Character Ranges.
6703as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6704as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6705as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6706as_cr_digits='0123456789'
6707as_cr_alnum=$as_cr_Letters$as_cr_digits
6708
jfigusc7e66e32013-05-08 11:32:55 -04006709ECHO_C= ECHO_N= ECHO_T=
6710case `echo -n x` in #(((((
6711-n*)
6712 case `echo 'xy\c'` in
6713 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6714 xy) ECHO_C='\c';;
6715 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6716 ECHO_T=' ';;
6717 esac;;
6718*)
6719 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00006720esac
6721
Cullen Jennings235513a2005-09-21 22:51:36 +00006722rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -04006723if test -d conf$$.dir; then
6724 rm -f conf$$.dir/conf$$.file
6725else
6726 rm -f conf$$.dir
6727 mkdir conf$$.dir 2>/dev/null
6728fi
6729if (echo >conf$$.file) 2>/dev/null; then
6730 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006731 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -04006732 # ... but there are two gotchas:
6733 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6734 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6735 # In both cases, we have to default to `cp -pR'.
6736 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6737 as_ln_s='cp -pR'
6738 elif ln conf$$.file conf$$ 2>/dev/null; then
6739 as_ln_s=ln
6740 else
6741 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006742 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006743else
jfigusc7e66e32013-05-08 11:32:55 -04006744 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006745fi
jfigusc7e66e32013-05-08 11:32:55 -04006746rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6747rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00006748
jfigusc7e66e32013-05-08 11:32:55 -04006749
6750# as_fn_mkdir_p
6751# -------------
6752# Create "$as_dir" as a directory, including parents if necessary.
6753as_fn_mkdir_p ()
6754{
6755
6756 case $as_dir in #(
6757 -*) as_dir=./$as_dir;;
6758 esac
6759 test -d "$as_dir" || eval $as_mkdir_p || {
6760 as_dirs=
6761 while :; do
6762 case $as_dir in #(
6763 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6764 *) as_qdir=$as_dir;;
6765 esac
6766 as_dirs="'$as_qdir' $as_dirs"
6767 as_dir=`$as_dirname -- "$as_dir" ||
6768$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6769 X"$as_dir" : 'X\(//\)[^/]' \| \
6770 X"$as_dir" : 'X\(//\)$' \| \
6771 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6772$as_echo X"$as_dir" |
6773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6774 s//\1/
6775 q
6776 }
6777 /^X\(\/\/\)[^/].*/{
6778 s//\1/
6779 q
6780 }
6781 /^X\(\/\/\)$/{
6782 s//\1/
6783 q
6784 }
6785 /^X\(\/\).*/{
6786 s//\1/
6787 q
6788 }
6789 s/.*/./; q'`
6790 test -d "$as_dir" && break
6791 done
6792 test -z "$as_dirs" || eval "mkdir $as_dirs"
6793 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6794
6795
6796} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006797if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -04006798 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00006799else
David McGrewfec49dd2005-09-23 19:34:11 +00006800 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00006801 as_mkdir_p=false
6802fi
6803
jfigusc7e66e32013-05-08 11:32:55 -04006804
6805# as_fn_executable_p FILE
6806# -----------------------
6807# Test if FILE is an executable regular file.
6808as_fn_executable_p ()
6809{
6810 test -f "$1" && test -x "$1"
6811} # as_fn_executable_p
6812as_test_x='test -x'
6813as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006814
6815# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00006816as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006817
6818# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00006819as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006820
6821
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006822exec 6>&1
jfigusc7e66e32013-05-08 11:32:55 -04006823## ----------------------------------- ##
6824## Main body of $CONFIG_STATUS script. ##
6825## ----------------------------------- ##
6826_ASEOF
6827test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006828
jfigusc7e66e32013-05-08 11:32:55 -04006829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6830# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00006831# report actual input values of CONFIG_FILES etc. instead of their
jfigusc7e66e32013-05-08 11:32:55 -04006832# values after options handling.
6833ac_log="
Pascal Bühler34acba62017-01-19 10:57:30 +01006834This file was extended by libsrtp2 $as_me 2.1.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04006835generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00006836
6837 CONFIG_FILES = $CONFIG_FILES
6838 CONFIG_HEADERS = $CONFIG_HEADERS
6839 CONFIG_LINKS = $CONFIG_LINKS
6840 CONFIG_COMMANDS = $CONFIG_COMMANDS
6841 $ $0 $@
6842
jfigusc7e66e32013-05-08 11:32:55 -04006843on `(hostname || uname -n) 2>/dev/null | sed 1q`
6844"
6845
Cullen Jennings235513a2005-09-21 22:51:36 +00006846_ACEOF
6847
jfigusc7e66e32013-05-08 11:32:55 -04006848case $ac_config_files in *"
6849"*) set x $ac_config_files; shift; ac_config_files=$*;;
6850esac
6851
6852case $ac_config_headers in *"
6853"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6854esac
6855
6856
6857cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006858# Files that config.status was made for.
jfigusc7e66e32013-05-08 11:32:55 -04006859config_files="$ac_config_files"
6860config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00006861
jfigusc7e66e32013-05-08 11:32:55 -04006862_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006863
jfigusc7e66e32013-05-08 11:32:55 -04006864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006865ac_cs_usage="\
jfigusc7e66e32013-05-08 11:32:55 -04006866\`$as_me' instantiates files and other configuration actions
6867from templates according to the current configuration. Unless the files
6868and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00006869
jfigusc7e66e32013-05-08 11:32:55 -04006870Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00006871
6872 -h, --help print this help, then exit
jfigusc7e66e32013-05-08 11:32:55 -04006873 -V, --version print version number and configuration settings, then exit
6874 --config print configuration, then exit
6875 -q, --quiet, --silent
6876 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00006877 -d, --debug don't remove temporary files
6878 --recheck update $as_me by reconfiguring in the same conditions
jfigusc7e66e32013-05-08 11:32:55 -04006879 --file=FILE[:TEMPLATE]
6880 instantiate the configuration file FILE
6881 --header=FILE[:TEMPLATE]
6882 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00006883
6884Configuration files:
6885$config_files
6886
6887Configuration headers:
6888$config_headers
6889
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02006890Report bugs to <https://github.com/cisco/libsrtp/issues>."
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006891
jfigusc7e66e32013-05-08 11:32:55 -04006892_ACEOF
6893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6894ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00006895ac_cs_version="\\
Pascal Bühler34acba62017-01-19 10:57:30 +01006896libsrtp2 config.status 2.1.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04006897configured by $0, generated by GNU Autoconf 2.69,
6898 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00006899
jfigusc7e66e32013-05-08 11:32:55 -04006900Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00006901This config.status script is free software; the Free Software Foundation
6902gives unlimited permission to copy, distribute and modify it."
jfigusc7e66e32013-05-08 11:32:55 -04006903
6904ac_pwd='$ac_pwd'
6905srcdir='$srcdir'
6906INSTALL='$INSTALL'
6907test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00006908_ACEOF
6909
jfigusc7e66e32013-05-08 11:32:55 -04006910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6911# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00006912ac_need_defaults=:
6913while test $# != 0
6914do
6915 case $1 in
jfigusc7e66e32013-05-08 11:32:55 -04006916 --*=?*)
6917 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6918 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00006919 ac_shift=:
6920 ;;
jfigusc7e66e32013-05-08 11:32:55 -04006921 --*=)
6922 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6923 ac_optarg=
6924 ac_shift=:
6925 ;;
6926 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00006927 ac_option=$1
6928 ac_optarg=$2
6929 ac_shift=shift
6930 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006931 esac
6932
6933 case $ac_option in
6934 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00006935 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6936 ac_cs_recheck=: ;;
jfigusc7e66e32013-05-08 11:32:55 -04006937 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6938 $as_echo "$ac_cs_version"; exit ;;
6939 --config | --confi | --conf | --con | --co | --c )
6940 $as_echo "$ac_cs_config"; exit ;;
6941 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00006942 debug=: ;;
6943 --file | --fil | --fi | --f )
6944 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04006945 case $ac_optarg in
6946 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6947 '') as_fn_error $? "missing file argument" ;;
6948 esac
6949 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006950 ac_need_defaults=false;;
6951 --header | --heade | --head | --hea )
6952 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04006953 case $ac_optarg in
6954 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6955 esac
6956 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006957 ac_need_defaults=false;;
jfigusc7e66e32013-05-08 11:32:55 -04006958 --he | --h)
6959 # Conflict between --help and --header
6960 as_fn_error $? "ambiguous option: \`$1'
6961Try \`$0 --help' for more information.";;
6962 --help | --hel | -h )
6963 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006964 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6965 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6966 ac_cs_silent=: ;;
6967
6968 # This is an error.
jfigusc7e66e32013-05-08 11:32:55 -04006969 -*) as_fn_error $? "unrecognized option: \`$1'
6970Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006971
jfigusc7e66e32013-05-08 11:32:55 -04006972 *) as_fn_append ac_config_targets " $1"
6973 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006974
6975 esac
6976 shift
6977done
6978
6979ac_configure_extra_args=
6980
6981if $ac_cs_silent; then
6982 exec 6>/dev/null
6983 ac_configure_extra_args="$ac_configure_extra_args --silent"
6984fi
6985
6986_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006987cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006988if \$ac_cs_recheck; then
jfigusc7e66e32013-05-08 11:32:55 -04006989 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6990 shift
6991 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6992 CONFIG_SHELL='$SHELL'
6993 export CONFIG_SHELL
6994 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00006995fi
6996
6997_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6999exec 5>>config.log
7000{
7001 echo
7002 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7003## Running $as_me. ##
7004_ASBOX
7005 $as_echo "$ac_log"
7006} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00007007
jfigusc7e66e32013-05-08 11:32:55 -04007008_ACEOF
7009cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7010_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00007011
jfigusc7e66e32013-05-08 11:32:55 -04007012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007013
jfigusc7e66e32013-05-08 11:32:55 -04007014# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00007015for ac_config_target in $ac_config_targets
7016do
jfigusc7e66e32013-05-08 11:32:55 -04007017 case $ac_config_target in
7018 "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
7019 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7020 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
7021 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
Idar Tollefsen600ad962017-01-26 11:24:51 +01007022 "libsrtp2.pc") CONFIG_FILES="$CONFIG_FILES libsrtp2.pc" ;;
jfigusc7e66e32013-05-08 11:32:55 -04007023
7024 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007025 esac
7026done
7027
jfigusc7e66e32013-05-08 11:32:55 -04007028
Cullen Jennings235513a2005-09-21 22:51:36 +00007029# If the user did not use the arguments to specify the items to instantiate,
7030# then the envvar interface is used. Set only those that are not.
7031# We use the long form for the default assignment because of an extremely
7032# bizarre bug on SunOS 4.1.3.
7033if $ac_need_defaults; then
7034 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7035 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7036fi
7037
7038# Have a temporary directory for convenience. Make it in the build tree
jfigusc7e66e32013-05-08 11:32:55 -04007039# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00007040# creating and moving files from /tmp can sometimes cause problems.
jfigusc7e66e32013-05-08 11:32:55 -04007041# Hook for its removal unless debugging.
7042# Note that there is a small window in which the directory will not be cleaned:
7043# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00007044$debug ||
7045{
jfigusc7e66e32013-05-08 11:32:55 -04007046 tmp= ac_tmp=
7047 trap 'exit_status=$?
7048 : "${ac_tmp:=$tmp}"
7049 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7050' 0
7051 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00007052}
Cullen Jennings235513a2005-09-21 22:51:36 +00007053# Create a (secure) tmp directory for tmp files.
7054
7055{
jfigusc7e66e32013-05-08 11:32:55 -04007056 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7057 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00007058} ||
7059{
jfigusc7e66e32013-05-08 11:32:55 -04007060 tmp=./conf$$-$RANDOM
7061 (umask 077 && mkdir "$tmp")
7062} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7063ac_tmp=$tmp
7064
7065# Set up the scripts for CONFIG_FILES section.
7066# No need to generate them if there are no CONFIG_FILES.
7067# This happens for instance with `./config.status config.h'.
7068if test -n "$CONFIG_FILES"; then
7069
7070
7071ac_cr=`echo X | tr X '\015'`
7072# On cygwin, bash can eat \r inside `` if the user requested igncr.
7073# But we know of no other shell where ac_cr would be empty at this
7074# point, so we can use a bashism as a fallback.
7075if test "x$ac_cr" = x; then
7076 eval ac_cr=\$\'\\r\'
7077fi
7078ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7079if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7080 ac_cs_awk_cr='\\r'
7081else
7082 ac_cs_awk_cr=$ac_cr
7083fi
7084
7085echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7086_ACEOF
7087
7088
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007089{
jfigusc7e66e32013-05-08 11:32:55 -04007090 echo "cat >conf$$subs.awk <<_ACEOF" &&
7091 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7092 echo "_ACEOF"
7093} >conf$$subs.sh ||
7094 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7095ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7096ac_delim='%!_!# '
7097for ac_last_try in false false false false false :; do
7098 . ./conf$$subs.sh ||
7099 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7100
7101 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7102 if test $ac_delim_n = $ac_delim_num; then
7103 break
7104 elif $ac_last_try; then
7105 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7106 else
7107 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7108 fi
7109done
7110rm -f conf$$subs.sh
7111
7112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7113cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7114_ACEOF
7115sed -n '
7116h
7117s/^/S["/; s/!.*/"]=/
7118p
7119g
7120s/^[^!]*!//
7121:repl
7122t repl
7123s/'"$ac_delim"'$//
7124t delim
7125:nl
7126h
7127s/\(.\{148\}\)..*/\1/
7128t more1
7129s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7130p
7131n
7132b repl
7133:more1
7134s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7135p
7136g
7137s/.\{148\}//
7138t nl
7139:delim
7140h
7141s/\(.\{148\}\)..*/\1/
7142t more2
7143s/["\\]/\\&/g; s/^/"/; s/$/"/
7144p
7145b
7146:more2
7147s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7148p
7149g
7150s/.\{148\}//
7151t delim
7152' <conf$$subs.awk | sed '
7153/^[^""]/{
7154 N
7155 s/\n//
7156}
7157' >>$CONFIG_STATUS || ac_write_fail=1
7158rm -f conf$$subs.awk
7159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7160_ACAWK
7161cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7162 for (key in S) S_is_set[key] = 1
7163 FS = ""
7164
7165}
7166{
7167 line = $ 0
7168 nfields = split(line, field, "@")
7169 substed = 0
7170 len = length(field[1])
7171 for (i = 2; i < nfields; i++) {
7172 key = field[i]
7173 keylen = length(key)
7174 if (S_is_set[key]) {
7175 value = S[key]
7176 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7177 len += length(value) + length(field[++i])
7178 substed = 1
7179 } else
7180 len += 1 + keylen
7181 }
7182
7183 print line
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007184}
jfigusa14b5a02013-03-29 12:24:12 -04007185
jfigusc7e66e32013-05-08 11:32:55 -04007186_ACAWK
7187_ACEOF
7188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7189if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7190 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7191else
7192 cat
7193fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7194 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
jfigusa14b5a02013-03-29 12:24:12 -04007195_ACEOF
7196
jfigusc7e66e32013-05-08 11:32:55 -04007197# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7198# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7199# trailing colons and then remove the whole line if VPATH becomes empty
7200# (actually we leave an empty line to preserve line numbers).
7201if test "x$srcdir" = x.; then
7202 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7203h
7204s///
7205s/^/:/
7206s/[ ]*$/:/
7207s/:\$(srcdir):/:/g
7208s/:\${srcdir}:/:/g
7209s/:@srcdir@:/:/g
7210s/^:*//
7211s/:*$//
7212x
7213s/\(=[ ]*\).*/\1/
7214G
7215s/\n//
7216s/^[^=]*=[ ]*$//
7217}'
7218fi
jfigusa14b5a02013-03-29 12:24:12 -04007219
jfigusc7e66e32013-05-08 11:32:55 -04007220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007221fi # test -n "$CONFIG_FILES"
7222
jfigusc7e66e32013-05-08 11:32:55 -04007223# Set up the scripts for CONFIG_HEADERS section.
7224# No need to generate them if there are no CONFIG_HEADERS.
7225# This happens for instance with `./config.status Makefile'.
7226if test -n "$CONFIG_HEADERS"; then
7227cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7228BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00007229_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007230
7231# Transform confdefs.h into an awk script `defines.awk', embedded as
7232# here-document in config.status, that substitutes the proper values into
7233# config.h.in to produce config.h.
7234
7235# Create a delimiter string that does not exist in confdefs.h, to ease
7236# handling of long lines.
7237ac_delim='%!_!# '
7238for ac_last_try in false false :; do
7239 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7240 if test -z "$ac_tt"; then
7241 break
7242 elif $ac_last_try; then
7243 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7244 else
7245 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7246 fi
7247done
7248
7249# For the awk script, D is an array of macro values keyed by name,
7250# likewise P contains macro parameters if any. Preserve backslash
7251# newline sequences.
7252
7253ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7254sed -n '
7255s/.\{148\}/&'"$ac_delim"'/g
7256t rset
7257:rset
7258s/^[ ]*#[ ]*define[ ][ ]*/ /
7259t def
7260d
7261:def
7262s/\\$//
7263t bsnl
7264s/["\\]/\\&/g
7265s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7266D["\1"]=" \3"/p
7267s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7268d
7269:bsnl
7270s/["\\]/\\&/g
7271s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7272D["\1"]=" \3\\\\\\n"\\/p
7273t cont
7274s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7275t cont
7276d
7277:cont
7278n
7279s/.\{148\}/&'"$ac_delim"'/g
7280t clear
7281:clear
7282s/\\$//
7283t bsnlc
7284s/["\\]/\\&/g; s/^/"/; s/$/"/p
7285d
7286:bsnlc
7287s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7288b cont
7289' <confdefs.h | sed '
7290s/'"$ac_delim"'/"\\\
7291"/g' >>$CONFIG_STATUS || ac_write_fail=1
7292
7293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7294 for (key in D) D_is_set[key] = 1
7295 FS = ""
7296}
7297/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7298 line = \$ 0
7299 split(line, arg, " ")
7300 if (arg[1] == "#") {
7301 defundef = arg[2]
7302 mac1 = arg[3]
7303 } else {
7304 defundef = substr(arg[1], 2)
7305 mac1 = arg[2]
7306 }
7307 split(mac1, mac2, "(") #)
7308 macro = mac2[1]
7309 prefix = substr(line, 1, index(line, defundef) - 1)
7310 if (D_is_set[macro]) {
7311 # Preserve the white space surrounding the "#".
7312 print prefix "define", macro P[macro] D[macro]
7313 next
7314 } else {
7315 # Replace #undef with comments. This is necessary, for example,
7316 # in the case of _POSIX_SOURCE, which is predefined and required
7317 # on some systems where configure will not decide to define it.
7318 if (defundef == "undef") {
7319 print "/*", prefix defundef, macro, "*/"
7320 next
7321 }
7322 }
7323}
7324{ print }
7325_ACAWK
7326_ACEOF
7327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7328 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7329fi # test -n "$CONFIG_HEADERS"
7330
7331
7332eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7333shift
7334for ac_tag
7335do
7336 case $ac_tag in
7337 :[FHLC]) ac_mode=$ac_tag; continue;;
7338 esac
7339 case $ac_mode$ac_tag in
7340 :[FHL]*:*);;
7341 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7342 :[FH]-) ac_tag=-:-;;
7343 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7344 esac
7345 ac_save_IFS=$IFS
7346 IFS=:
7347 set x $ac_tag
7348 IFS=$ac_save_IFS
7349 shift
7350 ac_file=$1
7351 shift
7352
7353 case $ac_mode in
7354 :L) ac_source=$1;;
7355 :[FH])
7356 ac_file_inputs=
7357 for ac_f
7358 do
7359 case $ac_f in
7360 -) ac_f="$ac_tmp/stdin";;
7361 *) # Look for the file first in the build tree, then in the source tree
7362 # (if the path is not absolute). The absolute path cannot be DOS-style,
7363 # because $ac_f cannot contain `:'.
7364 test -f "$ac_f" ||
7365 case $ac_f in
7366 [\\/$]*) false;;
7367 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7368 esac ||
7369 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7370 esac
7371 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7372 as_fn_append ac_file_inputs " '$ac_f'"
7373 done
7374
7375 # Let's still pretend it is `configure' which instantiates (i.e., don't
7376 # use $as_me), people would be surprised to read:
7377 # /* config.h. Generated by config.status. */
7378 configure_input='Generated from '`
7379 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7380 `' by configure.'
7381 if test x"$ac_file" != x-; then
7382 configure_input="$ac_file. $configure_input"
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7384$as_echo "$as_me: creating $ac_file" >&6;}
7385 fi
7386 # Neutralize special characters interpreted by sed in replacement strings.
7387 case $configure_input in #(
7388 *\&* | *\|* | *\\* )
7389 ac_sed_conf_input=`$as_echo "$configure_input" |
7390 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7391 *) ac_sed_conf_input=$configure_input;;
7392 esac
7393
7394 case $ac_tag in
7395 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7396 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7397 esac
7398 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007399 esac
7400
jfigusc7e66e32013-05-08 11:32:55 -04007401 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00007402$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00007403 X"$ac_file" : 'X\(//\)[^/]' \| \
7404 X"$ac_file" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04007405 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7406$as_echo X"$ac_file" |
7407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7408 s//\1/
7409 q
7410 }
7411 /^X\(\/\/\)[^/].*/{
7412 s//\1/
7413 q
7414 }
7415 /^X\(\/\/\)$/{
7416 s//\1/
7417 q
7418 }
7419 /^X\(\/\).*/{
7420 s//\1/
7421 q
7422 }
7423 s/.*/./; q'`
7424 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00007425 ac_builddir=.
7426
jfigusc7e66e32013-05-08 11:32:55 -04007427case "$ac_dir" in
7428.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7429*)
7430 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7431 # A ".." for each directory in $ac_dir_suffix.
7432 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7433 case $ac_top_builddir_sub in
7434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7436 esac ;;
7437esac
7438ac_abs_top_builddir=$ac_pwd
7439ac_abs_builddir=$ac_pwd$ac_dir_suffix
7440# for backward compatibility:
7441ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00007442
7443case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04007444 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00007445 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04007446 ac_top_srcdir=$ac_top_builddir_sub
7447 ac_abs_top_srcdir=$ac_pwd ;;
7448 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00007449 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04007450 ac_top_srcdir=$srcdir
7451 ac_abs_top_srcdir=$srcdir ;;
7452 *) # Relative name.
7453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7454 ac_top_srcdir=$ac_top_build_prefix$srcdir
7455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007456esac
jfigusc7e66e32013-05-08 11:32:55 -04007457ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00007458
Cullen Jennings235513a2005-09-21 22:51:36 +00007459
jfigusc7e66e32013-05-08 11:32:55 -04007460 case $ac_mode in
7461 :F)
7462 #
7463 # CONFIG_FILE
7464 #
Cullen Jennings235513a2005-09-21 22:51:36 +00007465
David McGrewb67061f2005-09-28 14:23:06 +00007466 case $INSTALL in
7467 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusc7e66e32013-05-08 11:32:55 -04007468 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00007469 esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007470_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007471
7472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7473# If the template does not know about datarootdir, expand it.
7474# FIXME: This hack should be removed a few years after 2.60.
7475ac_datarootdir_hack=; ac_datarootdir_seen=
7476ac_sed_dataroot='
7477/datarootdir/ {
7478 p
7479 q
7480}
7481/@datadir@/p
7482/@docdir@/p
7483/@infodir@/p
7484/@localedir@/p
7485/@mandir@/p'
7486case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7487*datarootdir*) ac_datarootdir_seen=yes;;
7488*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7490$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7491_ACEOF
7492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7493 ac_datarootdir_hack='
7494 s&@datadir@&$datadir&g
7495 s&@docdir@&$docdir&g
7496 s&@infodir@&$infodir&g
7497 s&@localedir@&$localedir&g
7498 s&@mandir@&$mandir&g
7499 s&\\\${datarootdir}&$datarootdir&g' ;;
7500esac
7501_ACEOF
7502
7503# Neutralize VPATH when `$srcdir' = `.'.
7504# Shell code in configure.ac might set extrasub.
7505# FIXME: do we really want to maintain this feature?
7506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7507ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00007508$extrasub
7509_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007511:t
7512/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusc7e66e32013-05-08 11:32:55 -04007513s|@configure_input@|$ac_sed_conf_input|;t t
7514s&@top_builddir@&$ac_top_builddir_sub&;t t
7515s&@top_build_prefix@&$ac_top_build_prefix&;t t
7516s&@srcdir@&$ac_srcdir&;t t
7517s&@abs_srcdir@&$ac_abs_srcdir&;t t
7518s&@top_srcdir@&$ac_top_srcdir&;t t
7519s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7520s&@builddir@&$ac_builddir&;t t
7521s&@abs_builddir@&$ac_abs_builddir&;t t
7522s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7523s&@INSTALL@&$ac_INSTALL&;t t
7524$ac_datarootdir_hack
7525"
7526eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7527 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00007528
jfigusc7e66e32013-05-08 11:32:55 -04007529test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7530 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7531 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7532 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7534which seems to be undefined. Please make sure it is defined" >&5
7535$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7536which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00007537
jfigusc7e66e32013-05-08 11:32:55 -04007538 rm -f "$ac_tmp/stdin"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007539 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04007540 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7541 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7542 esac \
7543 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7544 ;;
7545 :H)
7546 #
7547 # CONFIG_HEADER
7548 #
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007549 if test x"$ac_file" != x-; then
jfigusc7e66e32013-05-08 11:32:55 -04007550 {
7551 $as_echo "/* $configure_input */" \
7552 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7553 } >"$ac_tmp/config.h" \
7554 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7555 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7557$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007558 else
jfigusc7e66e32013-05-08 11:32:55 -04007559 rm -f "$ac_file"
7560 mv "$ac_tmp/config.h" "$ac_file" \
7561 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007562 fi
7563 else
jfigusc7e66e32013-05-08 11:32:55 -04007564 $as_echo "/* $configure_input */" \
7565 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7566 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007567 fi
jfigusc7e66e32013-05-08 11:32:55 -04007568 ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007569
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007570
jfigusc7e66e32013-05-08 11:32:55 -04007571 esac
7572
7573done # for ac_tag
7574
7575
7576as_fn_exit 0
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007577_ACEOF
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007578ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04007579
jfigusc7e66e32013-05-08 11:32:55 -04007580test $ac_write_fail = 0 ||
7581 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7582
Cullen Jennings235513a2005-09-21 22:51:36 +00007583
7584# configure is writing to config.log, and then calls config.status.
7585# config.status does its own redirection, appending to config.log.
7586# Unfortunately, on DOS this fails, as config.log is still kept open
7587# by configure, so config.status won't be able to write to it; its
7588# output is simply discarded. So we exec the FD to /dev/null,
7589# effectively closing config.log, so it can be properly (re)opened and
7590# appended to by config.status. When coming back to configure, we
7591# need to make the FD available again.
7592if test "$no_create" != yes; then
7593 ac_cs_success=:
7594 ac_config_status_args=
7595 test "$silent" = yes &&
7596 ac_config_status_args="$ac_config_status_args --quiet"
7597 exec 5>/dev/null
7598 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7599 exec 5>>config.log
7600 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7601 # would make configure fail if this is the last instruction.
jfigusc7e66e32013-05-08 11:32:55 -04007602 $ac_cs_success || as_fn_exit 1
7603fi
7604if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7606$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00007607fi
7608
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00007609
7610# This is needed when building outside the source dir.
jfigusc7e66e32013-05-08 11:32:55 -04007611as_dir=crypto/cipher; as_fn_mkdir_p
7612as_dir=crypto/hash; as_fn_mkdir_p
7613as_dir=crypto/kernel; as_fn_mkdir_p
7614as_dir=crypto/math; as_fn_mkdir_p
7615as_dir=crypto/replay; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007616as_dir=crypto/test; as_fn_mkdir_p
7617as_dir=doc; as_fn_mkdir_p
7618as_dir=srtp; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007619as_dir=test; as_fn_mkdir_p