blob: 1ba7e990071a1793ec3c6f3ea5b0b79a0b66bb8b [file] [log] [blame]
Cullen Jennings235513a2005-09-21 22:51:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Pascal Bühler34acba62017-01-19 10:57:30 +01003# Generated by GNU Autoconf 2.69 for libsrtp2 2.1.0-pre.
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02004#
5# Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00006#
jfigusc7e66e32013-05-08 11:32:55 -04007#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
Cullen Jennings235513a2005-09-21 22:51:36 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
jfigusc7e66e32013-05-08 11:32:55 -040013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +000016
jfigusc7e66e32013-05-08 11:32:55 -040017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +000020 emulate sh
21 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -040022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -040025 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +000026else
jfigusc7e66e32013-05-08 11:32:55 -040027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
Cullen Jennings235513a2005-09-21 22:51:36 +000033fi
34
35
jfigusc7e66e32013-05-08 11:32:55 -040036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
Cullen Jennings235513a2005-09-21 22:51:36 +0000124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -0400129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -0400133
jfigusc7e66e32013-05-08 11:32:55 -0400134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://github.com/cisco/libsrtp/issues about your
271$0: system, including any error possibly output before this
jfigusc7e66e32013-05-08 11:32:55 -0400272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000424 as_expr=expr
425else
426 as_expr=false
427fi
428
jfigusc7e66e32013-05-08 11:32:55 -0400429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000430 as_basename=basename
431else
432 as_basename=false
433fi
434
jfigusc7e66e32013-05-08 11:32:55 -0400435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
Cullen Jennings235513a2005-09-21 22:51:36 +0000440
jfigusc7e66e32013-05-08 11:32:55 -0400441as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +0000442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -0400444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000459
Cullen Jennings235513a2005-09-21 22:51:36 +0000460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
Cullen Jennings235513a2005-09-21 22:51:36 +0000467
jfigusc7e66e32013-05-08 11:32:55 -0400468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
Cullen Jennings235513a2005-09-21 22:51:36 +0000477 sed '
jfigusc7e66e32013-05-08 11:32:55 -0400478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
Cullen Jennings235513a2005-09-21 22:51:36 +0000482 N
jfigusc7e66e32013-05-08 11:32:55 -0400483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Cullen Jennings235513a2005-09-21 22:51:36 +0000485 t loop
jfigusc7e66e32013-05-08 11:32:55 -0400486 s/-\n.*//
Cullen Jennings235513a2005-09-21 22:51:36 +0000487 ' >$as_me.lineno &&
jfigusc7e66e32013-05-08 11:32:55 -0400488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Cullen Jennings235513a2005-09-21 22:51:36 +0000490
jfigusc7e66e32013-05-08 11:32:55 -0400491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
Cullen Jennings235513a2005-09-21 22:51:36 +0000495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
jfigusc7e66e32013-05-08 11:32:55 -0400497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
Cullen Jennings235513a2005-09-21 22:51:36 +0000499 # Exit status is that of the last command.
500 exit
501}
502
jfigusc7e66e32013-05-08 11:32:55 -0400503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512*)
513 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000514esac
515
Cullen Jennings235513a2005-09-21 22:51:36 +0000516rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -0400517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -0600525 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -0400526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +0000536 fi
Cullen Jennings235513a2005-09-21 22:51:36 +0000537else
jfigusc7e66e32013-05-08 11:32:55 -0400538 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +0000539fi
jfigusc7e66e32013-05-08 11:32:55 -0400540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +0000542
543if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -0400544 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +0000545else
David McGrewfec49dd2005-09-23 19:34:11 +0000546 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +0000547 as_mkdir_p=false
548fi
549
jfigusc7e66e32013-05-08 11:32:55 -0400550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +0000552
553# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +0000554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000555
556# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +0000557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000558
559
jfigusc7e66e32013-05-08 11:32:55 -0400560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
Cullen Jennings235513a2005-09-21 22:51:36 +0000562
563# Name of the host.
jfigusc7e66e32013-05-08 11:32:55 -0400564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Cullen Jennings235513a2005-09-21 22:51:36 +0000565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
Cullen Jennings235513a2005-09-21 22:51:36 +0000568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
jfigusc7e66e32013-05-08 11:32:55 -0400572ac_clean_files=
Cullen Jennings235513a2005-09-21 22:51:36 +0000573ac_config_libobj_dir=.
jfigusc7e66e32013-05-08 11:32:55 -0400574LIBOBJS=
Cullen Jennings235513a2005-09-21 22:51:36 +0000575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
Cullen Jennings235513a2005-09-21 22:51:36 +0000579
580# Identity of this package.
jfigusd196e022014-11-20 16:43:44 -0500581PACKAGE_NAME='libsrtp2'
582PACKAGE_TARNAME='libsrtp2'
Pascal Bühler34acba62017-01-19 10:57:30 +0100583PACKAGE_VERSION='2.1.0-pre'
584PACKAGE_STRING='libsrtp2 2.1.0-pre'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200585PACKAGE_BUGREPORT='https://github.com/cisco/libsrtp/issues'
586PACKAGE_URL=''
Cullen Jennings235513a2005-09-21 22:51:36 +0000587
Cullen Jennings235513a2005-09-21 22:51:36 +0000588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -0400591#ifdef HAVE_SYS_TYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000592# include <sys/types.h>
593#endif
jfigusc7e66e32013-05-08 11:32:55 -0400594#ifdef HAVE_SYS_STAT_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000595# include <sys/stat.h>
596#endif
jfigusc7e66e32013-05-08 11:32:55 -0400597#ifdef STDC_HEADERS
Cullen Jennings235513a2005-09-21 22:51:36 +0000598# include <stdlib.h>
599# include <stddef.h>
600#else
jfigusc7e66e32013-05-08 11:32:55 -0400601# ifdef HAVE_STDLIB_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000602# include <stdlib.h>
603# endif
604#endif
jfigusc7e66e32013-05-08 11:32:55 -0400605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000607# include <memory.h>
608# endif
609# include <string.h>
610#endif
jfigusc7e66e32013-05-08 11:32:55 -0400611#ifdef HAVE_STRINGS_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000612# include <strings.h>
613#endif
jfigusc7e66e32013-05-08 11:32:55 -0400614#ifdef HAVE_INTTYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000615# include <inttypes.h>
Cullen Jennings235513a2005-09-21 22:51:36 +0000616#endif
jfigusc7e66e32013-05-08 11:32:55 -0400617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000621# include <unistd.h>
622#endif"
623
jfigusc7e66e32013-05-08 11:32:55 -0400624ac_subst_vars='LTLIBOBJS
625LIBOBJS
Bernardo Torresb3c51422014-10-14 12:40:09 -0300626HAVE_PCAP
jfigusc7e66e32013-05-08 11:32:55 -0400627HMAC_OBJS
jfigusc7e66e32013-05-08 11:32:55 -0400628AES_ICM_OBJS
629USE_OPENSSL
Idar Tollefsen600ad962017-01-26 11:24:51 +0100630crypto_LIBS
631crypto_CFLAGS
632PKG_CONFIG_LIBDIR
633PKG_CONFIG_PATH
634PKG_CONFIG
jfigusc7e66e32013-05-08 11:32:55 -0400635EXE
636host_os
637host_vendor
638host_cpu
639host
640build_os
641build_vendor
642build_cpu
643build
644EGREP
645GREP
646CPP
Idar Tollefsen600ad962017-01-26 11:24:51 +0100647SED
jfigusc7e66e32013-05-08 11:32:55 -0400648INSTALL_DATA
649INSTALL_SCRIPT
650INSTALL_PROGRAM
jfigus1ce6a742015-04-06 08:54:01 -0400651RANLIB
jfigusc7e66e32013-05-08 11:32:55 -0400652OBJEXT
653EXEEXT
654ac_ct_CC
655CPPFLAGS
656LDFLAGS
657CFLAGS
658CC
jfigus1ce6a742015-04-06 08:54:01 -0400659ac_ct_AR
660AR
jfigusc7e66e32013-05-08 11:32:55 -0400661target_alias
662host_alias
663build_alias
664LIBS
665ECHO_T
666ECHO_N
667ECHO_C
668DEFS
669mandir
670localedir
671libdir
672psdir
673pdfdir
674dvidir
675htmldir
676infodir
677docdir
678oldincludedir
679includedir
Idar Tollefsen600ad962017-01-26 11:24:51 +0100680runstatedir
jfigusc7e66e32013-05-08 11:32:55 -0400681localstatedir
682sharedstatedir
683sysconfdir
684datadir
685datarootdir
686libexecdir
687sbindir
688bindir
689program_transform_name
690prefix
691exec_prefix
692PACKAGE_URL
693PACKAGE_BUGREPORT
694PACKAGE_STRING
695PACKAGE_VERSION
696PACKAGE_TARNAME
697PACKAGE_NAME
698PATH_SEPARATOR
699SHELL'
Cullen Jennings235513a2005-09-21 22:51:36 +0000700ac_subst_files=''
jfigusc7e66e32013-05-08 11:32:55 -0400701ac_user_opts='
702enable_option_checking
jfigusc7e66e32013-05-08 11:32:55 -0400703enable_debug
704enable_generic_aesicm
705enable_openssl
jfigus038d2cf2015-05-11 14:10:11 -0400706with_openssl_dir
707enable_openssl_kdf
jfigusc7e66e32013-05-08 11:32:55 -0400708enable_stdout
709enable_console
jfigusc7e66e32013-05-08 11:32:55 -0400710'
711 ac_precious_vars='build_alias
712host_alias
713target_alias
714CC
715CFLAGS
716LDFLAGS
717LIBS
718CPPFLAGS
Idar Tollefsen600ad962017-01-26 11:24:51 +0100719CPP
720PKG_CONFIG
721PKG_CONFIG_PATH
722PKG_CONFIG_LIBDIR
723crypto_CFLAGS
724crypto_LIBS'
jfigusc7e66e32013-05-08 11:32:55 -0400725
Cullen Jennings235513a2005-09-21 22:51:36 +0000726
727# Initialize some variables set by options.
728ac_init_help=
729ac_init_version=false
jfigusc7e66e32013-05-08 11:32:55 -0400730ac_unrecognized_opts=
731ac_unrecognized_sep=
Cullen Jennings235513a2005-09-21 22:51:36 +0000732# The variables have the same names as the options, with
733# dashes changed to underlines.
734cache_file=/dev/null
735exec_prefix=NONE
736no_create=
737no_recursion=
738prefix=NONE
739program_prefix=NONE
740program_suffix=NONE
741program_transform_name=s,x,x,
742silent=
743site=
744srcdir=
745verbose=
746x_includes=NONE
747x_libraries=NONE
748
749# Installation directory options.
750# These are left unexpanded so users can "make install exec_prefix=/foo"
751# and all the variables that are supposed to be based on exec_prefix
752# by default will actually change.
753# Use braces instead of parens because sh, perl, etc. also accept them.
jfigusc7e66e32013-05-08 11:32:55 -0400754# (The list follows the same order as the GNU Coding Standards.)
Cullen Jennings235513a2005-09-21 22:51:36 +0000755bindir='${exec_prefix}/bin'
756sbindir='${exec_prefix}/sbin'
757libexecdir='${exec_prefix}/libexec'
jfigusc7e66e32013-05-08 11:32:55 -0400758datarootdir='${prefix}/share'
759datadir='${datarootdir}'
Cullen Jennings235513a2005-09-21 22:51:36 +0000760sysconfdir='${prefix}/etc'
761sharedstatedir='${prefix}/com'
762localstatedir='${prefix}/var'
Idar Tollefsen600ad962017-01-26 11:24:51 +0100763runstatedir='${localstatedir}/run'
Cullen Jennings235513a2005-09-21 22:51:36 +0000764includedir='${prefix}/include'
765oldincludedir='/usr/include'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200766docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
jfigusc7e66e32013-05-08 11:32:55 -0400767infodir='${datarootdir}/info'
768htmldir='${docdir}'
769dvidir='${docdir}'
770pdfdir='${docdir}'
771psdir='${docdir}'
772libdir='${exec_prefix}/lib'
773localedir='${datarootdir}/locale'
774mandir='${datarootdir}/man'
Cullen Jennings235513a2005-09-21 22:51:36 +0000775
776ac_prev=
jfigusc7e66e32013-05-08 11:32:55 -0400777ac_dashdash=
Cullen Jennings235513a2005-09-21 22:51:36 +0000778for ac_option
779do
780 # If the previous option needs an argument, assign it.
781 if test -n "$ac_prev"; then
jfigusc7e66e32013-05-08 11:32:55 -0400782 eval $ac_prev=\$ac_option
Cullen Jennings235513a2005-09-21 22:51:36 +0000783 ac_prev=
784 continue
785 fi
786
jfigusc7e66e32013-05-08 11:32:55 -0400787 case $ac_option in
788 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
789 *=) ac_optarg= ;;
790 *) ac_optarg=yes ;;
791 esac
Cullen Jennings235513a2005-09-21 22:51:36 +0000792
793 # Accept the important Cygnus configure options, so we can diagnose typos.
794
jfigusc7e66e32013-05-08 11:32:55 -0400795 case $ac_dashdash$ac_option in
796 --)
797 ac_dashdash=yes ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000798
799 -bindir | --bindir | --bindi | --bind | --bin | --bi)
800 ac_prev=bindir ;;
801 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
802 bindir=$ac_optarg ;;
803
804 -build | --build | --buil | --bui | --bu)
805 ac_prev=build_alias ;;
806 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
807 build_alias=$ac_optarg ;;
808
809 -cache-file | --cache-file | --cache-fil | --cache-fi \
810 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
811 ac_prev=cache_file ;;
812 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
813 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
814 cache_file=$ac_optarg ;;
815
816 --config-cache | -C)
817 cache_file=config.cache ;;
818
jfigusc7e66e32013-05-08 11:32:55 -0400819 -datadir | --datadir | --datadi | --datad)
Cullen Jennings235513a2005-09-21 22:51:36 +0000820 ac_prev=datadir ;;
jfigusc7e66e32013-05-08 11:32:55 -0400821 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000822 datadir=$ac_optarg ;;
823
jfigusc7e66e32013-05-08 11:32:55 -0400824 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
825 | --dataroo | --dataro | --datar)
826 ac_prev=datarootdir ;;
827 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
828 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
829 datarootdir=$ac_optarg ;;
830
Cullen Jennings235513a2005-09-21 22:51:36 +0000831 -disable-* | --disable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400832 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000833 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400834 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
835 as_fn_error $? "invalid feature name: $ac_useropt"
836 ac_useropt_orig=$ac_useropt
837 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
838 case $ac_user_opts in
839 *"
840"enable_$ac_useropt"
841"*) ;;
842 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
843 ac_unrecognized_sep=', ';;
844 esac
845 eval enable_$ac_useropt=no ;;
846
847 -docdir | --docdir | --docdi | --doc | --do)
848 ac_prev=docdir ;;
849 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
850 docdir=$ac_optarg ;;
851
852 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
853 ac_prev=dvidir ;;
854 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
855 dvidir=$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000856
857 -enable-* | --enable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400858 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000859 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400860 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
861 as_fn_error $? "invalid feature name: $ac_useropt"
862 ac_useropt_orig=$ac_useropt
863 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
864 case $ac_user_opts in
865 *"
866"enable_$ac_useropt"
867"*) ;;
868 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
869 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000870 esac
jfigusc7e66e32013-05-08 11:32:55 -0400871 eval enable_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000872
873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875 | --exec | --exe | --ex)
876 ac_prev=exec_prefix ;;
877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879 | --exec=* | --exe=* | --ex=*)
880 exec_prefix=$ac_optarg ;;
881
882 -gas | --gas | --ga | --g)
883 # Obsolete; use --with-gas.
884 with_gas=yes ;;
885
886 -help | --help | --hel | --he | -h)
887 ac_init_help=long ;;
888 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889 ac_init_help=recursive ;;
890 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891 ac_init_help=short ;;
892
893 -host | --host | --hos | --ho)
894 ac_prev=host_alias ;;
895 -host=* | --host=* | --hos=* | --ho=*)
896 host_alias=$ac_optarg ;;
897
jfigusc7e66e32013-05-08 11:32:55 -0400898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899 ac_prev=htmldir ;;
900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901 | --ht=*)
902 htmldir=$ac_optarg ;;
903
Cullen Jennings235513a2005-09-21 22:51:36 +0000904 -includedir | --includedir | --includedi | --included | --include \
905 | --includ | --inclu | --incl | --inc)
906 ac_prev=includedir ;;
907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908 | --includ=* | --inclu=* | --incl=* | --inc=*)
909 includedir=$ac_optarg ;;
910
911 -infodir | --infodir | --infodi | --infod | --info | --inf)
912 ac_prev=infodir ;;
913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914 infodir=$ac_optarg ;;
915
916 -libdir | --libdir | --libdi | --libd)
917 ac_prev=libdir ;;
918 -libdir=* | --libdir=* | --libdi=* | --libd=*)
919 libdir=$ac_optarg ;;
920
921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922 | --libexe | --libex | --libe)
923 ac_prev=libexecdir ;;
924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925 | --libexe=* | --libex=* | --libe=*)
926 libexecdir=$ac_optarg ;;
927
jfigusc7e66e32013-05-08 11:32:55 -0400928 -localedir | --localedir | --localedi | --localed | --locale)
929 ac_prev=localedir ;;
930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931 localedir=$ac_optarg ;;
932
Cullen Jennings235513a2005-09-21 22:51:36 +0000933 -localstatedir | --localstatedir | --localstatedi | --localstated \
jfigusc7e66e32013-05-08 11:32:55 -0400934 | --localstate | --localstat | --localsta | --localst | --locals)
Cullen Jennings235513a2005-09-21 22:51:36 +0000935 ac_prev=localstatedir ;;
936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
jfigusc7e66e32013-05-08 11:32:55 -0400937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000938 localstatedir=$ac_optarg ;;
939
940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941 ac_prev=mandir ;;
942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943 mandir=$ac_optarg ;;
944
945 -nfp | --nfp | --nf)
946 # Obsolete; use --without-fp.
947 with_fp=no ;;
948
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950 | --no-cr | --no-c | -n)
951 no_create=yes ;;
952
953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955 no_recursion=yes ;;
956
957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959 | --oldin | --oldi | --old | --ol | --o)
960 ac_prev=oldincludedir ;;
961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964 oldincludedir=$ac_optarg ;;
965
966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967 ac_prev=prefix ;;
968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969 prefix=$ac_optarg ;;
970
971 -program-prefix | --program-prefix | --program-prefi | --program-pref \
972 | --program-pre | --program-pr | --program-p)
973 ac_prev=program_prefix ;;
974 -program-prefix=* | --program-prefix=* | --program-prefi=* \
975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976 program_prefix=$ac_optarg ;;
977
978 -program-suffix | --program-suffix | --program-suffi | --program-suff \
979 | --program-suf | --program-su | --program-s)
980 ac_prev=program_suffix ;;
981 -program-suffix=* | --program-suffix=* | --program-suffi=* \
982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983 program_suffix=$ac_optarg ;;
984
985 -program-transform-name | --program-transform-name \
986 | --program-transform-nam | --program-transform-na \
987 | --program-transform-n | --program-transform- \
988 | --program-transform | --program-transfor \
989 | --program-transfo | --program-transf \
990 | --program-trans | --program-tran \
991 | --progr-tra | --program-tr | --program-t)
992 ac_prev=program_transform_name ;;
993 -program-transform-name=* | --program-transform-name=* \
994 | --program-transform-nam=* | --program-transform-na=* \
995 | --program-transform-n=* | --program-transform-=* \
996 | --program-transform=* | --program-transfor=* \
997 | --program-transfo=* | --program-transf=* \
998 | --program-trans=* | --program-tran=* \
999 | --progr-tra=* | --program-tr=* | --program-t=*)
1000 program_transform_name=$ac_optarg ;;
1001
jfigusc7e66e32013-05-08 11:32:55 -04001002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003 ac_prev=pdfdir ;;
1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005 pdfdir=$ac_optarg ;;
1006
1007 -psdir | --psdir | --psdi | --psd | --ps)
1008 ac_prev=psdir ;;
1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010 psdir=$ac_optarg ;;
1011
Cullen Jennings235513a2005-09-21 22:51:36 +00001012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1014 silent=yes ;;
1015
Idar Tollefsen600ad962017-01-26 11:24:51 +01001016 -runstatedir | --runstatedir | --runstatedi | --runstated \
1017 | --runstate | --runstat | --runsta | --runst | --runs \
1018 | --run | --ru | --r)
1019 ac_prev=runstatedir ;;
1020 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1021 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1022 | --run=* | --ru=* | --r=*)
1023 runstatedir=$ac_optarg ;;
1024
Cullen Jennings235513a2005-09-21 22:51:36 +00001025 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1026 ac_prev=sbindir ;;
1027 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1028 | --sbi=* | --sb=*)
1029 sbindir=$ac_optarg ;;
1030
1031 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1032 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1033 | --sharedst | --shareds | --shared | --share | --shar \
1034 | --sha | --sh)
1035 ac_prev=sharedstatedir ;;
1036 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1037 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1038 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1039 | --sha=* | --sh=*)
1040 sharedstatedir=$ac_optarg ;;
1041
1042 -site | --site | --sit)
1043 ac_prev=site ;;
1044 -site=* | --site=* | --sit=*)
1045 site=$ac_optarg ;;
1046
1047 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1048 ac_prev=srcdir ;;
1049 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1050 srcdir=$ac_optarg ;;
1051
1052 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1053 | --syscon | --sysco | --sysc | --sys | --sy)
1054 ac_prev=sysconfdir ;;
1055 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1056 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1057 sysconfdir=$ac_optarg ;;
1058
1059 -target | --target | --targe | --targ | --tar | --ta | --t)
1060 ac_prev=target_alias ;;
1061 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1062 target_alias=$ac_optarg ;;
1063
1064 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1065 verbose=yes ;;
1066
1067 -version | --version | --versio | --versi | --vers | -V)
1068 ac_init_version=: ;;
1069
1070 -with-* | --with-*)
jfigusc7e66e32013-05-08 11:32:55 -04001071 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001072 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error $? "invalid package name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1078 *"
1079"with_$ac_useropt"
1080"*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +00001083 esac
jfigusc7e66e32013-05-08 11:32:55 -04001084 eval with_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001085
1086 -without-* | --without-*)
jfigusc7e66e32013-05-08 11:32:55 -04001087 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001088 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error $? "invalid package name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1094 *"
1095"with_$ac_useropt"
1096"*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval with_$ac_useropt=no ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001101
1102 --x)
1103 # Obsolete; use --with-x.
1104 with_x=yes ;;
1105
1106 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1107 | --x-incl | --x-inc | --x-in | --x-i)
1108 ac_prev=x_includes ;;
1109 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1110 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1111 x_includes=$ac_optarg ;;
1112
1113 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1114 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1115 ac_prev=x_libraries ;;
1116 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1117 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1118 x_libraries=$ac_optarg ;;
1119
jfigusc7e66e32013-05-08 11:32:55 -04001120 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1121Try \`$0 --help' for more information"
Cullen Jennings235513a2005-09-21 22:51:36 +00001122 ;;
1123
1124 *=*)
1125 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1126 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001127 case $ac_envvar in #(
1128 '' | [0-9]* | *[!_$as_cr_alnum]* )
1129 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1130 esac
1131 eval $ac_envvar=\$ac_optarg
Cullen Jennings235513a2005-09-21 22:51:36 +00001132 export $ac_envvar ;;
1133
1134 *)
1135 # FIXME: should be removed in autoconf 3.0.
jfigusc7e66e32013-05-08 11:32:55 -04001136 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Cullen Jennings235513a2005-09-21 22:51:36 +00001137 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jfigusc7e66e32013-05-08 11:32:55 -04001138 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1139 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Cullen Jennings235513a2005-09-21 22:51:36 +00001140 ;;
1141
1142 esac
1143done
1144
1145if test -n "$ac_prev"; then
1146 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jfigusc7e66e32013-05-08 11:32:55 -04001147 as_fn_error $? "missing argument to $ac_option"
Cullen Jennings235513a2005-09-21 22:51:36 +00001148fi
1149
jfigusc7e66e32013-05-08 11:32:55 -04001150if test -n "$ac_unrecognized_opts"; then
1151 case $enable_option_checking in
1152 no) ;;
1153 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1154 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001155 esac
jfigusc7e66e32013-05-08 11:32:55 -04001156fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001157
jfigusc7e66e32013-05-08 11:32:55 -04001158# Check all directory arguments for consistency.
1159for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1160 datadir sysconfdir sharedstatedir localstatedir includedir \
1161 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Idar Tollefsen600ad962017-01-26 11:24:51 +01001162 libdir localedir mandir runstatedir
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001163do
jfigusc7e66e32013-05-08 11:32:55 -04001164 eval ac_val=\$$ac_var
1165 # Remove trailing slashes.
jfigusa14b5a02013-03-29 12:24:12 -04001166 case $ac_val in
jfigusc7e66e32013-05-08 11:32:55 -04001167 */ )
1168 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1169 eval $ac_var=\$ac_val;;
jfigusa14b5a02013-03-29 12:24:12 -04001170 esac
jfigusc7e66e32013-05-08 11:32:55 -04001171 # Be sure to have absolute directory names.
1172 case $ac_val in
1173 [\\/$]* | ?:[\\/]* ) continue;;
1174 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1175 esac
1176 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Cullen Jennings235513a2005-09-21 22:51:36 +00001177done
1178
1179# There might be people who depend on the old broken behavior: `$host'
1180# used to hold the argument of --host etc.
1181# FIXME: To remove some day.
1182build=$build_alias
1183host=$host_alias
1184target=$target_alias
1185
1186# FIXME: To remove some day.
1187if test "x$host_alias" != x; then
1188 if test "x$build_alias" = x; then
1189 cross_compiling=maybe
Cullen Jennings235513a2005-09-21 22:51:36 +00001190 elif test "x$build_alias" != "x$host_alias"; then
1191 cross_compiling=yes
1192 fi
1193fi
1194
1195ac_tool_prefix=
1196test -n "$host_alias" && ac_tool_prefix=$host_alias-
1197
1198test "$silent" = yes && exec 6>/dev/null
1199
1200
jfigusc7e66e32013-05-08 11:32:55 -04001201ac_pwd=`pwd` && test -n "$ac_pwd" &&
1202ac_ls_di=`ls -di .` &&
1203ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1204 as_fn_error $? "working directory cannot be determined"
1205test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1206 as_fn_error $? "pwd does not report name of working directory"
1207
1208
Cullen Jennings235513a2005-09-21 22:51:36 +00001209# Find the source files, if location was not specified.
1210if test -z "$srcdir"; then
1211 ac_srcdir_defaulted=yes
jfigusc7e66e32013-05-08 11:32:55 -04001212 # Try the directory containing this script, then the parent directory.
1213 ac_confdir=`$as_dirname -- "$as_myself" ||
1214$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1215 X"$as_myself" : 'X\(//\)[^/]' \| \
1216 X"$as_myself" : 'X\(//\)$' \| \
1217 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1218$as_echo X"$as_myself" |
1219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1220 s//\1/
1221 q
1222 }
1223 /^X\(\/\/\)[^/].*/{
1224 s//\1/
1225 q
1226 }
1227 /^X\(\/\/\)$/{
1228 s//\1/
1229 q
1230 }
1231 /^X\(\/\).*/{
1232 s//\1/
1233 q
1234 }
1235 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001236 srcdir=$ac_confdir
jfigusc7e66e32013-05-08 11:32:55 -04001237 if test ! -r "$srcdir/$ac_unique_file"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00001238 srcdir=..
1239 fi
1240else
1241 ac_srcdir_defaulted=no
1242fi
jfigusc7e66e32013-05-08 11:32:55 -04001243if test ! -r "$srcdir/$ac_unique_file"; then
1244 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1245 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Cullen Jennings235513a2005-09-21 22:51:36 +00001246fi
jfigusc7e66e32013-05-08 11:32:55 -04001247ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1248ac_abs_confdir=`(
1249 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1250 pwd)`
1251# When building in place, set srcdir=.
1252if test "$ac_abs_confdir" = "$ac_pwd"; then
1253 srcdir=.
1254fi
1255# Remove unnecessary trailing slashes from srcdir.
1256# Double slashes in file names in object file debugging info
1257# mess up M-x gdb in Emacs.
1258case $srcdir in
1259*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1260esac
1261for ac_var in $ac_precious_vars; do
1262 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1263 eval ac_env_${ac_var}_value=\$${ac_var}
1264 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1265 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1266done
Cullen Jennings235513a2005-09-21 22:51:36 +00001267
1268#
1269# Report the --help message.
1270#
1271if test "$ac_init_help" = "long"; then
1272 # Omit some internal or obsolete options to make the list less imposing.
1273 # This message is too long to be a string in the A/UX 3.1 sh.
1274 cat <<_ACEOF
Pascal Bühler34acba62017-01-19 10:57:30 +01001275\`configure' configures libsrtp2 2.1.0-pre to adapt to many kinds of systems.
Cullen Jennings235513a2005-09-21 22:51:36 +00001276
1277Usage: $0 [OPTION]... [VAR=VALUE]...
1278
1279To assign environment variables (e.g., CC, CFLAGS...), specify them as
1280VAR=VALUE. See below for descriptions of some of the useful variables.
1281
1282Defaults for the options are specified in brackets.
1283
1284Configuration:
1285 -h, --help display this help and exit
1286 --help=short display options specific to this package
1287 --help=recursive display the short help of all the included packages
1288 -V, --version display version information and exit
jfigusc7e66e32013-05-08 11:32:55 -04001289 -q, --quiet, --silent do not print \`checking ...' messages
Cullen Jennings235513a2005-09-21 22:51:36 +00001290 --cache-file=FILE cache test results in FILE [disabled]
1291 -C, --config-cache alias for \`--cache-file=config.cache'
1292 -n, --no-create do not create output files
1293 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1294
Cullen Jennings235513a2005-09-21 22:51:36 +00001295Installation directories:
1296 --prefix=PREFIX install architecture-independent files in PREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001297 [$ac_default_prefix]
Cullen Jennings235513a2005-09-21 22:51:36 +00001298 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001299 [PREFIX]
Cullen Jennings235513a2005-09-21 22:51:36 +00001300
1301By default, \`make install' will install all the files in
1302\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1303an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1304for instance \`--prefix=\$HOME'.
1305
1306For better control, use the options below.
1307
1308Fine tuning of the installation directories:
jfigusc7e66e32013-05-08 11:32:55 -04001309 --bindir=DIR user executables [EPREFIX/bin]
1310 --sbindir=DIR system admin executables [EPREFIX/sbin]
1311 --libexecdir=DIR program executables [EPREFIX/libexec]
1312 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1313 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1314 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Idar Tollefsen600ad962017-01-26 11:24:51 +01001315 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
jfigusc7e66e32013-05-08 11:32:55 -04001316 --libdir=DIR object code libraries [EPREFIX/lib]
1317 --includedir=DIR C header files [PREFIX/include]
1318 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1319 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1320 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1321 --infodir=DIR info documentation [DATAROOTDIR/info]
1322 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1323 --mandir=DIR man documentation [DATAROOTDIR/man]
jfigusd196e022014-11-20 16:43:44 -05001324 --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp2]
jfigusc7e66e32013-05-08 11:32:55 -04001325 --htmldir=DIR html documentation [DOCDIR]
1326 --dvidir=DIR dvi documentation [DOCDIR]
1327 --pdfdir=DIR pdf documentation [DOCDIR]
1328 --psdir=DIR ps documentation [DOCDIR]
Cullen Jennings235513a2005-09-21 22:51:36 +00001329_ACEOF
1330
1331 cat <<\_ACEOF
1332
1333System types:
1334 --build=BUILD configure for building on BUILD [guessed]
1335 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1336_ACEOF
1337fi
1338
1339if test -n "$ac_init_help"; then
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001340 case $ac_init_help in
Pascal Bühler34acba62017-01-19 10:57:30 +01001341 short | recursive ) echo "Configuration of libsrtp2 2.1.0-pre:";;
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001342 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00001343 cat <<\_ACEOF
1344
1345Optional Features:
jfigusc7e66e32013-05-08 11:32:55 -04001346 --disable-option-checking ignore unrecognized --enable/--with options
Cullen Jennings235513a2005-09-21 22:51:36 +00001347 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1348 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
David McGrewb67061f2005-09-28 14:23:06 +00001349 --disable-debug do not compile in dynamic debugging system
1350 --enable-generic-aesicm compile in changes for ISMAcryp
jfigusc7e66e32013-05-08 11:32:55 -04001351 --enable-openssl compile in OpenSSL crypto engine
jfigus038d2cf2015-05-11 14:10:11 -04001352 --enable-openssl-kdf Use OpenSSL KDF algorithm
jfigus97a80f42014-11-04 14:15:40 -05001353 --enable-stdout use stdout for debug/error reporting
David McGrewb67061f2005-09-28 14:23:06 +00001354 --enable-console use /dev/console for error reporting
Cullen Jennings235513a2005-09-21 22:51:36 +00001355
jfigus038d2cf2015-05-11 14:10:11 -04001356Optional Packages:
1357 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1358 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1359 --with-openssl-dir Location of OpenSSL installation
1360
Cullen Jennings235513a2005-09-21 22:51:36 +00001361Some influential environment variables:
1362 CC C compiler command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1365 nonstandard directory <lib dir>
jfigusc7e66e32013-05-08 11:32:55 -04001366 LIBS libraries to pass to the linker, e.g. -l<library>
1367 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1368 you have headers in a nonstandard directory <include dir>
Cullen Jennings235513a2005-09-21 22:51:36 +00001369 CPP C preprocessor
Idar Tollefsen600ad962017-01-26 11:24:51 +01001370 PKG_CONFIG path to pkg-config utility
1371 PKG_CONFIG_PATH
1372 directories to add to pkg-config's search path
1373 PKG_CONFIG_LIBDIR
1374 path overriding pkg-config's built-in search path
1375 crypto_CFLAGS
1376 C compiler flags for crypto, overriding pkg-config
1377 crypto_LIBS linker flags for crypto, overriding pkg-config
Cullen Jennings235513a2005-09-21 22:51:36 +00001378
1379Use these variables to override the choices made by `configure' or to help
1380it to find libraries and programs with nonstandard names/locations.
1381
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001382Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00001383_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001384ac_status=$?
Cullen Jennings235513a2005-09-21 22:51:36 +00001385fi
1386
1387if test "$ac_init_help" = "recursive"; then
1388 # If there are subdirs, report their specific --help.
Cullen Jennings235513a2005-09-21 22:51:36 +00001389 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jfigusc7e66e32013-05-08 11:32:55 -04001390 test -d "$ac_dir" ||
1391 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1392 continue
Cullen Jennings235513a2005-09-21 22:51:36 +00001393 ac_builddir=.
1394
jfigusc7e66e32013-05-08 11:32:55 -04001395case "$ac_dir" in
1396.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397*)
1398 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1399 # A ".." for each directory in $ac_dir_suffix.
1400 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1401 case $ac_top_builddir_sub in
1402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404 esac ;;
1405esac
1406ac_abs_top_builddir=$ac_pwd
1407ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408# for backward compatibility:
1409ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00001410
1411case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04001412 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00001413 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04001414 ac_top_srcdir=$ac_top_builddir_sub
1415 ac_abs_top_srcdir=$ac_pwd ;;
1416 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001417 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04001418 ac_top_srcdir=$srcdir
1419 ac_abs_top_srcdir=$srcdir ;;
1420 *) # Relative name.
1421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422 ac_top_srcdir=$ac_top_build_prefix$srcdir
1423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001424esac
jfigusc7e66e32013-05-08 11:32:55 -04001425ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001426
jfigusc7e66e32013-05-08 11:32:55 -04001427 cd "$ac_dir" || { ac_status=$?; continue; }
1428 # Check for guested configure.
1429 if test -f "$ac_srcdir/configure.gnu"; then
1430 echo &&
1431 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1432 elif test -f "$ac_srcdir/configure"; then
1433 echo &&
1434 $SHELL "$ac_srcdir/configure" --help=recursive
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001435 else
jfigusc7e66e32013-05-08 11:32:55 -04001436 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437 fi || ac_status=$?
1438 cd "$ac_pwd" || { ac_status=$?; break; }
Cullen Jennings235513a2005-09-21 22:51:36 +00001439 done
1440fi
1441
jfigusc7e66e32013-05-08 11:32:55 -04001442test -n "$ac_init_help" && exit $ac_status
Cullen Jennings235513a2005-09-21 22:51:36 +00001443if $ac_init_version; then
1444 cat <<\_ACEOF
Pascal Bühler34acba62017-01-19 10:57:30 +01001445libsrtp2 configure 2.1.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04001446generated by GNU Autoconf 2.69
Cullen Jennings235513a2005-09-21 22:51:36 +00001447
jfigusc7e66e32013-05-08 11:32:55 -04001448Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00001449This configure script is free software; the Free Software Foundation
1450gives unlimited permission to copy, distribute and modify it.
1451_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001452 exit
Cullen Jennings235513a2005-09-21 22:51:36 +00001453fi
jfigusc7e66e32013-05-08 11:32:55 -04001454
1455## ------------------------ ##
1456## Autoconf initialization. ##
1457## ------------------------ ##
1458
1459# ac_fn_c_try_compile LINENO
1460# --------------------------
1461# Try to compile conftest.$ac_ext, and return whether this succeeded.
1462ac_fn_c_try_compile ()
1463{
1464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1465 rm -f conftest.$ac_objext
1466 if { { ac_try="$ac_compile"
1467case "(($ac_try" in
1468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1469 *) ac_try_echo=$ac_try;;
1470esac
1471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1472$as_echo "$ac_try_echo"; } >&5
1473 (eval "$ac_compile") 2>conftest.err
1474 ac_status=$?
1475 if test -s conftest.err; then
1476 grep -v '^ *+' conftest.err >conftest.er1
1477 cat conftest.er1 >&5
1478 mv -f conftest.er1 conftest.err
1479 fi
1480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1481 test $ac_status = 0; } && {
1482 test -z "$ac_c_werror_flag" ||
1483 test ! -s conftest.err
1484 } && test -s conftest.$ac_objext; then :
1485 ac_retval=0
1486else
1487 $as_echo "$as_me: failed program was:" >&5
1488sed 's/^/| /' conftest.$ac_ext >&5
1489
1490 ac_retval=1
1491fi
1492 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1493 as_fn_set_status $ac_retval
1494
1495} # ac_fn_c_try_compile
1496
1497# ac_fn_c_try_run LINENO
1498# ----------------------
1499# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1500# that executables *can* be run.
1501ac_fn_c_try_run ()
1502{
1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504 if { { ac_try="$ac_link"
1505case "(($ac_try" in
1506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507 *) ac_try_echo=$ac_try;;
1508esac
1509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510$as_echo "$ac_try_echo"; } >&5
1511 (eval "$ac_link") 2>&5
1512 ac_status=$?
1513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1515 { { case "(($ac_try" in
1516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1517 *) ac_try_echo=$ac_try;;
1518esac
1519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1520$as_echo "$ac_try_echo"; } >&5
1521 (eval "$ac_try") 2>&5
1522 ac_status=$?
1523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524 test $ac_status = 0; }; }; then :
1525 ac_retval=0
1526else
1527 $as_echo "$as_me: program exited with status $ac_status" >&5
1528 $as_echo "$as_me: failed program was:" >&5
1529sed 's/^/| /' conftest.$ac_ext >&5
1530
1531 ac_retval=$ac_status
1532fi
1533 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1534 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1535 as_fn_set_status $ac_retval
1536
1537} # ac_fn_c_try_run
1538
1539# ac_fn_c_try_cpp LINENO
1540# ----------------------
1541# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1542ac_fn_c_try_cpp ()
1543{
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 if { { ac_try="$ac_cpp conftest.$ac_ext"
1546case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549esac
1550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551$as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1553 ac_status=$?
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1558 fi
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } > conftest.i && {
1561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 }; then :
1564 ac_retval=0
1565else
1566 $as_echo "$as_me: failed program was:" >&5
1567sed 's/^/| /' conftest.$ac_ext >&5
1568
1569 ac_retval=1
1570fi
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572 as_fn_set_status $ac_retval
1573
1574} # ac_fn_c_try_cpp
1575
1576# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1577# -------------------------------------------------------
1578# Tests whether HEADER exists and can be compiled using the include files in
1579# INCLUDES, setting the cache variable VAR accordingly.
1580ac_fn_c_check_header_compile ()
1581{
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1584$as_echo_n "checking for $2... " >&6; }
1585if eval \${$3+:} false; then :
1586 $as_echo_n "(cached) " >&6
1587else
1588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589/* end confdefs.h. */
1590$4
1591#include <$2>
1592_ACEOF
1593if ac_fn_c_try_compile "$LINENO"; then :
1594 eval "$3=yes"
1595else
1596 eval "$3=no"
1597fi
1598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1599fi
1600eval ac_res=\$$3
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1602$as_echo "$ac_res" >&6; }
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604
1605} # ac_fn_c_check_header_compile
1606
jfigusc7e66e32013-05-08 11:32:55 -04001607# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1608# -------------------------------------------
1609# Tests whether TYPE exists after having included INCLUDES, setting cache
1610# variable VAR accordingly.
1611ac_fn_c_check_type ()
1612{
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615$as_echo_n "checking for $2... " >&6; }
1616if eval \${$3+:} false; then :
1617 $as_echo_n "(cached) " >&6
1618else
1619 eval "$3=no"
1620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621/* end confdefs.h. */
1622$4
1623int
1624main ()
1625{
1626if (sizeof ($2))
1627 return 0;
1628 ;
1629 return 0;
1630}
1631_ACEOF
1632if ac_fn_c_try_compile "$LINENO"; then :
1633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1634/* end confdefs.h. */
1635$4
1636int
1637main ()
1638{
1639if (sizeof (($2)))
1640 return 0;
1641 ;
1642 return 0;
1643}
1644_ACEOF
1645if ac_fn_c_try_compile "$LINENO"; then :
1646
1647else
1648 eval "$3=yes"
1649fi
1650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651fi
1652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1653fi
1654eval ac_res=\$$3
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1656$as_echo "$ac_res" >&6; }
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658
1659} # ac_fn_c_check_type
1660
1661# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1662# --------------------------------------------
1663# Tries to find the compile-time value of EXPR in a program that includes
1664# INCLUDES, setting VAR accordingly. Returns whether the value could be
1665# computed
1666ac_fn_c_compute_int ()
1667{
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if test "$cross_compiling" = yes; then
1670 # Depending upon the size, compute the lo and hi bounds.
1671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672/* end confdefs.h. */
1673$4
1674int
1675main ()
1676{
1677static int test_array [1 - 2 * !(($2) >= 0)];
1678test_array [0] = 0;
1679return test_array [0];
1680
1681 ;
1682 return 0;
1683}
1684_ACEOF
1685if ac_fn_c_try_compile "$LINENO"; then :
1686 ac_lo=0 ac_mid=0
1687 while :; do
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689/* end confdefs.h. */
1690$4
1691int
1692main ()
1693{
1694static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1695test_array [0] = 0;
1696return test_array [0];
1697
1698 ;
1699 return 0;
1700}
1701_ACEOF
1702if ac_fn_c_try_compile "$LINENO"; then :
1703 ac_hi=$ac_mid; break
1704else
1705 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1706 if test $ac_lo -le $ac_mid; then
1707 ac_lo= ac_hi=
1708 break
1709 fi
1710 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1711fi
1712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713 done
1714else
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716/* end confdefs.h. */
1717$4
1718int
1719main ()
1720{
1721static int test_array [1 - 2 * !(($2) < 0)];
1722test_array [0] = 0;
1723return test_array [0];
1724
1725 ;
1726 return 0;
1727}
1728_ACEOF
1729if ac_fn_c_try_compile "$LINENO"; then :
1730 ac_hi=-1 ac_mid=-1
1731 while :; do
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733/* end confdefs.h. */
1734$4
1735int
1736main ()
1737{
1738static int test_array [1 - 2 * !(($2) >= $ac_mid)];
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=$ac_mid; break
1748else
1749 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1750 if test $ac_mid -le $ac_hi; then
1751 ac_lo= ac_hi=
1752 break
1753 fi
1754 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1755fi
1756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757 done
1758else
1759 ac_lo= ac_hi=
1760fi
1761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1762fi
1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764# Binary search between lo and hi bounds.
1765while test "x$ac_lo" != "x$ac_hi"; do
1766 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768/* end confdefs.h. */
1769$4
1770int
1771main ()
1772{
1773static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1774test_array [0] = 0;
1775return test_array [0];
1776
1777 ;
1778 return 0;
1779}
1780_ACEOF
1781if ac_fn_c_try_compile "$LINENO"; then :
1782 ac_hi=$ac_mid
1783else
1784 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1785fi
1786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787done
1788case $ac_lo in #((
1789?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1790'') ac_retval=1 ;;
1791esac
1792 else
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794/* end confdefs.h. */
1795$4
1796static long int longval () { return $2; }
1797static unsigned long int ulongval () { return $2; }
1798#include <stdio.h>
1799#include <stdlib.h>
1800int
1801main ()
1802{
1803
1804 FILE *f = fopen ("conftest.val", "w");
1805 if (! f)
1806 return 1;
1807 if (($2) < 0)
1808 {
1809 long int i = longval ();
1810 if (i != ($2))
1811 return 1;
1812 fprintf (f, "%ld", i);
1813 }
1814 else
1815 {
1816 unsigned long int i = ulongval ();
1817 if (i != ($2))
1818 return 1;
1819 fprintf (f, "%lu", i);
1820 }
1821 /* Do not output a trailing newline, as this causes \r\n confusion
1822 on some platforms. */
1823 return ferror (f) || fclose (f) != 0;
1824
1825 ;
1826 return 0;
1827}
1828_ACEOF
1829if ac_fn_c_try_run "$LINENO"; then :
1830 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1831else
1832 ac_retval=1
1833fi
1834rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1835 conftest.$ac_objext conftest.beam conftest.$ac_ext
1836rm -f conftest.val
1837
1838 fi
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status $ac_retval
1841
1842} # ac_fn_c_compute_int
1843
1844# ac_fn_c_try_link LINENO
1845# -----------------------
1846# Try to link conftest.$ac_ext, and return whether this succeeded.
1847ac_fn_c_try_link ()
1848{
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 rm -f conftest.$ac_objext conftest$ac_exeext
1851 if { { ac_try="$ac_link"
1852case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857$as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_link") 2>conftest.err
1859 ac_status=$?
1860 if test -s conftest.err; then
1861 grep -v '^ *+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1864 fi
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && {
1867 test -z "$ac_c_werror_flag" ||
1868 test ! -s conftest.err
1869 } && test -s conftest$ac_exeext && {
1870 test "$cross_compiling" = yes ||
1871 test -x conftest$ac_exeext
1872 }; then :
1873 ac_retval=0
1874else
1875 $as_echo "$as_me: failed program was:" >&5
1876sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 ac_retval=1
1879fi
1880 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1881 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1882 # interfere with the next link command; also delete a directory that is
1883 # left behind by Apple's compiler. We do this before executing the actions.
1884 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 as_fn_set_status $ac_retval
1887
1888} # ac_fn_c_try_link
1889
1890# ac_fn_c_check_func LINENO FUNC VAR
1891# ----------------------------------
1892# Tests whether FUNC exists, setting the cache variable VAR accordingly
1893ac_fn_c_check_func ()
1894{
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897$as_echo_n "checking for $2... " >&6; }
1898if eval \${$3+:} false; then :
1899 $as_echo_n "(cached) " >&6
1900else
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902/* end confdefs.h. */
1903/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1905#define $2 innocuous_$2
1906
1907/* System header to define __stub macros and hopefully few prototypes,
1908 which can conflict with char $2 (); below.
1909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1910 <limits.h> exists even on freestanding compilers. */
1911
1912#ifdef __STDC__
1913# include <limits.h>
1914#else
1915# include <assert.h>
1916#endif
1917
1918#undef $2
1919
1920/* Override any GCC internal prototype to avoid an error.
1921 Use char because int might match the return type of a GCC
1922 builtin and then its argument prototype would still apply. */
1923#ifdef __cplusplus
1924extern "C"
1925#endif
1926char $2 ();
1927/* The GNU C library defines this for functions which it implements
1928 to always fail with ENOSYS. Some functions are actually named
1929 something starting with __ and the normal name is an alias. */
1930#if defined __stub_$2 || defined __stub___$2
1931choke me
1932#endif
1933
1934int
1935main ()
1936{
1937return $2 ();
1938 ;
1939 return 0;
1940}
1941_ACEOF
1942if ac_fn_c_try_link "$LINENO"; then :
1943 eval "$3=yes"
1944else
1945 eval "$3=no"
1946fi
1947rm -f core conftest.err conftest.$ac_objext \
1948 conftest$ac_exeext conftest.$ac_ext
1949fi
1950eval ac_res=\$$3
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952$as_echo "$ac_res" >&6; }
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954
1955} # ac_fn_c_check_func
1956cat >config.log <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00001957This file contains any messages produced by compilers while
1958running configure, to aid debugging if configure makes a mistake.
1959
Pascal Bühler34acba62017-01-19 10:57:30 +01001960It was created by libsrtp2 $as_me 2.1.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04001961generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00001962
1963 $ $0 $@
1964
1965_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001966exec 5>>config.log
Cullen Jennings235513a2005-09-21 22:51:36 +00001967{
1968cat <<_ASUNAME
1969## --------- ##
1970## Platform. ##
1971## --------- ##
1972
1973hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1974uname -m = `(uname -m) 2>/dev/null || echo unknown`
1975uname -r = `(uname -r) 2>/dev/null || echo unknown`
1976uname -s = `(uname -s) 2>/dev/null || echo unknown`
1977uname -v = `(uname -v) 2>/dev/null || echo unknown`
1978
1979/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1980/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1981
1982/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1983/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1984/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
jfigusc7e66e32013-05-08 11:32:55 -04001985/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Cullen Jennings235513a2005-09-21 22:51:36 +00001986/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1987/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1988/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1989
1990_ASUNAME
1991
1992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993for as_dir in $PATH
1994do
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04001997 $as_echo "PATH: $as_dir"
1998 done
1999IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002000
2001} >&5
2002
2003cat >&5 <<_ACEOF
2004
2005
2006## ----------- ##
2007## Core tests. ##
2008## ----------- ##
2009
2010_ACEOF
2011
2012
2013# Keep a trace of the command line.
2014# Strip out --no-create and --no-recursion so they do not pile up.
2015# Strip out --silent because we don't want to record it for future runs.
2016# Also quote any args containing shell meta-characters.
2017# Make two passes to allow for proper duplicate-argument suppression.
2018ac_configure_args=
2019ac_configure_args0=
2020ac_configure_args1=
Cullen Jennings235513a2005-09-21 22:51:36 +00002021ac_must_keep_next=false
2022for ac_pass in 1 2
2023do
2024 for ac_arg
2025 do
2026 case $ac_arg in
2027 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2029 | -silent | --silent | --silen | --sile | --sil)
2030 continue ;;
jfigusc7e66e32013-05-08 11:32:55 -04002031 *\'*)
2032 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002033 esac
2034 case $ac_pass in
jfigusc7e66e32013-05-08 11:32:55 -04002035 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002036 2)
jfigusc7e66e32013-05-08 11:32:55 -04002037 as_fn_append ac_configure_args1 " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002038 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00002039 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00002040 else
David McGrewfec49dd2005-09-23 19:34:11 +00002041 case $ac_arg in
2042 *=* | --config-cache | -C | -disable-* | --disable-* \
2043 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2044 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2045 | -with-* | --with-* | -without-* | --without-* | --x)
2046 case "$ac_configure_args0 " in
2047 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2048 esac
2049 ;;
2050 -* ) ac_must_keep_next=true ;;
2051 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00002052 fi
jfigusc7e66e32013-05-08 11:32:55 -04002053 as_fn_append ac_configure_args " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002054 ;;
2055 esac
2056 done
2057done
jfigusc7e66e32013-05-08 11:32:55 -04002058{ ac_configure_args0=; unset ac_configure_args0;}
2059{ ac_configure_args1=; unset ac_configure_args1;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002060
2061# When interrupted or exit'd, cleanup temporary files, and complete
2062# config.log. We remove comments because anyway the quotes in there
2063# would cause problems or look ugly.
jfigusc7e66e32013-05-08 11:32:55 -04002064# WARNING: Use '\'' to represent an apostrophe within the trap.
2065# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Cullen Jennings235513a2005-09-21 22:51:36 +00002066trap 'exit_status=$?
2067 # Save into config.log some information that might help in debugging.
2068 {
2069 echo
2070
jfigusc7e66e32013-05-08 11:32:55 -04002071 $as_echo "## ---------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002072## Cache variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002073## ---------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002074 echo
2075 # The following way of writing the cache mishandles newlines in values,
jfigusc7e66e32013-05-08 11:32:55 -04002076(
2077 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2078 eval ac_val=\$$ac_var
2079 case $ac_val in #(
2080 *${as_nl}*)
2081 case $ac_var in #(
2082 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2083$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2084 esac
2085 case $ac_var in #(
2086 _ | IFS | as_nl) ;; #(
2087 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2088 *) { eval $ac_var=; unset $ac_var;} ;;
2089 esac ;;
2090 esac
2091 done
Cullen Jennings235513a2005-09-21 22:51:36 +00002092 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04002093 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2094 *${as_nl}ac_space=\ *)
Cullen Jennings235513a2005-09-21 22:51:36 +00002095 sed -n \
jfigusc7e66e32013-05-08 11:32:55 -04002096 "s/'\''/'\''\\\\'\'''\''/g;
2097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2098 ;; #(
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002099 *)
jfigusc7e66e32013-05-08 11:32:55 -04002100 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002101 ;;
jfigusc7e66e32013-05-08 11:32:55 -04002102 esac |
2103 sort
2104)
Cullen Jennings235513a2005-09-21 22:51:36 +00002105 echo
2106
jfigusc7e66e32013-05-08 11:32:55 -04002107 $as_echo "## ----------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002108## Output variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002109## ----------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002110 echo
2111 for ac_var in $ac_subst_vars
2112 do
jfigusc7e66e32013-05-08 11:32:55 -04002113 eval ac_val=\$$ac_var
2114 case $ac_val in
2115 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2116 esac
2117 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002118 done | sort
2119 echo
2120
2121 if test -n "$ac_subst_files"; then
jfigusc7e66e32013-05-08 11:32:55 -04002122 $as_echo "## ------------------- ##
2123## File substitutions. ##
2124## ------------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002125 echo
2126 for ac_var in $ac_subst_files
2127 do
jfigusc7e66e32013-05-08 11:32:55 -04002128 eval ac_val=\$$ac_var
2129 case $ac_val in
2130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131 esac
2132 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002133 done | sort
2134 echo
2135 fi
2136
2137 if test -s confdefs.h; then
jfigusc7e66e32013-05-08 11:32:55 -04002138 $as_echo "## ----------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002139## confdefs.h. ##
jfigusc7e66e32013-05-08 11:32:55 -04002140## ----------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002141 echo
jfigusc7e66e32013-05-08 11:32:55 -04002142 cat confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002143 echo
2144 fi
2145 test "$ac_signal" != 0 &&
jfigusc7e66e32013-05-08 11:32:55 -04002146 $as_echo "$as_me: caught signal $ac_signal"
2147 $as_echo "$as_me: exit $exit_status"
Cullen Jennings235513a2005-09-21 22:51:36 +00002148 } >&5
jfigusc7e66e32013-05-08 11:32:55 -04002149 rm -f core *.core core.conftest.* &&
2150 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Cullen Jennings235513a2005-09-21 22:51:36 +00002151 exit $exit_status
jfigusc7e66e32013-05-08 11:32:55 -04002152' 0
Cullen Jennings235513a2005-09-21 22:51:36 +00002153for ac_signal in 1 2 13 15; do
jfigusc7e66e32013-05-08 11:32:55 -04002154 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Cullen Jennings235513a2005-09-21 22:51:36 +00002155done
2156ac_signal=0
2157
2158# confdefs.h avoids OS command line length limits that DEFS can exceed.
jfigusc7e66e32013-05-08 11:32:55 -04002159rm -f -r conftest* confdefs.h
2160
2161$as_echo "/* confdefs.h */" > confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002162
2163# Predefined preprocessor variables.
2164
2165cat >>confdefs.h <<_ACEOF
2166#define PACKAGE_NAME "$PACKAGE_NAME"
2167_ACEOF
2168
Cullen Jennings235513a2005-09-21 22:51:36 +00002169cat >>confdefs.h <<_ACEOF
2170#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2171_ACEOF
2172
Cullen Jennings235513a2005-09-21 22:51:36 +00002173cat >>confdefs.h <<_ACEOF
2174#define PACKAGE_VERSION "$PACKAGE_VERSION"
2175_ACEOF
2176
Cullen Jennings235513a2005-09-21 22:51:36 +00002177cat >>confdefs.h <<_ACEOF
2178#define PACKAGE_STRING "$PACKAGE_STRING"
2179_ACEOF
2180
Cullen Jennings235513a2005-09-21 22:51:36 +00002181cat >>confdefs.h <<_ACEOF
2182#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2183_ACEOF
2184
jfigusc7e66e32013-05-08 11:32:55 -04002185cat >>confdefs.h <<_ACEOF
2186#define PACKAGE_URL "$PACKAGE_URL"
2187_ACEOF
2188
Cullen Jennings235513a2005-09-21 22:51:36 +00002189
2190# Let the site file select an alternate cache file if it wants to.
jfigusc7e66e32013-05-08 11:32:55 -04002191# Prefer an explicitly selected file to automatically selected ones.
2192ac_site_file1=NONE
2193ac_site_file2=NONE
2194if test -n "$CONFIG_SITE"; then
2195 # We do not want a PATH search for config.site.
2196 case $CONFIG_SITE in #((
2197 -*) ac_site_file1=./$CONFIG_SITE;;
2198 */*) ac_site_file1=$CONFIG_SITE;;
2199 *) ac_site_file1=./$CONFIG_SITE;;
2200 esac
2201elif test "x$prefix" != xNONE; then
2202 ac_site_file1=$prefix/share/config.site
2203 ac_site_file2=$prefix/etc/config.site
2204else
2205 ac_site_file1=$ac_default_prefix/share/config.site
2206 ac_site_file2=$ac_default_prefix/etc/config.site
Cullen Jennings235513a2005-09-21 22:51:36 +00002207fi
jfigusc7e66e32013-05-08 11:32:55 -04002208for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2209do
2210 test "x$ac_site_file" = xNONE && continue
2211 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2213$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002214 sed 's/^/| /' "$ac_site_file" >&5
jfigusc7e66e32013-05-08 11:32:55 -04002215 . "$ac_site_file" \
2216 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2218as_fn_error $? "failed to load site script $ac_site_file
2219See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002220 fi
2221done
2222
2223if test -r "$cache_file"; then
jfigusc7e66e32013-05-08 11:32:55 -04002224 # Some versions of bash will fail to source /dev/null (special files
2225 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2226 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2228$as_echo "$as_me: loading cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002229 case $cache_file in
jfigusc7e66e32013-05-08 11:32:55 -04002230 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2231 *) . "./$cache_file";;
Cullen Jennings235513a2005-09-21 22:51:36 +00002232 esac
2233 fi
2234else
jfigusc7e66e32013-05-08 11:32:55 -04002235 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2236$as_echo "$as_me: creating cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002237 >$cache_file
2238fi
2239
2240# Check that the precious variables saved in the cache have kept the same
2241# value.
2242ac_cache_corrupted=false
jfigusc7e66e32013-05-08 11:32:55 -04002243for ac_var in $ac_precious_vars; do
Cullen Jennings235513a2005-09-21 22:51:36 +00002244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2245 eval ac_new_set=\$ac_env_${ac_var}_set
jfigusc7e66e32013-05-08 11:32:55 -04002246 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2247 eval ac_new_val=\$ac_env_${ac_var}_value
Cullen Jennings235513a2005-09-21 22:51:36 +00002248 case $ac_old_set,$ac_new_set in
2249 set,)
jfigusc7e66e32013-05-08 11:32:55 -04002250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2251$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 +00002252 ac_cache_corrupted=: ;;
2253 ,set)
jfigusc7e66e32013-05-08 11:32:55 -04002254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2255$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002256 ac_cache_corrupted=: ;;
2257 ,);;
2258 *)
2259 if test "x$ac_old_val" != "x$ac_new_val"; then
jfigusc7e66e32013-05-08 11:32:55 -04002260 # differences in whitespace do not lead to failure.
2261 ac_old_val_w=`echo x $ac_old_val`
2262 ac_new_val_w=`echo x $ac_new_val`
2263 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2265$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2266 ac_cache_corrupted=:
2267 else
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2269$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2270 eval $ac_var=\$ac_old_val
2271 fi
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2273$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2275$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002276 fi;;
2277 esac
2278 # Pass precious variables to config.status.
2279 if test "$ac_new_set" = set; then
2280 case $ac_new_val in
jfigusc7e66e32013-05-08 11:32:55 -04002281 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002282 *) ac_arg=$ac_var=$ac_new_val ;;
2283 esac
2284 case " $ac_configure_args " in
2285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jfigusc7e66e32013-05-08 11:32:55 -04002286 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002287 esac
2288 fi
2289done
2290if $ac_cache_corrupted; then
jfigusc7e66e32013-05-08 11:32:55 -04002291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2294$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2295 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00002296fi
jfigusc7e66e32013-05-08 11:32:55 -04002297## -------------------- ##
2298## Main body of script. ##
2299## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002300
2301ac_ext=c
2302ac_cpp='$CPP $CPPFLAGS'
2303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2305ac_compiler_gnu=$ac_cv_c_compiler_gnu
2306
2307
2308
Idar Tollefsen600ad962017-01-26 11:24:51 +01002309EMPTY_CFLAGS="no"
2310if test "x$CFLAGS" = "x"; then
2311 EMPTY_CFLAGS="yes"
David McGrewb67061f2005-09-28 14:23:06 +00002312fi
2313
Idar Tollefsen600ad962017-01-26 11:24:51 +01002314ac_aux_dir=
2315for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2316 if test -f "$ac_dir/install-sh"; then
2317 ac_aux_dir=$ac_dir
2318 ac_install_sh="$ac_aux_dir/install-sh -c"
2319 break
2320 elif test -f "$ac_dir/install.sh"; then
2321 ac_aux_dir=$ac_dir
2322 ac_install_sh="$ac_aux_dir/install.sh -c"
2323 break
2324 elif test -f "$ac_dir/shtool"; then
2325 ac_aux_dir=$ac_dir
2326 ac_install_sh="$ac_aux_dir/shtool install -c"
2327 break
2328 fi
2329done
2330if test -z "$ac_aux_dir"; then
2331 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2332fi
2333
2334# These three variables are undocumented and unsupported,
2335# and are intended to be withdrawn in a future Autoconf release.
2336# They can cause serious problems if a builder's source tree is in a directory
2337# whose full name contains unusual characters.
2338ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2339ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2340ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2341
2342
2343# Expand $ac_aux_dir to an absolute path.
2344am_aux_dir=`cd "$ac_aux_dir" && pwd`
Cullen Jennings235513a2005-09-21 22:51:36 +00002345
2346ac_ext=c
2347ac_cpp='$CPP $CPPFLAGS'
2348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351if test -n "$ac_tool_prefix"; then
2352 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2353set dummy ${ac_tool_prefix}gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2355$as_echo_n "checking for $ac_word... " >&6; }
2356if ${ac_cv_prog_CC+:} false; then :
2357 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002358else
2359 if test -n "$CC"; then
2360 ac_cv_prog_CC="$CC" # Let the user override the test.
2361else
2362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363for as_dir in $PATH
2364do
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002369 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002371 break 2
2372 fi
2373done
jfigusc7e66e32013-05-08 11:32:55 -04002374 done
2375IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002376
2377fi
2378fi
2379CC=$ac_cv_prog_CC
2380if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2382$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002383else
jfigusc7e66e32013-05-08 11:32:55 -04002384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2385$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002386fi
2387
jfigusc7e66e32013-05-08 11:32:55 -04002388
Cullen Jennings235513a2005-09-21 22:51:36 +00002389fi
2390if test -z "$ac_cv_prog_CC"; then
2391 ac_ct_CC=$CC
2392 # Extract the first word of "gcc", so it can be a program name with args.
2393set dummy gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2395$as_echo_n "checking for $ac_word... " >&6; }
2396if ${ac_cv_prog_ac_ct_CC+:} false; then :
2397 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002398else
2399 if test -n "$ac_ct_CC"; then
2400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2401else
2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002409 ac_cv_prog_ac_ct_CC="gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002411 break 2
2412 fi
2413done
jfigusc7e66e32013-05-08 11:32:55 -04002414 done
2415IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002416
2417fi
2418fi
2419ac_ct_CC=$ac_cv_prog_ac_ct_CC
2420if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2422$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002423else
jfigusc7e66e32013-05-08 11:32:55 -04002424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2425$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002426fi
2427
jfigusc7e66e32013-05-08 11:32:55 -04002428 if test "x$ac_ct_CC" = x; then
2429 CC=""
2430 else
2431 case $cross_compiling:$ac_tool_warned in
2432yes:)
2433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2435ac_tool_warned=yes ;;
2436esac
2437 CC=$ac_ct_CC
2438 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002439else
2440 CC="$ac_cv_prog_CC"
2441fi
2442
2443if test -z "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002444 if test -n "$ac_tool_prefix"; then
2445 # 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 +00002446set dummy ${ac_tool_prefix}cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2448$as_echo_n "checking for $ac_word... " >&6; }
2449if ${ac_cv_prog_CC+:} false; then :
2450 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002451else
2452 if test -n "$CC"; then
2453 ac_cv_prog_CC="$CC" # Let the user override the test.
2454else
2455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456for as_dir in $PATH
2457do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002462 ac_cv_prog_CC="${ac_tool_prefix}cc"
jfigusc7e66e32013-05-08 11:32:55 -04002463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002464 break 2
2465 fi
2466done
jfigusc7e66e32013-05-08 11:32:55 -04002467 done
2468IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002469
2470fi
2471fi
2472CC=$ac_cv_prog_CC
2473if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2475$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002476else
jfigusc7e66e32013-05-08 11:32:55 -04002477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2478$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002479fi
2480
jfigusc7e66e32013-05-08 11:32:55 -04002481
Cullen Jennings235513a2005-09-21 22:51:36 +00002482 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002483fi
2484if test -z "$CC"; then
2485 # Extract the first word of "cc", so it can be a program name with args.
2486set dummy cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2488$as_echo_n "checking for $ac_word... " >&6; }
2489if ${ac_cv_prog_CC+:} false; then :
2490 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002491else
2492 if test -n "$CC"; then
2493 ac_cv_prog_CC="$CC" # Let the user override the test.
2494else
2495 ac_prog_rejected=no
2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497for as_dir in $PATH
2498do
2499 IFS=$as_save_IFS
2500 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002503 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2504 ac_prog_rejected=yes
2505 continue
2506 fi
2507 ac_cv_prog_CC="cc"
jfigusc7e66e32013-05-08 11:32:55 -04002508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002509 break 2
2510 fi
2511done
jfigusc7e66e32013-05-08 11:32:55 -04002512 done
2513IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002514
2515if test $ac_prog_rejected = yes; then
2516 # We found a bogon in the path, so make sure we never use it.
2517 set dummy $ac_cv_prog_CC
2518 shift
2519 if test $# != 0; then
2520 # We chose a different compiler from the bogus one.
2521 # However, it has the same basename, so the bogon will be chosen
2522 # first if we set CC to just the basename; use the full file name.
2523 shift
2524 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2525 fi
2526fi
2527fi
2528fi
2529CC=$ac_cv_prog_CC
2530if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2532$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002533else
jfigusc7e66e32013-05-08 11:32:55 -04002534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2535$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002536fi
2537
jfigusc7e66e32013-05-08 11:32:55 -04002538
Cullen Jennings235513a2005-09-21 22:51:36 +00002539fi
2540if test -z "$CC"; then
2541 if test -n "$ac_tool_prefix"; then
jfigusc7e66e32013-05-08 11:32:55 -04002542 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002543 do
2544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2545set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547$as_echo_n "checking for $ac_word... " >&6; }
2548if ${ac_cv_prog_CC+:} false; then :
2549 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002550else
2551 if test -n "$CC"; then
2552 ac_cv_prog_CC="$CC" # Let the user override the test.
2553else
2554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555for as_dir in $PATH
2556do
2557 IFS=$as_save_IFS
2558 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002561 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002563 break 2
2564 fi
2565done
jfigusc7e66e32013-05-08 11:32:55 -04002566 done
2567IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002568
2569fi
2570fi
2571CC=$ac_cv_prog_CC
2572if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2574$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002575else
jfigusc7e66e32013-05-08 11:32:55 -04002576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2577$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002578fi
2579
jfigusc7e66e32013-05-08 11:32:55 -04002580
Cullen Jennings235513a2005-09-21 22:51:36 +00002581 test -n "$CC" && break
2582 done
2583fi
2584if test -z "$CC"; then
2585 ac_ct_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04002586 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002587do
2588 # Extract the first word of "$ac_prog", so it can be a program name with args.
2589set dummy $ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591$as_echo_n "checking for $ac_word... " >&6; }
2592if ${ac_cv_prog_ac_ct_CC+:} false; then :
2593 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002594else
2595 if test -n "$ac_ct_CC"; then
2596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2597else
2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH
2600do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002605 ac_cv_prog_ac_ct_CC="$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002607 break 2
2608 fi
2609done
jfigusc7e66e32013-05-08 11:32:55 -04002610 done
2611IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002612
2613fi
2614fi
2615ac_ct_CC=$ac_cv_prog_ac_ct_CC
2616if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2618$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002619else
jfigusc7e66e32013-05-08 11:32:55 -04002620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002622fi
2623
jfigusc7e66e32013-05-08 11:32:55 -04002624
Cullen Jennings235513a2005-09-21 22:51:36 +00002625 test -n "$ac_ct_CC" && break
2626done
2627
jfigusc7e66e32013-05-08 11:32:55 -04002628 if test "x$ac_ct_CC" = x; then
2629 CC=""
2630 else
2631 case $cross_compiling:$ac_tool_warned in
2632yes:)
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2635ac_tool_warned=yes ;;
2636esac
2637 CC=$ac_ct_CC
2638 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002639fi
2640
2641fi
2642
2643
jfigusc7e66e32013-05-08 11:32:55 -04002644test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2646as_fn_error $? "no acceptable C compiler found in \$PATH
2647See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002648
2649# Provide some information about the compiler.
jfigusc7e66e32013-05-08 11:32:55 -04002650$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2651set X $ac_compile
2652ac_compiler=$2
2653for ac_option in --version -v -V -qversion; do
2654 { { ac_try="$ac_compiler $ac_option >&5"
2655case "(($ac_try" in
2656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657 *) ac_try_echo=$ac_try;;
2658esac
2659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2660$as_echo "$ac_try_echo"; } >&5
2661 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Cullen Jennings235513a2005-09-21 22:51:36 +00002662 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002663 if test -s conftest.err; then
2664 sed '10a\
2665... rest of stderr output deleted ...
2666 10q' conftest.err >conftest.er1
2667 cat conftest.er1 >&5
2668 fi
2669 rm -f conftest.er1 conftest.err
2670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2671 test $ac_status = 0; }
2672done
Cullen Jennings235513a2005-09-21 22:51:36 +00002673
jfigusc7e66e32013-05-08 11:32:55 -04002674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002675/* end confdefs.h. */
2676
2677int
2678main ()
2679{
2680
2681 ;
2682 return 0;
2683}
2684_ACEOF
2685ac_clean_files_save=$ac_clean_files
jfigusc7e66e32013-05-08 11:32:55 -04002686ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Cullen Jennings235513a2005-09-21 22:51:36 +00002687# Try to create an executable without -o first, disregard a.out.
2688# It will help us diagnose broken compilers, and finding out an intuition
2689# of exeext.
jfigusc7e66e32013-05-08 11:32:55 -04002690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2691$as_echo_n "checking whether the C compiler works... " >&6; }
2692ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002693
jfigusc7e66e32013-05-08 11:32:55 -04002694# The possible output files:
2695ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2696
2697ac_rmfiles=
2698for ac_file in $ac_files
2699do
2700 case $ac_file in
2701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2702 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2703 esac
2704done
2705rm -f $ac_rmfiles
2706
2707if { { ac_try="$ac_link_default"
2708case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711esac
2712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2713$as_echo "$ac_try_echo"; } >&5
2714 (eval "$ac_link_default") 2>&5
2715 ac_status=$?
2716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2717 test $ac_status = 0; }; then :
2718 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2719# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2720# in a Makefile. We should not override ac_cv_exeext if it was cached,
2721# so that the user can short-circuit this test for compilers unknown to
2722# Autoconf.
2723for ac_file in $ac_files ''
Cullen Jennings235513a2005-09-21 22:51:36 +00002724do
2725 test -f "$ac_file" || continue
2726 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00002728 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002729 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00002730 # We found the default executable, but exeext='' is most
2731 # certainly right.
2732 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002733 *.* )
jfigusc7e66e32013-05-08 11:32:55 -04002734 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2735 then :; else
2736 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2737 fi
2738 # We set ac_cv_exeext here because the later test for it is not
2739 # safe: cross compilers may not add the suffix if given an `-o'
2740 # argument, so we may need to know it at that point already.
2741 # Even if this section looks crufty: it has the advantage of
2742 # actually working.
David McGrewfec49dd2005-09-23 19:34:11 +00002743 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002744 * )
David McGrewfec49dd2005-09-23 19:34:11 +00002745 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002746 esac
2747done
jfigusc7e66e32013-05-08 11:32:55 -04002748test "$ac_cv_exeext" = no && ac_cv_exeext=
2749
Cullen Jennings235513a2005-09-21 22:51:36 +00002750else
jfigusc7e66e32013-05-08 11:32:55 -04002751 ac_file=''
2752fi
2753if test -z "$ac_file"; then :
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755$as_echo "no" >&6; }
2756$as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002757sed 's/^/| /' conftest.$ac_ext >&5
2758
jfigusc7e66e32013-05-08 11:32:55 -04002759{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2761as_fn_error 77 "C compiler cannot create executables
2762See \`config.log' for more details" "$LINENO" 5; }
2763else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2765$as_echo "yes" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002766fi
jfigusc7e66e32013-05-08 11:32:55 -04002767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2768$as_echo_n "checking for C compiler default output file name... " >&6; }
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2770$as_echo "$ac_file" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002771ac_exeext=$ac_cv_exeext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002772
jfigusc7e66e32013-05-08 11:32:55 -04002773rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002774ac_clean_files=$ac_clean_files_save
jfigusc7e66e32013-05-08 11:32:55 -04002775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2776$as_echo_n "checking for suffix of executables... " >&6; }
2777if { { ac_try="$ac_link"
2778case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781esac
2782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2783$as_echo "$ac_try_echo"; } >&5
2784 (eval "$ac_link") 2>&5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002785 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2787 test $ac_status = 0; }; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002788 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2789# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2790# work properly (i.e., refer to `conftest.exe'), while it won't with
2791# `rm'.
2792for ac_file in conftest.exe conftest conftest.*; do
2793 test -f "$ac_file" || continue
2794 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002796 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00002797 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002798 * ) break;;
2799 esac
2800done
2801else
jfigusc7e66e32013-05-08 11:32:55 -04002802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2804as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2805See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002806fi
jfigusc7e66e32013-05-08 11:32:55 -04002807rm -f conftest conftest$ac_cv_exeext
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2809$as_echo "$ac_cv_exeext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002810
2811rm -f conftest.$ac_ext
2812EXEEXT=$ac_cv_exeext
2813ac_exeext=$EXEEXT
jfigusc7e66e32013-05-08 11:32:55 -04002814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815/* end confdefs.h. */
2816#include <stdio.h>
2817int
2818main ()
2819{
2820FILE *f = fopen ("conftest.out", "w");
2821 return ferror (f) || fclose (f) != 0;
2822
2823 ;
2824 return 0;
2825}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002826_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002827ac_clean_files="$ac_clean_files conftest.out"
2828# Check that the compiler produces executables we can run. If not, either
2829# the compiler is broken, or we cross compile.
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2831$as_echo_n "checking whether we are cross compiling... " >&6; }
2832if test "$cross_compiling" != yes; then
2833 { { ac_try="$ac_link"
2834case "(($ac_try" in
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2837esac
2838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2839$as_echo "$ac_try_echo"; } >&5
2840 (eval "$ac_link") 2>&5
2841 ac_status=$?
2842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2843 test $ac_status = 0; }
2844 if { ac_try='./conftest$ac_cv_exeext'
2845 { { case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2848esac
2849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2850$as_echo "$ac_try_echo"; } >&5
2851 (eval "$ac_try") 2>&5
2852 ac_status=$?
2853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2854 test $ac_status = 0; }; }; then
2855 cross_compiling=no
2856 else
2857 if test "$cross_compiling" = maybe; then
2858 cross_compiling=yes
2859 else
2860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2862as_fn_error $? "cannot run C compiled programs.
2863If you meant to cross compile, use \`--host'.
2864See \`config.log' for more details" "$LINENO" 5; }
2865 fi
2866 fi
2867fi
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2869$as_echo "$cross_compiling" >&6; }
2870
2871rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2872ac_clean_files=$ac_clean_files_save
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2874$as_echo_n "checking for suffix of object files... " >&6; }
2875if ${ac_cv_objext+:} false; then :
2876 $as_echo_n "(cached) " >&6
2877else
2878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002879/* end confdefs.h. */
2880
2881int
2882main ()
2883{
2884
2885 ;
2886 return 0;
2887}
2888_ACEOF
2889rm -f conftest.o conftest.obj
jfigusc7e66e32013-05-08 11:32:55 -04002890if { { ac_try="$ac_compile"
2891case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894esac
2895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2896$as_echo "$ac_try_echo"; } >&5
2897 (eval "$ac_compile") 2>&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002898 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2900 test $ac_status = 0; }; then :
2901 for ac_file in conftest.o conftest.obj conftest.*; do
2902 test -f "$ac_file" || continue;
Cullen Jennings235513a2005-09-21 22:51:36 +00002903 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002905 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2906 break;;
2907 esac
2908done
2909else
jfigusc7e66e32013-05-08 11:32:55 -04002910 $as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002911sed 's/^/| /' conftest.$ac_ext >&5
2912
jfigusc7e66e32013-05-08 11:32:55 -04002913{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2915as_fn_error $? "cannot compute suffix of object files: cannot compile
2916See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002917fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002918rm -f conftest.$ac_cv_objext conftest.$ac_ext
2919fi
jfigusc7e66e32013-05-08 11:32:55 -04002920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2921$as_echo "$ac_cv_objext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002922OBJEXT=$ac_cv_objext
2923ac_objext=$OBJEXT
jfigusc7e66e32013-05-08 11:32:55 -04002924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2925$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2926if ${ac_cv_c_compiler_gnu+:} false; then :
2927 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002928else
jfigusc7e66e32013-05-08 11:32:55 -04002929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002930/* end confdefs.h. */
2931
2932int
2933main ()
2934{
2935#ifndef __GNUC__
2936 choke me
2937#endif
2938
2939 ;
2940 return 0;
2941}
2942_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002943if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002944 ac_compiler_gnu=yes
2945else
jfigusc7e66e32013-05-08 11:32:55 -04002946 ac_compiler_gnu=no
Cullen Jennings235513a2005-09-21 22:51:36 +00002947fi
jfigusc7e66e32013-05-08 11:32:55 -04002948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002949ac_cv_c_compiler_gnu=$ac_compiler_gnu
2950
2951fi
jfigusc7e66e32013-05-08 11:32:55 -04002952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2953$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2954if test $ac_compiler_gnu = yes; then
2955 GCC=yes
2956else
2957 GCC=
2958fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002959ac_test_CFLAGS=${CFLAGS+set}
2960ac_save_CFLAGS=$CFLAGS
jfigusc7e66e32013-05-08 11:32:55 -04002961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2962$as_echo_n "checking whether $CC accepts -g... " >&6; }
2963if ${ac_cv_prog_cc_g+:} false; then :
2964 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002965else
jfigusc7e66e32013-05-08 11:32:55 -04002966 ac_save_c_werror_flag=$ac_c_werror_flag
2967 ac_c_werror_flag=yes
2968 ac_cv_prog_cc_g=no
2969 CFLAGS="-g"
2970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002971/* end confdefs.h. */
2972
2973int
2974main ()
2975{
2976
2977 ;
2978 return 0;
2979}
2980_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002981if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002982 ac_cv_prog_cc_g=yes
2983else
jfigusc7e66e32013-05-08 11:32:55 -04002984 CFLAGS=""
2985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00002987
jfigusc7e66e32013-05-08 11:32:55 -04002988int
2989main ()
2990{
2991
2992 ;
2993 return 0;
2994}
2995_ACEOF
2996if ac_fn_c_try_compile "$LINENO"; then :
2997
2998else
2999 ac_c_werror_flag=$ac_save_c_werror_flag
3000 CFLAGS="-g"
3001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3002/* end confdefs.h. */
3003
3004int
3005main ()
3006{
3007
3008 ;
3009 return 0;
3010}
3011_ACEOF
3012if ac_fn_c_try_compile "$LINENO"; then :
3013 ac_cv_prog_cc_g=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00003014fi
jfigusc7e66e32013-05-08 11:32:55 -04003015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003016fi
jfigusc7e66e32013-05-08 11:32:55 -04003017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3018fi
3019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3020 ac_c_werror_flag=$ac_save_c_werror_flag
3021fi
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3023$as_echo "$ac_cv_prog_cc_g" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00003024if test "$ac_test_CFLAGS" = set; then
3025 CFLAGS=$ac_save_CFLAGS
3026elif test $ac_cv_prog_cc_g = yes; then
3027 if test "$GCC" = yes; then
3028 CFLAGS="-g -O2"
3029 else
3030 CFLAGS="-g"
3031 fi
3032else
3033 if test "$GCC" = yes; then
3034 CFLAGS="-O2"
3035 else
3036 CFLAGS=
3037 fi
3038fi
jfigusc7e66e32013-05-08 11:32:55 -04003039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3040$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3041if ${ac_cv_prog_cc_c89+:} false; then :
3042 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003043else
jfigusc7e66e32013-05-08 11:32:55 -04003044 ac_cv_prog_cc_c89=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003045ac_save_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04003046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003047/* end confdefs.h. */
3048#include <stdarg.h>
3049#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -04003050struct stat;
Cullen Jennings235513a2005-09-21 22:51:36 +00003051/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3052struct buf { int x; };
3053FILE * (*rcsopen) (struct buf *, struct stat *, int);
3054static char *e (p, i)
3055 char **p;
3056 int i;
3057{
3058 return p[i];
3059}
3060static char *f (char * (*g) (char **, int), char **p, ...)
3061{
3062 char *s;
3063 va_list v;
3064 va_start (v,p);
3065 s = g (p, va_arg (v,int));
3066 va_end (v);
3067 return s;
3068}
David McGrewfec49dd2005-09-23 19:34:11 +00003069
3070/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3071 function prototypes and stuff, but not '\xHH' hex character constants.
3072 These don't provoke an error unfortunately, instead are silently treated
jfigusc7e66e32013-05-08 11:32:55 -04003073 as 'x'. The following induces an error, until -std is added to get
David McGrewfec49dd2005-09-23 19:34:11 +00003074 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3075 array size at least. It's necessary to write '\x00'==0 to get something
jfigusc7e66e32013-05-08 11:32:55 -04003076 that's true only with -std. */
David McGrewfec49dd2005-09-23 19:34:11 +00003077int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3078
jfigusc7e66e32013-05-08 11:32:55 -04003079/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3080 inside strings and character constants. */
3081#define FOO(x) 'x'
3082int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3083
Cullen Jennings235513a2005-09-21 22:51:36 +00003084int test (int i, double x);
3085struct s1 {int (*f) (int a);};
3086struct s2 {int (*f) (double a);};
3087int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3088int argc;
3089char **argv;
3090int
3091main ()
3092{
3093return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3094 ;
3095 return 0;
3096}
3097_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003098for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3099 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Cullen Jennings235513a2005-09-21 22:51:36 +00003100do
3101 CC="$ac_save_CC $ac_arg"
jfigusc7e66e32013-05-08 11:32:55 -04003102 if ac_fn_c_try_compile "$LINENO"; then :
3103 ac_cv_prog_cc_c89=$ac_arg
Cullen Jennings235513a2005-09-21 22:51:36 +00003104fi
jfigusc7e66e32013-05-08 11:32:55 -04003105rm -f core conftest.err conftest.$ac_objext
3106 test "x$ac_cv_prog_cc_c89" != "xno" && break
Cullen Jennings235513a2005-09-21 22:51:36 +00003107done
jfigusc7e66e32013-05-08 11:32:55 -04003108rm -f conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003109CC=$ac_save_CC
3110
3111fi
jfigusc7e66e32013-05-08 11:32:55 -04003112# AC_CACHE_VAL
3113case "x$ac_cv_prog_cc_c89" in
3114 x)
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3116$as_echo "none needed" >&6; } ;;
3117 xno)
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3119$as_echo "unsupported" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003120 *)
jfigusc7e66e32013-05-08 11:32:55 -04003121 CC="$CC $ac_cv_prog_cc_c89"
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3123$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003124esac
jfigusc7e66e32013-05-08 11:32:55 -04003125if test "x$ac_cv_prog_cc_c89" != xno; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003126
3127fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003128
Cullen Jennings235513a2005-09-21 22:51:36 +00003129ac_ext=c
3130ac_cpp='$CPP $CPPFLAGS'
3131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3133ac_compiler_gnu=$ac_cv_c_compiler_gnu
3134
jfigus1ce6a742015-04-06 08:54:01 -04003135
3136if test -n "$ac_tool_prefix"; then
3137 for ac_prog in ar lib "link -lib"
3138 do
3139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3140set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142$as_echo_n "checking for $ac_word... " >&6; }
3143if ${ac_cv_prog_AR+:} false; then :
3144 $as_echo_n "(cached) " >&6
3145else
3146 if test -n "$AR"; then
3147 ac_cv_prog_AR="$AR" # Let the user override the test.
3148else
3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150for as_dir in $PATH
3151do
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 break 2
3159 fi
3160done
3161 done
3162IFS=$as_save_IFS
3163
3164fi
3165fi
3166AR=$ac_cv_prog_AR
3167if test -n "$AR"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3169$as_echo "$AR" >&6; }
3170else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172$as_echo "no" >&6; }
3173fi
3174
3175
3176 test -n "$AR" && break
3177 done
3178fi
3179if test -z "$AR"; then
3180 ac_ct_AR=$AR
3181 for ac_prog in ar lib "link -lib"
3182do
3183 # Extract the first word of "$ac_prog", so it can be a program name with args.
3184set dummy $ac_prog; ac_word=$2
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186$as_echo_n "checking for $ac_word... " >&6; }
3187if ${ac_cv_prog_ac_ct_AR+:} false; then :
3188 $as_echo_n "(cached) " >&6
3189else
3190 if test -n "$ac_ct_AR"; then
3191 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3192else
3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194for as_dir in $PATH
3195do
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200 ac_cv_prog_ac_ct_AR="$ac_prog"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 break 2
3203 fi
3204done
3205 done
3206IFS=$as_save_IFS
3207
3208fi
3209fi
3210ac_ct_AR=$ac_cv_prog_ac_ct_AR
3211if test -n "$ac_ct_AR"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3213$as_echo "$ac_ct_AR" >&6; }
3214else
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216$as_echo "no" >&6; }
3217fi
3218
3219
3220 test -n "$ac_ct_AR" && break
3221done
3222
3223 if test "x$ac_ct_AR" = x; then
3224 AR="false"
3225 else
3226 case $cross_compiling:$ac_tool_warned in
3227yes:)
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3230ac_tool_warned=yes ;;
3231esac
3232 AR=$ac_ct_AR
3233 fi
3234fi
3235
3236: ${AR=ar}
3237
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3239$as_echo_n "checking the archiver ($AR) interface... " >&6; }
3240if ${am_cv_ar_interface+:} false; then :
3241 $as_echo_n "(cached) " >&6
3242else
3243 ac_ext=c
3244ac_cpp='$CPP $CPPFLAGS'
3245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248
3249 am_cv_ar_interface=ar
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251/* end confdefs.h. */
3252int some_variable = 0;
3253_ACEOF
3254if ac_fn_c_try_compile "$LINENO"; then :
3255 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3257 (eval $am_ar_try) 2>&5
3258 ac_status=$?
3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }
3261 if test "$ac_status" -eq 0; then
3262 am_cv_ar_interface=ar
3263 else
3264 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3266 (eval $am_ar_try) 2>&5
3267 ac_status=$?
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }
3270 if test "$ac_status" -eq 0; then
3271 am_cv_ar_interface=lib
3272 else
3273 am_cv_ar_interface=unknown
3274 fi
3275 fi
3276 rm -f conftest.lib libconftest.a
3277
3278fi
3279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280 ac_ext=c
3281ac_cpp='$CPP $CPPFLAGS'
3282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285
3286fi
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3288$as_echo "$am_cv_ar_interface" >&6; }
3289
3290case $am_cv_ar_interface in
3291ar)
3292 ;;
3293lib)
3294 # Microsoft lib, so override with the ar-lib wrapper script.
3295 # FIXME: It is wrong to rewrite AR.
3296 # But if we don't then we get into trouble of one sort or another.
3297 # A longer-term fix would be to have automake use am__AR in this case,
3298 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3299 # similar.
3300 AR="$am_aux_dir/ar-lib $AR"
3301 ;;
3302unknown)
3303 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3304 ;;
3305esac
3306
3307if test -n "$ac_tool_prefix"; then
3308 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3309set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311$as_echo_n "checking for $ac_word... " >&6; }
3312if ${ac_cv_prog_RANLIB+:} false; then :
3313 $as_echo_n "(cached) " >&6
3314else
3315 if test -n "$RANLIB"; then
3316 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3317else
3318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319for as_dir in $PATH
3320do
3321 IFS=$as_save_IFS
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3328 fi
3329done
3330 done
3331IFS=$as_save_IFS
3332
3333fi
3334fi
3335RANLIB=$ac_cv_prog_RANLIB
3336if test -n "$RANLIB"; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3338$as_echo "$RANLIB" >&6; }
3339else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341$as_echo "no" >&6; }
3342fi
3343
3344
3345fi
3346if test -z "$ac_cv_prog_RANLIB"; then
3347 ac_ct_RANLIB=$RANLIB
3348 # Extract the first word of "ranlib", so it can be a program name with args.
3349set dummy ranlib; ac_word=$2
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351$as_echo_n "checking for $ac_word... " >&6; }
3352if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3353 $as_echo_n "(cached) " >&6
3354else
3355 if test -n "$ac_ct_RANLIB"; then
3356 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3357else
3358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359for as_dir in $PATH
3360do
3361 IFS=$as_save_IFS
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365 ac_cv_prog_ac_ct_RANLIB="ranlib"
3366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367 break 2
3368 fi
3369done
3370 done
3371IFS=$as_save_IFS
3372
3373fi
3374fi
3375ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3376if test -n "$ac_ct_RANLIB"; then
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3378$as_echo "$ac_ct_RANLIB" >&6; }
3379else
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381$as_echo "no" >&6; }
3382fi
3383
3384 if test "x$ac_ct_RANLIB" = x; then
3385 RANLIB=":"
3386 else
3387 case $cross_compiling:$ac_tool_warned in
3388yes:)
3389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3391ac_tool_warned=yes ;;
3392esac
3393 RANLIB=$ac_ct_RANLIB
3394 fi
3395else
3396 RANLIB="$ac_cv_prog_RANLIB"
3397fi
3398
3399ac_ext=c
3400ac_cpp='$CPP $CPPFLAGS'
3401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404if test -n "$ac_tool_prefix"; then
3405 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3406set dummy ${ac_tool_prefix}gcc; ac_word=$2
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408$as_echo_n "checking for $ac_word... " >&6; }
3409if ${ac_cv_prog_CC+:} false; then :
3410 $as_echo_n "(cached) " >&6
3411else
3412 if test -n "$CC"; then
3413 ac_cv_prog_CC="$CC" # Let the user override the test.
3414else
3415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416for as_dir in $PATH
3417do
3418 IFS=$as_save_IFS
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 break 2
3425 fi
3426done
3427 done
3428IFS=$as_save_IFS
3429
3430fi
3431fi
3432CC=$ac_cv_prog_CC
3433if test -n "$CC"; then
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3435$as_echo "$CC" >&6; }
3436else
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438$as_echo "no" >&6; }
3439fi
3440
3441
3442fi
3443if test -z "$ac_cv_prog_CC"; then
3444 ac_ct_CC=$CC
3445 # Extract the first word of "gcc", so it can be a program name with args.
3446set dummy gcc; ac_word=$2
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448$as_echo_n "checking for $ac_word... " >&6; }
3449if ${ac_cv_prog_ac_ct_CC+:} false; then :
3450 $as_echo_n "(cached) " >&6
3451else
3452 if test -n "$ac_ct_CC"; then
3453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3454else
3455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456for as_dir in $PATH
3457do
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 ac_cv_prog_ac_ct_CC="gcc"
3463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 break 2
3465 fi
3466done
3467 done
3468IFS=$as_save_IFS
3469
3470fi
3471fi
3472ac_ct_CC=$ac_cv_prog_ac_ct_CC
3473if test -n "$ac_ct_CC"; then
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3475$as_echo "$ac_ct_CC" >&6; }
3476else
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478$as_echo "no" >&6; }
3479fi
3480
3481 if test "x$ac_ct_CC" = x; then
3482 CC=""
3483 else
3484 case $cross_compiling:$ac_tool_warned in
3485yes:)
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3488ac_tool_warned=yes ;;
3489esac
3490 CC=$ac_ct_CC
3491 fi
3492else
3493 CC="$ac_cv_prog_CC"
3494fi
3495
3496if test -z "$CC"; then
3497 if test -n "$ac_tool_prefix"; then
3498 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3499set dummy ${ac_tool_prefix}cc; ac_word=$2
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501$as_echo_n "checking for $ac_word... " >&6; }
3502if ${ac_cv_prog_CC+:} false; then :
3503 $as_echo_n "(cached) " >&6
3504else
3505 if test -n "$CC"; then
3506 ac_cv_prog_CC="$CC" # Let the user override the test.
3507else
3508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509for as_dir in $PATH
3510do
3511 IFS=$as_save_IFS
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3515 ac_cv_prog_CC="${ac_tool_prefix}cc"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 break 2
3518 fi
3519done
3520 done
3521IFS=$as_save_IFS
3522
3523fi
3524fi
3525CC=$ac_cv_prog_CC
3526if test -n "$CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3528$as_echo "$CC" >&6; }
3529else
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531$as_echo "no" >&6; }
3532fi
3533
3534
3535 fi
3536fi
3537if test -z "$CC"; then
3538 # Extract the first word of "cc", so it can be a program name with args.
3539set dummy cc; ac_word=$2
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541$as_echo_n "checking for $ac_word... " >&6; }
3542if ${ac_cv_prog_CC+:} false; then :
3543 $as_echo_n "(cached) " >&6
3544else
3545 if test -n "$CC"; then
3546 ac_cv_prog_CC="$CC" # Let the user override the test.
3547else
3548 ac_prog_rejected=no
3549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550for as_dir in $PATH
3551do
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3557 ac_prog_rejected=yes
3558 continue
3559 fi
3560 ac_cv_prog_CC="cc"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3563 fi
3564done
3565 done
3566IFS=$as_save_IFS
3567
3568if test $ac_prog_rejected = yes; then
3569 # We found a bogon in the path, so make sure we never use it.
3570 set dummy $ac_cv_prog_CC
3571 shift
3572 if test $# != 0; then
3573 # We chose a different compiler from the bogus one.
3574 # However, it has the same basename, so the bogon will be chosen
3575 # first if we set CC to just the basename; use the full file name.
3576 shift
3577 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3578 fi
3579fi
3580fi
3581fi
3582CC=$ac_cv_prog_CC
3583if test -n "$CC"; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3585$as_echo "$CC" >&6; }
3586else
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588$as_echo "no" >&6; }
3589fi
3590
3591
3592fi
3593if test -z "$CC"; then
3594 if test -n "$ac_tool_prefix"; then
3595 for ac_prog in cl.exe
3596 do
3597 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3598set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3600$as_echo_n "checking for $ac_word... " >&6; }
3601if ${ac_cv_prog_CC+:} false; then :
3602 $as_echo_n "(cached) " >&6
3603else
3604 if test -n "$CC"; then
3605 ac_cv_prog_CC="$CC" # Let the user override the test.
3606else
3607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608for as_dir in $PATH
3609do
3610 IFS=$as_save_IFS
3611 test -z "$as_dir" && as_dir=.
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3614 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 break 2
3617 fi
3618done
3619 done
3620IFS=$as_save_IFS
3621
3622fi
3623fi
3624CC=$ac_cv_prog_CC
3625if test -n "$CC"; then
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3627$as_echo "$CC" >&6; }
3628else
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630$as_echo "no" >&6; }
3631fi
3632
3633
3634 test -n "$CC" && break
3635 done
3636fi
3637if test -z "$CC"; then
3638 ac_ct_CC=$CC
3639 for ac_prog in cl.exe
3640do
3641 # Extract the first word of "$ac_prog", so it can be a program name with args.
3642set dummy $ac_prog; ac_word=$2
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644$as_echo_n "checking for $ac_word... " >&6; }
3645if ${ac_cv_prog_ac_ct_CC+:} false; then :
3646 $as_echo_n "(cached) " >&6
3647else
3648 if test -n "$ac_ct_CC"; then
3649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3650else
3651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652for as_dir in $PATH
3653do
3654 IFS=$as_save_IFS
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658 ac_cv_prog_ac_ct_CC="$ac_prog"
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 break 2
3661 fi
3662done
3663 done
3664IFS=$as_save_IFS
3665
3666fi
3667fi
3668ac_ct_CC=$ac_cv_prog_ac_ct_CC
3669if test -n "$ac_ct_CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3671$as_echo "$ac_ct_CC" >&6; }
3672else
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674$as_echo "no" >&6; }
3675fi
3676
3677
3678 test -n "$ac_ct_CC" && break
3679done
3680
3681 if test "x$ac_ct_CC" = x; then
3682 CC=""
3683 else
3684 case $cross_compiling:$ac_tool_warned in
3685yes:)
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3688ac_tool_warned=yes ;;
3689esac
3690 CC=$ac_ct_CC
3691 fi
3692fi
3693
3694fi
3695
3696
3697test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3699as_fn_error $? "no acceptable C compiler found in \$PATH
3700See \`config.log' for more details" "$LINENO" 5; }
3701
3702# Provide some information about the compiler.
3703$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3704set X $ac_compile
3705ac_compiler=$2
3706for ac_option in --version -v -V -qversion; do
3707 { { ac_try="$ac_compiler $ac_option >&5"
3708case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711esac
3712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713$as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3715 ac_status=$?
3716 if test -s conftest.err; then
3717 sed '10a\
3718... rest of stderr output deleted ...
3719 10q' conftest.err >conftest.er1
3720 cat conftest.er1 >&5
3721 fi
3722 rm -f conftest.er1 conftest.err
3723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3724 test $ac_status = 0; }
3725done
3726
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3728$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3729if ${ac_cv_c_compiler_gnu+:} false; then :
3730 $as_echo_n "(cached) " >&6
3731else
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733/* end confdefs.h. */
3734
3735int
3736main ()
3737{
3738#ifndef __GNUC__
3739 choke me
3740#endif
3741
3742 ;
3743 return 0;
3744}
3745_ACEOF
3746if ac_fn_c_try_compile "$LINENO"; then :
3747 ac_compiler_gnu=yes
3748else
3749 ac_compiler_gnu=no
3750fi
3751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752ac_cv_c_compiler_gnu=$ac_compiler_gnu
3753
3754fi
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3756$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3757if test $ac_compiler_gnu = yes; then
3758 GCC=yes
3759else
3760 GCC=
3761fi
3762ac_test_CFLAGS=${CFLAGS+set}
3763ac_save_CFLAGS=$CFLAGS
3764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3765$as_echo_n "checking whether $CC accepts -g... " >&6; }
3766if ${ac_cv_prog_cc_g+:} false; then :
3767 $as_echo_n "(cached) " >&6
3768else
3769 ac_save_c_werror_flag=$ac_c_werror_flag
3770 ac_c_werror_flag=yes
3771 ac_cv_prog_cc_g=no
3772 CFLAGS="-g"
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774/* end confdefs.h. */
3775
3776int
3777main ()
3778{
3779
3780 ;
3781 return 0;
3782}
3783_ACEOF
3784if ac_fn_c_try_compile "$LINENO"; then :
3785 ac_cv_prog_cc_g=yes
3786else
3787 CFLAGS=""
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789/* end confdefs.h. */
3790
3791int
3792main ()
3793{
3794
3795 ;
3796 return 0;
3797}
3798_ACEOF
3799if ac_fn_c_try_compile "$LINENO"; then :
3800
3801else
3802 ac_c_werror_flag=$ac_save_c_werror_flag
3803 CFLAGS="-g"
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805/* end confdefs.h. */
3806
3807int
3808main ()
3809{
3810
3811 ;
3812 return 0;
3813}
3814_ACEOF
3815if ac_fn_c_try_compile "$LINENO"; then :
3816 ac_cv_prog_cc_g=yes
3817fi
3818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819fi
3820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821fi
3822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 ac_c_werror_flag=$ac_save_c_werror_flag
3824fi
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3826$as_echo "$ac_cv_prog_cc_g" >&6; }
3827if test "$ac_test_CFLAGS" = set; then
3828 CFLAGS=$ac_save_CFLAGS
3829elif test $ac_cv_prog_cc_g = yes; then
3830 if test "$GCC" = yes; then
3831 CFLAGS="-g -O2"
3832 else
3833 CFLAGS="-g"
3834 fi
3835else
3836 if test "$GCC" = yes; then
3837 CFLAGS="-O2"
3838 else
3839 CFLAGS=
3840 fi
3841fi
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3843$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3844if ${ac_cv_prog_cc_c89+:} false; then :
3845 $as_echo_n "(cached) " >&6
3846else
3847 ac_cv_prog_cc_c89=no
3848ac_save_CC=$CC
3849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850/* end confdefs.h. */
3851#include <stdarg.h>
3852#include <stdio.h>
3853struct stat;
3854/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3855struct buf { int x; };
3856FILE * (*rcsopen) (struct buf *, struct stat *, int);
3857static char *e (p, i)
3858 char **p;
3859 int i;
3860{
3861 return p[i];
3862}
3863static char *f (char * (*g) (char **, int), char **p, ...)
3864{
3865 char *s;
3866 va_list v;
3867 va_start (v,p);
3868 s = g (p, va_arg (v,int));
3869 va_end (v);
3870 return s;
3871}
3872
3873/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3874 function prototypes and stuff, but not '\xHH' hex character constants.
3875 These don't provoke an error unfortunately, instead are silently treated
3876 as 'x'. The following induces an error, until -std is added to get
3877 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3878 array size at least. It's necessary to write '\x00'==0 to get something
3879 that's true only with -std. */
3880int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3881
3882/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3883 inside strings and character constants. */
3884#define FOO(x) 'x'
3885int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3886
3887int test (int i, double x);
3888struct s1 {int (*f) (int a);};
3889struct s2 {int (*f) (double a);};
3890int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3891int argc;
3892char **argv;
3893int
3894main ()
3895{
3896return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3897 ;
3898 return 0;
3899}
3900_ACEOF
3901for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3902 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3903do
3904 CC="$ac_save_CC $ac_arg"
3905 if ac_fn_c_try_compile "$LINENO"; then :
3906 ac_cv_prog_cc_c89=$ac_arg
3907fi
3908rm -f core conftest.err conftest.$ac_objext
3909 test "x$ac_cv_prog_cc_c89" != "xno" && break
3910done
3911rm -f conftest.$ac_ext
3912CC=$ac_save_CC
3913
3914fi
3915# AC_CACHE_VAL
3916case "x$ac_cv_prog_cc_c89" in
3917 x)
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3919$as_echo "none needed" >&6; } ;;
3920 xno)
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3922$as_echo "unsupported" >&6; } ;;
3923 *)
3924 CC="$CC $ac_cv_prog_cc_c89"
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3926$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3927esac
3928if test "x$ac_cv_prog_cc_c89" != xno; then :
3929
3930fi
3931
3932ac_ext=c
3933ac_cpp='$CPP $CPPFLAGS'
3934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936ac_compiler_gnu=$ac_cv_c_compiler_gnu
3937
David McGrewb67061f2005-09-28 14:23:06 +00003938# Find a good install program. We prefer a C program (faster),
3939# so one script is as good as another. But avoid the broken or
3940# incompatible versions:
3941# SysV /etc/install, /usr/sbin/install
3942# SunOS /usr/etc/install
3943# IRIX /sbin/install
3944# AIX /bin/install
3945# AmigaOS /C/install, which installs bootblocks on floppy discs
3946# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3947# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3948# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3949# OS/2's system install, which has a completely different semantic
3950# ./install, which can be erroneously created by make from ./install.sh.
jfigusc7e66e32013-05-08 11:32:55 -04003951# Reject install programs that cannot install multiple files.
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3953$as_echo_n "checking for a BSD-compatible install... " >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00003954if test -z "$INSTALL"; then
jfigusc7e66e32013-05-08 11:32:55 -04003955if ${ac_cv_path_install+:} false; then :
3956 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003957else
David McGrewb67061f2005-09-28 14:23:06 +00003958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959for as_dir in $PATH
3960do
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04003963 # Account for people who put trailing slashes in PATH elements.
3964case $as_dir/ in #((
3965 ./ | .// | /[cC]/* | \
David McGrewb67061f2005-09-28 14:23:06 +00003966 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jfigusc7e66e32013-05-08 11:32:55 -04003967 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
David McGrewb67061f2005-09-28 14:23:06 +00003968 /usr/ucb/* ) ;;
3969 *)
3970 # OSF1 and SCO ODT 3.0 have their own names for install.
3971 # Don't use installbsd from OSF since it installs stuff as root
3972 # by default.
3973 for ac_prog in ginstall scoinst install; do
3974 for ac_exec_ext in '' $ac_executable_extensions; do
jfigusc7e66e32013-05-08 11:32:55 -04003975 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
David McGrewb67061f2005-09-28 14:23:06 +00003976 if test $ac_prog = install &&
3977 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3978 # AIX install. It has an incompatible calling convention.
3979 :
3980 elif test $ac_prog = install &&
3981 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3982 # program-specific install script used by HP pwplus--don't use.
3983 :
3984 else
jfigusc7e66e32013-05-08 11:32:55 -04003985 rm -rf conftest.one conftest.two conftest.dir
3986 echo one > conftest.one
3987 echo two > conftest.two
3988 mkdir conftest.dir
3989 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3990 test -s conftest.one && test -s conftest.two &&
3991 test -s conftest.dir/conftest.one &&
3992 test -s conftest.dir/conftest.two
3993 then
3994 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3995 break 3
3996 fi
David McGrewb67061f2005-09-28 14:23:06 +00003997 fi
3998 fi
3999 done
4000 done
4001 ;;
4002esac
Cullen Jennings235513a2005-09-21 22:51:36 +00004003
jfigusc7e66e32013-05-08 11:32:55 -04004004 done
4005IFS=$as_save_IFS
4006
4007rm -rf conftest.one conftest.two conftest.dir
Cullen Jennings235513a2005-09-21 22:51:36 +00004008
4009fi
David McGrewb67061f2005-09-28 14:23:06 +00004010 if test "${ac_cv_path_install+set}" = set; then
4011 INSTALL=$ac_cv_path_install
4012 else
jfigusc7e66e32013-05-08 11:32:55 -04004013 # As a last resort, use the slow shell script. Don't cache a
4014 # value for INSTALL within a source directory, because that will
David McGrewb67061f2005-09-28 14:23:06 +00004015 # break other packages using the cache if that directory is
jfigusc7e66e32013-05-08 11:32:55 -04004016 # removed, or if the value is a relative name.
David McGrewb67061f2005-09-28 14:23:06 +00004017 INSTALL=$ac_install_sh
4018 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00004019fi
jfigusc7e66e32013-05-08 11:32:55 -04004020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4021$as_echo "$INSTALL" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004022
David McGrewb67061f2005-09-28 14:23:06 +00004023# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4024# It thinks the first close brace ends the variable substitution.
4025test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00004026
David McGrewb67061f2005-09-28 14:23:06 +00004027test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4028
4029test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00004030
Idar Tollefsen600ad962017-01-26 11:24:51 +01004031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4032$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4033if ${ac_cv_path_SED+:} false; then :
4034 $as_echo_n "(cached) " >&6
4035else
4036 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4037 for ac_i in 1 2 3 4 5 6 7; do
4038 ac_script="$ac_script$as_nl$ac_script"
4039 done
4040 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4041 { ac_script=; unset ac_script;}
4042 if test -z "$SED"; then
4043 ac_path_SED_found=false
4044 # Loop through the user's path and test for each of PROGNAME-LIST
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH
4047do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_prog in sed gsed; do
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4053 as_fn_executable_p "$ac_path_SED" || continue
4054# Check for GNU ac_path_SED and select it if it is found.
4055 # Check for GNU $ac_path_SED
4056case `"$ac_path_SED" --version 2>&1` in
4057*GNU*)
4058 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4059*)
4060 ac_count=0
4061 $as_echo_n 0123456789 >"conftest.in"
4062 while :
4063 do
4064 cat "conftest.in" "conftest.in" >"conftest.tmp"
4065 mv "conftest.tmp" "conftest.in"
4066 cp "conftest.in" "conftest.nl"
4067 $as_echo '' >> "conftest.nl"
4068 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4069 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4070 as_fn_arith $ac_count + 1 && ac_count=$as_val
4071 if test $ac_count -gt ${ac_path_SED_max-0}; then
4072 # Best one so far, save it but keep looking for a better one
4073 ac_cv_path_SED="$ac_path_SED"
4074 ac_path_SED_max=$ac_count
4075 fi
4076 # 10*(2^10) chars as input seems more than enough
4077 test $ac_count -gt 10 && break
4078 done
4079 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4080esac
4081
4082 $ac_path_SED_found && break 3
4083 done
4084 done
4085 done
4086IFS=$as_save_IFS
4087 if test -z "$ac_cv_path_SED"; then
4088 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4089 fi
4090else
4091 ac_cv_path_SED=$SED
4092fi
4093
4094fi
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4096$as_echo "$ac_cv_path_SED" >&6; }
4097 SED="$ac_cv_path_SED"
4098 rm -f conftest.sed
4099
Cullen Jennings235513a2005-09-21 22:51:36 +00004100
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004101ac_ext=c
4102ac_cpp='$CPP $CPPFLAGS'
4103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105ac_compiler_gnu=$ac_cv_c_compiler_gnu
jfigusc7e66e32013-05-08 11:32:55 -04004106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4107$as_echo_n "checking how to run the C preprocessor... " >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004108# On Suns, sometimes $CPP names a directory.
4109if test -n "$CPP" && test -d "$CPP"; then
4110 CPP=
4111fi
4112if test -z "$CPP"; then
jfigusc7e66e32013-05-08 11:32:55 -04004113 if ${ac_cv_prog_CPP+:} false; then :
4114 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004115else
4116 # Double quotes because CPP needs to be expanded
4117 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4118 do
4119 ac_preproc_ok=false
4120for ac_c_preproc_warn_flag in '' yes
4121do
4122 # Use a header file that comes with gcc, so configuring glibc
4123 # with a fresh cross-compiler works.
4124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4125 # <limits.h> exists even on freestanding compilers.
4126 # On the NeXT, cc -E runs the code through the compiler's parser,
4127 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04004128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004129/* end confdefs.h. */
4130#ifdef __STDC__
4131# include <limits.h>
4132#else
4133# include <assert.h>
4134#endif
4135 Syntax error
4136_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004137if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004138
jfigusc7e66e32013-05-08 11:32:55 -04004139else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004140 # Broken: fails on valid input.
4141continue
4142fi
jfigusc7e66e32013-05-08 11:32:55 -04004143rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004144
jfigusc7e66e32013-05-08 11:32:55 -04004145 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004146 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04004147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004148/* end confdefs.h. */
4149#include <ac_nonexistent.h>
4150_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004151if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004152 # Broken: success on invalid input.
4153continue
4154else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004155 # Passes both tests.
4156ac_preproc_ok=:
4157break
4158fi
jfigusc7e66e32013-05-08 11:32:55 -04004159rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004160
4161done
4162# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04004163rm -f conftest.i conftest.err conftest.$ac_ext
4164if $ac_preproc_ok; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004165 break
4166fi
4167
4168 done
4169 ac_cv_prog_CPP=$CPP
4170
4171fi
4172 CPP=$ac_cv_prog_CPP
4173else
4174 ac_cv_prog_CPP=$CPP
4175fi
jfigusc7e66e32013-05-08 11:32:55 -04004176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4177$as_echo "$CPP" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004178ac_preproc_ok=false
4179for ac_c_preproc_warn_flag in '' yes
4180do
4181 # Use a header file that comes with gcc, so configuring glibc
4182 # with a fresh cross-compiler works.
4183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4184 # <limits.h> exists even on freestanding compilers.
4185 # On the NeXT, cc -E runs the code through the compiler's parser,
4186 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04004187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004188/* end confdefs.h. */
4189#ifdef __STDC__
4190# include <limits.h>
4191#else
4192# include <assert.h>
4193#endif
4194 Syntax error
4195_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004196if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004197
jfigusc7e66e32013-05-08 11:32:55 -04004198else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004199 # Broken: fails on valid input.
4200continue
4201fi
jfigusc7e66e32013-05-08 11:32:55 -04004202rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004203
jfigusc7e66e32013-05-08 11:32:55 -04004204 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004205 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04004206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004207/* end confdefs.h. */
4208#include <ac_nonexistent.h>
4209_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004210if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004211 # Broken: success on invalid input.
4212continue
4213else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004214 # Passes both tests.
4215ac_preproc_ok=:
4216break
4217fi
jfigusc7e66e32013-05-08 11:32:55 -04004218rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004219
4220done
4221# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04004222rm -f conftest.i conftest.err conftest.$ac_ext
4223if $ac_preproc_ok; then :
4224
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004225else
jfigusc7e66e32013-05-08 11:32:55 -04004226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4228as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4229See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004230fi
4231
4232ac_ext=c
4233ac_cpp='$CPP $CPPFLAGS'
4234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237
4238
jfigusc7e66e32013-05-08 11:32:55 -04004239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4240$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4241if ${ac_cv_path_GREP+:} false; then :
4242 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004243else
jfigusc7e66e32013-05-08 11:32:55 -04004244 if test -z "$GREP"; then
4245 ac_path_GREP_found=false
4246 # Loop through the user's path and test for each of PROGNAME-LIST
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4249do
4250 IFS=$as_save_IFS
4251 test -z "$as_dir" && as_dir=.
4252 for ac_prog in grep ggrep; do
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4255 as_fn_executable_p "$ac_path_GREP" || continue
4256# Check for GNU ac_path_GREP and select it if it is found.
4257 # Check for GNU $ac_path_GREP
4258case `"$ac_path_GREP" --version 2>&1` in
4259*GNU*)
4260 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4261*)
4262 ac_count=0
4263 $as_echo_n 0123456789 >"conftest.in"
4264 while :
4265 do
4266 cat "conftest.in" "conftest.in" >"conftest.tmp"
4267 mv "conftest.tmp" "conftest.in"
4268 cp "conftest.in" "conftest.nl"
4269 $as_echo 'GREP' >> "conftest.nl"
4270 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4272 as_fn_arith $ac_count + 1 && ac_count=$as_val
4273 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4274 # Best one so far, save it but keep looking for a better one
4275 ac_cv_path_GREP="$ac_path_GREP"
4276 ac_path_GREP_max=$ac_count
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004277 fi
jfigusc7e66e32013-05-08 11:32:55 -04004278 # 10*(2^10) chars as input seems more than enough
4279 test $ac_count -gt 10 && break
4280 done
4281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4282esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004283
jfigusc7e66e32013-05-08 11:32:55 -04004284 $ac_path_GREP_found && break 3
4285 done
4286 done
4287 done
4288IFS=$as_save_IFS
4289 if test -z "$ac_cv_path_GREP"; then
4290 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4291 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004292else
jfigusc7e66e32013-05-08 11:32:55 -04004293 ac_cv_path_GREP=$GREP
4294fi
4295
4296fi
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4298$as_echo "$ac_cv_path_GREP" >&6; }
4299 GREP="$ac_cv_path_GREP"
4300
4301
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4303$as_echo_n "checking for egrep... " >&6; }
4304if ${ac_cv_path_EGREP+:} false; then :
4305 $as_echo_n "(cached) " >&6
4306else
4307 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4308 then ac_cv_path_EGREP="$GREP -E"
4309 else
4310 if test -z "$EGREP"; then
4311 ac_path_EGREP_found=false
4312 # Loop through the user's path and test for each of PROGNAME-LIST
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4315do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_prog in egrep; do
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4321 as_fn_executable_p "$ac_path_EGREP" || continue
4322# Check for GNU ac_path_EGREP and select it if it is found.
4323 # Check for GNU $ac_path_EGREP
4324case `"$ac_path_EGREP" --version 2>&1` in
4325*GNU*)
4326 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4327*)
4328 ac_count=0
4329 $as_echo_n 0123456789 >"conftest.in"
4330 while :
4331 do
4332 cat "conftest.in" "conftest.in" >"conftest.tmp"
4333 mv "conftest.tmp" "conftest.in"
4334 cp "conftest.in" "conftest.nl"
4335 $as_echo 'EGREP' >> "conftest.nl"
4336 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4337 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4338 as_fn_arith $ac_count + 1 && ac_count=$as_val
4339 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4340 # Best one so far, save it but keep looking for a better one
4341 ac_cv_path_EGREP="$ac_path_EGREP"
4342 ac_path_EGREP_max=$ac_count
4343 fi
4344 # 10*(2^10) chars as input seems more than enough
4345 test $ac_count -gt 10 && break
4346 done
4347 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4348esac
4349
4350 $ac_path_EGREP_found && break 3
4351 done
4352 done
4353 done
4354IFS=$as_save_IFS
4355 if test -z "$ac_cv_path_EGREP"; then
4356 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4357 fi
4358else
4359 ac_cv_path_EGREP=$EGREP
4360fi
4361
4362 fi
4363fi
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4365$as_echo "$ac_cv_path_EGREP" >&6; }
4366 EGREP="$ac_cv_path_EGREP"
4367
4368
4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4370$as_echo_n "checking for ANSI C header files... " >&6; }
4371if ${ac_cv_header_stdc+:} false; then :
4372 $as_echo_n "(cached) " >&6
4373else
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004375/* end confdefs.h. */
4376#include <stdlib.h>
4377#include <stdarg.h>
4378#include <string.h>
4379#include <float.h>
4380
4381int
4382main ()
4383{
4384
4385 ;
4386 return 0;
4387}
4388_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004389if ac_fn_c_try_compile "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04004390 ac_cv_header_stdc=yes
4391else
jfigusc7e66e32013-05-08 11:32:55 -04004392 ac_cv_header_stdc=no
jfigusa14b5a02013-03-29 12:24:12 -04004393fi
jfigusc7e66e32013-05-08 11:32:55 -04004394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004395
4396if test $ac_cv_header_stdc = yes; then
4397 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04004398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004399/* end confdefs.h. */
4400#include <string.h>
4401
4402_ACEOF
4403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04004404 $EGREP "memchr" >/dev/null 2>&1; then :
4405
jfigusa14b5a02013-03-29 12:24:12 -04004406else
4407 ac_cv_header_stdc=no
4408fi
4409rm -f conftest*
4410
4411fi
4412
4413if test $ac_cv_header_stdc = yes; then
4414 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04004415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004416/* end confdefs.h. */
4417#include <stdlib.h>
4418
4419_ACEOF
4420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04004421 $EGREP "free" >/dev/null 2>&1; then :
4422
jfigusa14b5a02013-03-29 12:24:12 -04004423else
4424 ac_cv_header_stdc=no
4425fi
4426rm -f conftest*
4427
4428fi
4429
4430if test $ac_cv_header_stdc = yes; then
4431 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jfigusc7e66e32013-05-08 11:32:55 -04004432 if test "$cross_compiling" = yes; then :
jfigusa14b5a02013-03-29 12:24:12 -04004433 :
4434else
jfigusc7e66e32013-05-08 11:32:55 -04004435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004436/* end confdefs.h. */
4437#include <ctype.h>
jfigusc7e66e32013-05-08 11:32:55 -04004438#include <stdlib.h>
jfigusa14b5a02013-03-29 12:24:12 -04004439#if ((' ' & 0x0FF) == 0x020)
4440# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4441# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4442#else
4443# define ISLOWER(c) \
4444 (('a' <= (c) && (c) <= 'i') \
4445 || ('j' <= (c) && (c) <= 'r') \
4446 || ('s' <= (c) && (c) <= 'z'))
4447# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4448#endif
4449
4450#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4451int
4452main ()
4453{
4454 int i;
4455 for (i = 0; i < 256; i++)
4456 if (XOR (islower (i), ISLOWER (i))
4457 || toupper (i) != TOUPPER (i))
jfigusc7e66e32013-05-08 11:32:55 -04004458 return 2;
4459 return 0;
jfigusa14b5a02013-03-29 12:24:12 -04004460}
4461_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004462if ac_fn_c_try_run "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04004463
jfigusc7e66e32013-05-08 11:32:55 -04004464else
4465 ac_cv_header_stdc=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004466fi
jfigusc7e66e32013-05-08 11:32:55 -04004467rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4468 conftest.$ac_objext conftest.beam conftest.$ac_ext
4469fi
4470
jfigusa14b5a02013-03-29 12:24:12 -04004471fi
4472fi
jfigusc7e66e32013-05-08 11:32:55 -04004473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4474$as_echo "$ac_cv_header_stdc" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04004475if test $ac_cv_header_stdc = yes; then
4476
jfigusc7e66e32013-05-08 11:32:55 -04004477$as_echo "#define STDC_HEADERS 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04004478
4479fi
4480
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004481# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004482for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4483 inttypes.h stdint.h unistd.h
jfigusc7e66e32013-05-08 11:32:55 -04004484do :
4485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4486ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4487"
4488if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004489 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004490#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004491_ACEOF
4492
4493fi
4494
4495done
4496
4497
jfigusc7e66e32013-05-08 11:32:55 -04004498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4499$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4500if ${ac_cv_c_bigendian+:} false; then :
4501 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004502else
jfigusc7e66e32013-05-08 11:32:55 -04004503 ac_cv_c_bigendian=unknown
4504 # See if we're dealing with a universal compiler.
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004506/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004507#ifndef __APPLE_CC__
4508 not a universal capable compiler
4509 #endif
4510 typedef int dummy;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004511
jfigusc7e66e32013-05-08 11:32:55 -04004512_ACEOF
4513if ac_fn_c_try_compile "$LINENO"; then :
4514
4515 # Check for potential -arch flags. It is not universal unless
4516 # there are at least two -arch flags with different values.
4517 ac_arch=
4518 ac_prev=
4519 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4520 if test -n "$ac_prev"; then
4521 case $ac_word in
4522 i?86 | x86_64 | ppc | ppc64)
4523 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4524 ac_arch=$ac_word
4525 else
4526 ac_cv_c_bigendian=universal
4527 break
4528 fi
4529 ;;
4530 esac
4531 ac_prev=
4532 elif test "x$ac_word" = "x-arch"; then
4533 ac_prev=arch
4534 fi
4535 done
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004536fi
jfigusc7e66e32013-05-08 11:32:55 -04004537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 if test $ac_cv_c_bigendian = unknown; then
4539 # See if sys/param.h defines the BYTE_ORDER macro.
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004541/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004542#include <sys/types.h>
4543 #include <sys/param.h>
4544
4545int
4546main ()
4547{
4548#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4549 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4550 && LITTLE_ENDIAN)
4551 bogus endian macros
4552 #endif
4553
4554 ;
4555 return 0;
4556}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004557_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004558if ac_fn_c_try_compile "$LINENO"; then :
4559 # It does; now see whether it defined to BIG_ENDIAN or not.
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004561/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004562#include <sys/types.h>
4563 #include <sys/param.h>
4564
4565int
4566main ()
4567{
4568#if BYTE_ORDER != BIG_ENDIAN
4569 not big endian
4570 #endif
4571
4572 ;
4573 return 0;
4574}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004575_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004576if ac_fn_c_try_compile "$LINENO"; then :
4577 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004578else
jfigusc7e66e32013-05-08 11:32:55 -04004579 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004580fi
jfigusc7e66e32013-05-08 11:32:55 -04004581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4582fi
4583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584 fi
4585 if test $ac_cv_c_bigendian = unknown; then
4586 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004588/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004589#include <limits.h>
4590
4591int
4592main ()
4593{
4594#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4595 bogus endian macros
4596 #endif
4597
4598 ;
4599 return 0;
4600}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004601_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004602if ac_fn_c_try_compile "$LINENO"; then :
4603 # It does; now see whether it defined to _BIG_ENDIAN or not.
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004605/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004606#include <limits.h>
4607
4608int
4609main ()
4610{
4611#ifndef _BIG_ENDIAN
4612 not big endian
4613 #endif
4614
4615 ;
4616 return 0;
4617}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004618_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004619if ac_fn_c_try_compile "$LINENO"; then :
4620 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004621else
jfigusc7e66e32013-05-08 11:32:55 -04004622 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004623fi
jfigusc7e66e32013-05-08 11:32:55 -04004624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625fi
4626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 fi
4628 if test $ac_cv_c_bigendian = unknown; then
4629 # Compile a test program.
4630 if test "$cross_compiling" = yes; then :
4631 # Try to guess by grepping values from an object file.
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004633/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004634short int ascii_mm[] =
4635 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4636 short int ascii_ii[] =
4637 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4638 int use_ascii (int i) {
4639 return ascii_mm[i] + ascii_ii[i];
4640 }
4641 short int ebcdic_ii[] =
4642 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4643 short int ebcdic_mm[] =
4644 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4645 int use_ebcdic (int i) {
4646 return ebcdic_mm[i] + ebcdic_ii[i];
4647 }
4648 extern int foo;
4649
4650int
4651main ()
4652{
4653return use_ascii (foo) == use_ebcdic (foo);
4654 ;
4655 return 0;
4656}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004657_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004658if ac_fn_c_try_compile "$LINENO"; then :
4659 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4660 ac_cv_c_bigendian=yes
4661 fi
4662 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4663 if test "$ac_cv_c_bigendian" = unknown; then
4664 ac_cv_c_bigendian=no
4665 else
4666 # finding both strings is unlikely to happen, but who knows?
4667 ac_cv_c_bigendian=unknown
4668 fi
4669 fi
4670fi
4671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004672else
jfigusc7e66e32013-05-08 11:32:55 -04004673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004674/* end confdefs.h. */
4675$ac_includes_default
4676int
4677main ()
4678{
jfigusc7e66e32013-05-08 11:32:55 -04004679
4680 /* Are we little or big endian? From Harbison&Steele. */
4681 union
4682 {
4683 long int l;
4684 char c[sizeof (long int)];
4685 } u;
4686 u.l = 1;
4687 return u.c[sizeof (long int) - 1] == 1;
4688
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004689 ;
4690 return 0;
4691}
4692_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004693if ac_fn_c_try_run "$LINENO"; then :
4694 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004695else
jfigusc7e66e32013-05-08 11:32:55 -04004696 ac_cv_c_bigendian=yes
4697fi
4698rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4699 conftest.$ac_objext conftest.beam conftest.$ac_ext
4700fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004701
jfigusc7e66e32013-05-08 11:32:55 -04004702 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004703fi
jfigusc7e66e32013-05-08 11:32:55 -04004704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4705$as_echo "$ac_cv_c_bigendian" >&6; }
4706 case $ac_cv_c_bigendian in #(
4707 yes)
4708 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4709;; #(
4710 no)
4711 ;; #(
4712 universal)
4713
4714$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4715
4716 ;; #(
4717 *)
4718 as_fn_error $? "unknown endianness
4719 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4720 esac
4721
4722
4723# Make sure we can run config.sub.
4724$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4725 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4726
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4728$as_echo_n "checking build system type... " >&6; }
4729if ${ac_cv_build+:} false; then :
4730 $as_echo_n "(cached) " >&6
4731else
4732 ac_build_alias=$build_alias
4733test "x$ac_build_alias" = x &&
4734 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4735test "x$ac_build_alias" = x &&
4736 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4737ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4738 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4739
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004740fi
jfigusc7e66e32013-05-08 11:32:55 -04004741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4742$as_echo "$ac_cv_build" >&6; }
4743case $ac_cv_build in
4744*-*-*) ;;
4745*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4746esac
4747build=$ac_cv_build
4748ac_save_IFS=$IFS; IFS='-'
4749set x $ac_cv_build
4750shift
4751build_cpu=$1
4752build_vendor=$2
4753shift; shift
4754# Remember, the first character of IFS is used to create $*,
4755# except with old shells:
4756build_os=$*
4757IFS=$ac_save_IFS
4758case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4759
4760
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4762$as_echo_n "checking host system type... " >&6; }
4763if ${ac_cv_host+:} false; then :
4764 $as_echo_n "(cached) " >&6
4765else
4766 if test "x$host_alias" = x; then
4767 ac_cv_host=$ac_cv_build
4768else
4769 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4770 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4771fi
4772
4773fi
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4775$as_echo "$ac_cv_host" >&6; }
4776case $ac_cv_host in
4777*-*-*) ;;
4778*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4779esac
4780host=$ac_cv_host
4781ac_save_IFS=$IFS; IFS='-'
4782set x $ac_cv_host
4783shift
4784host_cpu=$1
4785host_vendor=$2
4786shift; shift
4787# Remember, the first character of IFS is used to create $*,
4788# except with old shells:
4789host_os=$*
4790IFS=$ac_save_IFS
4791case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4792
4793
4794
4795case $host_cpu in
Idar Tollefsen600ad962017-01-26 11:24:51 +01004796 i*86 | x86_64 )
jfigusc7e66e32013-05-08 11:32:55 -04004797
4798$as_echo "#define CPU_CISC 1" >>confdefs.h
4799
4800
4801$as_echo "#define HAVE_X86 1" >>confdefs.h
Idar Tollefsen600ad962017-01-26 11:24:51 +01004802
4803 ;;
4804 * )
jfigusc7e66e32013-05-08 11:32:55 -04004805
4806$as_echo "#define CPU_RISC 1" >>confdefs.h
jfigusfb838412014-12-04 10:15:47 -05004807
Idar Tollefsen600ad962017-01-26 11:24:51 +01004808 ;;
jfigusc7e66e32013-05-08 11:32:55 -04004809esac
4810
4811case $host_os in
Idar Tollefsen600ad962017-01-26 11:24:51 +01004812 *cygwin*|*mingw* )
4813 EXE=.exe
4814 ;;
4815 * )
4816 EXE=""
4817 ;;
jfigusc7e66e32013-05-08 11:32:55 -04004818esac
4819 # define executable suffix; this is needed for `make clean'
4820
Idar Tollefsen600ad962017-01-26 11:24:51 +01004821supported_cflags=""
4822if test "$EMPTY_CFLAGS" = "no"; then
4823 supported_cflags="$CFLAGS"
4824fi
4825
4826WERROR=""
4827for w in -Werror -errwarn; do
4828 if test "x$WERROR" = "x"; then
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $w" >&5
4830$as_echo_n "checking whether the compiler supports $w... " >&6; }
4831 save_cflags="$CFLAGS"
4832 if test "x$CFLAGS" = "x"; then :
4833 CFLAGS="$w"
4834else
4835 CFLAGS="$CFLAGS $w"
4836fi
4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838/* end confdefs.h. */
4839
4840int
4841main ()
4842{
4843
4844 ;
4845 return 0;
4846}
4847_ACEOF
4848if ac_fn_c_try_compile "$LINENO"; then :
4849 WERROR="$w"
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4851$as_echo "yes" >&6; }
4852else
4853 CFLAGS="$save_cflags"
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855$as_echo "no" >&6; }
4856fi
4857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4858 fi
4859done
4860
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC" >&5
4862$as_echo_n "checking whether the compiler supports -fPIC... " >&6; }
4863save_cflags="$CFLAGS"
4864if test "x$CFLAGS" = "x"; then :
4865 CFLAGS="-fPIC"
4866else
4867 CFLAGS="$CFLAGS -fPIC"
4868fi
4869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870/* end confdefs.h. */
4871
4872int
4873main ()
4874{
4875
4876 ;
4877 return 0;
4878}
4879_ACEOF
4880if ac_fn_c_try_compile "$LINENO"; then :
4881 if test "x$supported_cflags" = "x"; then :
4882 supported_cflags="-fPIC"
4883else
4884 supported_cflags="$supported_cflags -fPIC"
4885fi
4886 if test "x$LDFLAGS" = "x"; then :
4887 LDFLAGS="-fPIC"
4888else
4889 LDFLAGS="$LDFLAGS -fPIC"
4890fi
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4892$as_echo "yes" >&6; }
4893else
4894 CFLAGS="$save_cflags"
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896$as_echo "no" >&6; }
4897fi
4898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899
4900if test "$EMPTY_CFLAGS" = "yes"; then
4901 for f in -Wall -pedantic; do
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $f" >&5
4903$as_echo_n "checking whether the compiler supports $f... " >&6; }
4904 save_cflags="$CFLAGS"
4905 if test "x$CFLAGS" = "x"; then :
4906 CFLAGS="$f"
4907else
4908 CFLAGS="$CFLAGS $f"
4909fi
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911/* end confdefs.h. */
4912
4913int
4914main ()
4915{
4916
4917 ;
4918 return 0;
4919}
4920_ACEOF
4921if ac_fn_c_try_compile "$LINENO"; then :
4922 if test "x$supported_cflags" = "x"; then :
4923 supported_cflags="$f"
4924else
4925 supported_cflags="$supported_cflags $f"
4926fi
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4928$as_echo "yes" >&6; }
4929else
4930 CFLAGS="$save_cflags"
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932$as_echo "no" >&6; }
4933fi
4934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935 done
4936
4937 OOPT=""
4938 for f in -O4 -O3; do
4939 if test "x$OOPT" = "x"; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $f" >&5
4941$as_echo_n "checking whether the compiler supports $f... " >&6; }
4942 save_cflags="$CFLAGS"
4943 if test "x$CFLAGS" = "x"; then :
4944 CFLAGS="$f"
4945else
4946 CFLAGS="$CFLAGS $f"
4947fi
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949/* end confdefs.h. */
4950
4951int
4952main ()
4953{
4954
4955 ;
4956 return 0;
4957}
4958_ACEOF
4959if ac_fn_c_try_compile "$LINENO"; then :
4960 if test "x$supported_cflags" = "x"; then :
4961 supported_cflags="$f"
4962else
4963 supported_cflags="$supported_cflags $f"
4964fi
4965 OOPT="$f"
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4967$as_echo "yes" >&6; }
4968else
4969 CFLAGS="$save_cflags"
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971$as_echo "no" >&6; }
4972fi
4973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974 fi
4975 done
4976
4977 for f in -fexpensive-optimizations -funroll-loops; do
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $f" >&5
4979$as_echo_n "checking whether the compiler supports $f... " >&6; }
4980 save_cflags="$CFLAGS"
4981 if test "x$CFLAGS" = "x"; then :
4982 CFLAGS="$f"
4983else
4984 CFLAGS="$CFLAGS $f"
4985fi
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987/* end confdefs.h. */
4988
4989int
4990main ()
4991{
4992
4993 ;
4994 return 0;
4995}
4996_ACEOF
4997if ac_fn_c_try_compile "$LINENO"; then :
4998 if test "x$supported_cflags" = "x"; then :
4999 supported_cflags="$f"
5000else
5001 supported_cflags="$supported_cflags $f"
5002fi
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5004$as_echo "yes" >&6; }
5005else
5006 CFLAGS="$save_cflags"
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008$as_echo "no" >&6; }
5009fi
5010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011 done
5012fi
5013
5014for f in -Wno-language-extension-token; do
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $f" >&5
5016$as_echo_n "checking whether the compiler supports $f... " >&6; }
5017 save_cflags="$CFLAGS"
5018 testf=$(echo "$f" | $SED 's|-Wno-\(.*\)|-W\1|g')
5019 if test "x$CFLAGS" = "x"; then :
5020 CFLAGS="$testf"
5021else
5022 CFLAGS="$CFLAGS $testf"
5023fi
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025/* end confdefs.h. */
5026
5027int
5028main ()
5029{
5030
5031 ;
5032 return 0;
5033}
5034_ACEOF
5035if ac_fn_c_try_compile "$LINENO"; then :
5036 if test "x$supported_cflags" = "x"; then :
5037 supported_cflags="$f"
5038else
5039 supported_cflags="$supported_cflags $f"
5040fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5042$as_echo "yes" >&6; }
5043else
5044 CFLAGS="$save_cflags"
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046$as_echo "no" >&6; }
5047fi
5048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5049done
5050
5051CFLAGS="$supported_cflags"
jfigusc7e66e32013-05-08 11:32:55 -04005052
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5054$as_echo_n "checking for ANSI C header files... " >&6; }
5055if ${ac_cv_header_stdc+:} false; then :
5056 $as_echo_n "(cached) " >&6
5057else
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059/* end confdefs.h. */
5060#include <stdlib.h>
5061#include <stdarg.h>
5062#include <string.h>
5063#include <float.h>
5064
5065int
5066main ()
5067{
5068
5069 ;
5070 return 0;
5071}
5072_ACEOF
5073if ac_fn_c_try_compile "$LINENO"; then :
5074 ac_cv_header_stdc=yes
5075else
5076 ac_cv_header_stdc=no
5077fi
5078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5079
5080if test $ac_cv_header_stdc = yes; then
5081 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083/* end confdefs.h. */
5084#include <string.h>
5085
5086_ACEOF
5087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5088 $EGREP "memchr" >/dev/null 2>&1; then :
5089
5090else
5091 ac_cv_header_stdc=no
5092fi
5093rm -f conftest*
5094
5095fi
5096
5097if test $ac_cv_header_stdc = yes; then
5098 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100/* end confdefs.h. */
5101#include <stdlib.h>
5102
5103_ACEOF
5104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5105 $EGREP "free" >/dev/null 2>&1; then :
5106
5107else
5108 ac_cv_header_stdc=no
5109fi
5110rm -f conftest*
5111
5112fi
5113
5114if test $ac_cv_header_stdc = yes; then
5115 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5116 if test "$cross_compiling" = yes; then :
5117 :
5118else
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120/* end confdefs.h. */
5121#include <ctype.h>
5122#include <stdlib.h>
5123#if ((' ' & 0x0FF) == 0x020)
5124# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5125# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5126#else
5127# define ISLOWER(c) \
5128 (('a' <= (c) && (c) <= 'i') \
5129 || ('j' <= (c) && (c) <= 'r') \
5130 || ('s' <= (c) && (c) <= 'z'))
5131# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5132#endif
5133
5134#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5135int
5136main ()
5137{
5138 int i;
5139 for (i = 0; i < 256; i++)
5140 if (XOR (islower (i), ISLOWER (i))
5141 || toupper (i) != TOUPPER (i))
5142 return 2;
5143 return 0;
5144}
5145_ACEOF
5146if ac_fn_c_try_run "$LINENO"; then :
5147
5148else
5149 ac_cv_header_stdc=no
5150fi
5151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5152 conftest.$ac_objext conftest.beam conftest.$ac_ext
5153fi
5154
5155fi
5156fi
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5158$as_echo "$ac_cv_header_stdc" >&6; }
5159if test $ac_cv_header_stdc = yes; then
5160
5161$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5162
5163fi
5164
Idar Tollefsen600ad962017-01-26 11:24:51 +01005165for 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 -04005166do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01005167 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5168ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5169"
5170if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
jfigusc7e66e32013-05-08 11:32:55 -04005171 cat >>confdefs.h <<_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005172#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
jfigusc7e66e32013-05-08 11:32:55 -04005173_ACEOF
5174
5175fi
5176
5177done
5178
5179
5180for ac_header in sys/socket.h netinet/in.h arpa/inet.h
5181do :
5182 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005183ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5184"
jfigusc7e66e32013-05-08 11:32:55 -04005185if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5186 cat >>confdefs.h <<_ACEOF
5187#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5188_ACEOF
5189
5190fi
5191
5192done
5193
5194for ac_header in windows.h
5195do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01005196 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5197"
jfigusc7e66e32013-05-08 11:32:55 -04005198if test "x$ac_cv_header_windows_h" = xyes; then :
5199 cat >>confdefs.h <<_ACEOF
5200#define HAVE_WINDOWS_H 1
5201_ACEOF
5202 for ac_header in winsock2.h
5203do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01005204 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default
5205"
jfigusc7e66e32013-05-08 11:32:55 -04005206if test "x$ac_cv_header_winsock2_h" = xyes; then :
5207 cat >>confdefs.h <<_ACEOF
5208#define HAVE_WINSOCK2_H 1
5209_ACEOF
5210
5211fi
5212
5213done
5214
5215fi
5216
5217done
5218
5219
jfigusc7e66e32013-05-08 11:32:55 -04005220ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
5221if test "x$ac_cv_type_int8_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005222
David McGrewfec49dd2005-09-23 19:34:11 +00005223cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005224#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005225_ACEOF
5226
5227
5228fi
jfigusc7e66e32013-05-08 11:32:55 -04005229ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
5230if test "x$ac_cv_type_uint8_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005231
5232cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005233#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005234_ACEOF
5235
5236
5237fi
jfigusc7e66e32013-05-08 11:32:55 -04005238ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5239if test "x$ac_cv_type_int16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005240
5241cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005242#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005243_ACEOF
5244
5245
5246fi
jfigusc7e66e32013-05-08 11:32:55 -04005247ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5248if test "x$ac_cv_type_uint16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005249
5250cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005251#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005252_ACEOF
5253
5254
5255fi
jfigusc7e66e32013-05-08 11:32:55 -04005256ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5257if test "x$ac_cv_type_int32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005258
5259cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005260#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005261_ACEOF
5262
5263
5264fi
jfigusc7e66e32013-05-08 11:32:55 -04005265ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5266if test "x$ac_cv_type_uint32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005267
5268cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005269#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005270_ACEOF
5271
5272
5273fi
jfigusc7e66e32013-05-08 11:32:55 -04005274ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
5275if test "x$ac_cv_type_uint64_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005276
5277cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005278#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005279_ACEOF
5280
5281
5282fi
5283
jfigusc7e66e32013-05-08 11:32:55 -04005284# The cast to long int works around a bug in the HP C Compiler
5285# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5286# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5287# This bug is HP SR number 8606223364.
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
5289$as_echo_n "checking size of unsigned long... " >&6; }
5290if ${ac_cv_sizeof_unsigned_long+:} false; then :
5291 $as_echo_n "(cached) " >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005292else
jfigusc7e66e32013-05-08 11:32:55 -04005293 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 +00005294
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005295else
5296 if test "$ac_cv_type_unsigned_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04005297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5299as_fn_error 77 "cannot compute sizeof (unsigned long)
5300See \`config.log' for more details" "$LINENO" 5; }
5301 else
5302 ac_cv_sizeof_unsigned_long=0
5303 fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005304fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005305
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005306fi
jfigusc7e66e32013-05-08 11:32:55 -04005307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
5308$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005309
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005310
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005311
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005312cat >>confdefs.h <<_ACEOF
5313#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
5314_ACEOF
5315
David McGrewfec49dd2005-09-23 19:34:11 +00005316
jfigusc7e66e32013-05-08 11:32:55 -04005317# The cast to long int works around a bug in the HP C Compiler
5318# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5319# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5320# This bug is HP SR number 8606223364.
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
5322$as_echo_n "checking size of unsigned long long... " >&6; }
5323if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
5324 $as_echo_n "(cached) " >&6
David McGrewfec49dd2005-09-23 19:34:11 +00005325else
jfigusc7e66e32013-05-08 11:32:55 -04005326 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 +00005327
David McGrewfec49dd2005-09-23 19:34:11 +00005328else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005329 if test "$ac_cv_type_unsigned_long_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04005330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5332as_fn_error 77 "cannot compute sizeof (unsigned long long)
5333See \`config.log' for more details" "$LINENO" 5; }
5334 else
5335 ac_cv_sizeof_unsigned_long_long=0
5336 fi
David McGrewfec49dd2005-09-23 19:34:11 +00005337fi
5338
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005339fi
jfigusc7e66e32013-05-08 11:32:55 -04005340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
5341$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005342
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005343
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005344
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005345cat >>confdefs.h <<_ACEOF
5346#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00005347_ACEOF
5348
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005349
Cullen Jennings235513a2005-09-21 22:51:36 +00005350
jfigusc7e66e32013-05-08 11:32:55 -04005351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5352$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5353if ${ac_cv_c_const+:} false; then :
5354 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005355else
jfigusc7e66e32013-05-08 11:32:55 -04005356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005357/* end confdefs.h. */
5358
5359int
5360main ()
5361{
jfigusc7e66e32013-05-08 11:32:55 -04005362
Cullen Jennings235513a2005-09-21 22:51:36 +00005363#ifndef __cplusplus
jfigusc7e66e32013-05-08 11:32:55 -04005364 /* Ultrix mips cc rejects this sort of thing. */
Cullen Jennings235513a2005-09-21 22:51:36 +00005365 typedef int charset[2];
jfigusc7e66e32013-05-08 11:32:55 -04005366 const charset cs = { 0, 0 };
Cullen Jennings235513a2005-09-21 22:51:36 +00005367 /* SunOS 4.1.1 cc rejects this. */
jfigusc7e66e32013-05-08 11:32:55 -04005368 char const *const *pcpcc;
5369 char **ppc;
Cullen Jennings235513a2005-09-21 22:51:36 +00005370 /* NEC SVR4.0.2 mips cc rejects this. */
5371 struct point {int x, y;};
5372 static struct point const zero = {0,0};
5373 /* AIX XL C 1.02.0.0 rejects this.
5374 It does not let you subtract one const X* pointer from another in
5375 an arm of an if-expression whose if-part is not a constant
5376 expression */
5377 const char *g = "string";
jfigusc7e66e32013-05-08 11:32:55 -04005378 pcpcc = &g + (g ? g-g : 0);
Cullen Jennings235513a2005-09-21 22:51:36 +00005379 /* HPUX 7.0 cc rejects these. */
jfigusc7e66e32013-05-08 11:32:55 -04005380 ++pcpcc;
5381 ppc = (char**) pcpcc;
5382 pcpcc = (char const *const *) ppc;
5383 { /* SCO 3.2v4 cc rejects this sort of thing. */
5384 char tx;
5385 char *t = &tx;
Cullen Jennings235513a2005-09-21 22:51:36 +00005386 char const *s = 0 ? (char *) 0 : (char const *) 0;
5387
5388 *t++ = 0;
jfigusc7e66e32013-05-08 11:32:55 -04005389 if (s) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00005390 }
5391 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5392 int x[] = {25, 17};
5393 const int *foo = &x[0];
5394 ++foo;
5395 }
5396 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5397 typedef const int *iptr;
5398 iptr p = 0;
5399 ++p;
5400 }
jfigusc7e66e32013-05-08 11:32:55 -04005401 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Cullen Jennings235513a2005-09-21 22:51:36 +00005402 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
jfigusc7e66e32013-05-08 11:32:55 -04005403 struct s { int j; const int *ap[3]; } bx;
5404 struct s *b = &bx; b->j = 5;
Cullen Jennings235513a2005-09-21 22:51:36 +00005405 }
5406 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5407 const int foo = 10;
jfigusc7e66e32013-05-08 11:32:55 -04005408 if (!foo) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00005409 }
jfigusc7e66e32013-05-08 11:32:55 -04005410 return !cs[0] && !zero.x;
Cullen Jennings235513a2005-09-21 22:51:36 +00005411#endif
5412
5413 ;
5414 return 0;
5415}
5416_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005417if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005418 ac_cv_c_const=yes
5419else
jfigusc7e66e32013-05-08 11:32:55 -04005420 ac_cv_c_const=no
Cullen Jennings235513a2005-09-21 22:51:36 +00005421fi
jfigusc7e66e32013-05-08 11:32:55 -04005422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005423fi
jfigusc7e66e32013-05-08 11:32:55 -04005424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5425$as_echo "$ac_cv_c_const" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005426if test $ac_cv_c_const = no; then
5427
jfigusc7e66e32013-05-08 11:32:55 -04005428$as_echo "#define const /**/" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005429
5430fi
5431
jfigusc7e66e32013-05-08 11:32:55 -04005432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5433$as_echo_n "checking for inline... " >&6; }
5434if ${ac_cv_c_inline+:} false; then :
5435 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005436else
5437 ac_cv_c_inline=no
5438for ac_kw in inline __inline__ __inline; do
jfigusc7e66e32013-05-08 11:32:55 -04005439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005440/* end confdefs.h. */
5441#ifndef __cplusplus
5442typedef int foo_t;
5443static $ac_kw foo_t static_foo () {return 0; }
5444$ac_kw foo_t foo () {return 0; }
5445#endif
5446
5447_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005448if ac_fn_c_try_compile "$LINENO"; then :
5449 ac_cv_c_inline=$ac_kw
Cullen Jennings235513a2005-09-21 22:51:36 +00005450fi
jfigusc7e66e32013-05-08 11:32:55 -04005451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 test "$ac_cv_c_inline" != no && break
Cullen Jennings235513a2005-09-21 22:51:36 +00005453done
5454
5455fi
jfigusc7e66e32013-05-08 11:32:55 -04005456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5457$as_echo "$ac_cv_c_inline" >&6; }
David McGrewfec49dd2005-09-23 19:34:11 +00005458
Cullen Jennings235513a2005-09-21 22:51:36 +00005459case $ac_cv_c_inline in
5460 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00005461 *)
5462 case $ac_cv_c_inline in
5463 no) ac_val=;;
5464 *) ac_val=$ac_cv_c_inline;;
5465 esac
5466 cat >>confdefs.h <<_ACEOF
5467#ifndef __cplusplus
5468#define inline $ac_val
5469#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00005470_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00005471 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005472esac
5473
jfigusc7e66e32013-05-08 11:32:55 -04005474ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5475if test "x$ac_cv_type_size_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005476
Cullen Jennings235513a2005-09-21 22:51:36 +00005477else
5478
5479cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005480#define size_t unsigned int
Cullen Jennings235513a2005-09-21 22:51:36 +00005481_ACEOF
5482
5483fi
5484
5485
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00005486for ac_func in socket inet_aton usleep sigaction
jfigusc7e66e32013-05-08 11:32:55 -04005487do :
5488 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5489ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5490if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005491 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005492#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00005493_ACEOF
5494
5495fi
5496done
5497
5498
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005499if test "x$ac_cv_func_socket" = "xno"; then
jfigusc7e66e32013-05-08 11:32:55 -04005500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5501$as_echo_n "checking for socket in -lsocket... " >&6; }
5502if ${ac_cv_lib_socket_socket+:} false; then :
5503 $as_echo_n "(cached) " >&6
David McGrewb67061f2005-09-28 14:23:06 +00005504else
5505 ac_check_lib_save_LIBS=$LIBS
5506LIBS="-lsocket $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04005507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00005508/* end confdefs.h. */
5509
jfigusc7e66e32013-05-08 11:32:55 -04005510/* Override any GCC internal prototype to avoid an error.
5511 Use char because int might match the return type of a GCC
5512 builtin and then its argument prototype would still apply. */
David McGrewb67061f2005-09-28 14:23:06 +00005513#ifdef __cplusplus
5514extern "C"
5515#endif
David McGrewb67061f2005-09-28 14:23:06 +00005516char socket ();
5517int
5518main ()
5519{
jfigusc7e66e32013-05-08 11:32:55 -04005520return socket ();
David McGrewb67061f2005-09-28 14:23:06 +00005521 ;
5522 return 0;
5523}
5524_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005525if ac_fn_c_try_link "$LINENO"; then :
David McGrewb67061f2005-09-28 14:23:06 +00005526 ac_cv_lib_socket_socket=yes
5527else
jfigusc7e66e32013-05-08 11:32:55 -04005528 ac_cv_lib_socket_socket=no
David McGrewb67061f2005-09-28 14:23:06 +00005529fi
jfigusc7e66e32013-05-08 11:32:55 -04005530rm -f core conftest.err conftest.$ac_objext \
5531 conftest$ac_exeext conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00005532LIBS=$ac_check_lib_save_LIBS
5533fi
jfigusc7e66e32013-05-08 11:32:55 -04005534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5535$as_echo "$ac_cv_lib_socket_socket" >&6; }
5536if test "x$ac_cv_lib_socket_socket" = xyes; then :
David McGrewb67061f2005-09-28 14:23:06 +00005537 cat >>confdefs.h <<_ACEOF
5538#define HAVE_LIBSOCKET 1
5539_ACEOF
5540
5541 LIBS="-lsocket $LIBS"
5542
5543fi
5544
jfigusc7e66e32013-05-08 11:32:55 -04005545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
5546$as_echo_n "checking for socket in -lwsock32... " >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005547 SAVELIBS="$LIBS"
5548 LIBS="$LIBS -lwsock32"
jfigusc7e66e32013-05-08 11:32:55 -04005549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005550/* end confdefs.h. */
5551
5552#include <winsock2.h>
5553
5554int
5555main ()
5556{
5557
5558socket(0, 0, 0);
5559
5560 ;
5561 return 0;
5562}
5563_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005564if ac_fn_c_try_link "$LINENO"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005565 ac_cv_func_socket=yes
jfigusc7e66e32013-05-08 11:32:55 -04005566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5567$as_echo "yes" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005568else
jfigusc7e66e32013-05-08 11:32:55 -04005569 LIBS="$SAVELIBS"
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571$as_echo "no" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005572fi
jfigusc7e66e32013-05-08 11:32:55 -04005573rm -f core conftest.err conftest.$ac_objext \
5574 conftest$ac_exeext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005575fi
David McGrewb67061f2005-09-28 14:23:06 +00005576
jfigusc7e66e32013-05-08 11:32:55 -04005577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debugging" >&5
5578$as_echo_n "checking whether to compile in debugging... " >&6; }
5579# Check whether --enable-debug was given.
5580if test "${enable_debug+set}" = set; then :
5581 enableval=$enable_debug;
David McGrewb67061f2005-09-28 14:23:06 +00005582else
5583 enable_debug=yes
jfigusc7e66e32013-05-08 11:32:55 -04005584fi
5585
David McGrewb67061f2005-09-28 14:23:06 +00005586if test "$enable_debug" = "yes"; then
5587
jfigusc7e66e32013-05-08 11:32:55 -04005588$as_echo "#define ENABLE_DEBUGGING 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005589
5590fi
jfigusc7e66e32013-05-08 11:32:55 -04005591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
5592$as_echo "$enable_debug" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005593
jfigusc7e66e32013-05-08 11:32:55 -04005594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ISMAcryp code" >&5
5595$as_echo_n "checking whether to use ISMAcryp code... " >&6; }
5596# Check whether --enable-generic-aesicm was given.
5597if test "${enable_generic_aesicm+set}" = set; then :
5598 enableval=$enable_generic_aesicm;
David McGrewb67061f2005-09-28 14:23:06 +00005599else
5600 enable_generic_aesicm=no
jfigusc7e66e32013-05-08 11:32:55 -04005601fi
5602
David McGrewb67061f2005-09-28 14:23:06 +00005603if test "$enable_generic_aesicm" = "yes"; then
5604
jfigusc7e66e32013-05-08 11:32:55 -04005605$as_echo "#define GENERIC_AESICM 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04005606
jfigusa14b5a02013-03-29 12:24:12 -04005607fi
jfigusc7e66e32013-05-08 11:32:55 -04005608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generic_aesicm" >&5
5609$as_echo "$enable_generic_aesicm" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04005610
Idar Tollefsen600ad962017-01-26 11:24:51 +01005611
5612
5613
5614
5615
5616
5617
5618if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5619 if test -n "$ac_tool_prefix"; then
5620 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5621set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623$as_echo_n "checking for $ac_word... " >&6; }
5624if ${ac_cv_path_PKG_CONFIG+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626else
5627 case $PKG_CONFIG in
5628 [\\/]* | ?:[\\/]*)
5629 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5630 ;;
5631 *)
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633for as_dir in $PATH
5634do
5635 IFS=$as_save_IFS
5636 test -z "$as_dir" && as_dir=.
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5639 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 break 2
5642 fi
5643done
5644 done
5645IFS=$as_save_IFS
5646
5647 ;;
5648esac
5649fi
5650PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5651if test -n "$PKG_CONFIG"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5653$as_echo "$PKG_CONFIG" >&6; }
5654else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656$as_echo "no" >&6; }
5657fi
5658
5659
5660fi
5661if test -z "$ac_cv_path_PKG_CONFIG"; then
5662 ac_pt_PKG_CONFIG=$PKG_CONFIG
5663 # Extract the first word of "pkg-config", so it can be a program name with args.
5664set dummy pkg-config; ac_word=$2
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666$as_echo_n "checking for $ac_word... " >&6; }
5667if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669else
5670 case $ac_pt_PKG_CONFIG in
5671 [\\/]* | ?:[\\/]*)
5672 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5673 ;;
5674 *)
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676for as_dir in $PATH
5677do
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5682 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 break 2
5685 fi
5686done
5687 done
5688IFS=$as_save_IFS
5689
5690 ;;
5691esac
5692fi
5693ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5694if test -n "$ac_pt_PKG_CONFIG"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5696$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5697else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699$as_echo "no" >&6; }
5700fi
5701
5702 if test "x$ac_pt_PKG_CONFIG" = x; then
5703 PKG_CONFIG=""
5704 else
5705 case $cross_compiling:$ac_tool_warned in
5706yes:)
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5709ac_tool_warned=yes ;;
5710esac
5711 PKG_CONFIG=$ac_pt_PKG_CONFIG
5712 fi
5713else
5714 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5715fi
5716
5717fi
5718if test -n "$PKG_CONFIG"; then
5719 _pkg_min_version=0.29
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5721$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5722 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5724$as_echo "yes" >&6; }
5725 else
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727$as_echo "no" >&6; }
5728 PKG_CONFIG=""
5729 fi
5730fi
5731
jfigusc7e66e32013-05-08 11:32:55 -04005732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
5733$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
5734# Check whether --enable-openssl was given.
5735if test "${enable_openssl+set}" = set; then :
5736 enableval=$enable_openssl;
5737else
5738 enable_openssl=no
5739fi
jfigusa14b5a02013-03-29 12:24:12 -04005740
jfigus2b486652014-07-24 15:01:41 -04005741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
5742$as_echo "$enable_openssl" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04005743if test "$enable_openssl" = "yes"; then
jfigus038d2cf2015-05-11 14:10:11 -04005744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user specified OpenSSL directory" >&5
5745$as_echo_n "checking for user specified OpenSSL directory... " >&6; }
5746
5747# Check whether --with-openssl-dir was given.
5748if test "${with_openssl_dir+set}" = set; then :
Idar Tollefsen600ad962017-01-26 11:24:51 +01005749 withval=$with_openssl_dir; if test "x$PKG_CONFIG" != "x" && test -f $with_openssl_dir/lib/pkgconfig/libcrypto.pc; then
5750 if test "x$PKG_CONFIG_PATH" = "x"; then
5751 export PKG_CONFIG_PATH="$with_openssl_dir/lib/pkgconfig"
5752 else
5753 export PKG_CONFIG_PATH="$with_openssl_dir/lib/pkgconfig:$PKG_CONFIG_PATH"
5754 fi
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl_dir" >&5
5756$as_echo "$with_openssl_dir" >&6; }
5757 elif test -d $with_openssl_dir/lib; then
5758 CFLAGS="$CFLAGS -I$with_openssl_dir/include"
5759 if test "x$LDFLAGS" = "x"; then
5760 LDFLAGS="-L$with_openssl_dir/lib"
5761 else
5762 LDFLAGS="$LDFLAGS -L$with_openssl_dir/lib"
5763 fi
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl_dir" >&5
5765$as_echo "$with_openssl_dir" >&6; }
5766 else
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
5768$as_echo "invalid" >&6; }
5769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5771as_fn_error $? "Invalid OpenSSL location: $with_openssl_dir
5772See \`config.log' for more details" "$LINENO" 5; }
5773 fi
jfigus038d2cf2015-05-11 14:10:11 -04005774else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776$as_echo "no" >&6; }
jfigus038d2cf2015-05-11 14:10:11 -04005777fi
5778
5779
Idar Tollefsen600ad962017-01-26 11:24:51 +01005780 if test "x$PKG_CONFIG" != "x"; then
5781 _save_PKG_CONFIG=$PKG_CONFIG
5782PKG_CONFIG="$PKG_CONFIG --static"
Cullen Jenningse1de50f2013-05-22 12:27:28 -06005783
Idar Tollefsen600ad962017-01-26 11:24:51 +01005784pkg_failed=no
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
5786$as_echo_n "checking for crypto... " >&6; }
5787
5788if test -n "$crypto_CFLAGS"; then
5789 pkg_cv_crypto_CFLAGS="$crypto_CFLAGS"
5790 elif test -n "$PKG_CONFIG"; then
5791 if test -n "$PKG_CONFIG" && \
5792 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto > 1.0.1\""; } >&5
5793 ($PKG_CONFIG --exists --print-errors "libcrypto > 1.0.1") 2>&5
5794 ac_status=$?
5795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5796 test $ac_status = 0; }; then
5797 pkg_cv_crypto_CFLAGS=`$PKG_CONFIG --cflags "libcrypto > 1.0.1" 2>/dev/null`
5798 test "x$?" != "x0" && pkg_failed=yes
5799else
5800 pkg_failed=yes
5801fi
5802 else
5803 pkg_failed=untried
5804fi
5805if test -n "$crypto_LIBS"; then
5806 pkg_cv_crypto_LIBS="$crypto_LIBS"
5807 elif test -n "$PKG_CONFIG"; then
5808 if test -n "$PKG_CONFIG" && \
5809 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto > 1.0.1\""; } >&5
5810 ($PKG_CONFIG --exists --print-errors "libcrypto > 1.0.1") 2>&5
5811 ac_status=$?
5812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5813 test $ac_status = 0; }; then
5814 pkg_cv_crypto_LIBS=`$PKG_CONFIG --libs "libcrypto > 1.0.1" 2>/dev/null`
5815 test "x$?" != "x0" && pkg_failed=yes
5816else
5817 pkg_failed=yes
5818fi
5819 else
5820 pkg_failed=untried
5821fi
5822
5823
5824
5825if test $pkg_failed = yes; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827$as_echo "no" >&6; }
5828
5829if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5830 _pkg_short_errors_supported=yes
5831else
5832 _pkg_short_errors_supported=no
5833fi
5834 if test $_pkg_short_errors_supported = yes; then
5835 crypto_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto > 1.0.1" 2>&1`
5836 else
5837 crypto_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto > 1.0.1" 2>&1`
5838 fi
5839 # Put the nasty error message in config.log where it belongs
5840 echo "$crypto_PKG_ERRORS" >&5
5841
5842 as_fn_error $? "Package requirements (libcrypto > 1.0.1) were not met:
5843
5844$crypto_PKG_ERRORS
5845
5846Consider adjusting the PKG_CONFIG_PATH environment variable if you
5847installed software in a non-standard prefix.
5848
5849Alternatively, you may set the environment variables crypto_CFLAGS
5850and crypto_LIBS to avoid the need to call pkg-config.
5851See the pkg-config man page for more details." "$LINENO" 5
5852elif test $pkg_failed = untried; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854$as_echo "no" >&6; }
5855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5857as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5858is in your PATH or set the PKG_CONFIG environment variable to the full
5859path to pkg-config.
5860
5861Alternatively, you may set the environment variables crypto_CFLAGS
5862and crypto_LIBS to avoid the need to call pkg-config.
5863See the pkg-config man page for more details.
5864
5865To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5866See \`config.log' for more details" "$LINENO" 5; }
5867else
5868 crypto_CFLAGS=$pkg_cv_crypto_CFLAGS
5869 crypto_LIBS=$pkg_cv_crypto_LIBS
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5871$as_echo "yes" >&6; }
5872 CFLAGS="$CFLAGS $crypto_CFLAGS"
5873 LIBS="$crypto_LIBS $LIBS"
5874fi
5875PKG_CONFIG=$_save_PKG_CONFIG
5876 else
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
jfigusb5fad5f2015-02-26 12:25:08 -05005878$as_echo_n "checking for dlopen in -ldl... " >&6; }
5879if ${ac_cv_lib_dl_dlopen+:} false; then :
5880 $as_echo_n "(cached) " >&6
5881else
5882 ac_check_lib_save_LIBS=$LIBS
5883LIBS="-ldl $LIBS"
5884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885/* end confdefs.h. */
5886
5887/* Override any GCC internal prototype to avoid an error.
5888 Use char because int might match the return type of a GCC
5889 builtin and then its argument prototype would still apply. */
5890#ifdef __cplusplus
5891extern "C"
5892#endif
5893char dlopen ();
5894int
5895main ()
5896{
5897return dlopen ();
5898 ;
5899 return 0;
5900}
5901_ACEOF
5902if ac_fn_c_try_link "$LINENO"; then :
5903 ac_cv_lib_dl_dlopen=yes
5904else
5905 ac_cv_lib_dl_dlopen=no
5906fi
5907rm -f core conftest.err conftest.$ac_objext \
5908 conftest$ac_exeext conftest.$ac_ext
5909LIBS=$ac_check_lib_save_LIBS
5910fi
5911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5912$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5913if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5914 cat >>confdefs.h <<_ACEOF
5915#define HAVE_LIBDL 1
5916_ACEOF
5917
5918 LIBS="-ldl $LIBS"
5919
5920else
jfigus13fd6942015-03-02 09:09:13 -05005921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libdl" >&5
5922$as_echo "$as_me: WARNING: can't find libdl" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005923fi
5924
Idar Tollefsen600ad962017-01-26 11:24:51 +01005925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
jfigusb5fad5f2015-02-26 12:25:08 -05005926$as_echo_n "checking for inflate in -lz... " >&6; }
5927if ${ac_cv_lib_z_inflate+:} false; then :
5928 $as_echo_n "(cached) " >&6
5929else
5930 ac_check_lib_save_LIBS=$LIBS
5931LIBS="-lz $LIBS"
5932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933/* end confdefs.h. */
5934
5935/* Override any GCC internal prototype to avoid an error.
5936 Use char because int might match the return type of a GCC
5937 builtin and then its argument prototype would still apply. */
5938#ifdef __cplusplus
5939extern "C"
5940#endif
5941char inflate ();
5942int
5943main ()
5944{
5945return inflate ();
5946 ;
5947 return 0;
5948}
5949_ACEOF
5950if ac_fn_c_try_link "$LINENO"; then :
5951 ac_cv_lib_z_inflate=yes
5952else
5953 ac_cv_lib_z_inflate=no
5954fi
5955rm -f core conftest.err conftest.$ac_objext \
5956 conftest$ac_exeext conftest.$ac_ext
5957LIBS=$ac_check_lib_save_LIBS
5958fi
5959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
5960$as_echo "$ac_cv_lib_z_inflate" >&6; }
5961if test "x$ac_cv_lib_z_inflate" = xyes; then :
5962 cat >>confdefs.h <<_ACEOF
5963#define HAVE_LIBZ 1
5964_ACEOF
5965
5966 LIBS="-lz $LIBS"
5967
5968else
jfigus13fd6942015-03-02 09:09:13 -05005969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libz" >&5
5970$as_echo "$as_me: WARNING: can't find libz" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005971fi
5972
Idar Tollefsen600ad962017-01-26 11:24:51 +01005973 fi
5974
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_EncryptInit" >&5
5976$as_echo_n "checking for library containing EVP_EncryptInit... " >&6; }
5977if ${ac_cv_search_EVP_EncryptInit+:} false; then :
jfigusc7e66e32013-05-08 11:32:55 -04005978 $as_echo_n "(cached) " >&6
5979else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005980 ac_func_search_save_LIBS=$LIBS
jfigusc7e66e32013-05-08 11:32:55 -04005981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982/* end confdefs.h. */
5983
5984/* Override any GCC internal prototype to avoid an error.
5985 Use char because int might match the return type of a GCC
5986 builtin and then its argument prototype would still apply. */
5987#ifdef __cplusplus
5988extern "C"
5989#endif
5990char EVP_EncryptInit ();
5991int
5992main ()
5993{
5994return EVP_EncryptInit ();
5995 ;
5996 return 0;
5997}
5998_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005999for ac_lib in '' crypto; do
6000 if test -z "$ac_lib"; then
6001 ac_res="none required"
6002 else
6003 ac_res=-l$ac_lib
6004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6005 fi
6006 if ac_fn_c_try_link "$LINENO"; then :
6007 ac_cv_search_EVP_EncryptInit=$ac_res
jfigusc7e66e32013-05-08 11:32:55 -04006008fi
6009rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01006010 conftest$ac_exeext
6011 if ${ac_cv_search_EVP_EncryptInit+:} false; then :
6012 break
jfigusc7e66e32013-05-08 11:32:55 -04006013fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01006014done
6015if ${ac_cv_search_EVP_EncryptInit+:} false; then :
jfigusc7e66e32013-05-08 11:32:55 -04006016
Idar Tollefsen600ad962017-01-26 11:24:51 +01006017else
6018 ac_cv_search_EVP_EncryptInit=no
6019fi
6020rm conftest.$ac_ext
6021LIBS=$ac_func_search_save_LIBS
6022fi
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_EncryptInit" >&5
6024$as_echo "$ac_cv_search_EVP_EncryptInit" >&6; }
6025ac_res=$ac_cv_search_EVP_EncryptInit
6026if test "$ac_res" != no; then :
6027 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04006028
6029else
6030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
jfigus5b22e372013-05-09 09:23:26 -04006032as_fn_error $? "can't find openssl >1.0.1 crypto lib
6033See \`config.log' for more details" "$LINENO" 5; }
6034fi
6035
Idar Tollefsen600ad962017-01-26 11:24:51 +01006036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_aes_128_ctr" >&5
6037$as_echo_n "checking for library containing EVP_aes_128_ctr... " >&6; }
6038if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
jfigus5b22e372013-05-09 09:23:26 -04006039 $as_echo_n "(cached) " >&6
6040else
Idar Tollefsen600ad962017-01-26 11:24:51 +01006041 ac_func_search_save_LIBS=$LIBS
jfigus5b22e372013-05-09 09:23:26 -04006042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043/* end confdefs.h. */
6044
6045/* Override any GCC internal prototype to avoid an error.
6046 Use char because int might match the return type of a GCC
6047 builtin and then its argument prototype would still apply. */
6048#ifdef __cplusplus
6049extern "C"
6050#endif
6051char EVP_aes_128_ctr ();
6052int
6053main ()
6054{
6055return EVP_aes_128_ctr ();
6056 ;
6057 return 0;
6058}
6059_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01006060for ac_lib in '' crypto; do
6061 if test -z "$ac_lib"; then
6062 ac_res="none required"
6063 else
6064 ac_res=-l$ac_lib
6065 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6066 fi
6067 if ac_fn_c_try_link "$LINENO"; then :
6068 ac_cv_search_EVP_aes_128_ctr=$ac_res
jfigus5b22e372013-05-09 09:23:26 -04006069fi
6070rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01006071 conftest$ac_exeext
6072 if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
6073 break
jfigus5b22e372013-05-09 09:23:26 -04006074fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01006075done
6076if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
jfigus5b22e372013-05-09 09:23:26 -04006077
Idar Tollefsen600ad962017-01-26 11:24:51 +01006078else
6079 ac_cv_search_EVP_aes_128_ctr=no
6080fi
6081rm conftest.$ac_ext
6082LIBS=$ac_func_search_save_LIBS
6083fi
6084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_aes_128_ctr" >&5
6085$as_echo "$ac_cv_search_EVP_aes_128_ctr" >&6; }
6086ac_res=$ac_cv_search_EVP_aes_128_ctr
6087if test "$ac_res" != no; then :
6088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus5b22e372013-05-09 09:23:26 -04006089
6090else
6091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6093as_fn_error $? "can't find openssl >1.0.1 crypto lib
jfigusc7e66e32013-05-08 11:32:55 -04006094See \`config.log' for more details" "$LINENO" 5; }
6095fi
6096
Idar Tollefsen600ad962017-01-26 11:24:51 +01006097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_aes_128_gcm" >&5
6098$as_echo_n "checking for library containing EVP_aes_128_gcm... " >&6; }
6099if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
jfigus7882dd92013-08-02 16:08:23 -04006100 $as_echo_n "(cached) " >&6
6101else
Idar Tollefsen600ad962017-01-26 11:24:51 +01006102 ac_func_search_save_LIBS=$LIBS
jfigus7882dd92013-08-02 16:08:23 -04006103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104/* end confdefs.h. */
6105
6106/* Override any GCC internal prototype to avoid an error.
6107 Use char because int might match the return type of a GCC
6108 builtin and then its argument prototype would still apply. */
6109#ifdef __cplusplus
6110extern "C"
6111#endif
6112char EVP_aes_128_gcm ();
6113int
6114main ()
6115{
6116return EVP_aes_128_gcm ();
6117 ;
6118 return 0;
6119}
6120_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01006121for ac_lib in '' crypto; do
6122 if test -z "$ac_lib"; then
6123 ac_res="none required"
6124 else
6125 ac_res=-l$ac_lib
6126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6127 fi
6128 if ac_fn_c_try_link "$LINENO"; then :
6129 ac_cv_search_EVP_aes_128_gcm=$ac_res
jfigus7882dd92013-08-02 16:08:23 -04006130fi
6131rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01006132 conftest$ac_exeext
6133 if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
6134 break
jfigus7882dd92013-08-02 16:08:23 -04006135fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01006136done
6137if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
jfigus7882dd92013-08-02 16:08:23 -04006138
Idar Tollefsen600ad962017-01-26 11:24:51 +01006139else
6140 ac_cv_search_EVP_aes_128_gcm=no
6141fi
6142rm conftest.$ac_ext
6143LIBS=$ac_func_search_save_LIBS
6144fi
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_aes_128_gcm" >&5
6146$as_echo "$ac_cv_search_EVP_aes_128_gcm" >&6; }
6147ac_res=$ac_cv_search_EVP_aes_128_gcm
6148if test "$ac_res" != no; then :
6149 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus7882dd92013-08-02 16:08:23 -04006150
6151else
6152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6154as_fn_error $? "can't find openssl >1.0.1 crypto lib
6155See \`config.log' for more details" "$LINENO" 5; }
6156fi
6157
jfigusc7e66e32013-05-08 11:32:55 -04006158
Idar Tollefsen600ad962017-01-26 11:24:51 +01006159
jfigusc7e66e32013-05-08 11:32:55 -04006160$as_echo "#define OPENSSL 1" >>confdefs.h
6161
jfigus7882dd92013-08-02 16:08:23 -04006162 AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
jfigusc7e66e32013-05-08 11:32:55 -04006163 HMAC_OBJS=crypto/hash/hmac_ossl.o
6164 USE_OPENSSL=1
6165
jfigus038d2cf2015-05-11 14:10:11 -04006166
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL KDF algorithm" >&5
6168$as_echo_n "checking whether to leverage OpenSSL KDF algorithm... " >&6; }
6169 # Check whether --enable-openssl-kdf was given.
6170if test "${enable_openssl_kdf+set}" = set; then :
6171 enableval=$enable_openssl_kdf;
6172else
6173 enable_openssl_kdf=no
6174fi
6175
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl_kdf" >&5
6177$as_echo "$enable_openssl_kdf" >&6; }
6178 if test "$enable_openssl_kdf" = "yes"; then
Idar Tollefsen600ad962017-01-26 11:24:51 +01006179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kdf_srtp" >&5
6180$as_echo_n "checking for library containing kdf_srtp... " >&6; }
6181if ${ac_cv_search_kdf_srtp+:} false; then :
jfigus038d2cf2015-05-11 14:10:11 -04006182 $as_echo_n "(cached) " >&6
6183else
Idar Tollefsen600ad962017-01-26 11:24:51 +01006184 ac_func_search_save_LIBS=$LIBS
jfigus038d2cf2015-05-11 14:10:11 -04006185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186/* end confdefs.h. */
6187
6188/* Override any GCC internal prototype to avoid an error.
6189 Use char because int might match the return type of a GCC
6190 builtin and then its argument prototype would still apply. */
6191#ifdef __cplusplus
6192extern "C"
6193#endif
6194char kdf_srtp ();
6195int
6196main ()
6197{
6198return kdf_srtp ();
6199 ;
6200 return 0;
6201}
6202_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01006203for ac_lib in '' crypto; do
6204 if test -z "$ac_lib"; then
6205 ac_res="none required"
6206 else
6207 ac_res=-l$ac_lib
6208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6209 fi
6210 if ac_fn_c_try_link "$LINENO"; then :
6211 ac_cv_search_kdf_srtp=$ac_res
jfigus038d2cf2015-05-11 14:10:11 -04006212fi
6213rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01006214 conftest$ac_exeext
6215 if ${ac_cv_search_kdf_srtp+:} false; then :
6216 break
jfigus038d2cf2015-05-11 14:10:11 -04006217fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01006218done
6219if ${ac_cv_search_kdf_srtp+:} false; then :
jfigus038d2cf2015-05-11 14:10:11 -04006220
Idar Tollefsen600ad962017-01-26 11:24:51 +01006221else
6222 ac_cv_search_kdf_srtp=no
6223fi
6224rm conftest.$ac_ext
6225LIBS=$ac_func_search_save_LIBS
6226fi
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kdf_srtp" >&5
6228$as_echo "$ac_cv_search_kdf_srtp" >&6; }
6229ac_res=$ac_cv_search_kdf_srtp
6230if test "$ac_res" != no; then :
6231 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus038d2cf2015-05-11 14:10:11 -04006232
6233else
6234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6236as_fn_error $? "can't find openssl KDF lib
6237See \`config.log' for more details" "$LINENO" 5; }
6238fi
6239
6240
6241$as_echo "#define OPENSSL_KDF 1" >>confdefs.h
6242
6243 fi
jfigusc7e66e32013-05-08 11:32:55 -04006244else
jfigusa3127b82014-11-19 14:46:52 -05006245 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o"
jfigusc7e66e32013-05-08 11:32:55 -04006246 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
6247fi
6248
6249
6250
Bernardo Torres79e38ae2014-10-10 05:29:36 -03006251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
6252$as_echo_n "checking for pcap_create in -lpcap... " >&6; }
6253if ${ac_cv_lib_pcap_pcap_create+:} false; then :
6254 $as_echo_n "(cached) " >&6
6255else
6256 ac_check_lib_save_LIBS=$LIBS
6257LIBS="-lpcap $LIBS"
6258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259/* end confdefs.h. */
6260
6261/* Override any GCC internal prototype to avoid an error.
6262 Use char because int might match the return type of a GCC
6263 builtin and then its argument prototype would still apply. */
6264#ifdef __cplusplus
6265extern "C"
6266#endif
6267char pcap_create ();
6268int
6269main ()
6270{
6271return pcap_create ();
6272 ;
6273 return 0;
6274}
6275_ACEOF
6276if ac_fn_c_try_link "$LINENO"; then :
6277 ac_cv_lib_pcap_pcap_create=yes
6278else
6279 ac_cv_lib_pcap_pcap_create=no
6280fi
6281rm -f core conftest.err conftest.$ac_objext \
6282 conftest$ac_exeext conftest.$ac_ext
6283LIBS=$ac_check_lib_save_LIBS
6284fi
6285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
6286$as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
6287if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
Idar Tollefsen600ad962017-01-26 11:24:51 +01006288 LIBS="-lpcap $LIBS"
Bernardo Torres79e38ae2014-10-10 05:29:36 -03006289
Bernardo Torresb3c51422014-10-14 12:40:09 -03006290$as_echo "#define HAVE_PCAP 1" >>confdefs.h
6291
Idar Tollefsen600ad962017-01-26 11:24:51 +01006292 HAVE_PCAP=1
Bernardo Torres79e38ae2014-10-10 05:29:36 -03006293
6294fi
6295
Bernardo Torres79e38ae2014-10-10 05:29:36 -03006296
jfigusc7e66e32013-05-08 11:32:55 -04006297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use stdout for error reporting" >&5
6298$as_echo_n "checking whether to use stdout for error reporting... " >&6; }
6299# Check whether --enable-stdout was given.
6300if test "${enable_stdout+set}" = set; then :
6301 enableval=$enable_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00006302else
jfigus97a80f42014-11-04 14:15:40 -05006303 enable_stdout=no
jfigusc7e66e32013-05-08 11:32:55 -04006304fi
6305
David McGrewb67061f2005-09-28 14:23:06 +00006306if test "$enable_stdout" = "yes"; then
6307
jfigusc7e66e32013-05-08 11:32:55 -04006308$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00006309
6310fi
jfigusc7e66e32013-05-08 11:32:55 -04006311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdout" >&5
6312$as_echo "$enable_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00006313
jfigusc7e66e32013-05-08 11:32:55 -04006314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use /dev/console for error reporting" >&5
6315$as_echo_n "checking whether to use /dev/console for error reporting... " >&6; }
6316# Check whether --enable-console was given.
6317if test "${enable_console+set}" = set; then :
6318 enableval=$enable_console;
David McGrewb67061f2005-09-28 14:23:06 +00006319else
6320 enable_console=no
jfigusc7e66e32013-05-08 11:32:55 -04006321fi
6322
David McGrewb67061f2005-09-28 14:23:06 +00006323if test "$enable_console" = "yes"; then
6324
jfigusc7e66e32013-05-08 11:32:55 -04006325$as_echo "#define USE_ERR_REPORTING_FILE 1" >>confdefs.h
David McGrewb67061f2005-09-28 14:23:06 +00006326
6327
jfigusc7e66e32013-05-08 11:32:55 -04006328$as_echo "#define ERR_REPORTING_FILE \"/dev/console\"" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00006329
6330fi
jfigusc7e66e32013-05-08 11:32:55 -04006331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_console" >&5
6332$as_echo "$enable_console" >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00006333
jfigusc7e66e32013-05-08 11:32:55 -04006334ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00006335
6336
Idar Tollefsen600ad962017-01-26 11:24:51 +01006337ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile libsrtp2.pc"
jfigusc7e66e32013-05-08 11:32:55 -04006338
Cullen Jennings235513a2005-09-21 22:51:36 +00006339cat >confcache <<\_ACEOF
6340# This file is a shell script that caches the results of configure
6341# tests run on this system so they can be shared between configure
6342# scripts and configure runs, see configure's option --config-cache.
6343# It is not useful on other systems. If it contains results you don't
6344# want to keep, you may remove or edit it.
6345#
6346# config.status only pays attention to the cache file if you give it
6347# the --recheck option to rerun configure.
6348#
6349# `ac_cv_env_foo' variables (set or unset) will be overridden when
6350# loading this file, other *unset* `ac_cv_foo' will be assigned the
6351# following values.
6352
6353_ACEOF
6354
6355# The following way of writing the cache mishandles newlines in values,
6356# but we know of no workaround that is simple, portable, and efficient.
jfigusc7e66e32013-05-08 11:32:55 -04006357# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00006358# Ultrix sh set writes to stderr and can't be redirected directly,
6359# and sets the high bit in the cache file unless we assign to the vars.
jfigusc7e66e32013-05-08 11:32:55 -04006360(
6361 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6362 eval ac_val=\$$ac_var
6363 case $ac_val in #(
6364 *${as_nl}*)
6365 case $ac_var in #(
6366 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6367$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6368 esac
6369 case $ac_var in #(
6370 _ | IFS | as_nl) ;; #(
6371 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6372 *) { eval $ac_var=; unset $ac_var;} ;;
6373 esac ;;
6374 esac
6375 done
6376
Cullen Jennings235513a2005-09-21 22:51:36 +00006377 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04006378 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6379 *${as_nl}ac_space=\ *)
6380 # `set' does not quote correctly, so add quotes: double-quote
6381 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00006382 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00006383 "s/'/'\\\\''/g;
6384 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusc7e66e32013-05-08 11:32:55 -04006385 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00006386 *)
6387 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusc7e66e32013-05-08 11:32:55 -04006388 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00006389 ;;
jfigusc7e66e32013-05-08 11:32:55 -04006390 esac |
6391 sort
6392) |
Cullen Jennings235513a2005-09-21 22:51:36 +00006393 sed '
jfigusc7e66e32013-05-08 11:32:55 -04006394 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00006395 t clear
jfigusc7e66e32013-05-08 11:32:55 -04006396 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00006397 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6398 t end
jfigusc7e66e32013-05-08 11:32:55 -04006399 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6400 :end' >>confcache
6401if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6402 if test -w "$cache_file"; then
6403 if test "x$cache_file" != "x/dev/null"; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6405$as_echo "$as_me: updating cache $cache_file" >&6;}
6406 if test ! -f "$cache_file" || test -h "$cache_file"; then
6407 cat confcache >"$cache_file"
6408 else
6409 case $cache_file in #(
6410 */* | ?:*)
6411 mv -f confcache "$cache_file"$$ &&
6412 mv -f "$cache_file"$$ "$cache_file" ;; #(
6413 *)
6414 mv -f confcache "$cache_file" ;;
6415 esac
6416 fi
6417 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006418 else
jfigusc7e66e32013-05-08 11:32:55 -04006419 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6420$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006421 fi
6422fi
6423rm -f confcache
6424
6425test "x$prefix" = xNONE && prefix=$ac_default_prefix
6426# Let make expand exec_prefix.
6427test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6428
Cullen Jennings235513a2005-09-21 22:51:36 +00006429DEFS=-DHAVE_CONFIG_H
6430
6431ac_libobjs=
6432ac_ltlibobjs=
jfigusc7e66e32013-05-08 11:32:55 -04006433U=
Cullen Jennings235513a2005-09-21 22:51:36 +00006434for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6435 # 1. Remove the extension, and $U if already installed.
jfigusc7e66e32013-05-08 11:32:55 -04006436 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6437 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6438 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6439 # will be set to the directory where LIBOBJS objects are built.
6440 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6441 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00006442done
6443LIBOBJS=$ac_libobjs
6444
6445LTLIBOBJS=$ac_ltlibobjs
6446
6447
6448
jfigusc7e66e32013-05-08 11:32:55 -04006449
6450: "${CONFIG_STATUS=./config.status}"
6451ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00006452ac_clean_files_save=$ac_clean_files
6453ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusc7e66e32013-05-08 11:32:55 -04006454{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6455$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6456as_write_fail=0
6457cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006458#! $SHELL
6459# Generated by $as_me.
6460# Run this file to recreate the current configuration.
6461# Compiler output produced by configure, useful for debugging
6462# configure, is in config.log if it exists.
6463
6464debug=false
6465ac_cs_recheck=false
6466ac_cs_silent=false
jfigusc7e66e32013-05-08 11:32:55 -04006467
Cullen Jennings235513a2005-09-21 22:51:36 +00006468SHELL=\${CONFIG_SHELL-$SHELL}
jfigusc7e66e32013-05-08 11:32:55 -04006469export SHELL
6470_ASEOF
6471cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6472## -------------------- ##
6473## M4sh Initialization. ##
6474## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00006475
jfigusc7e66e32013-05-08 11:32:55 -04006476# Be more Bourne compatible
6477DUALCASE=1; export DUALCASE # for MKS sh
6478if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00006479 emulate sh
6480 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -04006481 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00006482 # is contrary to our usage. Disable this feature.
6483 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -04006484 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00006485else
jfigusc7e66e32013-05-08 11:32:55 -04006486 case `(set -o) 2>/dev/null` in #(
6487 *posix*) :
6488 set -o posix ;; #(
6489 *) :
6490 ;;
6491esac
Cullen Jennings235513a2005-09-21 22:51:36 +00006492fi
6493
6494
jfigusc7e66e32013-05-08 11:32:55 -04006495as_nl='
6496'
6497export as_nl
6498# Printing a long string crashes Solaris 7 /usr/bin/printf.
6499as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6500as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6501as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6502# Prefer a ksh shell builtin over an external printf program on Solaris,
6503# but without wasting forks for bash or zsh.
6504if test -z "$BASH_VERSION$ZSH_VERSION" \
6505 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6506 as_echo='print -r --'
6507 as_echo_n='print -rn --'
6508elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6509 as_echo='printf %s\n'
6510 as_echo_n='printf %s'
6511else
6512 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6513 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6514 as_echo_n='/usr/ucb/echo -n'
6515 else
6516 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6517 as_echo_n_body='eval
6518 arg=$1;
6519 case $arg in #(
6520 *"$as_nl"*)
6521 expr "X$arg" : "X\\(.*\\)$as_nl";
6522 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6523 esac;
6524 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6525 '
6526 export as_echo_n_body
6527 as_echo_n='sh -c $as_echo_n_body as_echo'
6528 fi
6529 export as_echo_body
6530 as_echo='sh -c $as_echo_body as_echo'
6531fi
6532
6533# The user is always right.
6534if test "${PATH_SEPARATOR+set}" != set; then
6535 PATH_SEPARATOR=:
6536 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6537 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6538 PATH_SEPARATOR=';'
6539 }
6540fi
6541
6542
6543# IFS
6544# We need space, tab and new line, in precisely that order. Quoting is
6545# there to prevent editors from complaining about space-tab.
6546# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6547# splitting by setting IFS to empty value.)
6548IFS=" "" $as_nl"
6549
6550# Find who we are. Look in the path if we contain no directory separator.
6551as_myself=
6552case $0 in #((
6553 *[\\/]* ) as_myself=$0 ;;
6554 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555for as_dir in $PATH
6556do
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
6559 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6560 done
6561IFS=$as_save_IFS
6562
6563 ;;
6564esac
6565# We did not find ourselves, most probably we were run as `sh COMMAND'
6566# in which case we are not to be found in the path.
6567if test "x$as_myself" = x; then
6568 as_myself=$0
6569fi
6570if test ! -f "$as_myself"; then
6571 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6572 exit 1
6573fi
6574
6575# Unset variables that we do not need and which cause bugs (e.g. in
6576# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6577# suppresses any "Segmentation fault" message there. '((' could
6578# trigger a bug in pdksh 5.2.14.
6579for as_var in BASH_ENV ENV MAIL MAILPATH
6580do eval test x\${$as_var+set} = xset \
6581 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6582done
Cullen Jennings235513a2005-09-21 22:51:36 +00006583PS1='$ '
6584PS2='> '
6585PS4='+ '
6586
6587# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -04006588LC_ALL=C
6589export LC_ALL
6590LANGUAGE=C
6591export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -04006592
jfigusc7e66e32013-05-08 11:32:55 -04006593# CDPATH.
6594(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6595
6596
6597# as_fn_error STATUS ERROR [LINENO LOG_FD]
6598# ----------------------------------------
6599# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6600# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6601# script with STATUS, using 1 if that was 0.
6602as_fn_error ()
6603{
6604 as_status=$1; test $as_status -eq 0 && as_status=1
6605 if test "$4"; then
6606 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6607 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6608 fi
6609 $as_echo "$as_me: error: $2" >&2
6610 as_fn_exit $as_status
6611} # as_fn_error
6612
6613
6614# as_fn_set_status STATUS
6615# -----------------------
6616# Set $? to STATUS, without forking.
6617as_fn_set_status ()
6618{
6619 return $1
6620} # as_fn_set_status
6621
6622# as_fn_exit STATUS
6623# -----------------
6624# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6625as_fn_exit ()
6626{
6627 set +e
6628 as_fn_set_status $1
6629 exit $1
6630} # as_fn_exit
6631
6632# as_fn_unset VAR
6633# ---------------
6634# Portably unset VAR.
6635as_fn_unset ()
6636{
6637 { eval $1=; unset $1;}
6638}
6639as_unset=as_fn_unset
6640# as_fn_append VAR VALUE
6641# ----------------------
6642# Append the text in VALUE to the end of the definition contained in VAR. Take
6643# advantage of any shell optimizations that allow amortized linear growth over
6644# repeated appends, instead of the typical quadratic growth present in naive
6645# implementations.
6646if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6647 eval 'as_fn_append ()
6648 {
6649 eval $1+=\$2
6650 }'
6651else
6652 as_fn_append ()
6653 {
6654 eval $1=\$$1\$2
6655 }
6656fi # as_fn_append
6657
6658# as_fn_arith ARG...
6659# ------------------
6660# Perform arithmetic evaluation on the ARGs, and store the result in the
6661# global $as_val. Take advantage of shells that can avoid forks. The arguments
6662# must be portable across $(()) and expr.
6663if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6664 eval 'as_fn_arith ()
6665 {
6666 as_val=$(( $* ))
6667 }'
6668else
6669 as_fn_arith ()
6670 {
6671 as_val=`expr "$@" || test $? -eq 1`
6672 }
6673fi # as_fn_arith
6674
6675
6676if expr a : '\(a\)' >/dev/null 2>&1 &&
6677 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006678 as_expr=expr
6679else
6680 as_expr=false
6681fi
6682
jfigusc7e66e32013-05-08 11:32:55 -04006683if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006684 as_basename=basename
6685else
6686 as_basename=false
6687fi
6688
jfigusc7e66e32013-05-08 11:32:55 -04006689if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6690 as_dirname=dirname
6691else
6692 as_dirname=false
6693fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006694
jfigusc7e66e32013-05-08 11:32:55 -04006695as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006696$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6697 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006698 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6699$as_echo X/"$0" |
6700 sed '/^.*\/\([^/][^/]*\)\/*$/{
6701 s//\1/
6702 q
6703 }
6704 /^X\/\(\/\/\)$/{
6705 s//\1/
6706 q
6707 }
6708 /^X\/\(\/\).*/{
6709 s//\1/
6710 q
6711 }
6712 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00006713
Cullen Jennings235513a2005-09-21 22:51:36 +00006714# Avoid depending upon Character Ranges.
6715as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6716as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6717as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6718as_cr_digits='0123456789'
6719as_cr_alnum=$as_cr_Letters$as_cr_digits
6720
jfigusc7e66e32013-05-08 11:32:55 -04006721ECHO_C= ECHO_N= ECHO_T=
6722case `echo -n x` in #(((((
6723-n*)
6724 case `echo 'xy\c'` in
6725 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6726 xy) ECHO_C='\c';;
6727 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6728 ECHO_T=' ';;
6729 esac;;
6730*)
6731 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00006732esac
6733
Cullen Jennings235513a2005-09-21 22:51:36 +00006734rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -04006735if test -d conf$$.dir; then
6736 rm -f conf$$.dir/conf$$.file
6737else
6738 rm -f conf$$.dir
6739 mkdir conf$$.dir 2>/dev/null
6740fi
6741if (echo >conf$$.file) 2>/dev/null; then
6742 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006743 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -04006744 # ... but there are two gotchas:
6745 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6746 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6747 # In both cases, we have to default to `cp -pR'.
6748 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6749 as_ln_s='cp -pR'
6750 elif ln conf$$.file conf$$ 2>/dev/null; then
6751 as_ln_s=ln
6752 else
6753 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006754 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006755else
jfigusc7e66e32013-05-08 11:32:55 -04006756 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006757fi
jfigusc7e66e32013-05-08 11:32:55 -04006758rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6759rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00006760
jfigusc7e66e32013-05-08 11:32:55 -04006761
6762# as_fn_mkdir_p
6763# -------------
6764# Create "$as_dir" as a directory, including parents if necessary.
6765as_fn_mkdir_p ()
6766{
6767
6768 case $as_dir in #(
6769 -*) as_dir=./$as_dir;;
6770 esac
6771 test -d "$as_dir" || eval $as_mkdir_p || {
6772 as_dirs=
6773 while :; do
6774 case $as_dir in #(
6775 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6776 *) as_qdir=$as_dir;;
6777 esac
6778 as_dirs="'$as_qdir' $as_dirs"
6779 as_dir=`$as_dirname -- "$as_dir" ||
6780$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6781 X"$as_dir" : 'X\(//\)[^/]' \| \
6782 X"$as_dir" : 'X\(//\)$' \| \
6783 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6784$as_echo X"$as_dir" |
6785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6786 s//\1/
6787 q
6788 }
6789 /^X\(\/\/\)[^/].*/{
6790 s//\1/
6791 q
6792 }
6793 /^X\(\/\/\)$/{
6794 s//\1/
6795 q
6796 }
6797 /^X\(\/\).*/{
6798 s//\1/
6799 q
6800 }
6801 s/.*/./; q'`
6802 test -d "$as_dir" && break
6803 done
6804 test -z "$as_dirs" || eval "mkdir $as_dirs"
6805 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6806
6807
6808} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006809if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -04006810 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00006811else
David McGrewfec49dd2005-09-23 19:34:11 +00006812 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00006813 as_mkdir_p=false
6814fi
6815
jfigusc7e66e32013-05-08 11:32:55 -04006816
6817# as_fn_executable_p FILE
6818# -----------------------
6819# Test if FILE is an executable regular file.
6820as_fn_executable_p ()
6821{
6822 test -f "$1" && test -x "$1"
6823} # as_fn_executable_p
6824as_test_x='test -x'
6825as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006826
6827# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00006828as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006829
6830# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00006831as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006832
6833
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006834exec 6>&1
jfigusc7e66e32013-05-08 11:32:55 -04006835## ----------------------------------- ##
6836## Main body of $CONFIG_STATUS script. ##
6837## ----------------------------------- ##
6838_ASEOF
6839test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006840
jfigusc7e66e32013-05-08 11:32:55 -04006841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6842# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00006843# report actual input values of CONFIG_FILES etc. instead of their
jfigusc7e66e32013-05-08 11:32:55 -04006844# values after options handling.
6845ac_log="
Pascal Bühler34acba62017-01-19 10:57:30 +01006846This file was extended by libsrtp2 $as_me 2.1.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04006847generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00006848
6849 CONFIG_FILES = $CONFIG_FILES
6850 CONFIG_HEADERS = $CONFIG_HEADERS
6851 CONFIG_LINKS = $CONFIG_LINKS
6852 CONFIG_COMMANDS = $CONFIG_COMMANDS
6853 $ $0 $@
6854
jfigusc7e66e32013-05-08 11:32:55 -04006855on `(hostname || uname -n) 2>/dev/null | sed 1q`
6856"
6857
Cullen Jennings235513a2005-09-21 22:51:36 +00006858_ACEOF
6859
jfigusc7e66e32013-05-08 11:32:55 -04006860case $ac_config_files in *"
6861"*) set x $ac_config_files; shift; ac_config_files=$*;;
6862esac
6863
6864case $ac_config_headers in *"
6865"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6866esac
6867
6868
6869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006870# Files that config.status was made for.
jfigusc7e66e32013-05-08 11:32:55 -04006871config_files="$ac_config_files"
6872config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00006873
jfigusc7e66e32013-05-08 11:32:55 -04006874_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006875
jfigusc7e66e32013-05-08 11:32:55 -04006876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006877ac_cs_usage="\
jfigusc7e66e32013-05-08 11:32:55 -04006878\`$as_me' instantiates files and other configuration actions
6879from templates according to the current configuration. Unless the files
6880and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00006881
jfigusc7e66e32013-05-08 11:32:55 -04006882Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00006883
6884 -h, --help print this help, then exit
jfigusc7e66e32013-05-08 11:32:55 -04006885 -V, --version print version number and configuration settings, then exit
6886 --config print configuration, then exit
6887 -q, --quiet, --silent
6888 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00006889 -d, --debug don't remove temporary files
6890 --recheck update $as_me by reconfiguring in the same conditions
jfigusc7e66e32013-05-08 11:32:55 -04006891 --file=FILE[:TEMPLATE]
6892 instantiate the configuration file FILE
6893 --header=FILE[:TEMPLATE]
6894 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00006895
6896Configuration files:
6897$config_files
6898
6899Configuration headers:
6900$config_headers
6901
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02006902Report bugs to <https://github.com/cisco/libsrtp/issues>."
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006903
jfigusc7e66e32013-05-08 11:32:55 -04006904_ACEOF
6905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6906ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00006907ac_cs_version="\\
Pascal Bühler34acba62017-01-19 10:57:30 +01006908libsrtp2 config.status 2.1.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04006909configured by $0, generated by GNU Autoconf 2.69,
6910 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00006911
jfigusc7e66e32013-05-08 11:32:55 -04006912Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00006913This config.status script is free software; the Free Software Foundation
6914gives unlimited permission to copy, distribute and modify it."
jfigusc7e66e32013-05-08 11:32:55 -04006915
6916ac_pwd='$ac_pwd'
6917srcdir='$srcdir'
6918INSTALL='$INSTALL'
6919test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00006920_ACEOF
6921
jfigusc7e66e32013-05-08 11:32:55 -04006922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6923# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00006924ac_need_defaults=:
6925while test $# != 0
6926do
6927 case $1 in
jfigusc7e66e32013-05-08 11:32:55 -04006928 --*=?*)
6929 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6930 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00006931 ac_shift=:
6932 ;;
jfigusc7e66e32013-05-08 11:32:55 -04006933 --*=)
6934 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6935 ac_optarg=
6936 ac_shift=:
6937 ;;
6938 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00006939 ac_option=$1
6940 ac_optarg=$2
6941 ac_shift=shift
6942 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006943 esac
6944
6945 case $ac_option in
6946 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00006947 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6948 ac_cs_recheck=: ;;
jfigusc7e66e32013-05-08 11:32:55 -04006949 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6950 $as_echo "$ac_cs_version"; exit ;;
6951 --config | --confi | --conf | --con | --co | --c )
6952 $as_echo "$ac_cs_config"; exit ;;
6953 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00006954 debug=: ;;
6955 --file | --fil | --fi | --f )
6956 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04006957 case $ac_optarg in
6958 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6959 '') as_fn_error $? "missing file argument" ;;
6960 esac
6961 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006962 ac_need_defaults=false;;
6963 --header | --heade | --head | --hea )
6964 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04006965 case $ac_optarg in
6966 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6967 esac
6968 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006969 ac_need_defaults=false;;
jfigusc7e66e32013-05-08 11:32:55 -04006970 --he | --h)
6971 # Conflict between --help and --header
6972 as_fn_error $? "ambiguous option: \`$1'
6973Try \`$0 --help' for more information.";;
6974 --help | --hel | -h )
6975 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6977 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6978 ac_cs_silent=: ;;
6979
6980 # This is an error.
jfigusc7e66e32013-05-08 11:32:55 -04006981 -*) as_fn_error $? "unrecognized option: \`$1'
6982Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006983
jfigusc7e66e32013-05-08 11:32:55 -04006984 *) as_fn_append ac_config_targets " $1"
6985 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006986
6987 esac
6988 shift
6989done
6990
6991ac_configure_extra_args=
6992
6993if $ac_cs_silent; then
6994 exec 6>/dev/null
6995 ac_configure_extra_args="$ac_configure_extra_args --silent"
6996fi
6997
6998_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007000if \$ac_cs_recheck; then
jfigusc7e66e32013-05-08 11:32:55 -04007001 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7002 shift
7003 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7004 CONFIG_SHELL='$SHELL'
7005 export CONFIG_SHELL
7006 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00007007fi
7008
7009_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7011exec 5>>config.log
7012{
7013 echo
7014 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7015## Running $as_me. ##
7016_ASBOX
7017 $as_echo "$ac_log"
7018} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00007019
jfigusc7e66e32013-05-08 11:32:55 -04007020_ACEOF
7021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7022_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00007023
jfigusc7e66e32013-05-08 11:32:55 -04007024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007025
jfigusc7e66e32013-05-08 11:32:55 -04007026# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00007027for ac_config_target in $ac_config_targets
7028do
jfigusc7e66e32013-05-08 11:32:55 -04007029 case $ac_config_target in
7030 "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
7031 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7032 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
7033 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
Idar Tollefsen600ad962017-01-26 11:24:51 +01007034 "libsrtp2.pc") CONFIG_FILES="$CONFIG_FILES libsrtp2.pc" ;;
jfigusc7e66e32013-05-08 11:32:55 -04007035
7036 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007037 esac
7038done
7039
jfigusc7e66e32013-05-08 11:32:55 -04007040
Cullen Jennings235513a2005-09-21 22:51:36 +00007041# If the user did not use the arguments to specify the items to instantiate,
7042# then the envvar interface is used. Set only those that are not.
7043# We use the long form for the default assignment because of an extremely
7044# bizarre bug on SunOS 4.1.3.
7045if $ac_need_defaults; then
7046 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7047 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7048fi
7049
7050# Have a temporary directory for convenience. Make it in the build tree
jfigusc7e66e32013-05-08 11:32:55 -04007051# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00007052# creating and moving files from /tmp can sometimes cause problems.
jfigusc7e66e32013-05-08 11:32:55 -04007053# Hook for its removal unless debugging.
7054# Note that there is a small window in which the directory will not be cleaned:
7055# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00007056$debug ||
7057{
jfigusc7e66e32013-05-08 11:32:55 -04007058 tmp= ac_tmp=
7059 trap 'exit_status=$?
7060 : "${ac_tmp:=$tmp}"
7061 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7062' 0
7063 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00007064}
Cullen Jennings235513a2005-09-21 22:51:36 +00007065# Create a (secure) tmp directory for tmp files.
7066
7067{
jfigusc7e66e32013-05-08 11:32:55 -04007068 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7069 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00007070} ||
7071{
jfigusc7e66e32013-05-08 11:32:55 -04007072 tmp=./conf$$-$RANDOM
7073 (umask 077 && mkdir "$tmp")
7074} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7075ac_tmp=$tmp
7076
7077# Set up the scripts for CONFIG_FILES section.
7078# No need to generate them if there are no CONFIG_FILES.
7079# This happens for instance with `./config.status config.h'.
7080if test -n "$CONFIG_FILES"; then
7081
7082
7083ac_cr=`echo X | tr X '\015'`
7084# On cygwin, bash can eat \r inside `` if the user requested igncr.
7085# But we know of no other shell where ac_cr would be empty at this
7086# point, so we can use a bashism as a fallback.
7087if test "x$ac_cr" = x; then
7088 eval ac_cr=\$\'\\r\'
7089fi
7090ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7091if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7092 ac_cs_awk_cr='\\r'
7093else
7094 ac_cs_awk_cr=$ac_cr
7095fi
7096
7097echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7098_ACEOF
7099
7100
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007101{
jfigusc7e66e32013-05-08 11:32:55 -04007102 echo "cat >conf$$subs.awk <<_ACEOF" &&
7103 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7104 echo "_ACEOF"
7105} >conf$$subs.sh ||
7106 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7107ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7108ac_delim='%!_!# '
7109for ac_last_try in false false false false false :; do
7110 . ./conf$$subs.sh ||
7111 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7112
7113 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7114 if test $ac_delim_n = $ac_delim_num; then
7115 break
7116 elif $ac_last_try; then
7117 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7118 else
7119 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7120 fi
7121done
7122rm -f conf$$subs.sh
7123
7124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7125cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7126_ACEOF
7127sed -n '
7128h
7129s/^/S["/; s/!.*/"]=/
7130p
7131g
7132s/^[^!]*!//
7133:repl
7134t repl
7135s/'"$ac_delim"'$//
7136t delim
7137:nl
7138h
7139s/\(.\{148\}\)..*/\1/
7140t more1
7141s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7142p
7143n
7144b repl
7145:more1
7146s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7147p
7148g
7149s/.\{148\}//
7150t nl
7151:delim
7152h
7153s/\(.\{148\}\)..*/\1/
7154t more2
7155s/["\\]/\\&/g; s/^/"/; s/$/"/
7156p
7157b
7158:more2
7159s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7160p
7161g
7162s/.\{148\}//
7163t delim
7164' <conf$$subs.awk | sed '
7165/^[^""]/{
7166 N
7167 s/\n//
7168}
7169' >>$CONFIG_STATUS || ac_write_fail=1
7170rm -f conf$$subs.awk
7171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7172_ACAWK
7173cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7174 for (key in S) S_is_set[key] = 1
7175 FS = ""
7176
7177}
7178{
7179 line = $ 0
7180 nfields = split(line, field, "@")
7181 substed = 0
7182 len = length(field[1])
7183 for (i = 2; i < nfields; i++) {
7184 key = field[i]
7185 keylen = length(key)
7186 if (S_is_set[key]) {
7187 value = S[key]
7188 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7189 len += length(value) + length(field[++i])
7190 substed = 1
7191 } else
7192 len += 1 + keylen
7193 }
7194
7195 print line
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007196}
jfigusa14b5a02013-03-29 12:24:12 -04007197
jfigusc7e66e32013-05-08 11:32:55 -04007198_ACAWK
7199_ACEOF
7200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7201if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7202 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7203else
7204 cat
7205fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7206 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
jfigusa14b5a02013-03-29 12:24:12 -04007207_ACEOF
7208
jfigusc7e66e32013-05-08 11:32:55 -04007209# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7210# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7211# trailing colons and then remove the whole line if VPATH becomes empty
7212# (actually we leave an empty line to preserve line numbers).
7213if test "x$srcdir" = x.; then
7214 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7215h
7216s///
7217s/^/:/
7218s/[ ]*$/:/
7219s/:\$(srcdir):/:/g
7220s/:\${srcdir}:/:/g
7221s/:@srcdir@:/:/g
7222s/^:*//
7223s/:*$//
7224x
7225s/\(=[ ]*\).*/\1/
7226G
7227s/\n//
7228s/^[^=]*=[ ]*$//
7229}'
7230fi
jfigusa14b5a02013-03-29 12:24:12 -04007231
jfigusc7e66e32013-05-08 11:32:55 -04007232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007233fi # test -n "$CONFIG_FILES"
7234
jfigusc7e66e32013-05-08 11:32:55 -04007235# Set up the scripts for CONFIG_HEADERS section.
7236# No need to generate them if there are no CONFIG_HEADERS.
7237# This happens for instance with `./config.status Makefile'.
7238if test -n "$CONFIG_HEADERS"; then
7239cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7240BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00007241_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007242
7243# Transform confdefs.h into an awk script `defines.awk', embedded as
7244# here-document in config.status, that substitutes the proper values into
7245# config.h.in to produce config.h.
7246
7247# Create a delimiter string that does not exist in confdefs.h, to ease
7248# handling of long lines.
7249ac_delim='%!_!# '
7250for ac_last_try in false false :; do
7251 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7252 if test -z "$ac_tt"; then
7253 break
7254 elif $ac_last_try; then
7255 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7256 else
7257 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7258 fi
7259done
7260
7261# For the awk script, D is an array of macro values keyed by name,
7262# likewise P contains macro parameters if any. Preserve backslash
7263# newline sequences.
7264
7265ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7266sed -n '
7267s/.\{148\}/&'"$ac_delim"'/g
7268t rset
7269:rset
7270s/^[ ]*#[ ]*define[ ][ ]*/ /
7271t def
7272d
7273:def
7274s/\\$//
7275t bsnl
7276s/["\\]/\\&/g
7277s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7278D["\1"]=" \3"/p
7279s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7280d
7281:bsnl
7282s/["\\]/\\&/g
7283s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7284D["\1"]=" \3\\\\\\n"\\/p
7285t cont
7286s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7287t cont
7288d
7289:cont
7290n
7291s/.\{148\}/&'"$ac_delim"'/g
7292t clear
7293:clear
7294s/\\$//
7295t bsnlc
7296s/["\\]/\\&/g; s/^/"/; s/$/"/p
7297d
7298:bsnlc
7299s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7300b cont
7301' <confdefs.h | sed '
7302s/'"$ac_delim"'/"\\\
7303"/g' >>$CONFIG_STATUS || ac_write_fail=1
7304
7305cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7306 for (key in D) D_is_set[key] = 1
7307 FS = ""
7308}
7309/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7310 line = \$ 0
7311 split(line, arg, " ")
7312 if (arg[1] == "#") {
7313 defundef = arg[2]
7314 mac1 = arg[3]
7315 } else {
7316 defundef = substr(arg[1], 2)
7317 mac1 = arg[2]
7318 }
7319 split(mac1, mac2, "(") #)
7320 macro = mac2[1]
7321 prefix = substr(line, 1, index(line, defundef) - 1)
7322 if (D_is_set[macro]) {
7323 # Preserve the white space surrounding the "#".
7324 print prefix "define", macro P[macro] D[macro]
7325 next
7326 } else {
7327 # Replace #undef with comments. This is necessary, for example,
7328 # in the case of _POSIX_SOURCE, which is predefined and required
7329 # on some systems where configure will not decide to define it.
7330 if (defundef == "undef") {
7331 print "/*", prefix defundef, macro, "*/"
7332 next
7333 }
7334 }
7335}
7336{ print }
7337_ACAWK
7338_ACEOF
7339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7340 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7341fi # test -n "$CONFIG_HEADERS"
7342
7343
7344eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7345shift
7346for ac_tag
7347do
7348 case $ac_tag in
7349 :[FHLC]) ac_mode=$ac_tag; continue;;
7350 esac
7351 case $ac_mode$ac_tag in
7352 :[FHL]*:*);;
7353 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7354 :[FH]-) ac_tag=-:-;;
7355 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7356 esac
7357 ac_save_IFS=$IFS
7358 IFS=:
7359 set x $ac_tag
7360 IFS=$ac_save_IFS
7361 shift
7362 ac_file=$1
7363 shift
7364
7365 case $ac_mode in
7366 :L) ac_source=$1;;
7367 :[FH])
7368 ac_file_inputs=
7369 for ac_f
7370 do
7371 case $ac_f in
7372 -) ac_f="$ac_tmp/stdin";;
7373 *) # Look for the file first in the build tree, then in the source tree
7374 # (if the path is not absolute). The absolute path cannot be DOS-style,
7375 # because $ac_f cannot contain `:'.
7376 test -f "$ac_f" ||
7377 case $ac_f in
7378 [\\/$]*) false;;
7379 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7380 esac ||
7381 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7382 esac
7383 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7384 as_fn_append ac_file_inputs " '$ac_f'"
7385 done
7386
7387 # Let's still pretend it is `configure' which instantiates (i.e., don't
7388 # use $as_me), people would be surprised to read:
7389 # /* config.h. Generated by config.status. */
7390 configure_input='Generated from '`
7391 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7392 `' by configure.'
7393 if test x"$ac_file" != x-; then
7394 configure_input="$ac_file. $configure_input"
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7396$as_echo "$as_me: creating $ac_file" >&6;}
7397 fi
7398 # Neutralize special characters interpreted by sed in replacement strings.
7399 case $configure_input in #(
7400 *\&* | *\|* | *\\* )
7401 ac_sed_conf_input=`$as_echo "$configure_input" |
7402 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7403 *) ac_sed_conf_input=$configure_input;;
7404 esac
7405
7406 case $ac_tag in
7407 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7408 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7409 esac
7410 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007411 esac
7412
jfigusc7e66e32013-05-08 11:32:55 -04007413 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00007414$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00007415 X"$ac_file" : 'X\(//\)[^/]' \| \
7416 X"$ac_file" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04007417 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7418$as_echo X"$ac_file" |
7419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7420 s//\1/
7421 q
7422 }
7423 /^X\(\/\/\)[^/].*/{
7424 s//\1/
7425 q
7426 }
7427 /^X\(\/\/\)$/{
7428 s//\1/
7429 q
7430 }
7431 /^X\(\/\).*/{
7432 s//\1/
7433 q
7434 }
7435 s/.*/./; q'`
7436 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00007437 ac_builddir=.
7438
jfigusc7e66e32013-05-08 11:32:55 -04007439case "$ac_dir" in
7440.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7441*)
7442 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7443 # A ".." for each directory in $ac_dir_suffix.
7444 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7445 case $ac_top_builddir_sub in
7446 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7447 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7448 esac ;;
7449esac
7450ac_abs_top_builddir=$ac_pwd
7451ac_abs_builddir=$ac_pwd$ac_dir_suffix
7452# for backward compatibility:
7453ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00007454
7455case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04007456 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00007457 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04007458 ac_top_srcdir=$ac_top_builddir_sub
7459 ac_abs_top_srcdir=$ac_pwd ;;
7460 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00007461 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04007462 ac_top_srcdir=$srcdir
7463 ac_abs_top_srcdir=$srcdir ;;
7464 *) # Relative name.
7465 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7466 ac_top_srcdir=$ac_top_build_prefix$srcdir
7467 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007468esac
jfigusc7e66e32013-05-08 11:32:55 -04007469ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00007470
Cullen Jennings235513a2005-09-21 22:51:36 +00007471
jfigusc7e66e32013-05-08 11:32:55 -04007472 case $ac_mode in
7473 :F)
7474 #
7475 # CONFIG_FILE
7476 #
Cullen Jennings235513a2005-09-21 22:51:36 +00007477
David McGrewb67061f2005-09-28 14:23:06 +00007478 case $INSTALL in
7479 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusc7e66e32013-05-08 11:32:55 -04007480 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00007481 esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007482_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007483
7484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7485# If the template does not know about datarootdir, expand it.
7486# FIXME: This hack should be removed a few years after 2.60.
7487ac_datarootdir_hack=; ac_datarootdir_seen=
7488ac_sed_dataroot='
7489/datarootdir/ {
7490 p
7491 q
7492}
7493/@datadir@/p
7494/@docdir@/p
7495/@infodir@/p
7496/@localedir@/p
7497/@mandir@/p'
7498case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7499*datarootdir*) ac_datarootdir_seen=yes;;
7500*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7502$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7503_ACEOF
7504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7505 ac_datarootdir_hack='
7506 s&@datadir@&$datadir&g
7507 s&@docdir@&$docdir&g
7508 s&@infodir@&$infodir&g
7509 s&@localedir@&$localedir&g
7510 s&@mandir@&$mandir&g
7511 s&\\\${datarootdir}&$datarootdir&g' ;;
7512esac
7513_ACEOF
7514
7515# Neutralize VPATH when `$srcdir' = `.'.
7516# Shell code in configure.ac might set extrasub.
7517# FIXME: do we really want to maintain this feature?
7518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7519ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00007520$extrasub
7521_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007523:t
7524/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusc7e66e32013-05-08 11:32:55 -04007525s|@configure_input@|$ac_sed_conf_input|;t t
7526s&@top_builddir@&$ac_top_builddir_sub&;t t
7527s&@top_build_prefix@&$ac_top_build_prefix&;t t
7528s&@srcdir@&$ac_srcdir&;t t
7529s&@abs_srcdir@&$ac_abs_srcdir&;t t
7530s&@top_srcdir@&$ac_top_srcdir&;t t
7531s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7532s&@builddir@&$ac_builddir&;t t
7533s&@abs_builddir@&$ac_abs_builddir&;t t
7534s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7535s&@INSTALL@&$ac_INSTALL&;t t
7536$ac_datarootdir_hack
7537"
7538eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7539 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00007540
jfigusc7e66e32013-05-08 11:32:55 -04007541test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7542 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7543 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7544 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7546which seems to be undefined. Please make sure it is defined" >&5
7547$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7548which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00007549
jfigusc7e66e32013-05-08 11:32:55 -04007550 rm -f "$ac_tmp/stdin"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007551 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04007552 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7553 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7554 esac \
7555 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7556 ;;
7557 :H)
7558 #
7559 # CONFIG_HEADER
7560 #
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007561 if test x"$ac_file" != x-; then
jfigusc7e66e32013-05-08 11:32:55 -04007562 {
7563 $as_echo "/* $configure_input */" \
7564 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7565 } >"$ac_tmp/config.h" \
7566 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7567 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7569$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007570 else
jfigusc7e66e32013-05-08 11:32:55 -04007571 rm -f "$ac_file"
7572 mv "$ac_tmp/config.h" "$ac_file" \
7573 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007574 fi
7575 else
jfigusc7e66e32013-05-08 11:32:55 -04007576 $as_echo "/* $configure_input */" \
7577 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7578 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007579 fi
jfigusc7e66e32013-05-08 11:32:55 -04007580 ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007581
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007582
jfigusc7e66e32013-05-08 11:32:55 -04007583 esac
7584
7585done # for ac_tag
7586
7587
7588as_fn_exit 0
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007589_ACEOF
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007590ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04007591
jfigusc7e66e32013-05-08 11:32:55 -04007592test $ac_write_fail = 0 ||
7593 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7594
Cullen Jennings235513a2005-09-21 22:51:36 +00007595
7596# configure is writing to config.log, and then calls config.status.
7597# config.status does its own redirection, appending to config.log.
7598# Unfortunately, on DOS this fails, as config.log is still kept open
7599# by configure, so config.status won't be able to write to it; its
7600# output is simply discarded. So we exec the FD to /dev/null,
7601# effectively closing config.log, so it can be properly (re)opened and
7602# appended to by config.status. When coming back to configure, we
7603# need to make the FD available again.
7604if test "$no_create" != yes; then
7605 ac_cs_success=:
7606 ac_config_status_args=
7607 test "$silent" = yes &&
7608 ac_config_status_args="$ac_config_status_args --quiet"
7609 exec 5>/dev/null
7610 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7611 exec 5>>config.log
7612 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7613 # would make configure fail if this is the last instruction.
jfigusc7e66e32013-05-08 11:32:55 -04007614 $ac_cs_success || as_fn_exit 1
7615fi
7616if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7618$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00007619fi
7620
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00007621
7622# This is needed when building outside the source dir.
jfigusc7e66e32013-05-08 11:32:55 -04007623as_dir=crypto/cipher; as_fn_mkdir_p
7624as_dir=crypto/hash; as_fn_mkdir_p
7625as_dir=crypto/kernel; as_fn_mkdir_p
7626as_dir=crypto/math; as_fn_mkdir_p
7627as_dir=crypto/replay; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007628as_dir=crypto/test; as_fn_mkdir_p
7629as_dir=doc; as_fn_mkdir_p
7630as_dir=srtp; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007631as_dir=test; as_fn_mkdir_p