blob: 65ccff35a212c2ca0e050cf6ed448b514300b047 [file] [log] [blame]
Cullen Jennings235513a2005-09-21 22:51:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +02003# Generated by GNU Autoconf 2.69 for libsrtp2 2.3.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 Buhlerfd5b3b22018-05-15 21:27:42 +0200583PACKAGE_VERSION='2.3.0-pre'
584PACKAGE_STRING='libsrtp2 2.3.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
Martin Meszaros96d0b9a2017-11-01 12:31:37 +0100626PCAP_LIB
Bernardo Torresb3c51422014-10-14 12:40:09 -0300627HAVE_PCAP
jfigusc7e66e32013-05-08 11:32:55 -0400628HMAC_OBJS
jfigusc7e66e32013-05-08 11:32:55 -0400629AES_ICM_OBJS
Pascal Buhlera946b3f2018-08-23 21:41:31 +0200630nss_LIBS
631nss_CFLAGS
Richard Barnes47fe22d2018-05-16 21:53:53 -0500632CRYPTO_LIBDIR
Richard Barnes3e5efb02018-05-16 19:27:40 -0500633USE_EXTERNAL_CRYPTO
Idar Tollefsen600ad962017-01-26 11:24:51 +0100634crypto_LIBS
635crypto_CFLAGS
636PKG_CONFIG_LIBDIR
637PKG_CONFIG_PATH
638PKG_CONFIG
jfigusc7e66e32013-05-08 11:32:55 -0400639EXE
640host_os
641host_vendor
642host_cpu
643host
644build_os
645build_vendor
646build_cpu
647build
648EGREP
649GREP
Idar Tollefsen600ad962017-01-26 11:24:51 +0100650SED
jfigusc7e66e32013-05-08 11:32:55 -0400651INSTALL_DATA
652INSTALL_SCRIPT
653INSTALL_PROGRAM
jfigus1ce6a742015-04-06 08:54:01 -0400654RANLIB
Idar Tollefsencb771f72017-05-03 13:20:08 +0200655ac_ct_AR
656AR
657EXTRA_CFLAGS
Pascal Buhlerac97f3e2019-06-26 13:54:43 +0200658ac_ct_CXX
659CXXFLAGS
660CXX
Idar Tollefsencb771f72017-05-03 13:20:08 +0200661CPP
jfigusc7e66e32013-05-08 11:32:55 -0400662OBJEXT
663EXEEXT
664ac_ct_CC
665CPPFLAGS
666LDFLAGS
667CFLAGS
668CC
jfigusc7e66e32013-05-08 11:32:55 -0400669target_alias
670host_alias
671build_alias
672LIBS
673ECHO_T
674ECHO_N
675ECHO_C
676DEFS
677mandir
678localedir
679libdir
680psdir
681pdfdir
682dvidir
683htmldir
684infodir
685docdir
686oldincludedir
687includedir
Pascal Buhlerac97f3e2019-06-26 13:54:43 +0200688runstatedir
jfigusc7e66e32013-05-08 11:32:55 -0400689localstatedir
690sharedstatedir
691sysconfdir
692datadir
693datarootdir
694libexecdir
695sbindir
696bindir
697program_transform_name
698prefix
699exec_prefix
700PACKAGE_URL
701PACKAGE_BUGREPORT
702PACKAGE_STRING
703PACKAGE_VERSION
704PACKAGE_TARNAME
705PACKAGE_NAME
706PATH_SEPARATOR
707SHELL'
Cullen Jennings235513a2005-09-21 22:51:36 +0000708ac_subst_files=''
jfigusc7e66e32013-05-08 11:32:55 -0400709ac_user_opts='
710enable_option_checking
Pascal Bühler75918862017-02-19 18:33:50 +0100711enable_debug_logging
jfigusc7e66e32013-05-08 11:32:55 -0400712enable_openssl
Richard Barnes12872092018-05-16 16:31:16 -0700713enable_nss
jfigus038d2cf2015-05-11 14:10:11 -0400714with_openssl_dir
715enable_openssl_kdf
Richard Barnes12872092018-05-16 16:31:16 -0700716with_nss_dir
Pascal Bühler75918862017-02-19 18:33:50 +0100717enable_log_stdout
718with_log_file
jfigusc7e66e32013-05-08 11:32:55 -0400719'
720 ac_precious_vars='build_alias
721host_alias
722target_alias
723CC
724CFLAGS
725LDFLAGS
726LIBS
727CPPFLAGS
Idar Tollefsen600ad962017-01-26 11:24:51 +0100728CPP
Pascal Buhlerac97f3e2019-06-26 13:54:43 +0200729CXX
730CXXFLAGS
731CCC
Idar Tollefsencb771f72017-05-03 13:20:08 +0200732EXTRA_CFLAGS
Idar Tollefsen600ad962017-01-26 11:24:51 +0100733PKG_CONFIG
734PKG_CONFIG_PATH
735PKG_CONFIG_LIBDIR
736crypto_CFLAGS
Pascal Buhlera946b3f2018-08-23 21:41:31 +0200737crypto_LIBS
738nss_CFLAGS
739nss_LIBS'
jfigusc7e66e32013-05-08 11:32:55 -0400740
Cullen Jennings235513a2005-09-21 22:51:36 +0000741
742# Initialize some variables set by options.
743ac_init_help=
744ac_init_version=false
jfigusc7e66e32013-05-08 11:32:55 -0400745ac_unrecognized_opts=
746ac_unrecognized_sep=
Cullen Jennings235513a2005-09-21 22:51:36 +0000747# The variables have the same names as the options, with
748# dashes changed to underlines.
749cache_file=/dev/null
750exec_prefix=NONE
751no_create=
752no_recursion=
753prefix=NONE
754program_prefix=NONE
755program_suffix=NONE
756program_transform_name=s,x,x,
757silent=
758site=
759srcdir=
760verbose=
761x_includes=NONE
762x_libraries=NONE
763
764# Installation directory options.
765# These are left unexpanded so users can "make install exec_prefix=/foo"
766# and all the variables that are supposed to be based on exec_prefix
767# by default will actually change.
768# Use braces instead of parens because sh, perl, etc. also accept them.
jfigusc7e66e32013-05-08 11:32:55 -0400769# (The list follows the same order as the GNU Coding Standards.)
Cullen Jennings235513a2005-09-21 22:51:36 +0000770bindir='${exec_prefix}/bin'
771sbindir='${exec_prefix}/sbin'
772libexecdir='${exec_prefix}/libexec'
jfigusc7e66e32013-05-08 11:32:55 -0400773datarootdir='${prefix}/share'
774datadir='${datarootdir}'
Cullen Jennings235513a2005-09-21 22:51:36 +0000775sysconfdir='${prefix}/etc'
776sharedstatedir='${prefix}/com'
777localstatedir='${prefix}/var'
Pascal Buhlerac97f3e2019-06-26 13:54:43 +0200778runstatedir='${localstatedir}/run'
Cullen Jennings235513a2005-09-21 22:51:36 +0000779includedir='${prefix}/include'
780oldincludedir='/usr/include'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200781docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
jfigusc7e66e32013-05-08 11:32:55 -0400782infodir='${datarootdir}/info'
783htmldir='${docdir}'
784dvidir='${docdir}'
785pdfdir='${docdir}'
786psdir='${docdir}'
787libdir='${exec_prefix}/lib'
788localedir='${datarootdir}/locale'
789mandir='${datarootdir}/man'
Cullen Jennings235513a2005-09-21 22:51:36 +0000790
791ac_prev=
jfigusc7e66e32013-05-08 11:32:55 -0400792ac_dashdash=
Cullen Jennings235513a2005-09-21 22:51:36 +0000793for ac_option
794do
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
jfigusc7e66e32013-05-08 11:32:55 -0400797 eval $ac_prev=\$ac_option
Cullen Jennings235513a2005-09-21 22:51:36 +0000798 ac_prev=
799 continue
800 fi
801
jfigusc7e66e32013-05-08 11:32:55 -0400802 case $ac_option in
803 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *=) ac_optarg= ;;
805 *) ac_optarg=yes ;;
806 esac
Cullen Jennings235513a2005-09-21 22:51:36 +0000807
808 # Accept the important Cygnus configure options, so we can diagnose typos.
809
jfigusc7e66e32013-05-08 11:32:55 -0400810 case $ac_dashdash$ac_option in
811 --)
812 ac_dashdash=yes ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000813
814 -bindir | --bindir | --bindi | --bind | --bin | --bi)
815 ac_prev=bindir ;;
816 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
817 bindir=$ac_optarg ;;
818
819 -build | --build | --buil | --bui | --bu)
820 ac_prev=build_alias ;;
821 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
822 build_alias=$ac_optarg ;;
823
824 -cache-file | --cache-file | --cache-fil | --cache-fi \
825 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
826 ac_prev=cache_file ;;
827 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
828 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
829 cache_file=$ac_optarg ;;
830
831 --config-cache | -C)
832 cache_file=config.cache ;;
833
jfigusc7e66e32013-05-08 11:32:55 -0400834 -datadir | --datadir | --datadi | --datad)
Cullen Jennings235513a2005-09-21 22:51:36 +0000835 ac_prev=datadir ;;
jfigusc7e66e32013-05-08 11:32:55 -0400836 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000837 datadir=$ac_optarg ;;
838
jfigusc7e66e32013-05-08 11:32:55 -0400839 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
840 | --dataroo | --dataro | --datar)
841 ac_prev=datarootdir ;;
842 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
843 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
844 datarootdir=$ac_optarg ;;
845
Cullen Jennings235513a2005-09-21 22:51:36 +0000846 -disable-* | --disable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400847 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000848 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400849 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
850 as_fn_error $? "invalid feature name: $ac_useropt"
851 ac_useropt_orig=$ac_useropt
852 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
853 case $ac_user_opts in
854 *"
855"enable_$ac_useropt"
856"*) ;;
857 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
858 ac_unrecognized_sep=', ';;
859 esac
860 eval enable_$ac_useropt=no ;;
861
862 -docdir | --docdir | --docdi | --doc | --do)
863 ac_prev=docdir ;;
864 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
865 docdir=$ac_optarg ;;
866
867 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
868 ac_prev=dvidir ;;
869 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
870 dvidir=$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000871
872 -enable-* | --enable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400873 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000874 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400875 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
876 as_fn_error $? "invalid feature name: $ac_useropt"
877 ac_useropt_orig=$ac_useropt
878 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
879 case $ac_user_opts in
880 *"
881"enable_$ac_useropt"
882"*) ;;
883 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
884 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000885 esac
jfigusc7e66e32013-05-08 11:32:55 -0400886 eval enable_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000887
888 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
889 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
890 | --exec | --exe | --ex)
891 ac_prev=exec_prefix ;;
892 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
893 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
894 | --exec=* | --exe=* | --ex=*)
895 exec_prefix=$ac_optarg ;;
896
897 -gas | --gas | --ga | --g)
898 # Obsolete; use --with-gas.
899 with_gas=yes ;;
900
901 -help | --help | --hel | --he | -h)
902 ac_init_help=long ;;
903 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
904 ac_init_help=recursive ;;
905 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
906 ac_init_help=short ;;
907
908 -host | --host | --hos | --ho)
909 ac_prev=host_alias ;;
910 -host=* | --host=* | --hos=* | --ho=*)
911 host_alias=$ac_optarg ;;
912
jfigusc7e66e32013-05-08 11:32:55 -0400913 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
914 ac_prev=htmldir ;;
915 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
916 | --ht=*)
917 htmldir=$ac_optarg ;;
918
Cullen Jennings235513a2005-09-21 22:51:36 +0000919 -includedir | --includedir | --includedi | --included | --include \
920 | --includ | --inclu | --incl | --inc)
921 ac_prev=includedir ;;
922 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
923 | --includ=* | --inclu=* | --incl=* | --inc=*)
924 includedir=$ac_optarg ;;
925
926 -infodir | --infodir | --infodi | --infod | --info | --inf)
927 ac_prev=infodir ;;
928 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
929 infodir=$ac_optarg ;;
930
931 -libdir | --libdir | --libdi | --libd)
932 ac_prev=libdir ;;
933 -libdir=* | --libdir=* | --libdi=* | --libd=*)
934 libdir=$ac_optarg ;;
935
936 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
937 | --libexe | --libex | --libe)
938 ac_prev=libexecdir ;;
939 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
940 | --libexe=* | --libex=* | --libe=*)
941 libexecdir=$ac_optarg ;;
942
jfigusc7e66e32013-05-08 11:32:55 -0400943 -localedir | --localedir | --localedi | --localed | --locale)
944 ac_prev=localedir ;;
945 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
946 localedir=$ac_optarg ;;
947
Cullen Jennings235513a2005-09-21 22:51:36 +0000948 -localstatedir | --localstatedir | --localstatedi | --localstated \
jfigusc7e66e32013-05-08 11:32:55 -0400949 | --localstate | --localstat | --localsta | --localst | --locals)
Cullen Jennings235513a2005-09-21 22:51:36 +0000950 ac_prev=localstatedir ;;
951 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
jfigusc7e66e32013-05-08 11:32:55 -0400952 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000953 localstatedir=$ac_optarg ;;
954
955 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
956 ac_prev=mandir ;;
957 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
958 mandir=$ac_optarg ;;
959
960 -nfp | --nfp | --nf)
961 # Obsolete; use --without-fp.
962 with_fp=no ;;
963
964 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
965 | --no-cr | --no-c | -n)
966 no_create=yes ;;
967
968 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
969 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
970 no_recursion=yes ;;
971
972 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
973 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
974 | --oldin | --oldi | --old | --ol | --o)
975 ac_prev=oldincludedir ;;
976 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
977 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
978 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
979 oldincludedir=$ac_optarg ;;
980
981 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
982 ac_prev=prefix ;;
983 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
984 prefix=$ac_optarg ;;
985
986 -program-prefix | --program-prefix | --program-prefi | --program-pref \
987 | --program-pre | --program-pr | --program-p)
988 ac_prev=program_prefix ;;
989 -program-prefix=* | --program-prefix=* | --program-prefi=* \
990 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
991 program_prefix=$ac_optarg ;;
992
993 -program-suffix | --program-suffix | --program-suffi | --program-suff \
994 | --program-suf | --program-su | --program-s)
995 ac_prev=program_suffix ;;
996 -program-suffix=* | --program-suffix=* | --program-suffi=* \
997 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
998 program_suffix=$ac_optarg ;;
999
1000 -program-transform-name | --program-transform-name \
1001 | --program-transform-nam | --program-transform-na \
1002 | --program-transform-n | --program-transform- \
1003 | --program-transform | --program-transfor \
1004 | --program-transfo | --program-transf \
1005 | --program-trans | --program-tran \
1006 | --progr-tra | --program-tr | --program-t)
1007 ac_prev=program_transform_name ;;
1008 -program-transform-name=* | --program-transform-name=* \
1009 | --program-transform-nam=* | --program-transform-na=* \
1010 | --program-transform-n=* | --program-transform-=* \
1011 | --program-transform=* | --program-transfor=* \
1012 | --program-transfo=* | --program-transf=* \
1013 | --program-trans=* | --program-tran=* \
1014 | --progr-tra=* | --program-tr=* | --program-t=*)
1015 program_transform_name=$ac_optarg ;;
1016
jfigusc7e66e32013-05-08 11:32:55 -04001017 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1018 ac_prev=pdfdir ;;
1019 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1020 pdfdir=$ac_optarg ;;
1021
1022 -psdir | --psdir | --psdi | --psd | --ps)
1023 ac_prev=psdir ;;
1024 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1025 psdir=$ac_optarg ;;
1026
Cullen Jennings235513a2005-09-21 22:51:36 +00001027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1028 | -silent | --silent | --silen | --sile | --sil)
1029 silent=yes ;;
1030
Pascal Buhlerac97f3e2019-06-26 13:54:43 +02001031 -runstatedir | --runstatedir | --runstatedi | --runstated \
1032 | --runstate | --runstat | --runsta | --runst | --runs \
1033 | --run | --ru | --r)
1034 ac_prev=runstatedir ;;
1035 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1036 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1037 | --run=* | --ru=* | --r=*)
1038 runstatedir=$ac_optarg ;;
1039
Cullen Jennings235513a2005-09-21 22:51:36 +00001040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041 ac_prev=sbindir ;;
1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043 | --sbi=* | --sb=*)
1044 sbindir=$ac_optarg ;;
1045
1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048 | --sharedst | --shareds | --shared | --share | --shar \
1049 | --sha | --sh)
1050 ac_prev=sharedstatedir ;;
1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054 | --sha=* | --sh=*)
1055 sharedstatedir=$ac_optarg ;;
1056
1057 -site | --site | --sit)
1058 ac_prev=site ;;
1059 -site=* | --site=* | --sit=*)
1060 site=$ac_optarg ;;
1061
1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063 ac_prev=srcdir ;;
1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065 srcdir=$ac_optarg ;;
1066
1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068 | --syscon | --sysco | --sysc | --sys | --sy)
1069 ac_prev=sysconfdir ;;
1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072 sysconfdir=$ac_optarg ;;
1073
1074 -target | --target | --targe | --targ | --tar | --ta | --t)
1075 ac_prev=target_alias ;;
1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077 target_alias=$ac_optarg ;;
1078
1079 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1080 verbose=yes ;;
1081
1082 -version | --version | --versio | --versi | --vers | -V)
1083 ac_init_version=: ;;
1084
1085 -with-* | --with-*)
jfigusc7e66e32013-05-08 11:32:55 -04001086 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001087 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error $? "invalid package name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1093 *"
1094"with_$ac_useropt"
1095"*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +00001098 esac
jfigusc7e66e32013-05-08 11:32:55 -04001099 eval with_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001100
1101 -without-* | --without-*)
jfigusc7e66e32013-05-08 11:32:55 -04001102 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001103 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error $? "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1109 *"
1110"with_$ac_useropt"
1111"*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=no ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001116
1117 --x)
1118 # Obsolete; use --with-x.
1119 with_x=yes ;;
1120
1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122 | --x-incl | --x-inc | --x-in | --x-i)
1123 ac_prev=x_includes ;;
1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126 x_includes=$ac_optarg ;;
1127
1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130 ac_prev=x_libraries ;;
1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133 x_libraries=$ac_optarg ;;
1134
jfigusc7e66e32013-05-08 11:32:55 -04001135 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1136Try \`$0 --help' for more information"
Cullen Jennings235513a2005-09-21 22:51:36 +00001137 ;;
1138
1139 *=*)
1140 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1141 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001142 case $ac_envvar in #(
1143 '' | [0-9]* | *[!_$as_cr_alnum]* )
1144 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1145 esac
1146 eval $ac_envvar=\$ac_optarg
Cullen Jennings235513a2005-09-21 22:51:36 +00001147 export $ac_envvar ;;
1148
1149 *)
1150 # FIXME: should be removed in autoconf 3.0.
jfigusc7e66e32013-05-08 11:32:55 -04001151 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Cullen Jennings235513a2005-09-21 22:51:36 +00001152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jfigusc7e66e32013-05-08 11:32:55 -04001153 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Cullen Jennings235513a2005-09-21 22:51:36 +00001155 ;;
1156
1157 esac
1158done
1159
1160if test -n "$ac_prev"; then
1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jfigusc7e66e32013-05-08 11:32:55 -04001162 as_fn_error $? "missing argument to $ac_option"
Cullen Jennings235513a2005-09-21 22:51:36 +00001163fi
1164
jfigusc7e66e32013-05-08 11:32:55 -04001165if test -n "$ac_unrecognized_opts"; then
1166 case $enable_option_checking in
1167 no) ;;
1168 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1169 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001170 esac
jfigusc7e66e32013-05-08 11:32:55 -04001171fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001172
jfigusc7e66e32013-05-08 11:32:55 -04001173# Check all directory arguments for consistency.
1174for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175 datadir sysconfdir sharedstatedir localstatedir includedir \
1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Pascal Buhlerac97f3e2019-06-26 13:54:43 +02001177 libdir localedir mandir runstatedir
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001178do
jfigusc7e66e32013-05-08 11:32:55 -04001179 eval ac_val=\$$ac_var
1180 # Remove trailing slashes.
jfigusa14b5a02013-03-29 12:24:12 -04001181 case $ac_val in
jfigusc7e66e32013-05-08 11:32:55 -04001182 */ )
1183 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1184 eval $ac_var=\$ac_val;;
jfigusa14b5a02013-03-29 12:24:12 -04001185 esac
jfigusc7e66e32013-05-08 11:32:55 -04001186 # Be sure to have absolute directory names.
1187 case $ac_val in
1188 [\\/$]* | ?:[\\/]* ) continue;;
1189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1190 esac
1191 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Cullen Jennings235513a2005-09-21 22:51:36 +00001192done
1193
1194# There might be people who depend on the old broken behavior: `$host'
1195# used to hold the argument of --host etc.
1196# FIXME: To remove some day.
1197build=$build_alias
1198host=$host_alias
1199target=$target_alias
1200
1201# FIXME: To remove some day.
1202if test "x$host_alias" != x; then
1203 if test "x$build_alias" = x; then
1204 cross_compiling=maybe
Cullen Jennings235513a2005-09-21 22:51:36 +00001205 elif test "x$build_alias" != "x$host_alias"; then
1206 cross_compiling=yes
1207 fi
1208fi
1209
1210ac_tool_prefix=
1211test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212
1213test "$silent" = yes && exec 6>/dev/null
1214
1215
jfigusc7e66e32013-05-08 11:32:55 -04001216ac_pwd=`pwd` && test -n "$ac_pwd" &&
1217ac_ls_di=`ls -di .` &&
1218ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1219 as_fn_error $? "working directory cannot be determined"
1220test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1221 as_fn_error $? "pwd does not report name of working directory"
1222
1223
Cullen Jennings235513a2005-09-21 22:51:36 +00001224# Find the source files, if location was not specified.
1225if test -z "$srcdir"; then
1226 ac_srcdir_defaulted=yes
jfigusc7e66e32013-05-08 11:32:55 -04001227 # Try the directory containing this script, then the parent directory.
1228 ac_confdir=`$as_dirname -- "$as_myself" ||
1229$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$as_myself" : 'X\(//\)[^/]' \| \
1231 X"$as_myself" : 'X\(//\)$' \| \
1232 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1233$as_echo X"$as_myself" |
1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 s//\1/
1236 q
1237 }
1238 /^X\(\/\/\)[^/].*/{
1239 s//\1/
1240 q
1241 }
1242 /^X\(\/\/\)$/{
1243 s//\1/
1244 q
1245 }
1246 /^X\(\/\).*/{
1247 s//\1/
1248 q
1249 }
1250 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001251 srcdir=$ac_confdir
jfigusc7e66e32013-05-08 11:32:55 -04001252 if test ! -r "$srcdir/$ac_unique_file"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00001253 srcdir=..
1254 fi
1255else
1256 ac_srcdir_defaulted=no
1257fi
jfigusc7e66e32013-05-08 11:32:55 -04001258if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Cullen Jennings235513a2005-09-21 22:51:36 +00001261fi
jfigusc7e66e32013-05-08 11:32:55 -04001262ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263ac_abs_confdir=`(
1264 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1265 pwd)`
1266# When building in place, set srcdir=.
1267if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 srcdir=.
1269fi
1270# Remove unnecessary trailing slashes from srcdir.
1271# Double slashes in file names in object file debugging info
1272# mess up M-x gdb in Emacs.
1273case $srcdir in
1274*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275esac
1276for ac_var in $ac_precious_vars; do
1277 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_env_${ac_var}_value=\$${ac_var}
1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281done
Cullen Jennings235513a2005-09-21 22:51:36 +00001282
1283#
1284# Report the --help message.
1285#
1286if test "$ac_init_help" = "long"; then
1287 # Omit some internal or obsolete options to make the list less imposing.
1288 # This message is too long to be a string in the A/UX 3.1 sh.
1289 cat <<_ACEOF
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +02001290\`configure' configures libsrtp2 2.3.0-pre to adapt to many kinds of systems.
Cullen Jennings235513a2005-09-21 22:51:36 +00001291
1292Usage: $0 [OPTION]... [VAR=VALUE]...
1293
1294To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295VAR=VALUE. See below for descriptions of some of the useful variables.
1296
1297Defaults for the options are specified in brackets.
1298
1299Configuration:
1300 -h, --help display this help and exit
1301 --help=short display options specific to this package
1302 --help=recursive display the short help of all the included packages
1303 -V, --version display version information and exit
jfigusc7e66e32013-05-08 11:32:55 -04001304 -q, --quiet, --silent do not print \`checking ...' messages
Cullen Jennings235513a2005-09-21 22:51:36 +00001305 --cache-file=FILE cache test results in FILE [disabled]
1306 -C, --config-cache alias for \`--cache-file=config.cache'
1307 -n, --no-create do not create output files
1308 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309
Cullen Jennings235513a2005-09-21 22:51:36 +00001310Installation directories:
1311 --prefix=PREFIX install architecture-independent files in PREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001312 [$ac_default_prefix]
Cullen Jennings235513a2005-09-21 22:51:36 +00001313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001314 [PREFIX]
Cullen Jennings235513a2005-09-21 22:51:36 +00001315
1316By default, \`make install' will install all the files in
1317\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1318an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319for instance \`--prefix=\$HOME'.
1320
1321For better control, use the options below.
1322
1323Fine tuning of the installation directories:
jfigusc7e66e32013-05-08 11:32:55 -04001324 --bindir=DIR user executables [EPREFIX/bin]
1325 --sbindir=DIR system admin executables [EPREFIX/sbin]
1326 --libexecdir=DIR program executables [EPREFIX/libexec]
1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Pascal Buhlerac97f3e2019-06-26 13:54:43 +02001330 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
jfigusc7e66e32013-05-08 11:32:55 -04001331 --libdir=DIR object code libraries [EPREFIX/lib]
1332 --includedir=DIR C header files [PREFIX/include]
1333 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1336 --infodir=DIR info documentation [DATAROOTDIR/info]
1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1338 --mandir=DIR man documentation [DATAROOTDIR/man]
jfigusd196e022014-11-20 16:43:44 -05001339 --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp2]
jfigusc7e66e32013-05-08 11:32:55 -04001340 --htmldir=DIR html documentation [DOCDIR]
1341 --dvidir=DIR dvi documentation [DOCDIR]
1342 --pdfdir=DIR pdf documentation [DOCDIR]
1343 --psdir=DIR ps documentation [DOCDIR]
Cullen Jennings235513a2005-09-21 22:51:36 +00001344_ACEOF
1345
1346 cat <<\_ACEOF
1347
1348System types:
1349 --build=BUILD configure for building on BUILD [guessed]
1350 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1351_ACEOF
1352fi
1353
1354if test -n "$ac_init_help"; then
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001355 case $ac_init_help in
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +02001356 short | recursive ) echo "Configuration of libsrtp2 2.3.0-pre:";;
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001357 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00001358 cat <<\_ACEOF
1359
1360Optional Features:
jfigusc7e66e32013-05-08 11:32:55 -04001361 --disable-option-checking ignore unrecognized --enable/--with options
Cullen Jennings235513a2005-09-21 22:51:36 +00001362 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1363 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Pascal Bühler75918862017-02-19 18:33:50 +01001364 --enable-debug-logging Enable debug logging in all modules
jfigusc7e66e32013-05-08 11:32:55 -04001365 --enable-openssl compile in OpenSSL crypto engine
Richard Barnes12872092018-05-16 16:31:16 -07001366 --enable-nss compile in NSS crypto engine
jfigus038d2cf2015-05-11 14:10:11 -04001367 --enable-openssl-kdf Use OpenSSL KDF algorithm
Pascal Bühler75918862017-02-19 18:33:50 +01001368 --enable-log-stdout redirecting logging to stdout
Cullen Jennings235513a2005-09-21 22:51:36 +00001369
jfigus038d2cf2015-05-11 14:10:11 -04001370Optional Packages:
1371 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1372 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1373 --with-openssl-dir Location of OpenSSL installation
Richard Barnes12872092018-05-16 16:31:16 -07001374 --with-nss-dir Location of NSS installation
Pascal Bühler75918862017-02-19 18:33:50 +01001375 --with-log-file Use file for logging
jfigus038d2cf2015-05-11 14:10:11 -04001376
Cullen Jennings235513a2005-09-21 22:51:36 +00001377Some influential environment variables:
1378 CC C compiler command
1379 CFLAGS C compiler flags
1380 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1381 nonstandard directory <lib dir>
jfigusc7e66e32013-05-08 11:32:55 -04001382 LIBS libraries to pass to the linker, e.g. -l<library>
1383 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1384 you have headers in a nonstandard directory <include dir>
Cullen Jennings235513a2005-09-21 22:51:36 +00001385 CPP C preprocessor
Pascal Buhlerac97f3e2019-06-26 13:54:43 +02001386 CXX C++ compiler command
1387 CXXFLAGS C++ compiler flags
Idar Tollefsencb771f72017-05-03 13:20:08 +02001388 EXTRA_CFLAGS
1389 C compiler flags appended to the regular C compiler flags
1390 instead of overriding them
Idar Tollefsen600ad962017-01-26 11:24:51 +01001391 PKG_CONFIG path to pkg-config utility
1392 PKG_CONFIG_PATH
1393 directories to add to pkg-config's search path
1394 PKG_CONFIG_LIBDIR
1395 path overriding pkg-config's built-in search path
1396 crypto_CFLAGS
1397 C compiler flags for crypto, overriding pkg-config
1398 crypto_LIBS linker flags for crypto, overriding pkg-config
Pascal Buhlera946b3f2018-08-23 21:41:31 +02001399 nss_CFLAGS C compiler flags for nss, overriding pkg-config
1400 nss_LIBS linker flags for nss, overriding pkg-config
Cullen Jennings235513a2005-09-21 22:51:36 +00001401
1402Use these variables to override the choices made by `configure' or to help
1403it to find libraries and programs with nonstandard names/locations.
1404
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001405Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00001406_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001407ac_status=$?
Cullen Jennings235513a2005-09-21 22:51:36 +00001408fi
1409
1410if test "$ac_init_help" = "recursive"; then
1411 # If there are subdirs, report their specific --help.
Cullen Jennings235513a2005-09-21 22:51:36 +00001412 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jfigusc7e66e32013-05-08 11:32:55 -04001413 test -d "$ac_dir" ||
1414 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1415 continue
Cullen Jennings235513a2005-09-21 22:51:36 +00001416 ac_builddir=.
1417
jfigusc7e66e32013-05-08 11:32:55 -04001418case "$ac_dir" in
1419.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420*)
1421 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1422 # A ".." for each directory in $ac_dir_suffix.
1423 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1424 case $ac_top_builddir_sub in
1425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1427 esac ;;
1428esac
1429ac_abs_top_builddir=$ac_pwd
1430ac_abs_builddir=$ac_pwd$ac_dir_suffix
1431# for backward compatibility:
1432ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00001433
1434case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04001435 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00001436 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04001437 ac_top_srcdir=$ac_top_builddir_sub
1438 ac_abs_top_srcdir=$ac_pwd ;;
1439 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001440 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04001441 ac_top_srcdir=$srcdir
1442 ac_abs_top_srcdir=$srcdir ;;
1443 *) # Relative name.
1444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1445 ac_top_srcdir=$ac_top_build_prefix$srcdir
1446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001447esac
jfigusc7e66e32013-05-08 11:32:55 -04001448ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001449
jfigusc7e66e32013-05-08 11:32:55 -04001450 cd "$ac_dir" || { ac_status=$?; continue; }
1451 # Check for guested configure.
1452 if test -f "$ac_srcdir/configure.gnu"; then
1453 echo &&
1454 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1455 elif test -f "$ac_srcdir/configure"; then
1456 echo &&
1457 $SHELL "$ac_srcdir/configure" --help=recursive
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001458 else
jfigusc7e66e32013-05-08 11:32:55 -04001459 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1460 fi || ac_status=$?
1461 cd "$ac_pwd" || { ac_status=$?; break; }
Cullen Jennings235513a2005-09-21 22:51:36 +00001462 done
1463fi
1464
jfigusc7e66e32013-05-08 11:32:55 -04001465test -n "$ac_init_help" && exit $ac_status
Cullen Jennings235513a2005-09-21 22:51:36 +00001466if $ac_init_version; then
1467 cat <<\_ACEOF
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +02001468libsrtp2 configure 2.3.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04001469generated by GNU Autoconf 2.69
Cullen Jennings235513a2005-09-21 22:51:36 +00001470
jfigusc7e66e32013-05-08 11:32:55 -04001471Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00001472This configure script is free software; the Free Software Foundation
1473gives unlimited permission to copy, distribute and modify it.
1474_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001475 exit
Cullen Jennings235513a2005-09-21 22:51:36 +00001476fi
jfigusc7e66e32013-05-08 11:32:55 -04001477
1478## ------------------------ ##
1479## Autoconf initialization. ##
1480## ------------------------ ##
1481
1482# ac_fn_c_try_compile LINENO
1483# --------------------------
1484# Try to compile conftest.$ac_ext, and return whether this succeeded.
1485ac_fn_c_try_compile ()
1486{
1487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1488 rm -f conftest.$ac_objext
1489 if { { ac_try="$ac_compile"
1490case "(($ac_try" in
1491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1492 *) ac_try_echo=$ac_try;;
1493esac
1494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1495$as_echo "$ac_try_echo"; } >&5
1496 (eval "$ac_compile") 2>conftest.err
1497 ac_status=$?
1498 if test -s conftest.err; then
1499 grep -v '^ *+' conftest.err >conftest.er1
1500 cat conftest.er1 >&5
1501 mv -f conftest.er1 conftest.err
1502 fi
1503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1504 test $ac_status = 0; } && {
1505 test -z "$ac_c_werror_flag" ||
1506 test ! -s conftest.err
1507 } && test -s conftest.$ac_objext; then :
1508 ac_retval=0
1509else
1510 $as_echo "$as_me: failed program was:" >&5
1511sed 's/^/| /' conftest.$ac_ext >&5
1512
1513 ac_retval=1
1514fi
1515 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1516 as_fn_set_status $ac_retval
1517
1518} # ac_fn_c_try_compile
1519
Idar Tollefsencb771f72017-05-03 13:20:08 +02001520# ac_fn_c_try_cpp LINENO
1521# ----------------------
1522# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1523ac_fn_c_try_cpp ()
1524{
1525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526 if { { ac_try="$ac_cpp conftest.$ac_ext"
1527case "(($ac_try" in
1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529 *) ac_try_echo=$ac_try;;
1530esac
1531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532$as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1534 ac_status=$?
1535 if test -s conftest.err; then
1536 grep -v '^ *+' conftest.err >conftest.er1
1537 cat conftest.er1 >&5
1538 mv -f conftest.er1 conftest.err
1539 fi
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } > conftest.i && {
1542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1543 test ! -s conftest.err
1544 }; then :
1545 ac_retval=0
1546else
1547 $as_echo "$as_me: failed program was:" >&5
1548sed 's/^/| /' conftest.$ac_ext >&5
1549
1550 ac_retval=1
1551fi
1552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1553 as_fn_set_status $ac_retval
1554
1555} # ac_fn_c_try_cpp
1556
Pascal Buhlerac97f3e2019-06-26 13:54:43 +02001557# ac_fn_cxx_try_compile LINENO
1558# ----------------------------
1559# Try to compile conftest.$ac_ext, and return whether this succeeded.
1560ac_fn_cxx_try_compile ()
1561{
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1565case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568esac
1569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570$as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_cxx_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1583 ac_retval=0
1584else
1585 $as_echo "$as_me: failed program was:" >&5
1586sed 's/^/| /' conftest.$ac_ext >&5
1587
1588 ac_retval=1
1589fi
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status $ac_retval
1592
1593} # ac_fn_cxx_try_compile
1594
jfigusc7e66e32013-05-08 11:32:55 -04001595# ac_fn_c_try_run LINENO
1596# ----------------------
1597# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1598# that executables *can* be run.
1599ac_fn_c_try_run ()
1600{
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 if { { ac_try="$ac_link"
1603case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606esac
1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608$as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_link") 2>&5
1610 ac_status=$?
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1613 { { case "(($ac_try" in
1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1616esac
1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618$as_echo "$ac_try_echo"; } >&5
1619 (eval "$ac_try") 2>&5
1620 ac_status=$?
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; }; }; then :
1623 ac_retval=0
1624else
1625 $as_echo "$as_me: program exited with status $ac_status" >&5
1626 $as_echo "$as_me: failed program was:" >&5
1627sed 's/^/| /' conftest.$ac_ext >&5
1628
1629 ac_retval=$ac_status
1630fi
1631 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1634
1635} # ac_fn_c_try_run
1636
jfigusc7e66e32013-05-08 11:32:55 -04001637# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1638# -------------------------------------------------------
1639# Tests whether HEADER exists and can be compiled using the include files in
1640# INCLUDES, setting the cache variable VAR accordingly.
1641ac_fn_c_check_header_compile ()
1642{
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645$as_echo_n "checking for $2... " >&6; }
1646if eval \${$3+:} false; then :
1647 $as_echo_n "(cached) " >&6
1648else
1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650/* end confdefs.h. */
1651$4
1652#include <$2>
1653_ACEOF
1654if ac_fn_c_try_compile "$LINENO"; then :
1655 eval "$3=yes"
1656else
1657 eval "$3=no"
1658fi
1659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1660fi
1661eval ac_res=\$$3
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663$as_echo "$ac_res" >&6; }
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665
1666} # ac_fn_c_check_header_compile
1667
jfigusc7e66e32013-05-08 11:32:55 -04001668# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1669# -------------------------------------------
1670# Tests whether TYPE exists after having included INCLUDES, setting cache
1671# variable VAR accordingly.
1672ac_fn_c_check_type ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676$as_echo_n "checking for $2... " >&6; }
1677if eval \${$3+:} false; then :
1678 $as_echo_n "(cached) " >&6
1679else
1680 eval "$3=no"
1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682/* end confdefs.h. */
1683$4
1684int
1685main ()
1686{
1687if (sizeof ($2))
1688 return 0;
1689 ;
1690 return 0;
1691}
1692_ACEOF
1693if ac_fn_c_try_compile "$LINENO"; then :
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695/* end confdefs.h. */
1696$4
1697int
1698main ()
1699{
1700if (sizeof (($2)))
1701 return 0;
1702 ;
1703 return 0;
1704}
1705_ACEOF
1706if ac_fn_c_try_compile "$LINENO"; then :
1707
1708else
1709 eval "$3=yes"
1710fi
1711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712fi
1713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1714fi
1715eval ac_res=\$$3
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717$as_echo "$ac_res" >&6; }
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719
1720} # ac_fn_c_check_type
1721
1722# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1723# --------------------------------------------
1724# Tries to find the compile-time value of EXPR in a program that includes
1725# INCLUDES, setting VAR accordingly. Returns whether the value could be
1726# computed
1727ac_fn_c_compute_int ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if test "$cross_compiling" = yes; then
1731 # Depending upon the size, compute the lo and hi bounds.
1732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733/* end confdefs.h. */
1734$4
1735int
1736main ()
1737{
1738static int test_array [1 - 2 * !(($2) >= 0)];
1739test_array [0] = 0;
1740return test_array [0];
1741
1742 ;
1743 return 0;
1744}
1745_ACEOF
1746if ac_fn_c_try_compile "$LINENO"; then :
1747 ac_lo=0 ac_mid=0
1748 while :; do
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750/* end confdefs.h. */
1751$4
1752int
1753main ()
1754{
1755static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1756test_array [0] = 0;
1757return test_array [0];
1758
1759 ;
1760 return 0;
1761}
1762_ACEOF
1763if ac_fn_c_try_compile "$LINENO"; then :
1764 ac_hi=$ac_mid; break
1765else
1766 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1767 if test $ac_lo -le $ac_mid; then
1768 ac_lo= ac_hi=
1769 break
1770 fi
1771 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1772fi
1773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 done
1775else
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777/* end confdefs.h. */
1778$4
1779int
1780main ()
1781{
1782static int test_array [1 - 2 * !(($2) < 0)];
1783test_array [0] = 0;
1784return test_array [0];
1785
1786 ;
1787 return 0;
1788}
1789_ACEOF
1790if ac_fn_c_try_compile "$LINENO"; then :
1791 ac_hi=-1 ac_mid=-1
1792 while :; do
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794/* end confdefs.h. */
1795$4
1796int
1797main ()
1798{
1799static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1800test_array [0] = 0;
1801return test_array [0];
1802
1803 ;
1804 return 0;
1805}
1806_ACEOF
1807if ac_fn_c_try_compile "$LINENO"; then :
1808 ac_lo=$ac_mid; break
1809else
1810 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1811 if test $ac_mid -le $ac_hi; then
1812 ac_lo= ac_hi=
1813 break
1814 fi
1815 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1816fi
1817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 done
1819else
1820 ac_lo= ac_hi=
1821fi
1822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823fi
1824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825# Binary search between lo and hi bounds.
1826while test "x$ac_lo" != "x$ac_hi"; do
1827 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h. */
1830$4
1831int
1832main ()
1833{
1834static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1835test_array [0] = 0;
1836return test_array [0];
1837
1838 ;
1839 return 0;
1840}
1841_ACEOF
1842if ac_fn_c_try_compile "$LINENO"; then :
1843 ac_hi=$ac_mid
1844else
1845 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1846fi
1847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1848done
1849case $ac_lo in #((
1850?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1851'') ac_retval=1 ;;
1852esac
1853 else
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855/* end confdefs.h. */
1856$4
1857static long int longval () { return $2; }
1858static unsigned long int ulongval () { return $2; }
1859#include <stdio.h>
1860#include <stdlib.h>
1861int
1862main ()
1863{
1864
1865 FILE *f = fopen ("conftest.val", "w");
1866 if (! f)
1867 return 1;
1868 if (($2) < 0)
1869 {
1870 long int i = longval ();
1871 if (i != ($2))
1872 return 1;
1873 fprintf (f, "%ld", i);
1874 }
1875 else
1876 {
1877 unsigned long int i = ulongval ();
1878 if (i != ($2))
1879 return 1;
1880 fprintf (f, "%lu", i);
1881 }
1882 /* Do not output a trailing newline, as this causes \r\n confusion
1883 on some platforms. */
1884 return ferror (f) || fclose (f) != 0;
1885
1886 ;
1887 return 0;
1888}
1889_ACEOF
1890if ac_fn_c_try_run "$LINENO"; then :
1891 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1892else
1893 ac_retval=1
1894fi
1895rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1896 conftest.$ac_objext conftest.beam conftest.$ac_ext
1897rm -f conftest.val
1898
1899 fi
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 as_fn_set_status $ac_retval
1902
1903} # ac_fn_c_compute_int
1904
1905# ac_fn_c_try_link LINENO
1906# -----------------------
1907# Try to link conftest.$ac_ext, and return whether this succeeded.
1908ac_fn_c_try_link ()
1909{
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 rm -f conftest.$ac_objext conftest$ac_exeext
1912 if { { ac_try="$ac_link"
1913case "(($ac_try" in
1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915 *) ac_try_echo=$ac_try;;
1916esac
1917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918$as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_link") 2>conftest.err
1920 ac_status=$?
1921 if test -s conftest.err; then
1922 grep -v '^ *+' conftest.err >conftest.er1
1923 cat conftest.er1 >&5
1924 mv -f conftest.er1 conftest.err
1925 fi
1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927 test $ac_status = 0; } && {
1928 test -z "$ac_c_werror_flag" ||
1929 test ! -s conftest.err
1930 } && test -s conftest$ac_exeext && {
1931 test "$cross_compiling" = yes ||
1932 test -x conftest$ac_exeext
1933 }; then :
1934 ac_retval=0
1935else
1936 $as_echo "$as_me: failed program was:" >&5
1937sed 's/^/| /' conftest.$ac_ext >&5
1938
1939 ac_retval=1
1940fi
1941 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1942 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1943 # interfere with the next link command; also delete a directory that is
1944 # left behind by Apple's compiler. We do this before executing the actions.
1945 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947 as_fn_set_status $ac_retval
1948
1949} # ac_fn_c_try_link
1950
1951# ac_fn_c_check_func LINENO FUNC VAR
1952# ----------------------------------
1953# Tests whether FUNC exists, setting the cache variable VAR accordingly
1954ac_fn_c_check_func ()
1955{
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958$as_echo_n "checking for $2... " >&6; }
1959if eval \${$3+:} false; then :
1960 $as_echo_n "(cached) " >&6
1961else
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963/* end confdefs.h. */
1964/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1966#define $2 innocuous_$2
1967
1968/* System header to define __stub macros and hopefully few prototypes,
1969 which can conflict with char $2 (); below.
1970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1971 <limits.h> exists even on freestanding compilers. */
1972
1973#ifdef __STDC__
1974# include <limits.h>
1975#else
1976# include <assert.h>
1977#endif
1978
1979#undef $2
1980
1981/* Override any GCC internal prototype to avoid an error.
1982 Use char because int might match the return type of a GCC
1983 builtin and then its argument prototype would still apply. */
1984#ifdef __cplusplus
1985extern "C"
1986#endif
1987char $2 ();
1988/* The GNU C library defines this for functions which it implements
1989 to always fail with ENOSYS. Some functions are actually named
1990 something starting with __ and the normal name is an alias. */
1991#if defined __stub_$2 || defined __stub___$2
1992choke me
1993#endif
1994
1995int
1996main ()
1997{
1998return $2 ();
1999 ;
2000 return 0;
2001}
2002_ACEOF
2003if ac_fn_c_try_link "$LINENO"; then :
2004 eval "$3=yes"
2005else
2006 eval "$3=no"
2007fi
2008rm -f core conftest.err conftest.$ac_objext \
2009 conftest$ac_exeext conftest.$ac_ext
2010fi
2011eval ac_res=\$$3
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013$as_echo "$ac_res" >&6; }
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015
2016} # ac_fn_c_check_func
2017cat >config.log <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00002018This file contains any messages produced by compilers while
2019running configure, to aid debugging if configure makes a mistake.
2020
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +02002021It was created by libsrtp2 $as_me 2.3.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04002022generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00002023
2024 $ $0 $@
2025
2026_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002027exec 5>>config.log
Cullen Jennings235513a2005-09-21 22:51:36 +00002028{
2029cat <<_ASUNAME
2030## --------- ##
2031## Platform. ##
2032## --------- ##
2033
2034hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2035uname -m = `(uname -m) 2>/dev/null || echo unknown`
2036uname -r = `(uname -r) 2>/dev/null || echo unknown`
2037uname -s = `(uname -s) 2>/dev/null || echo unknown`
2038uname -v = `(uname -v) 2>/dev/null || echo unknown`
2039
2040/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2041/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2042
2043/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2044/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2045/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
jfigusc7e66e32013-05-08 11:32:55 -04002046/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Cullen Jennings235513a2005-09-21 22:51:36 +00002047/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2048/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2049/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2050
2051_ASUNAME
2052
2053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054for as_dir in $PATH
2055do
2056 IFS=$as_save_IFS
2057 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002058 $as_echo "PATH: $as_dir"
2059 done
2060IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002061
2062} >&5
2063
2064cat >&5 <<_ACEOF
2065
2066
2067## ----------- ##
2068## Core tests. ##
2069## ----------- ##
2070
2071_ACEOF
2072
2073
2074# Keep a trace of the command line.
2075# Strip out --no-create and --no-recursion so they do not pile up.
2076# Strip out --silent because we don't want to record it for future runs.
2077# Also quote any args containing shell meta-characters.
2078# Make two passes to allow for proper duplicate-argument suppression.
2079ac_configure_args=
2080ac_configure_args0=
2081ac_configure_args1=
Cullen Jennings235513a2005-09-21 22:51:36 +00002082ac_must_keep_next=false
2083for ac_pass in 1 2
2084do
2085 for ac_arg
2086 do
2087 case $ac_arg in
2088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2090 | -silent | --silent | --silen | --sile | --sil)
2091 continue ;;
jfigusc7e66e32013-05-08 11:32:55 -04002092 *\'*)
2093 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002094 esac
2095 case $ac_pass in
jfigusc7e66e32013-05-08 11:32:55 -04002096 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002097 2)
jfigusc7e66e32013-05-08 11:32:55 -04002098 as_fn_append ac_configure_args1 " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002099 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00002100 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00002101 else
David McGrewfec49dd2005-09-23 19:34:11 +00002102 case $ac_arg in
2103 *=* | --config-cache | -C | -disable-* | --disable-* \
2104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2106 | -with-* | --with-* | -without-* | --without-* | --x)
2107 case "$ac_configure_args0 " in
2108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2109 esac
2110 ;;
2111 -* ) ac_must_keep_next=true ;;
2112 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00002113 fi
jfigusc7e66e32013-05-08 11:32:55 -04002114 as_fn_append ac_configure_args " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002115 ;;
2116 esac
2117 done
2118done
jfigusc7e66e32013-05-08 11:32:55 -04002119{ ac_configure_args0=; unset ac_configure_args0;}
2120{ ac_configure_args1=; unset ac_configure_args1;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002121
2122# When interrupted or exit'd, cleanup temporary files, and complete
2123# config.log. We remove comments because anyway the quotes in there
2124# would cause problems or look ugly.
jfigusc7e66e32013-05-08 11:32:55 -04002125# WARNING: Use '\'' to represent an apostrophe within the trap.
2126# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Cullen Jennings235513a2005-09-21 22:51:36 +00002127trap 'exit_status=$?
2128 # Save into config.log some information that might help in debugging.
2129 {
2130 echo
2131
jfigusc7e66e32013-05-08 11:32:55 -04002132 $as_echo "## ---------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002133## Cache variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002134## ---------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002135 echo
2136 # The following way of writing the cache mishandles newlines in values,
jfigusc7e66e32013-05-08 11:32:55 -04002137(
2138 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2139 eval ac_val=\$$ac_var
2140 case $ac_val in #(
2141 *${as_nl}*)
2142 case $ac_var in #(
2143 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2144$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2145 esac
2146 case $ac_var in #(
2147 _ | IFS | as_nl) ;; #(
2148 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2149 *) { eval $ac_var=; unset $ac_var;} ;;
2150 esac ;;
2151 esac
2152 done
Cullen Jennings235513a2005-09-21 22:51:36 +00002153 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04002154 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2155 *${as_nl}ac_space=\ *)
Cullen Jennings235513a2005-09-21 22:51:36 +00002156 sed -n \
jfigusc7e66e32013-05-08 11:32:55 -04002157 "s/'\''/'\''\\\\'\'''\''/g;
2158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2159 ;; #(
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002160 *)
jfigusc7e66e32013-05-08 11:32:55 -04002161 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002162 ;;
jfigusc7e66e32013-05-08 11:32:55 -04002163 esac |
2164 sort
2165)
Cullen Jennings235513a2005-09-21 22:51:36 +00002166 echo
2167
jfigusc7e66e32013-05-08 11:32:55 -04002168 $as_echo "## ----------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002169## Output variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002170## ----------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002171 echo
2172 for ac_var in $ac_subst_vars
2173 do
jfigusc7e66e32013-05-08 11:32:55 -04002174 eval ac_val=\$$ac_var
2175 case $ac_val in
2176 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2177 esac
2178 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002179 done | sort
2180 echo
2181
2182 if test -n "$ac_subst_files"; then
jfigusc7e66e32013-05-08 11:32:55 -04002183 $as_echo "## ------------------- ##
2184## File substitutions. ##
2185## ------------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002186 echo
2187 for ac_var in $ac_subst_files
2188 do
jfigusc7e66e32013-05-08 11:32:55 -04002189 eval ac_val=\$$ac_var
2190 case $ac_val in
2191 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192 esac
2193 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002194 done | sort
2195 echo
2196 fi
2197
2198 if test -s confdefs.h; then
jfigusc7e66e32013-05-08 11:32:55 -04002199 $as_echo "## ----------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002200## confdefs.h. ##
jfigusc7e66e32013-05-08 11:32:55 -04002201## ----------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002202 echo
jfigusc7e66e32013-05-08 11:32:55 -04002203 cat confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002204 echo
2205 fi
2206 test "$ac_signal" != 0 &&
jfigusc7e66e32013-05-08 11:32:55 -04002207 $as_echo "$as_me: caught signal $ac_signal"
2208 $as_echo "$as_me: exit $exit_status"
Cullen Jennings235513a2005-09-21 22:51:36 +00002209 } >&5
jfigusc7e66e32013-05-08 11:32:55 -04002210 rm -f core *.core core.conftest.* &&
2211 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Cullen Jennings235513a2005-09-21 22:51:36 +00002212 exit $exit_status
jfigusc7e66e32013-05-08 11:32:55 -04002213' 0
Cullen Jennings235513a2005-09-21 22:51:36 +00002214for ac_signal in 1 2 13 15; do
jfigusc7e66e32013-05-08 11:32:55 -04002215 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Cullen Jennings235513a2005-09-21 22:51:36 +00002216done
2217ac_signal=0
2218
2219# confdefs.h avoids OS command line length limits that DEFS can exceed.
jfigusc7e66e32013-05-08 11:32:55 -04002220rm -f -r conftest* confdefs.h
2221
2222$as_echo "/* confdefs.h */" > confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002223
2224# Predefined preprocessor variables.
2225
2226cat >>confdefs.h <<_ACEOF
2227#define PACKAGE_NAME "$PACKAGE_NAME"
2228_ACEOF
2229
Cullen Jennings235513a2005-09-21 22:51:36 +00002230cat >>confdefs.h <<_ACEOF
2231#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2232_ACEOF
2233
Cullen Jennings235513a2005-09-21 22:51:36 +00002234cat >>confdefs.h <<_ACEOF
2235#define PACKAGE_VERSION "$PACKAGE_VERSION"
2236_ACEOF
2237
Cullen Jennings235513a2005-09-21 22:51:36 +00002238cat >>confdefs.h <<_ACEOF
2239#define PACKAGE_STRING "$PACKAGE_STRING"
2240_ACEOF
2241
Cullen Jennings235513a2005-09-21 22:51:36 +00002242cat >>confdefs.h <<_ACEOF
2243#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2244_ACEOF
2245
jfigusc7e66e32013-05-08 11:32:55 -04002246cat >>confdefs.h <<_ACEOF
2247#define PACKAGE_URL "$PACKAGE_URL"
2248_ACEOF
2249
Cullen Jennings235513a2005-09-21 22:51:36 +00002250
2251# Let the site file select an alternate cache file if it wants to.
jfigusc7e66e32013-05-08 11:32:55 -04002252# Prefer an explicitly selected file to automatically selected ones.
2253ac_site_file1=NONE
2254ac_site_file2=NONE
2255if test -n "$CONFIG_SITE"; then
2256 # We do not want a PATH search for config.site.
2257 case $CONFIG_SITE in #((
2258 -*) ac_site_file1=./$CONFIG_SITE;;
2259 */*) ac_site_file1=$CONFIG_SITE;;
2260 *) ac_site_file1=./$CONFIG_SITE;;
2261 esac
2262elif test "x$prefix" != xNONE; then
2263 ac_site_file1=$prefix/share/config.site
2264 ac_site_file2=$prefix/etc/config.site
2265else
2266 ac_site_file1=$ac_default_prefix/share/config.site
2267 ac_site_file2=$ac_default_prefix/etc/config.site
Cullen Jennings235513a2005-09-21 22:51:36 +00002268fi
jfigusc7e66e32013-05-08 11:32:55 -04002269for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2270do
2271 test "x$ac_site_file" = xNONE && continue
2272 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2274$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002275 sed 's/^/| /' "$ac_site_file" >&5
jfigusc7e66e32013-05-08 11:32:55 -04002276 . "$ac_site_file" \
2277 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2279as_fn_error $? "failed to load site script $ac_site_file
2280See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002281 fi
2282done
2283
2284if test -r "$cache_file"; then
jfigusc7e66e32013-05-08 11:32:55 -04002285 # Some versions of bash will fail to source /dev/null (special files
2286 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2287 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2289$as_echo "$as_me: loading cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002290 case $cache_file in
jfigusc7e66e32013-05-08 11:32:55 -04002291 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2292 *) . "./$cache_file";;
Cullen Jennings235513a2005-09-21 22:51:36 +00002293 esac
2294 fi
2295else
jfigusc7e66e32013-05-08 11:32:55 -04002296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2297$as_echo "$as_me: creating cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002298 >$cache_file
2299fi
2300
2301# Check that the precious variables saved in the cache have kept the same
2302# value.
2303ac_cache_corrupted=false
jfigusc7e66e32013-05-08 11:32:55 -04002304for ac_var in $ac_precious_vars; do
Cullen Jennings235513a2005-09-21 22:51:36 +00002305 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2306 eval ac_new_set=\$ac_env_${ac_var}_set
jfigusc7e66e32013-05-08 11:32:55 -04002307 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2308 eval ac_new_val=\$ac_env_${ac_var}_value
Cullen Jennings235513a2005-09-21 22:51:36 +00002309 case $ac_old_set,$ac_new_set in
2310 set,)
jfigusc7e66e32013-05-08 11:32:55 -04002311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2312$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002313 ac_cache_corrupted=: ;;
2314 ,set)
jfigusc7e66e32013-05-08 11:32:55 -04002315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2316$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002317 ac_cache_corrupted=: ;;
2318 ,);;
2319 *)
2320 if test "x$ac_old_val" != "x$ac_new_val"; then
jfigusc7e66e32013-05-08 11:32:55 -04002321 # differences in whitespace do not lead to failure.
2322 ac_old_val_w=`echo x $ac_old_val`
2323 ac_new_val_w=`echo x $ac_new_val`
2324 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2326$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2327 ac_cache_corrupted=:
2328 else
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2330$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2331 eval $ac_var=\$ac_old_val
2332 fi
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2334$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2336$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002337 fi;;
2338 esac
2339 # Pass precious variables to config.status.
2340 if test "$ac_new_set" = set; then
2341 case $ac_new_val in
jfigusc7e66e32013-05-08 11:32:55 -04002342 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002343 *) ac_arg=$ac_var=$ac_new_val ;;
2344 esac
2345 case " $ac_configure_args " in
2346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jfigusc7e66e32013-05-08 11:32:55 -04002347 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002348 esac
2349 fi
2350done
2351if $ac_cache_corrupted; then
jfigusc7e66e32013-05-08 11:32:55 -04002352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2355$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2356 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00002357fi
jfigusc7e66e32013-05-08 11:32:55 -04002358## -------------------- ##
2359## Main body of script. ##
2360## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002361
2362ac_ext=c
2363ac_cpp='$CPP $CPPFLAGS'
2364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366ac_compiler_gnu=$ac_cv_c_compiler_gnu
2367
2368
2369
Idar Tollefsen600ad962017-01-26 11:24:51 +01002370EMPTY_CFLAGS="no"
2371if test "x$CFLAGS" = "x"; then
2372 EMPTY_CFLAGS="yes"
David McGrewb67061f2005-09-28 14:23:06 +00002373fi
2374
Cullen Jennings235513a2005-09-21 22:51:36 +00002375ac_ext=c
2376ac_cpp='$CPP $CPPFLAGS'
2377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2379ac_compiler_gnu=$ac_cv_c_compiler_gnu
2380if test -n "$ac_tool_prefix"; then
2381 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2382set dummy ${ac_tool_prefix}gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2384$as_echo_n "checking for $ac_word... " >&6; }
2385if ${ac_cv_prog_CC+:} false; then :
2386 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002387else
2388 if test -n "$CC"; then
2389 ac_cv_prog_CC="$CC" # Let the user override the test.
2390else
2391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392for as_dir in $PATH
2393do
2394 IFS=$as_save_IFS
2395 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002398 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002400 break 2
2401 fi
2402done
jfigusc7e66e32013-05-08 11:32:55 -04002403 done
2404IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002405
2406fi
2407fi
2408CC=$ac_cv_prog_CC
2409if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2411$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002412else
jfigusc7e66e32013-05-08 11:32:55 -04002413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2414$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002415fi
2416
jfigusc7e66e32013-05-08 11:32:55 -04002417
Cullen Jennings235513a2005-09-21 22:51:36 +00002418fi
2419if test -z "$ac_cv_prog_CC"; then
2420 ac_ct_CC=$CC
2421 # Extract the first word of "gcc", so it can be a program name with args.
2422set dummy gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2424$as_echo_n "checking for $ac_word... " >&6; }
2425if ${ac_cv_prog_ac_ct_CC+:} false; then :
2426 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002427else
2428 if test -n "$ac_ct_CC"; then
2429 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2430else
2431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432for as_dir in $PATH
2433do
2434 IFS=$as_save_IFS
2435 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002436 for ac_exec_ext in '' $ac_executable_extensions; do
2437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002438 ac_cv_prog_ac_ct_CC="gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002440 break 2
2441 fi
2442done
jfigusc7e66e32013-05-08 11:32:55 -04002443 done
2444IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002445
2446fi
2447fi
2448ac_ct_CC=$ac_cv_prog_ac_ct_CC
2449if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2451$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002452else
jfigusc7e66e32013-05-08 11:32:55 -04002453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2454$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002455fi
2456
jfigusc7e66e32013-05-08 11:32:55 -04002457 if test "x$ac_ct_CC" = x; then
2458 CC=""
2459 else
2460 case $cross_compiling:$ac_tool_warned in
2461yes:)
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2464ac_tool_warned=yes ;;
2465esac
2466 CC=$ac_ct_CC
2467 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002468else
2469 CC="$ac_cv_prog_CC"
2470fi
2471
2472if test -z "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002473 if test -n "$ac_tool_prefix"; then
2474 # 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 +00002475set dummy ${ac_tool_prefix}cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2477$as_echo_n "checking for $ac_word... " >&6; }
2478if ${ac_cv_prog_CC+:} false; then :
2479 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002480else
2481 if test -n "$CC"; then
2482 ac_cv_prog_CC="$CC" # Let the user override the test.
2483else
2484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485for as_dir in $PATH
2486do
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002491 ac_cv_prog_CC="${ac_tool_prefix}cc"
jfigusc7e66e32013-05-08 11:32:55 -04002492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002493 break 2
2494 fi
2495done
jfigusc7e66e32013-05-08 11:32:55 -04002496 done
2497IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002498
2499fi
2500fi
2501CC=$ac_cv_prog_CC
2502if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2504$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002505else
jfigusc7e66e32013-05-08 11:32:55 -04002506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002508fi
2509
jfigusc7e66e32013-05-08 11:32:55 -04002510
Cullen Jennings235513a2005-09-21 22:51:36 +00002511 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002512fi
2513if test -z "$CC"; then
2514 # Extract the first word of "cc", so it can be a program name with args.
2515set dummy cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517$as_echo_n "checking for $ac_word... " >&6; }
2518if ${ac_cv_prog_CC+:} false; then :
2519 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002520else
2521 if test -n "$CC"; then
2522 ac_cv_prog_CC="$CC" # Let the user override the test.
2523else
2524 ac_prog_rejected=no
2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH
2527do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002532 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2533 ac_prog_rejected=yes
2534 continue
2535 fi
2536 ac_cv_prog_CC="cc"
jfigusc7e66e32013-05-08 11:32:55 -04002537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002538 break 2
2539 fi
2540done
jfigusc7e66e32013-05-08 11:32:55 -04002541 done
2542IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002543
2544if test $ac_prog_rejected = yes; then
2545 # We found a bogon in the path, so make sure we never use it.
2546 set dummy $ac_cv_prog_CC
2547 shift
2548 if test $# != 0; then
2549 # We chose a different compiler from the bogus one.
2550 # However, it has the same basename, so the bogon will be chosen
2551 # first if we set CC to just the basename; use the full file name.
2552 shift
2553 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2554 fi
2555fi
2556fi
2557fi
2558CC=$ac_cv_prog_CC
2559if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2561$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002562else
jfigusc7e66e32013-05-08 11:32:55 -04002563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002565fi
2566
jfigusc7e66e32013-05-08 11:32:55 -04002567
Cullen Jennings235513a2005-09-21 22:51:36 +00002568fi
2569if test -z "$CC"; then
2570 if test -n "$ac_tool_prefix"; then
jfigusc7e66e32013-05-08 11:32:55 -04002571 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002572 do
2573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2574set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576$as_echo_n "checking for $ac_word... " >&6; }
2577if ${ac_cv_prog_CC+:} false; then :
2578 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002579else
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2582else
2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002590 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002592 break 2
2593 fi
2594done
jfigusc7e66e32013-05-08 11:32:55 -04002595 done
2596IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002597
2598fi
2599fi
2600CC=$ac_cv_prog_CC
2601if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2603$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002604else
jfigusc7e66e32013-05-08 11:32:55 -04002605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002607fi
2608
jfigusc7e66e32013-05-08 11:32:55 -04002609
Cullen Jennings235513a2005-09-21 22:51:36 +00002610 test -n "$CC" && break
2611 done
2612fi
2613if test -z "$CC"; then
2614 ac_ct_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04002615 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002616do
2617 # Extract the first word of "$ac_prog", so it can be a program name with args.
2618set dummy $ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620$as_echo_n "checking for $ac_word... " >&6; }
2621if ${ac_cv_prog_ac_ct_CC+:} false; then :
2622 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002623else
2624 if test -n "$ac_ct_CC"; then
2625 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2626else
2627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628for as_dir in $PATH
2629do
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002634 ac_cv_prog_ac_ct_CC="$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002636 break 2
2637 fi
2638done
jfigusc7e66e32013-05-08 11:32:55 -04002639 done
2640IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002641
2642fi
2643fi
2644ac_ct_CC=$ac_cv_prog_ac_ct_CC
2645if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2647$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002648else
jfigusc7e66e32013-05-08 11:32:55 -04002649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002651fi
2652
jfigusc7e66e32013-05-08 11:32:55 -04002653
Cullen Jennings235513a2005-09-21 22:51:36 +00002654 test -n "$ac_ct_CC" && break
2655done
2656
jfigusc7e66e32013-05-08 11:32:55 -04002657 if test "x$ac_ct_CC" = x; then
2658 CC=""
2659 else
2660 case $cross_compiling:$ac_tool_warned in
2661yes:)
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2664ac_tool_warned=yes ;;
2665esac
2666 CC=$ac_ct_CC
2667 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002668fi
2669
2670fi
2671
2672
jfigusc7e66e32013-05-08 11:32:55 -04002673test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2675as_fn_error $? "no acceptable C compiler found in \$PATH
2676See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002677
2678# Provide some information about the compiler.
jfigusc7e66e32013-05-08 11:32:55 -04002679$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2680set X $ac_compile
2681ac_compiler=$2
2682for ac_option in --version -v -V -qversion; do
2683 { { ac_try="$ac_compiler $ac_option >&5"
2684case "(($ac_try" in
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2687esac
2688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2689$as_echo "$ac_try_echo"; } >&5
2690 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Cullen Jennings235513a2005-09-21 22:51:36 +00002691 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002692 if test -s conftest.err; then
2693 sed '10a\
2694... rest of stderr output deleted ...
2695 10q' conftest.err >conftest.er1
2696 cat conftest.er1 >&5
2697 fi
2698 rm -f conftest.er1 conftest.err
2699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2700 test $ac_status = 0; }
2701done
Cullen Jennings235513a2005-09-21 22:51:36 +00002702
jfigusc7e66e32013-05-08 11:32:55 -04002703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002704/* end confdefs.h. */
2705
2706int
2707main ()
2708{
2709
2710 ;
2711 return 0;
2712}
2713_ACEOF
2714ac_clean_files_save=$ac_clean_files
jfigusc7e66e32013-05-08 11:32:55 -04002715ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Cullen Jennings235513a2005-09-21 22:51:36 +00002716# Try to create an executable without -o first, disregard a.out.
2717# It will help us diagnose broken compilers, and finding out an intuition
2718# of exeext.
jfigusc7e66e32013-05-08 11:32:55 -04002719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2720$as_echo_n "checking whether the C compiler works... " >&6; }
2721ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002722
jfigusc7e66e32013-05-08 11:32:55 -04002723# The possible output files:
2724ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2725
2726ac_rmfiles=
2727for ac_file in $ac_files
2728do
2729 case $ac_file in
2730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2731 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2732 esac
2733done
2734rm -f $ac_rmfiles
2735
2736if { { ac_try="$ac_link_default"
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_default") 2>&5
2744 ac_status=$?
2745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2746 test $ac_status = 0; }; then :
2747 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2748# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2749# in a Makefile. We should not override ac_cv_exeext if it was cached,
2750# so that the user can short-circuit this test for compilers unknown to
2751# Autoconf.
2752for ac_file in $ac_files ''
Cullen Jennings235513a2005-09-21 22:51:36 +00002753do
2754 test -f "$ac_file" || continue
2755 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00002757 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002758 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00002759 # We found the default executable, but exeext='' is most
2760 # certainly right.
2761 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002762 *.* )
jfigusc7e66e32013-05-08 11:32:55 -04002763 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2764 then :; else
2765 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2766 fi
2767 # We set ac_cv_exeext here because the later test for it is not
2768 # safe: cross compilers may not add the suffix if given an `-o'
2769 # argument, so we may need to know it at that point already.
2770 # Even if this section looks crufty: it has the advantage of
2771 # actually working.
David McGrewfec49dd2005-09-23 19:34:11 +00002772 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002773 * )
David McGrewfec49dd2005-09-23 19:34:11 +00002774 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002775 esac
2776done
jfigusc7e66e32013-05-08 11:32:55 -04002777test "$ac_cv_exeext" = no && ac_cv_exeext=
2778
Cullen Jennings235513a2005-09-21 22:51:36 +00002779else
jfigusc7e66e32013-05-08 11:32:55 -04002780 ac_file=''
2781fi
2782if test -z "$ac_file"; then :
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784$as_echo "no" >&6; }
2785$as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002786sed 's/^/| /' conftest.$ac_ext >&5
2787
jfigusc7e66e32013-05-08 11:32:55 -04002788{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2790as_fn_error 77 "C compiler cannot create executables
2791See \`config.log' for more details" "$LINENO" 5; }
2792else
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2794$as_echo "yes" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002795fi
jfigusc7e66e32013-05-08 11:32:55 -04002796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2797$as_echo_n "checking for C compiler default output file name... " >&6; }
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2799$as_echo "$ac_file" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002800ac_exeext=$ac_cv_exeext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002801
jfigusc7e66e32013-05-08 11:32:55 -04002802rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002803ac_clean_files=$ac_clean_files_save
jfigusc7e66e32013-05-08 11:32:55 -04002804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2805$as_echo_n "checking for suffix of executables... " >&6; }
2806if { { ac_try="$ac_link"
2807case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2810esac
2811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2812$as_echo "$ac_try_echo"; } >&5
2813 (eval "$ac_link") 2>&5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002814 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2816 test $ac_status = 0; }; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002817 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2818# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2819# work properly (i.e., refer to `conftest.exe'), while it won't with
2820# `rm'.
2821for ac_file in conftest.exe conftest conftest.*; do
2822 test -f "$ac_file" || continue
2823 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002825 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00002826 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002827 * ) break;;
2828 esac
2829done
2830else
jfigusc7e66e32013-05-08 11:32:55 -04002831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2833as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2834See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002835fi
jfigusc7e66e32013-05-08 11:32:55 -04002836rm -f conftest conftest$ac_cv_exeext
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2838$as_echo "$ac_cv_exeext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002839
2840rm -f conftest.$ac_ext
2841EXEEXT=$ac_cv_exeext
2842ac_exeext=$EXEEXT
jfigusc7e66e32013-05-08 11:32:55 -04002843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844/* end confdefs.h. */
2845#include <stdio.h>
2846int
2847main ()
2848{
2849FILE *f = fopen ("conftest.out", "w");
2850 return ferror (f) || fclose (f) != 0;
2851
2852 ;
2853 return 0;
2854}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002855_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002856ac_clean_files="$ac_clean_files conftest.out"
2857# Check that the compiler produces executables we can run. If not, either
2858# the compiler is broken, or we cross compile.
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2860$as_echo_n "checking whether we are cross compiling... " >&6; }
2861if test "$cross_compiling" != yes; then
2862 { { ac_try="$ac_link"
2863case "(($ac_try" in
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2866esac
2867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2868$as_echo "$ac_try_echo"; } >&5
2869 (eval "$ac_link") 2>&5
2870 ac_status=$?
2871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2872 test $ac_status = 0; }
2873 if { ac_try='./conftest$ac_cv_exeext'
2874 { { case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877esac
2878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2879$as_echo "$ac_try_echo"; } >&5
2880 (eval "$ac_try") 2>&5
2881 ac_status=$?
2882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2883 test $ac_status = 0; }; }; then
2884 cross_compiling=no
2885 else
2886 if test "$cross_compiling" = maybe; then
2887 cross_compiling=yes
2888 else
2889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2891as_fn_error $? "cannot run C compiled programs.
2892If you meant to cross compile, use \`--host'.
2893See \`config.log' for more details" "$LINENO" 5; }
2894 fi
2895 fi
2896fi
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2898$as_echo "$cross_compiling" >&6; }
2899
2900rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2901ac_clean_files=$ac_clean_files_save
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2903$as_echo_n "checking for suffix of object files... " >&6; }
2904if ${ac_cv_objext+:} false; then :
2905 $as_echo_n "(cached) " >&6
2906else
2907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002908/* end confdefs.h. */
2909
2910int
2911main ()
2912{
2913
2914 ;
2915 return 0;
2916}
2917_ACEOF
2918rm -f conftest.o conftest.obj
jfigusc7e66e32013-05-08 11:32:55 -04002919if { { ac_try="$ac_compile"
2920case "(($ac_try" in
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2923esac
2924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2925$as_echo "$ac_try_echo"; } >&5
2926 (eval "$ac_compile") 2>&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002927 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2929 test $ac_status = 0; }; then :
2930 for ac_file in conftest.o conftest.obj conftest.*; do
2931 test -f "$ac_file" || continue;
Cullen Jennings235513a2005-09-21 22:51:36 +00002932 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002934 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2935 break;;
2936 esac
2937done
2938else
jfigusc7e66e32013-05-08 11:32:55 -04002939 $as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002940sed 's/^/| /' conftest.$ac_ext >&5
2941
jfigusc7e66e32013-05-08 11:32:55 -04002942{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2944as_fn_error $? "cannot compute suffix of object files: cannot compile
2945See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002946fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002947rm -f conftest.$ac_cv_objext conftest.$ac_ext
2948fi
jfigusc7e66e32013-05-08 11:32:55 -04002949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2950$as_echo "$ac_cv_objext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002951OBJEXT=$ac_cv_objext
2952ac_objext=$OBJEXT
jfigusc7e66e32013-05-08 11:32:55 -04002953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2954$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2955if ${ac_cv_c_compiler_gnu+:} false; then :
2956 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002957else
jfigusc7e66e32013-05-08 11:32:55 -04002958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002959/* end confdefs.h. */
2960
2961int
2962main ()
2963{
2964#ifndef __GNUC__
2965 choke me
2966#endif
2967
2968 ;
2969 return 0;
2970}
2971_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002972if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002973 ac_compiler_gnu=yes
2974else
jfigusc7e66e32013-05-08 11:32:55 -04002975 ac_compiler_gnu=no
Cullen Jennings235513a2005-09-21 22:51:36 +00002976fi
jfigusc7e66e32013-05-08 11:32:55 -04002977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002978ac_cv_c_compiler_gnu=$ac_compiler_gnu
2979
2980fi
jfigusc7e66e32013-05-08 11:32:55 -04002981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2982$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2983if test $ac_compiler_gnu = yes; then
2984 GCC=yes
2985else
2986 GCC=
2987fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002988ac_test_CFLAGS=${CFLAGS+set}
2989ac_save_CFLAGS=$CFLAGS
jfigusc7e66e32013-05-08 11:32:55 -04002990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2991$as_echo_n "checking whether $CC accepts -g... " >&6; }
2992if ${ac_cv_prog_cc_g+:} false; then :
2993 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002994else
jfigusc7e66e32013-05-08 11:32:55 -04002995 ac_save_c_werror_flag=$ac_c_werror_flag
2996 ac_c_werror_flag=yes
2997 ac_cv_prog_cc_g=no
2998 CFLAGS="-g"
2999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003000/* end confdefs.h. */
3001
3002int
3003main ()
3004{
3005
3006 ;
3007 return 0;
3008}
3009_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003010if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003011 ac_cv_prog_cc_g=yes
3012else
jfigusc7e66e32013-05-08 11:32:55 -04003013 CFLAGS=""
3014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00003016
jfigusc7e66e32013-05-08 11:32:55 -04003017int
3018main ()
3019{
3020
3021 ;
3022 return 0;
3023}
3024_ACEOF
3025if ac_fn_c_try_compile "$LINENO"; then :
3026
3027else
3028 ac_c_werror_flag=$ac_save_c_werror_flag
3029 CFLAGS="-g"
3030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031/* end confdefs.h. */
3032
3033int
3034main ()
3035{
3036
3037 ;
3038 return 0;
3039}
3040_ACEOF
3041if ac_fn_c_try_compile "$LINENO"; then :
3042 ac_cv_prog_cc_g=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003043fi
jfigusc7e66e32013-05-08 11:32:55 -04003044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003045fi
jfigusc7e66e32013-05-08 11:32:55 -04003046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3047fi
3048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049 ac_c_werror_flag=$ac_save_c_werror_flag
3050fi
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3052$as_echo "$ac_cv_prog_cc_g" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003053if test "$ac_test_CFLAGS" = set; then
3054 CFLAGS=$ac_save_CFLAGS
3055elif test $ac_cv_prog_cc_g = yes; then
3056 if test "$GCC" = yes; then
3057 CFLAGS="-g -O2"
3058 else
3059 CFLAGS="-g"
3060 fi
3061else
3062 if test "$GCC" = yes; then
3063 CFLAGS="-O2"
3064 else
3065 CFLAGS=
3066 fi
3067fi
jfigusc7e66e32013-05-08 11:32:55 -04003068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3069$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3070if ${ac_cv_prog_cc_c89+:} false; then :
3071 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003072else
jfigusc7e66e32013-05-08 11:32:55 -04003073 ac_cv_prog_cc_c89=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003074ac_save_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04003075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003076/* end confdefs.h. */
3077#include <stdarg.h>
3078#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -04003079struct stat;
Cullen Jennings235513a2005-09-21 22:51:36 +00003080/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3081struct buf { int x; };
3082FILE * (*rcsopen) (struct buf *, struct stat *, int);
3083static char *e (p, i)
3084 char **p;
3085 int i;
3086{
3087 return p[i];
3088}
3089static char *f (char * (*g) (char **, int), char **p, ...)
3090{
3091 char *s;
3092 va_list v;
3093 va_start (v,p);
3094 s = g (p, va_arg (v,int));
3095 va_end (v);
3096 return s;
3097}
David McGrewfec49dd2005-09-23 19:34:11 +00003098
3099/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3100 function prototypes and stuff, but not '\xHH' hex character constants.
3101 These don't provoke an error unfortunately, instead are silently treated
jfigusc7e66e32013-05-08 11:32:55 -04003102 as 'x'. The following induces an error, until -std is added to get
David McGrewfec49dd2005-09-23 19:34:11 +00003103 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3104 array size at least. It's necessary to write '\x00'==0 to get something
jfigusc7e66e32013-05-08 11:32:55 -04003105 that's true only with -std. */
David McGrewfec49dd2005-09-23 19:34:11 +00003106int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3107
jfigusc7e66e32013-05-08 11:32:55 -04003108/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3109 inside strings and character constants. */
3110#define FOO(x) 'x'
3111int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3112
Cullen Jennings235513a2005-09-21 22:51:36 +00003113int test (int i, double x);
3114struct s1 {int (*f) (int a);};
3115struct s2 {int (*f) (double a);};
3116int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3117int argc;
3118char **argv;
3119int
3120main ()
3121{
3122return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3123 ;
3124 return 0;
3125}
3126_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003127for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3128 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Cullen Jennings235513a2005-09-21 22:51:36 +00003129do
3130 CC="$ac_save_CC $ac_arg"
jfigusc7e66e32013-05-08 11:32:55 -04003131 if ac_fn_c_try_compile "$LINENO"; then :
3132 ac_cv_prog_cc_c89=$ac_arg
Cullen Jennings235513a2005-09-21 22:51:36 +00003133fi
jfigusc7e66e32013-05-08 11:32:55 -04003134rm -f core conftest.err conftest.$ac_objext
3135 test "x$ac_cv_prog_cc_c89" != "xno" && break
Cullen Jennings235513a2005-09-21 22:51:36 +00003136done
jfigusc7e66e32013-05-08 11:32:55 -04003137rm -f conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003138CC=$ac_save_CC
3139
3140fi
jfigusc7e66e32013-05-08 11:32:55 -04003141# AC_CACHE_VAL
3142case "x$ac_cv_prog_cc_c89" in
3143 x)
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3145$as_echo "none needed" >&6; } ;;
3146 xno)
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3148$as_echo "unsupported" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003149 *)
jfigusc7e66e32013-05-08 11:32:55 -04003150 CC="$CC $ac_cv_prog_cc_c89"
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3152$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003153esac
jfigusc7e66e32013-05-08 11:32:55 -04003154if test "x$ac_cv_prog_cc_c89" != xno; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003155
3156fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003157
Cullen Jennings235513a2005-09-21 22:51:36 +00003158ac_ext=c
3159ac_cpp='$CPP $CPPFLAGS'
3160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162ac_compiler_gnu=$ac_cv_c_compiler_gnu
3163
Idar Tollefsencb771f72017-05-03 13:20:08 +02003164ac_ext=c
3165ac_cpp='$CPP $CPPFLAGS'
3166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3170$as_echo_n "checking how to run the C preprocessor... " >&6; }
3171# On Suns, sometimes $CPP names a directory.
3172if test -n "$CPP" && test -d "$CPP"; then
3173 CPP=
3174fi
3175if test -z "$CPP"; then
3176 if ${ac_cv_prog_CPP+:} false; then :
3177 $as_echo_n "(cached) " >&6
3178else
3179 # Double quotes because CPP needs to be expanded
3180 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3181 do
3182 ac_preproc_ok=false
3183for ac_c_preproc_warn_flag in '' yes
3184do
3185 # Use a header file that comes with gcc, so configuring glibc
3186 # with a fresh cross-compiler works.
3187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3188 # <limits.h> exists even on freestanding compilers.
3189 # On the NeXT, cc -E runs the code through the compiler's parser,
3190 # not just through cpp. "Syntax error" is here to catch this case.
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192/* end confdefs.h. */
3193#ifdef __STDC__
3194# include <limits.h>
3195#else
3196# include <assert.h>
3197#endif
3198 Syntax error
3199_ACEOF
3200if ac_fn_c_try_cpp "$LINENO"; then :
3201
3202else
3203 # Broken: fails on valid input.
3204continue
3205fi
3206rm -f conftest.err conftest.i conftest.$ac_ext
3207
3208 # OK, works on sane cases. Now check whether nonexistent headers
3209 # can be detected and how.
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211/* end confdefs.h. */
3212#include <ac_nonexistent.h>
3213_ACEOF
3214if ac_fn_c_try_cpp "$LINENO"; then :
3215 # Broken: success on invalid input.
3216continue
3217else
3218 # Passes both tests.
3219ac_preproc_ok=:
3220break
3221fi
3222rm -f conftest.err conftest.i conftest.$ac_ext
3223
3224done
3225# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3226rm -f conftest.i conftest.err conftest.$ac_ext
3227if $ac_preproc_ok; then :
3228 break
3229fi
3230
3231 done
3232 ac_cv_prog_CPP=$CPP
3233
3234fi
3235 CPP=$ac_cv_prog_CPP
3236else
3237 ac_cv_prog_CPP=$CPP
3238fi
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3240$as_echo "$CPP" >&6; }
3241ac_preproc_ok=false
3242for ac_c_preproc_warn_flag in '' yes
3243do
3244 # Use a header file that comes with gcc, so configuring glibc
3245 # with a fresh cross-compiler works.
3246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3247 # <limits.h> exists even on freestanding compilers.
3248 # On the NeXT, cc -E runs the code through the compiler's parser,
3249 # not just through cpp. "Syntax error" is here to catch this case.
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251/* end confdefs.h. */
3252#ifdef __STDC__
3253# include <limits.h>
3254#else
3255# include <assert.h>
3256#endif
3257 Syntax error
3258_ACEOF
3259if ac_fn_c_try_cpp "$LINENO"; then :
3260
3261else
3262 # Broken: fails on valid input.
3263continue
3264fi
3265rm -f conftest.err conftest.i conftest.$ac_ext
3266
3267 # OK, works on sane cases. Now check whether nonexistent headers
3268 # can be detected and how.
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270/* end confdefs.h. */
3271#include <ac_nonexistent.h>
3272_ACEOF
3273if ac_fn_c_try_cpp "$LINENO"; then :
3274 # Broken: success on invalid input.
3275continue
3276else
3277 # Passes both tests.
3278ac_preproc_ok=:
3279break
3280fi
3281rm -f conftest.err conftest.i conftest.$ac_ext
3282
3283done
3284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3285rm -f conftest.i conftest.err conftest.$ac_ext
3286if $ac_preproc_ok; then :
3287
3288else
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3292See \`config.log' for more details" "$LINENO" 5; }
3293fi
3294
3295ac_ext=c
3296ac_cpp='$CPP $CPPFLAGS'
3297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300
Pascal Buhlerac97f3e2019-06-26 13:54:43 +02003301ac_ext=cpp
3302ac_cpp='$CXXCPP $CPPFLAGS'
3303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3306if test -z "$CXX"; then
3307 if test -n "$CCC"; then
3308 CXX=$CCC
3309 else
3310 if test -n "$ac_tool_prefix"; then
3311 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3312 do
3313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3314set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316$as_echo_n "checking for $ac_word... " >&6; }
3317if ${ac_cv_prog_CXX+:} false; then :
3318 $as_echo_n "(cached) " >&6
3319else
3320 if test -n "$CXX"; then
3321 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3322else
3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324for as_dir in $PATH
3325do
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 break 2
3333 fi
3334done
3335 done
3336IFS=$as_save_IFS
3337
3338fi
3339fi
3340CXX=$ac_cv_prog_CXX
3341if test -n "$CXX"; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3343$as_echo "$CXX" >&6; }
3344else
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346$as_echo "no" >&6; }
3347fi
3348
3349
3350 test -n "$CXX" && break
3351 done
3352fi
3353if test -z "$CXX"; then
3354 ac_ct_CXX=$CXX
3355 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3356do
3357 # Extract the first word of "$ac_prog", so it can be a program name with args.
3358set dummy $ac_prog; ac_word=$2
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360$as_echo_n "checking for $ac_word... " >&6; }
3361if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3362 $as_echo_n "(cached) " >&6
3363else
3364 if test -n "$ac_ct_CXX"; then
3365 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3366else
3367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368for as_dir in $PATH
3369do
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374 ac_cv_prog_ac_ct_CXX="$ac_prog"
3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 break 2
3377 fi
3378done
3379 done
3380IFS=$as_save_IFS
3381
3382fi
3383fi
3384ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3385if test -n "$ac_ct_CXX"; then
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3387$as_echo "$ac_ct_CXX" >&6; }
3388else
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390$as_echo "no" >&6; }
3391fi
3392
3393
3394 test -n "$ac_ct_CXX" && break
3395done
3396
3397 if test "x$ac_ct_CXX" = x; then
3398 CXX="g++"
3399 else
3400 case $cross_compiling:$ac_tool_warned in
3401yes:)
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3404ac_tool_warned=yes ;;
3405esac
3406 CXX=$ac_ct_CXX
3407 fi
3408fi
3409
3410 fi
3411fi
3412# Provide some information about the compiler.
3413$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3414set X $ac_compile
3415ac_compiler=$2
3416for ac_option in --version -v -V -qversion; do
3417 { { ac_try="$ac_compiler $ac_option >&5"
3418case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421esac
3422eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423$as_echo "$ac_try_echo"; } >&5
3424 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3425 ac_status=$?
3426 if test -s conftest.err; then
3427 sed '10a\
3428... rest of stderr output deleted ...
3429 10q' conftest.err >conftest.er1
3430 cat conftest.er1 >&5
3431 fi
3432 rm -f conftest.er1 conftest.err
3433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434 test $ac_status = 0; }
3435done
3436
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3438$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3439if ${ac_cv_cxx_compiler_gnu+:} false; then :
3440 $as_echo_n "(cached) " >&6
3441else
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443/* end confdefs.h. */
3444
3445int
3446main ()
3447{
3448#ifndef __GNUC__
3449 choke me
3450#endif
3451
3452 ;
3453 return 0;
3454}
3455_ACEOF
3456if ac_fn_cxx_try_compile "$LINENO"; then :
3457 ac_compiler_gnu=yes
3458else
3459 ac_compiler_gnu=no
3460fi
3461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3462ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3463
3464fi
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3466$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3467if test $ac_compiler_gnu = yes; then
3468 GXX=yes
3469else
3470 GXX=
3471fi
3472ac_test_CXXFLAGS=${CXXFLAGS+set}
3473ac_save_CXXFLAGS=$CXXFLAGS
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3475$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3476if ${ac_cv_prog_cxx_g+:} false; then :
3477 $as_echo_n "(cached) " >&6
3478else
3479 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3480 ac_cxx_werror_flag=yes
3481 ac_cv_prog_cxx_g=no
3482 CXXFLAGS="-g"
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484/* end confdefs.h. */
3485
3486int
3487main ()
3488{
3489
3490 ;
3491 return 0;
3492}
3493_ACEOF
3494if ac_fn_cxx_try_compile "$LINENO"; then :
3495 ac_cv_prog_cxx_g=yes
3496else
3497 CXXFLAGS=""
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499/* end confdefs.h. */
3500
3501int
3502main ()
3503{
3504
3505 ;
3506 return 0;
3507}
3508_ACEOF
3509if ac_fn_cxx_try_compile "$LINENO"; then :
3510
3511else
3512 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3513 CXXFLAGS="-g"
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515/* end confdefs.h. */
3516
3517int
3518main ()
3519{
3520
3521 ;
3522 return 0;
3523}
3524_ACEOF
3525if ac_fn_cxx_try_compile "$LINENO"; then :
3526 ac_cv_prog_cxx_g=yes
3527fi
3528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3529fi
3530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3531fi
3532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3534fi
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3536$as_echo "$ac_cv_prog_cxx_g" >&6; }
3537if test "$ac_test_CXXFLAGS" = set; then
3538 CXXFLAGS=$ac_save_CXXFLAGS
3539elif test $ac_cv_prog_cxx_g = yes; then
3540 if test "$GXX" = yes; then
3541 CXXFLAGS="-g -O2"
3542 else
3543 CXXFLAGS="-g"
3544 fi
3545else
3546 if test "$GXX" = yes; then
3547 CXXFLAGS="-O2"
3548 else
3549 CXXFLAGS=
3550 fi
3551fi
3552ac_ext=c
3553ac_cpp='$CPP $CPPFLAGS'
3554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3556ac_compiler_gnu=$ac_cv_c_compiler_gnu
3557
Idar Tollefsencb771f72017-05-03 13:20:08 +02003558
Martin Meszaros3edfada2017-11-01 10:55:33 +01003559ac_aux_dir=
3560for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3561 if test -f "$ac_dir/install-sh"; then
3562 ac_aux_dir=$ac_dir
3563 ac_install_sh="$ac_aux_dir/install-sh -c"
3564 break
3565 elif test -f "$ac_dir/install.sh"; then
3566 ac_aux_dir=$ac_dir
3567 ac_install_sh="$ac_aux_dir/install.sh -c"
3568 break
3569 elif test -f "$ac_dir/shtool"; then
3570 ac_aux_dir=$ac_dir
3571 ac_install_sh="$ac_aux_dir/shtool install -c"
3572 break
3573 fi
3574done
3575if test -z "$ac_aux_dir"; then
3576 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3577fi
3578
3579# These three variables are undocumented and unsupported,
3580# and are intended to be withdrawn in a future Autoconf release.
3581# They can cause serious problems if a builder's source tree is in a directory
3582# whose full name contains unusual characters.
3583ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3584ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3585ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3586
3587
3588# Expand $ac_aux_dir to an absolute path.
3589am_aux_dir=`cd "$ac_aux_dir" && pwd`
Idar Tollefsencb771f72017-05-03 13:20:08 +02003590
jfigus1ce6a742015-04-06 08:54:01 -04003591
3592if test -n "$ac_tool_prefix"; then
3593 for ac_prog in ar lib "link -lib"
3594 do
3595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3596set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598$as_echo_n "checking for $ac_word... " >&6; }
3599if ${ac_cv_prog_AR+:} false; then :
3600 $as_echo_n "(cached) " >&6
3601else
3602 if test -n "$AR"; then
3603 ac_cv_prog_AR="$AR" # Let the user override the test.
3604else
3605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606for as_dir in $PATH
3607do
3608 IFS=$as_save_IFS
3609 test -z "$as_dir" && as_dir=.
3610 for ac_exec_ext in '' $ac_executable_extensions; do
3611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3612 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 break 2
3615 fi
3616done
3617 done
3618IFS=$as_save_IFS
3619
3620fi
3621fi
3622AR=$ac_cv_prog_AR
3623if test -n "$AR"; then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3625$as_echo "$AR" >&6; }
3626else
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628$as_echo "no" >&6; }
3629fi
3630
3631
3632 test -n "$AR" && break
3633 done
3634fi
3635if test -z "$AR"; then
3636 ac_ct_AR=$AR
3637 for ac_prog in ar lib "link -lib"
3638do
3639 # Extract the first word of "$ac_prog", so it can be a program name with args.
3640set dummy $ac_prog; ac_word=$2
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642$as_echo_n "checking for $ac_word... " >&6; }
3643if ${ac_cv_prog_ac_ct_AR+:} false; then :
3644 $as_echo_n "(cached) " >&6
3645else
3646 if test -n "$ac_ct_AR"; then
3647 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3648else
3649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650for as_dir in $PATH
3651do
3652 IFS=$as_save_IFS
3653 test -z "$as_dir" && as_dir=.
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3656 ac_cv_prog_ac_ct_AR="$ac_prog"
3657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 break 2
3659 fi
3660done
3661 done
3662IFS=$as_save_IFS
3663
3664fi
3665fi
3666ac_ct_AR=$ac_cv_prog_ac_ct_AR
3667if test -n "$ac_ct_AR"; then
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3669$as_echo "$ac_ct_AR" >&6; }
3670else
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672$as_echo "no" >&6; }
3673fi
3674
3675
3676 test -n "$ac_ct_AR" && break
3677done
3678
3679 if test "x$ac_ct_AR" = x; then
3680 AR="false"
3681 else
3682 case $cross_compiling:$ac_tool_warned in
3683yes:)
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3686ac_tool_warned=yes ;;
3687esac
3688 AR=$ac_ct_AR
3689 fi
3690fi
3691
3692: ${AR=ar}
3693
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3695$as_echo_n "checking the archiver ($AR) interface... " >&6; }
3696if ${am_cv_ar_interface+:} false; then :
3697 $as_echo_n "(cached) " >&6
3698else
3699 ac_ext=c
3700ac_cpp='$CPP $CPPFLAGS'
3701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704
3705 am_cv_ar_interface=ar
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707/* end confdefs.h. */
3708int some_variable = 0;
3709_ACEOF
3710if ac_fn_c_try_compile "$LINENO"; then :
3711 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3713 (eval $am_ar_try) 2>&5
3714 ac_status=$?
3715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3716 test $ac_status = 0; }
3717 if test "$ac_status" -eq 0; then
3718 am_cv_ar_interface=ar
3719 else
3720 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3722 (eval $am_ar_try) 2>&5
3723 ac_status=$?
3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725 test $ac_status = 0; }
3726 if test "$ac_status" -eq 0; then
3727 am_cv_ar_interface=lib
3728 else
3729 am_cv_ar_interface=unknown
3730 fi
3731 fi
3732 rm -f conftest.lib libconftest.a
3733
3734fi
3735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 ac_ext=c
3737ac_cpp='$CPP $CPPFLAGS'
3738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740ac_compiler_gnu=$ac_cv_c_compiler_gnu
3741
3742fi
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3744$as_echo "$am_cv_ar_interface" >&6; }
3745
3746case $am_cv_ar_interface in
3747ar)
3748 ;;
3749lib)
3750 # Microsoft lib, so override with the ar-lib wrapper script.
3751 # FIXME: It is wrong to rewrite AR.
3752 # But if we don't then we get into trouble of one sort or another.
3753 # A longer-term fix would be to have automake use am__AR in this case,
3754 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3755 # similar.
3756 AR="$am_aux_dir/ar-lib $AR"
3757 ;;
3758unknown)
3759 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3760 ;;
3761esac
3762
3763if test -n "$ac_tool_prefix"; then
3764 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3765set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3767$as_echo_n "checking for $ac_word... " >&6; }
3768if ${ac_cv_prog_RANLIB+:} false; then :
3769 $as_echo_n "(cached) " >&6
3770else
3771 if test -n "$RANLIB"; then
3772 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3773else
3774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775for as_dir in $PATH
3776do
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3781 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 break 2
3784 fi
3785done
3786 done
3787IFS=$as_save_IFS
3788
3789fi
3790fi
3791RANLIB=$ac_cv_prog_RANLIB
3792if test -n "$RANLIB"; then
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3794$as_echo "$RANLIB" >&6; }
3795else
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797$as_echo "no" >&6; }
3798fi
3799
3800
3801fi
3802if test -z "$ac_cv_prog_RANLIB"; then
3803 ac_ct_RANLIB=$RANLIB
3804 # Extract the first word of "ranlib", so it can be a program name with args.
3805set dummy ranlib; ac_word=$2
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3807$as_echo_n "checking for $ac_word... " >&6; }
3808if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3809 $as_echo_n "(cached) " >&6
3810else
3811 if test -n "$ac_ct_RANLIB"; then
3812 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3813else
3814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815for as_dir in $PATH
3816do
3817 IFS=$as_save_IFS
3818 test -z "$as_dir" && as_dir=.
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3821 ac_cv_prog_ac_ct_RANLIB="ranlib"
3822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 break 2
3824 fi
3825done
3826 done
3827IFS=$as_save_IFS
3828
3829fi
3830fi
3831ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3832if test -n "$ac_ct_RANLIB"; then
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3834$as_echo "$ac_ct_RANLIB" >&6; }
3835else
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3837$as_echo "no" >&6; }
3838fi
3839
3840 if test "x$ac_ct_RANLIB" = x; then
3841 RANLIB=":"
3842 else
3843 case $cross_compiling:$ac_tool_warned in
3844yes:)
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3847ac_tool_warned=yes ;;
3848esac
3849 RANLIB=$ac_ct_RANLIB
3850 fi
3851else
3852 RANLIB="$ac_cv_prog_RANLIB"
3853fi
3854
David McGrewb67061f2005-09-28 14:23:06 +00003855# Find a good install program. We prefer a C program (faster),
3856# so one script is as good as another. But avoid the broken or
3857# incompatible versions:
3858# SysV /etc/install, /usr/sbin/install
3859# SunOS /usr/etc/install
3860# IRIX /sbin/install
3861# AIX /bin/install
3862# AmigaOS /C/install, which installs bootblocks on floppy discs
3863# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3864# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3865# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3866# OS/2's system install, which has a completely different semantic
3867# ./install, which can be erroneously created by make from ./install.sh.
jfigusc7e66e32013-05-08 11:32:55 -04003868# Reject install programs that cannot install multiple files.
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3870$as_echo_n "checking for a BSD-compatible install... " >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00003871if test -z "$INSTALL"; then
jfigusc7e66e32013-05-08 11:32:55 -04003872if ${ac_cv_path_install+:} false; then :
3873 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003874else
David McGrewb67061f2005-09-28 14:23:06 +00003875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876for as_dir in $PATH
3877do
3878 IFS=$as_save_IFS
3879 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04003880 # Account for people who put trailing slashes in PATH elements.
3881case $as_dir/ in #((
3882 ./ | .// | /[cC]/* | \
David McGrewb67061f2005-09-28 14:23:06 +00003883 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jfigusc7e66e32013-05-08 11:32:55 -04003884 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
David McGrewb67061f2005-09-28 14:23:06 +00003885 /usr/ucb/* ) ;;
3886 *)
3887 # OSF1 and SCO ODT 3.0 have their own names for install.
3888 # Don't use installbsd from OSF since it installs stuff as root
3889 # by default.
3890 for ac_prog in ginstall scoinst install; do
3891 for ac_exec_ext in '' $ac_executable_extensions; do
jfigusc7e66e32013-05-08 11:32:55 -04003892 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
David McGrewb67061f2005-09-28 14:23:06 +00003893 if test $ac_prog = install &&
3894 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3895 # AIX install. It has an incompatible calling convention.
3896 :
3897 elif test $ac_prog = install &&
3898 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3899 # program-specific install script used by HP pwplus--don't use.
3900 :
3901 else
jfigusc7e66e32013-05-08 11:32:55 -04003902 rm -rf conftest.one conftest.two conftest.dir
3903 echo one > conftest.one
3904 echo two > conftest.two
3905 mkdir conftest.dir
3906 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3907 test -s conftest.one && test -s conftest.two &&
3908 test -s conftest.dir/conftest.one &&
3909 test -s conftest.dir/conftest.two
3910 then
3911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3912 break 3
3913 fi
David McGrewb67061f2005-09-28 14:23:06 +00003914 fi
3915 fi
3916 done
3917 done
3918 ;;
3919esac
Cullen Jennings235513a2005-09-21 22:51:36 +00003920
jfigusc7e66e32013-05-08 11:32:55 -04003921 done
3922IFS=$as_save_IFS
3923
3924rm -rf conftest.one conftest.two conftest.dir
Cullen Jennings235513a2005-09-21 22:51:36 +00003925
3926fi
David McGrewb67061f2005-09-28 14:23:06 +00003927 if test "${ac_cv_path_install+set}" = set; then
3928 INSTALL=$ac_cv_path_install
3929 else
jfigusc7e66e32013-05-08 11:32:55 -04003930 # As a last resort, use the slow shell script. Don't cache a
3931 # value for INSTALL within a source directory, because that will
David McGrewb67061f2005-09-28 14:23:06 +00003932 # break other packages using the cache if that directory is
jfigusc7e66e32013-05-08 11:32:55 -04003933 # removed, or if the value is a relative name.
David McGrewb67061f2005-09-28 14:23:06 +00003934 INSTALL=$ac_install_sh
3935 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003936fi
jfigusc7e66e32013-05-08 11:32:55 -04003937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3938$as_echo "$INSTALL" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003939
David McGrewb67061f2005-09-28 14:23:06 +00003940# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3941# It thinks the first close brace ends the variable substitution.
3942test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00003943
David McGrewb67061f2005-09-28 14:23:06 +00003944test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3945
3946test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00003947
Idar Tollefsen600ad962017-01-26 11:24:51 +01003948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3949$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3950if ${ac_cv_path_SED+:} false; then :
3951 $as_echo_n "(cached) " >&6
3952else
3953 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3954 for ac_i in 1 2 3 4 5 6 7; do
3955 ac_script="$ac_script$as_nl$ac_script"
3956 done
3957 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3958 { ac_script=; unset ac_script;}
3959 if test -z "$SED"; then
3960 ac_path_SED_found=false
3961 # Loop through the user's path and test for each of PROGNAME-LIST
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963for as_dir in $PATH
3964do
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
3967 for ac_prog in sed gsed; do
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3970 as_fn_executable_p "$ac_path_SED" || continue
3971# Check for GNU ac_path_SED and select it if it is found.
3972 # Check for GNU $ac_path_SED
3973case `"$ac_path_SED" --version 2>&1` in
3974*GNU*)
3975 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3976*)
3977 ac_count=0
3978 $as_echo_n 0123456789 >"conftest.in"
3979 while :
3980 do
3981 cat "conftest.in" "conftest.in" >"conftest.tmp"
3982 mv "conftest.tmp" "conftest.in"
3983 cp "conftest.in" "conftest.nl"
3984 $as_echo '' >> "conftest.nl"
3985 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3987 as_fn_arith $ac_count + 1 && ac_count=$as_val
3988 if test $ac_count -gt ${ac_path_SED_max-0}; then
3989 # Best one so far, save it but keep looking for a better one
3990 ac_cv_path_SED="$ac_path_SED"
3991 ac_path_SED_max=$ac_count
3992 fi
3993 # 10*(2^10) chars as input seems more than enough
3994 test $ac_count -gt 10 && break
3995 done
3996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3997esac
3998
3999 $ac_path_SED_found && break 3
4000 done
4001 done
4002 done
4003IFS=$as_save_IFS
4004 if test -z "$ac_cv_path_SED"; then
4005 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4006 fi
4007else
4008 ac_cv_path_SED=$SED
4009fi
4010
4011fi
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4013$as_echo "$ac_cv_path_SED" >&6; }
4014 SED="$ac_cv_path_SED"
4015 rm -f conftest.sed
4016
Cullen Jennings235513a2005-09-21 22:51:36 +00004017
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004018
jfigusc7e66e32013-05-08 11:32:55 -04004019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4020$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4021if ${ac_cv_path_GREP+:} false; then :
4022 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004023else
jfigusc7e66e32013-05-08 11:32:55 -04004024 if test -z "$GREP"; then
4025 ac_path_GREP_found=false
4026 # Loop through the user's path and test for each of PROGNAME-LIST
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4029do
4030 IFS=$as_save_IFS
4031 test -z "$as_dir" && as_dir=.
4032 for ac_prog in grep ggrep; do
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4035 as_fn_executable_p "$ac_path_GREP" || continue
4036# Check for GNU ac_path_GREP and select it if it is found.
4037 # Check for GNU $ac_path_GREP
4038case `"$ac_path_GREP" --version 2>&1` in
4039*GNU*)
4040 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4041*)
4042 ac_count=0
4043 $as_echo_n 0123456789 >"conftest.in"
4044 while :
4045 do
4046 cat "conftest.in" "conftest.in" >"conftest.tmp"
4047 mv "conftest.tmp" "conftest.in"
4048 cp "conftest.in" "conftest.nl"
4049 $as_echo 'GREP' >> "conftest.nl"
4050 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4051 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4052 as_fn_arith $ac_count + 1 && ac_count=$as_val
4053 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4054 # Best one so far, save it but keep looking for a better one
4055 ac_cv_path_GREP="$ac_path_GREP"
4056 ac_path_GREP_max=$ac_count
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004057 fi
jfigusc7e66e32013-05-08 11:32:55 -04004058 # 10*(2^10) chars as input seems more than enough
4059 test $ac_count -gt 10 && break
4060 done
4061 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4062esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004063
jfigusc7e66e32013-05-08 11:32:55 -04004064 $ac_path_GREP_found && break 3
4065 done
4066 done
4067 done
4068IFS=$as_save_IFS
4069 if test -z "$ac_cv_path_GREP"; then
4070 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4071 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004072else
jfigusc7e66e32013-05-08 11:32:55 -04004073 ac_cv_path_GREP=$GREP
4074fi
4075
4076fi
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4078$as_echo "$ac_cv_path_GREP" >&6; }
4079 GREP="$ac_cv_path_GREP"
4080
4081
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4083$as_echo_n "checking for egrep... " >&6; }
4084if ${ac_cv_path_EGREP+:} false; then :
4085 $as_echo_n "(cached) " >&6
4086else
4087 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4088 then ac_cv_path_EGREP="$GREP -E"
4089 else
4090 if test -z "$EGREP"; then
4091 ac_path_EGREP_found=false
4092 # Loop through the user's path and test for each of PROGNAME-LIST
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4095do
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for ac_prog in egrep; do
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4101 as_fn_executable_p "$ac_path_EGREP" || continue
4102# Check for GNU ac_path_EGREP and select it if it is found.
4103 # Check for GNU $ac_path_EGREP
4104case `"$ac_path_EGREP" --version 2>&1` in
4105*GNU*)
4106 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4107*)
4108 ac_count=0
4109 $as_echo_n 0123456789 >"conftest.in"
4110 while :
4111 do
4112 cat "conftest.in" "conftest.in" >"conftest.tmp"
4113 mv "conftest.tmp" "conftest.in"
4114 cp "conftest.in" "conftest.nl"
4115 $as_echo 'EGREP' >> "conftest.nl"
4116 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4118 as_fn_arith $ac_count + 1 && ac_count=$as_val
4119 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4120 # Best one so far, save it but keep looking for a better one
4121 ac_cv_path_EGREP="$ac_path_EGREP"
4122 ac_path_EGREP_max=$ac_count
4123 fi
4124 # 10*(2^10) chars as input seems more than enough
4125 test $ac_count -gt 10 && break
4126 done
4127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4128esac
4129
4130 $ac_path_EGREP_found && break 3
4131 done
4132 done
4133 done
4134IFS=$as_save_IFS
4135 if test -z "$ac_cv_path_EGREP"; then
4136 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4137 fi
4138else
4139 ac_cv_path_EGREP=$EGREP
4140fi
4141
4142 fi
4143fi
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4145$as_echo "$ac_cv_path_EGREP" >&6; }
4146 EGREP="$ac_cv_path_EGREP"
4147
4148
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4150$as_echo_n "checking for ANSI C header files... " >&6; }
4151if ${ac_cv_header_stdc+:} false; then :
4152 $as_echo_n "(cached) " >&6
4153else
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004155/* end confdefs.h. */
4156#include <stdlib.h>
4157#include <stdarg.h>
4158#include <string.h>
4159#include <float.h>
4160
4161int
4162main ()
4163{
4164
4165 ;
4166 return 0;
4167}
4168_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004169if ac_fn_c_try_compile "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04004170 ac_cv_header_stdc=yes
4171else
jfigusc7e66e32013-05-08 11:32:55 -04004172 ac_cv_header_stdc=no
jfigusa14b5a02013-03-29 12:24:12 -04004173fi
jfigusc7e66e32013-05-08 11:32:55 -04004174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004175
4176if test $ac_cv_header_stdc = yes; then
4177 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04004178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004179/* end confdefs.h. */
4180#include <string.h>
4181
4182_ACEOF
4183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04004184 $EGREP "memchr" >/dev/null 2>&1; then :
4185
jfigusa14b5a02013-03-29 12:24:12 -04004186else
4187 ac_cv_header_stdc=no
4188fi
4189rm -f conftest*
4190
4191fi
4192
4193if test $ac_cv_header_stdc = yes; then
4194 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04004195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004196/* end confdefs.h. */
4197#include <stdlib.h>
4198
4199_ACEOF
4200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04004201 $EGREP "free" >/dev/null 2>&1; then :
4202
jfigusa14b5a02013-03-29 12:24:12 -04004203else
4204 ac_cv_header_stdc=no
4205fi
4206rm -f conftest*
4207
4208fi
4209
4210if test $ac_cv_header_stdc = yes; then
4211 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jfigusc7e66e32013-05-08 11:32:55 -04004212 if test "$cross_compiling" = yes; then :
jfigusa14b5a02013-03-29 12:24:12 -04004213 :
4214else
jfigusc7e66e32013-05-08 11:32:55 -04004215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004216/* end confdefs.h. */
4217#include <ctype.h>
jfigusc7e66e32013-05-08 11:32:55 -04004218#include <stdlib.h>
jfigusa14b5a02013-03-29 12:24:12 -04004219#if ((' ' & 0x0FF) == 0x020)
4220# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4221# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4222#else
4223# define ISLOWER(c) \
4224 (('a' <= (c) && (c) <= 'i') \
4225 || ('j' <= (c) && (c) <= 'r') \
4226 || ('s' <= (c) && (c) <= 'z'))
4227# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4228#endif
4229
4230#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4231int
4232main ()
4233{
4234 int i;
4235 for (i = 0; i < 256; i++)
4236 if (XOR (islower (i), ISLOWER (i))
4237 || toupper (i) != TOUPPER (i))
jfigusc7e66e32013-05-08 11:32:55 -04004238 return 2;
4239 return 0;
jfigusa14b5a02013-03-29 12:24:12 -04004240}
4241_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004242if ac_fn_c_try_run "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04004243
jfigusc7e66e32013-05-08 11:32:55 -04004244else
4245 ac_cv_header_stdc=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004246fi
jfigusc7e66e32013-05-08 11:32:55 -04004247rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4248 conftest.$ac_objext conftest.beam conftest.$ac_ext
4249fi
4250
jfigusa14b5a02013-03-29 12:24:12 -04004251fi
4252fi
jfigusc7e66e32013-05-08 11:32:55 -04004253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4254$as_echo "$ac_cv_header_stdc" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04004255if test $ac_cv_header_stdc = yes; then
4256
jfigusc7e66e32013-05-08 11:32:55 -04004257$as_echo "#define STDC_HEADERS 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04004258
4259fi
4260
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004261# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004262for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4263 inttypes.h stdint.h unistd.h
jfigusc7e66e32013-05-08 11:32:55 -04004264do :
4265 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4266ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4267"
4268if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004269 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004270#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004271_ACEOF
4272
4273fi
4274
4275done
4276
4277
jfigusc7e66e32013-05-08 11:32:55 -04004278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4279$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4280if ${ac_cv_c_bigendian+:} false; then :
4281 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004282else
jfigusc7e66e32013-05-08 11:32:55 -04004283 ac_cv_c_bigendian=unknown
4284 # See if we're dealing with a universal compiler.
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004286/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004287#ifndef __APPLE_CC__
4288 not a universal capable compiler
4289 #endif
4290 typedef int dummy;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004291
jfigusc7e66e32013-05-08 11:32:55 -04004292_ACEOF
4293if ac_fn_c_try_compile "$LINENO"; then :
4294
4295 # Check for potential -arch flags. It is not universal unless
4296 # there are at least two -arch flags with different values.
4297 ac_arch=
4298 ac_prev=
4299 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4300 if test -n "$ac_prev"; then
4301 case $ac_word in
4302 i?86 | x86_64 | ppc | ppc64)
4303 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4304 ac_arch=$ac_word
4305 else
4306 ac_cv_c_bigendian=universal
4307 break
4308 fi
4309 ;;
4310 esac
4311 ac_prev=
4312 elif test "x$ac_word" = "x-arch"; then
4313 ac_prev=arch
4314 fi
4315 done
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004316fi
jfigusc7e66e32013-05-08 11:32:55 -04004317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4318 if test $ac_cv_c_bigendian = unknown; then
4319 # See if sys/param.h defines the BYTE_ORDER macro.
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004321/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004322#include <sys/types.h>
4323 #include <sys/param.h>
4324
4325int
4326main ()
4327{
4328#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4329 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4330 && LITTLE_ENDIAN)
4331 bogus endian macros
4332 #endif
4333
4334 ;
4335 return 0;
4336}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004337_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004338if ac_fn_c_try_compile "$LINENO"; then :
4339 # It does; now see whether it defined to BIG_ENDIAN or not.
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004341/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004342#include <sys/types.h>
4343 #include <sys/param.h>
4344
4345int
4346main ()
4347{
4348#if BYTE_ORDER != BIG_ENDIAN
4349 not big endian
4350 #endif
4351
4352 ;
4353 return 0;
4354}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004355_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004356if ac_fn_c_try_compile "$LINENO"; then :
4357 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004358else
jfigusc7e66e32013-05-08 11:32:55 -04004359 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004360fi
jfigusc7e66e32013-05-08 11:32:55 -04004361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362fi
4363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 fi
4365 if test $ac_cv_c_bigendian = unknown; then
4366 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004368/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004369#include <limits.h>
4370
4371int
4372main ()
4373{
4374#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4375 bogus endian macros
4376 #endif
4377
4378 ;
4379 return 0;
4380}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004381_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004382if ac_fn_c_try_compile "$LINENO"; then :
4383 # It does; now see whether it defined to _BIG_ENDIAN or not.
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004385/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004386#include <limits.h>
4387
4388int
4389main ()
4390{
4391#ifndef _BIG_ENDIAN
4392 not big endian
4393 #endif
4394
4395 ;
4396 return 0;
4397}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004398_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004399if ac_fn_c_try_compile "$LINENO"; then :
4400 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004401else
jfigusc7e66e32013-05-08 11:32:55 -04004402 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004403fi
jfigusc7e66e32013-05-08 11:32:55 -04004404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405fi
4406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 fi
4408 if test $ac_cv_c_bigendian = unknown; then
4409 # Compile a test program.
4410 if test "$cross_compiling" = yes; then :
4411 # Try to guess by grepping values from an object file.
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004413/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004414short int ascii_mm[] =
4415 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4416 short int ascii_ii[] =
4417 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4418 int use_ascii (int i) {
4419 return ascii_mm[i] + ascii_ii[i];
4420 }
4421 short int ebcdic_ii[] =
4422 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4423 short int ebcdic_mm[] =
4424 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4425 int use_ebcdic (int i) {
4426 return ebcdic_mm[i] + ebcdic_ii[i];
4427 }
4428 extern int foo;
4429
4430int
4431main ()
4432{
4433return use_ascii (foo) == use_ebcdic (foo);
4434 ;
4435 return 0;
4436}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004437_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004438if ac_fn_c_try_compile "$LINENO"; then :
4439 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4440 ac_cv_c_bigendian=yes
4441 fi
4442 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4443 if test "$ac_cv_c_bigendian" = unknown; then
4444 ac_cv_c_bigendian=no
4445 else
4446 # finding both strings is unlikely to happen, but who knows?
4447 ac_cv_c_bigendian=unknown
4448 fi
4449 fi
4450fi
4451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004452else
jfigusc7e66e32013-05-08 11:32:55 -04004453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004454/* end confdefs.h. */
4455$ac_includes_default
4456int
4457main ()
4458{
jfigusc7e66e32013-05-08 11:32:55 -04004459
4460 /* Are we little or big endian? From Harbison&Steele. */
4461 union
4462 {
4463 long int l;
4464 char c[sizeof (long int)];
4465 } u;
4466 u.l = 1;
4467 return u.c[sizeof (long int) - 1] == 1;
4468
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004469 ;
4470 return 0;
4471}
4472_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004473if ac_fn_c_try_run "$LINENO"; then :
4474 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004475else
jfigusc7e66e32013-05-08 11:32:55 -04004476 ac_cv_c_bigendian=yes
4477fi
4478rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4479 conftest.$ac_objext conftest.beam conftest.$ac_ext
4480fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004481
jfigusc7e66e32013-05-08 11:32:55 -04004482 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004483fi
jfigusc7e66e32013-05-08 11:32:55 -04004484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4485$as_echo "$ac_cv_c_bigendian" >&6; }
4486 case $ac_cv_c_bigendian in #(
4487 yes)
4488 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4489;; #(
4490 no)
4491 ;; #(
4492 universal)
4493
4494$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4495
4496 ;; #(
4497 *)
4498 as_fn_error $? "unknown endianness
4499 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4500 esac
4501
4502
4503# Make sure we can run config.sub.
4504$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4505 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4506
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4508$as_echo_n "checking build system type... " >&6; }
4509if ${ac_cv_build+:} false; then :
4510 $as_echo_n "(cached) " >&6
4511else
4512 ac_build_alias=$build_alias
4513test "x$ac_build_alias" = x &&
4514 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4515test "x$ac_build_alias" = x &&
4516 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4517ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4518 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4519
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004520fi
jfigusc7e66e32013-05-08 11:32:55 -04004521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4522$as_echo "$ac_cv_build" >&6; }
4523case $ac_cv_build in
4524*-*-*) ;;
4525*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4526esac
4527build=$ac_cv_build
4528ac_save_IFS=$IFS; IFS='-'
4529set x $ac_cv_build
4530shift
4531build_cpu=$1
4532build_vendor=$2
4533shift; shift
4534# Remember, the first character of IFS is used to create $*,
4535# except with old shells:
4536build_os=$*
4537IFS=$ac_save_IFS
4538case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4539
4540
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4542$as_echo_n "checking host system type... " >&6; }
4543if ${ac_cv_host+:} false; then :
4544 $as_echo_n "(cached) " >&6
4545else
4546 if test "x$host_alias" = x; then
4547 ac_cv_host=$ac_cv_build
4548else
4549 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4550 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4551fi
4552
4553fi
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4555$as_echo "$ac_cv_host" >&6; }
4556case $ac_cv_host in
4557*-*-*) ;;
4558*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4559esac
4560host=$ac_cv_host
4561ac_save_IFS=$IFS; IFS='-'
4562set x $ac_cv_host
4563shift
4564host_cpu=$1
4565host_vendor=$2
4566shift; shift
4567# Remember, the first character of IFS is used to create $*,
4568# except with old shells:
4569host_os=$*
4570IFS=$ac_save_IFS
4571case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4572
4573
4574
4575case $host_cpu in
Idar Tollefsen600ad962017-01-26 11:24:51 +01004576 i*86 | x86_64 )
jfigusc7e66e32013-05-08 11:32:55 -04004577
4578$as_echo "#define CPU_CISC 1" >>confdefs.h
4579
4580
4581$as_echo "#define HAVE_X86 1" >>confdefs.h
Idar Tollefsen600ad962017-01-26 11:24:51 +01004582
4583 ;;
4584 * )
jfigusc7e66e32013-05-08 11:32:55 -04004585
4586$as_echo "#define CPU_RISC 1" >>confdefs.h
jfigusfb838412014-12-04 10:15:47 -05004587
Idar Tollefsen600ad962017-01-26 11:24:51 +01004588 ;;
jfigusc7e66e32013-05-08 11:32:55 -04004589esac
4590
4591case $host_os in
Idar Tollefsen600ad962017-01-26 11:24:51 +01004592 *cygwin*|*mingw* )
4593 EXE=.exe
4594 ;;
4595 * )
4596 EXE=""
4597 ;;
jfigusc7e66e32013-05-08 11:32:55 -04004598esac
4599 # define executable suffix; this is needed for `make clean'
4600
Idar Tollefsen600ad962017-01-26 11:24:51 +01004601supported_cflags=""
4602if test "$EMPTY_CFLAGS" = "no"; then
4603 supported_cflags="$CFLAGS"
4604fi
4605
4606WERROR=""
4607for w in -Werror -errwarn; do
4608 if test "x$WERROR" = "x"; then
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $w" >&5
4610$as_echo_n "checking whether ${CC-c} accepts $w... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004611 save_cflags="$CFLAGS"
4612 if test "x$CFLAGS" = "x"; then :
4613 CFLAGS="$w"
4614else
4615 CFLAGS="$CFLAGS $w"
4616fi
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004619int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004620_ACEOF
4621if ac_fn_c_try_compile "$LINENO"; then :
4622 WERROR="$w"
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4624$as_echo "yes" >&6; }
4625else
4626 CFLAGS="$save_cflags"
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628$as_echo "no" >&6; }
4629fi
4630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 fi
4632done
4633
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts -fPIC" >&5
4635$as_echo_n "checking whether ${CC-c} accepts -fPIC... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004636save_cflags="$CFLAGS"
4637if test "x$CFLAGS" = "x"; then :
4638 CFLAGS="-fPIC"
4639else
4640 CFLAGS="$CFLAGS -fPIC"
4641fi
4642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004644int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004645_ACEOF
4646if ac_fn_c_try_compile "$LINENO"; then :
4647 if test "x$supported_cflags" = "x"; then :
4648 supported_cflags="-fPIC"
4649else
4650 supported_cflags="$supported_cflags -fPIC"
4651fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01004652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4653$as_echo "yes" >&6; }
4654else
4655 CFLAGS="$save_cflags"
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657$as_echo "no" >&6; }
4658fi
4659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660
4661if test "$EMPTY_CFLAGS" = "yes"; then
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004662 for f in -Wall -pedantic -Wstrict-prototypes; do
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4664$as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004665 save_cflags="$CFLAGS"
4666 if test "x$CFLAGS" = "x"; then :
4667 CFLAGS="$f"
4668else
4669 CFLAGS="$CFLAGS $f"
4670fi
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004673int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004674_ACEOF
4675if ac_fn_c_try_compile "$LINENO"; then :
4676 if test "x$supported_cflags" = "x"; then :
4677 supported_cflags="$f"
4678else
4679 supported_cflags="$supported_cflags $f"
4680fi
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4682$as_echo "yes" >&6; }
4683else
4684 CFLAGS="$save_cflags"
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686$as_echo "no" >&6; }
4687fi
4688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689 done
4690
4691 OOPT=""
4692 for f in -O4 -O3; do
4693 if test "x$OOPT" = "x"; then
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4695$as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004696 save_cflags="$CFLAGS"
4697 if test "x$CFLAGS" = "x"; then :
4698 CFLAGS="$f"
4699else
4700 CFLAGS="$CFLAGS $f"
4701fi
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004704int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004705_ACEOF
4706if ac_fn_c_try_compile "$LINENO"; then :
4707 if test "x$supported_cflags" = "x"; then :
4708 supported_cflags="$f"
4709else
4710 supported_cflags="$supported_cflags $f"
4711fi
4712 OOPT="$f"
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4714$as_echo "yes" >&6; }
4715else
4716 CFLAGS="$save_cflags"
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718$as_echo "no" >&6; }
4719fi
4720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 fi
4722 done
4723
4724 for f in -fexpensive-optimizations -funroll-loops; do
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4726$as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004727 save_cflags="$CFLAGS"
4728 if test "x$CFLAGS" = "x"; then :
4729 CFLAGS="$f"
4730else
4731 CFLAGS="$CFLAGS $f"
4732fi
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004735int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004736_ACEOF
4737if ac_fn_c_try_compile "$LINENO"; then :
4738 if test "x$supported_cflags" = "x"; then :
4739 supported_cflags="$f"
4740else
4741 supported_cflags="$supported_cflags $f"
4742fi
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4744$as_echo "yes" >&6; }
4745else
4746 CFLAGS="$save_cflags"
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4748$as_echo "no" >&6; }
4749fi
4750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751 done
4752fi
4753
4754for f in -Wno-language-extension-token; do
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
4756$as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004757 save_cflags="$CFLAGS"
4758 testf=$(echo "$f" | $SED 's|-Wno-\(.*\)|-W\1|g')
4759 if test "x$CFLAGS" = "x"; then :
4760 CFLAGS="$testf"
4761else
4762 CFLAGS="$CFLAGS $testf"
4763fi
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765/* end confdefs.h. */
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02004766int main(void) { return 0; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01004767_ACEOF
4768if ac_fn_c_try_compile "$LINENO"; then :
4769 if test "x$supported_cflags" = "x"; then :
4770 supported_cflags="$f"
4771else
4772 supported_cflags="$supported_cflags $f"
4773fi
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4775$as_echo "yes" >&6; }
4776else
4777 CFLAGS="$save_cflags"
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779$as_echo "no" >&6; }
4780fi
4781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782done
4783
4784CFLAGS="$supported_cflags"
jfigusc7e66e32013-05-08 11:32:55 -04004785
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4787$as_echo_n "checking for ANSI C header files... " >&6; }
4788if ${ac_cv_header_stdc+:} false; then :
4789 $as_echo_n "(cached) " >&6
4790else
4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792/* end confdefs.h. */
4793#include <stdlib.h>
4794#include <stdarg.h>
4795#include <string.h>
4796#include <float.h>
4797
4798int
4799main ()
4800{
4801
4802 ;
4803 return 0;
4804}
4805_ACEOF
4806if ac_fn_c_try_compile "$LINENO"; then :
4807 ac_cv_header_stdc=yes
4808else
4809 ac_cv_header_stdc=no
4810fi
4811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812
4813if test $ac_cv_header_stdc = yes; then
4814 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816/* end confdefs.h. */
4817#include <string.h>
4818
4819_ACEOF
4820if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4821 $EGREP "memchr" >/dev/null 2>&1; then :
4822
4823else
4824 ac_cv_header_stdc=no
4825fi
4826rm -f conftest*
4827
4828fi
4829
4830if test $ac_cv_header_stdc = yes; then
4831 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833/* end confdefs.h. */
4834#include <stdlib.h>
4835
4836_ACEOF
4837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4838 $EGREP "free" >/dev/null 2>&1; then :
4839
4840else
4841 ac_cv_header_stdc=no
4842fi
4843rm -f conftest*
4844
4845fi
4846
4847if test $ac_cv_header_stdc = yes; then
4848 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4849 if test "$cross_compiling" = yes; then :
4850 :
4851else
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853/* end confdefs.h. */
4854#include <ctype.h>
4855#include <stdlib.h>
4856#if ((' ' & 0x0FF) == 0x020)
4857# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4858# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4859#else
4860# define ISLOWER(c) \
4861 (('a' <= (c) && (c) <= 'i') \
4862 || ('j' <= (c) && (c) <= 'r') \
4863 || ('s' <= (c) && (c) <= 'z'))
4864# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4865#endif
4866
4867#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4868int
4869main ()
4870{
4871 int i;
4872 for (i = 0; i < 256; i++)
4873 if (XOR (islower (i), ISLOWER (i))
4874 || toupper (i) != TOUPPER (i))
4875 return 2;
4876 return 0;
4877}
4878_ACEOF
4879if ac_fn_c_try_run "$LINENO"; then :
4880
4881else
4882 ac_cv_header_stdc=no
4883fi
4884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4885 conftest.$ac_objext conftest.beam conftest.$ac_ext
4886fi
4887
4888fi
4889fi
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4891$as_echo "$ac_cv_header_stdc" >&6; }
4892if test $ac_cv_header_stdc = yes; then
4893
4894$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4895
4896fi
4897
Idar Tollefsen600ad962017-01-26 11:24:51 +01004898for 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 -04004899do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01004900 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4901ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4902"
4903if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
jfigusc7e66e32013-05-08 11:32:55 -04004904 cat >>confdefs.h <<_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01004905#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
jfigusc7e66e32013-05-08 11:32:55 -04004906_ACEOF
4907
4908fi
4909
4910done
4911
4912
4913for ac_header in sys/socket.h netinet/in.h arpa/inet.h
4914do :
4915 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Idar Tollefsen600ad962017-01-26 11:24:51 +01004916ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4917"
jfigusc7e66e32013-05-08 11:32:55 -04004918if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4919 cat >>confdefs.h <<_ACEOF
4920#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4921_ACEOF
4922
4923fi
4924
4925done
4926
4927for ac_header in windows.h
4928do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01004929 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4930"
jfigusc7e66e32013-05-08 11:32:55 -04004931if test "x$ac_cv_header_windows_h" = xyes; then :
4932 cat >>confdefs.h <<_ACEOF
4933#define HAVE_WINDOWS_H 1
4934_ACEOF
4935 for ac_header in winsock2.h
4936do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01004937 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default
4938"
jfigusc7e66e32013-05-08 11:32:55 -04004939if test "x$ac_cv_header_winsock2_h" = xyes; then :
4940 cat >>confdefs.h <<_ACEOF
4941#define HAVE_WINSOCK2_H 1
4942_ACEOF
4943
4944fi
4945
4946done
4947
4948fi
4949
4950done
4951
4952
jfigusc7e66e32013-05-08 11:32:55 -04004953ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
4954if test "x$ac_cv_type_int8_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00004955
David McGrewfec49dd2005-09-23 19:34:11 +00004956cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004957#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004958_ACEOF
4959
4960
4961fi
jfigusc7e66e32013-05-08 11:32:55 -04004962ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4963if test "x$ac_cv_type_uint8_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004964
4965cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004966#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004967_ACEOF
4968
4969
4970fi
jfigusc7e66e32013-05-08 11:32:55 -04004971ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4972if test "x$ac_cv_type_int16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004973
4974cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004975#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004976_ACEOF
4977
4978
4979fi
jfigusc7e66e32013-05-08 11:32:55 -04004980ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4981if test "x$ac_cv_type_uint16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004982
4983cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004984#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004985_ACEOF
4986
4987
4988fi
jfigusc7e66e32013-05-08 11:32:55 -04004989ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
4990if test "x$ac_cv_type_int32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00004991
4992cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00004993#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00004994_ACEOF
4995
4996
4997fi
jfigusc7e66e32013-05-08 11:32:55 -04004998ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4999if test "x$ac_cv_type_uint32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005000
5001cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005002#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005003_ACEOF
5004
5005
5006fi
jfigusc7e66e32013-05-08 11:32:55 -04005007ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
5008if test "x$ac_cv_type_uint64_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005009
5010cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005011#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005012_ACEOF
5013
5014
5015fi
5016
jfigusc7e66e32013-05-08 11:32:55 -04005017# The cast to long int works around a bug in the HP C Compiler
5018# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5019# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5020# This bug is HP SR number 8606223364.
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
5022$as_echo_n "checking size of unsigned long... " >&6; }
5023if ${ac_cv_sizeof_unsigned_long+:} false; then :
5024 $as_echo_n "(cached) " >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005025else
jfigusc7e66e32013-05-08 11:32:55 -04005026 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 +00005027
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005028else
5029 if test "$ac_cv_type_unsigned_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04005030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5032as_fn_error 77 "cannot compute sizeof (unsigned long)
5033See \`config.log' for more details" "$LINENO" 5; }
5034 else
5035 ac_cv_sizeof_unsigned_long=0
5036 fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005037fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005038
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005039fi
jfigusc7e66e32013-05-08 11:32:55 -04005040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
5041$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005042
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005043
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005044
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005045cat >>confdefs.h <<_ACEOF
5046#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
5047_ACEOF
5048
David McGrewfec49dd2005-09-23 19:34:11 +00005049
jfigusc7e66e32013-05-08 11:32:55 -04005050# The cast to long int works around a bug in the HP C Compiler
5051# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5052# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5053# This bug is HP SR number 8606223364.
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
5055$as_echo_n "checking size of unsigned long long... " >&6; }
5056if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
5057 $as_echo_n "(cached) " >&6
David McGrewfec49dd2005-09-23 19:34:11 +00005058else
jfigusc7e66e32013-05-08 11:32:55 -04005059 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 +00005060
David McGrewfec49dd2005-09-23 19:34:11 +00005061else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005062 if test "$ac_cv_type_unsigned_long_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04005063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5065as_fn_error 77 "cannot compute sizeof (unsigned long long)
5066See \`config.log' for more details" "$LINENO" 5; }
5067 else
5068 ac_cv_sizeof_unsigned_long_long=0
5069 fi
David McGrewfec49dd2005-09-23 19:34:11 +00005070fi
5071
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005072fi
jfigusc7e66e32013-05-08 11:32:55 -04005073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
5074$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005075
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005076
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005077
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005078cat >>confdefs.h <<_ACEOF
5079#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00005080_ACEOF
5081
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005082
Cullen Jennings235513a2005-09-21 22:51:36 +00005083
jfigusc7e66e32013-05-08 11:32:55 -04005084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5085$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5086if ${ac_cv_c_const+:} false; then :
5087 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005088else
jfigusc7e66e32013-05-08 11:32:55 -04005089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005090/* end confdefs.h. */
5091
5092int
5093main ()
5094{
jfigusc7e66e32013-05-08 11:32:55 -04005095
Cullen Jennings235513a2005-09-21 22:51:36 +00005096#ifndef __cplusplus
jfigusc7e66e32013-05-08 11:32:55 -04005097 /* Ultrix mips cc rejects this sort of thing. */
Cullen Jennings235513a2005-09-21 22:51:36 +00005098 typedef int charset[2];
jfigusc7e66e32013-05-08 11:32:55 -04005099 const charset cs = { 0, 0 };
Cullen Jennings235513a2005-09-21 22:51:36 +00005100 /* SunOS 4.1.1 cc rejects this. */
jfigusc7e66e32013-05-08 11:32:55 -04005101 char const *const *pcpcc;
5102 char **ppc;
Cullen Jennings235513a2005-09-21 22:51:36 +00005103 /* NEC SVR4.0.2 mips cc rejects this. */
5104 struct point {int x, y;};
5105 static struct point const zero = {0,0};
5106 /* AIX XL C 1.02.0.0 rejects this.
5107 It does not let you subtract one const X* pointer from another in
5108 an arm of an if-expression whose if-part is not a constant
5109 expression */
5110 const char *g = "string";
jfigusc7e66e32013-05-08 11:32:55 -04005111 pcpcc = &g + (g ? g-g : 0);
Cullen Jennings235513a2005-09-21 22:51:36 +00005112 /* HPUX 7.0 cc rejects these. */
jfigusc7e66e32013-05-08 11:32:55 -04005113 ++pcpcc;
5114 ppc = (char**) pcpcc;
5115 pcpcc = (char const *const *) ppc;
5116 { /* SCO 3.2v4 cc rejects this sort of thing. */
5117 char tx;
5118 char *t = &tx;
Cullen Jennings235513a2005-09-21 22:51:36 +00005119 char const *s = 0 ? (char *) 0 : (char const *) 0;
5120
5121 *t++ = 0;
jfigusc7e66e32013-05-08 11:32:55 -04005122 if (s) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00005123 }
5124 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5125 int x[] = {25, 17};
5126 const int *foo = &x[0];
5127 ++foo;
5128 }
5129 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5130 typedef const int *iptr;
5131 iptr p = 0;
5132 ++p;
5133 }
jfigusc7e66e32013-05-08 11:32:55 -04005134 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Cullen Jennings235513a2005-09-21 22:51:36 +00005135 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
jfigusc7e66e32013-05-08 11:32:55 -04005136 struct s { int j; const int *ap[3]; } bx;
5137 struct s *b = &bx; b->j = 5;
Cullen Jennings235513a2005-09-21 22:51:36 +00005138 }
5139 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5140 const int foo = 10;
jfigusc7e66e32013-05-08 11:32:55 -04005141 if (!foo) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00005142 }
jfigusc7e66e32013-05-08 11:32:55 -04005143 return !cs[0] && !zero.x;
Cullen Jennings235513a2005-09-21 22:51:36 +00005144#endif
5145
5146 ;
5147 return 0;
5148}
5149_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005150if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005151 ac_cv_c_const=yes
5152else
jfigusc7e66e32013-05-08 11:32:55 -04005153 ac_cv_c_const=no
Cullen Jennings235513a2005-09-21 22:51:36 +00005154fi
jfigusc7e66e32013-05-08 11:32:55 -04005155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005156fi
jfigusc7e66e32013-05-08 11:32:55 -04005157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5158$as_echo "$ac_cv_c_const" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005159if test $ac_cv_c_const = no; then
5160
jfigusc7e66e32013-05-08 11:32:55 -04005161$as_echo "#define const /**/" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005162
5163fi
5164
jfigusc7e66e32013-05-08 11:32:55 -04005165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5166$as_echo_n "checking for inline... " >&6; }
5167if ${ac_cv_c_inline+:} false; then :
5168 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005169else
5170 ac_cv_c_inline=no
5171for ac_kw in inline __inline__ __inline; do
jfigusc7e66e32013-05-08 11:32:55 -04005172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005173/* end confdefs.h. */
5174#ifndef __cplusplus
5175typedef int foo_t;
5176static $ac_kw foo_t static_foo () {return 0; }
5177$ac_kw foo_t foo () {return 0; }
5178#endif
5179
5180_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005181if ac_fn_c_try_compile "$LINENO"; then :
5182 ac_cv_c_inline=$ac_kw
Cullen Jennings235513a2005-09-21 22:51:36 +00005183fi
jfigusc7e66e32013-05-08 11:32:55 -04005184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5185 test "$ac_cv_c_inline" != no && break
Cullen Jennings235513a2005-09-21 22:51:36 +00005186done
5187
5188fi
jfigusc7e66e32013-05-08 11:32:55 -04005189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5190$as_echo "$ac_cv_c_inline" >&6; }
David McGrewfec49dd2005-09-23 19:34:11 +00005191
Cullen Jennings235513a2005-09-21 22:51:36 +00005192case $ac_cv_c_inline in
5193 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00005194 *)
5195 case $ac_cv_c_inline in
5196 no) ac_val=;;
5197 *) ac_val=$ac_cv_c_inline;;
5198 esac
5199 cat >>confdefs.h <<_ACEOF
5200#ifndef __cplusplus
5201#define inline $ac_val
5202#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00005203_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00005204 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005205esac
5206
jfigusc7e66e32013-05-08 11:32:55 -04005207ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5208if test "x$ac_cv_type_size_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005209
Cullen Jennings235513a2005-09-21 22:51:36 +00005210else
5211
5212cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005213#define size_t unsigned int
Cullen Jennings235513a2005-09-21 22:51:36 +00005214_ACEOF
5215
5216fi
5217
5218
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00005219for ac_func in socket inet_aton usleep sigaction
jfigusc7e66e32013-05-08 11:32:55 -04005220do :
5221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5222ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5223if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005224 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005225#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00005226_ACEOF
5227
5228fi
5229done
5230
5231
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005232if test "x$ac_cv_func_socket" = "xno"; then
jfigusc7e66e32013-05-08 11:32:55 -04005233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5234$as_echo_n "checking for socket in -lsocket... " >&6; }
5235if ${ac_cv_lib_socket_socket+:} false; then :
5236 $as_echo_n "(cached) " >&6
David McGrewb67061f2005-09-28 14:23:06 +00005237else
5238 ac_check_lib_save_LIBS=$LIBS
5239LIBS="-lsocket $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04005240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00005241/* end confdefs.h. */
5242
jfigusc7e66e32013-05-08 11:32:55 -04005243/* Override any GCC internal prototype to avoid an error.
5244 Use char because int might match the return type of a GCC
5245 builtin and then its argument prototype would still apply. */
David McGrewb67061f2005-09-28 14:23:06 +00005246#ifdef __cplusplus
5247extern "C"
5248#endif
David McGrewb67061f2005-09-28 14:23:06 +00005249char socket ();
5250int
5251main ()
5252{
jfigusc7e66e32013-05-08 11:32:55 -04005253return socket ();
David McGrewb67061f2005-09-28 14:23:06 +00005254 ;
5255 return 0;
5256}
5257_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005258if ac_fn_c_try_link "$LINENO"; then :
David McGrewb67061f2005-09-28 14:23:06 +00005259 ac_cv_lib_socket_socket=yes
5260else
jfigusc7e66e32013-05-08 11:32:55 -04005261 ac_cv_lib_socket_socket=no
David McGrewb67061f2005-09-28 14:23:06 +00005262fi
jfigusc7e66e32013-05-08 11:32:55 -04005263rm -f core conftest.err conftest.$ac_objext \
5264 conftest$ac_exeext conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00005265LIBS=$ac_check_lib_save_LIBS
5266fi
jfigusc7e66e32013-05-08 11:32:55 -04005267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5268$as_echo "$ac_cv_lib_socket_socket" >&6; }
5269if test "x$ac_cv_lib_socket_socket" = xyes; then :
David McGrewb67061f2005-09-28 14:23:06 +00005270 cat >>confdefs.h <<_ACEOF
5271#define HAVE_LIBSOCKET 1
5272_ACEOF
5273
5274 LIBS="-lsocket $LIBS"
5275
5276fi
5277
jfigusc7e66e32013-05-08 11:32:55 -04005278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
5279$as_echo_n "checking for socket in -lwsock32... " >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005280 SAVELIBS="$LIBS"
5281 LIBS="$LIBS -lwsock32"
jfigusc7e66e32013-05-08 11:32:55 -04005282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005283/* end confdefs.h. */
5284
5285#include <winsock2.h>
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02005286int main(void)
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005287{
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02005288 int fd = socket(0, 0, 0);
5289 if (fd < 0)
5290 return -1;
5291 else
5292 return 0;
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005293}
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02005294
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005295_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005296if ac_fn_c_try_link "$LINENO"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005297 ac_cv_func_socket=yes
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02005298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
jfigusc7e66e32013-05-08 11:32:55 -04005299$as_echo "yes" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005300else
jfigusc7e66e32013-05-08 11:32:55 -04005301 LIBS="$SAVELIBS"
Pascal Bühlerbb6ef8a2017-03-29 07:46:21 +02005302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
jfigusc7e66e32013-05-08 11:32:55 -04005303$as_echo "no" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005304fi
jfigusc7e66e32013-05-08 11:32:55 -04005305rm -f core conftest.err conftest.$ac_objext \
5306 conftest$ac_exeext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005307fi
David McGrewb67061f2005-09-28 14:23:06 +00005308
Pascal Bühler75918862017-02-19 18:33:50 +01005309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug logging in all modules" >&5
5310$as_echo_n "checking whether to enable debug logging in all modules... " >&6; }
5311# Check whether --enable-debug-logging was given.
5312if test "${enable_debug_logging+set}" = set; then :
5313 enableval=$enable_debug_logging;
David McGrewb67061f2005-09-28 14:23:06 +00005314else
Pascal Bühler75918862017-02-19 18:33:50 +01005315 enable_debug_logging=no
jfigusc7e66e32013-05-08 11:32:55 -04005316fi
5317
Pascal Bühler75918862017-02-19 18:33:50 +01005318if test "$enable_debug_logging" = "yes"; then
David McGrewb67061f2005-09-28 14:23:06 +00005319
Pascal Bühler75918862017-02-19 18:33:50 +01005320$as_echo "#define ENABLE_DEBUG_LOGGING 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005321
5322fi
Pascal Bühler75918862017-02-19 18:33:50 +01005323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_logging" >&5
5324$as_echo "$enable_debug_logging" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005325
Idar Tollefsen600ad962017-01-26 11:24:51 +01005326
5327
5328
5329
5330
5331
5332
5333if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5334 if test -n "$ac_tool_prefix"; then
5335 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5336set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338$as_echo_n "checking for $ac_word... " >&6; }
5339if ${ac_cv_path_PKG_CONFIG+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341else
5342 case $PKG_CONFIG in
5343 [\\/]* | ?:[\\/]*)
5344 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5345 ;;
5346 *)
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348for as_dir in $PATH
5349do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5357 fi
5358done
5359 done
5360IFS=$as_save_IFS
5361
5362 ;;
5363esac
5364fi
5365PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5366if test -n "$PKG_CONFIG"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5368$as_echo "$PKG_CONFIG" >&6; }
5369else
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371$as_echo "no" >&6; }
5372fi
5373
5374
5375fi
5376if test -z "$ac_cv_path_PKG_CONFIG"; then
5377 ac_pt_PKG_CONFIG=$PKG_CONFIG
5378 # Extract the first word of "pkg-config", so it can be a program name with args.
5379set dummy pkg-config; ac_word=$2
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5381$as_echo_n "checking for $ac_word... " >&6; }
5382if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5383 $as_echo_n "(cached) " >&6
5384else
5385 case $ac_pt_PKG_CONFIG in
5386 [\\/]* | ?:[\\/]*)
5387 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5388 ;;
5389 *)
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH
5392do
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5400 fi
5401done
5402 done
5403IFS=$as_save_IFS
5404
5405 ;;
5406esac
5407fi
5408ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5409if test -n "$ac_pt_PKG_CONFIG"; then
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5411$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5412else
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414$as_echo "no" >&6; }
5415fi
5416
5417 if test "x$ac_pt_PKG_CONFIG" = x; then
5418 PKG_CONFIG=""
5419 else
5420 case $cross_compiling:$ac_tool_warned in
5421yes:)
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424ac_tool_warned=yes ;;
5425esac
5426 PKG_CONFIG=$ac_pt_PKG_CONFIG
5427 fi
5428else
5429 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5430fi
5431
5432fi
5433if test -n "$PKG_CONFIG"; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005434 _pkg_min_version=0.9.0
Idar Tollefsen600ad962017-01-26 11:24:51 +01005435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5436$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5437 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5439$as_echo "yes" >&6; }
5440 else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442$as_echo "no" >&6; }
5443 PKG_CONFIG=""
5444 fi
5445fi
Pascal Bühlerac872e72017-02-09 14:55:27 +01005446if test "x$PKG_CONFIG" != "x"; then :
5447 PKG_CONFIG="$PKG_CONFIG --static"
5448fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005449
jfigusc7e66e32013-05-08 11:32:55 -04005450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
5451$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
5452# Check whether --enable-openssl was given.
5453if test "${enable_openssl+set}" = set; then :
5454 enableval=$enable_openssl;
5455else
5456 enable_openssl=no
5457fi
jfigusa14b5a02013-03-29 12:24:12 -04005458
jfigus2b486652014-07-24 15:01:41 -04005459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
5460$as_echo "$enable_openssl" >&6; }
Richard Barnes12872092018-05-16 16:31:16 -07005461
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage NSS crypto" >&5
5463$as_echo_n "checking whether to leverage NSS crypto... " >&6; }
5464# Check whether --enable-nss was given.
5465if test "${enable_nss+set}" = set; then :
5466 enableval=$enable_nss;
5467else
5468 enable_nss=no
5469fi
5470
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nss" >&5
5472$as_echo "$enable_nss" >&6; }
5473
jfigusc7e66e32013-05-08 11:32:55 -04005474if test "$enable_openssl" = "yes"; then
jfigus038d2cf2015-05-11 14:10:11 -04005475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user specified OpenSSL directory" >&5
5476$as_echo_n "checking for user specified OpenSSL directory... " >&6; }
5477
5478# Check whether --with-openssl-dir was given.
5479if test "${with_openssl_dir+set}" = set; then :
Idar Tollefsen600ad962017-01-26 11:24:51 +01005480 withval=$with_openssl_dir; if test "x$PKG_CONFIG" != "x" && test -f $with_openssl_dir/lib/pkgconfig/libcrypto.pc; then
5481 if test "x$PKG_CONFIG_PATH" = "x"; then
5482 export PKG_CONFIG_PATH="$with_openssl_dir/lib/pkgconfig"
5483 else
5484 export PKG_CONFIG_PATH="$with_openssl_dir/lib/pkgconfig:$PKG_CONFIG_PATH"
5485 fi
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl_dir" >&5
5487$as_echo "$with_openssl_dir" >&6; }
5488 elif test -d $with_openssl_dir/lib; then
5489 CFLAGS="$CFLAGS -I$with_openssl_dir/include"
5490 if test "x$LDFLAGS" = "x"; then
5491 LDFLAGS="-L$with_openssl_dir/lib"
5492 else
5493 LDFLAGS="$LDFLAGS -L$with_openssl_dir/lib"
5494 fi
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl_dir" >&5
5496$as_echo "$with_openssl_dir" >&6; }
5497 else
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
5499$as_echo "invalid" >&6; }
5500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5502as_fn_error $? "Invalid OpenSSL location: $with_openssl_dir
5503See \`config.log' for more details" "$LINENO" 5; }
5504 fi
jfigus038d2cf2015-05-11 14:10:11 -04005505else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507$as_echo "no" >&6; }
jfigus038d2cf2015-05-11 14:10:11 -04005508fi
5509
5510
Idar Tollefsen600ad962017-01-26 11:24:51 +01005511 if test "x$PKG_CONFIG" != "x"; then
Cullen Jenningse1de50f2013-05-22 12:27:28 -06005512
Idar Tollefsen600ad962017-01-26 11:24:51 +01005513pkg_failed=no
Pascal Buhlerac97f3e2019-06-26 13:54:43 +02005514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
5515$as_echo_n "checking for crypto... " >&6; }
Idar Tollefsen600ad962017-01-26 11:24:51 +01005516
5517if test -n "$crypto_CFLAGS"; then
5518 pkg_cv_crypto_CFLAGS="$crypto_CFLAGS"
5519 elif test -n "$PKG_CONFIG"; then
5520 if test -n "$PKG_CONFIG" && \
Pascal Bühlerac872e72017-02-09 14:55:27 +01005521 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.1\""; } >&5
5522 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.1") 2>&5
Idar Tollefsen600ad962017-01-26 11:24:51 +01005523 ac_status=$?
5524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5525 test $ac_status = 0; }; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005526 pkg_cv_crypto_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 1.0.1" 2>/dev/null`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005527 test "x$?" != "x0" && pkg_failed=yes
5528else
5529 pkg_failed=yes
5530fi
5531 else
5532 pkg_failed=untried
5533fi
5534if test -n "$crypto_LIBS"; then
5535 pkg_cv_crypto_LIBS="$crypto_LIBS"
5536 elif test -n "$PKG_CONFIG"; then
5537 if test -n "$PKG_CONFIG" && \
Pascal Bühlerac872e72017-02-09 14:55:27 +01005538 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.1\""; } >&5
5539 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.1") 2>&5
Idar Tollefsen600ad962017-01-26 11:24:51 +01005540 ac_status=$?
5541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5542 test $ac_status = 0; }; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005543 pkg_cv_crypto_LIBS=`$PKG_CONFIG --libs "libcrypto >= 1.0.1" 2>/dev/null`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005544 test "x$?" != "x0" && pkg_failed=yes
5545else
5546 pkg_failed=yes
5547fi
5548 else
5549 pkg_failed=untried
5550fi
5551
5552
5553
5554if test $pkg_failed = yes; then
Pascal Buhlerac97f3e2019-06-26 13:54:43 +02005555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Idar Tollefsen600ad962017-01-26 11:24:51 +01005556$as_echo "no" >&6; }
5557
5558if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5559 _pkg_short_errors_supported=yes
5560else
5561 _pkg_short_errors_supported=no
5562fi
5563 if test $_pkg_short_errors_supported = yes; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005564 crypto_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 1.0.1" 2>&1`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005565 else
Pascal Bühlerac872e72017-02-09 14:55:27 +01005566 crypto_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 1.0.1" 2>&1`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005567 fi
5568 # Put the nasty error message in config.log where it belongs
5569 echo "$crypto_PKG_ERRORS" >&5
5570
Pascal Bühlerac872e72017-02-09 14:55:27 +01005571 as_fn_error $? "Package requirements (libcrypto >= 1.0.1) were not met:
Idar Tollefsen600ad962017-01-26 11:24:51 +01005572
5573$crypto_PKG_ERRORS
5574
5575Consider adjusting the PKG_CONFIG_PATH environment variable if you
5576installed software in a non-standard prefix.
5577
5578Alternatively, you may set the environment variables crypto_CFLAGS
5579and crypto_LIBS to avoid the need to call pkg-config.
5580See the pkg-config man page for more details." "$LINENO" 5
5581elif test $pkg_failed = untried; then
Pascal Buhlerac97f3e2019-06-26 13:54:43 +02005582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Idar Tollefsen600ad962017-01-26 11:24:51 +01005583$as_echo "no" >&6; }
5584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5586as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5587is in your PATH or set the PKG_CONFIG environment variable to the full
5588path to pkg-config.
5589
5590Alternatively, you may set the environment variables crypto_CFLAGS
5591and crypto_LIBS to avoid the need to call pkg-config.
5592See the pkg-config man page for more details.
5593
5594To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5595See \`config.log' for more details" "$LINENO" 5; }
5596else
5597 crypto_CFLAGS=$pkg_cv_crypto_CFLAGS
5598 crypto_LIBS=$pkg_cv_crypto_LIBS
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5600$as_echo "yes" >&6; }
5601 CFLAGS="$CFLAGS $crypto_CFLAGS"
5602 LIBS="$crypto_LIBS $LIBS"
5603fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005604 else
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
jfigusb5fad5f2015-02-26 12:25:08 -05005606$as_echo_n "checking for dlopen in -ldl... " >&6; }
5607if ${ac_cv_lib_dl_dlopen+:} false; then :
5608 $as_echo_n "(cached) " >&6
5609else
5610 ac_check_lib_save_LIBS=$LIBS
5611LIBS="-ldl $LIBS"
5612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613/* end confdefs.h. */
5614
5615/* Override any GCC internal prototype to avoid an error.
5616 Use char because int might match the return type of a GCC
5617 builtin and then its argument prototype would still apply. */
5618#ifdef __cplusplus
5619extern "C"
5620#endif
5621char dlopen ();
5622int
5623main ()
5624{
5625return dlopen ();
5626 ;
5627 return 0;
5628}
5629_ACEOF
5630if ac_fn_c_try_link "$LINENO"; then :
5631 ac_cv_lib_dl_dlopen=yes
5632else
5633 ac_cv_lib_dl_dlopen=no
5634fi
5635rm -f core conftest.err conftest.$ac_objext \
5636 conftest$ac_exeext conftest.$ac_ext
5637LIBS=$ac_check_lib_save_LIBS
5638fi
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5640$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5641if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5642 cat >>confdefs.h <<_ACEOF
5643#define HAVE_LIBDL 1
5644_ACEOF
5645
5646 LIBS="-ldl $LIBS"
5647
5648else
jfigus13fd6942015-03-02 09:09:13 -05005649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libdl" >&5
5650$as_echo "$as_me: WARNING: can't find libdl" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005651fi
5652
Idar Tollefsen600ad962017-01-26 11:24:51 +01005653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
jfigusb5fad5f2015-02-26 12:25:08 -05005654$as_echo_n "checking for inflate in -lz... " >&6; }
5655if ${ac_cv_lib_z_inflate+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657else
5658 ac_check_lib_save_LIBS=$LIBS
5659LIBS="-lz $LIBS"
5660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661/* end confdefs.h. */
5662
5663/* Override any GCC internal prototype to avoid an error.
5664 Use char because int might match the return type of a GCC
5665 builtin and then its argument prototype would still apply. */
5666#ifdef __cplusplus
5667extern "C"
5668#endif
5669char inflate ();
5670int
5671main ()
5672{
5673return inflate ();
5674 ;
5675 return 0;
5676}
5677_ACEOF
5678if ac_fn_c_try_link "$LINENO"; then :
5679 ac_cv_lib_z_inflate=yes
5680else
5681 ac_cv_lib_z_inflate=no
5682fi
5683rm -f core conftest.err conftest.$ac_objext \
5684 conftest$ac_exeext conftest.$ac_ext
5685LIBS=$ac_check_lib_save_LIBS
5686fi
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
5688$as_echo "$ac_cv_lib_z_inflate" >&6; }
5689if test "x$ac_cv_lib_z_inflate" = xyes; then :
5690 cat >>confdefs.h <<_ACEOF
5691#define HAVE_LIBZ 1
5692_ACEOF
5693
5694 LIBS="-lz $LIBS"
5695
5696else
jfigus13fd6942015-03-02 09:09:13 -05005697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libz" >&5
5698$as_echo "$as_me: WARNING: can't find libz" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005699fi
5700
Idar Tollefsen600ad962017-01-26 11:24:51 +01005701 fi
5702
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_EncryptInit" >&5
5704$as_echo_n "checking for library containing EVP_EncryptInit... " >&6; }
5705if ${ac_cv_search_EVP_EncryptInit+:} false; then :
jfigusc7e66e32013-05-08 11:32:55 -04005706 $as_echo_n "(cached) " >&6
5707else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005708 ac_func_search_save_LIBS=$LIBS
jfigusc7e66e32013-05-08 11:32:55 -04005709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710/* end confdefs.h. */
5711
5712/* Override any GCC internal prototype to avoid an error.
5713 Use char because int might match the return type of a GCC
5714 builtin and then its argument prototype would still apply. */
5715#ifdef __cplusplus
5716extern "C"
5717#endif
5718char EVP_EncryptInit ();
5719int
5720main ()
5721{
5722return EVP_EncryptInit ();
5723 ;
5724 return 0;
5725}
5726_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005727for ac_lib in '' crypto; do
5728 if test -z "$ac_lib"; then
5729 ac_res="none required"
5730 else
5731 ac_res=-l$ac_lib
5732 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5733 fi
5734 if ac_fn_c_try_link "$LINENO"; then :
5735 ac_cv_search_EVP_EncryptInit=$ac_res
jfigusc7e66e32013-05-08 11:32:55 -04005736fi
5737rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01005738 conftest$ac_exeext
5739 if ${ac_cv_search_EVP_EncryptInit+:} false; then :
5740 break
jfigusc7e66e32013-05-08 11:32:55 -04005741fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005742done
5743if ${ac_cv_search_EVP_EncryptInit+:} false; then :
jfigusc7e66e32013-05-08 11:32:55 -04005744
Idar Tollefsen600ad962017-01-26 11:24:51 +01005745else
5746 ac_cv_search_EVP_EncryptInit=no
5747fi
5748rm conftest.$ac_ext
5749LIBS=$ac_func_search_save_LIBS
5750fi
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_EncryptInit" >&5
5752$as_echo "$ac_cv_search_EVP_EncryptInit" >&6; }
5753ac_res=$ac_cv_search_EVP_EncryptInit
5754if test "$ac_res" != no; then :
5755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04005756
5757else
5758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Pascal Bühlerac872e72017-02-09 14:55:27 +01005760as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
jfigus5b22e372013-05-09 09:23:26 -04005761See \`config.log' for more details" "$LINENO" 5; }
5762fi
5763
Idar Tollefsen600ad962017-01-26 11:24:51 +01005764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_aes_128_ctr" >&5
5765$as_echo_n "checking for library containing EVP_aes_128_ctr... " >&6; }
5766if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
jfigus5b22e372013-05-09 09:23:26 -04005767 $as_echo_n "(cached) " >&6
5768else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005769 ac_func_search_save_LIBS=$LIBS
jfigus5b22e372013-05-09 09:23:26 -04005770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771/* end confdefs.h. */
5772
5773/* Override any GCC internal prototype to avoid an error.
5774 Use char because int might match the return type of a GCC
5775 builtin and then its argument prototype would still apply. */
5776#ifdef __cplusplus
5777extern "C"
5778#endif
5779char EVP_aes_128_ctr ();
5780int
5781main ()
5782{
5783return EVP_aes_128_ctr ();
5784 ;
5785 return 0;
5786}
5787_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005788for ac_lib in '' crypto; do
5789 if test -z "$ac_lib"; then
5790 ac_res="none required"
5791 else
5792 ac_res=-l$ac_lib
5793 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5794 fi
5795 if ac_fn_c_try_link "$LINENO"; then :
5796 ac_cv_search_EVP_aes_128_ctr=$ac_res
jfigus5b22e372013-05-09 09:23:26 -04005797fi
5798rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01005799 conftest$ac_exeext
5800 if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
5801 break
jfigus5b22e372013-05-09 09:23:26 -04005802fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005803done
5804if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
jfigus5b22e372013-05-09 09:23:26 -04005805
Idar Tollefsen600ad962017-01-26 11:24:51 +01005806else
5807 ac_cv_search_EVP_aes_128_ctr=no
5808fi
5809rm conftest.$ac_ext
5810LIBS=$ac_func_search_save_LIBS
5811fi
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_aes_128_ctr" >&5
5813$as_echo "$ac_cv_search_EVP_aes_128_ctr" >&6; }
5814ac_res=$ac_cv_search_EVP_aes_128_ctr
5815if test "$ac_res" != no; then :
5816 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus5b22e372013-05-09 09:23:26 -04005817
5818else
5819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Pascal Bühlerac872e72017-02-09 14:55:27 +01005821as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
jfigusc7e66e32013-05-08 11:32:55 -04005822See \`config.log' for more details" "$LINENO" 5; }
5823fi
5824
Idar Tollefsen600ad962017-01-26 11:24:51 +01005825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_aes_128_gcm" >&5
5826$as_echo_n "checking for library containing EVP_aes_128_gcm... " >&6; }
5827if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
jfigus7882dd92013-08-02 16:08:23 -04005828 $as_echo_n "(cached) " >&6
5829else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005830 ac_func_search_save_LIBS=$LIBS
jfigus7882dd92013-08-02 16:08:23 -04005831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832/* end confdefs.h. */
5833
5834/* Override any GCC internal prototype to avoid an error.
5835 Use char because int might match the return type of a GCC
5836 builtin and then its argument prototype would still apply. */
5837#ifdef __cplusplus
5838extern "C"
5839#endif
5840char EVP_aes_128_gcm ();
5841int
5842main ()
5843{
5844return EVP_aes_128_gcm ();
5845 ;
5846 return 0;
5847}
5848_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005849for ac_lib in '' crypto; do
5850 if test -z "$ac_lib"; then
5851 ac_res="none required"
5852 else
5853 ac_res=-l$ac_lib
5854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5855 fi
5856 if ac_fn_c_try_link "$LINENO"; then :
5857 ac_cv_search_EVP_aes_128_gcm=$ac_res
jfigus7882dd92013-08-02 16:08:23 -04005858fi
5859rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01005860 conftest$ac_exeext
5861 if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
5862 break
jfigus7882dd92013-08-02 16:08:23 -04005863fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005864done
5865if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
jfigus7882dd92013-08-02 16:08:23 -04005866
Idar Tollefsen600ad962017-01-26 11:24:51 +01005867else
5868 ac_cv_search_EVP_aes_128_gcm=no
5869fi
5870rm conftest.$ac_ext
5871LIBS=$ac_func_search_save_LIBS
5872fi
5873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_aes_128_gcm" >&5
5874$as_echo "$ac_cv_search_EVP_aes_128_gcm" >&6; }
5875ac_res=$ac_cv_search_EVP_aes_128_gcm
5876if test "$ac_res" != no; then :
5877 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus7882dd92013-08-02 16:08:23 -04005878
5879else
5880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Pascal Bühlerac872e72017-02-09 14:55:27 +01005882as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
jfigus7882dd92013-08-02 16:08:23 -04005883See \`config.log' for more details" "$LINENO" 5; }
5884fi
5885
jfigusc7e66e32013-05-08 11:32:55 -04005886
Idar Tollefsen600ad962017-01-26 11:24:51 +01005887
Richard Barnes3e5efb02018-05-16 19:27:40 -05005888$as_echo "#define GCM 1" >>confdefs.h
5889
5890
jfigusc7e66e32013-05-08 11:32:55 -04005891$as_echo "#define OPENSSL 1" >>confdefs.h
5892
jfigus7882dd92013-08-02 16:08:23 -04005893 AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
jfigusc7e66e32013-05-08 11:32:55 -04005894 HMAC_OBJS=crypto/hash/hmac_ossl.o
Richard Barnes3e5efb02018-05-16 19:27:40 -05005895 USE_EXTERNAL_CRYPTO=1
jfigusc7e66e32013-05-08 11:32:55 -04005896
jfigus038d2cf2015-05-11 14:10:11 -04005897
Joachim Bauchec465b82018-05-30 12:23:36 +02005898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OPENSSL_cleanse is broken" >&5
5899$as_echo_n "checking if OPENSSL_cleanse is broken... " >&6; }
5900 if test "$cross_compiling" = yes; then :
5901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5903as_fn_error $? "cannot run test program while cross compiling
5904See \`config.log' for more details" "$LINENO" 5; }
5905else
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907/* end confdefs.h. */
5908
5909 #include <stdio.h>
5910 #include <openssl/crypto.h>
5911
5912int
5913main ()
5914{
5915
5916 #define BUFFER_SIZE (16)
5917 char buffer[BUFFER_SIZE];
5918 int i;
5919 for (i = 0; i < BUFFER_SIZE; i++) {
5920 buffer[i] = i & 0xff;
5921 }
5922 OPENSSL_cleanse(buffer, BUFFER_SIZE);
5923 for (i = 0; i < BUFFER_SIZE; i++) {
5924 if (buffer[i]) {
5925 printf("Buffer contents not zero at position %d (is %d)\n", i,
5926 buffer[i]);
5927 return 1;
5928 }
5929 }
5930
5931 ;
5932 return 0;
5933}
5934_ACEOF
5935if ac_fn_c_try_run "$LINENO"; then :
5936 openssl_cleanse_broken=no
5937else
5938
5939 openssl_cleanse_broken=yes
5940
5941$as_echo "#define OPENSSL_CLEANSE_BROKEN 1" >>confdefs.h
5942
5943
5944fi
5945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5946 conftest.$ac_objext conftest.beam conftest.$ac_ext
5947fi
5948
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_cleanse_broken" >&5
5950$as_echo "$openssl_cleanse_broken" >&6; }
5951
jfigus038d2cf2015-05-11 14:10:11 -04005952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL KDF algorithm" >&5
5953$as_echo_n "checking whether to leverage OpenSSL KDF algorithm... " >&6; }
5954 # Check whether --enable-openssl-kdf was given.
5955if test "${enable_openssl_kdf+set}" = set; then :
5956 enableval=$enable_openssl_kdf;
5957else
5958 enable_openssl_kdf=no
5959fi
5960
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl_kdf" >&5
5962$as_echo "$enable_openssl_kdf" >&6; }
5963 if test "$enable_openssl_kdf" = "yes"; then
Idar Tollefsen600ad962017-01-26 11:24:51 +01005964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kdf_srtp" >&5
5965$as_echo_n "checking for library containing kdf_srtp... " >&6; }
5966if ${ac_cv_search_kdf_srtp+:} false; then :
jfigus038d2cf2015-05-11 14:10:11 -04005967 $as_echo_n "(cached) " >&6
5968else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005969 ac_func_search_save_LIBS=$LIBS
jfigus038d2cf2015-05-11 14:10:11 -04005970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971/* end confdefs.h. */
5972
5973/* Override any GCC internal prototype to avoid an error.
5974 Use char because int might match the return type of a GCC
5975 builtin and then its argument prototype would still apply. */
5976#ifdef __cplusplus
5977extern "C"
5978#endif
5979char kdf_srtp ();
5980int
5981main ()
5982{
5983return kdf_srtp ();
5984 ;
5985 return 0;
5986}
5987_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005988for ac_lib in '' crypto; do
5989 if test -z "$ac_lib"; then
5990 ac_res="none required"
5991 else
5992 ac_res=-l$ac_lib
5993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5994 fi
5995 if ac_fn_c_try_link "$LINENO"; then :
5996 ac_cv_search_kdf_srtp=$ac_res
jfigus038d2cf2015-05-11 14:10:11 -04005997fi
5998rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01005999 conftest$ac_exeext
6000 if ${ac_cv_search_kdf_srtp+:} false; then :
6001 break
jfigus038d2cf2015-05-11 14:10:11 -04006002fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01006003done
6004if ${ac_cv_search_kdf_srtp+:} false; then :
jfigus038d2cf2015-05-11 14:10:11 -04006005
Idar Tollefsen600ad962017-01-26 11:24:51 +01006006else
6007 ac_cv_search_kdf_srtp=no
6008fi
6009rm conftest.$ac_ext
6010LIBS=$ac_func_search_save_LIBS
6011fi
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kdf_srtp" >&5
6013$as_echo "$ac_cv_search_kdf_srtp" >&6; }
6014ac_res=$ac_cv_search_kdf_srtp
6015if test "$ac_res" != no; then :
6016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus038d2cf2015-05-11 14:10:11 -04006017
6018else
6019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6021as_fn_error $? "can't find openssl KDF lib
6022See \`config.log' for more details" "$LINENO" 5; }
6023fi
6024
6025
6026$as_echo "#define OPENSSL_KDF 1" >>confdefs.h
6027
6028 fi
Richard Barnes12872092018-05-16 16:31:16 -07006029elif test "$enable_nss" = "yes"; then
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user specified NSS directory" >&5
6031$as_echo_n "checking for user specified NSS directory... " >&6; }
6032
6033# Check whether --with-nss-dir was given.
6034if test "${with_nss_dir+set}" = set; then :
Pascal Buhlera946b3f2018-08-23 21:41:31 +02006035 withval=$with_nss_dir; if test "x$PKG_CONFIG" != "x" && test -f $with_nss_dir/lib/pkgconfig/nss.pc; then
6036 if test "x$PKG_CONFIG_PATH" = "x"; then
6037 export PKG_CONFIG_PATH="$with_nss_dir/lib/pkgconfig"
6038 else
6039 export PKG_CONFIG_PATH="$with_nss_dir/lib/pkgconfig:$PKG_CONFIG_PATH"
6040 fi
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_nss_dir" >&5
6042$as_echo "$with_nss_dir" >&6; }
6043 elif test -d $with_nss_dir/lib; then
6044 CFLAGS="$CFLAGS -I$with_nss_dir/include"
6045 CFLAGS="$CFLAGS -I$with_nss_dir/../public/nss"
Richard Barnes12872092018-05-16 16:31:16 -07006046 if test "x$LDFLAGS" = "x"; then
6047 LDFLAGS="-L$with_nss_dir/lib"
6048 else
6049 LDFLAGS="$LDFLAGS -L$with_nss_dir/lib"
6050 fi
Pascal Buhlera946b3f2018-08-23 21:41:31 +02006051 nss_skip_pkg_config=yes
Richard Barnes12872092018-05-16 16:31:16 -07006052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_nss_dir" >&5
6053$as_echo "$with_nss_dir" >&6; }
6054 else
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
6056$as_echo "invalid" >&6; }
6057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Richard Barnes93733792018-07-27 15:09:35 -04006059as_fn_error $? "Invalid NSS location: $with_nss_dir
Richard Barnes12872092018-05-16 16:31:16 -07006060See \`config.log' for more details" "$LINENO" 5; }
Pascal Buhlera946b3f2018-08-23 21:41:31 +02006061 fi
6062 CRYPTO_LIBDIR=$with_nss_dir/lib
6063
Richard Barnes12872092018-05-16 16:31:16 -07006064else
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066$as_echo "no" >&6; }
6067fi
6068
6069
Pascal Buhlera946b3f2018-08-23 21:41:31 +02006070 if test "x$PKG_CONFIG" != "x" && test "$nss_skip_pkg_config" != "yes"; then
6071
6072pkg_failed=no
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
6074$as_echo_n "checking for nss... " >&6; }
6075
6076if test -n "$nss_CFLAGS"; then
6077 pkg_cv_nss_CFLAGS="$nss_CFLAGS"
6078 elif test -n "$PKG_CONFIG"; then
6079 if test -n "$PKG_CONFIG" && \
6080 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
6081 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
6082 ac_status=$?
6083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6084 test $ac_status = 0; }; then
6085 pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
6086 test "x$?" != "x0" && pkg_failed=yes
6087else
6088 pkg_failed=yes
6089fi
6090 else
6091 pkg_failed=untried
6092fi
6093if test -n "$nss_LIBS"; then
6094 pkg_cv_nss_LIBS="$nss_LIBS"
6095 elif test -n "$PKG_CONFIG"; then
6096 if test -n "$PKG_CONFIG" && \
6097 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
6098 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
6099 ac_status=$?
6100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6101 test $ac_status = 0; }; then
6102 pkg_cv_nss_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
6103 test "x$?" != "x0" && pkg_failed=yes
6104else
6105 pkg_failed=yes
6106fi
6107 else
6108 pkg_failed=untried
6109fi
6110
6111
6112
6113if test $pkg_failed = yes; then
Pascal Buhlerac97f3e2019-06-26 13:54:43 +02006114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Pascal Buhlera946b3f2018-08-23 21:41:31 +02006115$as_echo "no" >&6; }
6116
6117if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6118 _pkg_short_errors_supported=yes
6119else
6120 _pkg_short_errors_supported=no
6121fi
6122 if test $_pkg_short_errors_supported = yes; then
6123 nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1`
6124 else
6125 nss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1`
6126 fi
6127 # Put the nasty error message in config.log where it belongs
6128 echo "$nss_PKG_ERRORS" >&5
6129
6130 as_fn_error $? "Package requirements (nss) were not met:
6131
6132$nss_PKG_ERRORS
6133
6134Consider adjusting the PKG_CONFIG_PATH environment variable if you
6135installed software in a non-standard prefix.
6136
6137Alternatively, you may set the environment variables nss_CFLAGS
6138and nss_LIBS to avoid the need to call pkg-config.
6139See the pkg-config man page for more details." "$LINENO" 5
6140elif test $pkg_failed = untried; then
Pascal Buhlerac97f3e2019-06-26 13:54:43 +02006141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Pascal Buhlera946b3f2018-08-23 21:41:31 +02006142$as_echo "no" >&6; }
6143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6145as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6146is in your PATH or set the PKG_CONFIG environment variable to the full
6147path to pkg-config.
6148
6149Alternatively, you may set the environment variables nss_CFLAGS
6150and nss_LIBS to avoid the need to call pkg-config.
6151See the pkg-config man page for more details.
6152
6153To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6154See \`config.log' for more details" "$LINENO" 5; }
6155else
6156 nss_CFLAGS=$pkg_cv_nss_CFLAGS
6157 nss_LIBS=$pkg_cv_nss_LIBS
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6159$as_echo "yes" >&6; }
6160 CFLAGS="$CFLAGS $nss_CFLAGS"
6161 LIBS="$nss_LIBS $LIBS"
6162fi
6163 else
Pascal Buhlera83736e2018-09-06 22:15:09 +02006164 for ac_header in nss.h
6165do :
6166 ac_fn_c_check_header_compile "$LINENO" "nss.h" "ac_cv_header_nss_h" "$ac_includes_default
6167"
6168if test "x$ac_cv_header_nss_h" = xyes; then :
6169 cat >>confdefs.h <<_ACEOF
6170#define HAVE_NSS_H 1
6171_ACEOF
6172
6173else
6174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6176as_fn_error $? "can't find useable NSS headers
6177See \`config.log' for more details" "$LINENO" 5; }
6178fi
6179
6180done
6181
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_GetError in -lnspr4" >&5
6183$as_echo_n "checking for PR_GetError in -lnspr4... " >&6; }
6184if ${ac_cv_lib_nspr4_PR_GetError+:} false; then :
6185 $as_echo_n "(cached) " >&6
6186else
6187 ac_check_lib_save_LIBS=$LIBS
6188LIBS="-lnspr4 $LIBS"
6189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190/* end confdefs.h. */
6191
6192/* Override any GCC internal prototype to avoid an error.
6193 Use char because int might match the return type of a GCC
6194 builtin and then its argument prototype would still apply. */
6195#ifdef __cplusplus
6196extern "C"
6197#endif
6198char PR_GetError ();
6199int
6200main ()
6201{
6202return PR_GetError ();
6203 ;
6204 return 0;
6205}
6206_ACEOF
6207if ac_fn_c_try_link "$LINENO"; then :
6208 ac_cv_lib_nspr4_PR_GetError=yes
6209else
6210 ac_cv_lib_nspr4_PR_GetError=no
6211fi
6212rm -f core conftest.err conftest.$ac_objext \
6213 conftest$ac_exeext conftest.$ac_ext
6214LIBS=$ac_check_lib_save_LIBS
6215fi
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_GetError" >&5
6217$as_echo "$ac_cv_lib_nspr4_PR_GetError" >&6; }
6218if test "x$ac_cv_lib_nspr4_PR_GetError" = xyes; then :
6219 cat >>confdefs.h <<_ACEOF
6220#define HAVE_LIBNSPR4 1
6221_ACEOF
6222
6223 LIBS="-lnspr4 $LIBS"
6224
6225else
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libnspr4" >&5
6227$as_echo "$as_me: WARNING: can't find libnspr4" >&2;}
6228fi
6229
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_NoDB_Init in -lnss3" >&5
6231$as_echo_n "checking for NSS_NoDB_Init in -lnss3... " >&6; }
6232if ${ac_cv_lib_nss3_NSS_NoDB_Init+:} false; then :
6233 $as_echo_n "(cached) " >&6
6234else
6235 ac_check_lib_save_LIBS=$LIBS
6236LIBS="-lnss3 $LIBS"
6237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238/* end confdefs.h. */
6239
6240/* Override any GCC internal prototype to avoid an error.
6241 Use char because int might match the return type of a GCC
6242 builtin and then its argument prototype would still apply. */
6243#ifdef __cplusplus
6244extern "C"
6245#endif
6246char NSS_NoDB_Init ();
6247int
6248main ()
6249{
6250return NSS_NoDB_Init ();
6251 ;
6252 return 0;
6253}
6254_ACEOF
6255if ac_fn_c_try_link "$LINENO"; then :
6256 ac_cv_lib_nss3_NSS_NoDB_Init=yes
6257else
6258 ac_cv_lib_nss3_NSS_NoDB_Init=no
6259fi
6260rm -f core conftest.err conftest.$ac_objext \
6261 conftest$ac_exeext conftest.$ac_ext
6262LIBS=$ac_check_lib_save_LIBS
6263fi
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_NoDB_Init" >&5
6265$as_echo "$ac_cv_lib_nss3_NSS_NoDB_Init" >&6; }
6266if test "x$ac_cv_lib_nss3_NSS_NoDB_Init" = xyes; then :
6267 cat >>confdefs.h <<_ACEOF
6268#define HAVE_LIBNSS3 1
6269_ACEOF
6270
6271 LIBS="-lnss3 $LIBS"
6272
6273else
6274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6276as_fn_error $? "can't find useable libnss3
6277See \`config.log' for more details" "$LINENO" 5; }
6278fi
6279
Pascal Buhlera946b3f2018-08-23 21:41:31 +02006280 fi
6281
Richard Barnes12872092018-05-16 16:31:16 -07006282
Richard Barnes3e5efb02018-05-16 19:27:40 -05006283$as_echo "#define GCM 1" >>confdefs.h
6284
6285
Richard Barnes12872092018-05-16 16:31:16 -07006286$as_echo "#define NSS 1" >>confdefs.h
6287
6288 AES_ICM_OBJS="crypto/cipher/aes_icm_nss.o crypto/cipher/aes_gcm_nss.o"
6289
6290 # TODO(RLB): Use NSS for HMAC
6291 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
6292
6293 # TODO(RLB): Use NSS for KDF
6294
Richard Barnes3e5efb02018-05-16 19:27:40 -05006295 USE_EXTERNAL_CRYPTO=1
Richard Barnes12872092018-05-16 16:31:16 -07006296
jfigusc7e66e32013-05-08 11:32:55 -04006297else
jfigusa3127b82014-11-19 14:46:52 -05006298 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o"
jfigusc7e66e32013-05-08 11:32:55 -04006299 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
6300fi
6301
6302
6303
Martin Meszarosf59ef4a2017-11-01 10:55:33 +01006304
Martin Meszaros96d0b9a2017-11-01 12:31:37 +01006305PCAP_LIB=""
Bernardo Torres79e38ae2014-10-10 05:29:36 -03006306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
6307$as_echo_n "checking for pcap_create in -lpcap... " >&6; }
6308if ${ac_cv_lib_pcap_pcap_create+:} false; then :
6309 $as_echo_n "(cached) " >&6
6310else
6311 ac_check_lib_save_LIBS=$LIBS
6312LIBS="-lpcap $LIBS"
6313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314/* end confdefs.h. */
6315
6316/* Override any GCC internal prototype to avoid an error.
6317 Use char because int might match the return type of a GCC
6318 builtin and then its argument prototype would still apply. */
6319#ifdef __cplusplus
6320extern "C"
6321#endif
6322char pcap_create ();
6323int
6324main ()
6325{
6326return pcap_create ();
6327 ;
6328 return 0;
6329}
6330_ACEOF
6331if ac_fn_c_try_link "$LINENO"; then :
6332 ac_cv_lib_pcap_pcap_create=yes
6333else
6334 ac_cv_lib_pcap_pcap_create=no
6335fi
6336rm -f core conftest.err conftest.$ac_objext \
6337 conftest$ac_exeext conftest.$ac_ext
6338LIBS=$ac_check_lib_save_LIBS
6339fi
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
6341$as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
6342if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
Martin Meszaros96d0b9a2017-11-01 12:31:37 +01006343 PCAP_LIB="-lpcap"
Bernardo Torres79e38ae2014-10-10 05:29:36 -03006344
Bernardo Torresb3c51422014-10-14 12:40:09 -03006345$as_echo "#define HAVE_PCAP 1" >>confdefs.h
6346
Idar Tollefsen600ad962017-01-26 11:24:51 +01006347 HAVE_PCAP=1
Bernardo Torres79e38ae2014-10-10 05:29:36 -03006348
6349fi
6350
Bernardo Torres79e38ae2014-10-10 05:29:36 -03006351
Martin Meszaros3edfada2017-11-01 10:55:33 +01006352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lwpcap" >&5
6353$as_echo_n "checking for pcap_create in -lwpcap... " >&6; }
6354if ${ac_cv_lib_wpcap_pcap_create+:} false; then :
6355 $as_echo_n "(cached) " >&6
6356else
6357 ac_check_lib_save_LIBS=$LIBS
6358LIBS="-lwpcap $LIBS"
6359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360/* end confdefs.h. */
6361
6362/* Override any GCC internal prototype to avoid an error.
6363 Use char because int might match the return type of a GCC
6364 builtin and then its argument prototype would still apply. */
6365#ifdef __cplusplus
6366extern "C"
6367#endif
6368char pcap_create ();
6369int
6370main ()
6371{
6372return pcap_create ();
6373 ;
6374 return 0;
6375}
6376_ACEOF
6377if ac_fn_c_try_link "$LINENO"; then :
6378 ac_cv_lib_wpcap_pcap_create=yes
6379else
6380 ac_cv_lib_wpcap_pcap_create=no
6381fi
6382rm -f core conftest.err conftest.$ac_objext \
6383 conftest$ac_exeext conftest.$ac_ext
6384LIBS=$ac_check_lib_save_LIBS
6385fi
6386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wpcap_pcap_create" >&5
6387$as_echo "$ac_cv_lib_wpcap_pcap_create" >&6; }
6388if test "x$ac_cv_lib_wpcap_pcap_create" = xyes; then :
Martin Meszaros96d0b9a2017-11-01 12:31:37 +01006389 PCAP_LIB="-lwpcap"
Martin Meszaros3edfada2017-11-01 10:55:33 +01006390
6391$as_echo "#define HAVE_PCAP 1" >>confdefs.h
6392
6393 HAVE_PCAP=1
6394
6395fi
6396
6397
Martin Meszaros96d0b9a2017-11-01 12:31:37 +01006398
Pascal Bühler75918862017-02-19 18:33:50 +01006399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to redirect logging to stdout" >&5
6400$as_echo_n "checking whether to redirect logging to stdout... " >&6; }
6401# Check whether --enable-log-stdout was given.
6402if test "${enable_log_stdout+set}" = set; then :
6403 enableval=$enable_log_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00006404else
Pascal Bühler75918862017-02-19 18:33:50 +01006405 enable_log_stdout=no
jfigusc7e66e32013-05-08 11:32:55 -04006406fi
6407
Pascal Bühler75918862017-02-19 18:33:50 +01006408if test "$enable_log_stdout" = "yes"; then
David McGrewb67061f2005-09-28 14:23:06 +00006409
jfigusc7e66e32013-05-08 11:32:55 -04006410$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00006411
6412fi
Pascal Bühler75918862017-02-19 18:33:50 +01006413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_stdout" >&5
6414$as_echo "$enable_log_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00006415
Pascal Bühler75918862017-02-19 18:33:50 +01006416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking wheather to use a file for logging" >&5
6417$as_echo_n "checking wheather to use a file for logging... " >&6; }
6418
6419# Check whether --with-log-file was given.
6420if test "${with_log_file+set}" = set; then :
6421 withval=$with_log_file; case x$with_log_file in #(
6422 x) :
6423 valid_with_log_file="no" ;; #(
6424 xyes) :
6425 valid_with_log_file="no" ;; #(
6426 *) :
6427 valid_with_error_file="yes" ;;
6428esac
6429 if test "$valid_with_log_file" = "no"; then :
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
6431$as_echo "invalid" >&6; }
6432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6434as_fn_error $? "Invalid value for --with-log-file: \"$with_log_file\"
6435See \`config.log' for more details" "$LINENO" 5; }
David McGrewb67061f2005-09-28 14:23:06 +00006436else
Pascal Bühler75918862017-02-19 18:33:50 +01006437
6438cat >>confdefs.h <<_ACEOF
6439#define ERR_REPORTING_FILE "$with_log_file"
6440_ACEOF
6441
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using log file: \"$with_log_file\"" >&5
6443$as_echo "using log file: \"$with_log_file\"" >&6; }
6444fi
6445else
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447$as_echo "no" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04006448fi
6449
David McGrewb67061f2005-09-28 14:23:06 +00006450
Pascal Bühler75918862017-02-19 18:33:50 +01006451if test "$enable_log_stdout" = "yes" && test "x$with_log_file" != "x"; then :
6452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6454as_fn_error $? "Can only use one of --enable-log-stdout and --with-log-file; they are mutually exclusive
6455See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00006456fi
David McGrewb67061f2005-09-28 14:23:06 +00006457
Idar Tollefsencb771f72017-05-03 13:20:08 +02006458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra C compiler flags" >&5
6459$as_echo_n "checking for extra C compiler flags... " >&6; }
6460if test "x$EXTRA_CFLAGS" != "x"; then :
6461 if test "x$CFLAGS" = "x"; then :
6462 CFLAGS="$EXTRA_CFLAGS"
6463else
6464 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
6465fi
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_CFLAGS" >&5
6467$as_echo "$EXTRA_CFLAGS" >&6; }
6468else
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470$as_echo "no" >&6; }
6471fi
6472
jfigusc7e66e32013-05-08 11:32:55 -04006473ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00006474
6475
Pascal Buhlerac97f3e2019-06-26 13:54:43 +02006476ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile fuzzer/Makefile libsrtp2.pc"
jfigusc7e66e32013-05-08 11:32:55 -04006477
Cullen Jennings235513a2005-09-21 22:51:36 +00006478cat >confcache <<\_ACEOF
6479# This file is a shell script that caches the results of configure
6480# tests run on this system so they can be shared between configure
6481# scripts and configure runs, see configure's option --config-cache.
6482# It is not useful on other systems. If it contains results you don't
6483# want to keep, you may remove or edit it.
6484#
6485# config.status only pays attention to the cache file if you give it
6486# the --recheck option to rerun configure.
6487#
6488# `ac_cv_env_foo' variables (set or unset) will be overridden when
6489# loading this file, other *unset* `ac_cv_foo' will be assigned the
6490# following values.
6491
6492_ACEOF
6493
6494# The following way of writing the cache mishandles newlines in values,
6495# but we know of no workaround that is simple, portable, and efficient.
jfigusc7e66e32013-05-08 11:32:55 -04006496# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00006497# Ultrix sh set writes to stderr and can't be redirected directly,
6498# and sets the high bit in the cache file unless we assign to the vars.
jfigusc7e66e32013-05-08 11:32:55 -04006499(
6500 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6501 eval ac_val=\$$ac_var
6502 case $ac_val in #(
6503 *${as_nl}*)
6504 case $ac_var in #(
6505 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6506$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6507 esac
6508 case $ac_var in #(
6509 _ | IFS | as_nl) ;; #(
6510 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6511 *) { eval $ac_var=; unset $ac_var;} ;;
6512 esac ;;
6513 esac
6514 done
6515
Cullen Jennings235513a2005-09-21 22:51:36 +00006516 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04006517 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6518 *${as_nl}ac_space=\ *)
6519 # `set' does not quote correctly, so add quotes: double-quote
6520 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00006521 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00006522 "s/'/'\\\\''/g;
6523 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusc7e66e32013-05-08 11:32:55 -04006524 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00006525 *)
6526 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusc7e66e32013-05-08 11:32:55 -04006527 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00006528 ;;
jfigusc7e66e32013-05-08 11:32:55 -04006529 esac |
6530 sort
6531) |
Cullen Jennings235513a2005-09-21 22:51:36 +00006532 sed '
jfigusc7e66e32013-05-08 11:32:55 -04006533 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00006534 t clear
jfigusc7e66e32013-05-08 11:32:55 -04006535 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00006536 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6537 t end
jfigusc7e66e32013-05-08 11:32:55 -04006538 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6539 :end' >>confcache
6540if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6541 if test -w "$cache_file"; then
6542 if test "x$cache_file" != "x/dev/null"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6544$as_echo "$as_me: updating cache $cache_file" >&6;}
6545 if test ! -f "$cache_file" || test -h "$cache_file"; then
6546 cat confcache >"$cache_file"
6547 else
6548 case $cache_file in #(
6549 */* | ?:*)
6550 mv -f confcache "$cache_file"$$ &&
6551 mv -f "$cache_file"$$ "$cache_file" ;; #(
6552 *)
6553 mv -f confcache "$cache_file" ;;
6554 esac
6555 fi
6556 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006557 else
jfigusc7e66e32013-05-08 11:32:55 -04006558 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6559$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006560 fi
6561fi
6562rm -f confcache
6563
6564test "x$prefix" = xNONE && prefix=$ac_default_prefix
6565# Let make expand exec_prefix.
6566test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6567
Cullen Jennings235513a2005-09-21 22:51:36 +00006568DEFS=-DHAVE_CONFIG_H
6569
6570ac_libobjs=
6571ac_ltlibobjs=
jfigusc7e66e32013-05-08 11:32:55 -04006572U=
Cullen Jennings235513a2005-09-21 22:51:36 +00006573for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6574 # 1. Remove the extension, and $U if already installed.
jfigusc7e66e32013-05-08 11:32:55 -04006575 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6576 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6577 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6578 # will be set to the directory where LIBOBJS objects are built.
6579 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6580 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00006581done
6582LIBOBJS=$ac_libobjs
6583
6584LTLIBOBJS=$ac_ltlibobjs
6585
6586
6587
jfigusc7e66e32013-05-08 11:32:55 -04006588
6589: "${CONFIG_STATUS=./config.status}"
6590ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00006591ac_clean_files_save=$ac_clean_files
6592ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusc7e66e32013-05-08 11:32:55 -04006593{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6594$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6595as_write_fail=0
6596cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006597#! $SHELL
6598# Generated by $as_me.
6599# Run this file to recreate the current configuration.
6600# Compiler output produced by configure, useful for debugging
6601# configure, is in config.log if it exists.
6602
6603debug=false
6604ac_cs_recheck=false
6605ac_cs_silent=false
jfigusc7e66e32013-05-08 11:32:55 -04006606
Cullen Jennings235513a2005-09-21 22:51:36 +00006607SHELL=\${CONFIG_SHELL-$SHELL}
jfigusc7e66e32013-05-08 11:32:55 -04006608export SHELL
6609_ASEOF
6610cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6611## -------------------- ##
6612## M4sh Initialization. ##
6613## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00006614
jfigusc7e66e32013-05-08 11:32:55 -04006615# Be more Bourne compatible
6616DUALCASE=1; export DUALCASE # for MKS sh
6617if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00006618 emulate sh
6619 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -04006620 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00006621 # is contrary to our usage. Disable this feature.
6622 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -04006623 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00006624else
jfigusc7e66e32013-05-08 11:32:55 -04006625 case `(set -o) 2>/dev/null` in #(
6626 *posix*) :
6627 set -o posix ;; #(
6628 *) :
6629 ;;
6630esac
Cullen Jennings235513a2005-09-21 22:51:36 +00006631fi
6632
6633
jfigusc7e66e32013-05-08 11:32:55 -04006634as_nl='
6635'
6636export as_nl
6637# Printing a long string crashes Solaris 7 /usr/bin/printf.
6638as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6639as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6640as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6641# Prefer a ksh shell builtin over an external printf program on Solaris,
6642# but without wasting forks for bash or zsh.
6643if test -z "$BASH_VERSION$ZSH_VERSION" \
6644 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6645 as_echo='print -r --'
6646 as_echo_n='print -rn --'
6647elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6648 as_echo='printf %s\n'
6649 as_echo_n='printf %s'
6650else
6651 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6652 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6653 as_echo_n='/usr/ucb/echo -n'
6654 else
6655 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6656 as_echo_n_body='eval
6657 arg=$1;
6658 case $arg in #(
6659 *"$as_nl"*)
6660 expr "X$arg" : "X\\(.*\\)$as_nl";
6661 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6662 esac;
6663 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6664 '
6665 export as_echo_n_body
6666 as_echo_n='sh -c $as_echo_n_body as_echo'
6667 fi
6668 export as_echo_body
6669 as_echo='sh -c $as_echo_body as_echo'
6670fi
6671
6672# The user is always right.
6673if test "${PATH_SEPARATOR+set}" != set; then
6674 PATH_SEPARATOR=:
6675 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6676 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6677 PATH_SEPARATOR=';'
6678 }
6679fi
6680
6681
6682# IFS
6683# We need space, tab and new line, in precisely that order. Quoting is
6684# there to prevent editors from complaining about space-tab.
6685# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6686# splitting by setting IFS to empty value.)
6687IFS=" "" $as_nl"
6688
6689# Find who we are. Look in the path if we contain no directory separator.
6690as_myself=
6691case $0 in #((
6692 *[\\/]* ) as_myself=$0 ;;
6693 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694for as_dir in $PATH
6695do
6696 IFS=$as_save_IFS
6697 test -z "$as_dir" && as_dir=.
6698 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6699 done
6700IFS=$as_save_IFS
6701
6702 ;;
6703esac
6704# We did not find ourselves, most probably we were run as `sh COMMAND'
6705# in which case we are not to be found in the path.
6706if test "x$as_myself" = x; then
6707 as_myself=$0
6708fi
6709if test ! -f "$as_myself"; then
6710 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6711 exit 1
6712fi
6713
6714# Unset variables that we do not need and which cause bugs (e.g. in
6715# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6716# suppresses any "Segmentation fault" message there. '((' could
6717# trigger a bug in pdksh 5.2.14.
6718for as_var in BASH_ENV ENV MAIL MAILPATH
6719do eval test x\${$as_var+set} = xset \
6720 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6721done
Cullen Jennings235513a2005-09-21 22:51:36 +00006722PS1='$ '
6723PS2='> '
6724PS4='+ '
6725
6726# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -04006727LC_ALL=C
6728export LC_ALL
6729LANGUAGE=C
6730export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -04006731
jfigusc7e66e32013-05-08 11:32:55 -04006732# CDPATH.
6733(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6734
6735
6736# as_fn_error STATUS ERROR [LINENO LOG_FD]
6737# ----------------------------------------
6738# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6739# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6740# script with STATUS, using 1 if that was 0.
6741as_fn_error ()
6742{
6743 as_status=$1; test $as_status -eq 0 && as_status=1
6744 if test "$4"; then
6745 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6746 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6747 fi
6748 $as_echo "$as_me: error: $2" >&2
6749 as_fn_exit $as_status
6750} # as_fn_error
6751
6752
6753# as_fn_set_status STATUS
6754# -----------------------
6755# Set $? to STATUS, without forking.
6756as_fn_set_status ()
6757{
6758 return $1
6759} # as_fn_set_status
6760
6761# as_fn_exit STATUS
6762# -----------------
6763# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6764as_fn_exit ()
6765{
6766 set +e
6767 as_fn_set_status $1
6768 exit $1
6769} # as_fn_exit
6770
6771# as_fn_unset VAR
6772# ---------------
6773# Portably unset VAR.
6774as_fn_unset ()
6775{
6776 { eval $1=; unset $1;}
6777}
6778as_unset=as_fn_unset
6779# as_fn_append VAR VALUE
6780# ----------------------
6781# Append the text in VALUE to the end of the definition contained in VAR. Take
6782# advantage of any shell optimizations that allow amortized linear growth over
6783# repeated appends, instead of the typical quadratic growth present in naive
6784# implementations.
6785if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6786 eval 'as_fn_append ()
6787 {
6788 eval $1+=\$2
6789 }'
6790else
6791 as_fn_append ()
6792 {
6793 eval $1=\$$1\$2
6794 }
6795fi # as_fn_append
6796
6797# as_fn_arith ARG...
6798# ------------------
6799# Perform arithmetic evaluation on the ARGs, and store the result in the
6800# global $as_val. Take advantage of shells that can avoid forks. The arguments
6801# must be portable across $(()) and expr.
6802if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6803 eval 'as_fn_arith ()
6804 {
6805 as_val=$(( $* ))
6806 }'
6807else
6808 as_fn_arith ()
6809 {
6810 as_val=`expr "$@" || test $? -eq 1`
6811 }
6812fi # as_fn_arith
6813
6814
6815if expr a : '\(a\)' >/dev/null 2>&1 &&
6816 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006817 as_expr=expr
6818else
6819 as_expr=false
6820fi
6821
jfigusc7e66e32013-05-08 11:32:55 -04006822if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006823 as_basename=basename
6824else
6825 as_basename=false
6826fi
6827
jfigusc7e66e32013-05-08 11:32:55 -04006828if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6829 as_dirname=dirname
6830else
6831 as_dirname=false
6832fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006833
jfigusc7e66e32013-05-08 11:32:55 -04006834as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006835$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6836 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006837 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6838$as_echo X/"$0" |
6839 sed '/^.*\/\([^/][^/]*\)\/*$/{
6840 s//\1/
6841 q
6842 }
6843 /^X\/\(\/\/\)$/{
6844 s//\1/
6845 q
6846 }
6847 /^X\/\(\/\).*/{
6848 s//\1/
6849 q
6850 }
6851 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00006852
Cullen Jennings235513a2005-09-21 22:51:36 +00006853# Avoid depending upon Character Ranges.
6854as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6855as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6856as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6857as_cr_digits='0123456789'
6858as_cr_alnum=$as_cr_Letters$as_cr_digits
6859
jfigusc7e66e32013-05-08 11:32:55 -04006860ECHO_C= ECHO_N= ECHO_T=
6861case `echo -n x` in #(((((
6862-n*)
6863 case `echo 'xy\c'` in
6864 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6865 xy) ECHO_C='\c';;
6866 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6867 ECHO_T=' ';;
6868 esac;;
6869*)
6870 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00006871esac
6872
Cullen Jennings235513a2005-09-21 22:51:36 +00006873rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -04006874if test -d conf$$.dir; then
6875 rm -f conf$$.dir/conf$$.file
6876else
6877 rm -f conf$$.dir
6878 mkdir conf$$.dir 2>/dev/null
6879fi
6880if (echo >conf$$.file) 2>/dev/null; then
6881 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006882 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -04006883 # ... but there are two gotchas:
6884 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6885 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6886 # In both cases, we have to default to `cp -pR'.
6887 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6888 as_ln_s='cp -pR'
6889 elif ln conf$$.file conf$$ 2>/dev/null; then
6890 as_ln_s=ln
6891 else
6892 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006893 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006894else
jfigusc7e66e32013-05-08 11:32:55 -04006895 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006896fi
jfigusc7e66e32013-05-08 11:32:55 -04006897rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6898rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00006899
jfigusc7e66e32013-05-08 11:32:55 -04006900
6901# as_fn_mkdir_p
6902# -------------
6903# Create "$as_dir" as a directory, including parents if necessary.
6904as_fn_mkdir_p ()
6905{
6906
6907 case $as_dir in #(
6908 -*) as_dir=./$as_dir;;
6909 esac
6910 test -d "$as_dir" || eval $as_mkdir_p || {
6911 as_dirs=
6912 while :; do
6913 case $as_dir in #(
6914 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6915 *) as_qdir=$as_dir;;
6916 esac
6917 as_dirs="'$as_qdir' $as_dirs"
6918 as_dir=`$as_dirname -- "$as_dir" ||
6919$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6920 X"$as_dir" : 'X\(//\)[^/]' \| \
6921 X"$as_dir" : 'X\(//\)$' \| \
6922 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6923$as_echo X"$as_dir" |
6924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6925 s//\1/
6926 q
6927 }
6928 /^X\(\/\/\)[^/].*/{
6929 s//\1/
6930 q
6931 }
6932 /^X\(\/\/\)$/{
6933 s//\1/
6934 q
6935 }
6936 /^X\(\/\).*/{
6937 s//\1/
6938 q
6939 }
6940 s/.*/./; q'`
6941 test -d "$as_dir" && break
6942 done
6943 test -z "$as_dirs" || eval "mkdir $as_dirs"
6944 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6945
6946
6947} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006948if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -04006949 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00006950else
David McGrewfec49dd2005-09-23 19:34:11 +00006951 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00006952 as_mkdir_p=false
6953fi
6954
jfigusc7e66e32013-05-08 11:32:55 -04006955
6956# as_fn_executable_p FILE
6957# -----------------------
6958# Test if FILE is an executable regular file.
6959as_fn_executable_p ()
6960{
6961 test -f "$1" && test -x "$1"
6962} # as_fn_executable_p
6963as_test_x='test -x'
6964as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006965
6966# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00006967as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006968
6969# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00006970as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006971
6972
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006973exec 6>&1
jfigusc7e66e32013-05-08 11:32:55 -04006974## ----------------------------------- ##
6975## Main body of $CONFIG_STATUS script. ##
6976## ----------------------------------- ##
6977_ASEOF
6978test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006979
jfigusc7e66e32013-05-08 11:32:55 -04006980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6981# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00006982# report actual input values of CONFIG_FILES etc. instead of their
jfigusc7e66e32013-05-08 11:32:55 -04006983# values after options handling.
6984ac_log="
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +02006985This file was extended by libsrtp2 $as_me 2.3.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04006986generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00006987
6988 CONFIG_FILES = $CONFIG_FILES
6989 CONFIG_HEADERS = $CONFIG_HEADERS
6990 CONFIG_LINKS = $CONFIG_LINKS
6991 CONFIG_COMMANDS = $CONFIG_COMMANDS
6992 $ $0 $@
6993
jfigusc7e66e32013-05-08 11:32:55 -04006994on `(hostname || uname -n) 2>/dev/null | sed 1q`
6995"
6996
Cullen Jennings235513a2005-09-21 22:51:36 +00006997_ACEOF
6998
jfigusc7e66e32013-05-08 11:32:55 -04006999case $ac_config_files in *"
7000"*) set x $ac_config_files; shift; ac_config_files=$*;;
7001esac
7002
7003case $ac_config_headers in *"
7004"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7005esac
7006
7007
7008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007009# Files that config.status was made for.
jfigusc7e66e32013-05-08 11:32:55 -04007010config_files="$ac_config_files"
7011config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00007012
jfigusc7e66e32013-05-08 11:32:55 -04007013_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00007014
jfigusc7e66e32013-05-08 11:32:55 -04007015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007016ac_cs_usage="\
jfigusc7e66e32013-05-08 11:32:55 -04007017\`$as_me' instantiates files and other configuration actions
7018from templates according to the current configuration. Unless the files
7019and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00007020
jfigusc7e66e32013-05-08 11:32:55 -04007021Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00007022
7023 -h, --help print this help, then exit
jfigusc7e66e32013-05-08 11:32:55 -04007024 -V, --version print version number and configuration settings, then exit
7025 --config print configuration, then exit
7026 -q, --quiet, --silent
7027 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00007028 -d, --debug don't remove temporary files
7029 --recheck update $as_me by reconfiguring in the same conditions
jfigusc7e66e32013-05-08 11:32:55 -04007030 --file=FILE[:TEMPLATE]
7031 instantiate the configuration file FILE
7032 --header=FILE[:TEMPLATE]
7033 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00007034
7035Configuration files:
7036$config_files
7037
7038Configuration headers:
7039$config_headers
7040
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02007041Report bugs to <https://github.com/cisco/libsrtp/issues>."
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007042
jfigusc7e66e32013-05-08 11:32:55 -04007043_ACEOF
7044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7045ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00007046ac_cs_version="\\
Pascal Buhlerfd5b3b22018-05-15 21:27:42 +02007047libsrtp2 config.status 2.3.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04007048configured by $0, generated by GNU Autoconf 2.69,
7049 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00007050
jfigusc7e66e32013-05-08 11:32:55 -04007051Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00007052This config.status script is free software; the Free Software Foundation
7053gives unlimited permission to copy, distribute and modify it."
jfigusc7e66e32013-05-08 11:32:55 -04007054
7055ac_pwd='$ac_pwd'
7056srcdir='$srcdir'
7057INSTALL='$INSTALL'
7058test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00007059_ACEOF
7060
jfigusc7e66e32013-05-08 11:32:55 -04007061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7062# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00007063ac_need_defaults=:
7064while test $# != 0
7065do
7066 case $1 in
jfigusc7e66e32013-05-08 11:32:55 -04007067 --*=?*)
7068 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7069 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00007070 ac_shift=:
7071 ;;
jfigusc7e66e32013-05-08 11:32:55 -04007072 --*=)
7073 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7074 ac_optarg=
7075 ac_shift=:
7076 ;;
7077 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00007078 ac_option=$1
7079 ac_optarg=$2
7080 ac_shift=shift
7081 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007082 esac
7083
7084 case $ac_option in
7085 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00007086 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7087 ac_cs_recheck=: ;;
jfigusc7e66e32013-05-08 11:32:55 -04007088 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7089 $as_echo "$ac_cs_version"; exit ;;
7090 --config | --confi | --conf | --con | --co | --c )
7091 $as_echo "$ac_cs_config"; exit ;;
7092 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00007093 debug=: ;;
7094 --file | --fil | --fi | --f )
7095 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04007096 case $ac_optarg in
7097 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7098 '') as_fn_error $? "missing file argument" ;;
7099 esac
7100 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00007101 ac_need_defaults=false;;
7102 --header | --heade | --head | --hea )
7103 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04007104 case $ac_optarg in
7105 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7106 esac
7107 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00007108 ac_need_defaults=false;;
jfigusc7e66e32013-05-08 11:32:55 -04007109 --he | --h)
7110 # Conflict between --help and --header
7111 as_fn_error $? "ambiguous option: \`$1'
7112Try \`$0 --help' for more information.";;
7113 --help | --hel | -h )
7114 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7116 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7117 ac_cs_silent=: ;;
7118
7119 # This is an error.
jfigusc7e66e32013-05-08 11:32:55 -04007120 -*) as_fn_error $? "unrecognized option: \`$1'
7121Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007122
jfigusc7e66e32013-05-08 11:32:55 -04007123 *) as_fn_append ac_config_targets " $1"
7124 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007125
7126 esac
7127 shift
7128done
7129
7130ac_configure_extra_args=
7131
7132if $ac_cs_silent; then
7133 exec 6>/dev/null
7134 ac_configure_extra_args="$ac_configure_extra_args --silent"
7135fi
7136
7137_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007139if \$ac_cs_recheck; then
jfigusc7e66e32013-05-08 11:32:55 -04007140 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7141 shift
7142 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7143 CONFIG_SHELL='$SHELL'
7144 export CONFIG_SHELL
7145 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00007146fi
7147
7148_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7150exec 5>>config.log
7151{
7152 echo
7153 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7154## Running $as_me. ##
7155_ASBOX
7156 $as_echo "$ac_log"
7157} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00007158
jfigusc7e66e32013-05-08 11:32:55 -04007159_ACEOF
7160cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7161_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00007162
jfigusc7e66e32013-05-08 11:32:55 -04007163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007164
jfigusc7e66e32013-05-08 11:32:55 -04007165# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00007166for ac_config_target in $ac_config_targets
7167do
jfigusc7e66e32013-05-08 11:32:55 -04007168 case $ac_config_target in
7169 "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
7170 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7171 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
7172 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
Pascal Buhlerac97f3e2019-06-26 13:54:43 +02007173 "fuzzer/Makefile") CONFIG_FILES="$CONFIG_FILES fuzzer/Makefile" ;;
Idar Tollefsen600ad962017-01-26 11:24:51 +01007174 "libsrtp2.pc") CONFIG_FILES="$CONFIG_FILES libsrtp2.pc" ;;
jfigusc7e66e32013-05-08 11:32:55 -04007175
7176 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007177 esac
7178done
7179
jfigusc7e66e32013-05-08 11:32:55 -04007180
Cullen Jennings235513a2005-09-21 22:51:36 +00007181# If the user did not use the arguments to specify the items to instantiate,
7182# then the envvar interface is used. Set only those that are not.
7183# We use the long form for the default assignment because of an extremely
7184# bizarre bug on SunOS 4.1.3.
7185if $ac_need_defaults; then
7186 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7187 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7188fi
7189
7190# Have a temporary directory for convenience. Make it in the build tree
jfigusc7e66e32013-05-08 11:32:55 -04007191# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00007192# creating and moving files from /tmp can sometimes cause problems.
jfigusc7e66e32013-05-08 11:32:55 -04007193# Hook for its removal unless debugging.
7194# Note that there is a small window in which the directory will not be cleaned:
7195# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00007196$debug ||
7197{
jfigusc7e66e32013-05-08 11:32:55 -04007198 tmp= ac_tmp=
7199 trap 'exit_status=$?
7200 : "${ac_tmp:=$tmp}"
7201 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7202' 0
7203 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00007204}
Cullen Jennings235513a2005-09-21 22:51:36 +00007205# Create a (secure) tmp directory for tmp files.
7206
7207{
jfigusc7e66e32013-05-08 11:32:55 -04007208 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7209 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00007210} ||
7211{
jfigusc7e66e32013-05-08 11:32:55 -04007212 tmp=./conf$$-$RANDOM
7213 (umask 077 && mkdir "$tmp")
7214} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7215ac_tmp=$tmp
7216
7217# Set up the scripts for CONFIG_FILES section.
7218# No need to generate them if there are no CONFIG_FILES.
7219# This happens for instance with `./config.status config.h'.
7220if test -n "$CONFIG_FILES"; then
7221
7222
7223ac_cr=`echo X | tr X '\015'`
7224# On cygwin, bash can eat \r inside `` if the user requested igncr.
7225# But we know of no other shell where ac_cr would be empty at this
7226# point, so we can use a bashism as a fallback.
7227if test "x$ac_cr" = x; then
7228 eval ac_cr=\$\'\\r\'
7229fi
7230ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7231if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7232 ac_cs_awk_cr='\\r'
7233else
7234 ac_cs_awk_cr=$ac_cr
7235fi
7236
7237echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7238_ACEOF
7239
7240
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007241{
jfigusc7e66e32013-05-08 11:32:55 -04007242 echo "cat >conf$$subs.awk <<_ACEOF" &&
7243 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7244 echo "_ACEOF"
7245} >conf$$subs.sh ||
7246 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7247ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7248ac_delim='%!_!# '
7249for ac_last_try in false false false false false :; do
7250 . ./conf$$subs.sh ||
7251 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7252
7253 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7254 if test $ac_delim_n = $ac_delim_num; then
7255 break
7256 elif $ac_last_try; then
7257 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7258 else
7259 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7260 fi
7261done
7262rm -f conf$$subs.sh
7263
7264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7265cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7266_ACEOF
7267sed -n '
7268h
7269s/^/S["/; s/!.*/"]=/
7270p
7271g
7272s/^[^!]*!//
7273:repl
7274t repl
7275s/'"$ac_delim"'$//
7276t delim
7277:nl
7278h
7279s/\(.\{148\}\)..*/\1/
7280t more1
7281s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7282p
7283n
7284b repl
7285:more1
7286s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7287p
7288g
7289s/.\{148\}//
7290t nl
7291:delim
7292h
7293s/\(.\{148\}\)..*/\1/
7294t more2
7295s/["\\]/\\&/g; s/^/"/; s/$/"/
7296p
7297b
7298:more2
7299s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7300p
7301g
7302s/.\{148\}//
7303t delim
7304' <conf$$subs.awk | sed '
7305/^[^""]/{
7306 N
7307 s/\n//
7308}
7309' >>$CONFIG_STATUS || ac_write_fail=1
7310rm -f conf$$subs.awk
7311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7312_ACAWK
7313cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7314 for (key in S) S_is_set[key] = 1
7315 FS = ""
7316
7317}
7318{
7319 line = $ 0
7320 nfields = split(line, field, "@")
7321 substed = 0
7322 len = length(field[1])
7323 for (i = 2; i < nfields; i++) {
7324 key = field[i]
7325 keylen = length(key)
7326 if (S_is_set[key]) {
7327 value = S[key]
7328 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7329 len += length(value) + length(field[++i])
7330 substed = 1
7331 } else
7332 len += 1 + keylen
7333 }
7334
7335 print line
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007336}
jfigusa14b5a02013-03-29 12:24:12 -04007337
jfigusc7e66e32013-05-08 11:32:55 -04007338_ACAWK
7339_ACEOF
7340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7341if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7342 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7343else
7344 cat
7345fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7346 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
jfigusa14b5a02013-03-29 12:24:12 -04007347_ACEOF
7348
jfigusc7e66e32013-05-08 11:32:55 -04007349# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7350# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7351# trailing colons and then remove the whole line if VPATH becomes empty
7352# (actually we leave an empty line to preserve line numbers).
7353if test "x$srcdir" = x.; then
7354 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7355h
7356s///
7357s/^/:/
7358s/[ ]*$/:/
7359s/:\$(srcdir):/:/g
7360s/:\${srcdir}:/:/g
7361s/:@srcdir@:/:/g
7362s/^:*//
7363s/:*$//
7364x
7365s/\(=[ ]*\).*/\1/
7366G
7367s/\n//
7368s/^[^=]*=[ ]*$//
7369}'
7370fi
jfigusa14b5a02013-03-29 12:24:12 -04007371
jfigusc7e66e32013-05-08 11:32:55 -04007372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007373fi # test -n "$CONFIG_FILES"
7374
jfigusc7e66e32013-05-08 11:32:55 -04007375# Set up the scripts for CONFIG_HEADERS section.
7376# No need to generate them if there are no CONFIG_HEADERS.
7377# This happens for instance with `./config.status Makefile'.
7378if test -n "$CONFIG_HEADERS"; then
7379cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7380BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00007381_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007382
7383# Transform confdefs.h into an awk script `defines.awk', embedded as
7384# here-document in config.status, that substitutes the proper values into
7385# config.h.in to produce config.h.
7386
7387# Create a delimiter string that does not exist in confdefs.h, to ease
7388# handling of long lines.
7389ac_delim='%!_!# '
7390for ac_last_try in false false :; do
7391 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7392 if test -z "$ac_tt"; then
7393 break
7394 elif $ac_last_try; then
7395 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7396 else
7397 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7398 fi
7399done
7400
7401# For the awk script, D is an array of macro values keyed by name,
7402# likewise P contains macro parameters if any. Preserve backslash
7403# newline sequences.
7404
7405ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7406sed -n '
7407s/.\{148\}/&'"$ac_delim"'/g
7408t rset
7409:rset
7410s/^[ ]*#[ ]*define[ ][ ]*/ /
7411t def
7412d
7413:def
7414s/\\$//
7415t bsnl
7416s/["\\]/\\&/g
7417s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7418D["\1"]=" \3"/p
7419s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7420d
7421:bsnl
7422s/["\\]/\\&/g
7423s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7424D["\1"]=" \3\\\\\\n"\\/p
7425t cont
7426s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7427t cont
7428d
7429:cont
7430n
7431s/.\{148\}/&'"$ac_delim"'/g
7432t clear
7433:clear
7434s/\\$//
7435t bsnlc
7436s/["\\]/\\&/g; s/^/"/; s/$/"/p
7437d
7438:bsnlc
7439s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7440b cont
7441' <confdefs.h | sed '
7442s/'"$ac_delim"'/"\\\
7443"/g' >>$CONFIG_STATUS || ac_write_fail=1
7444
7445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7446 for (key in D) D_is_set[key] = 1
7447 FS = ""
7448}
7449/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7450 line = \$ 0
7451 split(line, arg, " ")
7452 if (arg[1] == "#") {
7453 defundef = arg[2]
7454 mac1 = arg[3]
7455 } else {
7456 defundef = substr(arg[1], 2)
7457 mac1 = arg[2]
7458 }
7459 split(mac1, mac2, "(") #)
7460 macro = mac2[1]
7461 prefix = substr(line, 1, index(line, defundef) - 1)
7462 if (D_is_set[macro]) {
7463 # Preserve the white space surrounding the "#".
7464 print prefix "define", macro P[macro] D[macro]
7465 next
7466 } else {
7467 # Replace #undef with comments. This is necessary, for example,
7468 # in the case of _POSIX_SOURCE, which is predefined and required
7469 # on some systems where configure will not decide to define it.
7470 if (defundef == "undef") {
7471 print "/*", prefix defundef, macro, "*/"
7472 next
7473 }
7474 }
7475}
7476{ print }
7477_ACAWK
7478_ACEOF
7479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7480 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7481fi # test -n "$CONFIG_HEADERS"
7482
7483
7484eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7485shift
7486for ac_tag
7487do
7488 case $ac_tag in
7489 :[FHLC]) ac_mode=$ac_tag; continue;;
7490 esac
7491 case $ac_mode$ac_tag in
7492 :[FHL]*:*);;
7493 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7494 :[FH]-) ac_tag=-:-;;
7495 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7496 esac
7497 ac_save_IFS=$IFS
7498 IFS=:
7499 set x $ac_tag
7500 IFS=$ac_save_IFS
7501 shift
7502 ac_file=$1
7503 shift
7504
7505 case $ac_mode in
7506 :L) ac_source=$1;;
7507 :[FH])
7508 ac_file_inputs=
7509 for ac_f
7510 do
7511 case $ac_f in
7512 -) ac_f="$ac_tmp/stdin";;
7513 *) # Look for the file first in the build tree, then in the source tree
7514 # (if the path is not absolute). The absolute path cannot be DOS-style,
7515 # because $ac_f cannot contain `:'.
7516 test -f "$ac_f" ||
7517 case $ac_f in
7518 [\\/$]*) false;;
7519 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7520 esac ||
7521 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7522 esac
7523 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7524 as_fn_append ac_file_inputs " '$ac_f'"
7525 done
7526
7527 # Let's still pretend it is `configure' which instantiates (i.e., don't
7528 # use $as_me), people would be surprised to read:
7529 # /* config.h. Generated by config.status. */
7530 configure_input='Generated from '`
7531 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7532 `' by configure.'
7533 if test x"$ac_file" != x-; then
7534 configure_input="$ac_file. $configure_input"
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7536$as_echo "$as_me: creating $ac_file" >&6;}
7537 fi
7538 # Neutralize special characters interpreted by sed in replacement strings.
7539 case $configure_input in #(
7540 *\&* | *\|* | *\\* )
7541 ac_sed_conf_input=`$as_echo "$configure_input" |
7542 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7543 *) ac_sed_conf_input=$configure_input;;
7544 esac
7545
7546 case $ac_tag in
7547 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7548 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7549 esac
7550 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007551 esac
7552
jfigusc7e66e32013-05-08 11:32:55 -04007553 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00007554$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00007555 X"$ac_file" : 'X\(//\)[^/]' \| \
7556 X"$ac_file" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04007557 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7558$as_echo X"$ac_file" |
7559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7560 s//\1/
7561 q
7562 }
7563 /^X\(\/\/\)[^/].*/{
7564 s//\1/
7565 q
7566 }
7567 /^X\(\/\/\)$/{
7568 s//\1/
7569 q
7570 }
7571 /^X\(\/\).*/{
7572 s//\1/
7573 q
7574 }
7575 s/.*/./; q'`
7576 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00007577 ac_builddir=.
7578
jfigusc7e66e32013-05-08 11:32:55 -04007579case "$ac_dir" in
7580.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7581*)
7582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7583 # A ".." for each directory in $ac_dir_suffix.
7584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7585 case $ac_top_builddir_sub in
7586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7588 esac ;;
7589esac
7590ac_abs_top_builddir=$ac_pwd
7591ac_abs_builddir=$ac_pwd$ac_dir_suffix
7592# for backward compatibility:
7593ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00007594
7595case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04007596 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00007597 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04007598 ac_top_srcdir=$ac_top_builddir_sub
7599 ac_abs_top_srcdir=$ac_pwd ;;
7600 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00007601 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04007602 ac_top_srcdir=$srcdir
7603 ac_abs_top_srcdir=$srcdir ;;
7604 *) # Relative name.
7605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7606 ac_top_srcdir=$ac_top_build_prefix$srcdir
7607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007608esac
jfigusc7e66e32013-05-08 11:32:55 -04007609ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00007610
Cullen Jennings235513a2005-09-21 22:51:36 +00007611
jfigusc7e66e32013-05-08 11:32:55 -04007612 case $ac_mode in
7613 :F)
7614 #
7615 # CONFIG_FILE
7616 #
Cullen Jennings235513a2005-09-21 22:51:36 +00007617
David McGrewb67061f2005-09-28 14:23:06 +00007618 case $INSTALL in
7619 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusc7e66e32013-05-08 11:32:55 -04007620 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00007621 esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007622_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007623
7624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7625# If the template does not know about datarootdir, expand it.
7626# FIXME: This hack should be removed a few years after 2.60.
7627ac_datarootdir_hack=; ac_datarootdir_seen=
7628ac_sed_dataroot='
7629/datarootdir/ {
7630 p
7631 q
7632}
7633/@datadir@/p
7634/@docdir@/p
7635/@infodir@/p
7636/@localedir@/p
7637/@mandir@/p'
7638case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7639*datarootdir*) ac_datarootdir_seen=yes;;
7640*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7642$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7643_ACEOF
7644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7645 ac_datarootdir_hack='
7646 s&@datadir@&$datadir&g
7647 s&@docdir@&$docdir&g
7648 s&@infodir@&$infodir&g
7649 s&@localedir@&$localedir&g
7650 s&@mandir@&$mandir&g
7651 s&\\\${datarootdir}&$datarootdir&g' ;;
7652esac
7653_ACEOF
7654
7655# Neutralize VPATH when `$srcdir' = `.'.
7656# Shell code in configure.ac might set extrasub.
7657# FIXME: do we really want to maintain this feature?
7658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7659ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00007660$extrasub
7661_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007663:t
7664/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusc7e66e32013-05-08 11:32:55 -04007665s|@configure_input@|$ac_sed_conf_input|;t t
7666s&@top_builddir@&$ac_top_builddir_sub&;t t
7667s&@top_build_prefix@&$ac_top_build_prefix&;t t
7668s&@srcdir@&$ac_srcdir&;t t
7669s&@abs_srcdir@&$ac_abs_srcdir&;t t
7670s&@top_srcdir@&$ac_top_srcdir&;t t
7671s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7672s&@builddir@&$ac_builddir&;t t
7673s&@abs_builddir@&$ac_abs_builddir&;t t
7674s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7675s&@INSTALL@&$ac_INSTALL&;t t
7676$ac_datarootdir_hack
7677"
7678eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7679 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00007680
jfigusc7e66e32013-05-08 11:32:55 -04007681test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7682 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7683 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7684 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7686which seems to be undefined. Please make sure it is defined" >&5
7687$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7688which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00007689
jfigusc7e66e32013-05-08 11:32:55 -04007690 rm -f "$ac_tmp/stdin"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007691 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04007692 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7693 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7694 esac \
7695 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7696 ;;
7697 :H)
7698 #
7699 # CONFIG_HEADER
7700 #
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007701 if test x"$ac_file" != x-; then
jfigusc7e66e32013-05-08 11:32:55 -04007702 {
7703 $as_echo "/* $configure_input */" \
7704 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7705 } >"$ac_tmp/config.h" \
7706 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7707 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7709$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007710 else
jfigusc7e66e32013-05-08 11:32:55 -04007711 rm -f "$ac_file"
7712 mv "$ac_tmp/config.h" "$ac_file" \
7713 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007714 fi
7715 else
jfigusc7e66e32013-05-08 11:32:55 -04007716 $as_echo "/* $configure_input */" \
7717 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7718 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007719 fi
jfigusc7e66e32013-05-08 11:32:55 -04007720 ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007721
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007722
jfigusc7e66e32013-05-08 11:32:55 -04007723 esac
7724
7725done # for ac_tag
7726
7727
7728as_fn_exit 0
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007729_ACEOF
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007730ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04007731
jfigusc7e66e32013-05-08 11:32:55 -04007732test $ac_write_fail = 0 ||
7733 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7734
Cullen Jennings235513a2005-09-21 22:51:36 +00007735
7736# configure is writing to config.log, and then calls config.status.
7737# config.status does its own redirection, appending to config.log.
7738# Unfortunately, on DOS this fails, as config.log is still kept open
7739# by configure, so config.status won't be able to write to it; its
7740# output is simply discarded. So we exec the FD to /dev/null,
7741# effectively closing config.log, so it can be properly (re)opened and
7742# appended to by config.status. When coming back to configure, we
7743# need to make the FD available again.
7744if test "$no_create" != yes; then
7745 ac_cs_success=:
7746 ac_config_status_args=
7747 test "$silent" = yes &&
7748 ac_config_status_args="$ac_config_status_args --quiet"
7749 exec 5>/dev/null
7750 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7751 exec 5>>config.log
7752 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7753 # would make configure fail if this is the last instruction.
jfigusc7e66e32013-05-08 11:32:55 -04007754 $ac_cs_success || as_fn_exit 1
7755fi
7756if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7758$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00007759fi
7760
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00007761
7762# This is needed when building outside the source dir.
jfigusc7e66e32013-05-08 11:32:55 -04007763as_dir=crypto/cipher; as_fn_mkdir_p
7764as_dir=crypto/hash; as_fn_mkdir_p
7765as_dir=crypto/kernel; as_fn_mkdir_p
7766as_dir=crypto/math; as_fn_mkdir_p
7767as_dir=crypto/replay; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007768as_dir=crypto/test; as_fn_mkdir_p
7769as_dir=doc; as_fn_mkdir_p
7770as_dir=srtp; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007771as_dir=test; as_fn_mkdir_p