blob: 4a08225dbb313ed794790dcff46a1e820c0dd467 [file] [log] [blame]
Cullen Jennings235513a2005-09-21 22:51:36 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Pascal Bühler34acba62017-01-19 10:57:30 +01003# Generated by GNU Autoconf 2.69 for libsrtp2 2.1.0-pre.
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02004#
5# Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00006#
jfigusc7e66e32013-05-08 11:32:55 -04007#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
Cullen Jennings235513a2005-09-21 22:51:36 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
jfigusc7e66e32013-05-08 11:32:55 -040013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +000016
jfigusc7e66e32013-05-08 11:32:55 -040017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +000020 emulate sh
21 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -040022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -040025 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +000026else
jfigusc7e66e32013-05-08 11:32:55 -040027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
Cullen Jennings235513a2005-09-21 22:51:36 +000033fi
34
35
jfigusc7e66e32013-05-08 11:32:55 -040036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
Cullen Jennings235513a2005-09-21 22:51:36 +0000124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -0400129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -0400133
jfigusc7e66e32013-05-08 11:32:55 -0400134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://github.com/cisco/libsrtp/issues about your
271$0: system, including any error possibly output before this
jfigusc7e66e32013-05-08 11:32:55 -0400272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000424 as_expr=expr
425else
426 as_expr=false
427fi
428
jfigusc7e66e32013-05-08 11:32:55 -0400429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +0000430 as_basename=basename
431else
432 as_basename=false
433fi
434
jfigusc7e66e32013-05-08 11:32:55 -0400435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
Cullen Jennings235513a2005-09-21 22:51:36 +0000440
jfigusc7e66e32013-05-08 11:32:55 -0400441as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +0000442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -0400444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000459
Cullen Jennings235513a2005-09-21 22:51:36 +0000460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
Cullen Jennings235513a2005-09-21 22:51:36 +0000467
jfigusc7e66e32013-05-08 11:32:55 -0400468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
Cullen Jennings235513a2005-09-21 22:51:36 +0000477 sed '
jfigusc7e66e32013-05-08 11:32:55 -0400478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
Cullen Jennings235513a2005-09-21 22:51:36 +0000482 N
jfigusc7e66e32013-05-08 11:32:55 -0400483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Cullen Jennings235513a2005-09-21 22:51:36 +0000485 t loop
jfigusc7e66e32013-05-08 11:32:55 -0400486 s/-\n.*//
Cullen Jennings235513a2005-09-21 22:51:36 +0000487 ' >$as_me.lineno &&
jfigusc7e66e32013-05-08 11:32:55 -0400488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Cullen Jennings235513a2005-09-21 22:51:36 +0000490
jfigusc7e66e32013-05-08 11:32:55 -0400491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
Cullen Jennings235513a2005-09-21 22:51:36 +0000495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
jfigusc7e66e32013-05-08 11:32:55 -0400497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
Cullen Jennings235513a2005-09-21 22:51:36 +0000499 # Exit status is that of the last command.
500 exit
501}
502
jfigusc7e66e32013-05-08 11:32:55 -0400503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512*)
513 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000514esac
515
Cullen Jennings235513a2005-09-21 22:51:36 +0000516rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -0400517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -0600525 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -0400526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +0000536 fi
Cullen Jennings235513a2005-09-21 22:51:36 +0000537else
jfigusc7e66e32013-05-08 11:32:55 -0400538 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +0000539fi
jfigusc7e66e32013-05-08 11:32:55 -0400540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +0000542
543if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -0400544 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +0000545else
David McGrewfec49dd2005-09-23 19:34:11 +0000546 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +0000547 as_mkdir_p=false
548fi
549
jfigusc7e66e32013-05-08 11:32:55 -0400550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +0000552
553# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +0000554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000555
556# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +0000557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +0000558
559
jfigusc7e66e32013-05-08 11:32:55 -0400560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
Cullen Jennings235513a2005-09-21 22:51:36 +0000562
563# Name of the host.
jfigusc7e66e32013-05-08 11:32:55 -0400564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Cullen Jennings235513a2005-09-21 22:51:36 +0000565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
Cullen Jennings235513a2005-09-21 22:51:36 +0000568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
jfigusc7e66e32013-05-08 11:32:55 -0400572ac_clean_files=
Cullen Jennings235513a2005-09-21 22:51:36 +0000573ac_config_libobj_dir=.
jfigusc7e66e32013-05-08 11:32:55 -0400574LIBOBJS=
Cullen Jennings235513a2005-09-21 22:51:36 +0000575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
Cullen Jennings235513a2005-09-21 22:51:36 +0000579
580# Identity of this package.
jfigusd196e022014-11-20 16:43:44 -0500581PACKAGE_NAME='libsrtp2'
582PACKAGE_TARNAME='libsrtp2'
Pascal Bühler34acba62017-01-19 10:57:30 +0100583PACKAGE_VERSION='2.1.0-pre'
584PACKAGE_STRING='libsrtp2 2.1.0-pre'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200585PACKAGE_BUGREPORT='https://github.com/cisco/libsrtp/issues'
586PACKAGE_URL=''
Cullen Jennings235513a2005-09-21 22:51:36 +0000587
Cullen Jennings235513a2005-09-21 22:51:36 +0000588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -0400591#ifdef HAVE_SYS_TYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000592# include <sys/types.h>
593#endif
jfigusc7e66e32013-05-08 11:32:55 -0400594#ifdef HAVE_SYS_STAT_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000595# include <sys/stat.h>
596#endif
jfigusc7e66e32013-05-08 11:32:55 -0400597#ifdef STDC_HEADERS
Cullen Jennings235513a2005-09-21 22:51:36 +0000598# include <stdlib.h>
599# include <stddef.h>
600#else
jfigusc7e66e32013-05-08 11:32:55 -0400601# ifdef HAVE_STDLIB_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000602# include <stdlib.h>
603# endif
604#endif
jfigusc7e66e32013-05-08 11:32:55 -0400605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000607# include <memory.h>
608# endif
609# include <string.h>
610#endif
jfigusc7e66e32013-05-08 11:32:55 -0400611#ifdef HAVE_STRINGS_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000612# include <strings.h>
613#endif
jfigusc7e66e32013-05-08 11:32:55 -0400614#ifdef HAVE_INTTYPES_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000615# include <inttypes.h>
Cullen Jennings235513a2005-09-21 22:51:36 +0000616#endif
jfigusc7e66e32013-05-08 11:32:55 -0400617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
Cullen Jennings235513a2005-09-21 22:51:36 +0000621# include <unistd.h>
622#endif"
623
jfigusc7e66e32013-05-08 11:32:55 -0400624ac_subst_vars='LTLIBOBJS
625LIBOBJS
Bernardo Torresb3c51422014-10-14 12:40:09 -0300626HAVE_PCAP
jfigusc7e66e32013-05-08 11:32:55 -0400627HMAC_OBJS
jfigusc7e66e32013-05-08 11:32:55 -0400628AES_ICM_OBJS
629USE_OPENSSL
Idar Tollefsen600ad962017-01-26 11:24:51 +0100630crypto_LIBS
631crypto_CFLAGS
632PKG_CONFIG_LIBDIR
633PKG_CONFIG_PATH
634PKG_CONFIG
jfigusc7e66e32013-05-08 11:32:55 -0400635EXE
636host_os
637host_vendor
638host_cpu
639host
640build_os
641build_vendor
642build_cpu
643build
644EGREP
645GREP
646CPP
Idar Tollefsen600ad962017-01-26 11:24:51 +0100647SED
jfigusc7e66e32013-05-08 11:32:55 -0400648INSTALL_DATA
649INSTALL_SCRIPT
650INSTALL_PROGRAM
jfigus1ce6a742015-04-06 08:54:01 -0400651RANLIB
jfigusc7e66e32013-05-08 11:32:55 -0400652OBJEXT
653EXEEXT
654ac_ct_CC
655CPPFLAGS
656LDFLAGS
657CFLAGS
658CC
jfigus1ce6a742015-04-06 08:54:01 -0400659ac_ct_AR
660AR
jfigusc7e66e32013-05-08 11:32:55 -0400661target_alias
662host_alias
663build_alias
664LIBS
665ECHO_T
666ECHO_N
667ECHO_C
668DEFS
669mandir
670localedir
671libdir
672psdir
673pdfdir
674dvidir
675htmldir
676infodir
677docdir
678oldincludedir
679includedir
680localstatedir
681sharedstatedir
682sysconfdir
683datadir
684datarootdir
685libexecdir
686sbindir
687bindir
688program_transform_name
689prefix
690exec_prefix
691PACKAGE_URL
692PACKAGE_BUGREPORT
693PACKAGE_STRING
694PACKAGE_VERSION
695PACKAGE_TARNAME
696PACKAGE_NAME
697PATH_SEPARATOR
698SHELL'
Cullen Jennings235513a2005-09-21 22:51:36 +0000699ac_subst_files=''
jfigusc7e66e32013-05-08 11:32:55 -0400700ac_user_opts='
701enable_option_checking
Pascal Bühler75918862017-02-19 18:33:50 +0100702enable_debug_logging
jfigusc7e66e32013-05-08 11:32:55 -0400703enable_openssl
jfigus038d2cf2015-05-11 14:10:11 -0400704with_openssl_dir
705enable_openssl_kdf
Pascal Bühler75918862017-02-19 18:33:50 +0100706enable_log_stdout
707with_log_file
jfigusc7e66e32013-05-08 11:32:55 -0400708'
709 ac_precious_vars='build_alias
710host_alias
711target_alias
712CC
713CFLAGS
714LDFLAGS
715LIBS
716CPPFLAGS
Idar Tollefsen600ad962017-01-26 11:24:51 +0100717CPP
718PKG_CONFIG
719PKG_CONFIG_PATH
720PKG_CONFIG_LIBDIR
721crypto_CFLAGS
722crypto_LIBS'
jfigusc7e66e32013-05-08 11:32:55 -0400723
Cullen Jennings235513a2005-09-21 22:51:36 +0000724
725# Initialize some variables set by options.
726ac_init_help=
727ac_init_version=false
jfigusc7e66e32013-05-08 11:32:55 -0400728ac_unrecognized_opts=
729ac_unrecognized_sep=
Cullen Jennings235513a2005-09-21 22:51:36 +0000730# The variables have the same names as the options, with
731# dashes changed to underlines.
732cache_file=/dev/null
733exec_prefix=NONE
734no_create=
735no_recursion=
736prefix=NONE
737program_prefix=NONE
738program_suffix=NONE
739program_transform_name=s,x,x,
740silent=
741site=
742srcdir=
743verbose=
744x_includes=NONE
745x_libraries=NONE
746
747# Installation directory options.
748# These are left unexpanded so users can "make install exec_prefix=/foo"
749# and all the variables that are supposed to be based on exec_prefix
750# by default will actually change.
751# Use braces instead of parens because sh, perl, etc. also accept them.
jfigusc7e66e32013-05-08 11:32:55 -0400752# (The list follows the same order as the GNU Coding Standards.)
Cullen Jennings235513a2005-09-21 22:51:36 +0000753bindir='${exec_prefix}/bin'
754sbindir='${exec_prefix}/sbin'
755libexecdir='${exec_prefix}/libexec'
jfigusc7e66e32013-05-08 11:32:55 -0400756datarootdir='${prefix}/share'
757datadir='${datarootdir}'
Cullen Jennings235513a2005-09-21 22:51:36 +0000758sysconfdir='${prefix}/etc'
759sharedstatedir='${prefix}/com'
760localstatedir='${prefix}/var'
Cullen Jennings235513a2005-09-21 22:51:36 +0000761includedir='${prefix}/include'
762oldincludedir='/usr/include'
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +0200763docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
jfigusc7e66e32013-05-08 11:32:55 -0400764infodir='${datarootdir}/info'
765htmldir='${docdir}'
766dvidir='${docdir}'
767pdfdir='${docdir}'
768psdir='${docdir}'
769libdir='${exec_prefix}/lib'
770localedir='${datarootdir}/locale'
771mandir='${datarootdir}/man'
Cullen Jennings235513a2005-09-21 22:51:36 +0000772
773ac_prev=
jfigusc7e66e32013-05-08 11:32:55 -0400774ac_dashdash=
Cullen Jennings235513a2005-09-21 22:51:36 +0000775for ac_option
776do
777 # If the previous option needs an argument, assign it.
778 if test -n "$ac_prev"; then
jfigusc7e66e32013-05-08 11:32:55 -0400779 eval $ac_prev=\$ac_option
Cullen Jennings235513a2005-09-21 22:51:36 +0000780 ac_prev=
781 continue
782 fi
783
jfigusc7e66e32013-05-08 11:32:55 -0400784 case $ac_option in
785 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786 *=) ac_optarg= ;;
787 *) ac_optarg=yes ;;
788 esac
Cullen Jennings235513a2005-09-21 22:51:36 +0000789
790 # Accept the important Cygnus configure options, so we can diagnose typos.
791
jfigusc7e66e32013-05-08 11:32:55 -0400792 case $ac_dashdash$ac_option in
793 --)
794 ac_dashdash=yes ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000795
796 -bindir | --bindir | --bindi | --bind | --bin | --bi)
797 ac_prev=bindir ;;
798 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
799 bindir=$ac_optarg ;;
800
801 -build | --build | --buil | --bui | --bu)
802 ac_prev=build_alias ;;
803 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
804 build_alias=$ac_optarg ;;
805
806 -cache-file | --cache-file | --cache-fil | --cache-fi \
807 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
808 ac_prev=cache_file ;;
809 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
810 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
811 cache_file=$ac_optarg ;;
812
813 --config-cache | -C)
814 cache_file=config.cache ;;
815
jfigusc7e66e32013-05-08 11:32:55 -0400816 -datadir | --datadir | --datadi | --datad)
Cullen Jennings235513a2005-09-21 22:51:36 +0000817 ac_prev=datadir ;;
jfigusc7e66e32013-05-08 11:32:55 -0400818 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000819 datadir=$ac_optarg ;;
820
jfigusc7e66e32013-05-08 11:32:55 -0400821 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
822 | --dataroo | --dataro | --datar)
823 ac_prev=datarootdir ;;
824 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
825 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
826 datarootdir=$ac_optarg ;;
827
Cullen Jennings235513a2005-09-21 22:51:36 +0000828 -disable-* | --disable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400829 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000830 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400831 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
832 as_fn_error $? "invalid feature name: $ac_useropt"
833 ac_useropt_orig=$ac_useropt
834 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
835 case $ac_user_opts in
836 *"
837"enable_$ac_useropt"
838"*) ;;
839 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
840 ac_unrecognized_sep=', ';;
841 esac
842 eval enable_$ac_useropt=no ;;
843
844 -docdir | --docdir | --docdi | --doc | --do)
845 ac_prev=docdir ;;
846 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
847 docdir=$ac_optarg ;;
848
849 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
850 ac_prev=dvidir ;;
851 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
852 dvidir=$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000853
854 -enable-* | --enable-*)
jfigusc7e66e32013-05-08 11:32:55 -0400855 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +0000856 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -0400857 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
858 as_fn_error $? "invalid feature name: $ac_useropt"
859 ac_useropt_orig=$ac_useropt
860 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861 case $ac_user_opts in
862 *"
863"enable_$ac_useropt"
864"*) ;;
865 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
866 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +0000867 esac
jfigusc7e66e32013-05-08 11:32:55 -0400868 eval enable_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +0000869
870 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
871 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
872 | --exec | --exe | --ex)
873 ac_prev=exec_prefix ;;
874 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
875 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
876 | --exec=* | --exe=* | --ex=*)
877 exec_prefix=$ac_optarg ;;
878
879 -gas | --gas | --ga | --g)
880 # Obsolete; use --with-gas.
881 with_gas=yes ;;
882
883 -help | --help | --hel | --he | -h)
884 ac_init_help=long ;;
885 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
886 ac_init_help=recursive ;;
887 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
888 ac_init_help=short ;;
889
890 -host | --host | --hos | --ho)
891 ac_prev=host_alias ;;
892 -host=* | --host=* | --hos=* | --ho=*)
893 host_alias=$ac_optarg ;;
894
jfigusc7e66e32013-05-08 11:32:55 -0400895 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
896 ac_prev=htmldir ;;
897 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
898 | --ht=*)
899 htmldir=$ac_optarg ;;
900
Cullen Jennings235513a2005-09-21 22:51:36 +0000901 -includedir | --includedir | --includedi | --included | --include \
902 | --includ | --inclu | --incl | --inc)
903 ac_prev=includedir ;;
904 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
905 | --includ=* | --inclu=* | --incl=* | --inc=*)
906 includedir=$ac_optarg ;;
907
908 -infodir | --infodir | --infodi | --infod | --info | --inf)
909 ac_prev=infodir ;;
910 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
911 infodir=$ac_optarg ;;
912
913 -libdir | --libdir | --libdi | --libd)
914 ac_prev=libdir ;;
915 -libdir=* | --libdir=* | --libdi=* | --libd=*)
916 libdir=$ac_optarg ;;
917
918 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
919 | --libexe | --libex | --libe)
920 ac_prev=libexecdir ;;
921 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
922 | --libexe=* | --libex=* | --libe=*)
923 libexecdir=$ac_optarg ;;
924
jfigusc7e66e32013-05-08 11:32:55 -0400925 -localedir | --localedir | --localedi | --localed | --locale)
926 ac_prev=localedir ;;
927 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
928 localedir=$ac_optarg ;;
929
Cullen Jennings235513a2005-09-21 22:51:36 +0000930 -localstatedir | --localstatedir | --localstatedi | --localstated \
jfigusc7e66e32013-05-08 11:32:55 -0400931 | --localstate | --localstat | --localsta | --localst | --locals)
Cullen Jennings235513a2005-09-21 22:51:36 +0000932 ac_prev=localstatedir ;;
933 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
jfigusc7e66e32013-05-08 11:32:55 -0400934 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Cullen Jennings235513a2005-09-21 22:51:36 +0000935 localstatedir=$ac_optarg ;;
936
937 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
938 ac_prev=mandir ;;
939 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
940 mandir=$ac_optarg ;;
941
942 -nfp | --nfp | --nf)
943 # Obsolete; use --without-fp.
944 with_fp=no ;;
945
946 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
947 | --no-cr | --no-c | -n)
948 no_create=yes ;;
949
950 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
951 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
952 no_recursion=yes ;;
953
954 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
955 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
956 | --oldin | --oldi | --old | --ol | --o)
957 ac_prev=oldincludedir ;;
958 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
959 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
960 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
961 oldincludedir=$ac_optarg ;;
962
963 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
964 ac_prev=prefix ;;
965 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
966 prefix=$ac_optarg ;;
967
968 -program-prefix | --program-prefix | --program-prefi | --program-pref \
969 | --program-pre | --program-pr | --program-p)
970 ac_prev=program_prefix ;;
971 -program-prefix=* | --program-prefix=* | --program-prefi=* \
972 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
973 program_prefix=$ac_optarg ;;
974
975 -program-suffix | --program-suffix | --program-suffi | --program-suff \
976 | --program-suf | --program-su | --program-s)
977 ac_prev=program_suffix ;;
978 -program-suffix=* | --program-suffix=* | --program-suffi=* \
979 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
980 program_suffix=$ac_optarg ;;
981
982 -program-transform-name | --program-transform-name \
983 | --program-transform-nam | --program-transform-na \
984 | --program-transform-n | --program-transform- \
985 | --program-transform | --program-transfor \
986 | --program-transfo | --program-transf \
987 | --program-trans | --program-tran \
988 | --progr-tra | --program-tr | --program-t)
989 ac_prev=program_transform_name ;;
990 -program-transform-name=* | --program-transform-name=* \
991 | --program-transform-nam=* | --program-transform-na=* \
992 | --program-transform-n=* | --program-transform-=* \
993 | --program-transform=* | --program-transfor=* \
994 | --program-transfo=* | --program-transf=* \
995 | --program-trans=* | --program-tran=* \
996 | --progr-tra=* | --program-tr=* | --program-t=*)
997 program_transform_name=$ac_optarg ;;
998
jfigusc7e66e32013-05-08 11:32:55 -0400999 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1000 ac_prev=pdfdir ;;
1001 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1002 pdfdir=$ac_optarg ;;
1003
1004 -psdir | --psdir | --psdi | --psd | --ps)
1005 ac_prev=psdir ;;
1006 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1007 psdir=$ac_optarg ;;
1008
Cullen Jennings235513a2005-09-21 22:51:36 +00001009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1010 | -silent | --silent | --silen | --sile | --sil)
1011 silent=yes ;;
1012
1013 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1014 ac_prev=sbindir ;;
1015 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1016 | --sbi=* | --sb=*)
1017 sbindir=$ac_optarg ;;
1018
1019 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1020 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1021 | --sharedst | --shareds | --shared | --share | --shar \
1022 | --sha | --sh)
1023 ac_prev=sharedstatedir ;;
1024 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1025 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1026 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1027 | --sha=* | --sh=*)
1028 sharedstatedir=$ac_optarg ;;
1029
1030 -site | --site | --sit)
1031 ac_prev=site ;;
1032 -site=* | --site=* | --sit=*)
1033 site=$ac_optarg ;;
1034
1035 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1036 ac_prev=srcdir ;;
1037 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1038 srcdir=$ac_optarg ;;
1039
1040 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1041 | --syscon | --sysco | --sysc | --sys | --sy)
1042 ac_prev=sysconfdir ;;
1043 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1044 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1045 sysconfdir=$ac_optarg ;;
1046
1047 -target | --target | --targe | --targ | --tar | --ta | --t)
1048 ac_prev=target_alias ;;
1049 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1050 target_alias=$ac_optarg ;;
1051
1052 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1053 verbose=yes ;;
1054
1055 -version | --version | --versio | --versi | --vers | -V)
1056 ac_init_version=: ;;
1057
1058 -with-* | --with-*)
jfigusc7e66e32013-05-08 11:32:55 -04001059 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001060 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062 as_fn_error $? "invalid package name: $ac_useropt"
1063 ac_useropt_orig=$ac_useropt
1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1066 *"
1067"with_$ac_useropt"
1068"*) ;;
1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1070 ac_unrecognized_sep=', ';;
Cullen Jennings235513a2005-09-21 22:51:36 +00001071 esac
jfigusc7e66e32013-05-08 11:32:55 -04001072 eval with_$ac_useropt=\$ac_optarg ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001073
1074 -without-* | --without-*)
jfigusc7e66e32013-05-08 11:32:55 -04001075 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001076 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 as_fn_error $? "invalid package name: $ac_useropt"
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1082 *"
1083"with_$ac_useropt"
1084"*) ;;
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1087 esac
1088 eval with_$ac_useropt=no ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001089
1090 --x)
1091 # Obsolete; use --with-x.
1092 with_x=yes ;;
1093
1094 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1095 | --x-incl | --x-inc | --x-in | --x-i)
1096 ac_prev=x_includes ;;
1097 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1098 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1099 x_includes=$ac_optarg ;;
1100
1101 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1102 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1103 ac_prev=x_libraries ;;
1104 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1105 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1106 x_libraries=$ac_optarg ;;
1107
jfigusc7e66e32013-05-08 11:32:55 -04001108 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1109Try \`$0 --help' for more information"
Cullen Jennings235513a2005-09-21 22:51:36 +00001110 ;;
1111
1112 *=*)
1113 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1114 # Reject names that are not valid shell variable names.
jfigusc7e66e32013-05-08 11:32:55 -04001115 case $ac_envvar in #(
1116 '' | [0-9]* | *[!_$as_cr_alnum]* )
1117 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1118 esac
1119 eval $ac_envvar=\$ac_optarg
Cullen Jennings235513a2005-09-21 22:51:36 +00001120 export $ac_envvar ;;
1121
1122 *)
1123 # FIXME: should be removed in autoconf 3.0.
jfigusc7e66e32013-05-08 11:32:55 -04001124 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Cullen Jennings235513a2005-09-21 22:51:36 +00001125 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jfigusc7e66e32013-05-08 11:32:55 -04001126 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1127 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Cullen Jennings235513a2005-09-21 22:51:36 +00001128 ;;
1129
1130 esac
1131done
1132
1133if test -n "$ac_prev"; then
1134 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jfigusc7e66e32013-05-08 11:32:55 -04001135 as_fn_error $? "missing argument to $ac_option"
Cullen Jennings235513a2005-09-21 22:51:36 +00001136fi
1137
jfigusc7e66e32013-05-08 11:32:55 -04001138if test -n "$ac_unrecognized_opts"; then
1139 case $enable_option_checking in
1140 no) ;;
1141 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1142 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00001143 esac
jfigusc7e66e32013-05-08 11:32:55 -04001144fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001145
jfigusc7e66e32013-05-08 11:32:55 -04001146# Check all directory arguments for consistency.
1147for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1148 datadir sysconfdir sharedstatedir localstatedir includedir \
1149 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Pascal Bühlerac872e72017-02-09 14:55:27 +01001150 libdir localedir mandir
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001151do
jfigusc7e66e32013-05-08 11:32:55 -04001152 eval ac_val=\$$ac_var
1153 # Remove trailing slashes.
jfigusa14b5a02013-03-29 12:24:12 -04001154 case $ac_val in
jfigusc7e66e32013-05-08 11:32:55 -04001155 */ )
1156 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1157 eval $ac_var=\$ac_val;;
jfigusa14b5a02013-03-29 12:24:12 -04001158 esac
jfigusc7e66e32013-05-08 11:32:55 -04001159 # Be sure to have absolute directory names.
1160 case $ac_val in
1161 [\\/$]* | ?:[\\/]* ) continue;;
1162 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1163 esac
1164 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Cullen Jennings235513a2005-09-21 22:51:36 +00001165done
1166
1167# There might be people who depend on the old broken behavior: `$host'
1168# used to hold the argument of --host etc.
1169# FIXME: To remove some day.
1170build=$build_alias
1171host=$host_alias
1172target=$target_alias
1173
1174# FIXME: To remove some day.
1175if test "x$host_alias" != x; then
1176 if test "x$build_alias" = x; then
1177 cross_compiling=maybe
Cullen Jennings235513a2005-09-21 22:51:36 +00001178 elif test "x$build_alias" != "x$host_alias"; then
1179 cross_compiling=yes
1180 fi
1181fi
1182
1183ac_tool_prefix=
1184test -n "$host_alias" && ac_tool_prefix=$host_alias-
1185
1186test "$silent" = yes && exec 6>/dev/null
1187
1188
jfigusc7e66e32013-05-08 11:32:55 -04001189ac_pwd=`pwd` && test -n "$ac_pwd" &&
1190ac_ls_di=`ls -di .` &&
1191ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1192 as_fn_error $? "working directory cannot be determined"
1193test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1194 as_fn_error $? "pwd does not report name of working directory"
1195
1196
Cullen Jennings235513a2005-09-21 22:51:36 +00001197# Find the source files, if location was not specified.
1198if test -z "$srcdir"; then
1199 ac_srcdir_defaulted=yes
jfigusc7e66e32013-05-08 11:32:55 -04001200 # Try the directory containing this script, then the parent directory.
1201 ac_confdir=`$as_dirname -- "$as_myself" ||
1202$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1203 X"$as_myself" : 'X\(//\)[^/]' \| \
1204 X"$as_myself" : 'X\(//\)$' \| \
1205 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1206$as_echo X"$as_myself" |
1207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1208 s//\1/
1209 q
1210 }
1211 /^X\(\/\/\)[^/].*/{
1212 s//\1/
1213 q
1214 }
1215 /^X\(\/\/\)$/{
1216 s//\1/
1217 q
1218 }
1219 /^X\(\/\).*/{
1220 s//\1/
1221 q
1222 }
1223 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00001224 srcdir=$ac_confdir
jfigusc7e66e32013-05-08 11:32:55 -04001225 if test ! -r "$srcdir/$ac_unique_file"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00001226 srcdir=..
1227 fi
1228else
1229 ac_srcdir_defaulted=no
1230fi
jfigusc7e66e32013-05-08 11:32:55 -04001231if test ! -r "$srcdir/$ac_unique_file"; then
1232 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1233 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Cullen Jennings235513a2005-09-21 22:51:36 +00001234fi
jfigusc7e66e32013-05-08 11:32:55 -04001235ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1236ac_abs_confdir=`(
1237 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1238 pwd)`
1239# When building in place, set srcdir=.
1240if test "$ac_abs_confdir" = "$ac_pwd"; then
1241 srcdir=.
1242fi
1243# Remove unnecessary trailing slashes from srcdir.
1244# Double slashes in file names in object file debugging info
1245# mess up M-x gdb in Emacs.
1246case $srcdir in
1247*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1248esac
1249for ac_var in $ac_precious_vars; do
1250 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1251 eval ac_env_${ac_var}_value=\$${ac_var}
1252 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1253 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1254done
Cullen Jennings235513a2005-09-21 22:51:36 +00001255
1256#
1257# Report the --help message.
1258#
1259if test "$ac_init_help" = "long"; then
1260 # Omit some internal or obsolete options to make the list less imposing.
1261 # This message is too long to be a string in the A/UX 3.1 sh.
1262 cat <<_ACEOF
Pascal Bühler34acba62017-01-19 10:57:30 +01001263\`configure' configures libsrtp2 2.1.0-pre to adapt to many kinds of systems.
Cullen Jennings235513a2005-09-21 22:51:36 +00001264
1265Usage: $0 [OPTION]... [VAR=VALUE]...
1266
1267To assign environment variables (e.g., CC, CFLAGS...), specify them as
1268VAR=VALUE. See below for descriptions of some of the useful variables.
1269
1270Defaults for the options are specified in brackets.
1271
1272Configuration:
1273 -h, --help display this help and exit
1274 --help=short display options specific to this package
1275 --help=recursive display the short help of all the included packages
1276 -V, --version display version information and exit
jfigusc7e66e32013-05-08 11:32:55 -04001277 -q, --quiet, --silent do not print \`checking ...' messages
Cullen Jennings235513a2005-09-21 22:51:36 +00001278 --cache-file=FILE cache test results in FILE [disabled]
1279 -C, --config-cache alias for \`--cache-file=config.cache'
1280 -n, --no-create do not create output files
1281 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1282
Cullen Jennings235513a2005-09-21 22:51:36 +00001283Installation directories:
1284 --prefix=PREFIX install architecture-independent files in PREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001285 [$ac_default_prefix]
Cullen Jennings235513a2005-09-21 22:51:36 +00001286 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jfigusc7e66e32013-05-08 11:32:55 -04001287 [PREFIX]
Cullen Jennings235513a2005-09-21 22:51:36 +00001288
1289By default, \`make install' will install all the files in
1290\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1291an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1292for instance \`--prefix=\$HOME'.
1293
1294For better control, use the options below.
1295
1296Fine tuning of the installation directories:
jfigusc7e66e32013-05-08 11:32:55 -04001297 --bindir=DIR user executables [EPREFIX/bin]
1298 --sbindir=DIR system admin executables [EPREFIX/sbin]
1299 --libexecdir=DIR program executables [EPREFIX/libexec]
1300 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1301 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1302 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1303 --libdir=DIR object code libraries [EPREFIX/lib]
1304 --includedir=DIR C header files [PREFIX/include]
1305 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1306 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1307 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1308 --infodir=DIR info documentation [DATAROOTDIR/info]
1309 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1310 --mandir=DIR man documentation [DATAROOTDIR/man]
jfigusd196e022014-11-20 16:43:44 -05001311 --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp2]
jfigusc7e66e32013-05-08 11:32:55 -04001312 --htmldir=DIR html documentation [DOCDIR]
1313 --dvidir=DIR dvi documentation [DOCDIR]
1314 --pdfdir=DIR pdf documentation [DOCDIR]
1315 --psdir=DIR ps documentation [DOCDIR]
Cullen Jennings235513a2005-09-21 22:51:36 +00001316_ACEOF
1317
1318 cat <<\_ACEOF
1319
1320System types:
1321 --build=BUILD configure for building on BUILD [guessed]
1322 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1323_ACEOF
1324fi
1325
1326if test -n "$ac_init_help"; then
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001327 case $ac_init_help in
Pascal Bühler34acba62017-01-19 10:57:30 +01001328 short | recursive ) echo "Configuration of libsrtp2 2.1.0-pre:";;
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001329 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00001330 cat <<\_ACEOF
1331
1332Optional Features:
jfigusc7e66e32013-05-08 11:32:55 -04001333 --disable-option-checking ignore unrecognized --enable/--with options
Cullen Jennings235513a2005-09-21 22:51:36 +00001334 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1335 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Pascal Bühler75918862017-02-19 18:33:50 +01001336 --enable-debug-logging Enable debug logging in all modules
jfigusc7e66e32013-05-08 11:32:55 -04001337 --enable-openssl compile in OpenSSL crypto engine
jfigus038d2cf2015-05-11 14:10:11 -04001338 --enable-openssl-kdf Use OpenSSL KDF algorithm
Pascal Bühler75918862017-02-19 18:33:50 +01001339 --enable-log-stdout redirecting logging to stdout
Cullen Jennings235513a2005-09-21 22:51:36 +00001340
jfigus038d2cf2015-05-11 14:10:11 -04001341Optional Packages:
1342 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1343 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1344 --with-openssl-dir Location of OpenSSL installation
Pascal Bühler75918862017-02-19 18:33:50 +01001345 --with-log-file Use file for logging
jfigus038d2cf2015-05-11 14:10:11 -04001346
Cullen Jennings235513a2005-09-21 22:51:36 +00001347Some influential environment variables:
1348 CC C compiler command
1349 CFLAGS C compiler flags
1350 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1351 nonstandard directory <lib dir>
jfigusc7e66e32013-05-08 11:32:55 -04001352 LIBS libraries to pass to the linker, e.g. -l<library>
1353 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1354 you have headers in a nonstandard directory <include dir>
Cullen Jennings235513a2005-09-21 22:51:36 +00001355 CPP C preprocessor
Idar Tollefsen600ad962017-01-26 11:24:51 +01001356 PKG_CONFIG path to pkg-config utility
1357 PKG_CONFIG_PATH
1358 directories to add to pkg-config's search path
1359 PKG_CONFIG_LIBDIR
1360 path overriding pkg-config's built-in search path
1361 crypto_CFLAGS
1362 C compiler flags for crypto, overriding pkg-config
1363 crypto_LIBS linker flags for crypto, overriding pkg-config
Cullen Jennings235513a2005-09-21 22:51:36 +00001364
1365Use these variables to override the choices made by `configure' or to help
1366it to find libraries and programs with nonstandard names/locations.
1367
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02001368Report bugs to <https://github.com/cisco/libsrtp/issues>.
Cullen Jennings235513a2005-09-21 22:51:36 +00001369_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001370ac_status=$?
Cullen Jennings235513a2005-09-21 22:51:36 +00001371fi
1372
1373if test "$ac_init_help" = "recursive"; then
1374 # If there are subdirs, report their specific --help.
Cullen Jennings235513a2005-09-21 22:51:36 +00001375 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jfigusc7e66e32013-05-08 11:32:55 -04001376 test -d "$ac_dir" ||
1377 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1378 continue
Cullen Jennings235513a2005-09-21 22:51:36 +00001379 ac_builddir=.
1380
jfigusc7e66e32013-05-08 11:32:55 -04001381case "$ac_dir" in
1382.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383*)
1384 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1385 # A ".." for each directory in $ac_dir_suffix.
1386 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1387 case $ac_top_builddir_sub in
1388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1390 esac ;;
1391esac
1392ac_abs_top_builddir=$ac_pwd
1393ac_abs_builddir=$ac_pwd$ac_dir_suffix
1394# for backward compatibility:
1395ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00001396
1397case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04001398 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00001399 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04001400 ac_top_srcdir=$ac_top_builddir_sub
1401 ac_abs_top_srcdir=$ac_pwd ;;
1402 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001403 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04001404 ac_top_srcdir=$srcdir
1405 ac_abs_top_srcdir=$srcdir ;;
1406 *) # Relative name.
1407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1408 ac_top_srcdir=$ac_top_build_prefix$srcdir
1409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001410esac
jfigusc7e66e32013-05-08 11:32:55 -04001411ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001412
jfigusc7e66e32013-05-08 11:32:55 -04001413 cd "$ac_dir" || { ac_status=$?; continue; }
1414 # Check for guested configure.
1415 if test -f "$ac_srcdir/configure.gnu"; then
1416 echo &&
1417 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1418 elif test -f "$ac_srcdir/configure"; then
1419 echo &&
1420 $SHELL "$ac_srcdir/configure" --help=recursive
Cullen Jennings52c5cd32013-05-01 18:07:29 -06001421 else
jfigusc7e66e32013-05-08 11:32:55 -04001422 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1423 fi || ac_status=$?
1424 cd "$ac_pwd" || { ac_status=$?; break; }
Cullen Jennings235513a2005-09-21 22:51:36 +00001425 done
1426fi
1427
jfigusc7e66e32013-05-08 11:32:55 -04001428test -n "$ac_init_help" && exit $ac_status
Cullen Jennings235513a2005-09-21 22:51:36 +00001429if $ac_init_version; then
1430 cat <<\_ACEOF
Pascal Bühler34acba62017-01-19 10:57:30 +01001431libsrtp2 configure 2.1.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04001432generated by GNU Autoconf 2.69
Cullen Jennings235513a2005-09-21 22:51:36 +00001433
jfigusc7e66e32013-05-08 11:32:55 -04001434Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00001435This configure script is free software; the Free Software Foundation
1436gives unlimited permission to copy, distribute and modify it.
1437_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001438 exit
Cullen Jennings235513a2005-09-21 22:51:36 +00001439fi
jfigusc7e66e32013-05-08 11:32:55 -04001440
1441## ------------------------ ##
1442## Autoconf initialization. ##
1443## ------------------------ ##
1444
1445# ac_fn_c_try_compile LINENO
1446# --------------------------
1447# Try to compile conftest.$ac_ext, and return whether this succeeded.
1448ac_fn_c_try_compile ()
1449{
1450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1451 rm -f conftest.$ac_objext
1452 if { { ac_try="$ac_compile"
1453case "(($ac_try" in
1454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1455 *) ac_try_echo=$ac_try;;
1456esac
1457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1458$as_echo "$ac_try_echo"; } >&5
1459 (eval "$ac_compile") 2>conftest.err
1460 ac_status=$?
1461 if test -s conftest.err; then
1462 grep -v '^ *+' conftest.err >conftest.er1
1463 cat conftest.er1 >&5
1464 mv -f conftest.er1 conftest.err
1465 fi
1466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1467 test $ac_status = 0; } && {
1468 test -z "$ac_c_werror_flag" ||
1469 test ! -s conftest.err
1470 } && test -s conftest.$ac_objext; then :
1471 ac_retval=0
1472else
1473 $as_echo "$as_me: failed program was:" >&5
1474sed 's/^/| /' conftest.$ac_ext >&5
1475
1476 ac_retval=1
1477fi
1478 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1479 as_fn_set_status $ac_retval
1480
1481} # ac_fn_c_try_compile
1482
1483# ac_fn_c_try_run LINENO
1484# ----------------------
1485# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1486# that executables *can* be run.
1487ac_fn_c_try_run ()
1488{
1489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1490 if { { ac_try="$ac_link"
1491case "(($ac_try" in
1492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493 *) ac_try_echo=$ac_try;;
1494esac
1495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496$as_echo "$ac_try_echo"; } >&5
1497 (eval "$ac_link") 2>&5
1498 ac_status=$?
1499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1501 { { case "(($ac_try" in
1502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503 *) ac_try_echo=$ac_try;;
1504esac
1505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506$as_echo "$ac_try_echo"; } >&5
1507 (eval "$ac_try") 2>&5
1508 ac_status=$?
1509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1510 test $ac_status = 0; }; }; then :
1511 ac_retval=0
1512else
1513 $as_echo "$as_me: program exited with status $ac_status" >&5
1514 $as_echo "$as_me: failed program was:" >&5
1515sed 's/^/| /' conftest.$ac_ext >&5
1516
1517 ac_retval=$ac_status
1518fi
1519 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1521 as_fn_set_status $ac_retval
1522
1523} # ac_fn_c_try_run
1524
1525# ac_fn_c_try_cpp LINENO
1526# ----------------------
1527# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1528ac_fn_c_try_cpp ()
1529{
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531 if { { ac_try="$ac_cpp conftest.$ac_ext"
1532case "(($ac_try" in
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1535esac
1536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537$as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1539 ac_status=$?
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1544 fi
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } > conftest.i && {
1547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1548 test ! -s conftest.err
1549 }; then :
1550 ac_retval=0
1551else
1552 $as_echo "$as_me: failed program was:" >&5
1553sed 's/^/| /' conftest.$ac_ext >&5
1554
1555 ac_retval=1
1556fi
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 as_fn_set_status $ac_retval
1559
1560} # ac_fn_c_try_cpp
1561
1562# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1563# -------------------------------------------------------
1564# Tests whether HEADER exists and can be compiled using the include files in
1565# INCLUDES, setting the cache variable VAR accordingly.
1566ac_fn_c_check_header_compile ()
1567{
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1570$as_echo_n "checking for $2... " >&6; }
1571if eval \${$3+:} false; then :
1572 $as_echo_n "(cached) " >&6
1573else
1574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1575/* end confdefs.h. */
1576$4
1577#include <$2>
1578_ACEOF
1579if ac_fn_c_try_compile "$LINENO"; then :
1580 eval "$3=yes"
1581else
1582 eval "$3=no"
1583fi
1584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1585fi
1586eval ac_res=\$$3
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1588$as_echo "$ac_res" >&6; }
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590
1591} # ac_fn_c_check_header_compile
1592
jfigusc7e66e32013-05-08 11:32:55 -04001593# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1594# -------------------------------------------
1595# Tests whether TYPE exists after having included INCLUDES, setting cache
1596# variable VAR accordingly.
1597ac_fn_c_check_type ()
1598{
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1601$as_echo_n "checking for $2... " >&6; }
1602if eval \${$3+:} false; then :
1603 $as_echo_n "(cached) " >&6
1604else
1605 eval "$3=no"
1606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607/* end confdefs.h. */
1608$4
1609int
1610main ()
1611{
1612if (sizeof ($2))
1613 return 0;
1614 ;
1615 return 0;
1616}
1617_ACEOF
1618if ac_fn_c_try_compile "$LINENO"; then :
1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620/* end confdefs.h. */
1621$4
1622int
1623main ()
1624{
1625if (sizeof (($2)))
1626 return 0;
1627 ;
1628 return 0;
1629}
1630_ACEOF
1631if ac_fn_c_try_compile "$LINENO"; then :
1632
1633else
1634 eval "$3=yes"
1635fi
1636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1637fi
1638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639fi
1640eval ac_res=\$$3
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642$as_echo "$ac_res" >&6; }
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644
1645} # ac_fn_c_check_type
1646
1647# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1648# --------------------------------------------
1649# Tries to find the compile-time value of EXPR in a program that includes
1650# INCLUDES, setting VAR accordingly. Returns whether the value could be
1651# computed
1652ac_fn_c_compute_int ()
1653{
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if test "$cross_compiling" = yes; then
1656 # Depending upon the size, compute the lo and hi bounds.
1657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658/* end confdefs.h. */
1659$4
1660int
1661main ()
1662{
1663static int test_array [1 - 2 * !(($2) >= 0)];
1664test_array [0] = 0;
1665return test_array [0];
1666
1667 ;
1668 return 0;
1669}
1670_ACEOF
1671if ac_fn_c_try_compile "$LINENO"; then :
1672 ac_lo=0 ac_mid=0
1673 while :; do
1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675/* end confdefs.h. */
1676$4
1677int
1678main ()
1679{
1680static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1681test_array [0] = 0;
1682return test_array [0];
1683
1684 ;
1685 return 0;
1686}
1687_ACEOF
1688if ac_fn_c_try_compile "$LINENO"; then :
1689 ac_hi=$ac_mid; break
1690else
1691 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1692 if test $ac_lo -le $ac_mid; then
1693 ac_lo= ac_hi=
1694 break
1695 fi
1696 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1697fi
1698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699 done
1700else
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702/* end confdefs.h. */
1703$4
1704int
1705main ()
1706{
1707static int test_array [1 - 2 * !(($2) < 0)];
1708test_array [0] = 0;
1709return test_array [0];
1710
1711 ;
1712 return 0;
1713}
1714_ACEOF
1715if ac_fn_c_try_compile "$LINENO"; then :
1716 ac_hi=-1 ac_mid=-1
1717 while :; do
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719/* end confdefs.h. */
1720$4
1721int
1722main ()
1723{
1724static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1725test_array [0] = 0;
1726return test_array [0];
1727
1728 ;
1729 return 0;
1730}
1731_ACEOF
1732if ac_fn_c_try_compile "$LINENO"; then :
1733 ac_lo=$ac_mid; break
1734else
1735 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1736 if test $ac_mid -le $ac_hi; then
1737 ac_lo= ac_hi=
1738 break
1739 fi
1740 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1741fi
1742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 done
1744else
1745 ac_lo= ac_hi=
1746fi
1747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1748fi
1749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1750# Binary search between lo and hi bounds.
1751while test "x$ac_lo" != "x$ac_hi"; do
1752 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h. */
1755$4
1756int
1757main ()
1758{
1759static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1760test_array [0] = 0;
1761return test_array [0];
1762
1763 ;
1764 return 0;
1765}
1766_ACEOF
1767if ac_fn_c_try_compile "$LINENO"; then :
1768 ac_hi=$ac_mid
1769else
1770 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1771fi
1772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1773done
1774case $ac_lo in #((
1775?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1776'') ac_retval=1 ;;
1777esac
1778 else
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780/* end confdefs.h. */
1781$4
1782static long int longval () { return $2; }
1783static unsigned long int ulongval () { return $2; }
1784#include <stdio.h>
1785#include <stdlib.h>
1786int
1787main ()
1788{
1789
1790 FILE *f = fopen ("conftest.val", "w");
1791 if (! f)
1792 return 1;
1793 if (($2) < 0)
1794 {
1795 long int i = longval ();
1796 if (i != ($2))
1797 return 1;
1798 fprintf (f, "%ld", i);
1799 }
1800 else
1801 {
1802 unsigned long int i = ulongval ();
1803 if (i != ($2))
1804 return 1;
1805 fprintf (f, "%lu", i);
1806 }
1807 /* Do not output a trailing newline, as this causes \r\n confusion
1808 on some platforms. */
1809 return ferror (f) || fclose (f) != 0;
1810
1811 ;
1812 return 0;
1813}
1814_ACEOF
1815if ac_fn_c_try_run "$LINENO"; then :
1816 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1817else
1818 ac_retval=1
1819fi
1820rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1821 conftest.$ac_objext conftest.beam conftest.$ac_ext
1822rm -f conftest.val
1823
1824 fi
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1827
1828} # ac_fn_c_compute_int
1829
1830# ac_fn_c_try_link LINENO
1831# -----------------------
1832# Try to link conftest.$ac_ext, and return whether this succeeded.
1833ac_fn_c_try_link ()
1834{
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 rm -f conftest.$ac_objext conftest$ac_exeext
1837 if { { ac_try="$ac_link"
1838case "(($ac_try" in
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1841esac
1842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843$as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_link") 2>conftest.err
1845 ac_status=$?
1846 if test -s conftest.err; then
1847 grep -v '^ *+' conftest.err >conftest.er1
1848 cat conftest.er1 >&5
1849 mv -f conftest.er1 conftest.err
1850 fi
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } && {
1853 test -z "$ac_c_werror_flag" ||
1854 test ! -s conftest.err
1855 } && test -s conftest$ac_exeext && {
1856 test "$cross_compiling" = yes ||
1857 test -x conftest$ac_exeext
1858 }; then :
1859 ac_retval=0
1860else
1861 $as_echo "$as_me: failed program was:" >&5
1862sed 's/^/| /' conftest.$ac_ext >&5
1863
1864 ac_retval=1
1865fi
1866 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1867 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1868 # interfere with the next link command; also delete a directory that is
1869 # left behind by Apple's compiler. We do this before executing the actions.
1870 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 as_fn_set_status $ac_retval
1873
1874} # ac_fn_c_try_link
1875
1876# ac_fn_c_check_func LINENO FUNC VAR
1877# ----------------------------------
1878# Tests whether FUNC exists, setting the cache variable VAR accordingly
1879ac_fn_c_check_func ()
1880{
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883$as_echo_n "checking for $2... " >&6; }
1884if eval \${$3+:} false; then :
1885 $as_echo_n "(cached) " >&6
1886else
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888/* end confdefs.h. */
1889/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1891#define $2 innocuous_$2
1892
1893/* System header to define __stub macros and hopefully few prototypes,
1894 which can conflict with char $2 (); below.
1895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1896 <limits.h> exists even on freestanding compilers. */
1897
1898#ifdef __STDC__
1899# include <limits.h>
1900#else
1901# include <assert.h>
1902#endif
1903
1904#undef $2
1905
1906/* Override any GCC internal prototype to avoid an error.
1907 Use char because int might match the return type of a GCC
1908 builtin and then its argument prototype would still apply. */
1909#ifdef __cplusplus
1910extern "C"
1911#endif
1912char $2 ();
1913/* The GNU C library defines this for functions which it implements
1914 to always fail with ENOSYS. Some functions are actually named
1915 something starting with __ and the normal name is an alias. */
1916#if defined __stub_$2 || defined __stub___$2
1917choke me
1918#endif
1919
1920int
1921main ()
1922{
1923return $2 ();
1924 ;
1925 return 0;
1926}
1927_ACEOF
1928if ac_fn_c_try_link "$LINENO"; then :
1929 eval "$3=yes"
1930else
1931 eval "$3=no"
1932fi
1933rm -f core conftest.err conftest.$ac_objext \
1934 conftest$ac_exeext conftest.$ac_ext
1935fi
1936eval ac_res=\$$3
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938$as_echo "$ac_res" >&6; }
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940
1941} # ac_fn_c_check_func
1942cat >config.log <<_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00001943This file contains any messages produced by compilers while
1944running configure, to aid debugging if configure makes a mistake.
1945
Pascal Bühler34acba62017-01-19 10:57:30 +01001946It was created by libsrtp2 $as_me 2.1.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04001947generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00001948
1949 $ $0 $@
1950
1951_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04001952exec 5>>config.log
Cullen Jennings235513a2005-09-21 22:51:36 +00001953{
1954cat <<_ASUNAME
1955## --------- ##
1956## Platform. ##
1957## --------- ##
1958
1959hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1960uname -m = `(uname -m) 2>/dev/null || echo unknown`
1961uname -r = `(uname -r) 2>/dev/null || echo unknown`
1962uname -s = `(uname -s) 2>/dev/null || echo unknown`
1963uname -v = `(uname -v) 2>/dev/null || echo unknown`
1964
1965/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1966/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1967
1968/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1969/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1970/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
jfigusc7e66e32013-05-08 11:32:55 -04001971/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Cullen Jennings235513a2005-09-21 22:51:36 +00001972/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1973/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1974/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1975
1976_ASUNAME
1977
1978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979for as_dir in $PATH
1980do
1981 IFS=$as_save_IFS
1982 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04001983 $as_echo "PATH: $as_dir"
1984 done
1985IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00001986
1987} >&5
1988
1989cat >&5 <<_ACEOF
1990
1991
1992## ----------- ##
1993## Core tests. ##
1994## ----------- ##
1995
1996_ACEOF
1997
1998
1999# Keep a trace of the command line.
2000# Strip out --no-create and --no-recursion so they do not pile up.
2001# Strip out --silent because we don't want to record it for future runs.
2002# Also quote any args containing shell meta-characters.
2003# Make two passes to allow for proper duplicate-argument suppression.
2004ac_configure_args=
2005ac_configure_args0=
2006ac_configure_args1=
Cullen Jennings235513a2005-09-21 22:51:36 +00002007ac_must_keep_next=false
2008for ac_pass in 1 2
2009do
2010 for ac_arg
2011 do
2012 case $ac_arg in
2013 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2015 | -silent | --silent | --silen | --sile | --sil)
2016 continue ;;
jfigusc7e66e32013-05-08 11:32:55 -04002017 *\'*)
2018 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002019 esac
2020 case $ac_pass in
jfigusc7e66e32013-05-08 11:32:55 -04002021 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002022 2)
jfigusc7e66e32013-05-08 11:32:55 -04002023 as_fn_append ac_configure_args1 " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002024 if test $ac_must_keep_next = true; then
David McGrewfec49dd2005-09-23 19:34:11 +00002025 ac_must_keep_next=false # Got value, back to normal.
Cullen Jennings235513a2005-09-21 22:51:36 +00002026 else
David McGrewfec49dd2005-09-23 19:34:11 +00002027 case $ac_arg in
2028 *=* | --config-cache | -C | -disable-* | --disable-* \
2029 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2030 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2031 | -with-* | --with-* | -without-* | --without-* | --x)
2032 case "$ac_configure_args0 " in
2033 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2034 esac
2035 ;;
2036 -* ) ac_must_keep_next=true ;;
2037 esac
Cullen Jennings235513a2005-09-21 22:51:36 +00002038 fi
jfigusc7e66e32013-05-08 11:32:55 -04002039 as_fn_append ac_configure_args " '$ac_arg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00002040 ;;
2041 esac
2042 done
2043done
jfigusc7e66e32013-05-08 11:32:55 -04002044{ ac_configure_args0=; unset ac_configure_args0;}
2045{ ac_configure_args1=; unset ac_configure_args1;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002046
2047# When interrupted or exit'd, cleanup temporary files, and complete
2048# config.log. We remove comments because anyway the quotes in there
2049# would cause problems or look ugly.
jfigusc7e66e32013-05-08 11:32:55 -04002050# WARNING: Use '\'' to represent an apostrophe within the trap.
2051# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Cullen Jennings235513a2005-09-21 22:51:36 +00002052trap 'exit_status=$?
2053 # Save into config.log some information that might help in debugging.
2054 {
2055 echo
2056
jfigusc7e66e32013-05-08 11:32:55 -04002057 $as_echo "## ---------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002058## Cache variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002059## ---------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002060 echo
2061 # The following way of writing the cache mishandles newlines in values,
jfigusc7e66e32013-05-08 11:32:55 -04002062(
2063 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2064 eval ac_val=\$$ac_var
2065 case $ac_val in #(
2066 *${as_nl}*)
2067 case $ac_var in #(
2068 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2069$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2070 esac
2071 case $ac_var in #(
2072 _ | IFS | as_nl) ;; #(
2073 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2074 *) { eval $ac_var=; unset $ac_var;} ;;
2075 esac ;;
2076 esac
2077 done
Cullen Jennings235513a2005-09-21 22:51:36 +00002078 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04002079 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2080 *${as_nl}ac_space=\ *)
Cullen Jennings235513a2005-09-21 22:51:36 +00002081 sed -n \
jfigusc7e66e32013-05-08 11:32:55 -04002082 "s/'\''/'\''\\\\'\'''\''/g;
2083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2084 ;; #(
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002085 *)
jfigusc7e66e32013-05-08 11:32:55 -04002086 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002087 ;;
jfigusc7e66e32013-05-08 11:32:55 -04002088 esac |
2089 sort
2090)
Cullen Jennings235513a2005-09-21 22:51:36 +00002091 echo
2092
jfigusc7e66e32013-05-08 11:32:55 -04002093 $as_echo "## ----------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002094## Output variables. ##
jfigusc7e66e32013-05-08 11:32:55 -04002095## ----------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002096 echo
2097 for ac_var in $ac_subst_vars
2098 do
jfigusc7e66e32013-05-08 11:32:55 -04002099 eval ac_val=\$$ac_var
2100 case $ac_val in
2101 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2102 esac
2103 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002104 done | sort
2105 echo
2106
2107 if test -n "$ac_subst_files"; then
jfigusc7e66e32013-05-08 11:32:55 -04002108 $as_echo "## ------------------- ##
2109## File substitutions. ##
2110## ------------------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002111 echo
2112 for ac_var in $ac_subst_files
2113 do
jfigusc7e66e32013-05-08 11:32:55 -04002114 eval ac_val=\$$ac_var
2115 case $ac_val in
2116 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2117 esac
2118 $as_echo "$ac_var='\''$ac_val'\''"
Cullen Jennings235513a2005-09-21 22:51:36 +00002119 done | sort
2120 echo
2121 fi
2122
2123 if test -s confdefs.h; then
jfigusc7e66e32013-05-08 11:32:55 -04002124 $as_echo "## ----------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002125## confdefs.h. ##
jfigusc7e66e32013-05-08 11:32:55 -04002126## ----------- ##"
Cullen Jennings235513a2005-09-21 22:51:36 +00002127 echo
jfigusc7e66e32013-05-08 11:32:55 -04002128 cat confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002129 echo
2130 fi
2131 test "$ac_signal" != 0 &&
jfigusc7e66e32013-05-08 11:32:55 -04002132 $as_echo "$as_me: caught signal $ac_signal"
2133 $as_echo "$as_me: exit $exit_status"
Cullen Jennings235513a2005-09-21 22:51:36 +00002134 } >&5
jfigusc7e66e32013-05-08 11:32:55 -04002135 rm -f core *.core core.conftest.* &&
2136 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Cullen Jennings235513a2005-09-21 22:51:36 +00002137 exit $exit_status
jfigusc7e66e32013-05-08 11:32:55 -04002138' 0
Cullen Jennings235513a2005-09-21 22:51:36 +00002139for ac_signal in 1 2 13 15; do
jfigusc7e66e32013-05-08 11:32:55 -04002140 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Cullen Jennings235513a2005-09-21 22:51:36 +00002141done
2142ac_signal=0
2143
2144# confdefs.h avoids OS command line length limits that DEFS can exceed.
jfigusc7e66e32013-05-08 11:32:55 -04002145rm -f -r conftest* confdefs.h
2146
2147$as_echo "/* confdefs.h */" > confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00002148
2149# Predefined preprocessor variables.
2150
2151cat >>confdefs.h <<_ACEOF
2152#define PACKAGE_NAME "$PACKAGE_NAME"
2153_ACEOF
2154
Cullen Jennings235513a2005-09-21 22:51:36 +00002155cat >>confdefs.h <<_ACEOF
2156#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2157_ACEOF
2158
Cullen Jennings235513a2005-09-21 22:51:36 +00002159cat >>confdefs.h <<_ACEOF
2160#define PACKAGE_VERSION "$PACKAGE_VERSION"
2161_ACEOF
2162
Cullen Jennings235513a2005-09-21 22:51:36 +00002163cat >>confdefs.h <<_ACEOF
2164#define PACKAGE_STRING "$PACKAGE_STRING"
2165_ACEOF
2166
Cullen Jennings235513a2005-09-21 22:51:36 +00002167cat >>confdefs.h <<_ACEOF
2168#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2169_ACEOF
2170
jfigusc7e66e32013-05-08 11:32:55 -04002171cat >>confdefs.h <<_ACEOF
2172#define PACKAGE_URL "$PACKAGE_URL"
2173_ACEOF
2174
Cullen Jennings235513a2005-09-21 22:51:36 +00002175
2176# Let the site file select an alternate cache file if it wants to.
jfigusc7e66e32013-05-08 11:32:55 -04002177# Prefer an explicitly selected file to automatically selected ones.
2178ac_site_file1=NONE
2179ac_site_file2=NONE
2180if test -n "$CONFIG_SITE"; then
2181 # We do not want a PATH search for config.site.
2182 case $CONFIG_SITE in #((
2183 -*) ac_site_file1=./$CONFIG_SITE;;
2184 */*) ac_site_file1=$CONFIG_SITE;;
2185 *) ac_site_file1=./$CONFIG_SITE;;
2186 esac
2187elif test "x$prefix" != xNONE; then
2188 ac_site_file1=$prefix/share/config.site
2189 ac_site_file2=$prefix/etc/config.site
2190else
2191 ac_site_file1=$ac_default_prefix/share/config.site
2192 ac_site_file2=$ac_default_prefix/etc/config.site
Cullen Jennings235513a2005-09-21 22:51:36 +00002193fi
jfigusc7e66e32013-05-08 11:32:55 -04002194for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2195do
2196 test "x$ac_site_file" = xNONE && continue
2197 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2199$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002200 sed 's/^/| /' "$ac_site_file" >&5
jfigusc7e66e32013-05-08 11:32:55 -04002201 . "$ac_site_file" \
2202 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2204as_fn_error $? "failed to load site script $ac_site_file
2205See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002206 fi
2207done
2208
2209if test -r "$cache_file"; then
jfigusc7e66e32013-05-08 11:32:55 -04002210 # Some versions of bash will fail to source /dev/null (special files
2211 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2212 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2214$as_echo "$as_me: loading cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002215 case $cache_file in
jfigusc7e66e32013-05-08 11:32:55 -04002216 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2217 *) . "./$cache_file";;
Cullen Jennings235513a2005-09-21 22:51:36 +00002218 esac
2219 fi
2220else
jfigusc7e66e32013-05-08 11:32:55 -04002221 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2222$as_echo "$as_me: creating cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002223 >$cache_file
2224fi
2225
2226# Check that the precious variables saved in the cache have kept the same
2227# value.
2228ac_cache_corrupted=false
jfigusc7e66e32013-05-08 11:32:55 -04002229for ac_var in $ac_precious_vars; do
Cullen Jennings235513a2005-09-21 22:51:36 +00002230 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2231 eval ac_new_set=\$ac_env_${ac_var}_set
jfigusc7e66e32013-05-08 11:32:55 -04002232 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2233 eval ac_new_val=\$ac_env_${ac_var}_value
Cullen Jennings235513a2005-09-21 22:51:36 +00002234 case $ac_old_set,$ac_new_set in
2235 set,)
jfigusc7e66e32013-05-08 11:32:55 -04002236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2237$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 +00002238 ac_cache_corrupted=: ;;
2239 ,set)
jfigusc7e66e32013-05-08 11:32:55 -04002240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2241$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002242 ac_cache_corrupted=: ;;
2243 ,);;
2244 *)
2245 if test "x$ac_old_val" != "x$ac_new_val"; then
jfigusc7e66e32013-05-08 11:32:55 -04002246 # differences in whitespace do not lead to failure.
2247 ac_old_val_w=`echo x $ac_old_val`
2248 ac_new_val_w=`echo x $ac_new_val`
2249 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2251$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2252 ac_cache_corrupted=:
2253 else
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2255$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2256 eval $ac_var=\$ac_old_val
2257 fi
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2259$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2261$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00002262 fi;;
2263 esac
2264 # Pass precious variables to config.status.
2265 if test "$ac_new_set" = set; then
2266 case $ac_new_val in
jfigusc7e66e32013-05-08 11:32:55 -04002267 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002268 *) ac_arg=$ac_var=$ac_new_val ;;
2269 esac
2270 case " $ac_configure_args " in
2271 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jfigusc7e66e32013-05-08 11:32:55 -04002272 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002273 esac
2274 fi
2275done
2276if $ac_cache_corrupted; then
jfigusc7e66e32013-05-08 11:32:55 -04002277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2280$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2281 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00002282fi
jfigusc7e66e32013-05-08 11:32:55 -04002283## -------------------- ##
2284## Main body of script. ##
2285## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00002286
2287ac_ext=c
2288ac_cpp='$CPP $CPPFLAGS'
2289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291ac_compiler_gnu=$ac_cv_c_compiler_gnu
2292
2293
2294
Idar Tollefsen600ad962017-01-26 11:24:51 +01002295EMPTY_CFLAGS="no"
2296if test "x$CFLAGS" = "x"; then
2297 EMPTY_CFLAGS="yes"
David McGrewb67061f2005-09-28 14:23:06 +00002298fi
2299
Pascal Bühlerac872e72017-02-09 14:55:27 +01002300# expand $ac_aux_dir to an absolute path
2301am_aux_dir=`cd $ac_aux_dir && pwd`
Cullen Jennings235513a2005-09-21 22:51:36 +00002302
2303ac_ext=c
2304ac_cpp='$CPP $CPPFLAGS'
2305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307ac_compiler_gnu=$ac_cv_c_compiler_gnu
2308if test -n "$ac_tool_prefix"; then
2309 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2310set dummy ${ac_tool_prefix}gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2312$as_echo_n "checking for $ac_word... " >&6; }
2313if ${ac_cv_prog_CC+:} false; then :
2314 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002315else
2316 if test -n "$CC"; then
2317 ac_cv_prog_CC="$CC" # Let the user override the test.
2318else
2319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320for as_dir in $PATH
2321do
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002326 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002328 break 2
2329 fi
2330done
jfigusc7e66e32013-05-08 11:32:55 -04002331 done
2332IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002333
2334fi
2335fi
2336CC=$ac_cv_prog_CC
2337if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2339$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002340else
jfigusc7e66e32013-05-08 11:32:55 -04002341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2342$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002343fi
2344
jfigusc7e66e32013-05-08 11:32:55 -04002345
Cullen Jennings235513a2005-09-21 22:51:36 +00002346fi
2347if test -z "$ac_cv_prog_CC"; then
2348 ac_ct_CC=$CC
2349 # Extract the first word of "gcc", so it can be a program name with args.
2350set dummy gcc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2352$as_echo_n "checking for $ac_word... " >&6; }
2353if ${ac_cv_prog_ac_ct_CC+:} false; then :
2354 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002355else
2356 if test -n "$ac_ct_CC"; then
2357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2358else
2359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360for as_dir in $PATH
2361do
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002366 ac_cv_prog_ac_ct_CC="gcc"
jfigusc7e66e32013-05-08 11:32:55 -04002367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002368 break 2
2369 fi
2370done
jfigusc7e66e32013-05-08 11:32:55 -04002371 done
2372IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002373
2374fi
2375fi
2376ac_ct_CC=$ac_cv_prog_ac_ct_CC
2377if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2379$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002380else
jfigusc7e66e32013-05-08 11:32:55 -04002381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2382$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002383fi
2384
jfigusc7e66e32013-05-08 11:32:55 -04002385 if test "x$ac_ct_CC" = x; then
2386 CC=""
2387 else
2388 case $cross_compiling:$ac_tool_warned in
2389yes:)
2390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2392ac_tool_warned=yes ;;
2393esac
2394 CC=$ac_ct_CC
2395 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002396else
2397 CC="$ac_cv_prog_CC"
2398fi
2399
2400if test -z "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002401 if test -n "$ac_tool_prefix"; then
2402 # 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 +00002403set dummy ${ac_tool_prefix}cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2405$as_echo_n "checking for $ac_word... " >&6; }
2406if ${ac_cv_prog_CC+:} false; then :
2407 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002408else
2409 if test -n "$CC"; then
2410 ac_cv_prog_CC="$CC" # Let the user override the test.
2411else
2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413for as_dir in $PATH
2414do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002419 ac_cv_prog_CC="${ac_tool_prefix}cc"
jfigusc7e66e32013-05-08 11:32:55 -04002420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002421 break 2
2422 fi
2423done
jfigusc7e66e32013-05-08 11:32:55 -04002424 done
2425IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002426
2427fi
2428fi
2429CC=$ac_cv_prog_CC
2430if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2432$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002433else
jfigusc7e66e32013-05-08 11:32:55 -04002434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2435$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002436fi
2437
jfigusc7e66e32013-05-08 11:32:55 -04002438
Cullen Jennings235513a2005-09-21 22:51:36 +00002439 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002440fi
2441if test -z "$CC"; then
2442 # Extract the first word of "cc", so it can be a program name with args.
2443set dummy cc; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445$as_echo_n "checking for $ac_word... " >&6; }
2446if ${ac_cv_prog_CC+:} false; then :
2447 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002448else
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2451else
2452 ac_prog_rejected=no
2453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH
2455do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002460 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2461 ac_prog_rejected=yes
2462 continue
2463 fi
2464 ac_cv_prog_CC="cc"
jfigusc7e66e32013-05-08 11:32:55 -04002465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002466 break 2
2467 fi
2468done
jfigusc7e66e32013-05-08 11:32:55 -04002469 done
2470IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002471
2472if test $ac_prog_rejected = yes; then
2473 # We found a bogon in the path, so make sure we never use it.
2474 set dummy $ac_cv_prog_CC
2475 shift
2476 if test $# != 0; then
2477 # We chose a different compiler from the bogus one.
2478 # However, it has the same basename, so the bogon will be chosen
2479 # first if we set CC to just the basename; use the full file name.
2480 shift
2481 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2482 fi
2483fi
2484fi
2485fi
2486CC=$ac_cv_prog_CC
2487if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2489$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002490else
jfigusc7e66e32013-05-08 11:32:55 -04002491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002493fi
2494
jfigusc7e66e32013-05-08 11:32:55 -04002495
Cullen Jennings235513a2005-09-21 22:51:36 +00002496fi
2497if test -z "$CC"; then
2498 if test -n "$ac_tool_prefix"; then
jfigusc7e66e32013-05-08 11:32:55 -04002499 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002500 do
2501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2502set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2504$as_echo_n "checking for $ac_word... " >&6; }
2505if ${ac_cv_prog_CC+:} false; then :
2506 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002507else
2508 if test -n "$CC"; then
2509 ac_cv_prog_CC="$CC" # Let the user override the test.
2510else
2511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512for as_dir in $PATH
2513do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002518 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002520 break 2
2521 fi
2522done
jfigusc7e66e32013-05-08 11:32:55 -04002523 done
2524IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002525
2526fi
2527fi
2528CC=$ac_cv_prog_CC
2529if test -n "$CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2531$as_echo "$CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002532else
jfigusc7e66e32013-05-08 11:32:55 -04002533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2534$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002535fi
2536
jfigusc7e66e32013-05-08 11:32:55 -04002537
Cullen Jennings235513a2005-09-21 22:51:36 +00002538 test -n "$CC" && break
2539 done
2540fi
2541if test -z "$CC"; then
2542 ac_ct_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04002543 for ac_prog in cl.exe
Cullen Jennings235513a2005-09-21 22:51:36 +00002544do
2545 # Extract the first word of "$ac_prog", so it can be a program name with args.
2546set dummy $ac_prog; ac_word=$2
jfigusc7e66e32013-05-08 11:32:55 -04002547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548$as_echo_n "checking for $ac_word... " >&6; }
2549if ${ac_cv_prog_ac_ct_CC+:} false; then :
2550 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002551else
2552 if test -n "$ac_ct_CC"; then
2553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2554else
2555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556for as_dir in $PATH
2557do
2558 IFS=$as_save_IFS
2559 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04002560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00002562 ac_cv_prog_ac_ct_CC="$ac_prog"
jfigusc7e66e32013-05-08 11:32:55 -04002563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002564 break 2
2565 fi
2566done
jfigusc7e66e32013-05-08 11:32:55 -04002567 done
2568IFS=$as_save_IFS
Cullen Jennings235513a2005-09-21 22:51:36 +00002569
2570fi
2571fi
2572ac_ct_CC=$ac_cv_prog_ac_ct_CC
2573if test -n "$ac_ct_CC"; then
jfigusc7e66e32013-05-08 11:32:55 -04002574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2575$as_echo "$ac_ct_CC" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002576else
jfigusc7e66e32013-05-08 11:32:55 -04002577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578$as_echo "no" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002579fi
2580
jfigusc7e66e32013-05-08 11:32:55 -04002581
Cullen Jennings235513a2005-09-21 22:51:36 +00002582 test -n "$ac_ct_CC" && break
2583done
2584
jfigusc7e66e32013-05-08 11:32:55 -04002585 if test "x$ac_ct_CC" = x; then
2586 CC=""
2587 else
2588 case $cross_compiling:$ac_tool_warned in
2589yes:)
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2592ac_tool_warned=yes ;;
2593esac
2594 CC=$ac_ct_CC
2595 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002596fi
2597
2598fi
2599
2600
jfigusc7e66e32013-05-08 11:32:55 -04002601test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603as_fn_error $? "no acceptable C compiler found in \$PATH
2604See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002605
2606# Provide some information about the compiler.
jfigusc7e66e32013-05-08 11:32:55 -04002607$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2608set X $ac_compile
2609ac_compiler=$2
2610for ac_option in --version -v -V -qversion; do
2611 { { ac_try="$ac_compiler $ac_option >&5"
2612case "(($ac_try" in
2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614 *) ac_try_echo=$ac_try;;
2615esac
2616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2617$as_echo "$ac_try_echo"; } >&5
2618 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Cullen Jennings235513a2005-09-21 22:51:36 +00002619 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002620 if test -s conftest.err; then
2621 sed '10a\
2622... rest of stderr output deleted ...
2623 10q' conftest.err >conftest.er1
2624 cat conftest.er1 >&5
2625 fi
2626 rm -f conftest.er1 conftest.err
2627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2628 test $ac_status = 0; }
2629done
Cullen Jennings235513a2005-09-21 22:51:36 +00002630
jfigusc7e66e32013-05-08 11:32:55 -04002631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002632/* end confdefs.h. */
2633
2634int
2635main ()
2636{
2637
2638 ;
2639 return 0;
2640}
2641_ACEOF
2642ac_clean_files_save=$ac_clean_files
jfigusc7e66e32013-05-08 11:32:55 -04002643ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Cullen Jennings235513a2005-09-21 22:51:36 +00002644# Try to create an executable without -o first, disregard a.out.
2645# It will help us diagnose broken compilers, and finding out an intuition
2646# of exeext.
jfigusc7e66e32013-05-08 11:32:55 -04002647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2648$as_echo_n "checking whether the C compiler works... " >&6; }
2649ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002650
jfigusc7e66e32013-05-08 11:32:55 -04002651# The possible output files:
2652ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2653
2654ac_rmfiles=
2655for ac_file in $ac_files
2656do
2657 case $ac_file in
2658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2659 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2660 esac
2661done
2662rm -f $ac_rmfiles
2663
2664if { { ac_try="$ac_link_default"
2665case "(($ac_try" in
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2668esac
2669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2670$as_echo "$ac_try_echo"; } >&5
2671 (eval "$ac_link_default") 2>&5
2672 ac_status=$?
2673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2674 test $ac_status = 0; }; then :
2675 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2676# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2677# in a Makefile. We should not override ac_cv_exeext if it was cached,
2678# so that the user can short-circuit this test for compilers unknown to
2679# Autoconf.
2680for ac_file in $ac_files ''
Cullen Jennings235513a2005-09-21 22:51:36 +00002681do
2682 test -f "$ac_file" || continue
2683 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
David McGrewfec49dd2005-09-23 19:34:11 +00002685 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002686 [ab].out )
David McGrewfec49dd2005-09-23 19:34:11 +00002687 # We found the default executable, but exeext='' is most
2688 # certainly right.
2689 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002690 *.* )
jfigusc7e66e32013-05-08 11:32:55 -04002691 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2692 then :; else
2693 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2694 fi
2695 # We set ac_cv_exeext here because the later test for it is not
2696 # safe: cross compilers may not add the suffix if given an `-o'
2697 # argument, so we may need to know it at that point already.
2698 # Even if this section looks crufty: it has the advantage of
2699 # actually working.
David McGrewfec49dd2005-09-23 19:34:11 +00002700 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002701 * )
David McGrewfec49dd2005-09-23 19:34:11 +00002702 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002703 esac
2704done
jfigusc7e66e32013-05-08 11:32:55 -04002705test "$ac_cv_exeext" = no && ac_cv_exeext=
2706
Cullen Jennings235513a2005-09-21 22:51:36 +00002707else
jfigusc7e66e32013-05-08 11:32:55 -04002708 ac_file=''
2709fi
2710if test -z "$ac_file"; then :
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712$as_echo "no" >&6; }
2713$as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002714sed 's/^/| /' conftest.$ac_ext >&5
2715
jfigusc7e66e32013-05-08 11:32:55 -04002716{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2718as_fn_error 77 "C compiler cannot create executables
2719See \`config.log' for more details" "$LINENO" 5; }
2720else
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2722$as_echo "yes" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002723fi
jfigusc7e66e32013-05-08 11:32:55 -04002724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2725$as_echo_n "checking for C compiler default output file name... " >&6; }
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2727$as_echo "$ac_file" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002728ac_exeext=$ac_cv_exeext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002729
jfigusc7e66e32013-05-08 11:32:55 -04002730rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002731ac_clean_files=$ac_clean_files_save
jfigusc7e66e32013-05-08 11:32:55 -04002732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2733$as_echo_n "checking for suffix of executables... " >&6; }
2734if { { ac_try="$ac_link"
2735case "(($ac_try" in
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2738esac
2739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2740$as_echo "$ac_try_echo"; } >&5
2741 (eval "$ac_link") 2>&5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002742 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2744 test $ac_status = 0; }; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002745 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2746# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2747# work properly (i.e., refer to `conftest.exe'), while it won't with
2748# `rm'.
2749for ac_file in conftest.exe conftest conftest.*; do
2750 test -f "$ac_file" || continue
2751 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002753 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
David McGrewfec49dd2005-09-23 19:34:11 +00002754 break;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002755 * ) break;;
2756 esac
2757done
2758else
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 $? "cannot compute suffix of executables: cannot compile and link
2762See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002763fi
jfigusc7e66e32013-05-08 11:32:55 -04002764rm -f conftest conftest$ac_cv_exeext
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2766$as_echo "$ac_cv_exeext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002767
2768rm -f conftest.$ac_ext
2769EXEEXT=$ac_cv_exeext
2770ac_exeext=$EXEEXT
jfigusc7e66e32013-05-08 11:32:55 -04002771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2772/* end confdefs.h. */
2773#include <stdio.h>
2774int
2775main ()
2776{
2777FILE *f = fopen ("conftest.out", "w");
2778 return ferror (f) || fclose (f) != 0;
2779
2780 ;
2781 return 0;
2782}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06002783_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002784ac_clean_files="$ac_clean_files conftest.out"
2785# Check that the compiler produces executables we can run. If not, either
2786# the compiler is broken, or we cross compile.
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2788$as_echo_n "checking whether we are cross compiling... " >&6; }
2789if test "$cross_compiling" != yes; then
2790 { { ac_try="$ac_link"
2791case "(($ac_try" in
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2794esac
2795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2796$as_echo "$ac_try_echo"; } >&5
2797 (eval "$ac_link") 2>&5
2798 ac_status=$?
2799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2800 test $ac_status = 0; }
2801 if { ac_try='./conftest$ac_cv_exeext'
2802 { { case "(($ac_try" in
2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804 *) ac_try_echo=$ac_try;;
2805esac
2806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2807$as_echo "$ac_try_echo"; } >&5
2808 (eval "$ac_try") 2>&5
2809 ac_status=$?
2810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2811 test $ac_status = 0; }; }; then
2812 cross_compiling=no
2813 else
2814 if test "$cross_compiling" = maybe; then
2815 cross_compiling=yes
2816 else
2817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2819as_fn_error $? "cannot run C compiled programs.
2820If you meant to cross compile, use \`--host'.
2821See \`config.log' for more details" "$LINENO" 5; }
2822 fi
2823 fi
2824fi
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2826$as_echo "$cross_compiling" >&6; }
2827
2828rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2829ac_clean_files=$ac_clean_files_save
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2831$as_echo_n "checking for suffix of object files... " >&6; }
2832if ${ac_cv_objext+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834else
2835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002836/* end confdefs.h. */
2837
2838int
2839main ()
2840{
2841
2842 ;
2843 return 0;
2844}
2845_ACEOF
2846rm -f conftest.o conftest.obj
jfigusc7e66e32013-05-08 11:32:55 -04002847if { { ac_try="$ac_compile"
2848case "(($ac_try" in
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2851esac
2852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2853$as_echo "$ac_try_echo"; } >&5
2854 (eval "$ac_compile") 2>&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002855 ac_status=$?
jfigusc7e66e32013-05-08 11:32:55 -04002856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857 test $ac_status = 0; }; then :
2858 for ac_file in conftest.o conftest.obj conftest.*; do
2859 test -f "$ac_file" || continue;
Cullen Jennings235513a2005-09-21 22:51:36 +00002860 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04002861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00002862 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2863 break;;
2864 esac
2865done
2866else
jfigusc7e66e32013-05-08 11:32:55 -04002867 $as_echo "$as_me: failed program was:" >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00002868sed 's/^/| /' conftest.$ac_ext >&5
2869
jfigusc7e66e32013-05-08 11:32:55 -04002870{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2872as_fn_error $? "cannot compute suffix of object files: cannot compile
2873See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002874fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002875rm -f conftest.$ac_cv_objext conftest.$ac_ext
2876fi
jfigusc7e66e32013-05-08 11:32:55 -04002877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2878$as_echo "$ac_cv_objext" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002879OBJEXT=$ac_cv_objext
2880ac_objext=$OBJEXT
jfigusc7e66e32013-05-08 11:32:55 -04002881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2882$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2883if ${ac_cv_c_compiler_gnu+:} false; then :
2884 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002885else
jfigusc7e66e32013-05-08 11:32:55 -04002886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002887/* end confdefs.h. */
2888
2889int
2890main ()
2891{
2892#ifndef __GNUC__
2893 choke me
2894#endif
2895
2896 ;
2897 return 0;
2898}
2899_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002900if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002901 ac_compiler_gnu=yes
2902else
jfigusc7e66e32013-05-08 11:32:55 -04002903 ac_compiler_gnu=no
Cullen Jennings235513a2005-09-21 22:51:36 +00002904fi
jfigusc7e66e32013-05-08 11:32:55 -04002905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002906ac_cv_c_compiler_gnu=$ac_compiler_gnu
2907
2908fi
jfigusc7e66e32013-05-08 11:32:55 -04002909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2910$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2911if test $ac_compiler_gnu = yes; then
2912 GCC=yes
2913else
2914 GCC=
2915fi
Cullen Jennings235513a2005-09-21 22:51:36 +00002916ac_test_CFLAGS=${CFLAGS+set}
2917ac_save_CFLAGS=$CFLAGS
jfigusc7e66e32013-05-08 11:32:55 -04002918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2919$as_echo_n "checking whether $CC accepts -g... " >&6; }
2920if ${ac_cv_prog_cc_g+:} false; then :
2921 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00002922else
jfigusc7e66e32013-05-08 11:32:55 -04002923 ac_save_c_werror_flag=$ac_c_werror_flag
2924 ac_c_werror_flag=yes
2925 ac_cv_prog_cc_g=no
2926 CFLAGS="-g"
2927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002928/* end confdefs.h. */
2929
2930int
2931main ()
2932{
2933
2934 ;
2935 return 0;
2936}
2937_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04002938if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00002939 ac_cv_prog_cc_g=yes
2940else
jfigusc7e66e32013-05-08 11:32:55 -04002941 CFLAGS=""
2942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943/* end confdefs.h. */
Cullen Jennings235513a2005-09-21 22:51:36 +00002944
jfigusc7e66e32013-05-08 11:32:55 -04002945int
2946main ()
2947{
2948
2949 ;
2950 return 0;
2951}
2952_ACEOF
2953if ac_fn_c_try_compile "$LINENO"; then :
2954
2955else
2956 ac_c_werror_flag=$ac_save_c_werror_flag
2957 CFLAGS="-g"
2958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959/* end confdefs.h. */
2960
2961int
2962main ()
2963{
2964
2965 ;
2966 return 0;
2967}
2968_ACEOF
2969if ac_fn_c_try_compile "$LINENO"; then :
2970 ac_cv_prog_cc_g=yes
Cullen Jennings235513a2005-09-21 22:51:36 +00002971fi
jfigusc7e66e32013-05-08 11:32:55 -04002972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00002973fi
jfigusc7e66e32013-05-08 11:32:55 -04002974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2975fi
2976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 ac_c_werror_flag=$ac_save_c_werror_flag
2978fi
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2980$as_echo "$ac_cv_prog_cc_g" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00002981if test "$ac_test_CFLAGS" = set; then
2982 CFLAGS=$ac_save_CFLAGS
2983elif test $ac_cv_prog_cc_g = yes; then
2984 if test "$GCC" = yes; then
2985 CFLAGS="-g -O2"
2986 else
2987 CFLAGS="-g"
2988 fi
2989else
2990 if test "$GCC" = yes; then
2991 CFLAGS="-O2"
2992 else
2993 CFLAGS=
2994 fi
2995fi
jfigusc7e66e32013-05-08 11:32:55 -04002996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2997$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2998if ${ac_cv_prog_cc_c89+:} false; then :
2999 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003000else
jfigusc7e66e32013-05-08 11:32:55 -04003001 ac_cv_prog_cc_c89=no
Cullen Jennings235513a2005-09-21 22:51:36 +00003002ac_save_CC=$CC
jfigusc7e66e32013-05-08 11:32:55 -04003003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003004/* end confdefs.h. */
3005#include <stdarg.h>
3006#include <stdio.h>
jfigusc7e66e32013-05-08 11:32:55 -04003007struct stat;
Cullen Jennings235513a2005-09-21 22:51:36 +00003008/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3009struct buf { int x; };
3010FILE * (*rcsopen) (struct buf *, struct stat *, int);
3011static char *e (p, i)
3012 char **p;
3013 int i;
3014{
3015 return p[i];
3016}
3017static char *f (char * (*g) (char **, int), char **p, ...)
3018{
3019 char *s;
3020 va_list v;
3021 va_start (v,p);
3022 s = g (p, va_arg (v,int));
3023 va_end (v);
3024 return s;
3025}
David McGrewfec49dd2005-09-23 19:34:11 +00003026
3027/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3028 function prototypes and stuff, but not '\xHH' hex character constants.
3029 These don't provoke an error unfortunately, instead are silently treated
jfigusc7e66e32013-05-08 11:32:55 -04003030 as 'x'. The following induces an error, until -std is added to get
David McGrewfec49dd2005-09-23 19:34:11 +00003031 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3032 array size at least. It's necessary to write '\x00'==0 to get something
jfigusc7e66e32013-05-08 11:32:55 -04003033 that's true only with -std. */
David McGrewfec49dd2005-09-23 19:34:11 +00003034int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3035
jfigusc7e66e32013-05-08 11:32:55 -04003036/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3037 inside strings and character constants. */
3038#define FOO(x) 'x'
3039int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3040
Cullen Jennings235513a2005-09-21 22:51:36 +00003041int test (int i, double x);
3042struct s1 {int (*f) (int a);};
3043struct s2 {int (*f) (double a);};
3044int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3045int argc;
3046char **argv;
3047int
3048main ()
3049{
3050return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3051 ;
3052 return 0;
3053}
3054_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04003055for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3056 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Cullen Jennings235513a2005-09-21 22:51:36 +00003057do
3058 CC="$ac_save_CC $ac_arg"
jfigusc7e66e32013-05-08 11:32:55 -04003059 if ac_fn_c_try_compile "$LINENO"; then :
3060 ac_cv_prog_cc_c89=$ac_arg
Cullen Jennings235513a2005-09-21 22:51:36 +00003061fi
jfigusc7e66e32013-05-08 11:32:55 -04003062rm -f core conftest.err conftest.$ac_objext
3063 test "x$ac_cv_prog_cc_c89" != "xno" && break
Cullen Jennings235513a2005-09-21 22:51:36 +00003064done
jfigusc7e66e32013-05-08 11:32:55 -04003065rm -f conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00003066CC=$ac_save_CC
3067
3068fi
jfigusc7e66e32013-05-08 11:32:55 -04003069# AC_CACHE_VAL
3070case "x$ac_cv_prog_cc_c89" in
3071 x)
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3073$as_echo "none needed" >&6; } ;;
3074 xno)
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3076$as_echo "unsupported" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003077 *)
jfigusc7e66e32013-05-08 11:32:55 -04003078 CC="$CC $ac_cv_prog_cc_c89"
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3080$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00003081esac
jfigusc7e66e32013-05-08 11:32:55 -04003082if test "x$ac_cv_prog_cc_c89" != xno; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00003083
3084fi
Cullen Jennings235513a2005-09-21 22:51:36 +00003085
Cullen Jennings235513a2005-09-21 22:51:36 +00003086ac_ext=c
3087ac_cpp='$CPP $CPPFLAGS'
3088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090ac_compiler_gnu=$ac_cv_c_compiler_gnu
3091
jfigus1ce6a742015-04-06 08:54:01 -04003092
3093if test -n "$ac_tool_prefix"; then
3094 for ac_prog in ar lib "link -lib"
3095 do
3096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3097set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099$as_echo_n "checking for $ac_word... " >&6; }
3100if ${ac_cv_prog_AR+:} false; then :
3101 $as_echo_n "(cached) " >&6
3102else
3103 if test -n "$AR"; then
3104 ac_cv_prog_AR="$AR" # Let the user override the test.
3105else
3106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107for as_dir in $PATH
3108do
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 break 2
3116 fi
3117done
3118 done
3119IFS=$as_save_IFS
3120
3121fi
3122fi
3123AR=$ac_cv_prog_AR
3124if test -n "$AR"; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3126$as_echo "$AR" >&6; }
3127else
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129$as_echo "no" >&6; }
3130fi
3131
3132
3133 test -n "$AR" && break
3134 done
3135fi
3136if test -z "$AR"; then
3137 ac_ct_AR=$AR
3138 for ac_prog in ar lib "link -lib"
3139do
3140 # Extract the first word of "$ac_prog", so it can be a program name with args.
3141set dummy $ac_prog; ac_word=$2
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143$as_echo_n "checking for $ac_word... " >&6; }
3144if ${ac_cv_prog_ac_ct_AR+:} false; then :
3145 $as_echo_n "(cached) " >&6
3146else
3147 if test -n "$ac_ct_AR"; then
3148 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3149else
3150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151for as_dir in $PATH
3152do
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_ac_ct_AR="$ac_prog"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3160 fi
3161done
3162 done
3163IFS=$as_save_IFS
3164
3165fi
3166fi
3167ac_ct_AR=$ac_cv_prog_ac_ct_AR
3168if test -n "$ac_ct_AR"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3170$as_echo "$ac_ct_AR" >&6; }
3171else
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173$as_echo "no" >&6; }
3174fi
3175
3176
3177 test -n "$ac_ct_AR" && break
3178done
3179
3180 if test "x$ac_ct_AR" = x; then
3181 AR="false"
3182 else
3183 case $cross_compiling:$ac_tool_warned in
3184yes:)
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3187ac_tool_warned=yes ;;
3188esac
3189 AR=$ac_ct_AR
3190 fi
3191fi
3192
3193: ${AR=ar}
3194
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3196$as_echo_n "checking the archiver ($AR) interface... " >&6; }
3197if ${am_cv_ar_interface+:} false; then :
3198 $as_echo_n "(cached) " >&6
3199else
3200 ac_ext=c
3201ac_cpp='$CPP $CPPFLAGS'
3202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205
3206 am_cv_ar_interface=ar
3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208/* end confdefs.h. */
3209int some_variable = 0;
3210_ACEOF
3211if ac_fn_c_try_compile "$LINENO"; then :
3212 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3214 (eval $am_ar_try) 2>&5
3215 ac_status=$?
3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }
3218 if test "$ac_status" -eq 0; then
3219 am_cv_ar_interface=ar
3220 else
3221 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3223 (eval $am_ar_try) 2>&5
3224 ac_status=$?
3225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226 test $ac_status = 0; }
3227 if test "$ac_status" -eq 0; then
3228 am_cv_ar_interface=lib
3229 else
3230 am_cv_ar_interface=unknown
3231 fi
3232 fi
3233 rm -f conftest.lib libconftest.a
3234
3235fi
3236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 ac_ext=c
3238ac_cpp='$CPP $CPPFLAGS'
3239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242
3243fi
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3245$as_echo "$am_cv_ar_interface" >&6; }
3246
3247case $am_cv_ar_interface in
3248ar)
3249 ;;
3250lib)
3251 # Microsoft lib, so override with the ar-lib wrapper script.
3252 # FIXME: It is wrong to rewrite AR.
3253 # But if we don't then we get into trouble of one sort or another.
3254 # A longer-term fix would be to have automake use am__AR in this case,
3255 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3256 # similar.
3257 AR="$am_aux_dir/ar-lib $AR"
3258 ;;
3259unknown)
3260 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3261 ;;
3262esac
3263
3264if test -n "$ac_tool_prefix"; then
3265 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3266set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268$as_echo_n "checking for $ac_word... " >&6; }
3269if ${ac_cv_prog_RANLIB+:} false; then :
3270 $as_echo_n "(cached) " >&6
3271else
3272 if test -n "$RANLIB"; then
3273 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3274else
3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276for as_dir in $PATH
3277do
3278 IFS=$as_save_IFS
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3282 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 break 2
3285 fi
3286done
3287 done
3288IFS=$as_save_IFS
3289
3290fi
3291fi
3292RANLIB=$ac_cv_prog_RANLIB
3293if test -n "$RANLIB"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3295$as_echo "$RANLIB" >&6; }
3296else
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298$as_echo "no" >&6; }
3299fi
3300
3301
3302fi
3303if test -z "$ac_cv_prog_RANLIB"; then
3304 ac_ct_RANLIB=$RANLIB
3305 # Extract the first word of "ranlib", so it can be a program name with args.
3306set dummy ranlib; ac_word=$2
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308$as_echo_n "checking for $ac_word... " >&6; }
3309if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3310 $as_echo_n "(cached) " >&6
3311else
3312 if test -n "$ac_ct_RANLIB"; then
3313 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3314else
3315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316for as_dir in $PATH
3317do
3318 IFS=$as_save_IFS
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3322 ac_cv_prog_ac_ct_RANLIB="ranlib"
3323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 break 2
3325 fi
3326done
3327 done
3328IFS=$as_save_IFS
3329
3330fi
3331fi
3332ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3333if test -n "$ac_ct_RANLIB"; then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3335$as_echo "$ac_ct_RANLIB" >&6; }
3336else
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338$as_echo "no" >&6; }
3339fi
3340
3341 if test "x$ac_ct_RANLIB" = x; then
3342 RANLIB=":"
3343 else
3344 case $cross_compiling:$ac_tool_warned in
3345yes:)
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3348ac_tool_warned=yes ;;
3349esac
3350 RANLIB=$ac_ct_RANLIB
3351 fi
3352else
3353 RANLIB="$ac_cv_prog_RANLIB"
3354fi
3355
3356ac_ext=c
3357ac_cpp='$CPP $CPPFLAGS'
3358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361if test -n "$ac_tool_prefix"; then
3362 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3363set dummy ${ac_tool_prefix}gcc; ac_word=$2
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365$as_echo_n "checking for $ac_word... " >&6; }
3366if ${ac_cv_prog_CC+:} false; then :
3367 $as_echo_n "(cached) " >&6
3368else
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3371else
3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373for as_dir in $PATH
3374do
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3379 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 break 2
3382 fi
3383done
3384 done
3385IFS=$as_save_IFS
3386
3387fi
3388fi
3389CC=$ac_cv_prog_CC
3390if test -n "$CC"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392$as_echo "$CC" >&6; }
3393else
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395$as_echo "no" >&6; }
3396fi
3397
3398
3399fi
3400if test -z "$ac_cv_prog_CC"; then
3401 ac_ct_CC=$CC
3402 # Extract the first word of "gcc", so it can be a program name with args.
3403set dummy gcc; ac_word=$2
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405$as_echo_n "checking for $ac_word... " >&6; }
3406if ${ac_cv_prog_ac_ct_CC+:} false; then :
3407 $as_echo_n "(cached) " >&6
3408else
3409 if test -n "$ac_ct_CC"; then
3410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3411else
3412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413for as_dir in $PATH
3414do
3415 IFS=$as_save_IFS
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3419 ac_cv_prog_ac_ct_CC="gcc"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 break 2
3422 fi
3423done
3424 done
3425IFS=$as_save_IFS
3426
3427fi
3428fi
3429ac_ct_CC=$ac_cv_prog_ac_ct_CC
3430if test -n "$ac_ct_CC"; then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3432$as_echo "$ac_ct_CC" >&6; }
3433else
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435$as_echo "no" >&6; }
3436fi
3437
3438 if test "x$ac_ct_CC" = x; then
3439 CC=""
3440 else
3441 case $cross_compiling:$ac_tool_warned in
3442yes:)
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3445ac_tool_warned=yes ;;
3446esac
3447 CC=$ac_ct_CC
3448 fi
3449else
3450 CC="$ac_cv_prog_CC"
3451fi
3452
3453if test -z "$CC"; then
3454 if test -n "$ac_tool_prefix"; then
3455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3456set dummy ${ac_tool_prefix}cc; ac_word=$2
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458$as_echo_n "checking for $ac_word... " >&6; }
3459if ${ac_cv_prog_CC+:} false; then :
3460 $as_echo_n "(cached) " >&6
3461else
3462 if test -n "$CC"; then
3463 ac_cv_prog_CC="$CC" # Let the user override the test.
3464else
3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466for as_dir in $PATH
3467do
3468 IFS=$as_save_IFS
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472 ac_cv_prog_CC="${ac_tool_prefix}cc"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 break 2
3475 fi
3476done
3477 done
3478IFS=$as_save_IFS
3479
3480fi
3481fi
3482CC=$ac_cv_prog_CC
3483if test -n "$CC"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3485$as_echo "$CC" >&6; }
3486else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488$as_echo "no" >&6; }
3489fi
3490
3491
3492 fi
3493fi
3494if test -z "$CC"; then
3495 # Extract the first word of "cc", so it can be a program name with args.
3496set dummy cc; ac_word=$2
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498$as_echo_n "checking for $ac_word... " >&6; }
3499if ${ac_cv_prog_CC+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501else
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3504else
3505 ac_prog_rejected=no
3506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507for as_dir in $PATH
3508do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3514 ac_prog_rejected=yes
3515 continue
3516 fi
3517 ac_cv_prog_CC="cc"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 break 2
3520 fi
3521done
3522 done
3523IFS=$as_save_IFS
3524
3525if test $ac_prog_rejected = yes; then
3526 # We found a bogon in the path, so make sure we never use it.
3527 set dummy $ac_cv_prog_CC
3528 shift
3529 if test $# != 0; then
3530 # We chose a different compiler from the bogus one.
3531 # However, it has the same basename, so the bogon will be chosen
3532 # first if we set CC to just the basename; use the full file name.
3533 shift
3534 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3535 fi
3536fi
3537fi
3538fi
3539CC=$ac_cv_prog_CC
3540if test -n "$CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542$as_echo "$CC" >&6; }
3543else
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545$as_echo "no" >&6; }
3546fi
3547
3548
3549fi
3550if test -z "$CC"; then
3551 if test -n "$ac_tool_prefix"; then
3552 for ac_prog in cl.exe
3553 do
3554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3555set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557$as_echo_n "checking for $ac_word... " >&6; }
3558if ${ac_cv_prog_CC+:} false; then :
3559 $as_echo_n "(cached) " >&6
3560else
3561 if test -n "$CC"; then
3562 ac_cv_prog_CC="$CC" # Let the user override the test.
3563else
3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH
3566do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3574 fi
3575done
3576 done
3577IFS=$as_save_IFS
3578
3579fi
3580fi
3581CC=$ac_cv_prog_CC
3582if test -n "$CC"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3584$as_echo "$CC" >&6; }
3585else
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587$as_echo "no" >&6; }
3588fi
3589
3590
3591 test -n "$CC" && break
3592 done
3593fi
3594if test -z "$CC"; then
3595 ac_ct_CC=$CC
3596 for ac_prog in cl.exe
3597do
3598 # Extract the first word of "$ac_prog", so it can be a program name with args.
3599set dummy $ac_prog; ac_word=$2
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601$as_echo_n "checking for $ac_word... " >&6; }
3602if ${ac_cv_prog_ac_ct_CC+:} false; then :
3603 $as_echo_n "(cached) " >&6
3604else
3605 if test -n "$ac_ct_CC"; then
3606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3607else
3608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609for as_dir in $PATH
3610do
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3615 ac_cv_prog_ac_ct_CC="$ac_prog"
3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 break 2
3618 fi
3619done
3620 done
3621IFS=$as_save_IFS
3622
3623fi
3624fi
3625ac_ct_CC=$ac_cv_prog_ac_ct_CC
3626if test -n "$ac_ct_CC"; then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3628$as_echo "$ac_ct_CC" >&6; }
3629else
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631$as_echo "no" >&6; }
3632fi
3633
3634
3635 test -n "$ac_ct_CC" && break
3636done
3637
3638 if test "x$ac_ct_CC" = x; then
3639 CC=""
3640 else
3641 case $cross_compiling:$ac_tool_warned in
3642yes:)
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3645ac_tool_warned=yes ;;
3646esac
3647 CC=$ac_ct_CC
3648 fi
3649fi
3650
3651fi
3652
3653
3654test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656as_fn_error $? "no acceptable C compiler found in \$PATH
3657See \`config.log' for more details" "$LINENO" 5; }
3658
3659# Provide some information about the compiler.
3660$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3661set X $ac_compile
3662ac_compiler=$2
3663for ac_option in --version -v -V -qversion; do
3664 { { ac_try="$ac_compiler $ac_option >&5"
3665case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668esac
3669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670$as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3672 ac_status=$?
3673 if test -s conftest.err; then
3674 sed '10a\
3675... rest of stderr output deleted ...
3676 10q' conftest.err >conftest.er1
3677 cat conftest.er1 >&5
3678 fi
3679 rm -f conftest.er1 conftest.err
3680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3681 test $ac_status = 0; }
3682done
3683
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3685$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3686if ${ac_cv_c_compiler_gnu+:} false; then :
3687 $as_echo_n "(cached) " >&6
3688else
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690/* end confdefs.h. */
3691
3692int
3693main ()
3694{
3695#ifndef __GNUC__
3696 choke me
3697#endif
3698
3699 ;
3700 return 0;
3701}
3702_ACEOF
3703if ac_fn_c_try_compile "$LINENO"; then :
3704 ac_compiler_gnu=yes
3705else
3706 ac_compiler_gnu=no
3707fi
3708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709ac_cv_c_compiler_gnu=$ac_compiler_gnu
3710
3711fi
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3713$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3714if test $ac_compiler_gnu = yes; then
3715 GCC=yes
3716else
3717 GCC=
3718fi
3719ac_test_CFLAGS=${CFLAGS+set}
3720ac_save_CFLAGS=$CFLAGS
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3722$as_echo_n "checking whether $CC accepts -g... " >&6; }
3723if ${ac_cv_prog_cc_g+:} false; then :
3724 $as_echo_n "(cached) " >&6
3725else
3726 ac_save_c_werror_flag=$ac_c_werror_flag
3727 ac_c_werror_flag=yes
3728 ac_cv_prog_cc_g=no
3729 CFLAGS="-g"
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731/* end confdefs.h. */
3732
3733int
3734main ()
3735{
3736
3737 ;
3738 return 0;
3739}
3740_ACEOF
3741if ac_fn_c_try_compile "$LINENO"; then :
3742 ac_cv_prog_cc_g=yes
3743else
3744 CFLAGS=""
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746/* end confdefs.h. */
3747
3748int
3749main ()
3750{
3751
3752 ;
3753 return 0;
3754}
3755_ACEOF
3756if ac_fn_c_try_compile "$LINENO"; then :
3757
3758else
3759 ac_c_werror_flag=$ac_save_c_werror_flag
3760 CFLAGS="-g"
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762/* end confdefs.h. */
3763
3764int
3765main ()
3766{
3767
3768 ;
3769 return 0;
3770}
3771_ACEOF
3772if ac_fn_c_try_compile "$LINENO"; then :
3773 ac_cv_prog_cc_g=yes
3774fi
3775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776fi
3777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778fi
3779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780 ac_c_werror_flag=$ac_save_c_werror_flag
3781fi
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3783$as_echo "$ac_cv_prog_cc_g" >&6; }
3784if test "$ac_test_CFLAGS" = set; then
3785 CFLAGS=$ac_save_CFLAGS
3786elif test $ac_cv_prog_cc_g = yes; then
3787 if test "$GCC" = yes; then
3788 CFLAGS="-g -O2"
3789 else
3790 CFLAGS="-g"
3791 fi
3792else
3793 if test "$GCC" = yes; then
3794 CFLAGS="-O2"
3795 else
3796 CFLAGS=
3797 fi
3798fi
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3800$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3801if ${ac_cv_prog_cc_c89+:} false; then :
3802 $as_echo_n "(cached) " >&6
3803else
3804 ac_cv_prog_cc_c89=no
3805ac_save_CC=$CC
3806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h. */
3808#include <stdarg.h>
3809#include <stdio.h>
3810struct stat;
3811/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3812struct buf { int x; };
3813FILE * (*rcsopen) (struct buf *, struct stat *, int);
3814static char *e (p, i)
3815 char **p;
3816 int i;
3817{
3818 return p[i];
3819}
3820static char *f (char * (*g) (char **, int), char **p, ...)
3821{
3822 char *s;
3823 va_list v;
3824 va_start (v,p);
3825 s = g (p, va_arg (v,int));
3826 va_end (v);
3827 return s;
3828}
3829
3830/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3831 function prototypes and stuff, but not '\xHH' hex character constants.
3832 These don't provoke an error unfortunately, instead are silently treated
3833 as 'x'. The following induces an error, until -std is added to get
3834 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3835 array size at least. It's necessary to write '\x00'==0 to get something
3836 that's true only with -std. */
3837int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3838
3839/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3840 inside strings and character constants. */
3841#define FOO(x) 'x'
3842int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3843
3844int test (int i, double x);
3845struct s1 {int (*f) (int a);};
3846struct s2 {int (*f) (double a);};
3847int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3848int argc;
3849char **argv;
3850int
3851main ()
3852{
3853return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3854 ;
3855 return 0;
3856}
3857_ACEOF
3858for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3859 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3860do
3861 CC="$ac_save_CC $ac_arg"
3862 if ac_fn_c_try_compile "$LINENO"; then :
3863 ac_cv_prog_cc_c89=$ac_arg
3864fi
3865rm -f core conftest.err conftest.$ac_objext
3866 test "x$ac_cv_prog_cc_c89" != "xno" && break
3867done
3868rm -f conftest.$ac_ext
3869CC=$ac_save_CC
3870
3871fi
3872# AC_CACHE_VAL
3873case "x$ac_cv_prog_cc_c89" in
3874 x)
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3876$as_echo "none needed" >&6; } ;;
3877 xno)
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3879$as_echo "unsupported" >&6; } ;;
3880 *)
3881 CC="$CC $ac_cv_prog_cc_c89"
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3883$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3884esac
3885if test "x$ac_cv_prog_cc_c89" != xno; then :
3886
3887fi
3888
3889ac_ext=c
3890ac_cpp='$CPP $CPPFLAGS'
3891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894
Pascal Bühlerac872e72017-02-09 14:55:27 +01003895ac_aux_dir=
3896for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3897 if test -f "$ac_dir/install-sh"; then
3898 ac_aux_dir=$ac_dir
3899 ac_install_sh="$ac_aux_dir/install-sh -c"
3900 break
3901 elif test -f "$ac_dir/install.sh"; then
3902 ac_aux_dir=$ac_dir
3903 ac_install_sh="$ac_aux_dir/install.sh -c"
3904 break
3905 elif test -f "$ac_dir/shtool"; then
3906 ac_aux_dir=$ac_dir
3907 ac_install_sh="$ac_aux_dir/shtool install -c"
3908 break
3909 fi
3910done
3911if test -z "$ac_aux_dir"; then
3912 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3913fi
3914
3915# These three variables are undocumented and unsupported,
3916# and are intended to be withdrawn in a future Autoconf release.
3917# They can cause serious problems if a builder's source tree is in a directory
3918# whose full name contains unusual characters.
3919ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3920ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3921ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3922
3923
David McGrewb67061f2005-09-28 14:23:06 +00003924# Find a good install program. We prefer a C program (faster),
3925# so one script is as good as another. But avoid the broken or
3926# incompatible versions:
3927# SysV /etc/install, /usr/sbin/install
3928# SunOS /usr/etc/install
3929# IRIX /sbin/install
3930# AIX /bin/install
3931# AmigaOS /C/install, which installs bootblocks on floppy discs
3932# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3933# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3934# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3935# OS/2's system install, which has a completely different semantic
3936# ./install, which can be erroneously created by make from ./install.sh.
jfigusc7e66e32013-05-08 11:32:55 -04003937# Reject install programs that cannot install multiple files.
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3939$as_echo_n "checking for a BSD-compatible install... " >&6; }
David McGrewb67061f2005-09-28 14:23:06 +00003940if test -z "$INSTALL"; then
jfigusc7e66e32013-05-08 11:32:55 -04003941if ${ac_cv_path_install+:} false; then :
3942 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00003943else
David McGrewb67061f2005-09-28 14:23:06 +00003944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945for as_dir in $PATH
3946do
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
jfigusc7e66e32013-05-08 11:32:55 -04003949 # Account for people who put trailing slashes in PATH elements.
3950case $as_dir/ in #((
3951 ./ | .// | /[cC]/* | \
David McGrewb67061f2005-09-28 14:23:06 +00003952 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jfigusc7e66e32013-05-08 11:32:55 -04003953 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
David McGrewb67061f2005-09-28 14:23:06 +00003954 /usr/ucb/* ) ;;
3955 *)
3956 # OSF1 and SCO ODT 3.0 have their own names for install.
3957 # Don't use installbsd from OSF since it installs stuff as root
3958 # by default.
3959 for ac_prog in ginstall scoinst install; do
3960 for ac_exec_ext in '' $ac_executable_extensions; do
jfigusc7e66e32013-05-08 11:32:55 -04003961 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
David McGrewb67061f2005-09-28 14:23:06 +00003962 if test $ac_prog = install &&
3963 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3964 # AIX install. It has an incompatible calling convention.
3965 :
3966 elif test $ac_prog = install &&
3967 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3968 # program-specific install script used by HP pwplus--don't use.
3969 :
3970 else
jfigusc7e66e32013-05-08 11:32:55 -04003971 rm -rf conftest.one conftest.two conftest.dir
3972 echo one > conftest.one
3973 echo two > conftest.two
3974 mkdir conftest.dir
3975 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3976 test -s conftest.one && test -s conftest.two &&
3977 test -s conftest.dir/conftest.one &&
3978 test -s conftest.dir/conftest.two
3979 then
3980 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3981 break 3
3982 fi
David McGrewb67061f2005-09-28 14:23:06 +00003983 fi
3984 fi
3985 done
3986 done
3987 ;;
3988esac
Cullen Jennings235513a2005-09-21 22:51:36 +00003989
jfigusc7e66e32013-05-08 11:32:55 -04003990 done
3991IFS=$as_save_IFS
3992
3993rm -rf conftest.one conftest.two conftest.dir
Cullen Jennings235513a2005-09-21 22:51:36 +00003994
3995fi
David McGrewb67061f2005-09-28 14:23:06 +00003996 if test "${ac_cv_path_install+set}" = set; then
3997 INSTALL=$ac_cv_path_install
3998 else
jfigusc7e66e32013-05-08 11:32:55 -04003999 # As a last resort, use the slow shell script. Don't cache a
4000 # value for INSTALL within a source directory, because that will
David McGrewb67061f2005-09-28 14:23:06 +00004001 # break other packages using the cache if that directory is
jfigusc7e66e32013-05-08 11:32:55 -04004002 # removed, or if the value is a relative name.
David McGrewb67061f2005-09-28 14:23:06 +00004003 INSTALL=$ac_install_sh
4004 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00004005fi
jfigusc7e66e32013-05-08 11:32:55 -04004006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4007$as_echo "$INSTALL" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00004008
David McGrewb67061f2005-09-28 14:23:06 +00004009# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4010# It thinks the first close brace ends the variable substitution.
4011test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
Cullen Jennings235513a2005-09-21 22:51:36 +00004012
David McGrewb67061f2005-09-28 14:23:06 +00004013test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4014
4015test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Cullen Jennings235513a2005-09-21 22:51:36 +00004016
Idar Tollefsen600ad962017-01-26 11:24:51 +01004017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4018$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4019if ${ac_cv_path_SED+:} false; then :
4020 $as_echo_n "(cached) " >&6
4021else
4022 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4023 for ac_i in 1 2 3 4 5 6 7; do
4024 ac_script="$ac_script$as_nl$ac_script"
4025 done
4026 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4027 { ac_script=; unset ac_script;}
4028 if test -z "$SED"; then
4029 ac_path_SED_found=false
4030 # Loop through the user's path and test for each of PROGNAME-LIST
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032for as_dir in $PATH
4033do
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
4036 for ac_prog in sed gsed; do
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4039 as_fn_executable_p "$ac_path_SED" || continue
4040# Check for GNU ac_path_SED and select it if it is found.
4041 # Check for GNU $ac_path_SED
4042case `"$ac_path_SED" --version 2>&1` in
4043*GNU*)
4044 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4045*)
4046 ac_count=0
4047 $as_echo_n 0123456789 >"conftest.in"
4048 while :
4049 do
4050 cat "conftest.in" "conftest.in" >"conftest.tmp"
4051 mv "conftest.tmp" "conftest.in"
4052 cp "conftest.in" "conftest.nl"
4053 $as_echo '' >> "conftest.nl"
4054 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4056 as_fn_arith $ac_count + 1 && ac_count=$as_val
4057 if test $ac_count -gt ${ac_path_SED_max-0}; then
4058 # Best one so far, save it but keep looking for a better one
4059 ac_cv_path_SED="$ac_path_SED"
4060 ac_path_SED_max=$ac_count
4061 fi
4062 # 10*(2^10) chars as input seems more than enough
4063 test $ac_count -gt 10 && break
4064 done
4065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4066esac
4067
4068 $ac_path_SED_found && break 3
4069 done
4070 done
4071 done
4072IFS=$as_save_IFS
4073 if test -z "$ac_cv_path_SED"; then
4074 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4075 fi
4076else
4077 ac_cv_path_SED=$SED
4078fi
4079
4080fi
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4082$as_echo "$ac_cv_path_SED" >&6; }
4083 SED="$ac_cv_path_SED"
4084 rm -f conftest.sed
4085
Cullen Jennings235513a2005-09-21 22:51:36 +00004086
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004087ac_ext=c
4088ac_cpp='$CPP $CPPFLAGS'
4089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091ac_compiler_gnu=$ac_cv_c_compiler_gnu
jfigusc7e66e32013-05-08 11:32:55 -04004092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4093$as_echo_n "checking how to run the C preprocessor... " >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004094# On Suns, sometimes $CPP names a directory.
4095if test -n "$CPP" && test -d "$CPP"; then
4096 CPP=
4097fi
4098if test -z "$CPP"; then
jfigusc7e66e32013-05-08 11:32:55 -04004099 if ${ac_cv_prog_CPP+:} false; then :
4100 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004101else
4102 # Double quotes because CPP needs to be expanded
4103 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4104 do
4105 ac_preproc_ok=false
4106for ac_c_preproc_warn_flag in '' yes
4107do
4108 # Use a header file that comes with gcc, so configuring glibc
4109 # with a fresh cross-compiler works.
4110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4111 # <limits.h> exists even on freestanding compilers.
4112 # On the NeXT, cc -E runs the code through the compiler's parser,
4113 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04004114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004115/* end confdefs.h. */
4116#ifdef __STDC__
4117# include <limits.h>
4118#else
4119# include <assert.h>
4120#endif
4121 Syntax error
4122_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004123if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004124
jfigusc7e66e32013-05-08 11:32:55 -04004125else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004126 # Broken: fails on valid input.
4127continue
4128fi
jfigusc7e66e32013-05-08 11:32:55 -04004129rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004130
jfigusc7e66e32013-05-08 11:32:55 -04004131 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004132 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04004133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004134/* end confdefs.h. */
4135#include <ac_nonexistent.h>
4136_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004137if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004138 # Broken: success on invalid input.
4139continue
4140else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004141 # Passes both tests.
4142ac_preproc_ok=:
4143break
4144fi
jfigusc7e66e32013-05-08 11:32:55 -04004145rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004146
4147done
4148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04004149rm -f conftest.i conftest.err conftest.$ac_ext
4150if $ac_preproc_ok; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004151 break
4152fi
4153
4154 done
4155 ac_cv_prog_CPP=$CPP
4156
4157fi
4158 CPP=$ac_cv_prog_CPP
4159else
4160 ac_cv_prog_CPP=$CPP
4161fi
jfigusc7e66e32013-05-08 11:32:55 -04004162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4163$as_echo "$CPP" >&6; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004164ac_preproc_ok=false
4165for ac_c_preproc_warn_flag in '' yes
4166do
4167 # Use a header file that comes with gcc, so configuring glibc
4168 # with a fresh cross-compiler works.
4169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4170 # <limits.h> exists even on freestanding compilers.
4171 # On the NeXT, cc -E runs the code through the compiler's parser,
4172 # not just through cpp. "Syntax error" is here to catch this case.
jfigusc7e66e32013-05-08 11:32:55 -04004173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004174/* end confdefs.h. */
4175#ifdef __STDC__
4176# include <limits.h>
4177#else
4178# include <assert.h>
4179#endif
4180 Syntax error
4181_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004182if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004183
jfigusc7e66e32013-05-08 11:32:55 -04004184else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004185 # Broken: fails on valid input.
4186continue
4187fi
jfigusc7e66e32013-05-08 11:32:55 -04004188rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004189
jfigusc7e66e32013-05-08 11:32:55 -04004190 # OK, works on sane cases. Now check whether nonexistent headers
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004191 # can be detected and how.
jfigusc7e66e32013-05-08 11:32:55 -04004192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004193/* end confdefs.h. */
4194#include <ac_nonexistent.h>
4195_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004196if ac_fn_c_try_cpp "$LINENO"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004197 # Broken: success on invalid input.
4198continue
4199else
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004200 # Passes both tests.
4201ac_preproc_ok=:
4202break
4203fi
jfigusc7e66e32013-05-08 11:32:55 -04004204rm -f conftest.err conftest.i conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004205
4206done
4207# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
jfigusc7e66e32013-05-08 11:32:55 -04004208rm -f conftest.i conftest.err conftest.$ac_ext
4209if $ac_preproc_ok; then :
4210
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004211else
jfigusc7e66e32013-05-08 11:32:55 -04004212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4214as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4215See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004216fi
4217
4218ac_ext=c
4219ac_cpp='$CPP $CPPFLAGS'
4220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223
4224
jfigusc7e66e32013-05-08 11:32:55 -04004225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4226$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4227if ${ac_cv_path_GREP+:} false; then :
4228 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004229else
jfigusc7e66e32013-05-08 11:32:55 -04004230 if test -z "$GREP"; then
4231 ac_path_GREP_found=false
4232 # Loop through the user's path and test for each of PROGNAME-LIST
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4235do
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_prog in grep ggrep; do
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4241 as_fn_executable_p "$ac_path_GREP" || continue
4242# Check for GNU ac_path_GREP and select it if it is found.
4243 # Check for GNU $ac_path_GREP
4244case `"$ac_path_GREP" --version 2>&1` in
4245*GNU*)
4246 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4247*)
4248 ac_count=0
4249 $as_echo_n 0123456789 >"conftest.in"
4250 while :
4251 do
4252 cat "conftest.in" "conftest.in" >"conftest.tmp"
4253 mv "conftest.tmp" "conftest.in"
4254 cp "conftest.in" "conftest.nl"
4255 $as_echo 'GREP' >> "conftest.nl"
4256 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4257 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4258 as_fn_arith $ac_count + 1 && ac_count=$as_val
4259 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4260 # Best one so far, save it but keep looking for a better one
4261 ac_cv_path_GREP="$ac_path_GREP"
4262 ac_path_GREP_max=$ac_count
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004263 fi
jfigusc7e66e32013-05-08 11:32:55 -04004264 # 10*(2^10) chars as input seems more than enough
4265 test $ac_count -gt 10 && break
4266 done
4267 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4268esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004269
jfigusc7e66e32013-05-08 11:32:55 -04004270 $ac_path_GREP_found && break 3
4271 done
4272 done
4273 done
4274IFS=$as_save_IFS
4275 if test -z "$ac_cv_path_GREP"; then
4276 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4277 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004278else
jfigusc7e66e32013-05-08 11:32:55 -04004279 ac_cv_path_GREP=$GREP
4280fi
4281
4282fi
4283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4284$as_echo "$ac_cv_path_GREP" >&6; }
4285 GREP="$ac_cv_path_GREP"
4286
4287
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4289$as_echo_n "checking for egrep... " >&6; }
4290if ${ac_cv_path_EGREP+:} false; then :
4291 $as_echo_n "(cached) " >&6
4292else
4293 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4294 then ac_cv_path_EGREP="$GREP -E"
4295 else
4296 if test -z "$EGREP"; then
4297 ac_path_EGREP_found=false
4298 # Loop through the user's path and test for each of PROGNAME-LIST
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4301do
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
4304 for ac_prog in egrep; do
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4307 as_fn_executable_p "$ac_path_EGREP" || continue
4308# Check for GNU ac_path_EGREP and select it if it is found.
4309 # Check for GNU $ac_path_EGREP
4310case `"$ac_path_EGREP" --version 2>&1` in
4311*GNU*)
4312 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4313*)
4314 ac_count=0
4315 $as_echo_n 0123456789 >"conftest.in"
4316 while :
4317 do
4318 cat "conftest.in" "conftest.in" >"conftest.tmp"
4319 mv "conftest.tmp" "conftest.in"
4320 cp "conftest.in" "conftest.nl"
4321 $as_echo 'EGREP' >> "conftest.nl"
4322 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4324 as_fn_arith $ac_count + 1 && ac_count=$as_val
4325 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4326 # Best one so far, save it but keep looking for a better one
4327 ac_cv_path_EGREP="$ac_path_EGREP"
4328 ac_path_EGREP_max=$ac_count
4329 fi
4330 # 10*(2^10) chars as input seems more than enough
4331 test $ac_count -gt 10 && break
4332 done
4333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4334esac
4335
4336 $ac_path_EGREP_found && break 3
4337 done
4338 done
4339 done
4340IFS=$as_save_IFS
4341 if test -z "$ac_cv_path_EGREP"; then
4342 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4343 fi
4344else
4345 ac_cv_path_EGREP=$EGREP
4346fi
4347
4348 fi
4349fi
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4351$as_echo "$ac_cv_path_EGREP" >&6; }
4352 EGREP="$ac_cv_path_EGREP"
4353
4354
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4356$as_echo_n "checking for ANSI C header files... " >&6; }
4357if ${ac_cv_header_stdc+:} false; then :
4358 $as_echo_n "(cached) " >&6
4359else
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004361/* end confdefs.h. */
4362#include <stdlib.h>
4363#include <stdarg.h>
4364#include <string.h>
4365#include <float.h>
4366
4367int
4368main ()
4369{
4370
4371 ;
4372 return 0;
4373}
4374_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004375if ac_fn_c_try_compile "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04004376 ac_cv_header_stdc=yes
4377else
jfigusc7e66e32013-05-08 11:32:55 -04004378 ac_cv_header_stdc=no
jfigusa14b5a02013-03-29 12:24:12 -04004379fi
jfigusc7e66e32013-05-08 11:32:55 -04004380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004381
4382if test $ac_cv_header_stdc = yes; then
4383 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04004384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004385/* end confdefs.h. */
4386#include <string.h>
4387
4388_ACEOF
4389if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04004390 $EGREP "memchr" >/dev/null 2>&1; then :
4391
jfigusa14b5a02013-03-29 12:24:12 -04004392else
4393 ac_cv_header_stdc=no
4394fi
4395rm -f conftest*
4396
4397fi
4398
4399if test $ac_cv_header_stdc = yes; then
4400 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jfigusc7e66e32013-05-08 11:32:55 -04004401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004402/* end confdefs.h. */
4403#include <stdlib.h>
4404
4405_ACEOF
4406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jfigusc7e66e32013-05-08 11:32:55 -04004407 $EGREP "free" >/dev/null 2>&1; then :
4408
jfigusa14b5a02013-03-29 12:24:12 -04004409else
4410 ac_cv_header_stdc=no
4411fi
4412rm -f conftest*
4413
4414fi
4415
4416if test $ac_cv_header_stdc = yes; then
4417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jfigusc7e66e32013-05-08 11:32:55 -04004418 if test "$cross_compiling" = yes; then :
jfigusa14b5a02013-03-29 12:24:12 -04004419 :
4420else
jfigusc7e66e32013-05-08 11:32:55 -04004421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
jfigusa14b5a02013-03-29 12:24:12 -04004422/* end confdefs.h. */
4423#include <ctype.h>
jfigusc7e66e32013-05-08 11:32:55 -04004424#include <stdlib.h>
jfigusa14b5a02013-03-29 12:24:12 -04004425#if ((' ' & 0x0FF) == 0x020)
4426# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4427# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4428#else
4429# define ISLOWER(c) \
4430 (('a' <= (c) && (c) <= 'i') \
4431 || ('j' <= (c) && (c) <= 'r') \
4432 || ('s' <= (c) && (c) <= 'z'))
4433# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4434#endif
4435
4436#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4437int
4438main ()
4439{
4440 int i;
4441 for (i = 0; i < 256; i++)
4442 if (XOR (islower (i), ISLOWER (i))
4443 || toupper (i) != TOUPPER (i))
jfigusc7e66e32013-05-08 11:32:55 -04004444 return 2;
4445 return 0;
jfigusa14b5a02013-03-29 12:24:12 -04004446}
4447_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004448if ac_fn_c_try_run "$LINENO"; then :
jfigusa14b5a02013-03-29 12:24:12 -04004449
jfigusc7e66e32013-05-08 11:32:55 -04004450else
4451 ac_cv_header_stdc=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004452fi
jfigusc7e66e32013-05-08 11:32:55 -04004453rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4454 conftest.$ac_objext conftest.beam conftest.$ac_ext
4455fi
4456
jfigusa14b5a02013-03-29 12:24:12 -04004457fi
4458fi
jfigusc7e66e32013-05-08 11:32:55 -04004459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4460$as_echo "$ac_cv_header_stdc" >&6; }
jfigusa14b5a02013-03-29 12:24:12 -04004461if test $ac_cv_header_stdc = yes; then
4462
jfigusc7e66e32013-05-08 11:32:55 -04004463$as_echo "#define STDC_HEADERS 1" >>confdefs.h
jfigusa14b5a02013-03-29 12:24:12 -04004464
4465fi
4466
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004467# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004468for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4469 inttypes.h stdint.h unistd.h
jfigusc7e66e32013-05-08 11:32:55 -04004470do :
4471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4472ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4473"
4474if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004475 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004476#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004477_ACEOF
4478
4479fi
4480
4481done
4482
4483
jfigusc7e66e32013-05-08 11:32:55 -04004484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4485$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4486if ${ac_cv_c_bigendian+:} false; then :
4487 $as_echo_n "(cached) " >&6
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004488else
jfigusc7e66e32013-05-08 11:32:55 -04004489 ac_cv_c_bigendian=unknown
4490 # See if we're dealing with a universal compiler.
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004492/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004493#ifndef __APPLE_CC__
4494 not a universal capable compiler
4495 #endif
4496 typedef int dummy;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004497
jfigusc7e66e32013-05-08 11:32:55 -04004498_ACEOF
4499if ac_fn_c_try_compile "$LINENO"; then :
4500
4501 # Check for potential -arch flags. It is not universal unless
4502 # there are at least two -arch flags with different values.
4503 ac_arch=
4504 ac_prev=
4505 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4506 if test -n "$ac_prev"; then
4507 case $ac_word in
4508 i?86 | x86_64 | ppc | ppc64)
4509 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4510 ac_arch=$ac_word
4511 else
4512 ac_cv_c_bigendian=universal
4513 break
4514 fi
4515 ;;
4516 esac
4517 ac_prev=
4518 elif test "x$ac_word" = "x-arch"; then
4519 ac_prev=arch
4520 fi
4521 done
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004522fi
jfigusc7e66e32013-05-08 11:32:55 -04004523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 if test $ac_cv_c_bigendian = unknown; then
4525 # See if sys/param.h defines the BYTE_ORDER macro.
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004527/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004528#include <sys/types.h>
4529 #include <sys/param.h>
4530
4531int
4532main ()
4533{
4534#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4535 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4536 && LITTLE_ENDIAN)
4537 bogus endian macros
4538 #endif
4539
4540 ;
4541 return 0;
4542}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004543_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004544if ac_fn_c_try_compile "$LINENO"; then :
4545 # It does; now see whether it defined to BIG_ENDIAN or not.
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004547/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004548#include <sys/types.h>
4549 #include <sys/param.h>
4550
4551int
4552main ()
4553{
4554#if BYTE_ORDER != BIG_ENDIAN
4555 not big endian
4556 #endif
4557
4558 ;
4559 return 0;
4560}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004561_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004562if ac_fn_c_try_compile "$LINENO"; then :
4563 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004564else
jfigusc7e66e32013-05-08 11:32:55 -04004565 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004566fi
jfigusc7e66e32013-05-08 11:32:55 -04004567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568fi
4569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 fi
4571 if test $ac_cv_c_bigendian = unknown; then
4572 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004574/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004575#include <limits.h>
4576
4577int
4578main ()
4579{
4580#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4581 bogus endian macros
4582 #endif
4583
4584 ;
4585 return 0;
4586}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004587_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004588if ac_fn_c_try_compile "$LINENO"; then :
4589 # It does; now see whether it defined to _BIG_ENDIAN or not.
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004591/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004592#include <limits.h>
4593
4594int
4595main ()
4596{
4597#ifndef _BIG_ENDIAN
4598 not big endian
4599 #endif
4600
4601 ;
4602 return 0;
4603}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004604_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004605if ac_fn_c_try_compile "$LINENO"; then :
4606 ac_cv_c_bigendian=yes
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004607else
jfigusc7e66e32013-05-08 11:32:55 -04004608 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004609fi
jfigusc7e66e32013-05-08 11:32:55 -04004610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611fi
4612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 fi
4614 if test $ac_cv_c_bigendian = unknown; then
4615 # Compile a test program.
4616 if test "$cross_compiling" = yes; then :
4617 # Try to guess by grepping values from an object file.
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004619/* end confdefs.h. */
jfigusc7e66e32013-05-08 11:32:55 -04004620short int ascii_mm[] =
4621 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4622 short int ascii_ii[] =
4623 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4624 int use_ascii (int i) {
4625 return ascii_mm[i] + ascii_ii[i];
4626 }
4627 short int ebcdic_ii[] =
4628 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4629 short int ebcdic_mm[] =
4630 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4631 int use_ebcdic (int i) {
4632 return ebcdic_mm[i] + ebcdic_ii[i];
4633 }
4634 extern int foo;
4635
4636int
4637main ()
4638{
4639return use_ascii (foo) == use_ebcdic (foo);
4640 ;
4641 return 0;
4642}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004643_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004644if ac_fn_c_try_compile "$LINENO"; then :
4645 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4646 ac_cv_c_bigendian=yes
4647 fi
4648 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4649 if test "$ac_cv_c_bigendian" = unknown; then
4650 ac_cv_c_bigendian=no
4651 else
4652 # finding both strings is unlikely to happen, but who knows?
4653 ac_cv_c_bigendian=unknown
4654 fi
4655 fi
4656fi
4657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004658else
jfigusc7e66e32013-05-08 11:32:55 -04004659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004660/* end confdefs.h. */
4661$ac_includes_default
4662int
4663main ()
4664{
jfigusc7e66e32013-05-08 11:32:55 -04004665
4666 /* Are we little or big endian? From Harbison&Steele. */
4667 union
4668 {
4669 long int l;
4670 char c[sizeof (long int)];
4671 } u;
4672 u.l = 1;
4673 return u.c[sizeof (long int) - 1] == 1;
4674
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004675 ;
4676 return 0;
4677}
4678_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04004679if ac_fn_c_try_run "$LINENO"; then :
4680 ac_cv_c_bigendian=no
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004681else
jfigusc7e66e32013-05-08 11:32:55 -04004682 ac_cv_c_bigendian=yes
4683fi
4684rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4685 conftest.$ac_objext conftest.beam conftest.$ac_ext
4686fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004687
jfigusc7e66e32013-05-08 11:32:55 -04004688 fi
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004689fi
jfigusc7e66e32013-05-08 11:32:55 -04004690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4691$as_echo "$ac_cv_c_bigendian" >&6; }
4692 case $ac_cv_c_bigendian in #(
4693 yes)
4694 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4695;; #(
4696 no)
4697 ;; #(
4698 universal)
4699
4700$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4701
4702 ;; #(
4703 *)
4704 as_fn_error $? "unknown endianness
4705 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4706 esac
4707
4708
4709# Make sure we can run config.sub.
4710$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4711 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4712
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4714$as_echo_n "checking build system type... " >&6; }
4715if ${ac_cv_build+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717else
4718 ac_build_alias=$build_alias
4719test "x$ac_build_alias" = x &&
4720 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4721test "x$ac_build_alias" = x &&
4722 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4723ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4724 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4725
Cullen Jennings52c5cd32013-05-01 18:07:29 -06004726fi
jfigusc7e66e32013-05-08 11:32:55 -04004727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4728$as_echo "$ac_cv_build" >&6; }
4729case $ac_cv_build in
4730*-*-*) ;;
4731*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4732esac
4733build=$ac_cv_build
4734ac_save_IFS=$IFS; IFS='-'
4735set x $ac_cv_build
4736shift
4737build_cpu=$1
4738build_vendor=$2
4739shift; shift
4740# Remember, the first character of IFS is used to create $*,
4741# except with old shells:
4742build_os=$*
4743IFS=$ac_save_IFS
4744case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4745
4746
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4748$as_echo_n "checking host system type... " >&6; }
4749if ${ac_cv_host+:} false; then :
4750 $as_echo_n "(cached) " >&6
4751else
4752 if test "x$host_alias" = x; then
4753 ac_cv_host=$ac_cv_build
4754else
4755 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4756 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4757fi
4758
4759fi
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4761$as_echo "$ac_cv_host" >&6; }
4762case $ac_cv_host in
4763*-*-*) ;;
4764*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4765esac
4766host=$ac_cv_host
4767ac_save_IFS=$IFS; IFS='-'
4768set x $ac_cv_host
4769shift
4770host_cpu=$1
4771host_vendor=$2
4772shift; shift
4773# Remember, the first character of IFS is used to create $*,
4774# except with old shells:
4775host_os=$*
4776IFS=$ac_save_IFS
4777case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4778
4779
4780
4781case $host_cpu in
Idar Tollefsen600ad962017-01-26 11:24:51 +01004782 i*86 | x86_64 )
jfigusc7e66e32013-05-08 11:32:55 -04004783
4784$as_echo "#define CPU_CISC 1" >>confdefs.h
4785
4786
4787$as_echo "#define HAVE_X86 1" >>confdefs.h
Idar Tollefsen600ad962017-01-26 11:24:51 +01004788
4789 ;;
4790 * )
jfigusc7e66e32013-05-08 11:32:55 -04004791
4792$as_echo "#define CPU_RISC 1" >>confdefs.h
jfigusfb838412014-12-04 10:15:47 -05004793
Idar Tollefsen600ad962017-01-26 11:24:51 +01004794 ;;
jfigusc7e66e32013-05-08 11:32:55 -04004795esac
4796
4797case $host_os in
Idar Tollefsen600ad962017-01-26 11:24:51 +01004798 *cygwin*|*mingw* )
4799 EXE=.exe
4800 ;;
4801 * )
4802 EXE=""
4803 ;;
jfigusc7e66e32013-05-08 11:32:55 -04004804esac
4805 # define executable suffix; this is needed for `make clean'
4806
Idar Tollefsen600ad962017-01-26 11:24:51 +01004807supported_cflags=""
4808if test "$EMPTY_CFLAGS" = "no"; then
4809 supported_cflags="$CFLAGS"
4810fi
4811
4812WERROR=""
4813for w in -Werror -errwarn; do
4814 if test "x$WERROR" = "x"; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $w" >&5
4816$as_echo_n "checking whether the compiler supports $w... " >&6; }
4817 save_cflags="$CFLAGS"
4818 if test "x$CFLAGS" = "x"; then :
4819 CFLAGS="$w"
4820else
4821 CFLAGS="$CFLAGS $w"
4822fi
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824/* end confdefs.h. */
4825
4826int
4827main ()
4828{
4829
4830 ;
4831 return 0;
4832}
4833_ACEOF
4834if ac_fn_c_try_compile "$LINENO"; then :
4835 WERROR="$w"
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4837$as_echo "yes" >&6; }
4838else
4839 CFLAGS="$save_cflags"
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841$as_echo "no" >&6; }
4842fi
4843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4844 fi
4845done
4846
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC" >&5
4848$as_echo_n "checking whether the compiler supports -fPIC... " >&6; }
4849save_cflags="$CFLAGS"
4850if test "x$CFLAGS" = "x"; then :
4851 CFLAGS="-fPIC"
4852else
4853 CFLAGS="$CFLAGS -fPIC"
4854fi
4855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856/* end confdefs.h. */
4857
4858int
4859main ()
4860{
4861
4862 ;
4863 return 0;
4864}
4865_ACEOF
4866if ac_fn_c_try_compile "$LINENO"; then :
4867 if test "x$supported_cflags" = "x"; then :
4868 supported_cflags="-fPIC"
4869else
4870 supported_cflags="$supported_cflags -fPIC"
4871fi
4872 if test "x$LDFLAGS" = "x"; then :
4873 LDFLAGS="-fPIC"
4874else
4875 LDFLAGS="$LDFLAGS -fPIC"
4876fi
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4878$as_echo "yes" >&6; }
4879else
4880 CFLAGS="$save_cflags"
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882$as_echo "no" >&6; }
4883fi
4884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885
4886if test "$EMPTY_CFLAGS" = "yes"; then
4887 for f in -Wall -pedantic; do
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $f" >&5
4889$as_echo_n "checking whether the compiler supports $f... " >&6; }
4890 save_cflags="$CFLAGS"
4891 if test "x$CFLAGS" = "x"; then :
4892 CFLAGS="$f"
4893else
4894 CFLAGS="$CFLAGS $f"
4895fi
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897/* end confdefs.h. */
4898
4899int
4900main ()
4901{
4902
4903 ;
4904 return 0;
4905}
4906_ACEOF
4907if ac_fn_c_try_compile "$LINENO"; then :
4908 if test "x$supported_cflags" = "x"; then :
4909 supported_cflags="$f"
4910else
4911 supported_cflags="$supported_cflags $f"
4912fi
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4914$as_echo "yes" >&6; }
4915else
4916 CFLAGS="$save_cflags"
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918$as_echo "no" >&6; }
4919fi
4920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4921 done
4922
4923 OOPT=""
4924 for f in -O4 -O3; do
4925 if test "x$OOPT" = "x"; then
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $f" >&5
4927$as_echo_n "checking whether the compiler supports $f... " >&6; }
4928 save_cflags="$CFLAGS"
4929 if test "x$CFLAGS" = "x"; then :
4930 CFLAGS="$f"
4931else
4932 CFLAGS="$CFLAGS $f"
4933fi
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935/* end confdefs.h. */
4936
4937int
4938main ()
4939{
4940
4941 ;
4942 return 0;
4943}
4944_ACEOF
4945if ac_fn_c_try_compile "$LINENO"; then :
4946 if test "x$supported_cflags" = "x"; then :
4947 supported_cflags="$f"
4948else
4949 supported_cflags="$supported_cflags $f"
4950fi
4951 OOPT="$f"
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4953$as_echo "yes" >&6; }
4954else
4955 CFLAGS="$save_cflags"
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957$as_echo "no" >&6; }
4958fi
4959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 fi
4961 done
4962
4963 for f in -fexpensive-optimizations -funroll-loops; do
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $f" >&5
4965$as_echo_n "checking whether the compiler supports $f... " >&6; }
4966 save_cflags="$CFLAGS"
4967 if test "x$CFLAGS" = "x"; then :
4968 CFLAGS="$f"
4969else
4970 CFLAGS="$CFLAGS $f"
4971fi
4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973/* end confdefs.h. */
4974
4975int
4976main ()
4977{
4978
4979 ;
4980 return 0;
4981}
4982_ACEOF
4983if ac_fn_c_try_compile "$LINENO"; then :
4984 if test "x$supported_cflags" = "x"; then :
4985 supported_cflags="$f"
4986else
4987 supported_cflags="$supported_cflags $f"
4988fi
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4990$as_echo "yes" >&6; }
4991else
4992 CFLAGS="$save_cflags"
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994$as_echo "no" >&6; }
4995fi
4996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 done
4998fi
4999
5000for f in -Wno-language-extension-token; do
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $f" >&5
5002$as_echo_n "checking whether the compiler supports $f... " >&6; }
5003 save_cflags="$CFLAGS"
5004 testf=$(echo "$f" | $SED 's|-Wno-\(.*\)|-W\1|g')
5005 if test "x$CFLAGS" = "x"; then :
5006 CFLAGS="$testf"
5007else
5008 CFLAGS="$CFLAGS $testf"
5009fi
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011/* end confdefs.h. */
5012
5013int
5014main ()
5015{
5016
5017 ;
5018 return 0;
5019}
5020_ACEOF
5021if ac_fn_c_try_compile "$LINENO"; then :
5022 if test "x$supported_cflags" = "x"; then :
5023 supported_cflags="$f"
5024else
5025 supported_cflags="$supported_cflags $f"
5026fi
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5028$as_echo "yes" >&6; }
5029else
5030 CFLAGS="$save_cflags"
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032$as_echo "no" >&6; }
5033fi
5034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035done
5036
5037CFLAGS="$supported_cflags"
jfigusc7e66e32013-05-08 11:32:55 -04005038
5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5040$as_echo_n "checking for ANSI C header files... " >&6; }
5041if ${ac_cv_header_stdc+:} false; then :
5042 $as_echo_n "(cached) " >&6
5043else
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045/* end confdefs.h. */
5046#include <stdlib.h>
5047#include <stdarg.h>
5048#include <string.h>
5049#include <float.h>
5050
5051int
5052main ()
5053{
5054
5055 ;
5056 return 0;
5057}
5058_ACEOF
5059if ac_fn_c_try_compile "$LINENO"; then :
5060 ac_cv_header_stdc=yes
5061else
5062 ac_cv_header_stdc=no
5063fi
5064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065
5066if test $ac_cv_header_stdc = yes; then
5067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069/* end confdefs.h. */
5070#include <string.h>
5071
5072_ACEOF
5073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5074 $EGREP "memchr" >/dev/null 2>&1; then :
5075
5076else
5077 ac_cv_header_stdc=no
5078fi
5079rm -f conftest*
5080
5081fi
5082
5083if test $ac_cv_header_stdc = yes; then
5084 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086/* end confdefs.h. */
5087#include <stdlib.h>
5088
5089_ACEOF
5090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5091 $EGREP "free" >/dev/null 2>&1; then :
5092
5093else
5094 ac_cv_header_stdc=no
5095fi
5096rm -f conftest*
5097
5098fi
5099
5100if test $ac_cv_header_stdc = yes; then
5101 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5102 if test "$cross_compiling" = yes; then :
5103 :
5104else
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106/* end confdefs.h. */
5107#include <ctype.h>
5108#include <stdlib.h>
5109#if ((' ' & 0x0FF) == 0x020)
5110# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5111# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5112#else
5113# define ISLOWER(c) \
5114 (('a' <= (c) && (c) <= 'i') \
5115 || ('j' <= (c) && (c) <= 'r') \
5116 || ('s' <= (c) && (c) <= 'z'))
5117# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5118#endif
5119
5120#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5121int
5122main ()
5123{
5124 int i;
5125 for (i = 0; i < 256; i++)
5126 if (XOR (islower (i), ISLOWER (i))
5127 || toupper (i) != TOUPPER (i))
5128 return 2;
5129 return 0;
5130}
5131_ACEOF
5132if ac_fn_c_try_run "$LINENO"; then :
5133
5134else
5135 ac_cv_header_stdc=no
5136fi
5137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5138 conftest.$ac_objext conftest.beam conftest.$ac_ext
5139fi
5140
5141fi
5142fi
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5144$as_echo "$ac_cv_header_stdc" >&6; }
5145if test $ac_cv_header_stdc = yes; then
5146
5147$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5148
5149fi
5150
Idar Tollefsen600ad962017-01-26 11:24:51 +01005151for 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 -04005152do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01005153 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5154ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5155"
5156if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
jfigusc7e66e32013-05-08 11:32:55 -04005157 cat >>confdefs.h <<_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005158#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
jfigusc7e66e32013-05-08 11:32:55 -04005159_ACEOF
5160
5161fi
5162
5163done
5164
5165
5166for ac_header in sys/socket.h netinet/in.h arpa/inet.h
5167do :
5168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005169ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5170"
jfigusc7e66e32013-05-08 11:32:55 -04005171if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5172 cat >>confdefs.h <<_ACEOF
5173#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5174_ACEOF
5175
5176fi
5177
5178done
5179
5180for ac_header in windows.h
5181do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01005182 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5183"
jfigusc7e66e32013-05-08 11:32:55 -04005184if test "x$ac_cv_header_windows_h" = xyes; then :
5185 cat >>confdefs.h <<_ACEOF
5186#define HAVE_WINDOWS_H 1
5187_ACEOF
5188 for ac_header in winsock2.h
5189do :
Idar Tollefsen600ad962017-01-26 11:24:51 +01005190 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default
5191"
jfigusc7e66e32013-05-08 11:32:55 -04005192if test "x$ac_cv_header_winsock2_h" = xyes; then :
5193 cat >>confdefs.h <<_ACEOF
5194#define HAVE_WINSOCK2_H 1
5195_ACEOF
5196
5197fi
5198
5199done
5200
5201fi
5202
5203done
5204
5205
jfigusc7e66e32013-05-08 11:32:55 -04005206ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
5207if test "x$ac_cv_type_int8_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005208
David McGrewfec49dd2005-09-23 19:34:11 +00005209cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005210#define HAVE_INT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005211_ACEOF
5212
5213
5214fi
jfigusc7e66e32013-05-08 11:32:55 -04005215ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
5216if test "x$ac_cv_type_uint8_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005217
5218cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005219#define HAVE_UINT8_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005220_ACEOF
5221
5222
5223fi
jfigusc7e66e32013-05-08 11:32:55 -04005224ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5225if test "x$ac_cv_type_int16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005226
5227cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005228#define HAVE_INT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005229_ACEOF
5230
5231
5232fi
jfigusc7e66e32013-05-08 11:32:55 -04005233ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5234if test "x$ac_cv_type_uint16_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005235
5236cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005237#define HAVE_UINT16_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005238_ACEOF
5239
5240
5241fi
jfigusc7e66e32013-05-08 11:32:55 -04005242ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5243if test "x$ac_cv_type_int32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005244
5245cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005246#define HAVE_INT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005247_ACEOF
5248
5249
5250fi
jfigusc7e66e32013-05-08 11:32:55 -04005251ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5252if test "x$ac_cv_type_uint32_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005253
5254cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005255#define HAVE_UINT32_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005256_ACEOF
5257
5258
5259fi
jfigusc7e66e32013-05-08 11:32:55 -04005260ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
5261if test "x$ac_cv_type_uint64_t" = xyes; then :
David McGrewfec49dd2005-09-23 19:34:11 +00005262
5263cat >>confdefs.h <<_ACEOF
David McGrewd1694b52005-09-29 10:59:33 +00005264#define HAVE_UINT64_T 1
David McGrewfec49dd2005-09-23 19:34:11 +00005265_ACEOF
5266
5267
5268fi
5269
jfigusc7e66e32013-05-08 11:32:55 -04005270# The cast to long int works around a bug in the HP C Compiler
5271# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5272# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5273# This bug is HP SR number 8606223364.
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
5275$as_echo_n "checking size of unsigned long... " >&6; }
5276if ${ac_cv_sizeof_unsigned_long+:} false; then :
5277 $as_echo_n "(cached) " >&6
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005278else
jfigusc7e66e32013-05-08 11:32:55 -04005279 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 +00005280
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005281else
5282 if test "$ac_cv_type_unsigned_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04005283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5285as_fn_error 77 "cannot compute sizeof (unsigned long)
5286See \`config.log' for more details" "$LINENO" 5; }
5287 else
5288 ac_cv_sizeof_unsigned_long=0
5289 fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005290fi
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005291
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005292fi
jfigusc7e66e32013-05-08 11:32:55 -04005293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
5294$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005295
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005296
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005297
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005298cat >>confdefs.h <<_ACEOF
5299#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
5300_ACEOF
5301
David McGrewfec49dd2005-09-23 19:34:11 +00005302
jfigusc7e66e32013-05-08 11:32:55 -04005303# The cast to long int works around a bug in the HP C Compiler
5304# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5305# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5306# This bug is HP SR number 8606223364.
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
5308$as_echo_n "checking size of unsigned long long... " >&6; }
5309if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
5310 $as_echo_n "(cached) " >&6
David McGrewfec49dd2005-09-23 19:34:11 +00005311else
jfigusc7e66e32013-05-08 11:32:55 -04005312 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 +00005313
David McGrewfec49dd2005-09-23 19:34:11 +00005314else
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005315 if test "$ac_cv_type_unsigned_long_long" = yes; then
jfigusc7e66e32013-05-08 11:32:55 -04005316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5318as_fn_error 77 "cannot compute sizeof (unsigned long long)
5319See \`config.log' for more details" "$LINENO" 5; }
5320 else
5321 ac_cv_sizeof_unsigned_long_long=0
5322 fi
David McGrewfec49dd2005-09-23 19:34:11 +00005323fi
5324
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005325fi
jfigusc7e66e32013-05-08 11:32:55 -04005326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
5327$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005328
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005329
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005330
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005331cat >>confdefs.h <<_ACEOF
5332#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
David McGrewfec49dd2005-09-23 19:34:11 +00005333_ACEOF
5334
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005335
Cullen Jennings235513a2005-09-21 22:51:36 +00005336
jfigusc7e66e32013-05-08 11:32:55 -04005337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5338$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5339if ${ac_cv_c_const+:} false; then :
5340 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005341else
jfigusc7e66e32013-05-08 11:32:55 -04005342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005343/* end confdefs.h. */
5344
5345int
5346main ()
5347{
jfigusc7e66e32013-05-08 11:32:55 -04005348
Cullen Jennings235513a2005-09-21 22:51:36 +00005349#ifndef __cplusplus
jfigusc7e66e32013-05-08 11:32:55 -04005350 /* Ultrix mips cc rejects this sort of thing. */
Cullen Jennings235513a2005-09-21 22:51:36 +00005351 typedef int charset[2];
jfigusc7e66e32013-05-08 11:32:55 -04005352 const charset cs = { 0, 0 };
Cullen Jennings235513a2005-09-21 22:51:36 +00005353 /* SunOS 4.1.1 cc rejects this. */
jfigusc7e66e32013-05-08 11:32:55 -04005354 char const *const *pcpcc;
5355 char **ppc;
Cullen Jennings235513a2005-09-21 22:51:36 +00005356 /* NEC SVR4.0.2 mips cc rejects this. */
5357 struct point {int x, y;};
5358 static struct point const zero = {0,0};
5359 /* AIX XL C 1.02.0.0 rejects this.
5360 It does not let you subtract one const X* pointer from another in
5361 an arm of an if-expression whose if-part is not a constant
5362 expression */
5363 const char *g = "string";
jfigusc7e66e32013-05-08 11:32:55 -04005364 pcpcc = &g + (g ? g-g : 0);
Cullen Jennings235513a2005-09-21 22:51:36 +00005365 /* HPUX 7.0 cc rejects these. */
jfigusc7e66e32013-05-08 11:32:55 -04005366 ++pcpcc;
5367 ppc = (char**) pcpcc;
5368 pcpcc = (char const *const *) ppc;
5369 { /* SCO 3.2v4 cc rejects this sort of thing. */
5370 char tx;
5371 char *t = &tx;
Cullen Jennings235513a2005-09-21 22:51:36 +00005372 char const *s = 0 ? (char *) 0 : (char const *) 0;
5373
5374 *t++ = 0;
jfigusc7e66e32013-05-08 11:32:55 -04005375 if (s) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00005376 }
5377 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5378 int x[] = {25, 17};
5379 const int *foo = &x[0];
5380 ++foo;
5381 }
5382 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5383 typedef const int *iptr;
5384 iptr p = 0;
5385 ++p;
5386 }
jfigusc7e66e32013-05-08 11:32:55 -04005387 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Cullen Jennings235513a2005-09-21 22:51:36 +00005388 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
jfigusc7e66e32013-05-08 11:32:55 -04005389 struct s { int j; const int *ap[3]; } bx;
5390 struct s *b = &bx; b->j = 5;
Cullen Jennings235513a2005-09-21 22:51:36 +00005391 }
5392 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5393 const int foo = 10;
jfigusc7e66e32013-05-08 11:32:55 -04005394 if (!foo) return 0;
Cullen Jennings235513a2005-09-21 22:51:36 +00005395 }
jfigusc7e66e32013-05-08 11:32:55 -04005396 return !cs[0] && !zero.x;
Cullen Jennings235513a2005-09-21 22:51:36 +00005397#endif
5398
5399 ;
5400 return 0;
5401}
5402_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005403if ac_fn_c_try_compile "$LINENO"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005404 ac_cv_c_const=yes
5405else
jfigusc7e66e32013-05-08 11:32:55 -04005406 ac_cv_c_const=no
Cullen Jennings235513a2005-09-21 22:51:36 +00005407fi
jfigusc7e66e32013-05-08 11:32:55 -04005408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005409fi
jfigusc7e66e32013-05-08 11:32:55 -04005410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5411$as_echo "$ac_cv_c_const" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005412if test $ac_cv_c_const = no; then
5413
jfigusc7e66e32013-05-08 11:32:55 -04005414$as_echo "#define const /**/" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005415
5416fi
5417
jfigusc7e66e32013-05-08 11:32:55 -04005418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5419$as_echo_n "checking for inline... " >&6; }
5420if ${ac_cv_c_inline+:} false; then :
5421 $as_echo_n "(cached) " >&6
Cullen Jennings235513a2005-09-21 22:51:36 +00005422else
5423 ac_cv_c_inline=no
5424for ac_kw in inline __inline__ __inline; do
jfigusc7e66e32013-05-08 11:32:55 -04005425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Cullen Jennings235513a2005-09-21 22:51:36 +00005426/* end confdefs.h. */
5427#ifndef __cplusplus
5428typedef int foo_t;
5429static $ac_kw foo_t static_foo () {return 0; }
5430$ac_kw foo_t foo () {return 0; }
5431#endif
5432
5433_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005434if ac_fn_c_try_compile "$LINENO"; then :
5435 ac_cv_c_inline=$ac_kw
Cullen Jennings235513a2005-09-21 22:51:36 +00005436fi
jfigusc7e66e32013-05-08 11:32:55 -04005437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438 test "$ac_cv_c_inline" != no && break
Cullen Jennings235513a2005-09-21 22:51:36 +00005439done
5440
5441fi
jfigusc7e66e32013-05-08 11:32:55 -04005442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5443$as_echo "$ac_cv_c_inline" >&6; }
David McGrewfec49dd2005-09-23 19:34:11 +00005444
Cullen Jennings235513a2005-09-21 22:51:36 +00005445case $ac_cv_c_inline in
5446 inline | yes) ;;
David McGrewfec49dd2005-09-23 19:34:11 +00005447 *)
5448 case $ac_cv_c_inline in
5449 no) ac_val=;;
5450 *) ac_val=$ac_cv_c_inline;;
5451 esac
5452 cat >>confdefs.h <<_ACEOF
5453#ifndef __cplusplus
5454#define inline $ac_val
5455#endif
Cullen Jennings235513a2005-09-21 22:51:36 +00005456_ACEOF
David McGrewfec49dd2005-09-23 19:34:11 +00005457 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00005458esac
5459
jfigusc7e66e32013-05-08 11:32:55 -04005460ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5461if test "x$ac_cv_type_size_t" = xyes; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005462
Cullen Jennings235513a2005-09-21 22:51:36 +00005463else
5464
5465cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005466#define size_t unsigned int
Cullen Jennings235513a2005-09-21 22:51:36 +00005467_ACEOF
5468
5469fi
5470
5471
Jonathan Lennox3f7fc222010-05-17 19:32:02 +00005472for ac_func in socket inet_aton usleep sigaction
jfigusc7e66e32013-05-08 11:32:55 -04005473do :
5474 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5475ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5476if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00005477 cat >>confdefs.h <<_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005478#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Cullen Jennings235513a2005-09-21 22:51:36 +00005479_ACEOF
5480
5481fi
5482done
5483
5484
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005485if test "x$ac_cv_func_socket" = "xno"; then
jfigusc7e66e32013-05-08 11:32:55 -04005486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5487$as_echo_n "checking for socket in -lsocket... " >&6; }
5488if ${ac_cv_lib_socket_socket+:} false; then :
5489 $as_echo_n "(cached) " >&6
David McGrewb67061f2005-09-28 14:23:06 +00005490else
5491 ac_check_lib_save_LIBS=$LIBS
5492LIBS="-lsocket $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04005493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00005494/* end confdefs.h. */
5495
jfigusc7e66e32013-05-08 11:32:55 -04005496/* Override any GCC internal prototype to avoid an error.
5497 Use char because int might match the return type of a GCC
5498 builtin and then its argument prototype would still apply. */
David McGrewb67061f2005-09-28 14:23:06 +00005499#ifdef __cplusplus
5500extern "C"
5501#endif
David McGrewb67061f2005-09-28 14:23:06 +00005502char socket ();
5503int
5504main ()
5505{
jfigusc7e66e32013-05-08 11:32:55 -04005506return socket ();
David McGrewb67061f2005-09-28 14:23:06 +00005507 ;
5508 return 0;
5509}
5510_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005511if ac_fn_c_try_link "$LINENO"; then :
David McGrewb67061f2005-09-28 14:23:06 +00005512 ac_cv_lib_socket_socket=yes
5513else
jfigusc7e66e32013-05-08 11:32:55 -04005514 ac_cv_lib_socket_socket=no
David McGrewb67061f2005-09-28 14:23:06 +00005515fi
jfigusc7e66e32013-05-08 11:32:55 -04005516rm -f core conftest.err conftest.$ac_objext \
5517 conftest$ac_exeext conftest.$ac_ext
David McGrewb67061f2005-09-28 14:23:06 +00005518LIBS=$ac_check_lib_save_LIBS
5519fi
jfigusc7e66e32013-05-08 11:32:55 -04005520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5521$as_echo "$ac_cv_lib_socket_socket" >&6; }
5522if test "x$ac_cv_lib_socket_socket" = xyes; then :
David McGrewb67061f2005-09-28 14:23:06 +00005523 cat >>confdefs.h <<_ACEOF
5524#define HAVE_LIBSOCKET 1
5525_ACEOF
5526
5527 LIBS="-lsocket $LIBS"
5528
5529fi
5530
jfigusc7e66e32013-05-08 11:32:55 -04005531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
5532$as_echo_n "checking for socket in -lwsock32... " >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005533 SAVELIBS="$LIBS"
5534 LIBS="$LIBS -lwsock32"
jfigusc7e66e32013-05-08 11:32:55 -04005535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005536/* end confdefs.h. */
5537
5538#include <winsock2.h>
5539
5540int
5541main ()
5542{
5543
5544socket(0, 0, 0);
5545
5546 ;
5547 return 0;
5548}
5549_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04005550if ac_fn_c_try_link "$LINENO"; then :
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005551 ac_cv_func_socket=yes
jfigusc7e66e32013-05-08 11:32:55 -04005552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5553$as_echo "yes" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005554else
jfigusc7e66e32013-05-08 11:32:55 -04005555 LIBS="$SAVELIBS"
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557$as_echo "no" >&6; }
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005558fi
jfigusc7e66e32013-05-08 11:32:55 -04005559rm -f core conftest.err conftest.$ac_objext \
5560 conftest$ac_exeext conftest.$ac_ext
Marcus Sundberg9aef51e2005-10-02 20:02:55 +00005561fi
David McGrewb67061f2005-09-28 14:23:06 +00005562
Pascal Bühler75918862017-02-19 18:33:50 +01005563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug logging in all modules" >&5
5564$as_echo_n "checking whether to enable debug logging in all modules... " >&6; }
5565# Check whether --enable-debug-logging was given.
5566if test "${enable_debug_logging+set}" = set; then :
5567 enableval=$enable_debug_logging;
David McGrewb67061f2005-09-28 14:23:06 +00005568else
Pascal Bühler75918862017-02-19 18:33:50 +01005569 enable_debug_logging=no
jfigusc7e66e32013-05-08 11:32:55 -04005570fi
5571
Pascal Bühler75918862017-02-19 18:33:50 +01005572if test "$enable_debug_logging" = "yes"; then
David McGrewb67061f2005-09-28 14:23:06 +00005573
Pascal Bühler75918862017-02-19 18:33:50 +01005574$as_echo "#define ENABLE_DEBUG_LOGGING 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00005575
5576fi
Pascal Bühler75918862017-02-19 18:33:50 +01005577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_logging" >&5
5578$as_echo "$enable_debug_logging" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00005579
Idar Tollefsen600ad962017-01-26 11:24:51 +01005580
5581
5582
5583
5584
5585
5586
5587if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5588 if test -n "$ac_tool_prefix"; then
5589 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5590set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592$as_echo_n "checking for $ac_word... " >&6; }
5593if ${ac_cv_path_PKG_CONFIG+:} false; then :
5594 $as_echo_n "(cached) " >&6
5595else
5596 case $PKG_CONFIG in
5597 [\\/]* | ?:[\\/]*)
5598 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5599 ;;
5600 *)
5601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602for as_dir in $PATH
5603do
5604 IFS=$as_save_IFS
5605 test -z "$as_dir" && as_dir=.
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5608 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 break 2
5611 fi
5612done
5613 done
5614IFS=$as_save_IFS
5615
5616 ;;
5617esac
5618fi
5619PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5620if test -n "$PKG_CONFIG"; then
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5622$as_echo "$PKG_CONFIG" >&6; }
5623else
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625$as_echo "no" >&6; }
5626fi
5627
5628
5629fi
5630if test -z "$ac_cv_path_PKG_CONFIG"; then
5631 ac_pt_PKG_CONFIG=$PKG_CONFIG
5632 # Extract the first word of "pkg-config", so it can be a program name with args.
5633set dummy pkg-config; ac_word=$2
5634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635$as_echo_n "checking for $ac_word... " >&6; }
5636if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5637 $as_echo_n "(cached) " >&6
5638else
5639 case $ac_pt_PKG_CONFIG in
5640 [\\/]* | ?:[\\/]*)
5641 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5642 ;;
5643 *)
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645for as_dir in $PATH
5646do
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5651 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 break 2
5654 fi
5655done
5656 done
5657IFS=$as_save_IFS
5658
5659 ;;
5660esac
5661fi
5662ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5663if test -n "$ac_pt_PKG_CONFIG"; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5665$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5666else
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668$as_echo "no" >&6; }
5669fi
5670
5671 if test "x$ac_pt_PKG_CONFIG" = x; then
5672 PKG_CONFIG=""
5673 else
5674 case $cross_compiling:$ac_tool_warned in
5675yes:)
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5678ac_tool_warned=yes ;;
5679esac
5680 PKG_CONFIG=$ac_pt_PKG_CONFIG
5681 fi
5682else
5683 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5684fi
5685
5686fi
5687if test -n "$PKG_CONFIG"; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005688 _pkg_min_version=0.9.0
Idar Tollefsen600ad962017-01-26 11:24:51 +01005689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5690$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5691 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5693$as_echo "yes" >&6; }
5694 else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696$as_echo "no" >&6; }
5697 PKG_CONFIG=""
5698 fi
5699fi
Pascal Bühlerac872e72017-02-09 14:55:27 +01005700if test "x$PKG_CONFIG" != "x"; then :
5701 PKG_CONFIG="$PKG_CONFIG --static"
5702fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005703
jfigusc7e66e32013-05-08 11:32:55 -04005704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
5705$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
5706# Check whether --enable-openssl was given.
5707if test "${enable_openssl+set}" = set; then :
5708 enableval=$enable_openssl;
5709else
5710 enable_openssl=no
5711fi
jfigusa14b5a02013-03-29 12:24:12 -04005712
jfigus2b486652014-07-24 15:01:41 -04005713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
5714$as_echo "$enable_openssl" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04005715if test "$enable_openssl" = "yes"; then
jfigus038d2cf2015-05-11 14:10:11 -04005716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user specified OpenSSL directory" >&5
5717$as_echo_n "checking for user specified OpenSSL directory... " >&6; }
5718
5719# Check whether --with-openssl-dir was given.
5720if test "${with_openssl_dir+set}" = set; then :
Idar Tollefsen600ad962017-01-26 11:24:51 +01005721 withval=$with_openssl_dir; if test "x$PKG_CONFIG" != "x" && test -f $with_openssl_dir/lib/pkgconfig/libcrypto.pc; then
5722 if test "x$PKG_CONFIG_PATH" = "x"; then
5723 export PKG_CONFIG_PATH="$with_openssl_dir/lib/pkgconfig"
5724 else
5725 export PKG_CONFIG_PATH="$with_openssl_dir/lib/pkgconfig:$PKG_CONFIG_PATH"
5726 fi
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl_dir" >&5
5728$as_echo "$with_openssl_dir" >&6; }
5729 elif test -d $with_openssl_dir/lib; then
5730 CFLAGS="$CFLAGS -I$with_openssl_dir/include"
5731 if test "x$LDFLAGS" = "x"; then
5732 LDFLAGS="-L$with_openssl_dir/lib"
5733 else
5734 LDFLAGS="$LDFLAGS -L$with_openssl_dir/lib"
5735 fi
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl_dir" >&5
5737$as_echo "$with_openssl_dir" >&6; }
5738 else
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
5740$as_echo "invalid" >&6; }
5741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5743as_fn_error $? "Invalid OpenSSL location: $with_openssl_dir
5744See \`config.log' for more details" "$LINENO" 5; }
5745 fi
jfigus038d2cf2015-05-11 14:10:11 -04005746else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748$as_echo "no" >&6; }
jfigus038d2cf2015-05-11 14:10:11 -04005749fi
5750
5751
Idar Tollefsen600ad962017-01-26 11:24:51 +01005752 if test "x$PKG_CONFIG" != "x"; then
Cullen Jenningse1de50f2013-05-22 12:27:28 -06005753
Idar Tollefsen600ad962017-01-26 11:24:51 +01005754pkg_failed=no
5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
5756$as_echo_n "checking for crypto... " >&6; }
5757
5758if test -n "$crypto_CFLAGS"; then
5759 pkg_cv_crypto_CFLAGS="$crypto_CFLAGS"
5760 elif test -n "$PKG_CONFIG"; then
5761 if test -n "$PKG_CONFIG" && \
Pascal Bühlerac872e72017-02-09 14:55:27 +01005762 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.1\""; } >&5
5763 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.1") 2>&5
Idar Tollefsen600ad962017-01-26 11:24:51 +01005764 ac_status=$?
5765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5766 test $ac_status = 0; }; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005767 pkg_cv_crypto_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 1.0.1" 2>/dev/null`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005768 test "x$?" != "x0" && pkg_failed=yes
5769else
5770 pkg_failed=yes
5771fi
5772 else
5773 pkg_failed=untried
5774fi
5775if test -n "$crypto_LIBS"; then
5776 pkg_cv_crypto_LIBS="$crypto_LIBS"
5777 elif test -n "$PKG_CONFIG"; then
5778 if test -n "$PKG_CONFIG" && \
Pascal Bühlerac872e72017-02-09 14:55:27 +01005779 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.1\""; } >&5
5780 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.1") 2>&5
Idar Tollefsen600ad962017-01-26 11:24:51 +01005781 ac_status=$?
5782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5783 test $ac_status = 0; }; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005784 pkg_cv_crypto_LIBS=`$PKG_CONFIG --libs "libcrypto >= 1.0.1" 2>/dev/null`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005785 test "x$?" != "x0" && pkg_failed=yes
5786else
5787 pkg_failed=yes
5788fi
5789 else
5790 pkg_failed=untried
5791fi
5792
5793
5794
5795if test $pkg_failed = yes; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797$as_echo "no" >&6; }
5798
5799if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5800 _pkg_short_errors_supported=yes
5801else
5802 _pkg_short_errors_supported=no
5803fi
5804 if test $_pkg_short_errors_supported = yes; then
Pascal Bühlerac872e72017-02-09 14:55:27 +01005805 crypto_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 1.0.1" 2>&1`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005806 else
Pascal Bühlerac872e72017-02-09 14:55:27 +01005807 crypto_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 1.0.1" 2>&1`
Idar Tollefsen600ad962017-01-26 11:24:51 +01005808 fi
5809 # Put the nasty error message in config.log where it belongs
5810 echo "$crypto_PKG_ERRORS" >&5
5811
Pascal Bühlerac872e72017-02-09 14:55:27 +01005812 as_fn_error $? "Package requirements (libcrypto >= 1.0.1) were not met:
Idar Tollefsen600ad962017-01-26 11:24:51 +01005813
5814$crypto_PKG_ERRORS
5815
5816Consider adjusting the PKG_CONFIG_PATH environment variable if you
5817installed software in a non-standard prefix.
5818
5819Alternatively, you may set the environment variables crypto_CFLAGS
5820and crypto_LIBS to avoid the need to call pkg-config.
5821See the pkg-config man page for more details." "$LINENO" 5
5822elif test $pkg_failed = untried; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824$as_echo "no" >&6; }
5825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5827as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5828is in your PATH or set the PKG_CONFIG environment variable to the full
5829path to pkg-config.
5830
5831Alternatively, you may set the environment variables crypto_CFLAGS
5832and crypto_LIBS to avoid the need to call pkg-config.
5833See the pkg-config man page for more details.
5834
5835To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5836See \`config.log' for more details" "$LINENO" 5; }
5837else
5838 crypto_CFLAGS=$pkg_cv_crypto_CFLAGS
5839 crypto_LIBS=$pkg_cv_crypto_LIBS
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5841$as_echo "yes" >&6; }
5842 CFLAGS="$CFLAGS $crypto_CFLAGS"
5843 LIBS="$crypto_LIBS $LIBS"
5844fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005845 else
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
jfigusb5fad5f2015-02-26 12:25:08 -05005847$as_echo_n "checking for dlopen in -ldl... " >&6; }
5848if ${ac_cv_lib_dl_dlopen+:} false; then :
5849 $as_echo_n "(cached) " >&6
5850else
5851 ac_check_lib_save_LIBS=$LIBS
5852LIBS="-ldl $LIBS"
5853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854/* end confdefs.h. */
5855
5856/* Override any GCC internal prototype to avoid an error.
5857 Use char because int might match the return type of a GCC
5858 builtin and then its argument prototype would still apply. */
5859#ifdef __cplusplus
5860extern "C"
5861#endif
5862char dlopen ();
5863int
5864main ()
5865{
5866return dlopen ();
5867 ;
5868 return 0;
5869}
5870_ACEOF
5871if ac_fn_c_try_link "$LINENO"; then :
5872 ac_cv_lib_dl_dlopen=yes
5873else
5874 ac_cv_lib_dl_dlopen=no
5875fi
5876rm -f core conftest.err conftest.$ac_objext \
5877 conftest$ac_exeext conftest.$ac_ext
5878LIBS=$ac_check_lib_save_LIBS
5879fi
5880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5881$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5882if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5883 cat >>confdefs.h <<_ACEOF
5884#define HAVE_LIBDL 1
5885_ACEOF
5886
5887 LIBS="-ldl $LIBS"
5888
5889else
jfigus13fd6942015-03-02 09:09:13 -05005890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libdl" >&5
5891$as_echo "$as_me: WARNING: can't find libdl" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005892fi
5893
Idar Tollefsen600ad962017-01-26 11:24:51 +01005894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
jfigusb5fad5f2015-02-26 12:25:08 -05005895$as_echo_n "checking for inflate in -lz... " >&6; }
5896if ${ac_cv_lib_z_inflate+:} false; then :
5897 $as_echo_n "(cached) " >&6
5898else
5899 ac_check_lib_save_LIBS=$LIBS
5900LIBS="-lz $LIBS"
5901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902/* end confdefs.h. */
5903
5904/* Override any GCC internal prototype to avoid an error.
5905 Use char because int might match the return type of a GCC
5906 builtin and then its argument prototype would still apply. */
5907#ifdef __cplusplus
5908extern "C"
5909#endif
5910char inflate ();
5911int
5912main ()
5913{
5914return inflate ();
5915 ;
5916 return 0;
5917}
5918_ACEOF
5919if ac_fn_c_try_link "$LINENO"; then :
5920 ac_cv_lib_z_inflate=yes
5921else
5922 ac_cv_lib_z_inflate=no
5923fi
5924rm -f core conftest.err conftest.$ac_objext \
5925 conftest$ac_exeext conftest.$ac_ext
5926LIBS=$ac_check_lib_save_LIBS
5927fi
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
5929$as_echo "$ac_cv_lib_z_inflate" >&6; }
5930if test "x$ac_cv_lib_z_inflate" = xyes; then :
5931 cat >>confdefs.h <<_ACEOF
5932#define HAVE_LIBZ 1
5933_ACEOF
5934
5935 LIBS="-lz $LIBS"
5936
5937else
jfigus13fd6942015-03-02 09:09:13 -05005938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libz" >&5
5939$as_echo "$as_me: WARNING: can't find libz" >&2;}
jfigusb5fad5f2015-02-26 12:25:08 -05005940fi
5941
Idar Tollefsen600ad962017-01-26 11:24:51 +01005942 fi
5943
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_EncryptInit" >&5
5945$as_echo_n "checking for library containing EVP_EncryptInit... " >&6; }
5946if ${ac_cv_search_EVP_EncryptInit+:} false; then :
jfigusc7e66e32013-05-08 11:32:55 -04005947 $as_echo_n "(cached) " >&6
5948else
Idar Tollefsen600ad962017-01-26 11:24:51 +01005949 ac_func_search_save_LIBS=$LIBS
jfigusc7e66e32013-05-08 11:32:55 -04005950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951/* end confdefs.h. */
5952
5953/* Override any GCC internal prototype to avoid an error.
5954 Use char because int might match the return type of a GCC
5955 builtin and then its argument prototype would still apply. */
5956#ifdef __cplusplus
5957extern "C"
5958#endif
5959char EVP_EncryptInit ();
5960int
5961main ()
5962{
5963return EVP_EncryptInit ();
5964 ;
5965 return 0;
5966}
5967_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01005968for ac_lib in '' crypto; do
5969 if test -z "$ac_lib"; then
5970 ac_res="none required"
5971 else
5972 ac_res=-l$ac_lib
5973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5974 fi
5975 if ac_fn_c_try_link "$LINENO"; then :
5976 ac_cv_search_EVP_EncryptInit=$ac_res
jfigusc7e66e32013-05-08 11:32:55 -04005977fi
5978rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01005979 conftest$ac_exeext
5980 if ${ac_cv_search_EVP_EncryptInit+:} false; then :
5981 break
jfigusc7e66e32013-05-08 11:32:55 -04005982fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01005983done
5984if ${ac_cv_search_EVP_EncryptInit+:} false; then :
jfigusc7e66e32013-05-08 11:32:55 -04005985
Idar Tollefsen600ad962017-01-26 11:24:51 +01005986else
5987 ac_cv_search_EVP_EncryptInit=no
5988fi
5989rm conftest.$ac_ext
5990LIBS=$ac_func_search_save_LIBS
5991fi
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_EncryptInit" >&5
5993$as_echo "$ac_cv_search_EVP_EncryptInit" >&6; }
5994ac_res=$ac_cv_search_EVP_EncryptInit
5995if test "$ac_res" != no; then :
5996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigusc7e66e32013-05-08 11:32:55 -04005997
5998else
5999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Pascal Bühlerac872e72017-02-09 14:55:27 +01006001as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
jfigus5b22e372013-05-09 09:23:26 -04006002See \`config.log' for more details" "$LINENO" 5; }
6003fi
6004
Idar Tollefsen600ad962017-01-26 11:24:51 +01006005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_aes_128_ctr" >&5
6006$as_echo_n "checking for library containing EVP_aes_128_ctr... " >&6; }
6007if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
jfigus5b22e372013-05-09 09:23:26 -04006008 $as_echo_n "(cached) " >&6
6009else
Idar Tollefsen600ad962017-01-26 11:24:51 +01006010 ac_func_search_save_LIBS=$LIBS
jfigus5b22e372013-05-09 09:23:26 -04006011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012/* end confdefs.h. */
6013
6014/* Override any GCC internal prototype to avoid an error.
6015 Use char because int might match the return type of a GCC
6016 builtin and then its argument prototype would still apply. */
6017#ifdef __cplusplus
6018extern "C"
6019#endif
6020char EVP_aes_128_ctr ();
6021int
6022main ()
6023{
6024return EVP_aes_128_ctr ();
6025 ;
6026 return 0;
6027}
6028_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01006029for ac_lib in '' crypto; do
6030 if test -z "$ac_lib"; then
6031 ac_res="none required"
6032 else
6033 ac_res=-l$ac_lib
6034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6035 fi
6036 if ac_fn_c_try_link "$LINENO"; then :
6037 ac_cv_search_EVP_aes_128_ctr=$ac_res
jfigus5b22e372013-05-09 09:23:26 -04006038fi
6039rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01006040 conftest$ac_exeext
6041 if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
6042 break
jfigus5b22e372013-05-09 09:23:26 -04006043fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01006044done
6045if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
jfigus5b22e372013-05-09 09:23:26 -04006046
Idar Tollefsen600ad962017-01-26 11:24:51 +01006047else
6048 ac_cv_search_EVP_aes_128_ctr=no
6049fi
6050rm conftest.$ac_ext
6051LIBS=$ac_func_search_save_LIBS
6052fi
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_aes_128_ctr" >&5
6054$as_echo "$ac_cv_search_EVP_aes_128_ctr" >&6; }
6055ac_res=$ac_cv_search_EVP_aes_128_ctr
6056if test "$ac_res" != no; then :
6057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus5b22e372013-05-09 09:23:26 -04006058
6059else
6060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Pascal Bühlerac872e72017-02-09 14:55:27 +01006062as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
jfigusc7e66e32013-05-08 11:32:55 -04006063See \`config.log' for more details" "$LINENO" 5; }
6064fi
6065
Idar Tollefsen600ad962017-01-26 11:24:51 +01006066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_aes_128_gcm" >&5
6067$as_echo_n "checking for library containing EVP_aes_128_gcm... " >&6; }
6068if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
jfigus7882dd92013-08-02 16:08:23 -04006069 $as_echo_n "(cached) " >&6
6070else
Idar Tollefsen600ad962017-01-26 11:24:51 +01006071 ac_func_search_save_LIBS=$LIBS
jfigus7882dd92013-08-02 16:08:23 -04006072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073/* end confdefs.h. */
6074
6075/* Override any GCC internal prototype to avoid an error.
6076 Use char because int might match the return type of a GCC
6077 builtin and then its argument prototype would still apply. */
6078#ifdef __cplusplus
6079extern "C"
6080#endif
6081char EVP_aes_128_gcm ();
6082int
6083main ()
6084{
6085return EVP_aes_128_gcm ();
6086 ;
6087 return 0;
6088}
6089_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01006090for ac_lib in '' crypto; do
6091 if test -z "$ac_lib"; then
6092 ac_res="none required"
6093 else
6094 ac_res=-l$ac_lib
6095 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6096 fi
6097 if ac_fn_c_try_link "$LINENO"; then :
6098 ac_cv_search_EVP_aes_128_gcm=$ac_res
jfigus7882dd92013-08-02 16:08:23 -04006099fi
6100rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01006101 conftest$ac_exeext
6102 if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
6103 break
jfigus7882dd92013-08-02 16:08:23 -04006104fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01006105done
6106if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
jfigus7882dd92013-08-02 16:08:23 -04006107
Idar Tollefsen600ad962017-01-26 11:24:51 +01006108else
6109 ac_cv_search_EVP_aes_128_gcm=no
6110fi
6111rm conftest.$ac_ext
6112LIBS=$ac_func_search_save_LIBS
6113fi
6114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_aes_128_gcm" >&5
6115$as_echo "$ac_cv_search_EVP_aes_128_gcm" >&6; }
6116ac_res=$ac_cv_search_EVP_aes_128_gcm
6117if test "$ac_res" != no; then :
6118 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus7882dd92013-08-02 16:08:23 -04006119
6120else
6121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Pascal Bühlerac872e72017-02-09 14:55:27 +01006123as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
jfigus7882dd92013-08-02 16:08:23 -04006124See \`config.log' for more details" "$LINENO" 5; }
6125fi
6126
jfigusc7e66e32013-05-08 11:32:55 -04006127
Idar Tollefsen600ad962017-01-26 11:24:51 +01006128
jfigusc7e66e32013-05-08 11:32:55 -04006129$as_echo "#define OPENSSL 1" >>confdefs.h
6130
jfigus7882dd92013-08-02 16:08:23 -04006131 AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
jfigusc7e66e32013-05-08 11:32:55 -04006132 HMAC_OBJS=crypto/hash/hmac_ossl.o
6133 USE_OPENSSL=1
6134
jfigus038d2cf2015-05-11 14:10:11 -04006135
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL KDF algorithm" >&5
6137$as_echo_n "checking whether to leverage OpenSSL KDF algorithm... " >&6; }
6138 # Check whether --enable-openssl-kdf was given.
6139if test "${enable_openssl_kdf+set}" = set; then :
6140 enableval=$enable_openssl_kdf;
6141else
6142 enable_openssl_kdf=no
6143fi
6144
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl_kdf" >&5
6146$as_echo "$enable_openssl_kdf" >&6; }
6147 if test "$enable_openssl_kdf" = "yes"; then
Idar Tollefsen600ad962017-01-26 11:24:51 +01006148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kdf_srtp" >&5
6149$as_echo_n "checking for library containing kdf_srtp... " >&6; }
6150if ${ac_cv_search_kdf_srtp+:} false; then :
jfigus038d2cf2015-05-11 14:10:11 -04006151 $as_echo_n "(cached) " >&6
6152else
Idar Tollefsen600ad962017-01-26 11:24:51 +01006153 ac_func_search_save_LIBS=$LIBS
jfigus038d2cf2015-05-11 14:10:11 -04006154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155/* end confdefs.h. */
6156
6157/* Override any GCC internal prototype to avoid an error.
6158 Use char because int might match the return type of a GCC
6159 builtin and then its argument prototype would still apply. */
6160#ifdef __cplusplus
6161extern "C"
6162#endif
6163char kdf_srtp ();
6164int
6165main ()
6166{
6167return kdf_srtp ();
6168 ;
6169 return 0;
6170}
6171_ACEOF
Idar Tollefsen600ad962017-01-26 11:24:51 +01006172for ac_lib in '' crypto; do
6173 if test -z "$ac_lib"; then
6174 ac_res="none required"
6175 else
6176 ac_res=-l$ac_lib
6177 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6178 fi
6179 if ac_fn_c_try_link "$LINENO"; then :
6180 ac_cv_search_kdf_srtp=$ac_res
jfigus038d2cf2015-05-11 14:10:11 -04006181fi
6182rm -f core conftest.err conftest.$ac_objext \
Idar Tollefsen600ad962017-01-26 11:24:51 +01006183 conftest$ac_exeext
6184 if ${ac_cv_search_kdf_srtp+:} false; then :
6185 break
jfigus038d2cf2015-05-11 14:10:11 -04006186fi
Idar Tollefsen600ad962017-01-26 11:24:51 +01006187done
6188if ${ac_cv_search_kdf_srtp+:} false; then :
jfigus038d2cf2015-05-11 14:10:11 -04006189
Idar Tollefsen600ad962017-01-26 11:24:51 +01006190else
6191 ac_cv_search_kdf_srtp=no
6192fi
6193rm conftest.$ac_ext
6194LIBS=$ac_func_search_save_LIBS
6195fi
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kdf_srtp" >&5
6197$as_echo "$ac_cv_search_kdf_srtp" >&6; }
6198ac_res=$ac_cv_search_kdf_srtp
6199if test "$ac_res" != no; then :
6200 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
jfigus038d2cf2015-05-11 14:10:11 -04006201
6202else
6203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6205as_fn_error $? "can't find openssl KDF lib
6206See \`config.log' for more details" "$LINENO" 5; }
6207fi
6208
6209
6210$as_echo "#define OPENSSL_KDF 1" >>confdefs.h
6211
6212 fi
jfigusc7e66e32013-05-08 11:32:55 -04006213else
jfigusa3127b82014-11-19 14:46:52 -05006214 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o"
jfigusc7e66e32013-05-08 11:32:55 -04006215 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
6216fi
6217
6218
6219
Bernardo Torres79e38ae2014-10-10 05:29:36 -03006220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
6221$as_echo_n "checking for pcap_create in -lpcap... " >&6; }
6222if ${ac_cv_lib_pcap_pcap_create+:} false; then :
6223 $as_echo_n "(cached) " >&6
6224else
6225 ac_check_lib_save_LIBS=$LIBS
6226LIBS="-lpcap $LIBS"
6227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228/* end confdefs.h. */
6229
6230/* Override any GCC internal prototype to avoid an error.
6231 Use char because int might match the return type of a GCC
6232 builtin and then its argument prototype would still apply. */
6233#ifdef __cplusplus
6234extern "C"
6235#endif
6236char pcap_create ();
6237int
6238main ()
6239{
6240return pcap_create ();
6241 ;
6242 return 0;
6243}
6244_ACEOF
6245if ac_fn_c_try_link "$LINENO"; then :
6246 ac_cv_lib_pcap_pcap_create=yes
6247else
6248 ac_cv_lib_pcap_pcap_create=no
6249fi
6250rm -f core conftest.err conftest.$ac_objext \
6251 conftest$ac_exeext conftest.$ac_ext
6252LIBS=$ac_check_lib_save_LIBS
6253fi
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
6255$as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
6256if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
Idar Tollefsen600ad962017-01-26 11:24:51 +01006257 LIBS="-lpcap $LIBS"
Bernardo Torres79e38ae2014-10-10 05:29:36 -03006258
Bernardo Torresb3c51422014-10-14 12:40:09 -03006259$as_echo "#define HAVE_PCAP 1" >>confdefs.h
6260
Idar Tollefsen600ad962017-01-26 11:24:51 +01006261 HAVE_PCAP=1
Bernardo Torres79e38ae2014-10-10 05:29:36 -03006262
6263fi
6264
Bernardo Torres79e38ae2014-10-10 05:29:36 -03006265
Pascal Bühler75918862017-02-19 18:33:50 +01006266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to redirect logging to stdout" >&5
6267$as_echo_n "checking whether to redirect logging to stdout... " >&6; }
6268# Check whether --enable-log-stdout was given.
6269if test "${enable_log_stdout+set}" = set; then :
6270 enableval=$enable_log_stdout;
David McGrewb67061f2005-09-28 14:23:06 +00006271else
Pascal Bühler75918862017-02-19 18:33:50 +01006272 enable_log_stdout=no
jfigusc7e66e32013-05-08 11:32:55 -04006273fi
6274
Pascal Bühler75918862017-02-19 18:33:50 +01006275if test "$enable_log_stdout" = "yes"; then
David McGrewb67061f2005-09-28 14:23:06 +00006276
jfigusc7e66e32013-05-08 11:32:55 -04006277$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
Cullen Jennings235513a2005-09-21 22:51:36 +00006278
6279fi
Pascal Bühler75918862017-02-19 18:33:50 +01006280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_stdout" >&5
6281$as_echo "$enable_log_stdout" >&6; }
Cullen Jennings235513a2005-09-21 22:51:36 +00006282
Pascal Bühler75918862017-02-19 18:33:50 +01006283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking wheather to use a file for logging" >&5
6284$as_echo_n "checking wheather to use a file for logging... " >&6; }
6285
6286# Check whether --with-log-file was given.
6287if test "${with_log_file+set}" = set; then :
6288 withval=$with_log_file; case x$with_log_file in #(
6289 x) :
6290 valid_with_log_file="no" ;; #(
6291 xyes) :
6292 valid_with_log_file="no" ;; #(
6293 *) :
6294 valid_with_error_file="yes" ;;
6295esac
6296 if test "$valid_with_log_file" = "no"; then :
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
6298$as_echo "invalid" >&6; }
6299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6301as_fn_error $? "Invalid value for --with-log-file: \"$with_log_file\"
6302See \`config.log' for more details" "$LINENO" 5; }
David McGrewb67061f2005-09-28 14:23:06 +00006303else
Pascal Bühler75918862017-02-19 18:33:50 +01006304
6305cat >>confdefs.h <<_ACEOF
6306#define ERR_REPORTING_FILE "$with_log_file"
6307_ACEOF
6308
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using log file: \"$with_log_file\"" >&5
6310$as_echo "using log file: \"$with_log_file\"" >&6; }
6311fi
6312else
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314$as_echo "no" >&6; }
jfigusc7e66e32013-05-08 11:32:55 -04006315fi
6316
David McGrewb67061f2005-09-28 14:23:06 +00006317
Pascal Bühler75918862017-02-19 18:33:50 +01006318if test "$enable_log_stdout" = "yes" && test "x$with_log_file" != "x"; then :
6319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6321as_fn_error $? "Can only use one of --enable-log-stdout and --with-log-file; they are mutually exclusive
6322See \`config.log' for more details" "$LINENO" 5; }
Cullen Jennings235513a2005-09-21 22:51:36 +00006323fi
David McGrewb67061f2005-09-28 14:23:06 +00006324
jfigusc7e66e32013-05-08 11:32:55 -04006325ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
Cullen Jennings235513a2005-09-21 22:51:36 +00006326
6327
Idar Tollefsen600ad962017-01-26 11:24:51 +01006328ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile libsrtp2.pc"
jfigusc7e66e32013-05-08 11:32:55 -04006329
Cullen Jennings235513a2005-09-21 22:51:36 +00006330cat >confcache <<\_ACEOF
6331# This file is a shell script that caches the results of configure
6332# tests run on this system so they can be shared between configure
6333# scripts and configure runs, see configure's option --config-cache.
6334# It is not useful on other systems. If it contains results you don't
6335# want to keep, you may remove or edit it.
6336#
6337# config.status only pays attention to the cache file if you give it
6338# the --recheck option to rerun configure.
6339#
6340# `ac_cv_env_foo' variables (set or unset) will be overridden when
6341# loading this file, other *unset* `ac_cv_foo' will be assigned the
6342# following values.
6343
6344_ACEOF
6345
6346# The following way of writing the cache mishandles newlines in values,
6347# but we know of no workaround that is simple, portable, and efficient.
jfigusc7e66e32013-05-08 11:32:55 -04006348# So, we kill variables containing newlines.
Cullen Jennings235513a2005-09-21 22:51:36 +00006349# Ultrix sh set writes to stderr and can't be redirected directly,
6350# and sets the high bit in the cache file unless we assign to the vars.
jfigusc7e66e32013-05-08 11:32:55 -04006351(
6352 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6353 eval ac_val=\$$ac_var
6354 case $ac_val in #(
6355 *${as_nl}*)
6356 case $ac_var in #(
6357 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6358$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6359 esac
6360 case $ac_var in #(
6361 _ | IFS | as_nl) ;; #(
6362 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6363 *) { eval $ac_var=; unset $ac_var;} ;;
6364 esac ;;
6365 esac
6366 done
6367
Cullen Jennings235513a2005-09-21 22:51:36 +00006368 (set) 2>&1 |
jfigusc7e66e32013-05-08 11:32:55 -04006369 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6370 *${as_nl}ac_space=\ *)
6371 # `set' does not quote correctly, so add quotes: double-quote
6372 # substitution turns \\\\ into \\, and sed turns \\ into \.
Cullen Jennings235513a2005-09-21 22:51:36 +00006373 sed -n \
David McGrewfec49dd2005-09-23 19:34:11 +00006374 "s/'/'\\\\''/g;
6375 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
jfigusc7e66e32013-05-08 11:32:55 -04006376 ;; #(
Cullen Jennings235513a2005-09-21 22:51:36 +00006377 *)
6378 # `set' quotes correctly as required by POSIX, so do not add quotes.
jfigusc7e66e32013-05-08 11:32:55 -04006379 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Cullen Jennings235513a2005-09-21 22:51:36 +00006380 ;;
jfigusc7e66e32013-05-08 11:32:55 -04006381 esac |
6382 sort
6383) |
Cullen Jennings235513a2005-09-21 22:51:36 +00006384 sed '
jfigusc7e66e32013-05-08 11:32:55 -04006385 /^ac_cv_env_/b end
Cullen Jennings235513a2005-09-21 22:51:36 +00006386 t clear
jfigusc7e66e32013-05-08 11:32:55 -04006387 :clear
Cullen Jennings235513a2005-09-21 22:51:36 +00006388 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6389 t end
jfigusc7e66e32013-05-08 11:32:55 -04006390 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6391 :end' >>confcache
6392if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6393 if test -w "$cache_file"; then
6394 if test "x$cache_file" != "x/dev/null"; then
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6396$as_echo "$as_me: updating cache $cache_file" >&6;}
6397 if test ! -f "$cache_file" || test -h "$cache_file"; then
6398 cat confcache >"$cache_file"
6399 else
6400 case $cache_file in #(
6401 */* | ?:*)
6402 mv -f confcache "$cache_file"$$ &&
6403 mv -f "$cache_file"$$ "$cache_file" ;; #(
6404 *)
6405 mv -f confcache "$cache_file" ;;
6406 esac
6407 fi
6408 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006409 else
jfigusc7e66e32013-05-08 11:32:55 -04006410 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6411$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Cullen Jennings235513a2005-09-21 22:51:36 +00006412 fi
6413fi
6414rm -f confcache
6415
6416test "x$prefix" = xNONE && prefix=$ac_default_prefix
6417# Let make expand exec_prefix.
6418test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6419
Cullen Jennings235513a2005-09-21 22:51:36 +00006420DEFS=-DHAVE_CONFIG_H
6421
6422ac_libobjs=
6423ac_ltlibobjs=
jfigusc7e66e32013-05-08 11:32:55 -04006424U=
Cullen Jennings235513a2005-09-21 22:51:36 +00006425for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6426 # 1. Remove the extension, and $U if already installed.
jfigusc7e66e32013-05-08 11:32:55 -04006427 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6428 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6429 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6430 # will be set to the directory where LIBOBJS objects are built.
6431 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6432 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Cullen Jennings235513a2005-09-21 22:51:36 +00006433done
6434LIBOBJS=$ac_libobjs
6435
6436LTLIBOBJS=$ac_ltlibobjs
6437
6438
6439
jfigusc7e66e32013-05-08 11:32:55 -04006440
6441: "${CONFIG_STATUS=./config.status}"
6442ac_write_fail=0
Cullen Jennings235513a2005-09-21 22:51:36 +00006443ac_clean_files_save=$ac_clean_files
6444ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jfigusc7e66e32013-05-08 11:32:55 -04006445{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6446$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6447as_write_fail=0
6448cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006449#! $SHELL
6450# Generated by $as_me.
6451# Run this file to recreate the current configuration.
6452# Compiler output produced by configure, useful for debugging
6453# configure, is in config.log if it exists.
6454
6455debug=false
6456ac_cs_recheck=false
6457ac_cs_silent=false
jfigusc7e66e32013-05-08 11:32:55 -04006458
Cullen Jennings235513a2005-09-21 22:51:36 +00006459SHELL=\${CONFIG_SHELL-$SHELL}
jfigusc7e66e32013-05-08 11:32:55 -04006460export SHELL
6461_ASEOF
6462cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6463## -------------------- ##
6464## M4sh Initialization. ##
6465## -------------------- ##
Cullen Jennings235513a2005-09-21 22:51:36 +00006466
jfigusc7e66e32013-05-08 11:32:55 -04006467# Be more Bourne compatible
6468DUALCASE=1; export DUALCASE # for MKS sh
6469if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Cullen Jennings235513a2005-09-21 22:51:36 +00006470 emulate sh
6471 NULLCMD=:
jfigusc7e66e32013-05-08 11:32:55 -04006472 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Cullen Jennings235513a2005-09-21 22:51:36 +00006473 # is contrary to our usage. Disable this feature.
6474 alias -g '${1+"$@"}'='"$@"'
jfigusc7e66e32013-05-08 11:32:55 -04006475 setopt NO_GLOB_SUBST
Cullen Jennings235513a2005-09-21 22:51:36 +00006476else
jfigusc7e66e32013-05-08 11:32:55 -04006477 case `(set -o) 2>/dev/null` in #(
6478 *posix*) :
6479 set -o posix ;; #(
6480 *) :
6481 ;;
6482esac
Cullen Jennings235513a2005-09-21 22:51:36 +00006483fi
6484
6485
jfigusc7e66e32013-05-08 11:32:55 -04006486as_nl='
6487'
6488export as_nl
6489# Printing a long string crashes Solaris 7 /usr/bin/printf.
6490as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6491as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6492as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6493# Prefer a ksh shell builtin over an external printf program on Solaris,
6494# but without wasting forks for bash or zsh.
6495if test -z "$BASH_VERSION$ZSH_VERSION" \
6496 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6497 as_echo='print -r --'
6498 as_echo_n='print -rn --'
6499elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6500 as_echo='printf %s\n'
6501 as_echo_n='printf %s'
6502else
6503 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6504 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6505 as_echo_n='/usr/ucb/echo -n'
6506 else
6507 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6508 as_echo_n_body='eval
6509 arg=$1;
6510 case $arg in #(
6511 *"$as_nl"*)
6512 expr "X$arg" : "X\\(.*\\)$as_nl";
6513 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6514 esac;
6515 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6516 '
6517 export as_echo_n_body
6518 as_echo_n='sh -c $as_echo_n_body as_echo'
6519 fi
6520 export as_echo_body
6521 as_echo='sh -c $as_echo_body as_echo'
6522fi
6523
6524# The user is always right.
6525if test "${PATH_SEPARATOR+set}" != set; then
6526 PATH_SEPARATOR=:
6527 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6528 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6529 PATH_SEPARATOR=';'
6530 }
6531fi
6532
6533
6534# IFS
6535# We need space, tab and new line, in precisely that order. Quoting is
6536# there to prevent editors from complaining about space-tab.
6537# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6538# splitting by setting IFS to empty value.)
6539IFS=" "" $as_nl"
6540
6541# Find who we are. Look in the path if we contain no directory separator.
6542as_myself=
6543case $0 in #((
6544 *[\\/]* ) as_myself=$0 ;;
6545 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546for as_dir in $PATH
6547do
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
6550 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6551 done
6552IFS=$as_save_IFS
6553
6554 ;;
6555esac
6556# We did not find ourselves, most probably we were run as `sh COMMAND'
6557# in which case we are not to be found in the path.
6558if test "x$as_myself" = x; then
6559 as_myself=$0
6560fi
6561if test ! -f "$as_myself"; then
6562 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6563 exit 1
6564fi
6565
6566# Unset variables that we do not need and which cause bugs (e.g. in
6567# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6568# suppresses any "Segmentation fault" message there. '((' could
6569# trigger a bug in pdksh 5.2.14.
6570for as_var in BASH_ENV ENV MAIL MAILPATH
6571do eval test x\${$as_var+set} = xset \
6572 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6573done
Cullen Jennings235513a2005-09-21 22:51:36 +00006574PS1='$ '
6575PS2='> '
6576PS4='+ '
6577
6578# NLS nuisances.
jfigusc7e66e32013-05-08 11:32:55 -04006579LC_ALL=C
6580export LC_ALL
6581LANGUAGE=C
6582export LANGUAGE
jfigusa14b5a02013-03-29 12:24:12 -04006583
jfigusc7e66e32013-05-08 11:32:55 -04006584# CDPATH.
6585(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6586
6587
6588# as_fn_error STATUS ERROR [LINENO LOG_FD]
6589# ----------------------------------------
6590# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6591# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6592# script with STATUS, using 1 if that was 0.
6593as_fn_error ()
6594{
6595 as_status=$1; test $as_status -eq 0 && as_status=1
6596 if test "$4"; then
6597 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6598 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6599 fi
6600 $as_echo "$as_me: error: $2" >&2
6601 as_fn_exit $as_status
6602} # as_fn_error
6603
6604
6605# as_fn_set_status STATUS
6606# -----------------------
6607# Set $? to STATUS, without forking.
6608as_fn_set_status ()
6609{
6610 return $1
6611} # as_fn_set_status
6612
6613# as_fn_exit STATUS
6614# -----------------
6615# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6616as_fn_exit ()
6617{
6618 set +e
6619 as_fn_set_status $1
6620 exit $1
6621} # as_fn_exit
6622
6623# as_fn_unset VAR
6624# ---------------
6625# Portably unset VAR.
6626as_fn_unset ()
6627{
6628 { eval $1=; unset $1;}
6629}
6630as_unset=as_fn_unset
6631# as_fn_append VAR VALUE
6632# ----------------------
6633# Append the text in VALUE to the end of the definition contained in VAR. Take
6634# advantage of any shell optimizations that allow amortized linear growth over
6635# repeated appends, instead of the typical quadratic growth present in naive
6636# implementations.
6637if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6638 eval 'as_fn_append ()
6639 {
6640 eval $1+=\$2
6641 }'
6642else
6643 as_fn_append ()
6644 {
6645 eval $1=\$$1\$2
6646 }
6647fi # as_fn_append
6648
6649# as_fn_arith ARG...
6650# ------------------
6651# Perform arithmetic evaluation on the ARGs, and store the result in the
6652# global $as_val. Take advantage of shells that can avoid forks. The arguments
6653# must be portable across $(()) and expr.
6654if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6655 eval 'as_fn_arith ()
6656 {
6657 as_val=$(( $* ))
6658 }'
6659else
6660 as_fn_arith ()
6661 {
6662 as_val=`expr "$@" || test $? -eq 1`
6663 }
6664fi # as_fn_arith
6665
6666
6667if expr a : '\(a\)' >/dev/null 2>&1 &&
6668 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006669 as_expr=expr
6670else
6671 as_expr=false
6672fi
6673
jfigusc7e66e32013-05-08 11:32:55 -04006674if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Cullen Jennings235513a2005-09-21 22:51:36 +00006675 as_basename=basename
6676else
6677 as_basename=false
6678fi
6679
jfigusc7e66e32013-05-08 11:32:55 -04006680if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6681 as_dirname=dirname
6682else
6683 as_dirname=false
6684fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006685
jfigusc7e66e32013-05-08 11:32:55 -04006686as_me=`$as_basename -- "$0" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00006687$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6688 X"$0" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04006689 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6690$as_echo X/"$0" |
6691 sed '/^.*\/\([^/][^/]*\)\/*$/{
6692 s//\1/
6693 q
6694 }
6695 /^X\/\(\/\/\)$/{
6696 s//\1/
6697 q
6698 }
6699 /^X\/\(\/\).*/{
6700 s//\1/
6701 q
6702 }
6703 s/.*/./; q'`
Cullen Jennings235513a2005-09-21 22:51:36 +00006704
Cullen Jennings235513a2005-09-21 22:51:36 +00006705# Avoid depending upon Character Ranges.
6706as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6707as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6708as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6709as_cr_digits='0123456789'
6710as_cr_alnum=$as_cr_Letters$as_cr_digits
6711
jfigusc7e66e32013-05-08 11:32:55 -04006712ECHO_C= ECHO_N= ECHO_T=
6713case `echo -n x` in #(((((
6714-n*)
6715 case `echo 'xy\c'` in
6716 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6717 xy) ECHO_C='\c';;
6718 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6719 ECHO_T=' ';;
6720 esac;;
6721*)
6722 ECHO_N='-n';;
Cullen Jennings235513a2005-09-21 22:51:36 +00006723esac
6724
Cullen Jennings235513a2005-09-21 22:51:36 +00006725rm -f conf$$ conf$$.exe conf$$.file
jfigusc7e66e32013-05-08 11:32:55 -04006726if test -d conf$$.dir; then
6727 rm -f conf$$.dir/conf$$.file
6728else
6729 rm -f conf$$.dir
6730 mkdir conf$$.dir 2>/dev/null
6731fi
6732if (echo >conf$$.file) 2>/dev/null; then
6733 if ln -s conf$$.file conf$$ 2>/dev/null; then
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006734 as_ln_s='ln -s'
jfigusc7e66e32013-05-08 11:32:55 -04006735 # ... but there are two gotchas:
6736 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6737 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6738 # In both cases, we have to default to `cp -pR'.
6739 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6740 as_ln_s='cp -pR'
6741 elif ln conf$$.file conf$$ 2>/dev/null; then
6742 as_ln_s=ln
6743 else
6744 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006745 fi
Cullen Jennings235513a2005-09-21 22:51:36 +00006746else
jfigusc7e66e32013-05-08 11:32:55 -04006747 as_ln_s='cp -pR'
Cullen Jennings235513a2005-09-21 22:51:36 +00006748fi
jfigusc7e66e32013-05-08 11:32:55 -04006749rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6750rmdir conf$$.dir 2>/dev/null
Cullen Jennings235513a2005-09-21 22:51:36 +00006751
jfigusc7e66e32013-05-08 11:32:55 -04006752
6753# as_fn_mkdir_p
6754# -------------
6755# Create "$as_dir" as a directory, including parents if necessary.
6756as_fn_mkdir_p ()
6757{
6758
6759 case $as_dir in #(
6760 -*) as_dir=./$as_dir;;
6761 esac
6762 test -d "$as_dir" || eval $as_mkdir_p || {
6763 as_dirs=
6764 while :; do
6765 case $as_dir in #(
6766 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6767 *) as_qdir=$as_dir;;
6768 esac
6769 as_dirs="'$as_qdir' $as_dirs"
6770 as_dir=`$as_dirname -- "$as_dir" ||
6771$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6772 X"$as_dir" : 'X\(//\)[^/]' \| \
6773 X"$as_dir" : 'X\(//\)$' \| \
6774 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6775$as_echo X"$as_dir" |
6776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6777 s//\1/
6778 q
6779 }
6780 /^X\(\/\/\)[^/].*/{
6781 s//\1/
6782 q
6783 }
6784 /^X\(\/\/\)$/{
6785 s//\1/
6786 q
6787 }
6788 /^X\(\/\).*/{
6789 s//\1/
6790 q
6791 }
6792 s/.*/./; q'`
6793 test -d "$as_dir" && break
6794 done
6795 test -z "$as_dirs" || eval "mkdir $as_dirs"
6796 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6797
6798
6799} # as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006800if mkdir -p . 2>/dev/null; then
jfigusc7e66e32013-05-08 11:32:55 -04006801 as_mkdir_p='mkdir -p "$as_dir"'
Cullen Jennings235513a2005-09-21 22:51:36 +00006802else
David McGrewfec49dd2005-09-23 19:34:11 +00006803 test -d ./-p && rmdir ./-p
Cullen Jennings235513a2005-09-21 22:51:36 +00006804 as_mkdir_p=false
6805fi
6806
jfigusc7e66e32013-05-08 11:32:55 -04006807
6808# as_fn_executable_p FILE
6809# -----------------------
6810# Test if FILE is an executable regular file.
6811as_fn_executable_p ()
6812{
6813 test -f "$1" && test -x "$1"
6814} # as_fn_executable_p
6815as_test_x='test -x'
6816as_executable_p=as_fn_executable_p
Cullen Jennings235513a2005-09-21 22:51:36 +00006817
6818# Sed expression to map a string onto a valid CPP name.
David McGrewfec49dd2005-09-23 19:34:11 +00006819as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006820
6821# Sed expression to map a string onto a valid variable name.
David McGrewfec49dd2005-09-23 19:34:11 +00006822as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006823
6824
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006825exec 6>&1
jfigusc7e66e32013-05-08 11:32:55 -04006826## ----------------------------------- ##
6827## Main body of $CONFIG_STATUS script. ##
6828## ----------------------------------- ##
6829_ASEOF
6830test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006831
jfigusc7e66e32013-05-08 11:32:55 -04006832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6833# Save the log message, to keep $0 and so on meaningful, and to
Cullen Jennings235513a2005-09-21 22:51:36 +00006834# report actual input values of CONFIG_FILES etc. instead of their
jfigusc7e66e32013-05-08 11:32:55 -04006835# values after options handling.
6836ac_log="
Pascal Bühler34acba62017-01-19 10:57:30 +01006837This file was extended by libsrtp2 $as_me 2.1.0-pre, which was
jfigusc7e66e32013-05-08 11:32:55 -04006838generated by GNU Autoconf 2.69. Invocation command line was
Cullen Jennings235513a2005-09-21 22:51:36 +00006839
6840 CONFIG_FILES = $CONFIG_FILES
6841 CONFIG_HEADERS = $CONFIG_HEADERS
6842 CONFIG_LINKS = $CONFIG_LINKS
6843 CONFIG_COMMANDS = $CONFIG_COMMANDS
6844 $ $0 $@
6845
jfigusc7e66e32013-05-08 11:32:55 -04006846on `(hostname || uname -n) 2>/dev/null | sed 1q`
6847"
6848
Cullen Jennings235513a2005-09-21 22:51:36 +00006849_ACEOF
6850
jfigusc7e66e32013-05-08 11:32:55 -04006851case $ac_config_files in *"
6852"*) set x $ac_config_files; shift; ac_config_files=$*;;
6853esac
6854
6855case $ac_config_headers in *"
6856"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6857esac
6858
6859
6860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006861# Files that config.status was made for.
jfigusc7e66e32013-05-08 11:32:55 -04006862config_files="$ac_config_files"
6863config_headers="$ac_config_headers"
Cullen Jennings235513a2005-09-21 22:51:36 +00006864
jfigusc7e66e32013-05-08 11:32:55 -04006865_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00006866
jfigusc7e66e32013-05-08 11:32:55 -04006867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006868ac_cs_usage="\
jfigusc7e66e32013-05-08 11:32:55 -04006869\`$as_me' instantiates files and other configuration actions
6870from templates according to the current configuration. Unless the files
6871and actions are specified as TAGs, all are instantiated by default.
Cullen Jennings235513a2005-09-21 22:51:36 +00006872
jfigusc7e66e32013-05-08 11:32:55 -04006873Usage: $0 [OPTION]... [TAG]...
Cullen Jennings235513a2005-09-21 22:51:36 +00006874
6875 -h, --help print this help, then exit
jfigusc7e66e32013-05-08 11:32:55 -04006876 -V, --version print version number and configuration settings, then exit
6877 --config print configuration, then exit
6878 -q, --quiet, --silent
6879 do not print progress messages
Cullen Jennings235513a2005-09-21 22:51:36 +00006880 -d, --debug don't remove temporary files
6881 --recheck update $as_me by reconfiguring in the same conditions
jfigusc7e66e32013-05-08 11:32:55 -04006882 --file=FILE[:TEMPLATE]
6883 instantiate the configuration file FILE
6884 --header=FILE[:TEMPLATE]
6885 instantiate the configuration header FILE
Cullen Jennings235513a2005-09-21 22:51:36 +00006886
6887Configuration files:
6888$config_files
6889
6890Configuration headers:
6891$config_headers
6892
Saúl Ibarra Corretgéff3d0422014-10-01 11:24:15 +02006893Report bugs to <https://github.com/cisco/libsrtp/issues>."
Cullen Jennings52c5cd32013-05-01 18:07:29 -06006894
jfigusc7e66e32013-05-08 11:32:55 -04006895_ACEOF
6896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6897ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Cullen Jennings235513a2005-09-21 22:51:36 +00006898ac_cs_version="\\
Pascal Bühler34acba62017-01-19 10:57:30 +01006899libsrtp2 config.status 2.1.0-pre
jfigusc7e66e32013-05-08 11:32:55 -04006900configured by $0, generated by GNU Autoconf 2.69,
6901 with options \\"\$ac_cs_config\\"
Cullen Jennings235513a2005-09-21 22:51:36 +00006902
jfigusc7e66e32013-05-08 11:32:55 -04006903Copyright (C) 2012 Free Software Foundation, Inc.
Cullen Jennings235513a2005-09-21 22:51:36 +00006904This config.status script is free software; the Free Software Foundation
6905gives unlimited permission to copy, distribute and modify it."
jfigusc7e66e32013-05-08 11:32:55 -04006906
6907ac_pwd='$ac_pwd'
6908srcdir='$srcdir'
6909INSTALL='$INSTALL'
6910test -n "\$AWK" || AWK=awk
Cullen Jennings235513a2005-09-21 22:51:36 +00006911_ACEOF
6912
jfigusc7e66e32013-05-08 11:32:55 -04006913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6914# The default lists apply if the user does not specify any file.
Cullen Jennings235513a2005-09-21 22:51:36 +00006915ac_need_defaults=:
6916while test $# != 0
6917do
6918 case $1 in
jfigusc7e66e32013-05-08 11:32:55 -04006919 --*=?*)
6920 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6921 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Cullen Jennings235513a2005-09-21 22:51:36 +00006922 ac_shift=:
6923 ;;
jfigusc7e66e32013-05-08 11:32:55 -04006924 --*=)
6925 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6926 ac_optarg=
6927 ac_shift=:
6928 ;;
6929 *)
Cullen Jennings235513a2005-09-21 22:51:36 +00006930 ac_option=$1
6931 ac_optarg=$2
6932 ac_shift=shift
6933 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006934 esac
6935
6936 case $ac_option in
6937 # Handling of the options.
Cullen Jennings235513a2005-09-21 22:51:36 +00006938 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6939 ac_cs_recheck=: ;;
jfigusc7e66e32013-05-08 11:32:55 -04006940 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6941 $as_echo "$ac_cs_version"; exit ;;
6942 --config | --confi | --conf | --con | --co | --c )
6943 $as_echo "$ac_cs_config"; exit ;;
6944 --debug | --debu | --deb | --de | --d | -d )
Cullen Jennings235513a2005-09-21 22:51:36 +00006945 debug=: ;;
6946 --file | --fil | --fi | --f )
6947 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04006948 case $ac_optarg in
6949 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6950 '') as_fn_error $? "missing file argument" ;;
6951 esac
6952 as_fn_append CONFIG_FILES " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006953 ac_need_defaults=false;;
6954 --header | --heade | --head | --hea )
6955 $ac_shift
jfigusc7e66e32013-05-08 11:32:55 -04006956 case $ac_optarg in
6957 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6958 esac
6959 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Cullen Jennings235513a2005-09-21 22:51:36 +00006960 ac_need_defaults=false;;
jfigusc7e66e32013-05-08 11:32:55 -04006961 --he | --h)
6962 # Conflict between --help and --header
6963 as_fn_error $? "ambiguous option: \`$1'
6964Try \`$0 --help' for more information.";;
6965 --help | --hel | -h )
6966 $as_echo "$ac_cs_usage"; exit ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006967 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6968 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6969 ac_cs_silent=: ;;
6970
6971 # This is an error.
jfigusc7e66e32013-05-08 11:32:55 -04006972 -*) as_fn_error $? "unrecognized option: \`$1'
6973Try \`$0 --help' for more information." ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006974
jfigusc7e66e32013-05-08 11:32:55 -04006975 *) as_fn_append ac_config_targets " $1"
6976 ac_need_defaults=false ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00006977
6978 esac
6979 shift
6980done
6981
6982ac_configure_extra_args=
6983
6984if $ac_cs_silent; then
6985 exec 6>/dev/null
6986 ac_configure_extra_args="$ac_configure_extra_args --silent"
6987fi
6988
6989_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04006990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00006991if \$ac_cs_recheck; then
jfigusc7e66e32013-05-08 11:32:55 -04006992 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6993 shift
6994 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6995 CONFIG_SHELL='$SHELL'
6996 export CONFIG_SHELL
6997 exec "\$@"
Cullen Jennings235513a2005-09-21 22:51:36 +00006998fi
6999
7000_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7002exec 5>>config.log
7003{
7004 echo
7005 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7006## Running $as_me. ##
7007_ASBOX
7008 $as_echo "$ac_log"
7009} >&5
Cullen Jennings235513a2005-09-21 22:51:36 +00007010
jfigusc7e66e32013-05-08 11:32:55 -04007011_ACEOF
7012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7013_ACEOF
Cullen Jennings235513a2005-09-21 22:51:36 +00007014
jfigusc7e66e32013-05-08 11:32:55 -04007015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007016
jfigusc7e66e32013-05-08 11:32:55 -04007017# Handling of arguments.
Cullen Jennings235513a2005-09-21 22:51:36 +00007018for ac_config_target in $ac_config_targets
7019do
jfigusc7e66e32013-05-08 11:32:55 -04007020 case $ac_config_target in
7021 "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
7022 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7023 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
7024 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
Idar Tollefsen600ad962017-01-26 11:24:51 +01007025 "libsrtp2.pc") CONFIG_FILES="$CONFIG_FILES libsrtp2.pc" ;;
jfigusc7e66e32013-05-08 11:32:55 -04007026
7027 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007028 esac
7029done
7030
jfigusc7e66e32013-05-08 11:32:55 -04007031
Cullen Jennings235513a2005-09-21 22:51:36 +00007032# If the user did not use the arguments to specify the items to instantiate,
7033# then the envvar interface is used. Set only those that are not.
7034# We use the long form for the default assignment because of an extremely
7035# bizarre bug on SunOS 4.1.3.
7036if $ac_need_defaults; then
7037 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7038 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7039fi
7040
7041# Have a temporary directory for convenience. Make it in the build tree
jfigusc7e66e32013-05-08 11:32:55 -04007042# simply because there is no reason against having it here, and in addition,
Cullen Jennings235513a2005-09-21 22:51:36 +00007043# creating and moving files from /tmp can sometimes cause problems.
jfigusc7e66e32013-05-08 11:32:55 -04007044# Hook for its removal unless debugging.
7045# Note that there is a small window in which the directory will not be cleaned:
7046# after its creation but before its name has been assigned to `$tmp'.
Cullen Jennings235513a2005-09-21 22:51:36 +00007047$debug ||
7048{
jfigusc7e66e32013-05-08 11:32:55 -04007049 tmp= ac_tmp=
7050 trap 'exit_status=$?
7051 : "${ac_tmp:=$tmp}"
7052 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7053' 0
7054 trap 'as_fn_exit 1' 1 2 13 15
Cullen Jennings235513a2005-09-21 22:51:36 +00007055}
Cullen Jennings235513a2005-09-21 22:51:36 +00007056# Create a (secure) tmp directory for tmp files.
7057
7058{
jfigusc7e66e32013-05-08 11:32:55 -04007059 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7060 test -d "$tmp"
Cullen Jennings235513a2005-09-21 22:51:36 +00007061} ||
7062{
jfigusc7e66e32013-05-08 11:32:55 -04007063 tmp=./conf$$-$RANDOM
7064 (umask 077 && mkdir "$tmp")
7065} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7066ac_tmp=$tmp
7067
7068# Set up the scripts for CONFIG_FILES section.
7069# No need to generate them if there are no CONFIG_FILES.
7070# This happens for instance with `./config.status config.h'.
7071if test -n "$CONFIG_FILES"; then
7072
7073
7074ac_cr=`echo X | tr X '\015'`
7075# On cygwin, bash can eat \r inside `` if the user requested igncr.
7076# But we know of no other shell where ac_cr would be empty at this
7077# point, so we can use a bashism as a fallback.
7078if test "x$ac_cr" = x; then
7079 eval ac_cr=\$\'\\r\'
7080fi
7081ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7082if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7083 ac_cs_awk_cr='\\r'
7084else
7085 ac_cs_awk_cr=$ac_cr
7086fi
7087
7088echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7089_ACEOF
7090
7091
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007092{
jfigusc7e66e32013-05-08 11:32:55 -04007093 echo "cat >conf$$subs.awk <<_ACEOF" &&
7094 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7095 echo "_ACEOF"
7096} >conf$$subs.sh ||
7097 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7098ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7099ac_delim='%!_!# '
7100for ac_last_try in false false false false false :; do
7101 . ./conf$$subs.sh ||
7102 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7103
7104 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7105 if test $ac_delim_n = $ac_delim_num; then
7106 break
7107 elif $ac_last_try; then
7108 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7109 else
7110 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7111 fi
7112done
7113rm -f conf$$subs.sh
7114
7115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7116cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7117_ACEOF
7118sed -n '
7119h
7120s/^/S["/; s/!.*/"]=/
7121p
7122g
7123s/^[^!]*!//
7124:repl
7125t repl
7126s/'"$ac_delim"'$//
7127t delim
7128:nl
7129h
7130s/\(.\{148\}\)..*/\1/
7131t more1
7132s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7133p
7134n
7135b repl
7136:more1
7137s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7138p
7139g
7140s/.\{148\}//
7141t nl
7142:delim
7143h
7144s/\(.\{148\}\)..*/\1/
7145t more2
7146s/["\\]/\\&/g; s/^/"/; s/$/"/
7147p
7148b
7149:more2
7150s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7151p
7152g
7153s/.\{148\}//
7154t delim
7155' <conf$$subs.awk | sed '
7156/^[^""]/{
7157 N
7158 s/\n//
7159}
7160' >>$CONFIG_STATUS || ac_write_fail=1
7161rm -f conf$$subs.awk
7162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7163_ACAWK
7164cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7165 for (key in S) S_is_set[key] = 1
7166 FS = ""
7167
7168}
7169{
7170 line = $ 0
7171 nfields = split(line, field, "@")
7172 substed = 0
7173 len = length(field[1])
7174 for (i = 2; i < nfields; i++) {
7175 key = field[i]
7176 keylen = length(key)
7177 if (S_is_set[key]) {
7178 value = S[key]
7179 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7180 len += length(value) + length(field[++i])
7181 substed = 1
7182 } else
7183 len += 1 + keylen
7184 }
7185
7186 print line
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007187}
jfigusa14b5a02013-03-29 12:24:12 -04007188
jfigusc7e66e32013-05-08 11:32:55 -04007189_ACAWK
7190_ACEOF
7191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7192if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7193 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7194else
7195 cat
7196fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7197 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
jfigusa14b5a02013-03-29 12:24:12 -04007198_ACEOF
7199
jfigusc7e66e32013-05-08 11:32:55 -04007200# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7201# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7202# trailing colons and then remove the whole line if VPATH becomes empty
7203# (actually we leave an empty line to preserve line numbers).
7204if test "x$srcdir" = x.; then
7205 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7206h
7207s///
7208s/^/:/
7209s/[ ]*$/:/
7210s/:\$(srcdir):/:/g
7211s/:\${srcdir}:/:/g
7212s/:@srcdir@:/:/g
7213s/^:*//
7214s/:*$//
7215x
7216s/\(=[ ]*\).*/\1/
7217G
7218s/\n//
7219s/^[^=]*=[ ]*$//
7220}'
7221fi
jfigusa14b5a02013-03-29 12:24:12 -04007222
jfigusc7e66e32013-05-08 11:32:55 -04007223cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007224fi # test -n "$CONFIG_FILES"
7225
jfigusc7e66e32013-05-08 11:32:55 -04007226# Set up the scripts for CONFIG_HEADERS section.
7227# No need to generate them if there are no CONFIG_HEADERS.
7228# This happens for instance with `./config.status Makefile'.
7229if test -n "$CONFIG_HEADERS"; then
7230cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7231BEGIN {
Cullen Jennings235513a2005-09-21 22:51:36 +00007232_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007233
7234# Transform confdefs.h into an awk script `defines.awk', embedded as
7235# here-document in config.status, that substitutes the proper values into
7236# config.h.in to produce config.h.
7237
7238# Create a delimiter string that does not exist in confdefs.h, to ease
7239# handling of long lines.
7240ac_delim='%!_!# '
7241for ac_last_try in false false :; do
7242 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7243 if test -z "$ac_tt"; then
7244 break
7245 elif $ac_last_try; then
7246 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7247 else
7248 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7249 fi
7250done
7251
7252# For the awk script, D is an array of macro values keyed by name,
7253# likewise P contains macro parameters if any. Preserve backslash
7254# newline sequences.
7255
7256ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7257sed -n '
7258s/.\{148\}/&'"$ac_delim"'/g
7259t rset
7260:rset
7261s/^[ ]*#[ ]*define[ ][ ]*/ /
7262t def
7263d
7264:def
7265s/\\$//
7266t bsnl
7267s/["\\]/\\&/g
7268s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7269D["\1"]=" \3"/p
7270s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7271d
7272:bsnl
7273s/["\\]/\\&/g
7274s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7275D["\1"]=" \3\\\\\\n"\\/p
7276t cont
7277s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7278t cont
7279d
7280:cont
7281n
7282s/.\{148\}/&'"$ac_delim"'/g
7283t clear
7284:clear
7285s/\\$//
7286t bsnlc
7287s/["\\]/\\&/g; s/^/"/; s/$/"/p
7288d
7289:bsnlc
7290s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7291b cont
7292' <confdefs.h | sed '
7293s/'"$ac_delim"'/"\\\
7294"/g' >>$CONFIG_STATUS || ac_write_fail=1
7295
7296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7297 for (key in D) D_is_set[key] = 1
7298 FS = ""
7299}
7300/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7301 line = \$ 0
7302 split(line, arg, " ")
7303 if (arg[1] == "#") {
7304 defundef = arg[2]
7305 mac1 = arg[3]
7306 } else {
7307 defundef = substr(arg[1], 2)
7308 mac1 = arg[2]
7309 }
7310 split(mac1, mac2, "(") #)
7311 macro = mac2[1]
7312 prefix = substr(line, 1, index(line, defundef) - 1)
7313 if (D_is_set[macro]) {
7314 # Preserve the white space surrounding the "#".
7315 print prefix "define", macro P[macro] D[macro]
7316 next
7317 } else {
7318 # Replace #undef with comments. This is necessary, for example,
7319 # in the case of _POSIX_SOURCE, which is predefined and required
7320 # on some systems where configure will not decide to define it.
7321 if (defundef == "undef") {
7322 print "/*", prefix defundef, macro, "*/"
7323 next
7324 }
7325 }
7326}
7327{ print }
7328_ACAWK
7329_ACEOF
7330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7331 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7332fi # test -n "$CONFIG_HEADERS"
7333
7334
7335eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7336shift
7337for ac_tag
7338do
7339 case $ac_tag in
7340 :[FHLC]) ac_mode=$ac_tag; continue;;
7341 esac
7342 case $ac_mode$ac_tag in
7343 :[FHL]*:*);;
7344 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7345 :[FH]-) ac_tag=-:-;;
7346 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7347 esac
7348 ac_save_IFS=$IFS
7349 IFS=:
7350 set x $ac_tag
7351 IFS=$ac_save_IFS
7352 shift
7353 ac_file=$1
7354 shift
7355
7356 case $ac_mode in
7357 :L) ac_source=$1;;
7358 :[FH])
7359 ac_file_inputs=
7360 for ac_f
7361 do
7362 case $ac_f in
7363 -) ac_f="$ac_tmp/stdin";;
7364 *) # Look for the file first in the build tree, then in the source tree
7365 # (if the path is not absolute). The absolute path cannot be DOS-style,
7366 # because $ac_f cannot contain `:'.
7367 test -f "$ac_f" ||
7368 case $ac_f in
7369 [\\/$]*) false;;
7370 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7371 esac ||
7372 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7373 esac
7374 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7375 as_fn_append ac_file_inputs " '$ac_f'"
7376 done
7377
7378 # Let's still pretend it is `configure' which instantiates (i.e., don't
7379 # use $as_me), people would be surprised to read:
7380 # /* config.h. Generated by config.status. */
7381 configure_input='Generated from '`
7382 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7383 `' by configure.'
7384 if test x"$ac_file" != x-; then
7385 configure_input="$ac_file. $configure_input"
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7387$as_echo "$as_me: creating $ac_file" >&6;}
7388 fi
7389 # Neutralize special characters interpreted by sed in replacement strings.
7390 case $configure_input in #(
7391 *\&* | *\|* | *\\* )
7392 ac_sed_conf_input=`$as_echo "$configure_input" |
7393 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7394 *) ac_sed_conf_input=$configure_input;;
7395 esac
7396
7397 case $ac_tag in
7398 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7399 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7400 esac
7401 ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007402 esac
7403
jfigusc7e66e32013-05-08 11:32:55 -04007404 ac_dir=`$as_dirname -- "$ac_file" ||
Cullen Jennings235513a2005-09-21 22:51:36 +00007405$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
David McGrewfec49dd2005-09-23 19:34:11 +00007406 X"$ac_file" : 'X\(//\)[^/]' \| \
7407 X"$ac_file" : 'X\(//\)$' \| \
jfigusc7e66e32013-05-08 11:32:55 -04007408 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7409$as_echo X"$ac_file" |
7410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7411 s//\1/
7412 q
7413 }
7414 /^X\(\/\/\)[^/].*/{
7415 s//\1/
7416 q
7417 }
7418 /^X\(\/\/\)$/{
7419 s//\1/
7420 q
7421 }
7422 /^X\(\/\).*/{
7423 s//\1/
7424 q
7425 }
7426 s/.*/./; q'`
7427 as_dir="$ac_dir"; as_fn_mkdir_p
Cullen Jennings235513a2005-09-21 22:51:36 +00007428 ac_builddir=.
7429
jfigusc7e66e32013-05-08 11:32:55 -04007430case "$ac_dir" in
7431.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7432*)
7433 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7434 # A ".." for each directory in $ac_dir_suffix.
7435 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7436 case $ac_top_builddir_sub in
7437 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7438 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7439 esac ;;
7440esac
7441ac_abs_top_builddir=$ac_pwd
7442ac_abs_builddir=$ac_pwd$ac_dir_suffix
7443# for backward compatibility:
7444ac_top_builddir=$ac_top_build_prefix
Cullen Jennings235513a2005-09-21 22:51:36 +00007445
7446case $srcdir in
jfigusc7e66e32013-05-08 11:32:55 -04007447 .) # We are building in place.
Cullen Jennings235513a2005-09-21 22:51:36 +00007448 ac_srcdir=.
jfigusc7e66e32013-05-08 11:32:55 -04007449 ac_top_srcdir=$ac_top_builddir_sub
7450 ac_abs_top_srcdir=$ac_pwd ;;
7451 [\\/]* | ?:[\\/]* ) # Absolute name.
Cullen Jennings235513a2005-09-21 22:51:36 +00007452 ac_srcdir=$srcdir$ac_dir_suffix;
jfigusc7e66e32013-05-08 11:32:55 -04007453 ac_top_srcdir=$srcdir
7454 ac_abs_top_srcdir=$srcdir ;;
7455 *) # Relative name.
7456 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7457 ac_top_srcdir=$ac_top_build_prefix$srcdir
7458 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Cullen Jennings235513a2005-09-21 22:51:36 +00007459esac
jfigusc7e66e32013-05-08 11:32:55 -04007460ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
David McGrewfec49dd2005-09-23 19:34:11 +00007461
Cullen Jennings235513a2005-09-21 22:51:36 +00007462
jfigusc7e66e32013-05-08 11:32:55 -04007463 case $ac_mode in
7464 :F)
7465 #
7466 # CONFIG_FILE
7467 #
Cullen Jennings235513a2005-09-21 22:51:36 +00007468
David McGrewb67061f2005-09-28 14:23:06 +00007469 case $INSTALL in
7470 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
jfigusc7e66e32013-05-08 11:32:55 -04007471 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
David McGrewb67061f2005-09-28 14:23:06 +00007472 esac
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007473_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007474
7475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7476# If the template does not know about datarootdir, expand it.
7477# FIXME: This hack should be removed a few years after 2.60.
7478ac_datarootdir_hack=; ac_datarootdir_seen=
7479ac_sed_dataroot='
7480/datarootdir/ {
7481 p
7482 q
7483}
7484/@datadir@/p
7485/@docdir@/p
7486/@infodir@/p
7487/@localedir@/p
7488/@mandir@/p'
7489case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7490*datarootdir*) ac_datarootdir_seen=yes;;
7491*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7493$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7494_ACEOF
7495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7496 ac_datarootdir_hack='
7497 s&@datadir@&$datadir&g
7498 s&@docdir@&$docdir&g
7499 s&@infodir@&$infodir&g
7500 s&@localedir@&$localedir&g
7501 s&@mandir@&$mandir&g
7502 s&\\\${datarootdir}&$datarootdir&g' ;;
7503esac
7504_ACEOF
7505
7506# Neutralize VPATH when `$srcdir' = `.'.
7507# Shell code in configure.ac might set extrasub.
7508# FIXME: do we really want to maintain this feature?
7509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7510ac_sed_extra="$ac_vpsub
Cullen Jennings235513a2005-09-21 22:51:36 +00007511$extrasub
7512_ACEOF
jfigusc7e66e32013-05-08 11:32:55 -04007513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Cullen Jennings235513a2005-09-21 22:51:36 +00007514:t
7515/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jfigusc7e66e32013-05-08 11:32:55 -04007516s|@configure_input@|$ac_sed_conf_input|;t t
7517s&@top_builddir@&$ac_top_builddir_sub&;t t
7518s&@top_build_prefix@&$ac_top_build_prefix&;t t
7519s&@srcdir@&$ac_srcdir&;t t
7520s&@abs_srcdir@&$ac_abs_srcdir&;t t
7521s&@top_srcdir@&$ac_top_srcdir&;t t
7522s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7523s&@builddir@&$ac_builddir&;t t
7524s&@abs_builddir@&$ac_abs_builddir&;t t
7525s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7526s&@INSTALL@&$ac_INSTALL&;t t
7527$ac_datarootdir_hack
7528"
7529eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7530 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings235513a2005-09-21 22:51:36 +00007531
jfigusc7e66e32013-05-08 11:32:55 -04007532test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7533 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7534 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7535 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7537which seems to be undefined. Please make sure it is defined" >&5
7538$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7539which seems to be undefined. Please make sure it is defined" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00007540
jfigusc7e66e32013-05-08 11:32:55 -04007541 rm -f "$ac_tmp/stdin"
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007542 case $ac_file in
jfigusc7e66e32013-05-08 11:32:55 -04007543 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7544 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7545 esac \
7546 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7547 ;;
7548 :H)
7549 #
7550 # CONFIG_HEADER
7551 #
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007552 if test x"$ac_file" != x-; then
jfigusc7e66e32013-05-08 11:32:55 -04007553 {
7554 $as_echo "/* $configure_input */" \
7555 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7556 } >"$ac_tmp/config.h" \
7557 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7558 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7560$as_echo "$as_me: $ac_file is unchanged" >&6;}
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007561 else
jfigusc7e66e32013-05-08 11:32:55 -04007562 rm -f "$ac_file"
7563 mv "$ac_tmp/config.h" "$ac_file" \
7564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007565 fi
7566 else
jfigusc7e66e32013-05-08 11:32:55 -04007567 $as_echo "/* $configure_input */" \
7568 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7569 || as_fn_error $? "could not create -" "$LINENO" 5
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007570 fi
jfigusc7e66e32013-05-08 11:32:55 -04007571 ;;
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007572
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007573
jfigusc7e66e32013-05-08 11:32:55 -04007574 esac
7575
7576done # for ac_tag
7577
7578
7579as_fn_exit 0
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007580_ACEOF
Cullen Jennings52c5cd32013-05-01 18:07:29 -06007581ac_clean_files=$ac_clean_files_save
jfigusa14b5a02013-03-29 12:24:12 -04007582
jfigusc7e66e32013-05-08 11:32:55 -04007583test $ac_write_fail = 0 ||
7584 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7585
Cullen Jennings235513a2005-09-21 22:51:36 +00007586
7587# configure is writing to config.log, and then calls config.status.
7588# config.status does its own redirection, appending to config.log.
7589# Unfortunately, on DOS this fails, as config.log is still kept open
7590# by configure, so config.status won't be able to write to it; its
7591# output is simply discarded. So we exec the FD to /dev/null,
7592# effectively closing config.log, so it can be properly (re)opened and
7593# appended to by config.status. When coming back to configure, we
7594# need to make the FD available again.
7595if test "$no_create" != yes; then
7596 ac_cs_success=:
7597 ac_config_status_args=
7598 test "$silent" = yes &&
7599 ac_config_status_args="$ac_config_status_args --quiet"
7600 exec 5>/dev/null
7601 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7602 exec 5>>config.log
7603 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7604 # would make configure fail if this is the last instruction.
jfigusc7e66e32013-05-08 11:32:55 -04007605 $ac_cs_success || as_fn_exit 1
7606fi
7607if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7609$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Cullen Jennings235513a2005-09-21 22:51:36 +00007610fi
7611
Marcus Sundberg979e1bc2005-09-29 14:33:09 +00007612
7613# This is needed when building outside the source dir.
jfigusc7e66e32013-05-08 11:32:55 -04007614as_dir=crypto/cipher; as_fn_mkdir_p
7615as_dir=crypto/hash; as_fn_mkdir_p
7616as_dir=crypto/kernel; as_fn_mkdir_p
7617as_dir=crypto/math; as_fn_mkdir_p
7618as_dir=crypto/replay; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007619as_dir=crypto/test; as_fn_mkdir_p
7620as_dir=doc; as_fn_mkdir_p
7621as_dir=srtp; as_fn_mkdir_p
jfigusc7e66e32013-05-08 11:32:55 -04007622as_dir=test; as_fn_mkdir_p